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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 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 EQ,vXE,fA1,o$,p1,xFE,ZA,C1,S9,UQ,cGy,yG$,dL,I$,Q$X,XII,hG,mFL,rGX,PE1,pl,CEy,M9s,UFN,KXI,dFE,Mi,So,Kl,Yw,AGN,h6,V9G,A6,HU,O1,H1$,WU,GS,NL1,ksF,WXN,t6,LXL,vb,Gs9,f0,$FX,xp,TLQ,RyG,Ews,d_,nwL,owE,fz$,xiy,c6I,K0,t9N,Ux,BLI,vwy,miA,blI,lzs,g_,sFy,r6Q,PXQ,az$,CXN,Moy,q19,L0,di9,Y19,A6E,gw9,N1s,iC,tR,u1L,$iE,Em,LgQ,z4Q,T1I,fW,ilG,nW,ZlG,cz,yj,pW,xb,Qj,B1X,R4F,toI,br,vpE,Epy,npX,f1X,op9,Um,xPX,cRs,FL,pby,QOE,eKy,b0E,Aj,a19,FUE,Z0Q,CCy,MML,dPE,qxN,g2,ur,YxL,ARy,VME,N_N,WUI,zKs,vbG,yjE,nc,QKE,e_Q,yv,Qv,
X_,F_,m_,Cc,Sc,Uw,rjE,hA,aLX,MtA,Ow,kR,UnN,$R,Lc,Gd,Td,JjX,K9L,dnX,ILF,Ym$,h_E,Ajy,VtF,Dny,gb9,B5,tA,N2X,uLX,jKA,kZE,OW1,W9I,pI,L9E,QQ,Xt,Ft,mZ,b_,T2L,l_,z_1,ERX,rY,nR1,oR1,fds,al,xaG,cA9,Zq,CI,QCF,S8,F_9,ma9,U8,bcX,w5X,lds,sCN,rAs,PWA,KI,adA,ZcL,dY,CWG,Mc$,Il,Yh,Ae,VQ,SwN,qw1,UaN,Dq,K_X,da1,IdX,gY,j8,O8,kh,WW,$h,LI,YwF,hZL,AAX,VcA,DaL,Hc1,gRs,NVA,u_1,jCN,Ocs,T6,kd9,W_$,Rl,$aL,BW,vV,L_F,icL,zZE,RZN,BV9,vhs,Ehy,xgI,ces,yeG,pWy,QlQ,XWE,eqA,bI9,oi,lq1,slX,reX,P_G,aqX,ZII,M8Q,Dg$,HIX,ghI,utX,jl1,ml,OIE,
$g$,TYG,iI1,zqQ,RqX,t8N,BYF,vrX,ErG,orL,fJ9,LZs,x0$,cJI,yJX,pVy,QiX,XVA,epI,FlE,m0y,rJs,lJX,ZsL,PUG,aJQ,Sh9,U0I,qhX,CUX,KlG,Ms$,IJ9,Ii,Yr,AJ,YhF,AJG,Vs$,gr$,TAA,ubG,NAX,OsG,Wl1,ji9,vEN,Rp9,EEI,nEQ,oEG,fB9,xEQ,y7G,c7L,Qcs,Xvy,etX,FzL,wvN,lBL,scE,r7N,aBX,PY9,htG,A7E,VCX,N0,DEE,gEQ,NC1,uVL,jcG,OTs,Wzs,$E1,LzF,Ls,G7,Gc$,BCA,z7,Ri,o7N,xBN,bpy,SBX,EV,$BG,ipL,GrA,TFL,cv,zCQ,RC9,BF1,v6X,E6G,n6N,o6Q,fUs,xX$,yMX,pGA,XG9,Q5L,mXs,bY,rC,bkG,lUL,s59,rMA,P5E,aUy,C5L,SOX,Mp$,Ic,h7,Vp$,A7,DB,NBN,Hv,uoI,j5F,gC,kaG,
Ok9,tps,BB1,EmE,fuX,xpQ,yOI,pA1,QPX,e5$,wAF,bEA,OV,PqN,CqN,M5F,SHF,UpI,qHA,ZEA,rON,sPX,LT,luA,JOQ,dpE,YHF,V5N,h5E,Rc,HEE,NdX,u71,jP$,OEL,EB,kTs,$pE,WxN,LxF,TdE,fp,nHE,f$L,csL,p7X,QYy,eRI,pp,Qh,FiE,X7X,l$9,wF,a$F,la,sB,MDE,qUE,KiE,d1X,I$Q,rF,YUE,hRE,As9,D11,HZN,gH1,NhA,jYA,ZY,OZE,k2Q,MB,qB,Li9,G2A,ThG,Kp,RRL,tDy,v$N,Vh,coI,yo1,pPE,QgF,XPG,NB,OB,k7,Wf,mwL,Tr,wPA,b3y,l4E,sgQ,PiA,a4E,roL,zr,Z3G,Uws,R0,SsI,qs9,Cis,JoA,Bf,dw1,I4X,Ysy,h0I,VQI,Ao1,Dw9,Nty,H3$,jgN,G1X,i3I,R0F,BtF,n0E,E0N,v0A,o0G,xOG,yK$,cKy,
pZQ,XZE,efG,Xo,bVF,b5,rKL,sSQ,P$$,sO,rB,amL,PG,ZVG,M$I,UOG,KtE,ImF,dOE,NX,Y2X,S2s,N6Q,uc$,jSI,k6,OVE,WtL,Gqy,zfG,iVX,vZy,EZE,nZN,oZN,xAG,XqX,cQN,pq1,QTN,elE,mAX,Fuy,bG$,wqE,EH,llL,rQ9,PcL,MKE,Qc,X7,SLE,UAN,e5,dAN,bq,lq,sH,AQG,rd,HG1,Zu,gZL,NM9,uYE,jTX,S5,OGE,WuI,$A1,GnQ,iGE,tKy,vsE,AO,EsI,nss,osG,fI1,xxE,ccI,ycX,pR1,HA,eHN,F5G,mxE,wRy,bHG,lIs,sQy,rcX,PnA,aII,ZHs,CnF,M71,$m,DxX,HHs,LE,GT,TT,gsX,Nj1,uDE,jQs,OHQ,kxN,W5A,iHG,zHG,RHG,t7X,Bj9,tO,v7,EU,nZ,xH,c7,yR,EtE,XO,ot1,eD,fGX,xDI,FO,cCX,yCN,py1,sbL,
PxX,SbA,KW9,JCN,rCX,dDs,hos,GeX,NGQ,tNE,jbX,RoX,BGy,rh,EyX,aY,oyN,f_E,cVL,yV1,ppX,XpN,M1,FoE,mQX,wpA,b2G,l_I,skQ,rVQ,eV9,Z2Q,CoG,Mky,UU,hV$,AVs,Yny,DQy,H2L,NnG,uJL,gyA,Gw9,i2N,RVX,BnX,D$,xuF,fjN,XEs,F$E,mu$,wEy,b51,ljN,sUX,G2,qeF,K$E,SeA,MIE,Jxs,PzX,IjG,O51,Ax9,VIE,DuN,tI1,vzE,RL1,cZX,zLI,rxX,xdN,hLI,jU9,BqL,duE,Z5$,ajy,CzI,UuN,i5N,Qs,ZRE,Mgy,SZQ,Ud$,qZ1,DdX,OR9,kGN,ag,$dX,TJs,tgN,RYQ,v_A,E_9,fgI,o_N,xqG,piI,yqA,ho,QXX,XiG,Fcs,eSE,Ao,rqI,sXQ,lgs,CGs,PGE,MwN,Zh1,SdL,D4,UqG,dq1,JqI,KcN,YdQ,hSA,Vwy,
ui,g_N,Dq$,NWN,ky9,WcL,Gy1,ih$,WP,$$,BWE,vaX,L3,G1,Ea1,T1,ii,naE,z1,oa1,Rg,fkQ,xly,BP,cFI,yFI,pTN,QuE,XTX,FIA,e6F,wTE,su$,lkX,rF1,PSX,mlF,akL,MSy,CSE,b7F,SII,Ul$,fV,qIQ,dlI,KIA,IkX,YIA,AFI,h6E,VSN,cZ,H7E,gaX,Dl9,uwy,juX,O7A,LI$,i7$,vCX,fEX,y2,yyE,pjI,pV,QVN,mt,w6,bU9,e$,s2,lEs,sVI,PTE,aEQ,CTQ,S_I,UoF,q_X,JyF,IEy,DoX,AyI,dos,HUG,gCG,Zm,Vh9,NNQ,S$,uHy,jVA,OUN,kkQ,GkF,WHX,LHL,RUG,thy,oJ9,nJG,cf$,FnI,mIs,beL,srX,rfE,aRX,ZeQ,C9E,SyL,UII,qyE,dIE,AfX,VUX,IRA,He9,NwE,gJA,DIA,uhN,OeF,kYE,WnQ,$Iy,LnF,HZ,g6,
j$,k0,ieF,zi$,tUN,E8s,WZ,$0,n8X,LV,xr1,cms,ymF,Tq,FkE,l2E,rmy,PN9,a2X,Z9X,CNE,UrQ,zq,qa9,dry,RS,I2I,Am1,VfG,DrI,hsQ,O9E,$ry,kjy,Lk$,i9E,RsE,BOL,oDs,nDE,yPE,nG,pME,Qy9,oT,XMG,cq,e$E,FeE,mm9,boN,wMX,lbX,syL,rPN,Py$,qPF,Ke$,Ib1,dmN,MrF,ZoN,h$X,VrX,uTG,jys,WeA,z$X,tr$,XY,Bx9,E29,n2Q,fr$,pFG,XF1,FPI,m9E,wFI,byI,arE,lrX,SoX,U9X,J_X,mu,d91,Irs,Yo$,huQ,A_L,VP9,D9Q,g2E,NkX,sL,jWX,OyI,$9E,Pq,WP$,GuI,Ru1,Zl,tP9,BkQ,vYE,oYy,f6N,EYA,ctI,XlQ,ek1,F2I,JQ,mT$,s_X,rt9,YZ,ZLL,PwE,a6Q,M0A,UTQ,q6E,I6I,Aty,hkX,Y6X,V09,
HLQ,gYI,W2Q,N$Q,$Ts,T$s,L2y,veF,oe1,x_$,ySN,lXL,rSN,PFN,M2X,U_E,Qf,rj,D_Q,V2E,geN,NlN,j9$,u6X,OzG,k5I,PR,UDX,hmX,HzG,ASE,ln,IQ,Lj9,G5N,RmE,t2N,BlA,vq1,EqN,nqy,oqA,Ac,fes,Vf,x71,cTX,yTX,pXL,gj,Q4L,F4s,wXy,bry,C3L,SGA,U7X,qG9,K4G,d7E,Gx,YGX,hMF,ATI,Vus,D7F,HrE,NgQ,j4I,kQQ,W49,zMX,TgG,RMs,vOX,EON,Eb,nOy,oOE,fT1,y8Q,Q1Q,pkN,eAI,mhQ,xt,bML,GtF,wk1,T7s,iME,RAX,B7s,tHN,vVX,zAX,EVs,nVL,oVX,fOX,xbE,c$1,y$E,pDE,QsX,FDs,erA,mby,bgF,wDF,cy,lOy,PME,Sk1,ss$,UbX,qkL,J$9,KDA,HgI,NRA,u01,OgX,k4X,sb,G4X,RrG,BRF,rG,
ooE,noL,fDQ,ZG,xsN,chG,yhG,Q6X,XgN,e8Q,FpN,wgy,bQF,UsX,ZQ1,MYy,JhL,qlN,KpG,dsE,YlQ,AhE,DsE,goN,TrQ,R8$,BrN,vIs,EIQ,nI9,oIE,x2Q,c1$,QDX,XsF,ebL,FL9,m2F,wsG,btX,lQN,PQL,SC9,VN,DG,Hy,gG,U2F,jN,J1I,Ht9,kUG,jDX,x3s,cdE,yds,d2N,D2I,hbE,pmN,QfA,Xm1,Nm1,FNE,wmL,lvQ,PJy,avI,Rb,KN1,Jds,hzE,D3A,gME,uPL,jfQ,WN9,LN$,$3E,iK9,RzQ,f7E,nQQ,Bo1,oQX,vQ$,xjE,Q2G,XJ,rzQ,b41,a71,Z4E,MR1,Sqy,FJ,UjQ,K8Q,djL,I7X,YqE,u51,NT1,ak,qQ,G9Q,TTL,K2,i49,zGI,RG9,tRs,BT1,vUA,EUX,nUQ,oUE,f8$,xv9,cLF,yLA,pYI,QaE,dn,XYN,ee$,F0y,mvE,wYI,
bi9,l81,saG,rLQ,PdI,a8X,ZiE,Yy,MLs,UvX,JLQ,I8E,AL$,VLy,DvG,gUL,uQN,jaA,OiE,W0A,TzL,L0G,iiE,zeE,ReN,vxE,x8E,cwI,pBE,Rk,XBQ,io,FhF,m81,tV,wBE,bw$,lKL,shI,vE,Zws,MzG,KhX,JwF,IKX,Y5I,QV,hO1,Aw9,D8X,gx1,NiX,jhy,OwL,Hws,kPL,TiX,tz1,BiL,Xy,vFy,EFs,ckE,nFX,ftI,xUE,FCF,p$9,mUQ,bX1,sBE,rkE,PO1,at1,ZXN,COE,SAA,UUs,qA1,Jk$,KCA,ItF,haQ,DUG,u4s,kmE,$Uy,TIN,se,iXX,zaG,RaX,t6$,BIE,Egs,ngN,ogX,fMA,xM9,cWE,yWy,pKL,QHN,XKX,ePF,mMG,Fry,lM9,rWX,aU,PVQ,CVI,ZqX,C5,UMQ,qEE,IMX,AWN,YEE,dM1,HqN,DML,OqE,ggA,Jx,u2I,iq1,$Ms,
LrA,GI$,TvE,zP9,tA$,RPG,K5,dq,xGE,v5F,f5E,o5Q,E59,n5E,p0s,X01,Fqy,e1$,l59,baX,P1E,a5L,C1I,MWQ,ZaL,S4$,q4L,UG$,KqL,Y4$,gq,h1E,AXE,HaE,Oa1,TuA,uz,z11,vf1,fwE,ofX,EfQ,nfE,$i,QeF,clE,ylG,Xn$,FSX,ew1,bjL,lwI,rlX,Pb9,awX,ZjN,Cb1,SK$,USN,oj,Jl$,xz,KSA,hwQ,AlI,X$,Vqy,HjG,LSA,bj,jeE,$S$,OjG,kXI,zwy,RwF,ij$,tq1,ByG,olQ,vlL,fVy,xCE,sZ,yIL,poF,QZN,cIE,eTN,Xos,rJ,bYL,CBX,M3E,SDX,UC1,qDX,JIs,YDI,dC$,IVQ,KaX,AIy,DCN,HYE,uZs,jZE,kMy,Md,WaQ,$CG,LaE,T5E,iYI,zTE,RTN,t3$,B5X,ESE,KR,nSL,x6Q,foG,y4X,c49,pdQ,Qqy,XdX,dJ,
FsN,Szy,ClA,J4L,Kss,VBE,D6E,HnL,gSQ,NEL,uUF,koL,WsX,$6N,LsN,inQ,zQX,RQ9,tBL,BEs,vKs,EK$,nKF,oKF,fSA,xeL,y2s,pCs,Qmy,egA,me9,bdE,PAy,r2E,smE,lSG,ZdL,CAs,zG,Mb9,Sc1,UeE,qc9,deE,J2Q,ISX,Kfy,YcA,vi,hgX,A2L,VbN,Des,HdE,gK1,NpE,OdA,jmN,ukN,kVN,GVF,Tps,x_,id1,zgX,Rg9,tbI,Bp1,vLX,nLG,oL$,fHs,xYs,p6y,ybQ,mYQ,cbI,y3,w61,QJQ,FmX,sJN,P01,SgX,C0E,MxX,ZBE,aH9,wW,UYN,JbE,KmA,dYy,IHG,YgE,lG,sd,HBQ,AbX,hn9,Vxs,T4X,Lmy,DYL,$YE,E9s,n9Q,o9E,IX,fNX,x$I,c9y,Q3A,ecE,m$X,bxX,lNE,s31,ZxE,aNI,CfA,S0Q,gW,J9s,K39,d$X,INX,uG,
jw,A9X,HxL,k8F,G8N,Tes,ixL,zcy,RcG,BeX,EnX,vny,nnA,onL,xHy,cDQ,yD1,pw$,Qts,Xw9,Ty,wwX,eEF,iG,lpX,bSX,stE,SR1,UHy,ZSs,apE,M4X,ChA,Ip$,YRQ,hEX,AD$,V4F,DH1,HS$,gnI,jtF,N9$,uA1,OSQ,W79,L7G,T9Q,zEs,t4y,nvX,ov1,fhI,xVG,cuE,vT,ptX,yuG,EI,QN$,eN1,FRF,mVX,wts,PPA,ahX,ZJF,CPQ,MiF,S9s,UV$,yX,JuE,KR$,dVX,Y9X,IhX,hN1,Vis,DVF,HJI,N8I,uGs,gvQ,LRX,iJ$,zNs,RNs,tiX,vds,B8F,EdG,xty,cp1,yps,pcL,Xcy,QwF,FK$,swF,lW1,Pk$,aWL,ZPE,qNI,Jp9,KK1,dtA,VnF,ApE,hhs,gd1,ux$,NfG,jwE,UI,OPX,kCE,GCX,LK9,Tf$,iPX,zhG,Rhy,vjQ,EjI,njA,
ojQ,fCQ,xWF,ca1,yaE,pe9,XeE,Qxy,eB1,mWE,FO1,we9,b8s,lC9,sxL,ra9,aCE,Z8A,Cs$,MJF,SXQ,UWN,qXX,KOI,dWy,JaG,gQ,hBX,VJF,DWs,H8L,gjA,uvy,jxX,GJF,TKQ,BK$,EP$,nP9,xL1,cBF,yBE,pQE,Q8E,XQE,FyN,mLX,bbI,s8L,P4y,MFE,ZbN,anF,C4Q,S3A,JB1,ULX,q3I,dLG,hvL,ABs,VFX,HbX,gPE,N3$,j8X,k_G,uWL,WyE,$L$,LyG,G_L,T3N,zvX,RvI,tFE,B3E,EWI,vWA,nWX,oWX,f0y,xZE,cYF,yYA,puE,QzA,FB9,mZs,XuE,eXI,l0N,P7Q,a0Q,YJs,JYs,I09,hXQ,dZA,zK,AYE,Vm1,H$N,un9,N0X,jzI,O$F,Ru,BT,WBE,$Zy,nU,oV,LB9,G$E,RXL,v4E,n41,o4X,fZs,xJs,ci9,p4G,QIX,X4I,edX,F6N,
mJs,w4L,cj,b6I,lZG,pU,sIy,ris,P8Q,aZE,Z6E,C8s,eh,FH,Me9,Sj9,mH,UJF,qjN,JiI,K6N,IZs,YjI,AiL,NU9,g4E,H61,uEQ,jIE,GL1,W61,$JG,kL$,L6y,bT,Rds,teI,BUL,vTI,ETE,oTE,yEX,xk1,lT,f3Q,F1Q,wrX,bO$,l3X,sn$,rEX,ZOA,Cpy,SFA,UkL,qFF,JEs,dk1,I3L,YF9,hJ1,Vd1,DkI,HOL,NSy,ujE,OO1,kb1,TSQ,iOA,zJs,tdE,RJ$,vuy,Eu1,nuA,ouX,fy9,xcs,pJs,cNs,QM9,FT1,sMX,rNE,Pu$,ayI,CuQ,Sh,qo,U_,MXX,SvI,UcG,qv$,dc1,KTF,Yv1,h7X,AN$,DcA,HNI,gu$,urE,ON9,WTN,$cE,LTs,KU,GF$,iNE,z79,BZN,vBX,dN,IV,oBL,EB$,fc1,y51,xy$,pOF,hy,XOs,eF9,wOI,lcL,Ay,r5E,
Pm9,ac$,ZvN,CmF,MZA,SWN,KdX,dyF,hFE,IcG,YW$,A5E,VZG,NPX,DyG,gBL,uMI,jE1,OvE,$yX,LdE,GWs,TP9,ivA,Ecy,vcX,yUs,X99,kC,e91,HTI,FQs,mNL,bmN,svX,rUE,UNN,qTX,RV,JUy,KQX,dNN,If9,YT9,AUX,DNA,h9X,V_X,Nas,gc1,ue$,jvy,OmX,kEG,WQA,$NE,LQX,GEX,R91,v1X,t_N,E1E,n1I,o1E,Ey,fPy,x5L,or,y3L,c3N,pay,QA9,e2E,FY$,waX,bA$,lP$,sAA,r3I,ZAN,S7E,J3G,q7s,KYE,d5Q,h2X,kzG,HA1,$5L,LYX,TDA,iAQ,R2Q,v3G,n3X,E31,fiE,xRX,cgN,ygQ,pSX,QdX,eWQ,wS9,bfE,liI,sdG,aiy,Pey,SrX,URI,qrQ,JgQ,KEN,dRE,YrL,ar,Ag$,SU,DRI,g39,NH$,WEF,LEL,zWA,t19,BHN,
EA$,nAE,oA1,x4E,yHL,ph1,eDs,m4I,ls1,b_$,wh9,Ir,rHG,sp9,P21,asI,Z_$,C2A,MvX,SYQ,U4E,JHL,KJE,d4N,YYL,Vv1,IsL,hDA,D4G,H_9,gAF,Ncy,jpG,O_L,zDI,RDE,tvG,BcA,vkQ,okX,gw,QLG,X3X,eI1,FFF,mzs,NI,u9,YE,Zu1,Oy,CDL,qiE,KFL,JnX,kJ,dzG,I9X,$ns;_.vI=function(v,E){if(Error.captureStackTrace)Error.captureStackTrace(this,_.vI);else{var n=Error().stack;n&&(this.stack=n)}v&&(this.message=String(v));E!==void 0&&(this.cause=E)};
EQ=function(){throw Error("B");};
vXE=function(v,E){E=String.fromCharCode.apply(null,E);return v==null?E:v+E};
fA1=function(v){var E=!1;E=E===void 0?!1:E;if(EXN){if(E&&(nX$?!v.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(v)))throw Error("C");v=(oXN||(oXN=new TextEncoder)).encode(v)}else{for(var n=0,f=new Uint8Array(3*v.length),x=0;x<v.length;x++){var y=v.charCodeAt(x);if(y<128)f[n++]=y;else{if(y<2048)f[n++]=y>>6|192;else{if(y>=55296&&y<=57343){if(y<=56319&&x<v.length){var Q=v.charCodeAt(++x);if(Q>=56320&&Q<=57343){y=(y-55296)*1024+Q-56320+65536;f[n++]=y>>18|
240;f[n++]=y>>12&63|128;f[n++]=y>>6&63|128;f[n++]=y&63|128;continue}else x--}if(E)throw Error("C");y=65533}f[n++]=y>>12|224;f[n++]=y>>6&63|128}f[n++]=y&63|128}}v=n===f.length?f:f.subarray(0,n)}return v};
o$=function(v){_.n1.setTimeout(function(){throw v;},0)};
_.cI=function(v,E){return v.lastIndexOf(E,0)==0};
p1=function(v,E){var n=v.length-E.length;return n>=0&&v.indexOf(E,n)==n};
_.XN=function(v){return/^[\s\xa0]*$/.test(v)};
_.FN=function(v,E){return v.indexOf(E)!=-1};
_.mX=function(v,E){return _.FN(v.toLowerCase(),E.toLowerCase())};
_.bE=function(v,E){var n=0;v=wL(String(v)).split(".");E=wL(String(E)).split(".");for(var f=Math.max(v.length,E.length),x=0;n==0&&x<f;x++){var y=v[x]||"",Q=E[x]||"";do{y=/(\d*)(\D*)(.*)/.exec(y)||["","","",""];Q=/(\d*)(\D*)(.*)/.exec(Q)||["","","",""];if(y[0].length==0&&Q[0].length==0)break;n=xFE(y[1].length==0?0:parseInt(y[1],10),Q[1].length==0?0:parseInt(Q[1],10))||xFE(y[2].length==0,Q[2].length==0)||xFE(y[2],Q[2]);y=y[3];Q=Q[3]}while(n==0)}return n};
xFE=function(v,E){return v<E?-1:v>E?1:0};
_.lE=function(){var v=_.n1.navigator;return v&&(v=v.userAgent)?v:""};
ZA=function(v){if(!sQ||!PI)return!1;for(var E=0;E<PI.brands.length;E++){var n=PI.brands[E].brand;if(n&&_.FN(n,v))return!0}return!1};
C1=function(v){return _.FN(_.lE(),v)};
S9=function(){return sQ?!!PI&&PI.brands.length>0:!1};
UQ=function(){return S9()?!1:C1("Opera")};
cGy=function(){return S9()?!1:C1("Trident")||C1("MSIE")};
yG$=function(){return S9()?ZA("Microsoft Edge"):C1("Edg/")};
dL=function(){return C1("Firefox")||C1("FxiOS")};
_.YX=function(){return C1("Safari")&&!(I$()||(S9()?0:C1("Coast"))||UQ()||(S9()?0:C1("Edge"))||yG$()||(S9()?ZA("Opera"):C1("OPR"))||dL()||C1("Silk")||C1("Android"))};
I$=function(){return S9()?ZA("Chromium"):(C1("Chrome")||C1("CriOS"))&&!(S9()?0:C1("Edge"))||C1("Silk")};
_.pIX=function(){return C1("Android")&&!(I$()||dL()||UQ()||C1("Silk"))};
Q$X=function(v){var E={};v.forEach(function(n){E[n[0]]=n[1]});
return function(n){return E[n.find(function(f){return f in E})]||""}};
XII=function(v){var E=_.lE();if(v==="Internet Explorer"){if(cGy())if((v=/rv: *([\d\.]*)/.exec(E))&&v[1])E=v[1];else{v="";var n=/MSIE +([\d\.]+)/.exec(E);if(n&&n[1])if(E=/Trident\/(\d.\d)/.exec(E),n[1]=="7.0")if(E&&E[1])switch(E[1]){case "4.0":v="8.0";break;case "5.0":v="9.0";break;case "6.0":v="10.0";break;case "7.0":v="11.0"}else v="7.0";else v=n[1];E=v}else E="";return E}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");n=[];for(var x;x=f.exec(E);)n.push([x[1],x[2],x[3]||void 0]);
E=Q$X(n);switch(v){case "Opera":if(UQ())return E(["Version","Opera"]);if(S9()?ZA("Opera"):C1("OPR"))return E(["OPR"]);break;case "Microsoft Edge":if(S9()?0:C1("Edge"))return E(["Edge"]);if(yG$())return E(["Edg"]);break;case "Chromium":if(I$())return E(["Chrome","CriOS","HeadlessChrome"])}return v==="Firefox"&&dL()||v==="Safari"&&_.YX()||v==="Android Browser"&&_.pIX()||v==="Silk"&&C1("Silk")?(E=n[2])&&E[1]||"":""};
_.eyE=function(v){if(S9()&&v!=="Silk"){var E=PI.brands.find(function(n){return n.brand===v});
if(!E||!E.version)return NaN;E=E.version.split(".")}else{E=XII(v);if(E==="")return NaN;E=E.split(".")}return E.length===0?NaN:Number(E[0])};
hG=function(){return sQ?!!PI&&!!PI.platform:!1};
_.FXX=function(){return hG()?PI.platform==="Android":C1("Android")};
mFL=function(){return C1("iPhone")&&!C1("iPod")&&!C1("iPad")};
_.VE=function(){return mFL()||C1("iPad")||C1("iPod")};
_.wIA=function(){return hG()?PI.platform==="macOS":C1("Macintosh")};
_.b1s=function(){return hG()?PI.platform==="Windows":C1("Windows")};
_.lA1=function(){return hG()?PI.platform==="Chrome OS":C1("CrOS")};
_.DA=function(v){return v[v.length-1]};
_.gL=function(v,E,n){E=_.s$X(v,E,n);return E<0?null:typeof v==="string"?v.charAt(E):v[E]};
_.s$X=function(v,E,n){for(var f=v.length,x=typeof v==="string"?v.split(""):v,y=0;y<f;y++)if(y in x&&E.call(n,x[y],y,v))return y;return-1};
rGX=function(v){for(var E=_.NF,n=typeof v==="string"?v.split(""):v,f=v.length-1;f>=0;f--)if(f in n&&E.call(void 0,n[f],f,v))return f;return-1};
_.L1=function(v,E){return _.OQ(v,E)>=0};
_.Gs=function(v,E){_.L1(v,E)||v.push(E)};
_.zs=function(v,E){E=_.OQ(v,E);var n;(n=E>=0)&&_.Ts(v,E);return n};
_.Ts=function(v,E){Array.prototype.splice.call(v,E,1)};
_.tG=function(v){var E=v.length;if(E>0){for(var n=Array(E),f=0;f<E;f++)n[f]=v[f];return n}return[]};
_.nl=function(v,E){for(var n=1;n<arguments.length;n++){var f=arguments[n];if(_.E1(f)){var x=v.length||0,y=f.length||0;v.length=x+y;for(var Q=0;Q<y;Q++)v[x+Q]=f[Q]}else v.push(f)}};
_.aAQ=function(v,E,n,f){Array.prototype.splice.apply(v,PE1(arguments,1))};
PE1=function(v,E,n){return arguments.length<=2?Array.prototype.slice.call(v,E):Array.prototype.slice.call(v,E,n)};
pl=function(v,E){E=E||v;for(var n=0,f=0,x={};f<v.length;){var y=v[f++],Q=_.oF(y)?"o"+_.xw(y):(typeof y).charAt(0)+y;Object.prototype.hasOwnProperty.call(x,Q)||(x[Q]=!0,E[n++]=y)}E.length=n};
_.Z1E=function(v,E,n){n=n||_.X1;for(var f=0,x=v.length,y;f<x;){var Q=f+(x-f>>>1);var e=n(E,v[Q]);e>0?f=Q+1:(x=Q,y=!e)}return y?f:-f-1};
_.F1=function(v,E,n){if(!_.E1(v)||!_.E1(E)||v.length!=E.length)return!1;var f=v.length;n=n||CEy;for(var x=0;x<f;x++)if(!n(v[x],E[x]))return!1;return!0};
_.X1=function(v,E){return v>E?1:v<E?-1:0};
CEy=function(v,E){return v===E};
M9s=function(v,E,n){E=Array.prototype.splice.call(v,E,1);Array.prototype.splice.call(v,n,0,E[0])};
UFN=function(v){return SQy[v]||""};
KXI=function(v){if(!qQE)return _.w1(v);v=JGE.test(v)?v.replace(JGE,UFN):v;v=atob(v);for(var E=new Uint8Array(v.length),n=0;n<v.length;n++)E[n]=v.charCodeAt(n);return E};
dFE=function(v,E){v.__closure__error__context__984382||(v.__closure__error__context__984382={});v.__closure__error__context__984382.severity=E};
_.PU=function(v){v=Error(v);dFE(v,"warning");return v};
Mi=function(v,E){if(v!=null){var n;var f=(n=IAN)!=null?n:IAN={};n=f[v]||0;n>=E||(f[v]=n+1,v=Error(),dFE(v,"incident"),o$(v))}};
So=function(v,E,n){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(n===void 0?0:n)&&Symbol.for&&v?Symbol.for(v):v!=null?Symbol(v):Symbol():E};
Kl=function(v,E){U1||_.J6 in v||YQE(v,hyG);v[_.J6]|=E};
Yw=function(v,E){U1||_.J6 in v||YQE(v,hyG);v[_.J6]=E};
AGN=function(v){if(4&v)return 512&v?512:1024&v?1024:0};
h6=function(v){Kl(v,34);return v};
V9G=function(v){Kl(v,32);return v};
A6=function(){return typeof BigInt==="function"};
HU=function(v,E){return E===void 0?v.copyOnWrite!==Dz&&!!(2&(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.J6]|0)):!!(2&E)&&v.copyOnWrite!==Dz};
_.jo=function(v,E){if(v!=null)if(typeof v==="string")v=v?new g1(v,Ni):_.uX();else if(v.constructor!==g1)if(DFE&&v!=null&&v instanceof Uint8Array)v=v.length?new g1(new Uint8Array(v),Ni):_.uX();else{if(!E)throw Error();v=void 0}return v};
O1=function(v,E){if(typeof E!=="number"||E<0||E>=v.length)throw Error();};
H1$=function(v,E,n){E=E&128?0:-1;var f=v.length,x;if(x=!!f)x=v[f-1],x=x!=null&&typeof x==="object"&&x.constructor===Object;for(var y=f+(x?-1:0),Q=0;Q<y;Q++)n(Q-E,v[Q]);if(x){v=v[f-1];for(var e in v)!isNaN(e)&&n(+e,v[e])}};
WU=function(v){return v&128?kw:void 0};
GS=function(v){v.isGuard_doNotManuallySetPrettyPlease=!0;return v};
NL1=function(){var v=gX9;return GS(function(E){for(var n in v)if(E===v[n]&&!/^[0-9]+$/.test(n))return!0;return!1})};
_.iX=function(v){var E=v;if(uNs(E)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(E))throw Error(String(E));}else if(j$E(E)&&!Number.isSafeInteger(E))throw Error(String(E));return TS?BigInt(v):v=O1G(v)?v?"1":"0":uNs(v)?v.trim()||"0":String(v)};
ksF=function(v,E){if(v.length>E.length)return!1;if(v.length<E.length||v===E)return!0;for(var n=0;n<v.length;n++){var f=v[n],x=E[n];if(f>x)return!1;if(f<x)return!0}};
WXN=function(v){var E=v>>>0;zS=E;RF=(v-E)/4294967296>>>0};
t6=function(v){if(v<0){WXN(-v);var E=_.p($FX(zS,RF));v=E.next().value;E=E.next().value;zS=v>>>0;RF=E>>>0}else WXN(v)};
LXL=function(v,E){var n=E*4294967296+(v>>>0);return Number.isSafeInteger(n)?n:_.BU(v,E)};
vb=function(v,E){var n=E&2147483648;n&&(v=~v+1>>>0,E=~E>>>0,v==0&&(E=E+1>>>0));v=LXL(v,E);return typeof v==="number"?n?-v:v:n?"-"+v:v};
_.BU=function(v,E){E>>>=0;v>>>=0;if(E<=2097151)var n=""+(4294967296*E+v);else A6()?n=""+(BigInt(E)<<BigInt(32)|BigInt(v)):(n=(v>>>24|E<<8)&16777215,E=E>>16&65535,v=(v&16777215)+n*6777216+E*6710656,n+=E*8147497,E*=2,v>=1E7&&(n+=v/1E7>>>0,v%=1E7),n>=1E7&&(E+=n/1E7>>>0,n%=1E7),n=E+Gs9(n)+Gs9(v));return n};
Gs9=function(v){v=String(v);return"0000000".slice(v.length)+v};
_.Ex=function(v,E){E&2147483648?A6()?v=""+(BigInt(E|0)<<BigInt(32)|BigInt(v>>>0)):(E=_.p($FX(v,E)),v=E.next().value,E=E.next().value,v="-"+_.BU(v,E)):v=_.BU(v,E);return v};
f0=function(v){if(v.length<16)t6(Number(v));else if(A6())v=BigInt(v),zS=Number(v&BigInt(4294967295))>>>0,RF=Number(v>>BigInt(32)&BigInt(4294967295));else{var E=+(v[0]==="-");RF=zS=0;for(var n=v.length,f=E,x=(n-E)%6+E;x<=n;f=x,x+=6)f=Number(v.slice(f,x)),RF*=1E6,zS=zS*1E6+f,zS>=4294967296&&(RF+=Math.trunc(zS/4294967296),RF>>>=0,zS>>>=0);E&&(E=_.p($FX(zS,RF)),v=E.next().value,E=E.next().value,zS=v,RF=E)}};
$FX=function(v,E){E=~E;v?v=~v+1:E+=1;return[v,E]};
xp=function(v){return Array.prototype.slice.call(v)};
_.p0=function(v,E){throw Error(E===void 0?"unexpected value "+v+"!":E);};
_.Q6=function(v){if(v!=null&&typeof v!=="number")throw Error("I`"+typeof v+"`"+v);return v};
_.Xd=function(v){if(v==null||typeof v==="number")return v;if(v==="NaN"||v==="Infinity"||v==="-Infinity")return Number(v)};
TLQ=function(v){if(v!=null&&typeof v!=="boolean")throw Error("J`"+_.eM(v)+"`"+v);return v};
_.i1G=function(v){if(v==null||typeof v==="boolean")return v;if(typeof v==="number")return!!v};
_.lC=function(v){switch(typeof v){case "bigint":return!0;case "number":return bC(v);case "string":return zyA.test(v);default:return!1}};
_.Pb=function(v){if(!bC(v))throw _.PU("enum");return v|0};
_.aO=function(v){return v==null?v:bC(v)?v|0:void 0};
RyG=function(v){if(typeof v!=="number")throw _.PU("int32");if(!bC(v))throw _.PU("int32");return v|0};
_.Z1=function(v){return v==null?v:RyG(v)};
_.MP=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return bC(v)?v|0:void 0};
_.SM=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return bC(v)?v>>>0:void 0};
Ews=function(v){var E=0;E=E===void 0?0:E;if(!_.lC(v))throw _.PU("int64");var n=typeof v;switch(E){case 512:switch(n){case "string":return Ux(v);case "bigint":return String(qP(64,v));default:return t9N(v)}case 1024:switch(n){case "string":return BLI(v);case "bigint":return _.iX(qP(64,v));default:return vwy(v)}case 0:switch(n){case "string":return Ux(v);case "bigint":return _.iX(qP(64,v));default:return K0(v)}default:return _.p0(E,"Unknown format requested type for int64")}};
d_=function(v){return v==null?v:Ews(v)};
nwL=function(v){if(v[0]==="-")return!1;var E=v.length;return E<20?!0:E===20&&Number(v.substring(0,6))<184467};
owE=function(v){var E=v.length;return v[0]==="-"?E<20?!0:E===20&&Number(v.substring(0,7))>-922337:E<19?!0:E===19&&Number(v.substring(0,6))<922337};
fz$=function(v){if(v<0){t6(v);var E=_.BU(zS,RF);v=Number(E);return IO(v)?v:E}E=String(v);if(nwL(E))return E;t6(v);return LXL(zS,RF)};
xiy=function(v){if(owE(v))return v;f0(v);return _.Ex(zS,RF)};
c6I=function(v){if(nwL(v))return v;f0(v);return _.BU(zS,RF)};
K0=function(v){v=hR(v);IO(v)||(t6(v),v=vb(zS,RF));return v};
_.y6I=function(v){v=hR(v);return v>=0&&IO(v)?v:fz$(v)};
t9N=function(v){v=hR(v);if(IO(v))v=String(v);else{var E=String(v);owE(E)?v=E:(t6(v),v=_.Ex(zS,RF))}return v};
_.pUE=function(v){v=hR(v);if(v>=0&&IO(v))v=String(v);else{var E=String(v);nwL(E)?v=E:(t6(v),v=_.BU(zS,RF))}return v};
Ux=function(v){var E=hR(Number(v));if(IO(E))return String(E);E=v.indexOf(".");E!==-1&&(v=v.substring(0,E));return xiy(v)};
BLI=function(v){var E=hR(Number(v));if(IO(E))return _.iX(E);E=v.indexOf(".");E!==-1&&(v=v.substring(0,E));return A6()?_.iX(qP(64,BigInt(v))):_.iX(xiy(v))};
vwy=function(v){return IO(v)?_.iX(K0(v)):_.iX(t9N(v))};
_.QFQ=function(v){return IO(v)?_.iX(_.y6I(v)):_.iX(_.pUE(v))};
_.XUX=function(v){var E=hR(Number(v));if(IO(E)&&E>=0)return String(E);E=v.indexOf(".");E!==-1&&(v=v.substring(0,E));return c6I(v)};
_.e4Q=function(v){var E=hR(Number(v));if(IO(E)&&E>=0)return _.iX(E);E=v.indexOf(".");E!==-1&&(v=v.substring(0,E));return A6()?_.iX((0,_.AR)(64,BigInt(v))):_.iX(c6I(v))};
_.Fgs=function(v){if(v==null)return v;if(typeof v==="bigint")return D1(v)?v=Number(v):(v=qP(64,v),v=D1(v)?Number(v):String(v)),v;if(_.lC(v))return typeof v==="number"?K0(v):Ux(v)};
miA=function(v,E){E=E===void 0?!1:E;var n=typeof v;if(v==null)return v;if(n==="bigint")return String(qP(64,v));if(_.lC(v))return n==="string"?Ux(v):E?t9N(v):K0(v)};
_.wUy=function(v){var E=typeof v;if(v==null)return v;if(E==="bigint")return _.iX(qP(64,v));if(_.lC(v))return E==="string"?BLI(v):vwy(v)};
blI=function(v){if(v==null)return v;var E=typeof v;if(E==="bigint")return String(qP(64,v));if(_.lC(v)){if(E==="string")return Ux(v);if(E==="number")return K0(v)}};
lzs=function(v){if(v==null)return v;var E=typeof v;if(E==="bigint")return String((0,_.AR)(64,v));if(_.lC(v)){if(E==="string")return _.XUX(v);if(E==="number")return _.y6I(v)}};
_.Hb=function(v){if(typeof v!=="string")throw Error();return v};
g_=function(v){if(v!=null&&typeof v!=="string")throw Error();return v};
_.NP=function(v){return v==null||typeof v==="string"?v:void 0};
sFy=function(v,E,n,f){if(v!=null&&v[uC]===jM)return v;if(!Array.isArray(v))return n?f&2?((v=E[Ox])||(v=new E,h6(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),v=E[Ox]=v),E=v):E=new E:E=void 0,E;n=v[_.J6]|0;f=n|f&32|f&2;f!==n&&Yw(v,f);return new E(v)};
r6Q=function(v,E,n){v=E?RyG(v):_.MP(v);return v==null?n?0:void 0:v|0};
PXQ=function(v){return v};
az$=function(v){return v};
CXN=function(v,E,n,f,x,y){v=sFy(v,f,n,y);x&&(v=ZlG(v));return v};
Moy=function(v){return[v,this.get(v)]};
q19=function(){return S1y||(S1y=new kp(h6([]),void 0,void 0,void 0,UiQ))};
L0=function(v){var E=Wb($p);return E?v[E]:void 0};
di9=function(v,E){var n=n===void 0?!1:n;if(Wb(J6L)&&Wb($p)&&void 0===J6L){var f=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=f[$p];if(!x)return;if(x=x.reviveUnknownFields)try{x(f,E,KgE);return}catch(y){o$(y)}}n&&(v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(n=Wb($p))&&n in v&&(v=v[n])&&delete v[E])};
Y19=function(v,E){var n=Wb($p),f;U1&&n&&((f=v[n])==null?void 0:f[E])!=null&&Mi(Izs,3)};
A6E=function(v,E){E<100||Mi(h4E,1)};
gw9=function(v,E,n,f){var x=f!==void 0;f=!!f;var y=Wb($p),Q;!x&&U1&&y&&(Q=v[y])&&G3(Q,A6E);y=[];var e=v.length;Q=4294967295;var F=!1,b=!!(E&64),l=b?E&128?0:-1:void 0;if(!(E&1)){var r=e&&v[e-1];r!=null&&typeof r==="object"&&r.constructor===Object?(e--,Q=e):r=void 0;if(b&&!(E&128)&&!x){F=!0;var a;Q=((a=VoX)!=null?a:PXQ)(Q-l,l,v,r)+l}}E=void 0;for(a=0;a<e;a++){var M=v[a];if(M!=null&&(M=n(M,f))!=null)if(b&&a>=Q){var U=a-l,d=void 0;((d=E)!=null?d:E={})[U]=M}else y[a]=M}if(r)for(var Y in r)e=r[Y],e!=null&&
(e=n(e,f))!=null&&(a=+Y,M=void 0,b&&!Number.isNaN(a)&&(M=a+l)<Q?y[M]=e:(a=void 0,((a=E)!=null?a:E={})[Y]=e));E&&(F?y.push(E):y[Q]=E);x&&Wb($p)&&(v=L0(v))&&v instanceof DiE&&(y[$p]=Hl$(v));return y};
N1s=function(v){v[0]=iC(v[0]);v[1]=iC(v[1]);return v};
iC=function(v){switch(typeof v){case "number":return Number.isFinite(v)?v:""+v;case "bigint":return D1(v)?Number(v):""+v;case "boolean":return v?1:0;case "object":if(Array.isArray(v)){var E=v[_.J6]|0;return v.length===0&&E&1?void 0:gw9(v,E,iC)}if(v!=null&&v[uC]===jM)return u1L(v);if(v instanceof g1){E=v.JSC$6706_value_;if(E==null)v="";else if(typeof E==="string")v=E;else{if(qQE){for(var n="",f=0,x=E.length-10240;f<x;)n+=String.fromCharCode.apply(null,E.subarray(f,f+=10240));n+=String.fromCharCode.apply(null,
f?E.subarray(f):E);E=btoa(n)}else E=_.z3(E);v=v.JSC$6706_value_=E}return v}if(v instanceof kp)return v=v.size!==0?Array.from(RO.prototype.entries.call(v),N1s):void 0,v;return}return v};
tR=function(v,E){if(E){VoX=E==null||E===PXQ||E[jFy]!==Oly?PXQ:E;try{return u1L(v)}finally{VoX=void 0}}return u1L(v)};
u1L=function(v){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gw9(v,v[_.J6]|0,iC)};
$iE=function(v){switch(typeof v){case "boolean":return kSE||(kSE=[0,void 0,!0]);case "number":return v>0?void 0:v===0?WgX||(WgX=[0,void 0]):[-v,void 0];case "string":return[0,v];case "object":return v}};
Em=function(v,E,n){return v=_.Bb(v,E[0],E[1],n?1:2)};
_.Bb=function(v,E,n,f){f=f===void 0?0:f;if(v==null){var x=32;n?(v=[n],x|=128):v=[];E&&(x=x&-8380417|(E&1023)<<13)}else{if(!Array.isArray(v))throw Error("L");x=v[_.J6]|0;2048&x&&!(2&x)&&LgQ();if(x&256)throw Error("N");if(x&64)return f!==0||x&2048||Yw(v,x|2048),v;if(n&&(x|=128,n!==v[0]))throw Error("O");a:{n=v;x|=64;var y=n.length;if(y){var Q=y-1,e=n[Q];if(e!=null&&typeof e==="object"&&e.constructor===Object){E=x&128?0:-1;Q-=E;if(Q>=1024)throw Error("Q");for(var F in e)y=+F,y<Q&&(n[y+E]=e[F],delete e[F]);
x=x&-8380417|(Q&1023)<<13;break a}}if(E){F=Math.max(E,y-(x&128?0:-1));if(F>1024)throw Error("R");x=x&-8380417|(F&1023)<<13}}}x|=64;f===0&&(x|=2048);Yw(v,x);return v};
LgQ=function(){Mi(GSQ,5)};
z4Q=function(v,E){if(typeof v!=="object")return v;if(Array.isArray(v)){var n=v[_.J6]|0;return v.length===0&&n&1?void 0:T1I(v,n,E)}if(v!=null&&v[uC]===jM)return ilG(v);if(v instanceof kp){E=v.arrayState;if(E&2)return v;if(!v.size)return;n=h6(Array.from(RO.prototype.entries.call(v)));if(v.valueCtor)for(v=0;v<n.length;v++){var f=n[v],x=f[1];x==null||typeof x!=="object"?x=void 0:x!=null&&x[uC]===jM?x=ilG(x):Array.isArray(x)?x=T1I(x,x[_.J6]|0,!!(E&32)):x=void 0;f[1]=x}return n}if(v instanceof g1)return v};
T1I=function(v,E,n){if(E&2)return v;!n||4096&E||16&E?v=nW(v,E,!1,n&&!(E&16)):(Kl(v,34),E&4&&Object.freeze(v));return v};
fW=function(v,E,n){v=new v.constructor(E);n&&(v.copyOnWrite=Dz);v.noLegacyNull=Dz;return v};
ilG=function(v){var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=E[_.J6]|0;return HU(v,n)?v:xb(v,E,n)?fW(v,E):nW(E,n)};
nW=function(v,E,n,f){f!=null||(f=!!(34&E));v=gw9(v,E,z4Q,f);f=32;n&&(f|=2);E=E&8380609|f;Yw(v,E);return v};
ZlG=function(v){var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=E[_.J6]|0;return HU(v,n)?xb(v,E,n)?fW(v,E,!0):new v.constructor(nW(E,n,!1)):v};
cz=function(v){if(v.copyOnWrite!==Dz)return!1;var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=nW(E,E[_.J6]|0);Kl(E,2048);v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=E;v.copyOnWrite=void 0;v.noLegacyNull=void 0;return!0};
yj=function(v){if(!cz(v)&&HU(v,v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.J6]|0))throw Error();};
pW=function(v,E){E===void 0&&(E=v[_.J6]|0);E&32&&!(E&4096)&&Yw(v,E|4096)};
xb=function(v,E,n){return n&2?!0:n&32&&!(n&4096)?(Yw(E,n|2),v.copyOnWrite=Dz,!0):!1};
Qj=function(v,E,n,f,x){var y=n+(x?0:-1),Q=v.length-1;if(Q>=1+(x?0:-1)&&y>=Q){var e=v[Q];if(e!=null&&typeof e==="object"&&e.constructor===Object)return e[n]=f,E}if(y<=Q)return v[y]=f,E;if(f!==void 0){var F;Q=((F=E)!=null?F:E=v[_.J6]|0)>>13&1023||536870912;n>=Q?f!=null&&(y={},v[Q+(x?0:-1)]=(y[n]=f,y)):v[y]=f}return E};
_.m9=function(v,E,n,f,x){var y=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=y[_.J6]|0;f=HU(v,Q)?1:f;x=!!x||f===3;f===2&&cz(v)&&(y=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=y[_.J6]|0);v=R4F(y,E);var e=v===et?7:v[_.J6]|0,F=toI(e,Q);var b=4&F?!1:!0;if(b){4&F&&(v=xp(v),e=0,F=FL(F,Q),Q=Qj(y,Q,E,v));for(var l=0,r=0;l<v.length;l++){var a=n(v[l]);a!=null&&(v[r++]=a)}r<l&&(v.length=r);n=(F|4)&-513;F=n&=-1025;F&=-4097}F!==e&&(Yw(v,F),2&F&&Object.freeze(v));return v=B1X(v,F,y,
Q,E,f,b,x)};
B1X=function(v,E,n,f,x,y,Q,e){var F=E;y===1||(y!==4?0:2&E||!(16&E)&&32&f)?br(E)||(E|=!v.length||Q&&!(4096&E)||32&f&&!(4096&E||16&E)?2:256,E!==F&&Yw(v,E),Object.freeze(v)):(y===2&&br(E)&&(v=xp(v),F=0,E=FL(E,f),f=Qj(n,f,x,v)),br(E)||(e||(E|=16),E!==F&&Yw(v,E)));2&E||!(4096&E||16&E)||pW(n,f);return v};
R4F=function(v,E,n){v=sm(v,E,n);return Array.isArray(v)?v:et};
toI=function(v,E){2&E&&(v|=2);return v|1};
br=function(v){return!!(2&v)&&!!(4&v)||!!(256&v)};
vpE=function(v){return _.jo(v,!0)};
Epy=function(v,E){var n=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=n[_.J6]|0;a:{var x=f;f=HU(v,f);!f&&cz(v)&&(n=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=n[_.J6]|0);var y=sm(n,E);v=!1;if(y==null){if(f){E=q19();break a}y=[]}else if(y.constructor===kp)if(y.arrayState&2&&!f)y=Array.from(RO.prototype.entries.call(y));else{E=y;break a}else Array.isArray(y)?v=!!((y[_.J6]|0)&2):y=[];if(f){if(!y.length){E=q19();break a}v||(v=!0,h6(y))}else if(v){v=!1;f=y;f=xp(f);for(y=0;y<
f.length;y++){var Q=f[y]=xp(f[y]);Array.isArray(Q[1])&&(Q[1]=h6(Q[1]))}y=f}!v&&x&32&&V9G(y);f=new kp(y,void 0,r6Q,r6Q);x=Qj(n,x,E,f);v||pW(n,x);E=f}return E};
_.r2=function(v,E,n,f){yj(v);var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=x[_.J6]|0;if(n==null)return Qj(x,y,E),v;var Q=n===et?7:n[_.J6]|0,e=Q,F=br(Q),b=F||Object.isFrozen(n);F||(Q=0);b||(n=xp(n),e=0,Q=FL(Q,y),b=!1);Q|=5;var l;F=(l=AGN(Q))!=null?l:0;for(l=0;l<n.length;l++){var r=n[l],a=f(r,F);Object.is(r,a)||(b&&(n=xp(n),e=0,Q=FL(Q,y),b=!1),n[l]=a)}Q!==e&&(b&&(n=xp(n),Q=FL(Q,y)),Yw(n,Q));Qj(x,y,E,n);return v};
_.Pz=function(v,E,n,f,x){yj(v);var y=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Qj(y,y[_.J6]|0,E,(f==="0"?Number(n)===0:n===f)?void 0:n,x);return v};
_.CW=function(v,E,n){if(E&2)throw Error();var f=WU(E),x=R4F(v,n,f),y=x===et?7:x[_.J6]|0,Q=toI(y,E);if(2&Q||br(Q)||16&Q)x=xp(x),y=0,Q=FL(Q,E),Qj(v,E,n,x,f);Q&=-13;Q!==y&&Yw(x,Q);return x};
npX=function(v){if(U1){var E;return(E=v[St])!=null?E:v[St]=new Map}if(St in v)return v[St];E=new Map;Object.defineProperty(v,St,{value:E});return E};
f1X=function(v,E,n,f,x){var y=npX(v),Q=op9(y,v,E,n,x);Q!==f&&(Q&&(E=Qj(v,E,Q,void 0,x)),y.set(n,f));return E};
op9=function(v,E,n,f,x){var y=v.get(f);if(y!=null)return y;for(var Q=y=0;Q<f.length;Q++){var e=f[Q];sm(E,e,x)!=null&&(y!==0&&(n=Qj(E,n,y,void 0,x)),y=e)}v.set(f,y);return y};
Um=function(v,E,n,f,x){var y=!1;f=sm(v,f,x,function(Q){var e=sFy(Q,n,!1,E);y=e!==Q&&e!=null;return e});
if(f!=null)return y&&!HU(f)&&pW(v,E),f};
xPX=function(v,E,n,f,x,y,Q,e){var F=HU(v,n);y=F?1:y;Q=!!Q||y===3;F=e&&!F;(y===2||F)&&cz(v)&&(E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=E[_.J6]|0);v=R4F(E,x);var b=v===et?7:v[_.J6]|0,l=toI(b,n);if(e=!(4&l)){var r=v,a=n,M=!!(2&l);M&&(a|=2);for(var U=!M,d=!0,Y=0,V=0;Y<r.length;Y++){var O=sFy(r[Y],f,!1,a);if(O instanceof f){if(!M){var T=HU(O);U&&(U=!T);d&&(d=T)}r[V++]=O}}V<Y&&(r.length=V);l|=4;l=d?l&-4097:l|4096;l=U?l|8:l&-9}l!==b&&(Yw(v,l),2&l&&Object.freeze(v));if(F&&!(8&l||!v.length&&
(y===1||(y!==4?0:2&l||!(16&l)&&32&n)))){br(l)&&(v=xp(v),l=FL(l,n),n=Qj(E,n,x,v));f=v;F=l;for(b=0;b<f.length;b++)r=f[b],l=ZlG(r),r!==l&&(f[b]=l);F|=8;l=F=f.length?F|4096:F&-4097;Yw(v,l)}return v=B1X(v,l,E,n,x,y,e,Q)};
cRs=function(v){v==null&&(v=void 0);return v};
FL=function(v,E){return v=(2&E?v|2:v&-3)&-273};
_.yRA=function(v,E,n,f,x){yj(v);E=_.m9(v,E,x,2,!0);var y;x=(y=AGN(E===et?7:E[_.J6]|0))!=null?y:0;E.push(n(f,x));return v};
pby=function(v,E,n,f,x,y,Q){yj(v);var e=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;v=xPX(v,e,e[_.J6]|0,n,E,2,!0);if(y&&Q)x!=null||(x=v.length-1),O1(v,x),v.splice(x,y),v.length||(v[_.J6]&=-4097);else{if(y){if(typeof x!=="number"||x<0||x>v.length)throw Error();}else f=f!=null?f:new n;x!=void 0?v.splice(x,y,f):v.push(f);x=n=v===et?7:v[_.J6]|0;(f=HU(f))?(n&=-9,v.length===1&&(n&=-4097)):n|=4096;n!==x&&Yw(v,n);f||pW(e)}};
QOE=function(v,E){if(typeof v==="string")return new qn(KXI(v),E);if(Array.isArray(v))return new qn(new Uint8Array(v),E);if(v.constructor===Uint8Array)return new qn(v,!1);if(v.constructor===ArrayBuffer)return v=new Uint8Array(v),new qn(v,!1);if(v.constructor===g1)return E=KW(v)||new Uint8Array(0),new qn(E,!0,v);if(v instanceof Uint8Array)return v=v.constructor===Uint8Array?v:new Uint8Array(v.buffer,v.byteOffset,v.byteLength),new qn(v,!1);throw Error();};
_.IK=function(){var v=function(){throw Error();};
Object.setPrototypeOf(v,v.prototype);return v};
eKy=function(v,E){var n=n===void 0?XbN:n;return new Yb(v,E,n)};
b0E=function(v,E,n,f,x){E=FUE(E,f);E!=null&&(n=_.mPX(v,n),x(E,v),_.wbX(v,n))};
Aj=function(v,E,n,f){var x=f[v];if(x)return x;x={};x.binaryFields=f;x.messageMetadata=$iE(f[0]);var y=f[1],Q=1;y&&y.constructor===Object&&(x.extensions=y,y=f[++Q],typeof y==="function"&&(x.isMessageSet=!0,l1X!=null||(l1X=y),sOy!=null||(sOy=f[Q+1]),y=f[Q+=2]));for(var e={};y&&Array.isArray(y)&&y.length&&typeof y[0]==="number"&&y[0]>0;){for(var F=0;F<y.length;F++)e[y[F]]=y;y=f[++Q]}for(F=1;y!==void 0;){typeof y==="number"&&(F+=y,y=f[++Q]);var b=void 0;if(y instanceof Yb)var l=y;else l=rRG,Q--;y=void 0;
if((y=l)==null?0:y.$$isMsg){y=f[++Q];b=f;var r=Q;typeof y==="function"&&(y=y(),b[r]=y);b=y}y=f[++Q];r=F+1;typeof y==="number"&&y<0&&(r-=y,y=f[++Q]);for(;F<r;F++){var a=e[F];b?n(x,F,l,b,a):E(x,F,l,a)}}return f[v]=x};
a19=function(v){return Array.isArray(v)?v[0]instanceof Yb?v:[PCX,v]:[v,void 0]};
FUE=function(v,E){if(v instanceof _.Vj)return v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(v))return Em(v,E,!1)};
Z0Q=function(v,E,n,f){var x=n.$$binaryReaderFn;v[E]=f?function(y,Q,e){return x(y,Q,e,f)}:x};
CCy=function(v,E,n,f,x){var y=n.$$binaryReaderFn,Q,e;v[E]=function(F,b,l){return y(F,b,l,e||(e=Aj(DL,Z0Q,CCy,f).messageMetadata),Q||(Q=MML(f)),x)}};
MML=function(v){var E=v[SxF];if(E!=null)return E;var n=Aj(DL,Z0Q,CCy,v);E=n.isMessageSet?function(f,x){return l1X(f,x,n)}:function(f,x){for(;UPI(x)&&x.nextWireType_!=4;){var y=x.nextField_,Q=n[y];
if(Q==null){var e=n.extensions;e&&(e=e[y])&&(e=qxN(e),e!=null&&(Q=n[y]=e))}if(Q==null||!Q(x,f,y)){e=x;Q=e.fieldCursor_;Hz(e);if(e.discardUnknownFields)var F=void 0;else{var b=e.decoder_.cursor_-Q;e.decoder_.cursor_=Q;F=JRA(e.decoder_,b)}b=e=Q=void 0;var l=f;F&&((Q=(e=(b=l[$p])!=null?b:l[$p]=new DiE)[y])!=null?Q:e[y]=[]).push(F)}}if(f=L0(f))f.reviveUnknownFields=n.binaryFields[KU$];return!0};
v[SxF]=E;v[KU$]=dPE.bind(v);return E};
dPE=function(v,E,n,f){var x=this[DL],y=this[SxF],Q=Em(void 0,x.messageMetadata,!1),e=L0(v);if(e){var F=!1,b=x.extensions;if(b){x=function(U,d,Y){if(Y.length!==0)if(b[d])for(U=_.p(Y),d=U.next();!d.done;d=U.next()){d=I1G(d.value);try{F=!0,y(Q,d)}finally{d.free()}}else f==null||f(v,d,Y)};
if(E==null)G3(e,x);else if(e!=null){var l=e[E];l&&x(e,E,l)}if(F){var r=v[_.J6]|0;if(r&2&&r&2048&&(n==null||!n.reviveIntoImmutable))throw Error();var a=WU(r),M=function(U,d){if(sm(v,U,a)!=null)switch(n==null?void 0:n.resolutionBehavior){case 1:return;default:throw Error();}d!=null&&(r=Qj(v,r,U,d,a));delete e[U]};
E==null?H1$(Q,Q[_.J6]|0,function(U,d){M(U,d)}):M(E,sm(Q,E,a))}}}};
qxN=function(v){v=a19(v);var E=v[0].$$binaryReaderFn;if(v=v[1]){var n=MML(v),f=Aj(DL,Z0Q,CCy,v).messageMetadata;return function(x,y,Q){return E(x,y,Q,f,n)}}return E};
g2=function(v,E,n){v[E]=n.$$binaryWriterFn};
ur=function(v,E,n,f){var x,y,Q=n.$$binaryWriterFn;v[E]=function(e,F,b){return Q(e,F,b,y||(y=Aj(Nn,g2,ur,f).messageMetadata),x||(x=YxL(f)))}};
YxL=function(v){var E=v[hKL];if(!E){var n=Aj(Nn,g2,ur,v);E=function(f,x){return ARy(f,x,n)};
v[hKL]=E}return E};
ARy=function(v,E,n){H1$(v,v[_.J6]|0,function(f,x){if(x!=null){var y=VME(n,f);y?y(E,x,f):f<500||Mi(DPA,3)}});
(v=L0(v))&&G3(v,function(f,x,y){jt(E,E.encoder_.end());for(f=0;f<y.length;f++)jt(E,KW(y[f])||new Uint8Array(0))})};
VME=function(v,E){var n=v[E];if(n)return n;if(n=v.extensions)if(n=n[E]){n=a19(n);var f=n[0].$$binaryWriterFn;if(n=n[1]){var x=YxL(n),y=Aj(Nn,g2,ur,n).messageMetadata;n=v.isMessageSet?sOy(y,x):function(Q,e,F){return f(Q,e,F,y,x)}}else n=f;
return v[E]=n}};
_.H0G=function(v,E,n){if(Array.isArray(E)){var f=E[_.J6]|0;if(f&4)return E;for(var x=0,y=0;x<E.length;x++){var Q=v(E[x]);Q!=null&&(E[y++]=Q)}y<x&&(E.length=y);n&&(Yw(E,(f|5)&-1537),f&2&&Object.freeze(E));return E}};
_.Om=function(v,E,n){return new Yb(v,E,n)};
_.gpQ=function(v,E,n){return new Yb(v,E,n)};
_.kb=function(v,E,n){Qj(v,v[_.J6]|0,E,n,WU(v[_.J6]|0))};
N_N=function(v,E,n){E=_.Xd(E);E!=null&&(_.Wz(v,n,1),v=v.encoder_,n=LW||(LW=new DataView(new ArrayBuffer(8))),n.setFloat64(0,+E,!0),zS=n.getUint32(0,!0),RF=n.getUint32(4,!0),_.GZ(v,zS),_.GZ(v,RF))};
_.TZ=function(v,E,n){E=blI(E);if(E!=null){switch(typeof E){case "string":udI(E)}if(E!=null)switch(_.Wz(v,n,0),typeof E){case "number":v=v.encoder_;t6(E);jOG(v,zS,RF);break;case "bigint":n=BigInt.asUintN(64,E);n=new O0G(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));jOG(v.encoder_,n.JSC$6763_lo,n.JSC$6763_hi);break;default:n=udI(E),jOG(v.encoder_,n.JSC$6763_lo,n.JSC$6763_hi)}}};
WUI=function(v,E,n){E=_.MP(E);E!=null&&E!=null&&(_.Wz(v,n,0),_.k3L(v.encoder_,E))};
_.LUL=function(v,E,n){$PL(v,n,lzs(E))};
_.G3$=function(v,E,n){E=_.i1G(E);E!=null&&(_.Wz(v,n,0),v.encoder_.JSC$6765_buffer_.push(E?1:0))};
_.i0s=function(v,E,n){E=_.NP(E);E!=null&&T_$(v,n,fA1(E))};
zKs=function(v,E,n,f,x){E=FUE(E,f);E!=null&&(n=_.mPX(v,n),x(E,v),_.wbX(v,n))};
_.RKQ=function(v,E,n){E=E==null||typeof E=="string"||E instanceof g1?E:void 0;E!=null&&T_$(v,n,QOE(E,!0).buffer)};
_.tMN=function(v,E,n){E=_.MP(E);E!=null&&(E=parseInt(E,10),_.Wz(v,n,0),_.k3L(v.encoder_,E))};
_.ir=function(v,E){return function(n,f){var x={treatNewDataAsImmutable:!0};f&&Object.assign(x,f);n=I1G(n,void 0,void 0,x);try{var y=new v,Q=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;MML(E)(Q,n);var e=y}finally{n.free()}return e}};
_.zZ=function(v){return function(E){return B_$(E,v)}};
vbG=function(v){return function(){return B_$(this,v)}};
_.EbX=function(v){return GS(function(E){return E instanceof v&&!HU(E)})};
_.RK=function(v){return function(E){return obE(v,E)}};
yjE=function(v,E){return fLy({child:v,origin:E||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:xnE,getPayloadCase:function(n){return n.getPayloadCase()},
createInitMessage:function(n){var f=new tj,x=new cjE;n=_.Bz(x,1,n);return _.v5(f,5,Ew,n)}})};
nc=function(v){return{valueOf:v}.valueOf()};
QKE=function(){var v=null;if(!pzN)return v;try{var E=function(n){return n};
v=pzN.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(n){}return v};
e_Q=function(){XzN===void 0&&(XzN=QKE());return XzN};
_.xR=function(v){var E=e_Q();v=E?E.createScriptURL(v):v;return new oC(v)};
_.c5=function(v){if(v instanceof oC)return v.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
yv=function(v){return v.toString().indexOf("`")===-1};
Qv=function(v){return new _.pc(F99,v)};
X_=function(v){return v instanceof _.pc};
_.ec=function(v){if(X_(v))return v.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
F_=function(v){return new mnN(function(E){return E.substr(0,v.length+1).toLowerCase()===v+":"})};
m_=function(v,E){E=E===void 0?wzL:E;if(X_(v))return v;for(var n=0;n<E.length;++n){var f=E[n];if(f instanceof mnN&&f.isValid(v))return Qv(v)}};
_.bW=function(v,E){E=E===void 0?wzL:E;return m_(v,E)||wV};
_.lW=function(v){var E=window;if(typeof MediaSource!=="undefined"&&v instanceof MediaSource||typeof E.ManagedMediaSource!=="undefined"&&v instanceof E.ManagedMediaSource)return Qv(URL.createObjectURL(v));E=v.type;E.toLowerCase()==="application/octet-stream"?E=!0:(E=E.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),E=(E==null?void 0:E.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(E[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(E[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(E[1])||/^font\/[\w-]+$/i.test(E[1])));if(!E)throw Error("da");return Qv(URL.createObjectURL(v))};
_.aC=function(v){for(var E=_.rV.apply(1,arguments),n=[v[0]],f=0;f<E.length;f++)n.push(String(E[f])),n.push(v[f+1]);return Qv(n.join(""))};
_.lLN=function(v){if(!bWI){a:{var E=document.createElement("a");try{E.href=v}catch(n){v=void 0;break a}v=E.protocol;v=v===":"||v===""?"https:":v}return v}try{E=new URL(v)}catch(n){return"https:"}return E.protocol};
_.Zd=function(v){v instanceof _.pc?v=_.ec(v):v=sKG.test(v)?v:void 0;return v};
Cc=function(v,E){E=_.Zd(E);E!==void 0&&(v.href=E)};
Sc=function(v){var E=e_Q();v=E?E.createHTML(v):v;return new Ma(v)};
Uw=function(v){if(v instanceof Ma)return v.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.qa=function(v,E){v.src=_.c5(E).toString()};
rjE=function(v,E){v.setAttribute("sandbox","");for(var n=0;n<E.length;n++)v.sandbox.supports&&!v.sandbox.supports(E[n])||v.sandbox.add(E[n])};
_.PrG=function(v,E,n){v.removeAttribute("srcdoc");switch(E){case 0:if(n instanceof oC)throw new JA("TrustedResourceUrl",0);rjE(v,[]);E=_.Zd(n);E!==void 0&&(v.src=E);break;case 1:if(!(n instanceof oC))throw new JA(typeof n,1);rjE(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.qa(v,n);break;case 2:if(n instanceof oC)throw new JA("TrustedResourceUrl",2);rjE(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
E=_.Zd(n);E!==void 0&&(v.src=E);break;default:_.p0(E)}};
_.Kc=function(v,E,n,f){E=_.Zd(E);return E!==void 0?v.open(E,n,f):null};
_.dV=function(v){v=v===void 0?document:v;var E,n;v=(n=(E=v).querySelector)==null?void 0:n.call(E,"script[nonce]");return v==null?"":v.nonce||v.getAttribute("nonce")||""};
_.YR=function(v){var E=e_Q();v=E?E.createScript(v):v;return new _.IC(v)};
hA=function(v){if(v instanceof _.IC)return v.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
aLX=function(v){var E=_.dV(v.ownerDocument);E&&v.setAttribute("nonce",E)};
_.AA=function(v,E){v.textContent=hA(E);aLX(v)};
_.Vv=function(v,E){v.src=_.c5(E);aLX(v)};
_.Dd=function(v,E){if(v.nodeType===1&&/^(script|style)$/i.test(v.tagName))throw Error("da");v.innerHTML=Uw(E)};
_.H5=function(v,E,n,f){if(v.length===0)throw Error("da");v=v.map(function(y){if(y instanceof ZWX)y=y.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return y});
var x=n.toLowerCase();if(v.every(function(y){return x.indexOf(y)!==0}))throw Error("ea`"+n);
E.setAttribute(n,f)};
_.gV=function(v,E,n){if(E instanceof oC)v.href=_.c5(E).toString(),v.rel=n;else{if(Crs.indexOf(n)===-1)throw Error("fa`"+n);E=_.Zd(E);E!==void 0&&(v.href=E,v.rel=n)}};
MtA=function(v){return"function"==typeof _.Na&&v instanceof _.Na};
_.Smy=function(v){if(MtA(v))return v.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.jc=function(v,E){E=_.Zd(E);E!==void 0&&(v.href=E)};
Ow=function(v,E){v&&(E=v.indexOf(E),0<=E&&v.splice(E,1))};
kR=function(v){return typeof v==="function"};
UnN=function(v){return v instanceof W5||v&&"closed"in v&&kR(v.remove)&&kR(v.add)&&kR(v.unsubscribe)};
$R=function(){};
Lc=function(v){qmE(function(){throw v;})};
Gd=function(v){return v};
Td=function(){return JjX(_.rV.apply(0,arguments))};
JjX=function(v){return v.length===0?Gd:v.length===1?v[0]:function(E){return v.reduce(function(n,f){return f(n)},E)}};
K9L=function(v){var E;return(E=v!=null?v:void 0)!=null?E:Promise};
dnX=function(v,E){return new iW(function(n){var f=0;return E.schedule(function(){f===v.length?n.complete():(n.next(v[f++]),n.closed||this.schedule())})})};
ILF=function(v,E){if(!v)throw Error("ga");return new iW(function(n){var f=new W5;f.add(E.schedule(function(){var x=v[Symbol.asyncIterator]();f.add(E.schedule(function(){var y=this;x.next().then(function(Q){Q.done?n.complete():(n.next(Q.value),y.schedule())})}))}));
return f})};
Ym$=function(v,E,n){E=E.schedule(function(){try{n.call(this)}catch(f){v.error(f)}},0);
v.add(E)};
h_E=function(v,E){return new iW(function(n){var f;n.add(E.schedule(function(){f=v[zd]();Ym$(n,E,function(){var x=f.next(),y=x.value;x.done?n.complete():(n.next(y),this.schedule())})}));
return function(){var x;return kR((x=f)==null?void 0:x.return)&&f.return()}})};
Ajy=function(v,E){return new iW(function(n){var f=new W5;f.add(E.schedule(function(){var x=v[RC]();f.add(x.subscribe({next:function(y){f.add(E.schedule(function(){return n.next(y)}))},
error:function(y){f.add(E.schedule(function(){return n.error(y)}))},
complete:function(){f.add(E.schedule(function(){return n.complete()}))}}))}));
return f})};
VtF=function(v,E){return new iW(function(n){return E.schedule(function(){return v.then(function(f){n.add(E.schedule(function(){n.next(f);n.add(E.schedule(function(){return n.complete()}))}))},function(f){n.add(E.schedule(function(){return n.error(f)}))})})})};
Dny=function(v){return new TypeError("ha`"+(v!==null&&typeof v==="object"?"an invalid object":"'"+v+"'"))};
gb9=function(v,E){if(v!=null){if(kR(v[RC]))return Ajy(v,E);if(HW1(v))return dnX(v,E);if(kR(v==null?void 0:v.then))return VtF(v,E);if(Symbol.asyncIterator&&kR(v==null?void 0:v[Symbol.asyncIterator]))return ILF(v,E);if(kR(v==null?void 0:v[zd]))return h_E(v,E)}throw Dny(v);};
B5=function(v,E){return E?gb9(v,E):tA(v)};
tA=function(v){if(v instanceof iW)return v;if(v!=null){if(kR(v[RC]))return N2X(v);if(HW1(v))return uLX(v);if(kR(v==null?void 0:v.then))return jKA(v);if(Symbol.asyncIterator&&kR(v==null?void 0:v[Symbol.asyncIterator]))return OW1(v);if(kR(v==null?void 0:v[zd]))return kZE(v)}throw Dny(v);};
N2X=function(v){return new iW(function(E){var n=v[RC]();if(kR(n.subscribe))return n.subscribe(E);throw new TypeError("ia");})};
uLX=function(v){return new iW(function(E){for(var n=0;n<v.length&&!E.closed;n++)E.next(v[n]);E.complete()})};
jKA=function(v){return new iW(function(E){v.then(function(n){E.closed||(E.next(n),E.complete())},function(n){return E.error(n)}).then(null,Lc)})};
kZE=function(v){return new iW(function(E){for(var n=v[zd]();!E.closed;){var f=n.next(),x=f.value;f.done?E.complete():E.next(x)}return function(){return kR(n==null?void 0:n.return)&&n.return()}})};
OW1=function(v){return new iW(function(E){W9I(v,E).catch(function(n){return E.error(n)})})};
W9I=function(v,E){var n,f,x,y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:_.vW(F,2,3);var b=v[Symbol.asyncIterator];y=b!==void 0?b.call(v):new $ns(_.p(v));case 5:return _.m(F,y.next(),8);case 8:f=F.yieldResult;if(f.done){F.jumpTo(3);break}Q=f.value;E.next(Q);F.jumpTo(5);break;case 3:_.nI(F);_.ol(F,9);if(!f||f.done||!(x=y.return)){F.jumpTo(9);break}return _.m(F,x.call(y),9);case 9:_.nI(F,0,0,1);if(n)throw n.error;_.xh(F,10,1);break;case 10:_.xh(F,4);break;case 2:e=_.cW(F);n={error:e};F.jumpTo(3);
break;case 4:E.complete(),_.yQ(F)}})};
pI=function(v,E){return E?dnX(v,E):uLX(v)};
L9E=function(v){return kR(v[v.length-1])?v.pop():void 0};
QQ=function(v){var E=v[v.length-1];return E&&kR(E.schedule)?v.pop():void 0};
Xt=function(){var v=_.rV.apply(0,arguments),E=QQ(v);return E?dnX(v,E):pI(v)};
Ft=function(v){var E=kR(v)?v:function(){return v};
return new iW(function(n){return n.error(E())})};
mZ=function(v){return function(E){if(kR(E==null?void 0:E.lift))return E.lift(function(n){try{return v(n,this)}catch(f){this.error(f)}});
throw new TypeError("ja");}};
b_=function(){return mZ(function(v,E){var n=null;v._refCount++;var f=new wY(E,void 0,void 0,void 0,function(){if(!v||v._refCount<=0||0<--v._refCount)n=null;else{var x=v._connection,y=n;n=null;!x||y&&x!==y||x.unsubscribe();E.unsubscribe()}});
v.subscribe(f);f.closed||(n=v.connect())})};
T2L=function(){var v=GZE;var E=E===void 0?0:E;return mZ(function(n,f){f.add(v.schedule(function(){return n.subscribe(f)},E))})};
l_=function(v){return mZ(function(E,n){var f=0;E.subscribe(new wY(n,function(x){n.next(v.call(void 0,x,f++))}))})};
z_1=function(v){return l_(function(E){return iWX(E)?v.apply(null,_.s8(E)):v(E)})};
ERX=function(v){if(v.length===1){var E=v[0];if(R_y(E))return{args:E,keys:null};if(E&&typeof E==="object"&&ttQ(E)===B2E)return v=vRQ(E),{args:v.map(function(n){return E[n]}),
keys:v}}return{args:v,keys:null}};
rY=function(){var v=_.rV.apply(0,arguments),E=QQ(v),n=L9E(v);v=ERX(v);var f=v.args,x=v.keys;if(f.length===0)return B5([],E);E=new iW(nR1(f,E,x?function(y){for(var Q={},e=0;e<y.length;e++)Q[x[e]]=y[e];return Q}:Gd));
return n?E.pipe(z_1(n)):E};
nR1=function(v,E,n){n=n===void 0?Gd:n;return function(f){oR1(E,function(){for(var x=v.length,y=Array(x),Q=x,e=v.map(function(){return!1}),F=!0,b={i$jscomp$260:0};b.i$jscomp$260<x;b={i$jscomp$260:b.i$jscomp$260},b.i$jscomp$260++)oR1(E,function(l){return function(){B5(v[l.i$jscomp$260],E).subscribe(new PW(f,function(r){y[l.i$jscomp$260]=r;
F&&(e[l.i$jscomp$260]=!0,F=!e.every(Gd));F||f.next(n(y.slice()))},function(){return--Q===0}))}}(b),f)},f)}};
oR1=function(v,E,n){v?n.add(v.schedule(E)):E()};
fds=function(v,E,n,f){var x=[],y=0,Q=0,e=!1,F=function(b){y++;tA(n(b,Q++)).subscribe(new wY(E,function(l){E.next(l)},void 0,function(){y--;
for(var l={};x.length&&y<f;l={bufferedValue:void 0})l.bufferedValue=x.shift(),F(l.bufferedValue);!e||x.length||y||E.complete()}))};
v.subscribe(new wY(E,function(b){return y<f?F(b):x.push(b)},void 0,function(){e=!0;
!e||x.length||y||E.complete()}));
return function(){x=null}};
al=function(v,E){var n=n===void 0?Infinity:n;if(kR(E))return al(function(f,x){return l_(function(y,Q){return E(f,y,x,Q)})(tA(v(f,x)))},n);
typeof E==="number"&&(n=E);return mZ(function(f,x){return fds(f,x,v,n)})};
xaG=function(v){v=v===void 0?Infinity:v;return al(Gd,v)};
cA9=function(){var v=_.rV.apply(0,arguments);return xaG(1)(pI(v,QQ(v)))};
Zq=function(v){return new iW(function(E){tA(v()).subscribe(E)})};
CI=function(v,E,n){if(kR(n)){var f=n;n=void 0}if(f)return CI(v,E,n).pipe(z_1(f));f=_.p(kR(v.addEventListener)&&kR(v.removeEventListener)?yAA.map(function(Q){return function(e){return v[Q](E,e,n)}}):kR(v.addListener)&&kR(v.removeListener)?p5Q.map(QCF(v,E)):kR(v.on)&&kR(v.off)?X5N.map(QCF(v,E)):[]);
var x=f.next().value,y=f.next().value;return!x&&HW1(v)?al(function(Q){return CI(Q,E,n)})(pI(v)):new iW(function(Q){if(!x)throw new TypeError("ka");
var e=function(){var F=_.rV.apply(0,arguments);return Q.next(1<F.length?F:F[0])};
x(e);return function(){return y(e)}})};
QCF=function(v,E){return function(n){return function(f){return v[n](E,f)}}};
S8=function(){var v=_.rV.apply(0,arguments),E=QQ(v);var n=typeof v[v.length-1]==="number"?v.pop():Infinity;return v.length?v.length===1?tA(v[0]):xaG(n)(pI(v,E)):Mg};
F_9=function(v){return v.length===1&&eZ1(v[0])?v[0]:v};
ma9=function(){var v=F_9(_.rV.apply(0,arguments));return mZ(function(E,n){var f=[E].concat(_.s8(v)),x=function(){if(!n.closed)if(f.length>0){try{var y=tA(f.shift())}catch(e){x();return}var Q=new wY(n,void 0,$R,$R);n.add(y.subscribe(Q));Q.add(x)}else n.complete()};
x()})};
U8=function(v){return mZ(function(E,n){var f=0;E.subscribe(new wY(n,function(x){return v.call(void 0,x,f++)&&n.next(x)}))})};
bcX=function(){var v=_.rV.apply(0,arguments);v=F_9(v);return v.length===1?tA(v[0]):new iW(w5X(v))};
w5X=function(v){return function(E){for(var n=[],f={i$jscomp$263:0};n&&!E.closed&&f.i$jscomp$263<v.length;f={i$jscomp$263:f.i$jscomp$263},f.i$jscomp$263++)n.push(tA(v[f.i$jscomp$263]).subscribe(new wY(E,function(x){return function(y){if(n){for(var Q=0;Q<n.length;Q++)Q!==x.i$jscomp$263&&n[Q].unsubscribe();n=null}E.next(y)}}(f))))}};
lds=function(){var v=_.rV.apply(0,arguments),E=L9E(v),n=F_9(v);return n.length?new iW(function(f){var x=n.map(function(){return[]}),y=n.map(function(){return!1});
f.add(function(){x=y=null});
for(var Q={sourceIndex$jscomp$1:0};!f.closed&&Q.sourceIndex$jscomp$1<n.length;Q={sourceIndex$jscomp$1:Q.sourceIndex$jscomp$1},Q.sourceIndex$jscomp$1++)tA(n[Q.sourceIndex$jscomp$1]).subscribe(new wY(f,function(e){return function(F){x[e.sourceIndex$jscomp$1].push(F);x.every(function(b){return b.length})&&(F=x.map(function(b){return b.shift()}),f.next(E?E.apply(null,_.s8(F)):F),x.some(function(b,l){return!b.length&&y[l]})&&f.complete())}}(Q),void 0,function(e){return function(){y[e.sourceIndex$jscomp$1]=
!0;
!x[e.sourceIndex$jscomp$1].length&&f.complete()}}(Q)));
return function(){x=y=null}}):Mg};
sCN=function(v){var E,n,f;return!!v&&typeof v.active==="boolean"&&typeof((E=v.clock)==null?void 0:E.now)==="function"&&((n=v.clock)==null?void 0:n.timeline)!==void 0&&!((f=v.lastMeasurement)==null||!f.timestamp)&&typeof v.equivalentTo==="function"&&typeof v.extrapolateToNow==="function"&&typeof v.extrapolateToTime==="function"&&typeof v.map==="function"&&typeof v.joinWith==="function"};
rAs=function(v){function E(n){return typeof n==="boolean"||typeof n==="string"||typeof n==="number"||n===void 0||n===null}
return E(v)?!0:Array.isArray(v)?v.every(E):typeof v==="object"?Object.keys(v).every(function(n){return typeof n==="string"})&&Object.values(v).every(function(n){return Array.isArray(n)?n.every(E):E(n)}):!1};
PWA=function(v){if(rAs(v))return v;if(sCN(v))return{lastMeasurement:{value:PWA(v.lastMeasurement.value),timestamp:qg(v.lastMeasurement.timestamp,new Je(0,v.lastMeasurement.timestamp.timeline))},active:v.active};try{return JSON.parse(JSON.stringify(v))}catch(E){}return String(v)};
KI=function(v,E){return function(n){return new iW(function(f){return n.subscribe(function(x){v.timeExecution(E,function(){f.next(x)})()},function(x){v.timeExecution(E,function(){f.error(x)})()},function(){v.timeExecution(E,function(){f.complete()})()})})}};
adA=function(v,E){var n=!1;return new iW(function(f){var x=v.setTimeout(function(){n=!0;f.next(!0);f.complete()},E);
return function(){n||v.clearTimeout(x)}})};
ZcL=function(v){v=v.global;if(v.fetchLater)return v.fetchLater.bind(v)};
dY=function(v){return mZ(function(E,n){var f=null,x=!1,y;f=E.subscribe(new wY(n,void 0,function(Q){y=tA(v(Q,dY(v)(E)));f?(f.unsubscribe(),f=null,y.subscribe(n)):x=!0}));
x&&(f.unsubscribe(),f=null,y.subscribe(n))})};
CWG=function(v,E,n){return function(f,x){var y=n,Q=E,e=0;f.subscribe(new wY(x,function(F){var b=e++;Q=y?v(Q,F,b):(y=!0,F);x.next(Q)},void 0,void 0))}};
Mc$=function(v){v=v===void 0?null:v;return mZ(function(E,n){var f=!1;E.subscribe(new wY(n,function(x){f=!0;n.next(x)},void 0,function(){f||n.next(v);
n.complete()}))})};
Il=function(){return mZ(function(v,E){v.subscribe(new wY(E,$R))})};
Yh=function(v){return mZ(function(E,n){E.subscribe(new wY(n,function(){return n.next(v)}))})};
Ae=function(v){return v<=0?function(){return Mg}:mZ(function(E,n){var f=0;
E.subscribe(new wY(n,function(x){++f<=v&&(n.next(x),v<=f&&n.complete())}))})};
VQ=function(v){var E=E===void 0?Gd:E;var n;v=(n=v)!=null?n:SwN;return mZ(function(f,x){var y,Q=!0;f.subscribe(new wY(x,function(e){var F=E(e);if(Q||!v(y,F))Q=!1,y=F,x.next(e)}))})};
SwN=function(v,E){return v===E};
qw1=function(v){v=v===void 0?UaN:v;return mZ(function(E,n){var f=!1;E.subscribe(new wY(n,function(x){f=!0;n.next(x)},void 0,function(){return f?n.complete():n.error(v())}))})};
UaN=function(){return new JAQ};
Dq=function(){var v=_.rV.apply(0,arguments);return function(E){return cA9(E,Xt.apply(null,_.s8(v)))}};
K_X=function(v){return mZ(function(E,n){var f=0;E.subscribe(new wY(n,function(x){v.call(void 0,x,f++,E)||(n.next(!1),n.complete())},void 0,function(){n.next(!0);
n.complete()}))})};
da1=function(){return mZ(function(v,E){var n=[];v.subscribe(new wY(E,function(f){n.push(f);1<n.length&&n.shift()},void 0,function(){for(var f=_.p(n),x=f.next();!x.done;x=f.next())E.next(x.value);
E.complete()},function(){n=null}))})};
IdX=function(v,E){var n=arguments.length>=2;return function(f){return f.pipe(v?U8(function(x,y){return v(x,y,f)}):Gd,da1(),n?Mc$(E):qw1(function(){return new JAQ}))}};
gY=function(v){var E=kR(v)?v:function(){return v};
return kR()?mZ(function(n,f){var x=E();(void 0)(x).subscribe(f).add(n.subscribe(x))}):function(n){var f=new HW(n,E);
kR(n==null?void 0:n.lift)&&(f.lift=n.lift);f.source=n;f.subjectFactory=E;return f}};
j8=function(v){var E=new u_(v,void 0,void 0);return function(n){return gY(function(){return E})(n)}};
O8=function(v,E){return mZ(CWG(v,E,arguments.length>=2))};
kh=function(){var v=_.rV.apply(0,arguments),E=QQ(v);return mZ(function(n,f){(E?cA9(v,n,E):cA9(v,n)).subscribe(f)})};
WW=function(v){return mZ(function(E,n){var f=null,x=0,y=!1;E.subscribe(new wY(n,function(Q){var e;(e=f)==null||e.unsubscribe();e=x++;tA(v(Q,e)).subscribe(f=new wY(n,function(F){return n.next(F)},void 0,function(){f=null;
y&&!f&&n.complete()}))},void 0,function(){(y=!0,!f)&&n.complete()}))})};
$h=function(v,E){E=E===void 0?!1:E;return mZ(function(n,f){var x=0;n.subscribe(new wY(f,function(y){var Q=v(y,x++);(Q||E)&&f.next(y);!Q&&f.complete()}))})};
LI=function(v,E,n){var f=kR(v)||E||n?{next:v,error:E,complete:n}:v;return f?mZ(function(x,y){x.subscribe(new wY(y,function(Q){var e;(e=f.next)==null||e.call(f,Q);y.next(Q)},function(Q){var e;
(e=f.error)==null||e.call(f,Q);y.error(Q)},function(){var Q;
(Q=f.complete)==null||Q.call(f);y.complete()}))}):Gd};
YwF=function(){var v=_.rV.apply(0,arguments),E=L9E(v);return mZ(function(n,f){for(var x=v.length,y=Array(x),Q=v.map(function(){return!1}),e=!1,F={i$jscomp$273:0};F.i$jscomp$273<x;F={i$jscomp$273:F.i$jscomp$273},F.i$jscomp$273++)tA(v[F.i$jscomp$273]).subscribe(new wY(f,function(b){return function(l){y[b.i$jscomp$273]=l;
e||Q[b.i$jscomp$273]||(Q[b.i$jscomp$273]=!0,(e=Q.every(Gd))&&(Q=null))}}(F),void 0,$R));
n.subscribe(new wY(f,function(b){e&&(b=[b].concat(_.s8(y)),f.next(E?E.apply(null,_.s8(b)):b))}))})};
hZL=function(v){var E=[],n=0,f;for(f in v)E[n++]=f;return E};
AAX=function(v,E){for(var n in v)if(v[n]==E)return!0;return!1};
VcA=function(v,E,n){for(var f in v)if(E.call(n,v[f],f,v))return f};
DaL=function(v){if(!v||typeof v!=="object")return v;if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);if(v instanceof Date)return new Date(v.getTime());var E=Array.isArray(v)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(v)||v instanceof DataView?{}:new v.constructor(v.length),n;for(n in v)E[n]=DaL(v[n]);return E};
Hc1=function(v){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return Hc1.apply(null,arguments[0]);if(E%2)throw Error("oa");for(var n={},f=0;f<E;f+=2)n[arguments[f]]=arguments[f+1];return n};
gRs=function(v){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return gRs.apply(null,arguments[0]);for(var n={},f=0;f<E;f++)n[arguments[f]]=!0;return n};
_.G6=function(v){return new ZWX(v[0].toLowerCase())};
NVA=function(v){try{return new URL(v,window.document.baseURI)}catch(E){return new URL("about:invalid")}};
u_1=function(v,E){var n=E.createRange();n.selectNode(E.body);v=Sc(v);return n.createContextualFragment(Uw(v))};
jCN=function(v){v=v.nodeName;return typeof v==="string"?v:"FORM"};
Ocs=function(v){v=v.nodeType;return v===1||typeof v!=="number"};
T6=function(v,E,n){v.setAttribute(E,n)};
kd9=function(v){return v.parts.map(function(E){var n=E.descriptor;return""+E.url+(n?" "+n:"")}).join(" , ")};
_.i_=function(v){var E=_.rV.apply(1,arguments);if(E.length===0)return _.xR(v[0]);for(var n=v[0],f=0;f<E.length;f++)n+=encodeURIComponent(E[f])+v[f+1];return _.xR(n)};
_.z6=function(v,E){v=_.c5(v).toString();var n=v.split(/[?#]/),f=/[?]/.test(v)?"?"+n[1]:"";return W_$(n[0],f,/[#]/.test(v)?"#"+(f?n[2]:n[1]):"",E)};
W_$=function(v,E,n,f){function x(Q,e){Q!=null&&(Array.isArray(Q)?Q.forEach(function(F){return x(F,e)}):(E+=y+encodeURIComponent(e)+"="+encodeURIComponent(Q),y="&"))}
var y=E.length?"&":"?";f.constructor===Object&&(f=Object.entries(f));Array.isArray(f)?f.forEach(function(Q){return x(Q[1],Q[0])}):f.forEach(x);
return _.xR(v+E+n)};
Rl=function(v,E,n,f){this.top=v;this.right=E;this.bottom=n;this.left=f};
$aL=function(v){v=v.global;if(v.PendingGetBeacon)return v.PendingGetBeacon};
BW=function(v){return function(E){return E.pipe(L_F(v,gY(new te)))}};
vV=function(v){return function(E){return E.pipe(L_F(v,j8(1)))}};
L_F=function(v,E){function n(f){return new iW(function(x){return f.subscribe(function(y){Eh(v,function(){return void x.next(y)},3)},function(y){Eh(v,function(){return void x.error(y)},3)},function(){Eh(v,function(){return void x.complete()},3)})})}
return Td(n,T2L(),E,b_(),n)};
icL=function(v){var E=GdI(v);return E===null?new ns(null):E.pipe(l_(function(n){n=n.serialize();if(TVN)n=_.n1.btoa(n);else{for(var f=[],x=0,y=0;y<n.length;y++){var Q=n.charCodeAt(y);Q>255&&(f[x++]=Q&255,Q>>=8);f[x++]=Q}n=_.z3(f)}return n}),Ae(1),vV(v.queue))};
zZE=function(v){var E=E===void 0?{}:E;if(typeof Event==="function")return new Event(v,E);if(typeof document!=="undefined"){var n=document.createEvent("CustomEvent");n.initCustomEvent(v,E.bubbles||!1,E.cancelable||!1,E.detail);return n}throw Error();};
RZN=function(v){return typeof v==="string"?document.getElementById(v):v};
BV9=function(v){var E=!1;E=E===void 0?!1:E;if(v.tagName==="IMG"){if(v.complete&&(!v.naturalWidth||!v.naturalHeight))return!0;var n;if(E&&((n=v.style)==null?void 0:n.display)==="none")return!0}var f,x;return tcG.test((f=v.getAttribute("width"))!=null?f:"")&&tcG.test((x=v.getAttribute("height"))!=null?x:"")};
vhs=function(v,E){if(v.tagName==="IMG")return v.naturalWidth&&v.naturalHeight?!0:!1;try{if(v.readyState)var n=v.readyState;else{var f,x;n=(f=v.contentWindow)==null?void 0:(x=f.document)==null?void 0:x.readyState}return n==="complete"}catch(y){return E===void 0?!1:E}};
Ehy=function(v){v||(v=function(E,n,f){E.addEventListener(n,f)});
return v};
xgI=function(v,E){var n=nh9();n=n===void 0?new ohs:n;if(v=RZN(v)){var f=Ehy(f);for(var x=!1,y=function(Y){x||(x=!0,E(Y))},Q,e=2,F=0;F<fqQ.length;++F)if(fqQ[F]===v.tagName){e=3;
Q=[v];break}Q||(Q=v.querySelectorAll(fqQ.join(",")));var b=0,l=0,r=!0,a=v=!1;F={};for(var M=0;M<Q.length;F={isImg:void 0},M++){var U=Q[M];if(!BV9(U))if(F.isImg=U.tagName==="IMG",vhs(U,n.crossDomainLoadedDefault))v=!0,F.isImg&&(r=!0);else{b++;var d=function(Y){return function(V){b--;!b&&r&&y(e);Y.isImg&&(V=V&&V.type==="error",l--,V||(r=!0),!l&&a&&r&&y(e))}}(F);
f(U,"load",d);F.isImg&&(l++,f(U,"error",d))}}l===0&&(r=!0);Q=null;Q=_.n1.document.readyState==="complete";if(b===0&&!v&&Q)e=5;else if(b||!v){f(_.n1,"load",function(){!n.pendingImagesBlockLoad||!l&&r?y(4):a=!0});
return}y(e)}};
ces=function(v,E,n){if(v)for(var f=0;v!=null&&f<500&&!n(v);++f)v=E(v)};
yeG=function(v,E){ces(v,function(n){try{return n===n.parent?null:n.parent}catch(f){}return null},E)};
pWy=function(v,E){if(v.tagName=="IFRAME")E(v);else{v=v.querySelectorAll("IFRAME");for(var n=0;n<v.length&&!E(v[n]);++n);}};
QlQ=function(v){return(v=v.ownerDocument)&&(v.parentWindow||v.defaultView)||null};
XWE=function(v,E,n){try{var f=JSON.parse(n.data)}catch(Q){}if(typeof f==="object"&&f&&f.type==="creativeLoad"){var x=QlQ(v);if(n.source&&x){var y;yeG(n.source,function(Q){try{if(Q.parent===x)return y=Q,!0}catch(e){}});
y&&pWy(v,function(Q){if(Q.contentWindow===y)return E(f),!0})}}};
eqA=function(v){return typeof v==="string"?document.getElementById(v):v};
bI9=function(){var v={};return v[0]=_.i_(FZA,"current"),v[1]=_.i_(mgN),v[2]=_.i_(wWE),v};
oi=function(v,E){return v.left===E.left&&v.top===E.top&&v.width===E.width&&v.height===E.height};
lq1=function(v,E){return{left:Math.max(v.left,E.left),top:Math.max(v.top,E.top),width:Math.max(0,Math.min(v.left+v.width,E.left+E.width)-Math.max(v.left,E.left)),height:Math.max(0,Math.min(v.top+v.height,E.top+E.height)-Math.max(v.top,E.top))}};
slX=function(v,E){return{left:Math.round(v.left+E.x),top:Math.round(v.top+E.y),width:v.width,height:v.height}};
reX=function(v,E,n){if(v&&E!==null&&E!=E.top){if(!E.top)return new _.fs(-12245933,-12245933);E=E.top}try{return(n===void 0?0:n)?(new _.fs(E.innerWidth,E.innerHeight)).round():_.xr(E).round()}catch(f){return new _.fs(-12245933,-12245933)}};
P_G=function(v,E,n){try{if(v){if(!E.top)return new Rl(-12245933,-12245933,-12245933,-12245933);E=E.top}var f=reX(v,E,n),x=f.height,y=f.width;if(y===-12245933)return new Rl(y,y,y,y);var Q=cV(y4(E.document)),e=Q.x,F=Q.y;return new Rl(F,e+y,F+x,e)}catch(b){return new Rl(-12245933,-12245933,-12245933,-12245933)}};
aqX=function(v){var E;return(E=v.google_tag_data)!=null?E:v.google_tag_data={}};
ZII=function(v){var E,n;return typeof((E=v.navigator)==null?void 0:(n=E.userAgentData)==null?void 0:n.getHighEntropyValues)==="function"};
M8Q=function(v){if(!ZII(v))return null;var E=aqX(v);if(E.uach_promise)return E.uach_promise;v=v.navigator.userAgentData.getHighEntropyValues(C_A).then(function(n){E.uach!=null||(E.uach=n);return n});
return E.uach_promise=v};
Dg$=function(v){var E;return S8F(UgX(q8$(JeA(KZQ(dgQ(IqE(Y8X(hqN(new Ae1,v.architecture||""),v.bitness||""),v.mobile||!1),v.model||""),v.platform||""),v.platformVersion||""),v.uaFullVersion||""),((E=v.fullVersionList)==null?void 0:E.map(function(n){var f=new V8X;f=_.ps(f,1,n.brand);return _.ps(f,2,n.version)}))||[]),v.wow64||!1)};
HIX=function(v){var E,n;return(n=(E=M8Q(v))==null?void 0:E.then(function(f){return Dg$(f)}))!=null?n:null};
ghI=function(v,E){return new iW(function(n){var f=!1,x=Array(E.length);x.fill(void 0);var y=new Set,Q=new Set,e=function(r,a){v.running?(x[a]=r,y.add(a),f||(f=!0,Eh(v,function(){f=!1;n.next(_.tG(x))},1))):n.error(new Q4(a))},F=function(r,a){Q.add(a);
y.add(a);Eh(v,function(){n.error(r)},1)},b=function(r){Q.add(r);
Eh(v,function(){Q.size===E.length&&n.complete()},1)},l=E.map(function(r,a){return r.subscribe(function(M){return void e(M,a)},function(M){return void F(M,a)},function(){return void b(a)})});
return function(){l.forEach(function(r){return void r.unsubscribe()})}})};
utX=function(v,E,n){function f(){if(E.debugChannel){var Y=E.debugChannel,V=Y.next;var O={creativeId:E.debugNames.getName(n),requiredSignals:x,signals:Object.assign({},y),hasPrematurelyCompleted:Q,errorMessage:e,erroredSignalKey:F};O={specMajor:2,specMinor:0,specPatch:0,timestamp:qg(E.timeProvider.now(),new Je(0,E.timeProvider.timeline)),instanceId:E.debugNames.getName(E.symbol),creativeState:O};V.call(Y,O)}}
for(var x=Object.keys(v),y={},Q=!1,e=null,F=null,b={},l=new Set,r=[],a=[],M=_.p(x),U=M.next(),d={};!U.done;d={key$jscomp$374:void 0},U=M.next())d.key$jscomp$374=U.value,U=v[d.key$jscomp$374],U instanceof ns?(b[d.key$jscomp$374]=U.value,l.add(d.key$jscomp$374),E.debugChannel&&(y[String(d.key$jscomp$374)]=PWA(U.value))):(U=U.pipe(VQ(function(Y,V){return sCN(Y)||sCN(V)?!1:Y===V}),l_(function(Y){return function(V){E.debugChannel&&(y[String(Y.key$jscomp$374)]=PWA(V),f());
var O={};return O[Y.key$jscomp$374]=V,O}}(d)),dY(function(Y){return function(V){if(V instanceof Q4)throw new NYX(String(Y.key$jscomp$374));
throw V;}}(d)),LI(function(Y){return function(){l.add(Y.key$jscomp$374)}}(d),function(Y){return function(V){F=String(Y.key$jscomp$374);
e=String(V);f()}}(d),function(Y){return function(){l.has(Y.key$jscomp$374)||(Q=!0,f())}}(d))),a.push(d.key$jscomp$374),r.push(U));
(v=Object.keys(y).length>0)&&f();M=ghI(E.queue,r).pipe(dY(function(Y){if(Y instanceof Q4)throw new Xb(String(a[Y.inputObservableIndex]));throw Y;}),l_(function(Y){return Object.freeze(Object.assign.apply(Object,[{},
b].concat(_.s8(Y))))}));
return(r=r.length>0)&&v?S8(Xt(Object.freeze(b)),M):r?M:Xt(Object.freeze(b))};
jl1=function(v,E,n,f,x){return v.performanceMonitor.timeExecution.bind(v.performanceMonitor)(733,function(){var y={};try{return E.pipe(dY(function(Q){f(Object.assign({},y,{error:Q}));return Mg}),al(function(Q){try{var e=n(v,Q)}catch(b){return f(Object.assign({},y,{error:b instanceof Error?b:String(b)})),Mg}var F={};
return utX(e,v,Q.symbol).pipe(LI(function(b){F=b}),j8(1),b_()).pipe(x,dY(function(b){f(Object.assign({},F,{error:b}));
return Mg}),Dq(void 0),l_(function(){return!0}))})).pipe(O8(function(Q){return Q+1},0),dY(function(Q){f(Object.assign({},y,{error:Q}));
return Mg}))}catch(Q){return f(Object.assign({},y,{error:Q})),Mg}})()};
ml=function(v){var E=new Map;if(typeof v!=="object"||v===null)return E;Object.values(v).forEach(function(n){n&&typeof n.extrapolateToNow==="function"&&(E.has(n.clock.timeline)||E.set(n.clock.timeline,n.clock.now()))});
return E};
OIE=function(v,E){return typeof v==="string"?encodeURIComponent(v):typeof v==="number"?String(v):Array.isArray(v)?v.map(function(n){return OIE(n,E)}).join(","):v instanceof Je?v.toString():v&&typeof v.extrapolateToNow==="function"?OIE(v.extrapolateUsingTimestampMap(E).value,E):v===!0?"1":v===!1?"0":v===void 0||v===null?null:v instanceof k6Q?WZy(v):[v.top,
v.left,v.top+v.height,v.left+v.width].join()};
$g$=function(v,E){v=Object.entries(v).map(function(n){var f=_.p(n);n=f.next().value;f=f.next().value;f=OIE(f,E);return f===null?"":n+"="+f}).filter(function(n){return n!==""});
return v.length?v.join("&"):""};
TYG=function(v,E){var n=LZs,f=G6X;E=E===void 0?.01:E;return function(x){E>0&&Math.random()<=E&&(v.global.HTMLFencedFrameElement&&v.global.fence&&typeof v.global.fence.reportEvent==="function"&&v.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),x=Object.assign({},x,{errorMessage:x.error instanceof Error&&x.error.message?x.error.message:String(x.error),errorStack:x.error instanceof Error&&x.error.stack?String(x.error.stack):null,errorName:x.error instanceof
Error&&x.error.name?String(x.error.name):null,errorContext:String(v.performanceMonitor.timedFunctionContext),errorEscapedQueryId:x.escapedQueryId}),n(Object.assign({},x,{payloadMapper:function(){return function(y){try{return f(Object.assign({},y))}catch(Q){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),ml(x)).forEach(function(y){v.beaconFactory.makeBeacon(y).sendNow()}))}};
iI1=function(){var v=_.rV.apply(0,arguments);return function(E){var n=E.pipe(j8(1),b_());E=v.map(function(f){return n.pipe(f,Dq(!0))});
return rY(E).pipe(Ae(1),Il())}};
zqQ=function(){var v=_.rV.apply(0,arguments);return function(E){var n=E.pipe(j8(1),b_());E=v.map(function(f){return n.pipe(f,Dq(!0))});
return S8.apply(null,_.s8(E)).pipe(Ae(1),Il())}};
RqX=function(v,E){return function(n){var f=n.pipe(j8(1),b_());n=f.pipe(v,Dq(!0));f=f.pipe(Td(E,j8(),b_()),Dq(!0));n=rY([n,f]);return bcX(n,f).pipe(Ae(1),Il())}};
t8N=function(v,E,n){n(!0)};
BYF=function(v,E){return Td(WW(function(n){var f=v(n),x=E(n),y={};return f&&x&&y?new iW(function(Q){x(f,y,function(e){Q.next(Object.assign({},n,{canEmit:e}));Q.complete()});
return function(){}}):wA}),U8(function(n){return n.canEmit}))};
vrX=function(v){var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(n){return n.pipe(WW(function(f){return new iW(function(x){function y(){e.disconnect();F.unsubscribe()}
var Q=v.MutationObserver;if(Q&&f.ref!==void 0){var e=new Q(function(b){x.next(b)});
e.observe(f.ref,E);var F=f.JSC$7256_released.subscribe(y);return y}})}))}};
ErG=function(v){if(v.measurementDeferralState===3)return null;if(v.timeOnScreenReason!==void 0){var E=v.creativeFound===!1?"n":null;if(E!==null)return E}return v.geometricMeasurementErrors instanceof bU?"msf":v.contextValidationErrors instanceof lU?"c":v.contextVisibilityKnown===!1?"pv":v.geometricMeasurementErrors||v.contextValidationErrors?"x":null};
orL=function(v,E){return v.replace(nr$,function(n,f){try{var x=_.sh.get(E,f);if(x==null||x.toString()==null)return n;x=x.toString();if(x==""||!_.XN(x==null?"":String(x)))return encodeURIComponent(x).replace(/%2C/g,",")}catch(y){}return n})};
fJ9=function(v,E){var n=Object.assign({},v),f=v.userAgentClientHints;n=(delete n.userAgentClientHints,n);n=v.payloadMapper(n);var x=$g$(n,E);return _.rA(v.urlPrefixes,function(y){var Q="";typeof f==="string"&&(Q="&"+$g$({uach:f},E));var e={};return orL(y,(e.VIEWABILITY=x,e))+Q})};
LZs=function(v,E){var n=v.payloadMapper(v),f=$g$(n,E);return f?_.rA(v.urlPrefixes,function(x){x=x.indexOf("?")>=0?x:x+"?";x="?&".indexOf(x.slice(-1))>=0?x:x+"&";return x+f}):v.urlPrefixes};
x0$=function(){return Td(U8(function(v){return v!==void 0}),l_(function(v){return v}))};
cJI=function(v){return Td(l_(function(){return!0}),kh(!1),vV(v))};
yJX=function(v){return v.length<=0?Mg:rY(v.map(function(E){var n=0;return E.pipe(l_(function(f){return{index:n++,value:f}}))})).pipe(U8(function(E){return E.every(function(n){return n.index===E[0].index})}),l_(function(E){return E.map(function(n){return n.value})}))};
pVy=function(v,E){v.currentState&&(v.previousState=v.currentState);v.currentState=E;v.previousState&&v.previousState.value?(E=Math.max(0,qg(E.timestamp,v.previousState.timestamp)),v.totalTime+=E,v.consecutiveTime+=E):v.consecutiveTime=0;return v};
QiX=function(){return Td(O8(pVy,{totalTime:0,consecutiveTime:0}),l_(function(v){return v.totalTime}))};
XVA=function(){return Td(O8(pVy,{totalTime:0,consecutiveTime:0}),l_(function(v){return v.consecutiveTime}))};
epI=function(v,E){return function(n){return yJX(E.map(function(f){return n.pipe(v(f))}))}};
FlE=function(){var v;return Td(LI(function(E){return void(v=E.timestamp)}),XVA(),l_(function(E){return{timestamp:v,
value:Math.round(E)}}))};
m0y=function(v,E){return oi(v.topWindowViewportExternalGeometry,E.topWindowViewportExternalGeometry)&&oi(v.elementGeometry,E.elementGeometry)&&oi(v.exposedViewportLocalGeometry,E.exposedViewportLocalGeometry)&&oi(v.intersectionGeometry,E.intersectionGeometry)&&v.elementGeometrySourceName===E.elementGeometrySourceName&&v.measurementRequests===E.measurementRequests&&v.viewportGeometrySourceName===E.viewportGeometrySourceName&&v.viewportLocalAppOffset.x===E.viewportLocalAppOffset.x&&v.viewportLocalAppOffset.y===
E.viewportLocalAppOffset.y};
rJs=function(v,E){return function(n){return function(f){var x=f.pipe(gY(new te),b_());f=n.element.pipe(VQ());x=x.pipe(l_(function(y){return y.value}));
return rY([f,x,E]).pipe(l_(function(y){var Q=_.p(y);y=Q.next().value;var e=Q.next().value;Q=Q.next().value;if(y.ref===void 0)var F={top:0,left:0,width:0,height:0};else{F=y.ref.getBoundingClientRect();var b=y.ref,l=v.global,r=new _.PV(0,0),a=ai(_.ZJ(b));if(wVI(a,"parent")){do{if(a==l)var M=_.M0(b);else M=bs1(b),M=new _.PV(M.left,M.top);r.x+=M.x;r.y+=M.y}while(a&&a!=l&&a!=a.parent&&(b=a.frameElement)&&(a=a.parent))}F={top:r.y,left:r.x,width:F.width,height:F.height}}F=slX(F,e.viewportLocalAppOffset);
l=lq1(F,e.exposedViewportLocalGeometry);r=v.timeProvider.now();a=Object;b=a.assign;if(Q!==2||v.inCrossDomainIframe||l.width<=0||l.height<=0)var U=!1;else try{var d=v.document.elementFromPoint(l.left+l.width/2,l.top+l.height/2);U=d?!lJX(d,y):!1}catch(Y){U=!1}return{timestamp:r,value:b.call(a,{},e,{elementGeometrySourceName:"geo",intersectionGeometry:U?siL.intersectionGeometry:l,elementGeometry:F})}}),BW(v.queue))}}};
lJX=function(v,E,n){n=n===void 0?0:n;return v.ref===void 0||E.ref===void 0?!1:v.ref===E.ref||_.Ss(E.ref,function(f){return f===v.ref})?!0:E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView===E.ref.ownerDocument.defaultView.top?!1:n<10&&E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView.frameElement?lJX(v,new Uh(E.ref.ownerDocument.defaultView.frameElement),n+1):!0};
ZsL=function(v){return function(E){return E.pipe(v.ResizeObserver?PUG(v):aJQ(v),j8(1),b_())}};
PUG=function(v){return function(E){return E.pipe(WW(function(n){var f=v.ResizeObserver;if(!f||n.ref===void 0)return Xt(siL.elementGeometry);var x=(new iW(function(y){function Q(){n.ref!==void 0&&e.unobserve(n.ref);e.disconnect();F.unsubscribe()}
if(n.ref===void 0)return y.complete(),function(){};
var e=new f(function(b){b.forEach(function(l){y.next(l)})});
e.observe(n.ref);var F=n.JSC$7256_released.subscribe(Q);return Q})).pipe(KI(v.performanceMonitor,736),l_(function(y){return y.contentRect}));
return S8(Xt(n.ref.getBoundingClientRect()),x)}),VQ(oi))}};
aJQ=function(v){return function(E){var n=E.pipe(vrX(v)),f=v.onResize;n=S8(E.pipe(l_(function(){return zZE("resize")})),n,f);
return rY(E,n).pipe(KI(v.performanceMonitor,737),l_(function(x){x=_.p(x).next().value;return x.ref===void 0?void 0:x.ref.getBoundingClientRect()}),x0$(),VQ(oi))}};
Sh9=function(v,E){var n=CUX(v,E).pipe(j8(1),b_());return function(f){return function(x){x=x.pipe(WW(function(y){return y.element}),VQ());
return rY([n,x]).pipe(WW(function(y){var Q=_.p(y);y=Q.next().value;Q=Q.next().value;return Ms$(v,y.intersectionObserver,ZsL(v),y.observations,f,y.flushRecords,Q)}),BW(v.queue))}}};
U0I=function(v){return l_(function(E){return E.value.viewportGeometrySourceName!=="nio"?E:Object.assign({},E,{value:Object.assign({},E.value,{exposedViewportLocalGeometry:q0(v,!0),topWindowViewportExternalGeometry:q0(v,!0)})})})};
qhX=function(v,E){return Xt(E).pipe(v,l_(function(){return E}))};
CUX=function(v,E){return v.timeProvider.timeline!==JJA?Ft(new bU(2)):v.MutationObserver?typeof IntersectionObserver==="undefined"?Ft(new bU(0)):(new iW(function(n){var f=new te,x=new JJ(f.next.bind(f),{threshold:[].concat(_.s8(E))});n.next({observations:f.pipe(KI(v.performanceMonitor,735)),intersectionObserver:x,flushRecords:function(y){y=x.takeRecords(y);y.length>0&&f.next(y)}})})).pipe(Ae(1),j8(1),b_()):Ft(new bU(1))};
KlG=function(v){return gb9(v.sort(function(E,n){return E.time-n.time}),GZE)};
Ms$=function(v,E,n,f,x,y,Q){return new iW(function(e){function F(){U||(U=!0,Q.ref!==void 0&&E.unobserve(x,Q.ref),l.unsubscribe(),M.unsubscribe(),a.unsubscribe(),d.unsubscribe())}
if(Q.ref!==void 0){d0s(E,x);E.observe(x,Q.ref);var b=new Ks({timestamp:v.timeProvider.now(),value:Object.assign({},siL,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),l=f.pipe(al(function(Y){return KlG(Y)}),U8(function(Y){return Y.target===Q.ref}),l_(function(Y){return{timestamp:new Je(Y.time,JJA),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:Y.rootBounds||dA,topWindowViewportExternalGeometry:Y.rootBounds||q0(v,!0),measurementRequests:r,elementGeometrySourceName:"nio",intersectionGeometry:Y.intersectionRect,elementGeometry:Y.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:Y.isIntersecting,isV2Visible:Y.isVisible}}}),gY(b),b_()).subscribe(e),r=new te,a=r.subscribe(function(){y(x);
e.next({timestamp:v.timeProvider.now(),value:b.value.value});Q.ref!==void 0&&(E.unobserve(x,Q.ref),E.observe(x,Q.ref))}),M=qhX(n,Q).subscribe(function(){r.next()}),U=!1,d=Q.JSC$7256_released.subscribe(function(){return F()});
return F}})};
IJ9=function(v,E){var n=v.getOnBackgrounded().pipe(l_(function(){return"b"}));
return bcX(E,n).pipe(Ae(1),vV(v.queue))};
Ii=function(v){return function(E){var n;return E.pipe(LI(function(f){return void(n=f.timestamp)}),l_(function(f){return f.value}),v,l_(function(f){return{timestamp:n,
value:f}}))}};
Yr=function(v,E,n){n=n===void 0?function(f,x){return f===x}:n;
return v.timestamp.equals(E.timestamp)&&n(v.value,E.value)};
AJ=function(v,E){return E.pipe(l_(function(n){return new hJ(v.timeProvider,{timestamp:v.timeProvider.now(),value:n})}))};
YhF=function(v){return function(E){return E.pipe(YwF(v),l_(function(n){var f=_.p(n);n=f.next().value;f=f.next().value;var x=n.value;return{timestamp:n.timestamp,value:x>=1?!0:x<=0?!1:x>=f}}))}};
AJG=function(){return Td(U8(function(v,E){return E>0}),hpX,kh(-1),VQ())};
Vs$=function(v,E,n){return v?rY([E,n]).pipe(U8(function(f){var x=_.p(f);f=x.next().value;x=x.next().value;return f.timestamp.equals(x.timestamp)}),l_(function(f){var x=_.p(f);
f=x.next().value;x=x.next().value;return f.value>x.value?f:x})):E};
gr$=function(v){return function(E){var n=E.pipe(D0L),f=E.pipe(HsN);return v instanceof iW?v.pipe(WW(function(x){return Vs$(x,n,f)})):Vs$(v.value,n,f)}};
TAA=function(v,E,n,f){var x=f.geometryIsOccluded,y=f.exposureThreshold,Q=f.wasLargeAdAtRender,e=f.allowLargeAdThreshold,F=f.largeAdExposureThreshold,b=f.mayUseViewportShareExposure,l=f.hasMeasurementStarted;f=f.useIntersectionObserverV2;E=NAX(v,n,E);n=ubG(v,n);f=ji9(E,f);var r=OsG(v,x,b,E),a=r.pipe(l_(function(xX){return xX.value}),VQ(),vV(v),O8(function(xX,t){return Math.max(xX,t)},0)),M=r.pipe(l_(function(xX){return xX.value}),AJG(),vV(v)),U=E.pipe(k7L,l_(function(xX){return xX.value}),Ae(2),VQ(),
vV(v));
Q=Wl1(v,E,Q,e);var d=Q.pipe(kh(!1),VQ(),l_(function(xX){return xX?F:y}));
e=r.pipe(YhF(d),VQ(),vV(v));var Y=rY([e,E]).pipe(U8(function(xX){var t=_.p(xX);xX=t.next().value;t=t.next().value;return xX.timestamp.equals(t.timestamp)}),l_(function(xX){var t=_.p(xX);
xX=t.next().value;t=t.next().value;return{visible:xX.value,geometry:t.value.elementGeometry}}),O8(function(xX,t){return!t.visible&&xX.visible?xX:t},{visible:!1,
geometry:dA}),l_(function(xX){return xX.geometry}),kh(dA),vV(v),VQ(oi));
b=b instanceof iW?b.pipe(VQ(),Yh()):wA;d=rY([b,d]).pipe(Yh());var V=E.pipe(U8(function(xX){return xX.value.viewportGeometrySourceName!=="ns"&&xX.value.elementGeometrySourceName!=="ns"}),O8(function(xX){return xX+1},0),kh(0),vV(v)),O=n.pipe(Yh(!0),kh(!1),vV(v));
O=rY([l,O]).pipe(l_(function(xX){var t=_.p(xX);xX=t.next().value;t=t.next().value;return xX&&!t}),vV(v));
var T=E.pipe($0s,VQ()),L=T.pipe(l_(function(xX){return xX.value}),O8(function(xX,t){return Math.max(xX,t)},0),VQ(),vV(v));
v=T.pipe(l_(function(xX){return xX.value}),AJG(),vV(v));
return{shouldResetExposureSignals:b,shouldResetViewabilitySignals:d,geometrySignals:{readyGeometryWithDefault:E,measurementStrategy:E.pipe(LlX),creativePosition:Y.pipe(VQ(oi)),visible:e.pipe(VQ(Yr)),timestampedExposure:r.pipe(VQ(Yr)),maximumExposure:a,minimumExposure:M,browserSize:E.pipe(G79,VQ(_.F1)),timestampedScreenShare:T,maxScreenShare:L,minScreenShare:v,geometricMeasurementErrors:n,measurementRequests:E.pipe(l_(function(xX){return xX.value.measurementRequests})),
isLargeAd:Q,geometryIsOccluded:x,hasMeasurementStarted:l,geometryMeasurable:O,validMeasurementCount:V,loadTimeExposure:U,v2VisibilityBitVector:f}}};
ubG=function(v,E){return E.pipe(U8(function(){return!1}),l_(function(n){return n}),dY(function(n){return DJ(new ns(n),v)}))};
NAX=function(v,E,n){return E.pipe(ma9(wA),vV(v)).pipe(VQ(function(f,x){return Yr(f,x,m0y)}),kh({timestamp:n.now(),
value:siL}),vV(v))};
OsG=function(v,E,n,f){n=f.pipe(gr$(n),Ii(l_(function(x){return Math.round(x*100)/100})),vV(v));
return E instanceof ns?n:rY([n,E]).pipe(l_(function(x){var y=_.p(x);x=y.next().value;y=y.next().value;return{timestamp:y.timestamp.maximum(x.timestamp),value:y.value?0:x.value}}),VQ(Yr),vV(v))};
Wl1=function(v,E,n,f){E=[E.pipe(l_(function(x){return x.value.elementGeometry.width*x.value.elementGeometry.height>=242500}))];
n instanceof iW&&E.push(n.pipe(l_(function(x){return!!x})));
n=rY(E);return f?n.pipe(l_(function(x){return x.some(function(y){return y})}),kh(!1),VQ(),vV(v)):DJ(new ns(!1),v)};
ji9=function(v,E){v=rY([v,E]).pipe(l_(function(x){var y=_.p(x);x=y.next().value;if(y.next().value&&x.value.isIntersecting)return x.value.isV2Visible}),VQ());
var n=v.pipe(l_(function(x){return x===void 0?!0:x}),O8(function(x,y){return x||!y},!1)),f=v.pipe(O8(function(x,y){return y===void 0?x:y?!1:x!=null?x:!0},void 0),l_(function(x){return!!x}));
return rY([E,lds(v,n,f)]).pipe(l_(function(x){var y=_.p(x);x=y.next().value;var Q=_.p(y.next().value);y=Q.next().value;var e=Q.next().value;Q=Q.next().value;var F=0;if(!x)return 0;if(y===void 0)return 16;y&&(F|=1);y||(F|=2);e&&(F|=4);Q&&(F|=8);return F}))};
vEN=function(v,E,n,f,x){var y=isI.timeThresholdMs;var Q=Q===void 0?new zpG(E,f):Q;return(new iW(function(e){var F=n.pipe(kh(void 0),WW(function(){return Rp9(x)})).pipe(l_(function(b){var l=b.value;
b=b.timestamp;var r=l.visible;l=l.consecutiveViewTime;var a=l>=y;a||!r?tsy(Q):(b=Math.max(0,qg(E.now(),b)),BA9(Q,Math.max(0,y-l-b)));return a}),O8(function(b,l){return l||b},!1),VQ()).subscribe(e);
return function(){Q.dispose();F.unsubscribe()}})).pipe($h(function(e){return!e},!0),vV(v))};
Rp9=function(v){return yJX([v,v.pipe(FlE())]).pipe(l_(function(E){var n=_.p(E);E=n.next().value;n=n.next().value;return{timestamp:E.timestamp,value:{visible:E.value,consecutiveViewTime:n.value}}}),VQ(function(E,n){return Yr(E,n,function(f,x){return f.consecutiveViewTime===x.consecutiveViewTime&&f.visible===x.visible})}))};
EEI=function(){return Td(XVA(),O8(function(v,E){return Math.max(v,E)},0),l_(function(v){return Math.round(v)}))};
nEQ=function(v){return Td(YhF(Xt(v)),EEI())};
oEG=function(v,E){return E instanceof iW?E.pipe(WW(function(n){return(n=n?15:null)?Ft(new bU(n)):v})):(E=E.value?15:null)?Ft(new bU(E)):v};
fB9=function(v){var E=new bU(13);if(v.length<1)return{chain:Mg,capturedErrors:Mg};var n=new te,f=v[0];return{chain:v.slice(1).reduce(function(x,y){return x.pipe(dY(function(Q){n.next(Q);return y}))},f).pipe(dY(function(x){n.next(x);
return Ft(E)}),gY(new te),b_()),
capturedErrors:n}};
xEQ=function(v,E){var n=v.pipe(gY(new te),b_());return WW(function(f){return n.pipe(E(f))})};
y7G=function(v,E){if(v.inCrossDomainIframe)return Ft(new bU(6));var n=new te;return S8(Xt({}),E,n).pipe(l_(function(){return{timestamp:v.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:c7L(v),topWindowViewportExternalGeometry:q0(v,!0),measurementRequests:n,viewportLocalAppOffset:{x:0,y:0}}}}),BW(v.queue))};
c7L=function(v){var E=q0(v,!1);if(!v.inIframe||!pvF(v.global.parent)||v.global.parent===v.global)return E;var n=new HV(v.global.parent,v.debugChannel);n.beaconFactory=v.beaconFactory;n=c7L(n);v=v.global.frameElement.getBoundingClientRect();return lq1(slX(lq1(n,v),{x:E.left-v.left,y:E.top-v.top}),E)};
Qcs=function(v){if(v.prerendering)return 3;var E;return(E={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[v.visibilityState||v.webkitVisibilityState||v.mozVisibilityState||""])!=null?E:0};
Xvy=function(v){return v.document.JSC$7267_onVisibilityChange.pipe(l_(function(E){return E==="visible"}),VQ(),vV(v.queue))};
etX=function(v,E,n){var f;return E.pipe(VQ(),WW(function(x){return n.pipe(l_(function(){if(!f){f=!0;try{x.next()}finally{f=!1}}return!0}))}),kh(!1),vV(v.queue))};
FzL=function(v){return Td(Ii(l_(function(E){return E>=1?!0:E<=0?!1:E>=v})),QiX(),l_(function(E){return Math.round(E)}))};
wvN=function(v,E,n,f,x){var y=mEQ;if(y.length>1)for(var Q=0;Q<y.length-1;Q++)if(y[Q]<y[Q+1])throw Error();Q=x.pipe(kh(void 0),WW(function(){return n.pipe(FlE())}),VQ(),vV(v));
x=x.pipe(kh(void 0),WW(function(){return n.pipe(EEI())}),VQ(),vV(v));
return{totalMeasurementTime:f.pipe(kh(void 0),WW(function(){return E.pipe(l_(function(e){return{timestamp:e.timestamp,value:!0}}),QiX())}),VQ(),vV(v)),
totalUnviewedTime:f.pipe(kh(void 0),WW(function(){return E.pipe(l_(function(e){return{timestamp:e.timestamp,value:e.value===0}}),QiX())}),VQ(),vV(v)),
maxTimeOnScreen:f.pipe(kh(void 0),WW(function(){return E.pipe(epI(nEQ,y))}),VQ(_.F1),vV(v)),
timeOnScreen:f.pipe(kh(void 0),WW(function(){return E.pipe(epI(FzL,y),l_(function(e){return e.map(function(F,b){return b>0?F-e[b-1]:F})}))}),VQ(_.F1),vV(v)),
maxConsecutiveViewTime:x,consecutiveViewTime:Q.pipe(VQ(Yr),vV(v))}};
lBL=function(v){var E=!0;E=E===void 0?!1:E;return Td(WW(function(n){return bTQ(v.document,n,E)}),vV(v.queue))};
scE=function(v,E,n){var f=n.pipe(l_(function(x){return{value:x,timestamp:v.timeProvider.now()}}),VQ(Yr));
return E instanceof iW?E.pipe(VQ(),WW(function(x){return x?DJ(new ns({value:!1,timestamp:v.timeProvider.now()}),v.queue):f})):E.value===!1?f:new ns(!1)};
r7N=function(v,E,n,f,x,y,Q){var e=isI;E=E instanceof iW?E.pipe(kh(!1),VQ()):E;var F=!v.isMobile();n=scE(v,n,f);v=Q.measurableCreative.pipe(cJI(v.queue));return Object.assign({},e,{geometryIsOccluded:n,wasLargeAdAtRender:x,allowLargeAdThreshold:F,mayUseViewportShareExposure:E,hasMeasurementStarted:v,useIntersectionObserverV2:y})};
aBX=function(v,E,n,f,x,y){var Q=1;y=y===void 0?!0:y;Q=Q===void 0?.01:Q;var e=e===void 0?v.timeProvider.intervalObservable(100).pipe(vV(v.queue)):e;return v.performanceMonitor.timeExecution(916,function(){return PY9(v,E.pipe(BW(v.queue)),n.pipe(BW(v.queue)),f,x,y,Q,e)})()};
PY9=function(v,E,n,f,x,y,Q,e){var F=Xvy(v).pipe(l_(function(l){return!l})),b=new ZT9(v,[new CYG(v,mEQ),
new MCs(v,e)]);e=iI1(SVA,UEQ);return jl1(v,E,function(l,r){var a=DJ(new ns(r.element),l.queue).pipe(lBL(l),vV(l.queue)),M={loadedElement:a,shouldMeasure:a.pipe(Yh(!0)),measurableCreative:a.pipe(l_(function(xX){var t=t===void 0?Symbol():t;return Object.freeze({symbol:t,element:DJ(new ns(xX),l.queue)})})),
creativeSearchResult:DJ(new ns("mue"),l.queue)},U=new ns(!1),d=new ns(!1),Y=new ns(17),V=new ns(!1),O=new ns(!1),T=DJ(gA,l.queue);U=b.buildGeometrySource(M,{inApp:U,useV2:!1,requestSource:DJ(Y,l.queue)}).geometrySource;M=r7N(l,V,d,F,O,T,M);d=TAA(l.queue,l.timeProvider,U,M);M=d.geometrySignals;V=d.shouldResetViewabilitySignals;d=wvN(l.queue,M.timestampedExposure,M.visible,d.shouldResetExposureSignals,V);V=vEN(l.queue,l.timeProvider,V,M.measurementRequests,M.visible);O=n.pipe(U8(function(xX){return xX===
r.element.ref}),l_(function(){return"ur"}));
T=adA(l.timeProvider,x).pipe(Yh("t"));O=IJ9(l,S8(O,T));T=etX(l,M.measurementRequests,O.pipe(U8(function(xX){return xX!==null})));
U=O.pipe(U8(function(xX){return xX!==null}),l_(function(){return Qcs(l.global.document)===1}));
var L=qVI(l.document);return Object.assign({},{beaconFactory:new ns(l.beaconFactory),context:new ns(l),inferredPingId:new ns("lidar2"),timeOnScreenPingId:new ns("lidartos"),binaryContext:new ns(17),binaryVersion:new ns(f),requestSource:Y,contextValidationErrors:new ns(l.validate()?null:new lU),contextVisibilityKnown:new ns(L),payloadMapper:new ns(G6X),endOfSessionReason:O,timeOnScreenReason:O,requestMeasurementOnEndOfSession:T,hasImpressionFired:J7F,crossDomainIframeState:new ns(l.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:gA,inFetchLaterBeaconExperiment:gA,isTurtlex:gA,turtlexReportEventData:new ns(""),reportFencedFrameEvent:wA,isViewableAttributionEnabled:gA,inViewableAttributionExperiment:new ns(0),fetchBeaconFactory:wA,supportsPendingBeacon:gA,supportsFetchLater:gA,emit:new ns(t8N),beginToRenderEvent:new ns(Symbol()),activeViewUnmeasurableEvent:new ns(Symbol()),activeViewViewableEvent:new ns(Symbol()),creativeFound:J7F,immediateUrlPrefixes:new ns(r.immediateUrls),timeOnScreenUrlPrefixes:new ns(r.timeOnScreenUrls),
cpmavUrls:wA,viewableRelayUrls:wA,measurementDeferralState:new ns(2),urlSerializer:new ns(fJ9),viewUrlSerializer:new ns(Kz$),isCreativeLoaded:a.pipe(cJI(l.queue)),pageVisible:F.pipe(l_(function(xX){return!xX})),
eosPageVisible:U,timestampedExposureHistory:M.timestampedExposure.pipe(O8(function(xX,t){xX.push(t);return xX},[]))},M,{viewable:AJ(l,V),
maxTimeOnScreen:AJ(l,d.maxTimeOnScreen),timeOnScreen:AJ(l,d.timeOnScreen),maxConsecutiveViewTime:AJ(l,d.maxConsecutiveViewTime),consecutiveViewTime:d.consecutiveViewTime.pipe(l_(function(xX){return new hJ(l.timeProvider,xX)})),
totalMeasurementTime:AJ(l,d.totalMeasurementTime),totalUnviewedTime:AJ(l,d.totalUnviewedTime),userAgentClientHints:icL(l),clientOrderPingCounter:new ns(new k6Q)})},TYG(v,Q),zqQ(y?RqX(e,dEX):RqX(e,IBF),YVX))};
htG=function(v){return new RegExp("[^#]*[?&]"+v+"=([^&#]*)")};
A7E=function(v,E){return(v=E.exec(v))?v[1]:null};
VCX=function(v){var E=_.rV.apply(1,arguments).filter(Boolean).join("&");if(!E)return v;var n=v.match(/[?&]adurl=/);return n?v.slice(0,n.index+1)+E+"&"+v.slice(n.index+1):v+(v.indexOf("?")<0?"?":"&")+E};
N0=function(v,E){return E?"&"+v+"="+encodeURIComponent(E):""};
DEE=function(){try{var v,E;return!!((v=window)==null?0:(E=v.top)==null?0:E.location.href)&&!1}catch(n){return!0}};
_.uU=function(v){v&&typeof v.dispose=="function"&&v.dispose()};
_.js=function(v){for(var E=0,n=arguments.length;E<n;++E){var f=arguments[E];_.E1(f)?_.js.apply(null,f):_.uU(f)}};
gEQ=function(){var v=HTI();v=v===void 0?"bevasrsg":v;return new Promise(function(E){var n=window===window.top?window:DEE()?window:window.top,f=n[v],x;((x=f)==null?0:x.bevasrs)?E(new Oh(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),n[v]=f),f.nqfbel.push(function(y){E(new Oh(y))}))})};
NC1=function(v){var E={c:v.wO,e:v.vsR,mc:v.vCH,me:v.fWd};v.tT&&(E.co={c:v.tT.dTJ,a:v.tT.mv5,s:v.tT.cOo});return E};
uVL=function(v){var E,n,f={wO:v.c,vsR:v.e,vCH:(E=v.mc)!=null?E:!1,fWd:(n=v.me)!=null?n:!1};v.co&&(f.tT={dTJ:v.co.c,mv5:v.co.a,cOo:v.co.s});return f};
jcG=function(v){return function(){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v(),2);E=n.yieldResult;return n.return({f:function(){return E.e7L()},
c:function(f){return E.krY(f)},
m:function(f){return E.pI(uVL(f))},
mws:function(f){return E.zV(uVL(f))}})})}};
OTs=function(v,E){var n=HTI();n=n===void 0?"bevasrsg":n;E={s:function(y){var Q;return v.snapshot(Object.assign({},y.c&&{wO:y.c},y.s&&{amu:y.s},{zOQ:(Q=y.p)!=null?Q:!0}))},
e:function(y){var Q;return void((Q=v.kTL)==null?void 0:Q.call(v,y))},
c:function(y,Q){return v.dBp(y,Q)},
p:v.dGl,l:function(){return v.t6K()},
wpc:E?jcG(E):void 0};var f=window===window.top?window:DEE()?window:window.top,x=f[n];if(x){x.bevasrs=E;if(x.nqfbel!==void 0)for(n=_.p(x.nqfbel),f=n.next();!f.done;f=n.next())f=f.value,f(E);x.nqfbel=void 0}else x={},x=(x.bevasrs=E,x.nqfbel=void 0,x),f[n]=x};
Wzs=function(v){var E=E===void 0?49:E;var n=[];_.kr(v,kcN,6,_.WV()).forEach(function(f){_.$r(f,2)<=E&&n.push(_.$r(f,1))});
return n};
$E1=function(v){var E=E===void 0?49:E;var n=[];_.kr(v,kcN,6,_.WV()).forEach(function(f){_.$r(f,2)>E&&n.push(_.$r(f,1))});
return n};
LzF=function(v){v.then(function(){},function(){})};
Ls=function(v){return{fieldType:1,fieldName:v}};
G7=function(v){return{fieldType:2,fieldName:v}};
_.T7=function(v){return{fieldType:3,fieldName:v}};
Gc$=function(){function v(){x[0]=1732584193;x[1]=4023233417;x[2]=2562383102;x[3]=271733878;x[4]=3285377520;l=b=0}
function E(r){for(var a=Q,M=0;M<64;M+=4)a[M/4]=r[M]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3];for(M=16;M<80;M++)r=a[M-3]^a[M-8]^a[M-14]^a[M-16],a[M]=(r<<1|r>>>31)&4294967295;r=x[0];var U=x[1],d=x[2],Y=x[3],V=x[4];for(M=0;M<80;M++){if(M<40)if(M<20){var O=Y^U&(d^Y);var T=1518500249}else O=U^d^Y,T=1859775393;else M<60?(O=U&d|Y&(U|d),T=2400959708):(O=U^d^Y,T=3395469782);O=((r<<5|r>>>27)&4294967295)+O+V+T+a[M]&4294967295;V=Y;Y=d;d=(U<<30|U>>>2)&4294967295;U=r;r=O}x[0]=x[0]+r&4294967295;x[1]=x[1]+U&4294967295;x[2]=
x[2]+d&4294967295;x[3]=x[3]+Y&4294967295;x[4]=x[4]+V&4294967295}
function n(r,a){if(typeof r==="string"){r=unescape(encodeURIComponent(r));for(var M=[],U=0,d=r.length;U<d;++U)M.push(r.charCodeAt(U));r=M}a||(a=r.length);M=0;if(b==0)for(;M+64<a;)E(r.slice(M,M+64)),M+=64,l+=64;for(;M<a;)if(y[b++]=r[M++],l++,b==64)for(b=0,E(y);M+64<a;)E(r.slice(M,M+64)),M+=64,l+=64}
function f(){var r=[],a=l*8;b<56?n(e,56-b):n(e,64-(b-56));for(var M=63;M>=56;M--)y[M]=a&255,a>>>=8;E(y);for(M=a=0;M<5;M++)for(var U=24;U>=0;U-=8)r[a++]=x[M]>>U&255;return r}
for(var x=[],y=[],Q=[],e=[128],F=1;F<64;++F)e[F]=0;var b,l;v();return{reset:v,update:n,digest:f,digestString:function(){for(var r=f(),a="",M=0;M<r.length;M++)a+="0123456789ABCDEF".charAt(Math.floor(r[M]/16))+"0123456789ABCDEF".charAt(r[M]%16);return a}}};
BCA=function(v,E){E=E===void 0?TCL:E;if(!iTE){var n;v=(n=v.navigator)==null?void 0:n.userAgentData;if(!v||typeof v.getHighEntropyValues!=="function"||v.brands&&typeof v.brands.map!=="function")return Promise.reject(Error("ya"));ztE((v.brands||[]).map(function(x){var y=new RtN;y=_.ps(y,1,x.brand);return _.ps(y,2,x.version)}));
typeof v.mobile==="boolean"&&_.iU(tCN,2,v.mobile);iTE=v.getHighEntropyValues(E)}var f=new Set(E);return iTE.then(function(x){var y=tCN.clone();f.has("platform")&&_.ps(y,3,x.platform);f.has("platformVersion")&&_.ps(y,4,x.platformVersion);f.has("architecture")&&_.ps(y,5,x.architecture);f.has("model")&&_.ps(y,6,x.model);f.has("uaFullVersion")&&_.ps(y,7,x.uaFullVersion);return y.serialize()}).catch(function(){return tCN.serialize()})};
z7=function(v,E,n,f){this.initialValue_=v;this.maxValue_=E;this.currBaseValue_=this.currValue_=v;this.randomFactor_=n||0;this.backoffFactor_=f||2};
Ri=function(v){this.src=v;this.listeners={};this.typeCount_=0};
o7N=function(){for(var v;v=v79.remove();){try{v.fn.call(v.scope)}catch(E){o$(E)}E7$.put(v)}n7X=!1};
_.fYN=function(v){switch(v){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}};
xBN=function(v){switch(v){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""}};
_.cvN=function(){};
bpy=function(v){return{n8B:new yvX(v),errorCount:new pf$(v),eventCount:new Q0X(v),rdn:new XfX(v),oW8:new eC9(v),hHI:new FAQ(v),qFG:new mBs(v),eHa:new wfX(v)}};
SBX=function(v,E,n,f){v=lYN(s0L(rvN(new _.tJ(1828,"0"),v),new PaE));E.length&&aYE(v,Zp1(new Ca9,E));f!==void 0&&(v.destinationUrl=f);var x=new MaQ(1828,"","",!1,"",v.build());_.BV(x,v);var y=new vv({flush:function(Q){try{x.flush(Q)}catch(e){n(e)}}});
y.addOnDisposeCallback(function(){setTimeout(function(){try{y.snapshotAndFlush()}finally{x.dispose()}})});
y.invocationLimit=1E5;y.flushInterval=3E4;y.JSC$7679_flushTimer.setInterval(3E4);return y};
EV=function(){var v,E,n;return(n=(v=globalThis.performance)==null?void 0:(E=v.now)==null?void 0:E.call(v))!=null?n:Date.now()};
$BG=function(v,E,n){if(v.disable)return new UBs;E=E?Wzs(E):[];if(n)return n.dkl(E),n.share();v={d0:v.d0,eHp:v.pu7,hxK:v.xj7,destinationUrl:v.destinationUrl,aQX:v.aQX,pbM:v.pbM};n=E;n=n===void 0?[]:n;return new qBG(v,n)};
_.LAI=function(v){if(!v)return null;v=_.nT(v,4);return v===null||v===void 0?null:_.xR(v)};
ipL=function(v,E){return E?GrA(E):v?TFL(v):Promise.resolve()};
GrA=function(v){return new Promise(function(E,n){var f=_.oc("SCRIPT"),x=_.LAI(v);_.Vv(f,x);f.onload=function(){_.fT(f);E()};
f.onerror=function(){_.fT(f);n(Error("Ja"))};
(xE("HEAD")[0]||document.documentElement).appendChild(f)})};
TFL=function(v){return new Promise(function(E){var n=_.oc("SCRIPT");if(v){var f=_.nT(v,6);f=f===null||f===void 0?null:_.YR(f)}else f=null;_.AA(n,f);(xE("HEAD")[0]||document.documentElement).appendChild(n);_.fT(n);E()})};
cv=function(v,E,n){var f,x=new Promise(function(y){f=setTimeout(y,E)});
return Promise.race([v.finally(function(){return void clearTimeout(f)}),
x.then(n)])};
zCQ=function(v,E){try{return globalThis.sessionStorage.setItem(v,E),!0}catch(n){return!1}};
RC9=function(v,E,n,f){E=E===void 0?0:E;n=n===void 0?v.length:n;var x=0;for(f&&(x=RC9(f));E<n;E++)f=typeof v==="string"?v.charCodeAt(E):v[E],x=ta$(31,x)+f|0;return x};
BF1=function(v,E){return[RC9(v,0,v.length>>1,E),RC9(v,v.length>>1)]};
v6X=function(v){var E=_.p(BF1(v,yK));v=E.next().value;E=E.next().value;return v.toString(16)+E.toString(16)};
E6G=function(v,E){var n=BF1(E);v=new Uint32Array(v.buffer);E=v[0];var f=_.p(n);n=f.next().value;f=f.next().value;for(var x=1;x<v.length;x+=2){for(var y=E,Q=x,e=n,F=f,b=0;b<22;b++)Q=Q>>>8|Q<<24,Q+=y|0,Q^=e+38293,y=y<<3|y>>>29,y^=Q,F=F>>>8|F<<24,F+=e|0,F^=b+38293,e=e<<3|e>>>29,e^=F;y=[y,Q];v[x]^=y[0];x+1<v.length&&(v[x+1]^=y[1])}};
n6N=function(v,E,n,f,x){var y=(4-(yK.length+n.length)%4)%4,Q=new Uint8Array(4+y+yK.length+4+n.length),e=new DataView(Q.buffer),F=0;e.setUint32(F,Math.random()*4294967295);F=F+4+y;Q.set(yK,F);F+=yK.length;e.setUint32(F,x);Q.set(n,F+4);E6G(Q,f);return v.insert(E,function(b){return void globalThis.sessionStorage.removeItem(b)})?zCQ(E,_.z3(Q))?"s":"t":"i"};
o6Q=function(v,E){var n=globalThis.sessionStorage.getItem(v);if(!n)return["m"];try{var f=_.w1(n);E6G(f,E)}catch(x){return globalThis.sessionStorage.removeItem(v),["c"]}for(E=4;E<7&&f[E]===0;)E++;for(n=0;n<yK.length;n++)if(f[E++]!==yK[n])return globalThis.sessionStorage.removeItem(v),["d"];n=(new DataView(f.buffer)).getUint32(E);return Math.floor(Date.now()/1E3)>=n?(globalThis.sessionStorage.removeItem(v),["e"]):["a",new Uint8Array(f.buffer,E+4)]};
fUs=function(v){return globalThis.TextEncoder?(new TextEncoder).encode(v):_.pT(v)};
xX$=function(v){var E=v,n;return function(){if(E){var f=E;E=void 0;n=f.apply(this,arguments)}return n}};
yMX=function(v){return GS(function(E){if(E instanceof v)return!0;var n,f,x=E==null?void 0:(n=E.ownerDocument)==null?void 0:(f=n.defaultView)==null?void 0:f[v.name];return cMA(x)&&E instanceof x})};
_.eC=function(v,E,n){_.QK.call(this);this.JSC$7894_listener_=v;this.JSC$7894_interval_=E||0;this.handler_=n;this.callback_=(0,_.XV)(this.JSC$7896_doAction_,this)};
_.FV=function(v){v=pGA(v);return _.xR(v)};
pGA=function(v){return v===null?"null":v===void 0?"undefined":v};
XG9=function(v){if(v&&v.focus)if(v!==document.activeElement)v.focus();else return Q5L(function(){return _.X(function(E){document.activeElement&&document.activeElement.blur();return E.return(Q5L(function(){v.focus()}))})})};
_.exE=function(v){var E=E===void 0?5:E;setTimeout(function(){var n;return _.X(function(f){f.nextAddress==1&&(n=document.activeElement);if(f.nextAddress!=5)return(document.activeElement===n||document.activeElement===document.body)&&E>=0&&v?_.m(f,XG9(v),5):f.jumpTo(0);if(document.activeElement===v)return f.return();v=v.parentElement;--E;return f.jumpTo(2)})},15)};
Q5L=function(v){return new Promise(function(E){requestAnimationFrame(function(){E(v())})})};
mXs=function(v){if(_.mz)v(_.mz);else{var E;((E=FMQ)!=null?E:FMQ=[]).push(v)}};
bY=function(){!_.mz&&_.wC&&_.wGA(_.wC());return _.mz};
_.wGA=function(v){_.mz=v;var E;(E=FMQ)==null||E.forEach(mXs);FMQ=void 0};
_.lY=function(v){_.mz&&_.mz.beforeLoadModuleCode(v)};
_.sV=function(){_.mz&&_.mz.JSC$8844_setLoaded()};
rC=function(v){return D1(v)?Number(v):String(v)};
bkG=function(v){this.action=v;this.wfv=!1};
lUL=function(v,E){bkG.call(this,"set-drive-options");this.appId=v;this.appOrigin=E};
s59=function(v){bkG.call(this,"visibility");this.visible=v};
rMA=function(v,E,n){Pv.call(this,v,E,n)};
P5E=function(v){ac.call(this,v)};
aUy=function(v){v=v&&v.getWindow()||window;return v.gadgets&&v.gadgets.rpc};
C5L=function(v,E){var n=E&&E.getWindow()||window;if(aUy(E))v();else if(Zks)Zks.push(v);else var f=Zks=[v],x=n.setInterval(function(){if(aUy(E)){n.clearInterval(x);for(var y=0;y<f.length;y++)f[y]();Zks=null}},100)};
SOX=function(v,E){var n=new ZB(v);_.BV(E,n);var f={passive:!1};E.listen(n,"mousewheel",function(x){return void Mp$(v,x)},f).listen(v,"scroll",function(x){return void Mp$(v,x)},f)};
Mp$=function(v,E){var n;a:{for(n=E.target;n;){if(n.nodeType==1){var f=_.CT(n,"overflowY");if(f=="auto"||f=="scroll")break a}n=n.parentNode}n=null}if(!n||!_.ME(v,n)||n.scrollHeight==n.clientHeight||E.deltaY>0&&Math.abs(n.scrollTop-(n.scrollHeight-n.clientHeight))<=1||E.deltaY<0&&n.scrollTop==0)E.preventDefault(),E.stopPropagation()};
Ic=function(v,E,n,f,x,y,Q,e,F){e=e===void 0?!1:e;F=F===void 0?!1:F;Pv.call(this,void 0,void 0,void 0);Pv.call(this,y?y+" picker modal-dialog":"picker modal-dialog",!0,n);_.SC(v,"protocol");this.iframeManager_=new UXI;this.targetId_=UV();this.rpcToken_=UV();v=_.qE(v);_.J7(v,"hostId");n=_.J7(v,"parent");this.useGapi_=!F&&!0||(n==null?void 0:n.includes("onepick.corp.google.com"));e&&_.KT(v,"fv2","true");this.setUrl(v.toString());this.preferredDialogWidth_=f;this.preferredDialogHeight_=x;f!==void 0||
x!==void 0?f=!0:(f=_.J7(_.qE(v.toString()),"hostId"),qOF||(qOF=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),f=!qOF.has(f));this.autoSizeDialog_=f;this.JSC$8084_gadgetsDomHelper_=Q||this.JSC$8035_dom_;E&&(Q=this.JSC$8084_gadgetsDomHelper_,E=_.J7(_.qE(this.JSC$8086_url_),"grugl")=="true"?JMX:KMQ,aUy(Q)||(Q=Q||y4(document),f=Q.createElement("SCRIPT"),_.Vv(f,E),f.type="text/javascript",Q.JSC$7222_document_.body.appendChild(f)));
v=v.toString();E=null;Q=v.indexOf("/picker?");Q>-1?E=v.substring(0,Q+8-1):p1(v,"/picker")&&(E=v);E&&this.setRelayUrl(E+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(v=this.buttons_,v.JSC$8069_element_=this.buttonEl_,v.render()):_.Dd(this.buttonEl_,dXy),_.dC(this.buttonEl_,!!this.buttons_))};
_.AME=function(v){var E=E===void 0?IUQ:E;var n=_.xw(v),f=function(y){y=_.p(y);y.next();y=YE(y);return E(n,y)},x=function(y){var Q=_.p(y);
y=Q.next().value;Q=YE(Q);return v.apply(y,Q)};
return function(){var y=_.rV.apply(0,arguments),Q=this||_.n1,e=YOE.get(Q);e||(e={},YOE.set(Q,e));return hxQ(e,[this].concat(_.s8(y)),x,f)}};
h7=function(v){var E={};v=v.replace(/\r/g,"").split("\n");for(var n=0;n<v.length;n++){var f=v[n],x=f.indexOf(":");x<0||(E[f.substring(0,x)]=f.substring(x+2,f.length))}return E};
Vp$=function(v,E,n){n=n===void 0?function(){}:n;
E=_.p(E);for(var f=E.next();!f.done;f=E.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;if(f instanceof Array&&f.includes(v)||f===v)return x()}return n()};
A7=function(v,E,n){n=n===void 0?function(){}:n;
return v?E():n()};
_.Hk$=function(v){var E;return((E=DXX.documentOverride)!=null?E:v).__wizdispatcher};
DB=function(v){var E=VK;VK=v;return E};
NBN=function(v,E){var n;if((n=v)==null?0:n.isDisposed)throw Error("nb`"+String(v.debugName));for(;v!==void 0;){n=v;if(n.retrieve)return n.retrieve(E,{optional:!0});v=v.parent}return g69};
Hv=function(v){return{"\u0275prov":{providedIn:"root",token:Symbol(v),factory:void 0,value:void 0}}};
uoI=function(v){var E=DB(v);v={};return v[Symbol.dispose]=function(){DB(E)},v};
j5F=function(v,E){v.disposables||(v.disposables=[]);v.disposables.push(E)};
gC=function(v){var E=VK;E&&!E.isDisposed&&(j5F(E,function(){return void Ok9(v)}),v.parent=E)};
kaG=function(v){if(v.disposables){for(var E=_.p(v.disposables),n=E.next();!n.done;n=E.next())n=n.value,n();v.disposables.length=0}};
Ok9=function(v){if(!v.isDisposed){v.isDisposed=!0;var E;(E=v[Symbol.dispose])==null||E.call(v);delete v.parent;kaG(v)}};
tps=function(v){var E={retrieve:function(n){switch(n.\u0275prov.token){case WMI.\u0275prov.token:var f=v.asyncDeps;break;case $XA.\u0275prov.token:f=v.rootElement;break;case LMQ.\u0275prov.token:f=v.modelRootElement;break;case Ga9.\u0275prov.token:f=v.appContext;break;case TBE.\u0275prov.token:f=v.rendererData;break;case ikI.\u0275prov.token:f=v.injectingConstructor;break;case zxX.\u0275prov.token:f=v.dispatcher}if(f)n=f;else a:{for(f=E.parent;f;){var x=f;if(x.retrieve){n=x.retrieve(n);break a}f=
f.parent}f=n.\u0275prov.token;x=RxE[f];x!==void 0?n=x:(x=n.\u0275prov.providedIn,n.\u0275prov.factory?(n=n.\u0275prov.factory(),f&&x==="root"&&(RxE[f]=n)):n=g69)}return n}};
gC(E);return E};
BB1=function(v){if(typeof document!=="undefined"&&document&&document.getElementById&&(v=document.getElementById(v))){var E=v.tagName.toUpperCase();if(E=="SCRIPT"||E=="LINK")return v}return null};
EmE=function(v,E){if((v=v===void 0?"":v)&&E)throw Error("ub");var n="";var f=_.n1._F_jsUrl;(v=E||BB1(v))&&(n=v.src?v.src:v.getAttribute("href"));if(f&&n){if(f!=n)throw Error("vb`"+f+"`"+n);n=f}else n=f||n;if(!vmG(n))throw Error("wb");return n};
fuX=function(){if(!nmN){nmN=!0;try{var v=EmE(_.n1._F_jsUrl?"":"base-js")}catch(f){return}var E=omy(NE(v)),n=Object.keys(E);n.length!==0&&mXs(function(f){for(var x=_.p(n),y=x.next();!y.done;y=x.next()){y=y.value;for(var Q=_.p(Object.keys(E[y])),e=Q.next();!e.done;e=Q.next())f.addExtraEdge(y,e.value)}})}};
xpQ=function(v,E,n){var f;return v&&E?v+"__"+E:(f=v!=null?v:E)!=null?f:n};
yOI=function(){var v=Object.assign({},cOQ);Object.getOwnPropertyNames(cOQ).forEach(function(E){uY[E]!==void 0&&(v[E]=uY[E])});
return v};
pA1=function(v,E){if(uY.enablePerformanceTiming){var n,f;(f=(n=performance).mark)==null||f.call(n,v+"Start__"+E)}};
QPX=function(v,E){if(uY.enablePerformanceTiming){var n,f;(f=(n=performance).measure)==null||f.call(n,v+"__"+E,v+"Start__"+E)}};
e5$=function(v,E){var n=Object.create(XAy);n.debugName=E;!VK||gC(n);E=DB(n);try{v(n)}finally{DB(E)}return function(){return void Ok9(n)}};
wAF=function(v){return FxA(v)&&mpE in v};
bEA=function(v,E){return Object.is(v,E)};
OV=function(v){var E=jC;jC=v;return E};
PqN=function(v){if(kE)throw Error("da");if(jC!==null){var E=jC.nextProducerIndex++;luA(jC);E<jC.producerNode.length&&jC.producerNode[E]!==v&&LT(jC)&&sPX(jC.producerNode[E],jC.producerIndexOfThis[E]);jC.producerNode[E]!==v&&(jC.producerNode[E]=v,jC.producerIndexOfThis[E]=LT(jC)?rON(v,jC,E):0);jC.producerLastReadVersion[E]=v.version}};
CqN=function(v){if(!LT(v)||v.dirty)if(v.dirty||v.lastCleanEpoch!==au9)(v.producerMustRecompute(v)||ZEA(v))&&v.producerRecomputeValue(v),v.dirty=!1,v.lastCleanEpoch=au9};
M5F=function(v){if(v.liveConsumerNode!==void 0){var E=kE;kE=!0;try{for(var n=_.p(v.liveConsumerNode),f=n.next();!f.done;f=n.next()){var x=f.value;x.dirty||(v=void 0,x.dirty=!0,M5F(x),(v=x.consumerMarkedDirty)==null||v.call(x,x))}}finally{kE=E}}};
SHF=function(){var v;return((v=jC)==null?void 0:v.consumerAllowSignalWrites)!==!1};
UpI=function(v){v&&(v.nextProducerIndex=0);return OV(v)};
qHA=function(v,E){OV(E);if(v&&v.producerNode!==void 0&&v.producerIndexOfThis!==void 0&&v.producerLastReadVersion!==void 0){if(LT(v))for(E=v.nextProducerIndex;E<v.producerNode.length;E++)sPX(v.producerNode[E],v.producerIndexOfThis[E]);for(;v.producerNode.length>v.nextProducerIndex;)v.producerNode.pop(),v.producerLastReadVersion.pop(),v.producerIndexOfThis.pop()}};
ZEA=function(v){luA(v);for(var E=0;E<v.producerNode.length;E++){var n=v.producerNode[E],f=v.producerLastReadVersion[E];if(f!==n.version)return!0;CqN(n);if(f!==n.version)return!0}return!1};
rON=function(v,E,n){JOQ(v);if(v.liveConsumerNode.length===0&&v.producerNode!==void 0)for(var f=0;f<v.producerNode.length;f++)v.producerIndexOfThis[f]=rON(v.producerNode[f],v,f);v.liveConsumerIndexOfThis.push(n);return v.liveConsumerNode.push(E)-1};
sPX=function(v,E){JOQ(v);if(v.liveConsumerNode.length===1&&v.producerNode!==void 0)for(var n=0;n<v.producerNode.length;n++)sPX(v.producerNode[n],v.producerIndexOfThis[n]);n=v.liveConsumerNode.length-1;v.liveConsumerNode[E]=v.liveConsumerNode[n];v.liveConsumerIndexOfThis[E]=v.liveConsumerIndexOfThis[n];v.liveConsumerNode.length--;v.liveConsumerIndexOfThis.length--;E<v.liveConsumerNode.length&&(n=v.liveConsumerIndexOfThis[E],v=v.liveConsumerNode[E],luA(v),v.producerIndexOfThis[n]=E)};
LT=function(v){var E,n;return v.consumerIsAlwaysLive||((n=v==null?void 0:(E=v.liveConsumerNode)==null?void 0:E.length)!=null?n:0)>0};
luA=function(v){v.producerNode!=null||(v.producerNode=[]);v.producerIndexOfThis!=null||(v.producerIndexOfThis=[]);v.producerLastReadVersion!=null||(v.producerLastReadVersion=[])};
JOQ=function(v){v.liveConsumerNode!=null||(v.liveConsumerNode=[]);v.liveConsumerIndexOfThis!=null||(v.liveConsumerIndexOfThis=[])};
dpE=function(v){var E=Object.create(Kx9);E.computation=v;v=function(){CqN(E);PqN(E);if(E.value===Gc)throw E.error;return E.value};
v[Tc]=E;return v};
YHF=function(v,E){var n=Object.create(Iu$);n.value=v;E!==void 0&&(n.equal=E);v=function(){PqN(n);return n.value};
v[Tc]=n;return v};
V5N=function(v,E){v=YHF(v,E);var n=v[Tc];return[v,function(f){return h5E(n,f)},
function(f){SHF()||AOy(n);h5E(n,f(n.value))}]};
h5E=function(v,E){SHF()||AOy(v);if(!v.equal(v.value,E)){v.value=E;v.version++;au9++;M5F(v);var n;(n=Dps)==null||n(v)}};
Rc=function(v){var E=OV(null);try{return v()}finally{OV(E)}};
_.t7=function(v,E,n){n=n===void 0?"":n;v=V5N(v,E==null?void 0:E.equals);var f=v[0],x=f[Tc];x.debugName=xpQ(E==null?void 0:E.debugName,n,"[signal]");if(!uY.enablePerformanceTiming)return v;var y=v[1],Q=v[2];return[f,function(e){HEE(function(){return void y(e)},x)},
function(e){HEE(function(){return void Q(e)},x)}]};
HEE=function(v,E){pA1("signalSet",E.debugName);try{v()}finally{QPX("signalSet",E.debugName)}};
NdX=function(v,E){var n=_.p(_.t7(v,void 0,"cPpJzc"));v=n.next().value;n=n.next().value;v[gmX]=n;v[Bv]=E;return v};
u71=function(v){return!!v&&typeof v==="object"&&Object.getPrototypeOf(v)===Object.prototype};
jP$=function(v){return typeof v==="function"&&gmX in v&&typeof v[gmX]==="function"};
OEL=function(v,E){Object.defineProperty(v,Bv,{get:function(){return E}})};
EB=function(v,E){if(vf(v)){var n=v.map(function(y){return EB(y,E)});
OEL(n,E);return n}if(u71(v)){n={};v=_.p(Object.entries(v));for(var f=v.next();!f.done;f=v.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;n[f]=EB(x,E)}OEL(n,E);return n}return NdX(v,E)};
kTs=function(v){if(vf(v))return v.map(function(x){return kTs(x)});
if(u71(v)){var E={};v=_.p(Object.entries(v));for(var n=v.next();!n.done;n=v.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;E[n]=kTs(f)}return E}return jP$(v)?v():v};
$pE=function(){var v={height:0,width:0};if(!u71(v))throw Error("Ib");var E=Symbol("Jb");return[EB(v,E),function(n,f){if(n[Bv]===E)if(typeof f==="function"){var x=[].concat(_.s8(kTs(n)));f=f(x)||x;WxN(n,[].concat(_.s8(f)))}else WxN(n,f);else throw Error("Kb");}]};
WxN=function(v,E){if(jP$(v))v[gmX](E);else if(vf(v)&&vf(E))E=EB(E,v[Bv]),v.length=0,v.push.apply(v,_.s8(E));else if((u71(v)||vf(v))&&(vf(E)||typeof E==="object"&&E!==null)){E=_.p(Object.entries(E));for(var n=E.next();!n.done;n=E.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;var x=v,y=x[n];Object.hasOwn(v,n)?WxN(y,f):x[n]=EB(f,v[Bv])}}else throw Error("Lb");};
LxF=function(v){return Object.create(Object.assign({},np,v))};
TdE=function(){var v;return(v=GTX)!=null?v:GTX=LxF({consumerAllowSignalWrites:!0})};
_.o0=function(v,E,n){n=n===void 0?"":n;v=dpE(v);var f=v[Tc];f.debugName=xpQ(E==null?void 0:E.debugName,n,"[computed]");(E==null?void 0:E.equals)!=null&&(f.equal=E.equals);return v};
fp=function(v){var E=OV(iE$);try{v()}finally{OV(E)}};
nHE=function(v){if(!v.isDisposed)switch(v.effectType){case z5X:R5E.schedule(v);break;case t5F:Bd1.schedule(v);break;case vHs:EHN.schedule(v);break;default:_.p0(v.effectType)}};
f$L=function(v){oHI.push(v);return function(){var E=oHI.indexOf(v);E!==-1&&oHI.splice(E,1)}};
csL=function(){if(x7>0)R5E.flush();else for(var v=_.p(x19),E=v.next();!E.done;E=v.next())E.value.flush()};
p7X=function(v){for(var E=_.p(v),n=E.next();!n.done;n=E.next()){var f=n.value;for(n=[f];f.parent!==void 0;)f=f.parent,ysE(f)&&v.has(f)&&n.push(f);for(;n.length>0;){f=n.pop();try{f.run()}finally{v.delete(f)}}}};
QYy=function(v){x7--;if(v){v=_.p(x19);for(var E=v.next();!E.done;E=v.next())E.value.clear()}else x7>0||csL()};
eRI=function(v){var E=v.component;var n=v.debugInstance;v=v.fn;var f=X7X(E);cf={name:n?f+" ("+n+")":f,isReactive:E.componentType!==yh,parent:cf};E=v();cf=cf.parent;return E};
pp=function(){var v=cf;return v?v.isReactive:!1};
Qh=function(v,E){var n=cf;if(E==null?0:E.stack)cf=E.stack;try{return v()}catch(y){v=y;E=cf;try{var f=FiE(E);if(f&&!v.componentStack&&(v.componentStack=f,uY.enableComponentStacksInErrorMessages)){var x=v.message+"\n\nComponent stack: "+f;v.stack&&(v.stack=v.stack.replace(v.message,x));v.message=x}}catch(Q){}if(v!==m19){w7L=cf;f=[];for(x=VK;x;)E=void 0,f.push((E=x.debugName)!=null?E:"[context]"),E=void 0,x=(E=x.parent)!=null?E:null;bZQ=f.reverse()}m19=v;throw v;}finally{cf=n}};
FiE=function(v){for(var E=0,n="";E<20&&v;)n+=v.name+" > ",v=v.parent,E++;return n.slice(0,-3)};
X7X=function(v){return v.debugName||v.name||"[component]"};
l$9=function(v,E,n){E=Object.create(E);E.componentStack=cf;E.effectFn=v;n&&(E.debugName=n);gC(E);return E};
_.Xp=function(v,E){v=l$9(v,sY9,E);nHE(v)};
_.ea=function(v,E){v=l$9(v,rsQ,E);nHE(v)};
_.Fp=function(v){var E=VK;if(E){var n=cf;j5F(E,function(){var f=OV(TdE());try{Qh(function(){return void v()},{stack:n})}finally{OV(f)}})}};
wF=function(v,E){var n={};(E===void 0||E)&&gC(n);E=DB(n);try{v(n)}finally{DB(E)}return function(){return void Ok9(n)}};
_.ba=function(v){return typeof v==="function"?v():(v==null?0:v[P6X])?v.get():v};
a$F=function(v){if(VK)throw Error("rb");wF(v,!1)};
la=function(v,E){v=DB(v);try{return Rc(E)}finally{DB(v)}};
sB=function(v,E,n){n=n===void 0?3:n;var f=FiE(w7L),x,y;var Q=(y=(x=bZQ)==null?void 0:x.slice())!=null?y:[];E={componentStack:f,contextTrace:Q,errorSeverity:n,featureFlags:yOI(),tagName:E};return[v,E]};
MDE=function(v,E,n){if(Object.hasOwnProperty.call(ZZL,v)&&(v=ZZL[v],Object.hasOwnProperty.call(v,E)&&(v=v[E],v instanceof Array))){for(var f=null,x=!1,y=0,Q=v.length;y<Q;++y){var e=v[y],F=e.contingentAttribute;if(!F)return e.contract;f===null&&(f={});F=Object.hasOwnProperty.call(f,F)?f[F]:f[F]=n(F);if(F===e.requiredValue)return e.contract;F==null&&(x=!0)}if(x)return null}E=C69[E];return typeof E==="number"?E:null};
qUE=function(v,E,n){var f=null;(v=SU$[v])&&(f=v[E]);return typeof f!=="number"&&((v=SU$["*"])&&(f=v[E]),typeof f!=="number")?!1:!0===U1F[f][String(n).toLowerCase()]};
KiE=function(v,E){E=MDE(v.toLowerCase(),E,function(){var f;(f=uY.handleError)==null||f.call.apply(f,[uY].concat(_.s8(sB(Error("Qb"),v.toLowerCase()))))});
if(E===null)return null;var n;return(n=JsE[E])!=null?n:null};
d1X=function(v,E,n){if(n===null||n===void 0)return n;v=KiE(v,E);return v===null?n:v(E,n)};
I$Q=function(){};
rF=function(v,E){for(;v.length>E;)v.pop()};
YUE=function(v){v=Array(v);rF(v,0);return v};
hRE=function(v,E,n){if(n==null)v.removeAttribute(E);else{var f;(f=E.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":E.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?v.setAttributeNS(f,E,n):v.setAttribute(E,n)}};
As9=function(v,E,n){v[E]=n};
D11=function(v,E,n){v=v.style;if(typeof n==="string")v.cssText=n;else{v.cssText="";for(var f in n)if(VDy.call(n,f)){E=v;var x=f,y=n[f];x.indexOf("-")>=0?E.setProperty(x,y):E[x]=y}}};
HZN=function(v,E,n){var f=typeof n;f==="object"||f==="function"?v[E]=n:hRE(v,E,n)};
gH1=function(){var v=new I$Q;v[a0.default]=HZN;v.style=D11;return v};
NhA=function(v,E,n,f){(f[E]||f[a0.default])(v,E,n)};
jYA=function(v,E,n){E=new uOX(E,n);return v.__incrementalDOMData=E};
ZY=function(v,E){if(v.__incrementalDOMData)return v.__incrementalDOMData;var n=v.nodeType===1?v.localName:v.nodeName,f=v.nodeType===1?v.getAttribute("key"):null;E=jYA(v,n,v.nodeType===1?f||E:null);if(v.nodeType===1&&(v=v.attributes,n=v.length)){f=E._attrsArr||(E._attrsArr=YUE(n*2));for(var x=0,y=0;x<n;x+=1,y+=2){var Q=v[x],e=Q.value;f[y]=Q.name;f[y+1]=e}}return E};
OZE=function(v,E,n,f,x){return E==n&&f==x};
k2Q=function(v){for(var E=Cp,n=MB();n!==v;){var f=n.nextSibling;E.removeChild(n);Sa.deleted.push(n);n=f}};
MB=function(){return UB?UB.nextSibling:Cp.firstChild};
qB=function(){UB=MB()};
Li9=function(v,E,n){qB();var f;a:{if(f=UB){do{var x=f,y=v,Q=E,e=ZY(x,Q);if(WiI(x,y,e.nameOrCtor,Q,e.key))break a}while(E&&(f=f.nextSibling))}f=null}f||(v==="#text"?(n=Jv.createTextNode(""),jYA(n,"#text",null),v=n):(f=Jv,x=Cp,typeof v==="function"?f=new v:f=(x=v==="svg"?"http://www.w3.org/2000/svg":v==="math"?"http://www.w3.org/1998/Math/MathML":x==null||ZY(x).nameOrCtor==="foreignObject"?null:x.namespaceURI)?f.createElementNS(x,v):f.createElement(v),jYA(f,v,E),v=f,n&&v.setAttribute("nonce",n)),Sa.created.push(v),
f=v);n=f;if(n!==UB){if($1$.indexOf(n)>=0)for(v=Cp,E=n.nextSibling,f=UB;f!==null&&f!==n;)x=f.nextSibling,v.insertBefore(f,E),f=x;else Cp.insertBefore(n,UB);UB=n}};
G2A=function(v,E,n){Li9(v,E,n);Cp=UB;UB=null;return Cp};
ThG=function(){k2Q(null);UB=Cp;Cp=Cp.parentNode};
Kp=function(){UB=Cp.lastChild};
RRL=function(v,E){E=E===void 0?{}:E;var n=E.matches===void 0?OZE:E.matches;return function(f,x,y){var Q=Sa,e=Jv,F=$1$,b=dF,l=I0,r=UB,a=Cp,M=WiI;Jv=f.ownerDocument;Sa=new iZE(f);WiI=n;dF=[];I0=[];UB=null;var U=Cp=f.parentNode,d,Y=zRX.call(f);if((d=Y.nodeType===11||Y.nodeType===9?Y.activeElement:null)&&f.contains(d)){for(Y=[];d!==U;)Y.push(d),d=d.parentNode||(U?d.host:null);U=Y}else U=[];$1$=U;try{return v(f,x,y)}finally{f=Sa,Y7&&f.deleted.length>0&&Y7(f.deleted),Jv=e,Sa=Q,WiI=M,dF=b,I0=l,UB=r,Cp=a,
$1$=F}}};
tDy=function(v,E,n,f){hv.push(NhA);hv.push(v);hv.push(E);hv.push(n);hv.push(f)};
v$N=function(v,E,n){var f=I0;E=E._attrsArr||(E._attrsArr=YUE(f.length));for(var x=!E.length||!1,y=0;y<f.length;y+=2){var Q=f[y];if(x)E[y]=Q;else if(E[y]!==Q)break;var e=f[y+1];if(x||E[y+1]!==e)E[y+1]=e,tDy(v,Q,e,n)}if(y<f.length||y<E.length){for(y=x=y;y<E.length;y+=2)Av[E[y]]=E[y+1];for(y=x;y<f.length;y+=2)x=f[y],Q=f[y+1],Av[x]!==Q&&tDy(v,x,Q,n),E[y]=x,E[y+1]=Q,delete Av[x];rF(E,f.length);for(var F in Av)tDy(v,F,void 0,n),delete Av[F]}v=BhN;BhN=n=hv.length;for(F=v;F<n;F+=5)(0,hv[F])(hv[F+1],hv[F+
2],hv[F+3],hv[F+4]);BhN=v;rF(hv,v);rF(f,0)};
Vh=function(v){Li9("#text",null);var E=UB;var n=ZY(E);if(n.text!==v){n=n.text=v;for(var f=1;f<arguments.length;f+=1)n=(0,arguments[f])(n);E.data!==n&&(E.data=n)}};
coI=function(v,E,n){if(n===!1&&E$y.has(E))hRE(v,E,null);else if(E!=="idomKey"&&E!=="skip"&&E!=="skipchildren"&&E!=="children"&&E!=="el"){if(E.startsWith("on"))if(E[2]===":"){if(n===void 0||n===null){var f;(f=uY.handleError)==null||f.call.apply(f,[uY].concat(_.s8(sB(Error("Wb`"+E),v.tagName))));v[E]=void 0;return}if(typeof n!=="object"||n===null)throw Error("Xb`"+E+"`"+typeof n);if(typeof n.getFn!=="function")throw Error("Yb`"+E+"`"+Object.keys(n));var x=n.getFn(0),y=E.slice(3);if((f=pp())&&v["on"+
y]===void 0)v.addEventListener(y,x),_.Fp(function(){return void v.removeEventListener(y,x)});
else if(f||!n$y.includes(y))v["on"+y]=x}else{o$9(v,E,n);return}else if(E.startsWith("data-")&&typeof n==="string")try{n=f4X(n)}catch(Q){n="zSoyz"}typeof n!=="function"||v._disposeEffects!=null?(uY.enableAttributeSanitization&&(n=d1X(v.tagName,E,n)),E==="style"?xwX(v,E,n):E.startsWith("prop:")?(E=E.slice(5),v[E]=n):o$9(v,E,n)):(v._signalProps||(v._signalProps=[]),v._signalValues||(v._signalValues=[]),v._signalProps.push(E))}};
yo1=function(v,E,n){n=(n===void 0?{}:n).isReactive;if(E==null?0:E.el){var f=E.el;if(typeof f==="function")f(v);else{var x;(x=f.onRender)==null||x.call(f,v);v._disposeRef||(v._disposeRef=function(){var y;(y=f.onUnmount)==null||y.call(f);delete v._disposeRef},n&&_.Fp(function(){var y;
return void((y=v._disposeRef)==null?void 0:y.call(v))}))}}};
pPE=function(v){return FxA(v)&&DY in v};
QgF=function(v){return pPE(v)?v[DY].flattened:v};
XPG=function(v,E){var n=_.rV.apply(2,arguments),f;E=(f=E)!=null?f:{};f={};return f.type=v,f.props=E,f.children=n,f[Hf]=!0,f};
_.gF=function(v){return v.children};
NB=function(v){var E=e0$!==XPG;e0$=v?Fbs:XPG;return E};
OB=function(v){return _.oF(v)?"nodeType"in v:!1};
k7=function(){return document.createTextNode("")};
Wf=function(v){v=document.createTextNode(String(v));v._isSignalTextNode=!0;return v};
mwL=function(v){var E=document.createElement("div");if(!(v instanceof Ma)){if(v.contentKind!==$7)throw Error("Ub");v=Sc(v.toString())}_.Dd(E,v);v=_.p(E.childNodes);for(var n=v.next();!n.done;n=v.next())n.value._isSafeOrSanitizedHtmlNode=!0;return E};
Tr=function(v){v=typeof v;return v==="string"||v==="number"||v==="boolean"};
wPA=function(v){return v instanceof oC||X_(v)||"function"==typeof _.Na&&v instanceof _.Na||!1};
b3y=function(v,E){var n=v.parentElement;if(!n)return E;n.replaceChild(E,v);return E};
l4E=function(v,E){var n=v[0].parentElement;if(n)if(v[0].previousSibling||v[v.length-1].nextSibling){n.insertBefore(E,v[0]);for(var f=v.length-1;f>=0;f--)n.removeChild(v[f])}else n.textContent="",n.appendChild(E);return E};
sgQ=function(v,E){if(v[0].parentElement)for(var n=v[0].parentElement,f=E.length,x=v.length,y=f,Q=0,e=0,F=v[x-1].nextSibling,b=null;Q<x||e<y;)if(v[Q]===E[e])Q++,e++;else{for(;v[x-1]===E[y-1];)x--,y--;if(x===Q)for(var l=y<f?e?E[e-1].nextSibling:E[y-e]:F;e<y;){var r=E[e++];n.insertBefore(r,l)}else if(y===e)for(;Q<x;)l=v[Q],b&&b.has(l)||n.removeChild(l),Q++;else if(v[Q]===E[y-1]&&E[e]===v[x-1])l=v[--x].nextSibling,n.insertBefore(E[e++],v[Q++].nextSibling),n.insertBefore(E[--y],l),v[x]=E[y];else{if(!b)for(b=
new Map,l=e;l<y;)b.set(E[l],l++);l=b.get(v[Q]);if(l==null)n.removeChild(v[Q]),Q++;else if(e<l&&l<y){r=Q;for(var a=1,M=void 0;++r<x&&r<y&&(M=b.get(v[r]))!=null&&M===l+a;)a++;if(a>l-e)for(r=v[Q];e<l;)n.insertBefore(E[e++],r);else n.replaceChild(E[e++],v[Q++])}else Q++}}return E};
PiA=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("gc`"+v.length+"`"+v.map(roL).join(", "));v=v[0]}if(v==null)return null;if(!(v instanceof _.IC)){var E,n;if((E=window)==null?0:(n=E.trustedTypes)==null?0:n.isScript(v))throw Error("fc");if(String(v).trim().length===0)return null;throw Error("hc`"+roL(v));}return v};
a4E=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("ic`"+v.length+"`"+v.map(roL).join(", "));v=v[0]}if(v==null)return null;if(!MtA(v)){if(String(v).trim().length===0)return null;throw Error("jc`"+roL(v));}return v};
roL=function(v){return"("+typeof v+") "+(v!=null&&typeof v==="object"?v.constructor.name:typeof v)+" "+v};
zr=function(v,E){function n(){x=!1;E.isControlFlowComponent&&x7++;var y=f[0],Q=f[DY].flattened,e=NB(!0);try{var F=v(),b=Z3G(y,F,f);Array.isArray(b)||(f[DY].flattened=[b]);var l=f[DY].flattened;if(Q&&(!Array.isArray(Q)||Q.length!==0)){var r=Array.isArray(Q)?Q[0]:Q,a=r[ia],M=r._disposeEffects;r._disposeEffects=void 0;r=Array.isArray(l)?l[0]:l;r[ia]=a;r[ia]&&(r[ia].numNodes=r===l?1:l.length);r._disposeEffects=M}f[0]=b;E.isControlFlowComponent&&QYy(!1)}catch(U){throw E.isControlFlowComponent&&QYy(!0),
U;}finally{NB(e)}}
E=E===void 0?{}:E;var f=Cis(),x=!0;_.ea(function(){(MQQ==null?0:MQQ.logger)&&!x?MQQ.logger.logGraft(f[0],n):n()},E.debugName);
return f};
Z3G=function(v,E,n){for(;typeof E==="function";)E=E();if(E!=null&&E[Hf]){var f,x,y;(y=uY.handleError)==null||y.call.apply(y,[uY].concat(_.s8(sB(Error("kc`"+((f=E.type)==null?void 0:f.TAG_NAME)),(x=E.type)==null?void 0:x.TAG_NAME))))}if(v==null)return E==null?k7():Tr(E)?Wf(E):wPA(E)?Wf(E.toString()):OB(E)?E:E.length===0?k7():SsI(E,n);if(OB(v)){if(E==null)return b3y(v,k7());if(Tr(E))return Uws(v,E);if(wPA(E))return Uws(v,E.toString());if(OB(E))return b3y(v,E);if(E.length===0)return b3y(v,k7());E=SsI(E,
n);sgQ([v],n[DY].flattened);return E}v=R0(v);if(E==null)return l4E(v,k7());if(Tr(E))return l4E(v,Wf(E));if(wPA(E))return l4E(v,Wf(E.toString()));if(OB(E))return sgQ(v,[E])[0];if(E.length===0)return l4E(v,k7());E=SsI(E,n);sgQ(v,n[DY].flattened);return E};
Uws=function(v,E){v.nodeType===Node.TEXT_NODE?v.textContent!==String(E)&&(v.textContent=String(E)):v=b3y(v,Wf(E));return v};
R0=function(v,E,n){return qs9(v,E!=null?E:[],n===void 0?!1:n)};
SsI=function(v,E){var n=R0(v,void 0,!0);if(n.length===0)return k7();E[DY].flattened=n;return v};
qs9=function(v,E,n,f,x){E=E===void 0?[]:E;n=n===void 0?!1:n;x=x===void 0?-1:x;if(v==null)return E;if(v instanceof tv)return v=v.render(),qs9(v,E,n,f,x);if(OB(E)&&E.nodeType===Node.ELEMENT_NODE)switch(E.tagName){case "SCRIPT":n=PiA(v);n!==null&&_.AA(E,n);return;case "STYLE":n=a4E(v);n!==null&&(E.textContent=_.Smy(n));return}Tr(v)&&(v=Wf(v),f&&n&&(f[x]=v));if(v!=null&&v.contentKind===$7||v instanceof Ma){n=mwL(v);n=Array.from(n.childNodes);n=_.p(n);for(v=n.next();!v.done;v=n.next())JoA(E,v.value);return E}wPA(v)&&
(v=Wf(v.toString()),f&&n&&(f[x]=v));if(OB(v))return JoA(E,v);if(Array.isArray(v)){for(var y=0;y<v.length;y++)qs9(v[y],E,n,v,y);return E}if(typeof v==="function"){v=zr(v,{debugName:"qmF2ne"})[0];if(Array.isArray(v)){n=_.p(v);for(v=n.next();!v.done;v=n.next())JoA(E,v.value);return E}f&&n&&(f[x]=v);return JoA(E,v)}if(v!=null&&v[Hf]){f=NB(!0);x=e0$;try{y=x.apply(null,[v.type,v.props].concat(_.s8(v.children)))}finally{NB(f)}return qs9(y,E,n)}var Q;(Q=uY.handleError)==null||Q.call.apply(Q,[uY].concat(_.s8(sB(Error("lc")))));
return E};
Cis=function(v){var E={};E=Object.assign([],(E[DY]={flattened:[]},E));if(!v)return E;E[0]=SsI(v,E);return E};
JoA=function(v,E){Array.isArray(v)?v.push(E):v.appendChild(E);return v};
Bf=function(v){if(!uY.enableLazyTsx)return v;if(Array.isArray(v)){for(var E=0;E<v.length;E++)v[E]=Bf(v[E]);return v}return v instanceof tv?(v=v.render(),Bf(v)):v};
dw1=function(v,E){var n,f,x=X7X(v),y=function(M){f=M;M=NB(!0);var U=OV(vG);pA1("render",x);try{n=Bf(v(E))}finally{QPX("render",x),OV(U),NB(M)}};
y=uY.enableContextPerComponent?e5$(y,x):wF(y,uY.alwaysTrackContexts||!!VK);wAF(f);if(!E.renderedFromIdom){var Q=DB(f);try{return KbQ(v,E,n),n}finally{DB(Q)}}!pPE(n)&&Array.isArray(n)&&(n=Cis(n));var e=QgF(n);Q=Array.isArray(e)?e[0]:e;var F=!1;if(Q){var b,l=(b=E==null?void 0:E.idomKey)!=null?b:v;b=e!==Q;Q._disposeEffects=y;var r=Q[ia]||{},a=pPE(n)?n:r.sourceDynamicRange;Object.assign(r,{key:l,numNodes:b?e.length:1,context:f,higherOrder:!!Q[ia],sourceDynamicRange:a});Q[ia]=r}else F=!0;(function(){var M=
DB(f);try{KbQ(v,E,e)}finally{DB(M)}})();
F&&y();return n};
I4X=function(v){var E={},n;for(n in v)E={prev$jscomp$23:void 0,next$jscomp$32:void 0},E.prev$jscomp$23=EO[n],E.next$jscomp$32=v[n],EO[n]=function(f){return function(){var x=_.rV.apply(0,arguments);f.prev$jscomp$23.apply(null,_.s8(x));f.next$jscomp$32.apply(null,_.s8(x))}}(E)};
Ysy=function(){if(pp())throw Error("mc");return nk};
h0I=function(v,E){if(!v.__unmounted&&E){v.__unmounted=!0;try{v.didUnmount()}catch(x){var n,f;(f=uY.handleError)==null||f.call.apply(f,[uY].concat(_.s8(sB(x,(n=v.JSC$8160___type)==null?void 0:n.TAG_NAME))))}EO.didUnmount(v);v.el=null;E.__instance&&delete E.__instance}};
VQI=function(v,E,n){v._signalProps!=null&&v._disposeEffects==null&&((n===void 0?0:n)?v._disposeEffects=wF(function(){return void Ao1(v,E)},uY.alwaysTrackContexts||!!VK):Ao1(v,E))};
Ao1=function(v,E){_.ea(function(){for(var n=v._signalProps,f=v._signalValues,x=0;x<n.length;x++){var y=n[x],Q=E[y]();f[x]!==Q&&(f[x]=Q,coI(v,y,Q))}},"e3YVbb")};
Dw9=function(v,E,n){var f,x=[];v._disposeEffects=wF(function(){_.ea(function(){var y=n();if(y===null||y===void 0)y="";if(Tr(y)||y===null)f!=null||(f=document.createTextNode("")),f.parentNode!==v&&(f._isSignalTextNode=!0,v.insertBefore(f,E)),f.textContent=String(y);else if(y!=null&&y.contentKind===$7||y instanceof Ma){for(var Q=x.length>0?x[x.length-1].nextSibling:E,e=_.p(x),F=e.next();!F.done;F=e.next())v.removeChild(F.value);y=mwL(y);x=Array.from(y.childNodes);y=_.p(x);for(e=y.next();!e.done;e=y.next())v.insertBefore(e.value,
Q)}else throw F=(e=(Q=cf)==null?void 0:Q.name)!=null?e:"unknown",Error("bc`"+F+"`"+typeof y);},"VvDgC")},uY.alwaysTrackContexts||!!VK)};
Nty=function(v,E){var n=_.rV.apply(2,arguments);E!=null||(E={});return!uY.enableLazyTsx||cf!=null&&!pp()?H3$(v,E,n):new g$X(v,E,n)};
H3$=function(v,E,n){if(v===_.gF)return n;if(typeof v==="function")return cf&&!pp()&&(E.renderedFromIdom=!0),eRI({component:v,debugInstance:E.debugInstance,fn:function(){var y=uus(v,E,n);if(y)return y;n.length>0&&(E.children=n.length===1?n[0]:n);y=E;if(v.componentType!==yh)var Q=!1;else{y||(y={});var e=new o5(y,v),F=OV(vG);try{Q=e.render(y)}finally{OV(F)}Q instanceof HTMLElement&&(Q.__instance=e,e.el=Q,e.JSC$8160___type=v,v.TAG_NAME=Q.tagName.toLowerCase(),EO.didPatch(e))}return Q===!1?dw1(v,E):Q}});
var f=jgN(v,E),x;for(x in E)coI(f,x,E[x]);VQI(f,E);R0(n,f);yo1(f,E,{isReactive:!0});O3y(f,E);return f};
jgN=function(v,E){v=(k1G.has(v.toLowerCase())?0:Wby.has(v.startsWith("svg:")?v.replace("svg:",""):v))?document.createElementNS("http://www.w3.org/2000/svg",v.startsWith("svg:")?v.replace("svg:",""):v):$wE(v,E)||document.createElement(v);v[LbQ]=!0;return v};
G1X=function(v){if(v){var E;(E=v._disposeRef)==null||E.call(v);var n;(n=v._disposeEffects)==null||n.call(v);v.__instance&&v.__instance instanceof fk&&(E=v.__instance,h0I(E,v),E instanceof o5&&E.disposeEffects());for(E=0;E<v.childNodes.length;E++)G1X(v.childNodes[E])}};
i3I=function(v){TtG.push(v)===1&&requestAnimationFrame(function(){setTimeout(function(){var E=[].concat(_.s8(TtG));TtG=[];E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;try{for(var f=0;f<n.length;f++)G1X(n[f])}catch(x){f=n=void 0,(f=(n=uY).handleError)==null||f.call.apply(f,[n].concat(_.s8(sB(x))))}}})})};
_.w=function(v,E){return e0$.apply(null,[v,E].concat(_.s8(_.rV.apply(2,arguments))))};
R0F=function(){var v=document.body.firstElementChild;window.ng||v.__ngContext__||(v.__ngContext__={},v.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=z0F)};
_.x6=function(v){var E=v.cond;if(E===void 0)return v.else&&v.else();var n=_.o0(function(){return!!E()},void 0,"y0Xknf"),f=function(){var x=E();
if(!x){var y;(y=uY.handleError)==null||y.call.apply(y,[uY].concat(_.s8(sB(tQG.nonNullableCondIsNull()))))}return x};
return zr(function(){var x=n(),y;wF(function(){var Q=OV(vG);try{y=Bf(x?v.then(f):v.else&&v.else())}finally{OV(Q)}},!0);
return y},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
BtF=function(v){return _.x6(v)};
_.cG=function(v){return v.keyBy==="INDEX"?v0A(v):E0N(v)};
n0E=function(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next()){var n=void 0;(n=E.value)==null||n()}};
E0N=function(v){var E=v.keyBy===void 0||v.keyBy==="REFERENCE",n=E?function(l){return l}:v.keyBy,f=[],x=[],y=[],Q=[],e=[],F=[],b=!0;
_.Fp(function(){n0E(Q)});
return zr(function(){var l=v.each(),r=l.length;if(r===0){if(f.length===0&&!b)return y;n0E(Q);f=l;x=[];for(l=0;l<f.length;l++)x.push(n(f[l]));y=[];Q=[];e=[];F=[];v.fallback&&(Q[0]=o0G(function(){y[0]=Bf(v.fallback())}));
b=!1;return y}for(var a=new fmE,M=f.length-1;M>=0;M--)a.push(x[M],M);M=Array(r);for(var U=Array(r),d=Array(r),Y=Array(r),V=Array(E?0:r),O={i$jscomp$485:0};O.i$jscomp$485<r;O={i$jscomp$485:O.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},O.i$jscomp$485++){O.item$jscomp$103=l[O.i$jscomp$485];O.key$jscomp$523=n(O.item$jscomp$103);var T=a.pop(O.key$jscomp$523);T!=null?(d[O.i$jscomp$485]=y[T],U[O.i$jscomp$485]=x[T],M[O.i$jscomp$485]=Q[T],Y[O.i$jscomp$485]=e[T],E||(V[O.i$jscomp$485]=F[T]),fp(function(L){return function(){Y[L.i$jscomp$485](L.i$jscomp$485);
if(!E)V[L.i$jscomp$485](L.item$jscomp$103)}}(O)),delete Q[T]):M[O.i$jscomp$485]=o0G(function(L){return function(){var xX=_.p(_.t7(L.i$jscomp$485,void 0,"g4fKif")),t=xX.next().value;
xX=xX.next().value;Y[L.i$jscomp$485]=xX;U[L.i$jscomp$485]=L.key$jscomp$523;if(E)d[L.i$jscomp$485]=Bf(v.children(L.item$jscomp$103,t));else{var QE=_.p(_.t7(L.item$jscomp$103,void 0,"Ile0Kc"));xX=QE.next().value;QE=QE.next().value;V[L.i$jscomp$485]=QE;d[L.i$jscomp$485]=Bf(v.children(xX,t))}}}(O))}n0E(Q);
f=l;x=U;y=d;Q=M;e=Y;F=V;b=!1;return d},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
v0A=function(v){var E=[],n=[],f=[],x=[],y=!1;_.Fp(function(){for(var Q=_.p(x),e=Q.next();!e.done;e=Q.next())e=e.value,e()});
return zr(function(){var Q=v.each();y&&Q.length>0&&(x.pop()(),E.pop(),y=!1);for(var e=Array(Q.length),F={i$jscomp$486:0};F.i$jscomp$486<Q.length;F={i$jscomp$486:F.i$jscomp$486},F.i$jscomp$486++)if(F.i$jscomp$486<E.length)E[F.i$jscomp$486]!==Q[F.i$jscomp$486]&&(fp(function(l){return function(){return void n[l.i$jscomp$486](Q[l.i$jscomp$486])}}(F)),E[F.i$jscomp$486]=Q[F.i$jscomp$486]),e[F.i$jscomp$486]=f[F.i$jscomp$486];
else{var b=o0G(function(l){return function(){E[l.i$jscomp$486]=Q[l.i$jscomp$486];var r=_.p(_.t7(Q[l.i$jscomp$486],void 0,"QVJXFd")),a=r.next().value;r=r.next().value;n[l.i$jscomp$486]=r;e[l.i$jscomp$486]=Bf(v.children(a,l.i$jscomp$486))}}(F));
x[F.i$jscomp$486]=b}for(;E.length>Q.length;)E.pop(),x.pop()(),n.pop();Q.length===0&&!y&&v.fallback&&(F=o0G(function(){e[0]=Bf(v.fallback())}),x[0]=F,y=!0);
return f=e},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
o0G=function(v){var E=VK;return wF(function(n){var f=OV(vG);try{n.parent=E,v(n)}finally{OV(f)}},!1)};
_.y1=function(v){return v};
_.pk=function(v){return{isDefault:!0,children:v.children}};
_.Q1=function(v){var E=xOG(v),n=_.o0(function(){return cKy(E)},void 0,"BHmkEe");
return zr(function(){var f=n(),x;wF(function(){var y=OV(vG);try{x=Bf(f())}finally{OV(y)}});
return x},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
xOG=function(v){v=v.children;return Array.isArray(v)?v:[v]};
yK$=function(v){var E=v.props;v=v.getChildren()[0];return E.when?{when:E.when,children:v}:{isDefault:!0,children:v}};
cKy=function(v){var E=function(){return null};
v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,n!=null&&n[Hf]&&(n=n.type===_.pk?{isDefault:!0,children:n.children[0]}:{when:n.props.when,children:n.children[0]}),n instanceof tv&&(n=yK$(n)),n.isDefault)E=n.children;else if(n.when())return n.children;return E};
pZQ=function(v){var E=null,n;return{value:null,onRender:function(f){if(n&&f!==n){var x;(x=E)==null||x();n._disposeRef=void 0}n=f;E=v(f)||null},
onUnmount:function(){var f;(f=E)==null||f();E=null}}};
XZE=function(v){var E=Ysy();if(E==null)throw QSE.PRIMITIVE_INVALID_HOOK_CALL();var n=E.hookCounter++;E.hooks||(E.hooks=[]);var f=E.hooks;f[n]||(f[n]={key:v,host:E});if(v!==f[n].key){if(E.JSC$8160___type){var x;v=(x=E.JSC$8160___type)==null?void 0:x.name}else v=E instanceof o5?X7X(E.functionComponent):"<"+E.el.tagName.toLowerCase()+">";throw QSE.OUT_OF_ORDER_HOOK_CALL(v);}return f[n]};
efG=function(v,E){return!v||v.length!==(E==null?void 0:E.length)||v.some(function(n,f){return n!==E[f]})};
Xo=function(v,E){var n=XZE("onChange"),f=Ysy();efG(n.deps,E)&&(n.deps=E,n.pendingEffect=v,f.__syncEffects||(f.__syncEffects=[]),f.__syncEffects.push(n))};
bVF=function(v,E){var n;E!=null?n=E:n=_.Hk$(document).getAppContext();n.get(FtN).JSC$25303_getEventTarget().dispatchEvent(new mO1(wZ$,v,$7))};
_.Fo=function(v,E){var n=n===void 0?{enableDevtools:!1}:n;var f=Qh(function(){var x=OV(vG);try{return wF(function(){var y=_.Hk$(_.ZJ(v)),Q;var e=tps({rootElement:{value:v},appContext:n.appContext||(y==null?void 0:(Q=y.getOptionalAppContext)==null?void 0:Q.call(y)),dispatcher:y});y=DB(e);e=NB(!0);x7++;try{R0(E(),v),QYy(!1)}catch(F){throw QYy(!0),F;}finally{NB(e),DB(y)}},!1)}finally{OV(x)}});
v[lm9]=!0;n.legacyTriggerSoyRendererEvents&&bVF(v,n.appContext);return function(){v.textContent="";f();v[lm9]=!1}};
_.mM=function(v){if(ysE(jC)){var E;(E=uY.handleError)==null||E.call.apply(E,[uY].concat(_.s8(sB(Error("ac")))))}var n=VK,f=cf;Promise.resolve().then(function(){n&&!n.isDisposed&&Qh(function(){var x=DB(n);try{v()}finally{DB(x)}},{stack:f})})};
b5=function(v,E){Xo(function(){return Rc(v)},E)};
_.l5=function(v){pp()?_.mM(function(){Rc(v)}):Xo(function(){return Rc(v)},[])};
rKL=function(v){var E=[].concat(_.s8(v));v.length=0;v=_.p(E);for(E=v.next();!E.done;E=v.next()){E=E.value;sSQ(E);var n=E.pendingEffect;E.pendingEffect=null;if(n=n==null?void 0:n())E.pendingCleanup=n}};
sSQ=function(v){var E=v.pendingCleanup;v.pendingCleanup=null;E==null||E()};
P$$=function(v,E){if(pp())return v();var n=XZE("useMemoInternal");efG(n.deps,E)&&(n.deps=E,n.value=v());return n.value};
sO=function(v,E){return P$$(v,E)};
rB=function(v){return P$$(v,[])};
amL=function(){var v=_.rV.apply(0,arguments),E=rB(function(){return v.map(function(n){return _.t7(n,void 0,"lnSD0c")})});
b5(function(){for(var n=0;n<v.length;n++)(0,E[n][1])(v[n])},v);
return E.map(function(n){return _.p(n).next().value})};
PG=function(v){return rB(function(){return{value:v}})};
_.a5=function(v,E){if(!v)return null;v=Object.keys(v);v=_.p(v);for(var n=v.next();!n.done;n=v.next()){n=n.value;var f=n.toLowerCase();if(f.indexOf(E,f.length-E.length)>-1)return n}return null};
_.Ck=function(){var v=arguments,E=_.ZU;v.length>1?E[v[0]]=v[1]:v.length===1&&Object.assign(E,v[0])};
_.MX=function(v,E){return v in _.ZU?_.ZU[v]:E};
_.Sp=function(v,E){return!!_.MX(v,E)};
ZVG=function(v){var E=_.ZU.EXPERIMENT_FLAGS;return E?E[v]:void 0};
M$I=function(v){C$Q.forEach(function(E){return E(v)})};
_.qX=function(v){return v&&window.yterr?function(){try{return v.apply(this,arguments)}catch(E){_.UO(E)}}:v};
_.UO=function(v){var E=_.JM("yt.logging.errors.log");E?E(v,"ERROR",void 0,void 0,void 0,void 0,void 0):(E=_.MX("ERRORS",[]),E.push([v,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Ck("ERRORS",E));M$I(v)};
_.Kk=function(v,E,n,f,x){var y=_.JM("yt.logging.errors.log");y?y(v,"WARNING",E,n,f,void 0,x):(y=_.MX("ERRORS",[]),y.push([v,"WARNING",E,n,f,void 0,x]),_.Ck("ERRORS",y))};
UOG=function(v,E){E=v.split(E);for(var n={},f=0,x=E.length;f<x;f++){var y=E[f].split("=");if(y.length===1&&y[0]||y.length===2)try{var Q=S2s(y[0]||""),e=S2s(y[1]||"");if(Q in n){var F=n[Q];Array.isArray(F)?_.nl(F,e):n[Q]=[F,e]}else n[Q]=e}catch(a){var b=a,l=y[0],r=String(UOG);b.args=[{key:l,value:y[1],query:v,method:q2$===r?"unchanged":r}];JKE.hasOwnProperty(l)||_.Kk(b)}}return n};
KtE=function(v){var E=[];_.sh.forEach(v,function(n,f){var x=_.dB(f);_.I5(Array.isArray(n)?n:[n],function(y){y==""?E.push(x):E.push(x+"="+_.dB(y))})});
return E.join("&")};
_.Y6=function(v){v.charAt(0)==="?"&&(v=v.substring(1));return UOG(v,"&")};
_.hM=function(v){return v.indexOf("?")!==-1?(v=(v||"").split("#")[0],v=v.split("?",2),_.Y6(v.length>1?v[1]:v[0])):{}};
_.AM=function(v,E){return dOE(v,E||{},!0)};
ImF=function(v,E){return dOE(v,E||{},!1)};
dOE=function(v,E,n){var f=v.split("#",2);v=f[0];f=f.length>1?"#"+f[1]:"";var x=v.split("?",2);v=x[0];x=_.Y6(x[1]||"");for(var y in E)if(n||!_.sh.containsKey(x,y))x[y]=E[y];return _.V1(v,x)+f};
NX=function(v){if(!E)var E=window.location.href;var n=_.DU(v)[1]||null,f=_.HG(v);return n&&f?gB(v,E):f?_.HG(E)===f&&(Number(_.DU(E)[4]||null)||null)===(Number(_.DU(v)[4]||null)||null):!0};
_.hf$=function(v){v=Y2X(v);return v===null?!1:v[0]==="com"&&v[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Y2X=function(v){v=_.HG(v);return v!==null?v.split(".").reverse():null};
S2s=function(v){return v&&v.match(AKL)?v:u5(v)};
_.jp=function(v){return new V$E(v)};
_.P=function(){DOF||(DOF=new HVE);return DOF};
N6Q=function(v){var E=_.OO,n,f;_.X(function(x){n=_.P();return(f=n.resolve(_.jp(E)))?(v(f),x.return(Promise.resolve(f))):x.return(n.resolve(new g0N(E)).then(function(y){v(y);return y}))})};
_.Z=function(v){v=k6(v);return typeof v==="string"&&v==="false"?!1:!!v};
_.WG=function(v,E){v=k6(v);return v===void 0&&E!==void 0?E:Number(v||0)};
uc$=function(v){v=k6(v);return Array.isArray(v)?_.rA(v,function(E){return Number(E||0)}):[Number(v||0)]};
_.$6=function(v){v=k6(v);return v!==void 0?String(v):""};
_.Lk=function(v){v=k6(v);return Array.isArray(v)?_.rA(v,function(E){return String(E||"")}):[String(v||"")]};
jSI=function(){return _.MX("EXPERIMENTS_TOKEN","")};
k6=function(v){return _.MX("EXPERIMENT_FLAGS",{})[v]};
OVE=function(){for(var v=[],E=_.MX("EXPERIMENTS_FORCED_FLAGS",{}),n=_.p(Object.keys(E)),f=n.next();!f.done;f=n.next())f=f.value,v.push({key:f,value:String(E[f])});n=_.MX("EXPERIMENT_FLAGS",{});f=_.p(Object.keys(n));for(var x=f.next();!x.done;x=f.next())x=x.value,x.startsWith("force_")&&E[x]===void 0&&v.push({key:x,value:String(n[x])});return v};
WtL=function(){if(!kqy)return null;var v=kqy();return"open"in v?v:null};
_.$OI=function(v){switch(_.Ga(v)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Ga=function(v){return v&&"status"in v?v.status:-1};
_.Ta=function(v,E){typeof v==="function"&&(v=_.qX(v));return window.setTimeout(v,E)};
_.i5=function(v,E){typeof v==="function"&&(v=_.qX(v));return window.setInterval(v,E)};
_.za=function(v){window.clearTimeout(v)};
Gqy=function(v){v=_.hM(v);for(var E=_.p(LtQ),n=E.next();!n.done;n=E.next())if(v[n.value]!==void 0)return!0;return!1};
zfG=function(v,E,n,f,x,y,Q,e){n=n===void 0?"GET":n;f=f===void 0?"":f;e=e===void 0?!1:e;var F=WtL();if(!F)return null;var b=function(){(F&&"readyState"in F?F.readyState:0)===4&&E&&_.qX(E)(F)};
"onloadend"in F?F.addEventListener("loadend",b,!1):F.onreadystatechange=b;_.Z("debug_forward_web_query_parameters")&&(v=T6A(v,window.location.search));F.open(n,v,!0);y&&(F.responseType=y);Q&&(F.withCredentials=!0);n=n==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(x=iVX(v,x))for(var l in x)F.setRequestHeader(l,x[l]),"content-type"===l.toLowerCase()&&(n=!1);n&&F.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(e&&"setAttributionReporting"in XMLHttpRequest.prototype){v=
{eventSourceEligible:!0,triggerEligible:!1};try{F.setAttributionReporting(v)}catch(r){_.Kk(r)}}F.send(f);return F};
iVX=function(v,E){E=E===void 0?{}:E;var n=NX(v),f=_.MX("INNERTUBE_CLIENT_NAME"),x=_.Z("web_ajax_ignore_global_headers_if_set"),y;for(y in Rf$){var Q=_.MX(Rf$[y]),e=y==="X-Goog-AuthUser"||y==="X-Goog-PageId";y!=="X-Goog-Visitor-Id"||Q||(Q=_.MX("VISITOR_DATA"));var F;if(!(F=!Q)){if(!(F=n||(_.HG(v)?!1:!0))){F=v;var b;if(b=_.Z("add_auth_headers_to_remarketing_google_dot_com_ping")&&y==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY"))b=Y2X(F),b=b===null?!1:b[1]==="google"?
!0:b[2]==="google"?b[0]==="au"&&b[1]==="com"?!0:b[0]==="uk"&&b[1]==="co"?!0:!1:!1;b&&(F=_.R5(F)||"",F=F.split("/"),F="/"+(F.length>1?F[1]:""),b=F==="/pagead");F=b?!0:!1}F=!F}F||x&&E[y]!==void 0||f==="TVHTML5_UNPLUGGED"&&e||(E[y]=Q)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];if(n||!_.HG(v))E["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(n||!_.HG(v)){try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(r){}l&&(E["X-YouTube-Time-Zone"]=
l)}document.location.hostname.endsWith("youtubeeducation.com")||!n&&_.HG(v)||(E["X-YouTube-Ad-Signals"]=KtE(t$s()));return E};
_.B6N=function(v,E){var n=_.HG(v);_.Z("debug_handle_relative_url_for_query_forward_killswitch")||!n&&NX(v)&&(n=document.location.hostname);var f=_.R5(v);f=(n=n&&(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!n||f)return v;var x=_.Y6(E),y={};_.I5(LtQ,function(Q){x[Q]&&(y[Q]=x[Q])});
return ImF(v,y)};
vZy=function(v,E){E.method="POST";E.postParams||(E.postParams={});return _.tM(v,E)};
EZE=function(v,E){var n=_.MX("XSRF_FIELD_NAME"),f;E.headers&&(f=E.headers["Content-Type"]);return!E.excludeXsrf&&(!_.HG(v)||E.withCredentials||_.HG(v)===document.location.hostname)&&E.method==="POST"&&(!f||f==="application/x-www-form-urlencoded")&&!(E.postParams&&E.postParams[n])};
_.tM=function(v,E){var n=E.format||"JSON";v=nZN(v,E);var f=oZN(v,E),x=!1,y=flE(v,function(F){if(!x){x=!0;e&&_.za(e);var b=_.$OI(F),l=null,r=400<=F.status&&F.status<500,a=500<=F.status&&F.status<600;if(b||r||a)l=xAG(v,n,F,E.convertToSafeHtml);b&&(b=cQN(n,F,l));l=l||{};r=E.context||_.n1;b?E.onSuccess&&E.onSuccess.call(r,F,l):E.onError&&E.onError.call(r,F,l);E.onFinish&&E.onFinish.call(r,F,l)}},E.method,f,E.headers,E.responseType,E.withCredentials);
f=E.timeout||0;if(E.onTimeout&&f>0){var Q=E.onTimeout;var e=_.Ta(function(){x||(x=!0,y.abort(),_.za(e),Q.call(E.context||_.n1,y))},f)}return y};
nZN=function(v,E){E.includeDomain&&(v=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+v);var n=_.MX("XSRF_FIELD_NAME");if(E=E.urlParams)E[n]&&delete E[n],v=_.AM(v,E);return v};
oZN=function(v,E){var n=_.MX("XSRF_FIELD_NAME"),f=_.MX("XSRF_TOKEN"),x=E.postBody||"",y=E.postParams;EZE(v,E)&&(y||(y={}),y[n]=f);(_.Z("ajax_parse_query_data_only_when_filled")&&y&&Object.keys(y).length>0||y)&&typeof x==="string"&&(x=_.Y6(x),_.sh.extend(x,y),x=E.postBodyFormat&&E.postBodyFormat==="JSON"?JSON.stringify(x):_.BG(x));y=x||y&&!_.sh.isEmpty(y);!yQA&&y&&E.method!=="POST"&&(yQA=!0,_.UO(Error("Gc")));return x};
xAG=function(v,E,n,f){var x=null;switch(E){case "JSON":try{var y=n.responseText}catch(Q){throw f=Error("Hc"),f.params=v,_.Kk(f),Q;}v=n.getResponseHeader("Content-Type")||"";y&&v.indexOf("json")>=0&&(y.substring(0,5)===")]}'\n"&&(y=y.substring(5)),x=JSON.parse(y));break;case "XML":if(v=(v=n.responseXML)?pq1(v):null)x={},_.I5(v.getElementsByTagName("*"),function(Q){x[Q.tagName]=QTN(Q)})}f&&XqX(x);
return x};
XqX=function(v){if(_.oF(v))for(var E in v)E==="html_content"||p1(E,"_html")?v[E]=Sc(v[E]):XqX(v[E])};
cQN=function(v,E,n){if(E&&E.status===204)return!0;switch(v){case "JSON":return!!n;case "XML":return Number(n&&n.return_code)===0;case "RAW":return!0;default:return!!n}};
pq1=function(v){return v?(v=("responseXML"in v?v.responseXML:v).getElementsByTagName("root"))&&v.length>0?v[0]:null:null};
QTN=function(v){var E="";_.I5(v.childNodes,function(n){E+=n.nodeValue});
return E};
elE=function(v){if(v.name==="JavaException")return!0;v=v.stack;return v.includes("chrome://")||v.includes("chrome-extension://")||v.includes("moz-extension://")};
_.vA=function(v){_.QK.call(this);this.JSC$8336_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!v};
mAX=function(v,E){var n=v.length,f=0,x=function(){return v.charCodeAt(f++)};
do{var y=Fuy(x);if(y===Infinity)break;var Q=y>>3;switch(y&7){case 0:y=Fuy(x);if(Q===E)return y;break;case 1:if(Q===E)return;f+=8;break;case 2:y=Fuy(x);if(Q===E)return v.substr(f,y);f+=y;break;case 5:if(Q===E)return;f+=4;break;default:return}}while(f<n)};
Fuy=function(v){var E=v(),n=E&127;if(E<128)return n;E=v();n|=(E&127)<<7;if(E<128)return n;E=v();n|=(E&127)<<14;if(E<128)return n;E=v();return E<128?n|(E&127)<<21:Infinity};
bG$=function(v,E,n,f){if(v)if(Array.isArray(v)){var x=f;for(f=0;f<v.length&&!(v[f]&&(x+=wqE(f,v[f],E,n),x>500));f++);f=x}else if(typeof v==="object")for(x in v){if(v[x]){var y=x;var Q=v[x],e=E,F=n;y=typeof Q!=="string"||y!=="clickTrackingParams"&&y!=="trackingParams"?0:(Q=mAX(atob(Q.replace(/-/g,"+").replace(/_/g,"/")),2))?wqE(y+".ve",Q,e,F):0;f+=y;f+=wqE(x,v[x],E,n);if(f>500)break}}else n[E]=EH(v),f+=n[E].length;else n[E]=EH(v),f+=n[E].length;return f};
wqE=function(v,E,n,f){n+="."+v;v=EH(E);f[n]=v;return n.length+v.length};
EH=function(v){try{return(typeof v==="string"?v:String(JSON.stringify(v))).substr(0,500)}catch(E){return"unable to serialize "+typeof v+" ("+E.message+")"}};
llL=function(v){switch(v){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}};
_.oP=function(v,E,n,f,x){_.nE.set(v,E,{maxAge:n,path:"/",domain:f===void 0?"youtube.com":f,secure:x===void 0?!1:x})};
_.sTs=function(v,E,n){_.nE.remove(v,E===void 0?"/":E,n===void 0?"youtube.com":n)};
_.fE=function(){if(_.Z("embeds_web_enable_cookie_detection_fix")){if(!_.n1.navigator.cookieEnabled)return!1}else if(!_.nE.isEnabled())return!1;if(!_.nE.isEmpty())return!0;_.Z("embeds_web_enable_cookie_detection_fix")?_.nE.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.nE.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.nE.get("TESTCOOKIESENABLED")!=="1")return!1;_.nE.remove("TESTCOOKIESENABLED");return!0};
rQ9=function(){var v=_.n1.navigator;return v?v.connection:void 0};
PcL=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}};
_.ZGI=function(){var v=rQ9();if(v){var E=alE[v.type||"unknown"]||"CONN_UNKNOWN";v=alE[v.effectiveType||"unknown"]||"CONN_UNKNOWN";E==="CONN_CELLULAR_UNKNOWN"&&v!=="CONN_UNKNOWN"&&(E=v);if(E!=="CONN_UNKNOWN")return E;if(v!=="CONN_UNKNOWN")return v}};
MKE=function(){var v=rQ9();if(v!=null&&v.effectiveType)return CcN.hasOwnProperty(v.effectiveType)?CcN[v.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.cA=function(){try{return _.xm(),!0}catch(v){return!1}};
_.xm=function(v){if(_.MX("DATASYNC_ID")!==void 0)return _.MX("DATASYNC_ID");throw new _.yc("Datasync ID not set",v===void 0?"unknown":v);};
_.pE=function(v){this.mechanism=v};
Qc=function(v){this.mechanism=v};
X7=function(v){this.storage_=v;this.cachedIsStorageAvailable_=null};
SLE=function(){var v=null;try{v=_.n1.localStorage||null}catch(E){}X7.call(this,v)};
UAN=function(){var v=null;try{v=_.n1.sessionStorage||null}catch(E){}X7.call(this,v)};
e5=function(v,E){this.mechanism_=v;this.JSC$8438_prefix_=E+"::"};
_.qLQ=function(v){var E=new SLE;return E.isAvailable()?v?new e5(E,v):E:null};
_.JQA=function(v){var E=new UAN;return E.isAvailable()?v?new e5(E,v):E:null};
dAN=function(){var v;return(v=KuE())==null?void 0:v.get("LAST_RESULT_ENTRY_KEY",!0)};
_.wd=function(v){IlE||(_.F7?_.F7.logError(v):(_.mx.push({type:"ERROR",payload:v}),_.mx.length>10&&_.mx.shift()))};
bq=function(v,E){IlE||(_.F7?_.F7.logEvent(v,E):(_.mx.push({type:"EVENT",eventType:v,payload:E}),_.mx.length>10&&_.mx.shift()))};
lq=function(v){if(v.indexOf(":")>=0)throw Error("Oc");};
sH=function(v){return v.substr(0,v.indexOf(":"))||v};
AQG=function(){return(YLE||hlG)&&rd("applewebkit")&&!rd("version")&&(!rd("safari")||rd("gsa/"))};
rd=function(v){var E=_.lE();return E?E.toLowerCase().indexOf(v)>=0:!1};
HG1=function(v,E,n,f){E=sH(E);var x=v instanceof Error?v:Error("Pc`"+v);if(x instanceof PA)return x;v={objectStoreNames:n,dbName:E,dbVersion:f};if(x.name==="QuotaExceededError")return new PA("QUOTA_EXCEEDED",v);if(_.aP&&x.name==="UnknownError")return new PA("QUOTA_MAYBE_EXCEEDED",v);if(x instanceof VKL)return new PA("MISSING_INDEX",Object.assign({},v,{objectStore:x.objectStore,index:x.index}));if(x.name==="InvalidStateError"&&DAA.some(function(y){return x.message.includes(y)}))return new PA("EXECUTE_TRANSACTION_ON_CLOSED_DB",
v);
if(x.name==="AbortError")return new PA("UNKNOWN_ABORT",v,x.message);x.args=[Object.assign({},v,{name:"IdbError",originalName:x.name})];x.level="WARNING";return x};
Zu=function(v,E,n){var f=dAN();return new PA("IDB_NOT_SUPPORTED",{context:{caller:v,publicName:E,version:n,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})};
gZL=function(v){if(!v)throw Error();throw v;};
NM9=function(v){return v};
uYE=function(v,E,n){var f=function(){try{v.removeEventListener("success",x),v.removeEventListener("error",y)}catch(Q){}},x=function(){E(v.result);
f()},y=function(){n(v.error);
f()};
v.addEventListener("success",x);v.addEventListener("error",y)};
jTX=function(v){return new Promise(function(E,n){uYE(v,E,n)})};
S5=function(v){return new CE(new Mp(function(E,n){uYE(v,E,n)}))};
OGE=function(v,E){return new CE(new Mp(function(n,f){var x=function(){var y=v?E(v):null;y?y.then(function(Q){v=Q;x()},f):n()};
x()}))};
WuI=function(v,E,n){return new Promise(function(f,x){var y=E!==void 0?self.indexedDB.open(v,E):self.indexedDB.open(v);var Q=n.blocked,e=n.blocking,F=n.terminated,b=n.upgrade,l=n.closed,r,a=function(){r||(r=new UH(y.result,{closed:l}));return r};
y.addEventListener("upgradeneeded",function(M){try{if(M.newVersion===null)throw Error("Uc");if(y.transaction===null)throw Error("Vc");M.dataLoss&&M.dataLoss!=="none"&&bq("IDB_DATA_CORRUPTED",{reason:M.dataLossMessage||"unknown reason",dbName:sH(v)});var U=a(),d=new knL(y.transaction);b&&b(U,function(Y){return M.oldVersion<Y&&M.newVersion>=Y},d);
d.done.catch(function(Y){x(Y)})}catch(Y){x(Y)}});
y.addEventListener("success",function(){var M=y.result;e&&M.addEventListener("versionchange",function(){e(a())});
M.addEventListener("close",function(){bq("IDB_UNEXPECTEDLY_CLOSED",{dbName:sH(v),dbVersion:M.version});F&&F()});
f(a())});
y.addEventListener("error",function(){x(y.error)});
Q&&y.addEventListener("blocked",function(){Q()})})};
$A1=function(v,E,n){n=n===void 0?{}:n;return WuI(v,E,n)};
_.JO=function(v,E){E=E===void 0?{}:E;var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return _.vW(Q,2),n=self.indexedDB.deleteDatabase(v),f=E,(x=f.blocked)&&n.addEventListener("blocked",function(){x()}),_.m(Q,jTX(n),4);
if(Q.nextAddress!=2)return _.qp(Q,0);y=_.cW(Q);throw HG1(y,v,"",-1);})};
GnQ=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.KE(LuA,E),2);n=f.yieldResult;return f.return(_.dd(n,["databases"],{enableRetries:!0,mode:"readwrite"},function(x){var y=x.objectStore("databases");return y.get(v.actualName).then(function(Q){if(Q?v.actualName!==Q.actualName||v.publicName!==Q.publicName||v.userIdentifier!==Q.userIdentifier:1)return y.put(v).then(function(){})})}))})};
_.IP=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return v?_.m(f,_.KE(LuA,E),2):f.return();n=f.yieldResult;return f.return(n.delete("databases",v))})};
_.TM$=function(v,E){var n,f;return _.X(function(x){return x.nextAddress==1?(n=[],_.m(x,_.KE(LuA,E),2)):x.nextAddress!=3?(f=x.yieldResult,_.m(x,_.dd(f,["databases"],{enableRetries:!0,mode:"readonly"},function(y){n.length=0;return Ym(y.objectStore("databases"),{},function(Q){v(Q.getValue())&&n.push(Q.getValue());return Q.continue()})}),3)):x.return(n)})};
iGE=function(v,E){return _.TM$(function(n){return n.publicName===v&&n.userIdentifier!==void 0},E)};
tKy=function(){var v,E,n,f;return _.X(function(x){switch(x.nextAddress){case 1:v=dAN();if((E=v)==null?0:E.hasSucceededOnce)return x.return(!0);var y;if(y=zlL)y=/WebKit\/([0-9]+)/.exec(_.lE()),y=!!(y&&parseInt(y[1],10)>=600);y&&(y=/WebKit\/([0-9]+)/.exec(_.lE()),y=!(y&&parseInt(y[1],10)>=602));if(y||hO)return x.return(!1);try{if(n=self,!(n.indexedDB&&n.IDBIndex&&n.IDBKeyRange&&n.IDBObjectStore))return x.return(!1)}catch(Q){return x.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return x.return(!1);
_.vW(x,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.m(x,GnQ(f,RlG),4);case 4:return _.m(x,_.IP("yt-idb-test-do-not-use",RlG),5);case 5:return x.return(!0);case 2:return _.cW(x),x.return(!1)}})};
vsE=function(){if(BMI!==void 0)return BMI;IlE=!0;return BMI=tKy().then(function(v){IlE=!1;var E;if((E=KuE())!=null&&E.expiringStorage_){var n;E={hasSucceededOnce:((n=dAN())==null?void 0:n.hasSucceededOnce)||v};var f;(f=KuE())==null||f.set("LAST_RESULT_ENTRY_KEY",E,2592E3,!0)}return v})};
AO=function(){return _.JM("ytglobal.idbToken_")||void 0};
_.Du=function(){var v=AO();return v?Promise.resolve(v):vsE().then(function(E){(E=E?RlG:void 0)&&_.Vc("ytglobal.idbToken_",E);return E})};
EsI=function(v){if(!_.cA())throw v=new PA("AUTH_INVALID",{dbName:v}),_.wd(v),v;var E=_.xm();return{actualName:v+":"+E,publicName:v,userIdentifier:E}};
nss=function(v,E,n,f){var x,y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:return y=(x=Error().stack)!=null?x:"",_.m(l,_.Du(),2);case 2:Q=l.yieldResult;if(!Q)throw e=Zu("openDbImpl",v,E),_.Z("ytidb_async_stack_killswitch")||(e.stack=e.stack+"\n"+y.substring(y.indexOf("\n")+1)),_.wd(e),e;lq(v);F=n?{actualName:v,publicName:v,userIdentifier:void 0}:EsI(v);_.vW(l,3);return _.m(l,GnQ(F,Q),5);case 5:return _.m(l,$A1(F.actualName,E,f),6);case 6:return l.return(l.yieldResult);case 3:return b=
_.cW(l),_.vW(l,7),_.m(l,_.IP(F.actualName,Q),9);case 9:_.qp(l,8);break;case 7:_.cW(l);case 8:throw b;}})};
osG=function(v,E,n){n=n===void 0?{}:n;return nss(v,E,!1,n)};
fI1=function(v,E,n){n=n===void 0?{}:n;return nss(v,E,!0,n)};
xxE=function(v,E){E=E===void 0?{}:E;var n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,_.Du(),2);if(x.nextAddress!=3){n=x.yieldResult;if(!n)return x.return();lq(v);f=EsI(v);return _.m(x,_.JO(f.actualName,E),3)}return _.m(x,_.IP(f.actualName,n),0)})};
ccI=function(v,E,n){v=v.map(function(f){return _.X(function(x){return x.nextAddress==1?_.m(x,_.JO(f.actualName,E),2):_.m(x,_.IP(f.actualName,n),0)})});
return Promise.all(v).then(function(){})};
ycX=function(v){var E=E===void 0?{}:E;var n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,_.Du(),2);if(x.nextAddress!=3){n=x.yieldResult;if(!n)return x.return();lq(v);return _.m(x,iGE(v,n),3)}f=x.yieldResult;return _.m(x,ccI(f,E,n),0)})};
pR1=function(v,E){E=E===void 0?{}:E;var n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.Du(),2);if(f.nextAddress!=3){n=f.yieldResult;if(!n)return f.return();lq(v);return _.m(f,_.JO(v,E),3)}return _.m(f,_.IP(v,n),0)})};
HA=function(v,E){return QQG(v,E)};
eHN=function(v){return _.KE(XRX(),v)};
F5G=function(v,E,n,f){var x,y,Q;return _.X(function(e){switch(e.nextAddress){case 1:return x={config:v,hashData:E,timestamp:f!==void 0?f:(0,_.gd)()},_.m(e,eHN(n),2);case 2:return y=e.yieldResult,_.m(e,y.clear("hotConfigStore"),3);case 3:return _.m(e,y.put("hotConfigStore",x),4);case 4:return Q=e.yieldResult,e.return(Q)}})};
mxE=function(v,E,n,f,x){var y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:return y={config:v,hashData:E,configData:n,timestamp:x!==void 0?x:(0,_.gd)()},_.m(F,eHN(f),2);case 2:return Q=F.yieldResult,_.m(F,Q.clear("coldConfigStore"),3);case 3:return _.m(F,Q.put("coldConfigStore",y),4);case 4:return e=F.yieldResult,F.return(e)}})};
wRy=function(v){var E,n;return _.X(function(f){return f.nextAddress==1?_.m(f,eHN(v),2):f.nextAddress!=3?(E=f.yieldResult,n=void 0,_.m(f,_.dd(E,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.Np(x.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(y){n=y.getValue()})}),3)):f.return(n)})};
bHG=function(v){var E,n;return _.X(function(f){return f.nextAddress==1?_.m(f,eHN(v),2):f.nextAddress!=3?(E=f.yieldResult,n=void 0,_.m(f,_.dd(E,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.Np(x.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(y){n=y.getValue()})}),3)):f.return(n)})};
lIs=function(){return _.X(function(v){return _.m(v,ycX("ytGcfConfig"),0)})};
sQy=function(){return"INNERTUBE_API_KEY"in _.ZU&&"INNERTUBE_API_VERSION"in _.ZU};
_.uq=function(){return{innertubeApiKey:_.MX("INNERTUBE_API_KEY"),innertubeApiVersion:_.MX("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.MX("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.MX("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.MX("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.MX("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.MX("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.MX("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Sp("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Sp("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.MX("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.SfE=function(v){var E={client:{hl:v.innertubeContextHostLanguage,gl:v.innertubeContextGeoLocation,clientName:v.innertubeContextClientName,clientVersion:v.innertubeContextClientVersion,configInfo:v.innertubeContextClientConfigInfo}};navigator.userAgent&&(E.client.userAgent=String(navigator.userAgent));var n=_.n1.devicePixelRatio;n&&n!=1&&(E.client.screenDensityFloat=String(n));n=jSI();n!==""&&(E.client.experimentsToken=n);n=OVE();n.length>0&&(E.request={internalExperimentFlags:n});rcX(v,void 0,E);
PnA(void 0,E);aII(void 0,E);ZHs(v,void 0,E);CnF(void 0,E);_.Z("start_client_gcf")&&M71(void 0,E);_.MX("DELEGATED_SESSION_ID")&&!_.Z("pageid_as_header_web")&&(E.user={onBehalfOfUser:_.MX("DELEGATED_SESSION_ID")});!_.Z("fill_delegate_context_in_gel_killswitch")&&(v=_.MX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E.user=Object.assign({},E.user,{serializedDelegationContext:v}));v=_.MX("INNERTUBE_CONTEXT");var f;if(_.Z("enable_persistent_device_token")&&(v==null?0:(f=v.client)==null?0:f.rolloutToken)){var x;
E.client.rolloutToken=v==null?void 0:(x=v.client)==null?void 0:x.rolloutToken}f=Object;x=f.assign;v=E.client;n={};for(var y=_.p(Object.entries(_.Y6(_.MX("DEVICE","")))),Q=y.next();!Q.done;Q=y.next()){var e=_.p(Q.value);Q=e.next().value;e=e.next().value;Q==="cbrand"?n.deviceMake=e:Q==="cmodel"?n.deviceModel=e:Q==="cbr"?n.browserName=e:Q==="cbrver"?n.browserVersion=e:Q==="cos"?n.osName=e:Q==="cosver"?n.osVersion=e:Q==="cplatform"&&(n.platform=e)}E.client=x.call(f,v,n);return E};
rcX=function(v,E,n){v=v.innertubeContextClientName;if(v==="WEB"||v==="MWEB"||v===1||v===2)if(E){n=_.j5(E,UxE,96)||new UxE;var f=qfX();f=Object.keys(Jcs).indexOf(f);f=f===-1?null:f;f!==null&&_.OH(n,3,f);_.Bz(E,96,n)}else n&&(n.client.mainAppWebInfo=(f=n.client.mainAppWebInfo)!=null?f:{},n.client.mainAppWebInfo.webDisplayMode=qfX())};
PnA=function(v,E){var n=_.JM("yt.embedded_player.embed_url");n&&(v?(E=_.j5(v,K59,7)||new K59,_.ps(E,4,n),_.Bz(v,7,E)):E&&(E.thirdParty={embedUrl:n}))};
aII=function(v,E){var n;if(_.Z("web_log_memory_total_kbytes")&&((n=_.n1.navigator)==null?0:n.deviceMemory)){var f;n=(f=_.n1.navigator)==null?void 0:f.deviceMemory;v?_.km(v,95,d_(n*1E6)):E&&(E.client.memoryTotalKbytes=""+n*1E6)}};
ZHs=function(v,E,n){if(v.appInstallData)if(E){var f;n=(f=_.j5(E,WA,62))!=null?f:new WA;_.ps(n,6,v.appInstallData);_.Bz(E,62,n)}else n&&(n.client.configInfo=n.client.configInfo||{},n.client.configInfo.appInstallData=v.appInstallData)};
CnF=function(v,E){var n=_.ZGI();n&&(v?_.OH(v,61,dxF[n]):E&&(E.client.connectionType=n));_.Z("web_log_effective_connection_type")&&(n=MKE())&&(v?_.OH(v,94,IIs[n]):E&&(E.client.effectiveConnectionType=n))};
_.AcI=function(v,E,n){n=n===void 0?{}:n;var f={};_.MX("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":_.MX("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":n.visitorData||_.MX("VISITOR_DATA","")};if(E&&E.includes("www.youtube-nocookie.com"))return f;E=n.authorization||_.MX("AUTHORIZATION");E||(v?E="Bearer "+_.JM("gapi.auth.getToken")().access_token:(YfG.instance||(YfG.instance=new YfG),v=hHX(),_.Z("pageid_as_header_web")||delete v["X-Goog-PageId"],f=Object.assign({},f,v)));E&&(f.Authorization=E);return f};
M71=function(v,E){var n=V7X();if(n){var f=n.coldConfigData,x=n.coldHashData;n=n.hotHashData;if(v){var y;E=(y=_.j5(v,WA,62))!=null?y:new WA;f=_.ps(E,1,f);_.ps(f,3,x).setHotHashData(n);_.Bz(v,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},f&&(E.client.configInfo.coldConfigData=f),x&&(E.client.configInfo.coldHashData=x),n&&(E.client.configInfo.hotHashData=n))}};
$m=function(v){for(var E=v.length;--E>=0;)v[E]=0};
DxX=function(v,E,n,f,x){this.static_tree=v;this.extra_bits=E;this.extra_base=n;this.elems=f;this.max_length=x;this.has_stree=v&&v.length};
HHs=function(v,E){this.dyn_tree=v;this.max_code=0;this.stat_desc=E};
LE=function(v,E){v.pending_buf[v.pending++]=E&255;v.pending_buf[v.pending++]=E>>>8&255};
GT=function(v,E,n){v.bi_valid>16-n?(v.bi_buf|=E<<v.bi_valid&65535,LE(v,v.bi_buf),v.bi_buf=E>>16-v.bi_valid,v.bi_valid+=n-16):(v.bi_buf|=E<<v.bi_valid&65535,v.bi_valid+=n)};
TT=function(v,E,n){GT(v,n[E*2],n[E*2+1])};
gsX=function(v,E){var n=0;do n|=v&1,v>>>=1,n<<=1;while(--E>0);return n>>>1};
Nj1=function(v,E,n){var f=Array(16),x=0,y;for(y=1;y<=15;y++)f[y]=x=x+n[y-1]<<1;for(n=0;n<=E;n++)x=v[n*2+1],x!==0&&(v[n*2]=gsX(f[x]++,x))};
uDE=function(v){var E;for(E=0;E<286;E++)v.dyn_ltree[E*2]=0;for(E=0;E<30;E++)v.dyn_dtree[E*2]=0;for(E=0;E<19;E++)v.bl_tree[E*2]=0;v.dyn_ltree[512]=1;v.opt_len=v.static_len=0;v.last_lit=v.matches=0};
jQs=function(v){v.bi_valid>8?LE(v,v.bi_buf):v.bi_valid>0&&(v.pending_buf[v.pending++]=v.bi_buf);v.bi_buf=0;v.bi_valid=0};
OHQ=function(v,E,n){jQs(v);LE(v,n);LE(v,~n);iq.arraySet(v.pending_buf,v.window,E,n,v.pending);v.pending+=n};
kxN=function(v,E,n,f){var x=E*2,y=n*2;return v[x]<v[y]||v[x]===v[y]&&f[E]<=f[n]};
W5A=function(v,E,n){for(var f=v.heap[n],x=n<<1;x<=v.heap_len;){x<v.heap_len&&kxN(E,v.heap[x+1],v.heap[x],v.depth)&&x++;if(kxN(E,f,v.heap[x],v.depth))break;v.heap[n]=v.heap[x];n=x;x<<=1}v.heap[n]=f};
iHG=function(v,E,n){var f=0;if(v.last_lit!==0){do{var x=v.pending_buf[v.d_buf+f*2]<<8|v.pending_buf[v.d_buf+f*2+1];var y=v.pending_buf[v.l_buf+f];f++;if(x===0)TT(v,y,E);else{var Q=zT[y];TT(v,Q+256+1,E);var e=$xN[Q];e!==0&&(y-=L5X[Q],GT(v,y,e));x--;Q=x<256?RP[x]:RP[256+(x>>>7)];TT(v,Q,n);e=Gx1[Q];e!==0&&(x-=Tj$[Q],GT(v,x,e))}}while(f<v.last_lit)}TT(v,256,E)};
zHG=function(v,E){var n=E.dyn_tree,f=E.stat_desc.static_tree,x=E.stat_desc.has_stree,y=E.stat_desc.elems,Q,e=-1;v.heap_len=0;v.heap_max=573;for(Q=0;Q<y;Q++)n[Q*2]!==0?(v.heap[++v.heap_len]=e=Q,v.depth[Q]=0):n[Q*2+1]=0;for(;v.heap_len<2;){var F=v.heap[++v.heap_len]=e<2?++e:0;n[F*2]=1;v.depth[F]=0;v.opt_len--;x&&(v.static_len-=f[F*2+1])}E.max_code=e;for(Q=v.heap_len>>1;Q>=1;Q--)W5A(v,n,Q);F=y;do Q=v.heap[1],v.heap[1]=v.heap[v.heap_len--],W5A(v,n,1),f=v.heap[1],v.heap[--v.heap_max]=Q,v.heap[--v.heap_max]=
f,n[F*2]=n[Q*2]+n[f*2],v.depth[F]=(v.depth[Q]>=v.depth[f]?v.depth[Q]:v.depth[f])+1,n[Q*2+1]=n[f*2+1]=F,v.heap[1]=F++,W5A(v,n,1);while(v.heap_len>=2);v.heap[--v.heap_max]=v.heap[1];Q=E.dyn_tree;F=E.max_code;f=E.stat_desc.static_tree;x=E.stat_desc.has_stree;y=E.stat_desc.extra_bits;var b=E.stat_desc.extra_base,l=E.stat_desc.max_length,r,a=0;for(r=0;r<=15;r++)v.bl_count[r]=0;Q[v.heap[v.heap_max]*2+1]=0;for(E=v.heap_max+1;E<573;E++){var M=v.heap[E];r=Q[Q[M*2+1]*2+1]+1;r>l&&(r=l,a++);Q[M*2+1]=r;if(!(M>
F)){v.bl_count[r]++;var U=0;M>=b&&(U=y[M-b]);var d=Q[M*2];v.opt_len+=d*(r+U);x&&(v.static_len+=d*(f[M*2+1]+U))}}if(a!==0){do{for(r=l-1;v.bl_count[r]===0;)r--;v.bl_count[r]--;v.bl_count[r+1]+=2;v.bl_count[l]--;a-=2}while(a>0);for(r=l;r!==0;r--)for(M=v.bl_count[r];M!==0;)f=v.heap[--E],f>F||(Q[f*2+1]!==r&&(v.opt_len+=(r-Q[f*2+1])*Q[f*2],Q[f*2+1]=r),M--)}Nj1(n,e,v.bl_count)};
RHG=function(v,E,n){var f,x=-1,y=E[1],Q=0,e=7,F=4;y===0&&(e=138,F=3);E[(n+1)*2+1]=65535;for(f=0;f<=n;f++){var b=y;y=E[(f+1)*2+1];++Q<e&&b===y||(Q<F?v.bl_tree[b*2]+=Q:b!==0?(b!==x&&v.bl_tree[b*2]++,v.bl_tree[32]++):Q<=10?v.bl_tree[34]++:v.bl_tree[36]++,Q=0,x=b,y===0?(e=138,F=3):b===y?(e=6,F=3):(e=7,F=4))}};
t7X=function(v,E,n){var f,x=-1,y=E[1],Q=0,e=7,F=4;y===0&&(e=138,F=3);for(f=0;f<=n;f++){var b=y;y=E[(f+1)*2+1];if(!(++Q<e&&b===y)){if(Q<F){do TT(v,b,v.bl_tree);while(--Q!==0)}else b!==0?(b!==x&&(TT(v,b,v.bl_tree),Q--),TT(v,16,v.bl_tree),GT(v,Q-3,2)):Q<=10?(TT(v,17,v.bl_tree),GT(v,Q-3,3)):(TT(v,18,v.bl_tree),GT(v,Q-11,7));Q=0;x=b;y===0?(e=138,F=3):b===y?(e=6,F=3):(e=7,F=4)}}};
Bj9=function(v){var E=4093624447,n;for(n=0;n<=31;n++,E>>>=1)if(E&1&&v.dyn_ltree[n*2]!==0)return 0;if(v.dyn_ltree[18]!==0||v.dyn_ltree[20]!==0||v.dyn_ltree[26]!==0)return 1;for(n=32;n<256;n++)if(v.dyn_ltree[n*2]!==0)return 1;return 0};
tO=function(v,E,n){v.pending_buf[v.d_buf+v.last_lit*2]=E>>>8&255;v.pending_buf[v.d_buf+v.last_lit*2+1]=E&255;v.pending_buf[v.l_buf+v.last_lit]=n&255;v.last_lit++;E===0?v.dyn_ltree[n*2]++:(v.matches++,E--,v.dyn_ltree[(zT[n]+256+1)*2]++,v.dyn_dtree[(E<256?RP[E]:RP[256+(E>>>7)])*2]++);return v.last_lit===v.lit_bufsize-1};
v7=function(v,E){v.msg=BA[E];return E};
EU=function(v){for(var E=v.length;--E>=0;)v[E]=0};
nZ=function(v){var E=v.state,n=E.pending;n>v.avail_out&&(n=v.avail_out);n!==0&&(iq.arraySet(v.output,E.pending_buf,E.pending_out,n,v.next_out),v.next_out+=n,E.pending_out+=n,v.total_out+=n,v.avail_out-=n,E.pending-=n,E.pending===0&&(E.pending_out=0))};
xH=function(v,E){var n=v.block_start>=0?v.block_start:-1,f=v.strstart-v.block_start,x=0;if(v.level>0){v.strm.data_type===2&&(v.strm.data_type=Bj9(v));zHG(v,v.l_desc);zHG(v,v.d_desc);RHG(v,v.dyn_ltree,v.l_desc.max_code);RHG(v,v.dyn_dtree,v.d_desc.max_code);zHG(v,v.bl_desc);for(x=18;x>=3&&v.bl_tree[vt$[x]*2+1]===0;x--);v.opt_len+=3*(x+1)+5+5+4;var y=v.opt_len+3+7>>>3;var Q=v.static_len+3+7>>>3;Q<=y&&(y=Q)}else y=Q=f+5;if(f+4<=y&&n!==-1)GT(v,E?1:0,3),OHQ(v,n,f);else if(v.strategy===4||Q===y)GT(v,2+(E?
1:0),3),iHG(v,oY,fZ);else{GT(v,4+(E?1:0),3);n=v.l_desc.max_code+1;f=v.d_desc.max_code+1;x+=1;GT(v,n-257,5);GT(v,f-1,5);GT(v,x-4,4);for(y=0;y<x;y++)GT(v,v.bl_tree[vt$[y]*2+1],3);t7X(v,v.dyn_ltree,n-1);t7X(v,v.dyn_dtree,f-1);iHG(v,v.dyn_ltree,v.dyn_dtree)}uDE(v);E&&jQs(v);v.block_start=v.strstart;nZ(v.strm)};
c7=function(v,E){v.pending_buf[v.pending++]=E};
yR=function(v,E){v.pending_buf[v.pending++]=E>>>8&255;v.pending_buf[v.pending++]=E&255};
EtE=function(v,E){var n=v.max_chain_length,f=v.strstart,x=v.prev_length,y=v.nice_match,Q=v.strstart>v.w_size-262?v.strstart-(v.w_size-262):0,e=v.window,F=v.w_mask,b=v.prev,l=v.strstart+258,r=e[f+x-1],a=e[f+x];v.prev_length>=v.good_match&&(n>>=2);y>v.lookahead&&(y=v.lookahead);do{var M=E;if(e[M+x]===a&&e[M+x-1]===r&&e[M]===e[f]&&e[++M]===e[f+1]){f+=2;for(M++;e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&e[++f]===e[++M]&&f<l;);
M=258-(l-f);f=l-258;if(M>x){v.match_start=E;x=M;if(M>=y)break;r=e[f+x-1];a=e[f+x]}}}while((E=b[E&F])>Q&&--n!==0);return x<=v.lookahead?x:v.lookahead};
XO=function(v){var E=v.w_size,n;do{var f=v.window_size-v.lookahead-v.strstart;if(v.strstart>=E+(E-262)){iq.arraySet(v.window,v.window,E,E,0);v.match_start-=E;v.strstart-=E;v.block_start-=E;var x=n=v.hash_size;do{var y=v.head[--x];v.head[x]=y>=E?y-E:0}while(--n);x=n=E;do y=v.prev[--x],v.prev[x]=y>=E?y-E:0;while(--n);f+=E}if(v.strm.avail_in===0)break;x=v.strm;n=v.window;y=v.strstart+v.lookahead;var Q=x.avail_in;Q>f&&(Q=f);Q===0?n=0:(x.avail_in-=Q,iq.arraySet(n,x.input,x.next_in,Q,y),x.state.wrap===
1?x.adler=ntX(x.adler,n,Q,y):x.state.wrap===2&&(x.adler=pZ(x.adler,n,Q,y)),x.next_in+=Q,x.total_in+=Q,n=Q);v.lookahead+=n;if(v.lookahead+v.insert>=3)for(f=v.strstart-v.insert,v.ins_h=v.window[f],v.ins_h=(v.ins_h<<v.hash_shift^v.window[f+1])&v.hash_mask;v.insert&&!(v.ins_h=(v.ins_h<<v.hash_shift^v.window[f+3-1])&v.hash_mask,v.prev[f&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=f,f++,v.insert--,v.lookahead+v.insert<3););}while(v.lookahead<262&&v.strm.avail_in!==0)};
ot1=function(v,E){for(var n;;){if(v.lookahead<262){XO(v);if(v.lookahead<262&&E===0)return 1;if(v.lookahead===0)break}n=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,n=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);n!==0&&v.strstart-n<=v.w_size-262&&(v.match_length=EtE(v,n));if(v.match_length>=3)if(n=tO(v,v.strstart-v.match_start,v.match_length-3),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=3){v.match_length--;
do v.strstart++,v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart;while(--v.match_length!==0);v.strstart++}else v.strstart+=v.match_length,v.match_length=0,v.ins_h=v.window[v.strstart],v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+1])&v.hash_mask;else n=tO(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++;if(n&&(xH(v,!1),v.strm.avail_out===0))return 1}v.insert=v.strstart<2?v.strstart:2;return E===4?(xH(v,
!0),v.strm.avail_out===0?3:4):v.last_lit&&(xH(v,!1),v.strm.avail_out===0)?1:2};
eD=function(v,E){for(var n,f;;){if(v.lookahead<262){XO(v);if(v.lookahead<262&&E===0)return 1;if(v.lookahead===0)break}n=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,n=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);v.prev_length=v.match_length;v.prev_match=v.match_start;v.match_length=2;n!==0&&v.prev_length<v.max_lazy_match&&v.strstart-n<=v.w_size-262&&(v.match_length=EtE(v,n),v.match_length<=5&&(v.strategy===1||v.match_length===3&&
v.strstart-v.match_start>4096)&&(v.match_length=2));if(v.prev_length>=3&&v.match_length<=v.prev_length){f=v.strstart+v.lookahead-3;n=tO(v,v.strstart-1-v.prev_match,v.prev_length-3);v.lookahead-=v.prev_length-1;v.prev_length-=2;do++v.strstart<=f&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);while(--v.prev_length!==0);v.match_available=0;v.match_length=2;v.strstart++;if(n&&(xH(v,!1),v.strm.avail_out===0))return 1}else if(v.match_available){if((n=
tO(v,0,v.window[v.strstart-1]))&&xH(v,!1),v.strstart++,v.lookahead--,v.strm.avail_out===0)return 1}else v.match_available=1,v.strstart++,v.lookahead--}v.match_available&&(tO(v,0,v.window[v.strstart-1]),v.match_available=0);v.insert=v.strstart<2?v.strstart:2;return E===4?(xH(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xH(v,!1),v.strm.avail_out===0)?1:2};
fGX=function(v,E){for(var n,f,x,y=v.window;;){if(v.lookahead<=258){XO(v);if(v.lookahead<=258&&E===0)return 1;if(v.lookahead===0)break}v.match_length=0;if(v.lookahead>=3&&v.strstart>0&&(f=v.strstart-1,n=y[f],n===y[++f]&&n===y[++f]&&n===y[++f])){for(x=v.strstart+258;n===y[++f]&&n===y[++f]&&n===y[++f]&&n===y[++f]&&n===y[++f]&&n===y[++f]&&n===y[++f]&&n===y[++f]&&f<x;);v.match_length=258-(x-f);v.match_length>v.lookahead&&(v.match_length=v.lookahead)}v.match_length>=3?(n=tO(v,1,v.match_length-3),v.lookahead-=
v.match_length,v.strstart+=v.match_length,v.match_length=0):(n=tO(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++);if(n&&(xH(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return E===4?(xH(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xH(v,!1),v.strm.avail_out===0)?1:2};
xDI=function(v,E){for(var n;;){if(v.lookahead===0&&(XO(v),v.lookahead===0)){if(E===0)return 1;break}v.match_length=0;n=tO(v,0,v.window[v.strstart]);v.lookahead--;v.strstart++;if(n&&(xH(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return E===4?(xH(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(xH(v,!1),v.strm.avail_out===0)?1:2};
FO=function(v,E,n,f,x){this.good_length=v;this.max_lazy=E;this.nice_length=n;this.max_chain=f;this.func=x};
cCX=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 iq.Buf16(1146);this.dyn_dtree=new iq.Buf16(122);this.bl_tree=new iq.Buf16(78);EU(this.dyn_ltree);EU(this.dyn_dtree);EU(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new iq.Buf16(16);this.heap=new iq.Buf16(573);EU(this.heap);this.heap_max=this.heap_len=0;this.depth=new iq.Buf16(573);EU(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};
yCN=function(v,E){if(!v||!v.state||E>5||E<0)return v?v7(v,-2):-2;var n=v.state;if(!v.output||!v.input&&v.avail_in!==0||n.status===666&&E!==4)return v7(v,v.avail_out===0?-5:-2);n.strm=v;var f=n.last_flush;n.last_flush=E;if(n.status===42)if(n.wrap===2)v.adler=0,c7(n,31),c7(n,139),c7(n,8),n.gzhead?(c7(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),c7(n,n.gzhead.time&255),c7(n,n.gzhead.time>>8&255),c7(n,n.gzhead.time>>16&255),c7(n,n.gzhead.time>>
24&255),c7(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),c7(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(c7(n,n.gzhead.extra.length&255),c7(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(v.adler=pZ(v.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(c7(n,0),c7(n,0),c7(n,0),c7(n,0),c7(n,0),c7(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),c7(n,3),n.status=113);else{var x=8+(n.w_bits-8<<4)<<8;x|=(n.strategy>=2||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6;n.strstart!==0&&(x|=
32);n.status=113;yR(n,x+(31-x%31));n.strstart!==0&&(yR(n,v.adler>>>16),yR(n,v.adler&65535));v.adler=1}if(n.status===69)if(n.gzhead.extra){for(x=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x)),nZ(v),x=n.pending,n.pending!==n.pending_buf_size));)c7(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x));n.gzindex===n.gzhead.extra.length&&
(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){x=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x)),nZ(v),x=n.pending,n.pending===n.pending_buf_size)){var y=1;break}y=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0;c7(n,y)}while(y!==0);n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x));y===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===
91)if(n.gzhead.comment){x=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x)),nZ(v),x=n.pending,n.pending===n.pending_buf_size)){y=1;break}y=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0;c7(n,y)}while(y!==0);n.gzhead.hcrc&&n.pending>x&&(v.adler=pZ(v.adler,n.pending_buf,n.pending-x,x));y===0&&(n.status=103)}else n.status=103;n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&nZ(v),
n.pending+2<=n.pending_buf_size&&(c7(n,v.adler&255),c7(n,v.adler>>8&255),v.adler=0,n.status=113)):n.status=113);if(n.pending!==0){if(nZ(v),v.avail_out===0)return n.last_flush=-1,0}else if(v.avail_in===0&&(E<<1)-(E>4?9:0)<=(f<<1)-(f>4?9:0)&&E!==4)return v7(v,-5);if(n.status===666&&v.avail_in!==0)return v7(v,-5);if(v.avail_in!==0||n.lookahead!==0||E!==0&&n.status!==666){f=n.strategy===2?xDI(n,E):n.strategy===3?fGX(n,E):mi[n.level].func(n,E);if(f===3||f===4)n.status=666;if(f===1||f===3)return v.avail_out===
0&&(n.last_flush=-1),0;if(f===2&&(E===1?(GT(n,2,3),TT(n,256,oY),n.bi_valid===16?(LE(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=n.bi_buf&255,n.bi_buf>>=8,n.bi_valid-=8)):E!==5&&(GT(n,0,3),OHQ(n,0,0),E===3&&(EU(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),nZ(v),v.avail_out===0))return n.last_flush=-1,0}if(E!==4)return 0;if(n.wrap<=0)return 1;n.wrap===2?(c7(n,v.adler&255),c7(n,v.adler>>8&255),c7(n,v.adler>>16&255),c7(n,v.adler>>24&255),c7(n,
v.total_in&255),c7(n,v.total_in>>8&255),c7(n,v.total_in>>16&255),c7(n,v.total_in>>24&255)):(yR(n,v.adler>>>16),yR(n,v.adler&65535));nZ(v);n.wrap>0&&(n.wrap=-n.wrap);return n.pending!==0?0:1};
py1=function(v){if(!(this instanceof py1))return new py1(v);v=this.options=iq.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},v||{});v.raw&&v.windowBits>0?v.windowBits=-v.windowBits:v.gzip&&v.windowBits>0&&v.windowBits<16&&(v.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new QbQ;this.strm.avail_out=0;var E=this.strm;var n=v.level,f=v.method,x=v.windowBits,y=v.memLevel,Q=v.strategy;if(E){var e=1;n===-1&&(n=6);x<0?(e=0,x=-x):x>15&&
(e=2,x-=16);if(y<1||y>9||f!==8||x<8||x>15||n<0||n>9||Q<0||Q>4)E=v7(E,-2);else{x===8&&(x=9);var F=new cCX;E.state=F;F.strm=E;F.wrap=e;F.gzhead=null;F.w_bits=x;F.w_size=1<<F.w_bits;F.w_mask=F.w_size-1;F.hash_bits=y+7;F.hash_size=1<<F.hash_bits;F.hash_mask=F.hash_size-1;F.hash_shift=~~((F.hash_bits+3-1)/3);F.window=new iq.Buf8(F.w_size*2);F.head=new iq.Buf16(F.hash_size);F.prev=new iq.Buf16(F.w_size);F.lit_bufsize=1<<y+6;F.pending_buf_size=F.lit_bufsize*4;F.pending_buf=new iq.Buf8(F.pending_buf_size);
F.d_buf=F.lit_bufsize;F.l_buf=3*F.lit_bufsize;F.level=n;F.strategy=Q;F.method=f;if(E&&E.state){E.total_in=E.total_out=0;E.data_type=2;n=E.state;n.pending=0;n.pending_out=0;n.wrap<0&&(n.wrap=-n.wrap);n.status=n.wrap?42:113;E.adler=n.wrap===2?0:1;n.last_flush=0;if(!Xy9){f=Array(16);for(y=Q=0;y<28;y++)for(L5X[y]=Q,x=0;x<1<<$xN[y];x++)zT[Q++]=y;zT[Q-1]=y;for(y=Q=0;y<16;y++)for(Tj$[y]=Q,x=0;x<1<<Gx1[y];x++)RP[Q++]=y;for(Q>>=7;y<30;y++)for(Tj$[y]=Q<<7,x=0;x<1<<Gx1[y]-7;x++)RP[256+Q++]=y;for(x=0;x<=15;x++)f[x]=
0;for(x=0;x<=143;)oY[x*2+1]=8,x++,f[8]++;for(;x<=255;)oY[x*2+1]=9,x++,f[9]++;for(;x<=279;)oY[x*2+1]=7,x++,f[7]++;for(;x<=287;)oY[x*2+1]=8,x++,f[8]++;Nj1(oY,287,f);for(x=0;x<30;x++)fZ[x*2+1]=5,fZ[x*2]=gsX(x,5);eoA=new DxX(oY,$xN,257,286,15);FWI=new DxX(fZ,Gx1,0,30,15);mDN=new DxX([],wyN,0,19,7);Xy9=!0}n.l_desc=new HHs(n.dyn_ltree,eoA);n.d_desc=new HHs(n.dyn_dtree,FWI);n.bl_desc=new HHs(n.bl_tree,mDN);n.bi_buf=0;n.bi_valid=0;uDE(n);n=0}else n=v7(E,-2);n===0&&(E=E.state,E.window_size=2*E.w_size,EU(E.head),
E.max_lazy_match=mi[E.level].max_lazy,E.good_match=mi[E.level].good_length,E.nice_match=mi[E.level].nice_length,E.max_chain_length=mi[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=2,E.match_available=0,E.ins_h=0);E=n}}else E=-2;if(E!==0)throw Error(BA[E]);v.header&&(E=this.strm)&&E.state&&E.state.wrap===2&&(E.state.gzhead=v.header);if(v.dictionary){var b;typeof v.dictionary==="string"?b=bCF(v.dictionary):lGQ.call(v.dictionary)==="[object ArrayBuffer]"?
b=new Uint8Array(v.dictionary):b=v.dictionary;v=this.strm;y=b;Q=y.length;if(v&&v.state)if(b=v.state,E=b.wrap,E===2||E===1&&b.status!==42||b.lookahead)E=-2;else{E===1&&(v.adler=ntX(v.adler,y,Q,0));b.wrap=0;Q>=b.w_size&&(E===0&&(EU(b.head),b.strstart=0,b.block_start=0,b.insert=0),n=new iq.Buf8(b.w_size),iq.arraySet(n,y,Q-b.w_size,b.w_size,0),y=n,Q=b.w_size);n=v.avail_in;f=v.next_in;x=v.input;v.avail_in=Q;v.next_in=0;v.input=y;for(XO(b);b.lookahead>=3;){y=b.strstart;Q=b.lookahead-2;do b.ins_h=(b.ins_h<<
b.hash_shift^b.window[y+3-1])&b.hash_mask,b.prev[y&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=y,y++;while(--Q);b.strstart=y;b.lookahead=2;XO(b)}b.strstart+=b.lookahead;b.block_start=b.strstart;b.insert=b.lookahead;b.lookahead=0;b.match_length=b.prev_length=2;b.match_available=0;v.next_in=f;v.input=x;v.avail_in=n;b.wrap=E;E=0}else E=-2;if(E!==0)throw Error(BA[E]);this._dict_set=!0}};
sbL=function(v,E){E=E||{};E.gzip=!0;E=new py1(E);E.push(v,!0);if(E.err)throw E.msg||BA[E.err];return E.result};
PxX=function(v,E){var n=rCX();n&&n.publish.call(n,v.toString(),v,E)};
SbA=function(v,E,n){var f=rCX();if(!f)return 0;var x=f.subscribe(v.toString(),function(y,Q){var e=_.JM("ytPubsub2Pubsub2SkipSubKey");e&&e==x||(e=function(){if(aGA[x])try{if(Q&&v instanceof ZCQ&&v!=y)try{var F=v.dataClass,b=Q;if(!b.args||!b.version)throw Error("Xc");try{if(!F.version_){var l=new F;F.version_=l.version}var r=F.version_}catch(a){}if(!r||b.version!=r)throw Error("Yc");try{Q=Reflect.construct(F,_.tG(b.args))}catch(a){throw a.message="yt.pubsub2.Data.deserialize(): "+a.message,a;}}catch(a){throw a.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+v.toString()+": "+a.message,a;}E.call(n||window,Q)}catch(a){_.UO(a)}},Cxy[v.toString()]?_.JM("yt.scheduler.instance")?_.wh.addLowPriorityJob(e):_.Ta(e,0):e())});
aGA[x]=!0;MNF[v.toString()]||(MNF[v.toString()]=[]);MNF[v.toString()].push(x);return x};
KW9=function(){var v=UDX,E=SbA(qb$,function(n){v.apply(void 0,arguments);JCN(E)});
return E};
JCN=function(v){var E=rCX();E&&(typeof v==="number"&&(v=[v]),_.I5(v,function(n){E.unsubscribeByKey(n);delete aGA[n]}))};
rCX=function(){return _.JM("ytPubsub2Pubsub2Instance")};
dDs=function(v,E,n){n=n===void 0?{sampleRate:.1}:n;Math.random()<Math.min(.02,n.sampleRate/100)&&PxX("meta_logging_csi_event",{timerName:v,timelineData:E})};
_.IGQ=function(v){return v?(v=v.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.YR(v):null:null};
_.b6=function(v){return v?(v=v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.xR(v):null:null};
hos=function(){YbX||(YbX=_.b6(_.MX("WORKER_SERIALIZATION_URL")));return YbX||void 0};
_.VNI=function(){var v=hos();AC9||v===void 0||(AC9=new Worker(_.c5(v),void 0));return AC9};
_.DDI=function(){return typeof Worker==="function"&&hos()?!0:!1};
_.uq1=function(){if(_.DDI()&&!HCX){var v=function(n){n=n.data;if(n.op==="gzippedGelBatch"){var f=gtE.get(n.key);f&&(NGQ(n.gzippedBatch,f.latencyPayload,f.url,f.options,f.sendFn),gtE.delete(n.key))}},E=_.VNI();
E&&(E.addEventListener("message",v),E.onerror=function(){gtE.clear()},HCX=!0)}};
GeX=function(v,E,n,f,x){x=x===void 0?!1:x;var y={startTime:(0,_.gd)(),ticks:{},infos:{}};if(l6)try{var Q=jbX(E);if(Q!=null&&(Q>OCy||Q<keE))f(v,n);else{if(_.Z("gzip_gel_with_worker")&&(_.Z("initial_gzip_use_main_thread")&&!WWL||!_.Z("initial_gzip_use_main_thread"))){HCX||_.uq1();var e=_.VNI();if(e&&!x){gtE.set($DA,{latencyPayload:y,url:v,options:n,sendFn:f});e.postMessage({op:"gelBatchToGzip",serializedBatch:E,key:$DA});$DA++;return}}var F=sbL(LWX(E));NGQ(F,y,v,n,f)}}catch(b){_.Kk(b),f(v,n)}else f(v,
n)};
NGQ=function(v,E,n,f,x){WWL=!1;var y=(0,_.gd)();E.ticks.gelc=y;sU++;_.Z("disable_compression_due_to_performance_degredation")&&y-E.startTime>=TGN&&(iCL++,_.Z("abandon_compression_after_N_slow_zips")?sU===_.WG("compression_disable_point")&&iCL>zo9&&(l6=!1):l6=!1);RoX(E);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=v;f.postParams=void 0;x(n,f)};
tNE=function(v){var E=E===void 0?!1:E;var n=n===void 0?!1:n;var f=(0,_.gd)(),x={startTime:f,ticks:{},infos:{}},y=E?_.JM("yt.logging.gzipForFetch",!1):!0;if(l6&&y){if(!v.body)return v;try{var Q=n?v.body:typeof v.body==="string"?v.body:JSON.stringify(v.body);y=Q;if(!n&&typeof Q==="string"){var e=jbX(Q);if(e!=null&&(e>OCy||e<keE))return v;n=E?{level:1}:void 0;y=sbL(LWX(Q),n);var F=(0,_.gd)();x.ticks.gelc=F;if(E){sU++;if((_.Z("disable_compression_due_to_performance_degredation")||_.Z("disable_compression_due_to_performance_degradation_lr"))&&
F-f>=TGN)if(iCL++,_.Z("abandon_compression_after_N_slow_zips")||_.Z("abandon_compression_after_N_slow_zips_lr")){E=iCL/sU;var b=zo9/_.WG("compression_disable_point");sU>0&&sU%_.WG("compression_disable_point")===0&&E>=b&&(l6=!1)}else l6=!1;RoX(x)}}v.headers=Object.assign({},{"Content-Encoding":"gzip"},v.headers||{});v.body=y;return v}catch(l){return _.Kk(l),v}}else return v};
jbX=function(v){try{return(new Blob(v.split(""))).size}catch(E){return _.Kk(E),null}};
RoX=function(v){_.Z("gel_compression_csi_killswitch")||!_.Z("log_gel_compression_latency")&&!_.Z("log_gel_compression_latency_lr")||dDs("gel_compression",v,{sampleRate:.1})};
BGy=function(){this.blockSize=-1};
rh=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var v=1;v<this.blockSize;++v)this.pad_[v]=0;this.total_=this.inbuf_=0;this.reset()};
EyX=function(v){v=Object.assign({},v);delete v.Authorization;var E=vyy();if(E){var n=new rh;n.update(_.MX("INNERTUBE_API_KEY"));n.update(E);v.hash=_.z3(n.digest(),3)}return v};
aY=function(){nyQ||(nyQ=new _.P7("yt.innertube"));return nyQ};
oyN=function(v,E,n,f){if(f)return null;f=aY().get("nextId",!0)||1;var x=aY().get("requests",!0)||{};x[f]={method:v,request:E,authState:EyX(n),requestTime:Math.round((0,_.gd)())};aY().set("nextId",f+1,86400,!0);aY().set("requests",x,86400,!0);return f};
f_E=function(v){var E=aY().get("requests",!0)||{};delete E[v];aY().set("requests",E,86400,!0)};
cVL=function(v){var E=aY().get("requests",!0);if(E){for(var n in E){var f=E[n];if(!(Math.round((0,_.gd)())-f.requestTime<6E4)){var x=f.authState,y=EyX(_.AcI(!1));_.sh.equals(x,y)&&(x=f.request,"requestTimeMs"in x&&(x.requestTimeMs=Math.round((0,_.gd)())),xQQ(v,f.method,x,{}));delete E[n]}}aY().set("requests",E,86400,!0)}};
yV1=function(v){var E;return(v=v==null?void 0:(E=v.error)==null?void 0:E.code)&&v>=400&&v<=599?!1:!0};
ppX=function(v){var E;v=v==null?void 0:(E=v.error)==null?void 0:E.code;return!(v!==400&&v!==415)};
XpN=function(){if(Qks)return Qks();var v={};Qks=HA("LogsDatabaseV2",{objectStores:(v.LogsRequestsStore={addedAtVersion:2},v),shared:!1,upgrade:function(E,n,f){n(2)&&Z$(E,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});n(3);n(5)&&(f=f.objectStore("LogsRequestsStore"),f.JSC$8497_wrapped.indexNames.contains("newRequest")&&f.JSC$8497_wrapped.deleteIndex("newRequest"),CZ(f,"newRequestV2",["status","interface","timestamp"]));n(7)&&E.JSC$8482_wrapped.objectStoreNames.contains("sapisid")&&E.JSC$8482_wrapped.deleteObjectStore("sapisid");
n(9)&&E.JSC$8482_wrapped.objectStoreNames.contains("SWHealthLog")&&E.JSC$8482_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Qks()};
M1=function(v){return _.KE(XpN(),v)};
FoE=function(v,E){var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return n={startTime:(0,_.gd)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.m(Q,M1(E),2);if(Q.nextAddress!=3)return f=Q.yieldResult,x=Object.assign({},v,{options:JSON.parse(JSON.stringify(v.options)),interface:_.MX("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.m(Q,f.put("LogsRequestsStore",x),3);y=Q.yieldResult;n.ticks.tc=(0,_.gd)();eV9(n);return Q.return(y)})};
mQX=function(v,E){var n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return n={startTime:(0,_.gd)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.m(l,M1(E),2);if(l.nextAddress!=3)return f=l.yieldResult,x=_.MX("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[v,x,0],Q=[v,x,(0,_.gd)()],e=IDBKeyRange.bound(y,Q),F="prev",_.Z("use_fifo_for_networkless")&&(F="next"),b=void 0,_.m(l,_.dd(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(r){return _.Np(r.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:e,direction:F},function(a){a.getValue()&&(b=a.getValue(),v==="NEW"&&(b.status="QUEUED",a.update(b)))})}),3);
n.ticks.tc=(0,_.gd)();eV9(n);return l.return(b)})};
wpA=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,M1(E),2);n=f.yieldResult;return f.return(_.dd(n,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var y=x.objectStore("LogsRequestsStore");return y.get(v).then(function(Q){if(Q)return Q.status="QUEUED",y.put(Q).then(function(){return Q})})}))})};
b2G=function(v,E,n,f){n=n===void 0?!0:n;var x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,M1(E),2);x=y.yieldResult;return y.return(_.dd(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var e=Q.objectStore("LogsRequestsStore");return e.get(v).then(function(F){return F?(F.status="NEW",n&&(F.sendCount+=1),f!==void 0&&(F.options.compress=f),e.put(F).then(function(){return F})):CE.resolve(void 0)})}))})};
l_I=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,M1(E),2);n=f.yieldResult;return f.return(n.delete("LogsRequestsStore",v))})};
skQ=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,M1(v),2);E=f.yieldResult;n=(0,_.gd)()-2592E6;return _.m(f,_.dd(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){return Ym(x.objectStore("LogsRequestsStore"),{},function(y){if(y.getValue().timestamp<=n)return y.delete().then(function(){return y.continue()})})}),0)})};
rVQ=function(){_.X(function(v){return _.m(v,ycX("LogsDatabaseV2"),0)})};
eV9=function(v){_.Z("nwl_csi_killswitch")||dDs("networkless_performance",v,{sampleRate:1})};
_.a_E=function(v){return _.KE(PoN(),v)};
Z2Q=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,_.a_E(v),2);E=f.yieldResult;n=(0,_.gd)()-2592E6;return _.m(f,_.dd(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(x){return Ym(x.objectStore("SWHealthLog"),{},function(y){if(y.getValue().timestamp<=n)return y.delete().then(function(){return y.continue()})})}),0)})};
CoG=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,_.a_E(v),2);E=n.yieldResult;return _.m(n,E.clear("SWHealthLog"),0)})};
_.SD=function(v,E,n,f,x,y,Q){x=x===void 0?"":x;y=y===void 0?!1:y;Q=Q===void 0?!1:Q;if(v)if(n&&!rd("cobalt"))_.Kk(new _.yc("Legacy referrer-scrubbed ping detected")),v&&Mky(v,void 0,{scrubReferrer:!0});else if(x)zfG(v,E,"POST",x,f);else if(_.MX("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||Q)zfG(v,E,"GET","",f,void 0,y,Q);else{b:{try{c:{var e=new SnE({url:v});if(A7E(e.JSC$7372_url_,UQF)==="1")var F=null;else{var b=A7E(e.JSC$7372_url_,qnG);if(b==="1"){var l=A7E(e.JSC$7372_url_,JVQ);if(l)try{F={version:3,
directUrl:decodeURIComponent(l),asyncUrl:VCX(e.JSC$7372_url_,"act=1","ri=1",Ko9(e))};break c}catch(U){}}F=b==="2"?{version:4,directUrl:VCX(e.JSC$7372_url_,"dct=1","suid="+e.suid_,""),asyncUrl:VCX(e.JSC$7372_url_,"act=1","ri=1","suid="+e.suid_)}:null}}if(F){var r=_.R5(v);var a=!(!r||!r.endsWith("/aclk")||_.SC(v,"ri")!=="1");break b}}catch(U){}a=!1}if(a){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(v,"")){var M=!0;break b}}catch(U){}M=!1}M?(E&&E(),n=!0):n=!1}else n=
!1;n||Mky(v,E)}};
Mky=function(v,E,n){n=n===void 0?{}:n;var f=new Image,x=""+dQI++;I_Q[x]=f;f.onload=f.onerror=function(){E&&I_Q[x]&&E();delete I_Q[x]};
n.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=v};
UU=function(v,E){Yny(v,E==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
hV$=function(v){var E;return((E=document.featurePolicy)==null?0:E.allowedFeatures().includes("attribution-reporting"))?v+"&nis=6":v+"&nis=5"};
AVs=function(v){if(!v)return!1;try{var E;if(((E=_.Y6(v))==null?void 0:E.asm)==="4")return!0}catch(n){_.UO(n)}return!1};
Yny=function(v,E){E?(v=hV$(v),_.SD(v,void 0,void 0,void 0,"",!0,!0)):_.SD(v)};
DQy=function(){VkQ||(VkQ=new _.P7("yt.offline"));return VkQ};
H2L=function(v){if(_.Z("offline_error_handling")){var E=DQy().get("errors",!0)||{};E[v.message]={name:v.name,stack:v.stack};v.level&&(E[v.message].level=v.level);DQy().set("errors",E,2592E3,!0)}};
NnG=function(v,E,n,f){f=f===void 0?!1:f;E=_.Z("web_fp_via_jspb")?Object.assign({},E):E;_.Z("use_cfr_monitor")&&gyA(v,E);if(_.Z("use_request_time_ms_header"))E.headers&&NX(v)&&(E.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gd)())));else{var x;if((x=E.postParams)==null?0:x.requestTimeMs)E.postParams.requestTimeMs=Math.round((0,_.gd)())}n&&Object.keys(E).length===0?_.SD(v):E.compress?E.postBody?(typeof E.postBody!=="string"&&(E.postBody=JSON.stringify(E.postBody)),GeX(v,E.postBody,
E,_.tM,f)):GeX(v,JSON.stringify(E.postParams),E,vZy,f):_.tM(v,E)};
uJL=function(v,E){_.Z("use_event_time_ms_header")&&NX(v)&&(E.headers||(E.headers={}),E.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.gd)())));return E};
_.O21=function(){jkN||(jkN=new _.q1({logOfflineErrors:!0,enablePolling:!0}));return jkN};
gyA=function(v,E){var n=E.onError?E.onError:function(){};
E.onError=function(x,y){Js().requestComplete(v,!1);n(x,y)};
var f=E.onSuccess?E.onSuccess:function(){};
E.onSuccess=function(x,y){Js().requestComplete(v,!0);f(x,y)}};
_.kwQ=function(){return _.HG(document.location.toString())!=="www.youtube-nocookie.com"};
_.LoX=function(){return _.JM("ytNetworklessLoggingInitializationOptions")?_.WoN.isNwlInitialized:_.$QE};
Gw9=function(v,E){if(_.Z("polymer_on_demand_shady_dom")){var n;var f=(n=v.__shady_native_firstElementChild)!=null?n:v.firstElementChild}else f=v.firstElementChild;for(;f;){if(v=E(f)?f:Gw9(f,E))return v;f=f.nextElementSibling}return null};
i2N=function(){var v=document;if("visibilityState"in v)return v.visibilityState;var E=TnF+"VisibilityState";if(E in v)return v[E]};
_.zVF=function(v,E){var n;KZ(v,function(f){n=E[f];return!!n});
return n};
_.IY=function(v){var E=RVX(v);E?E.focus():_.dh(v)};
RVX=function(v){return(v=Gw9(v,function(E){return _.YH(E)?tkA(E)&&!!E.offsetParent:!1}))?v:null};
_.dh=function(v,E){v.hasAttribute("tabindex")||v.setAttribute("tabindex","-1");v.focus(E)};
BnX=function(v,E,n,f){f=f===void 0?{}:f;v.addEventListener&&(E!="mouseenter"||"onmouseenter"in document?E!="mouseleave"||"onmouseenter"in document?E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"):E="mouseout":E="mouseover");return _.sh.findKey(hs,function(x){var y=typeof x[4]==="boolean"&&x[4]==!!f,Q=_.oF(x[4])&&_.oF(f)&&_.sh.equals(x[4],f);return!!x.length&&x[0]==v&&x[1]==E&&x[2]==n&&(y||Q)})};
_.VR=function(v,E,n,f){f=f===void 0?{}:f;if(!v||!v.addEventListener&&!v.attachEvent)return"";var x=BnX(v,E,n,f);if(x)return x;x=++viL.count+"";var y=!(E!="mouseenter"&&E!="mouseleave"||!v.addEventListener||"onmouseenter"in document);var Q=y?function(e){e=new As(e);if(!_.Ss(e.relatedTarget,function(F){return F==v},!0))return e.currentTarget=v,e.type=E,n.call(v,e)}:function(e){e=new As(e);
e.currentTarget=v;return n.call(v,e)};
Q=_.qX(Q);v.addEventListener?(E=="mouseenter"&&y?E="mouseover":E=="mouseleave"&&y?E="mouseout":E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"),EiI()||typeof f==="boolean"?v.addEventListener(E,Q,f):v.addEventListener(E,Q,!!f.capture)):v.attachEvent("on"+E,Q);hs[x]=[v,E,n,Q,f];return x};
_.oiE=function(v,E,n){var f=f===void 0?{}:f;var x=_.VR(v,E,function(){_.ni1(x);n.apply(v,arguments)},f)};
_.ni1=function(v){v&&(typeof v=="string"&&(v=[v]),_.I5(v,function(E){if(E in hs){var n=hs[E],f=n[0],x=n[1],y=n[3];n=n[4];f.removeEventListener?EiI()||typeof n==="boolean"?f.removeEventListener(x,y,n):f.removeEventListener(x,y,!!n.capture):f.detachEvent&&f.detachEvent("on"+x,y);delete hs[E]}}))};
D$=function(v){this.callback_=v;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(v=0;v<4;v++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.VR(window,"mousemove",(0,_.XV)(this.onMouseMove_,this));this.timerId_=_.i5((0,_.XV)(this.checkPosition_,this),25)};
xuF=function(){var v={};var E=v.preferMobileEvents===void 0?!1:v.preferMobileEvents;v=v.enableScrollEventListener===void 0?!0:v.enableScrollEventListener;if(_.JM("_lact",window)==null){var n=parseInt(_.MX("LACT"),10);n=isFinite(n)?Date.now()-Math.max(n,0):-1;_.Vc("_lact",n,window);_.Vc("_fact",n,window);n==-1&&_.H7();_.VR(document,"keydown",_.H7);_.VR(document,"keyup",_.H7);_.VR(document,"mousedown",_.H7);_.VR(document,"mouseup",_.H7);E?_.VR(window,"touchmove",function(){fjN("touchmove",200)},{passive:!0}):
(_.VR(window,"resize",function(){fjN("resize",200)}),v&&_.VR(window,"scroll",function(){fjN("scroll",200)}));
new D$(function(){fjN("mouse",100)});
_.VR(document,"touchstart",_.H7,{passive:!0});_.VR(document,"touchend",_.H7,{passive:!0})}};
fjN=function(v,E){cxy[v]||(cxy[v]=!0,_.wh.addLowPriorityJob(function(){_.H7();cxy[v]=!1},E))};
_.H7=function(){_.JM("_lact",window)==null&&xuF();var v=Date.now();_.Vc("_lact",v,window);_.JM("_fact",window)==-1&&_.Vc("_fact",v,window);(v=_.JM("ytglobal.ytUtilActivityCallback_"))&&v()};
_.gh=function(){var v=_.JM("_lact",window);return v==null?-1:Math.max(Date.now()-v,0)};
_.W7=function(v,E,n){var f=_.N1();if(f&&E){var x=f.subscribe(v,function(){var y=arguments,Q=function(){u6[x]&&E.apply&&typeof E.apply=="function"&&E.apply(n||window,y)};
try{_.yxN[v]?Q():_.Ta(Q,0)}catch(e){_.UO(e)}},n);
u6[x]=!0;jD[v]||(jD[v]=[]);jD[v].push(x);return x}return 0};
_.pE$=function(v){var E=_.N1();E&&(typeof v==="number"?v=[v]:typeof v==="string"&&(v=[parseInt(v,10)]),_.I5(v,function(n){E.unsubscribeByKey(n);delete u6[n]}))};
_.QUI=function(v,E){var n=_.N1();n&&n.publish.apply(n,arguments)};
_.eLN=function(v){var E=_.N1();if(E)if(E.clear(v),v)XEs(v);else for(var n in jD)XEs(n)};
_.N1=function(){return _.n1.ytPubsubPubsubInstance};
XEs=function(v){jD[v]&&(v=jD[v],_.I5(v,function(E){u6[E]&&delete u6[E]}),v.length=0)};
F$E=function(){var v,E;return"h5vcc"in $H&&((v=$H.h5vcc.traceEvent)==null?0:v.traceBegin)&&((E=$H.h5vcc.traceEvent)==null?0:E.traceEnd)?1:"performance"in $H&&$H.performance.mark&&$H.performance.measure?2:0};
mu$=function(v){var E=F$E();switch(E){case 1:$H.h5vcc.traceEvent.traceBegin("YTLR",v);break;case 2:$H.performance.mark(v+"-start");break;case 0:break;default:_.p0(E,"unknown trace type")}};
wEy=function(v){var E=F$E();switch(E){case 1:$H.h5vcc.traceEvent.traceEnd("YTLR",v);break;case 2:E=v+"-start";var n=v+"-end";$H.performance.mark(n);$H.performance.measure(v,E,n);break;case 0:break;default:_.p0(E,"unknown trace type")}};
b51=function(v){var E,n;(n=(E=window).onerror)==null||n.call(E,v.message,"",0,0,v)};
ljN=function(v){if(_.Z("web_lifecycle_error_handling_killswitch"))return v();try{return v()}catch(E){b51(E)}};
sUX=function(v){return[v.auth===void 0?"undefined":v.auth,v.isJspb===void 0?"undefined":v.isJspb,v.cttAuthInfo===void 0?"undefined":v.cttAuthInfo,v.tier===void 0?"undefined":v.tier].join("/")};
_.C=function(v,E){if(v)return v[E.name]};
G2=function(){var v=_.JM("yt.logging.ims");v||(v=new LZ,_.Vc("yt.logging.ims",v));return v};
qeF=function(v,E){if(v.endpoint==="log_event"){rxX(v);var n=PzX(v),f=ajy(v.payload)||"",x=Z5$(f),y=200;if(x){if(x.enabled===!1&&!_.Z("web_payload_policy_disabled_killswitch"))return;y=CzI(x.tier);if(y===400){MIE(v,E);return}}T2[n]=!0;n={cttAuthInfo:n,isJspb:!1,tier:y};G2().storePayload(n,v.payload);SeA(E,!1,n,UuN(f))}};
K$E=function(v,E,n){if(E.endpoint==="log_event"){rxX(void 0,E);var f=PzX(E,!0),x=Z5$(v),y=200;if(x){if(x.enabled===!1&&!_.Z("web_payload_policy_disabled_killswitch"))return;y=CzI(x.tier);if(y===400){Jxs(v,E,n);return}}T2[f]=!0;f={cttAuthInfo:f,isJspb:!0,tier:y};G2().storePayload(f,tR(E.payload));SeA(n,!0,f,UuN(v))}};
SeA=function(v,E,n,f){E=E===void 0?!1:E;f=f===void 0?!1:f;v&&(i6=new v);v=_.WG("tvhtml5_logging_max_batch_ads_fork")||_.WG("tvhtml5_logging_max_batch")||_.WG("web_logging_max_batch")||100;var x=(0,_.gd)(),y=duE(E,n.tier),Q=y.lastDebounceQueueFromLogTimeMs;f&&(y.useVideoStatsEndPoint=!0);f=0;n&&(f=G2().getSequenceCount(n));var e=function(){IjG({writeThenSend:!0},E,n.tier)};
f>=1E3?e():f>=v?YeG||(YeG=hLI(function(){e();YeG=void 0},0)):x-Q>=10&&(Ax9(E,n.tier),y.lastDebounceQueueFromLogTimeMs=x)};
MIE=function(v,E){if(v.endpoint==="log_event"){_.Z("more_accurate_gel_parser")&&G2().storePayload({isJspb:!1},v.payload);rxX(v);var n=PzX(v),f=new Map;f.set(n,[v.payload]);var x=ajy(v.payload)||"";E&&(i6=new E);return new _.z2(function(y,Q){i6&&i6.isReady()?VIE(f,i6,y,Q,{bypassNetworkless:!0},!0,UuN(x)):y()})}};
Jxs=function(v,E,n){if(E.endpoint==="log_event"){rxX(void 0,E);var f=PzX(E,!0),x=new Map;x.set(f,[tR(E.payload)]);n&&(i6=new n);return new _.z2(function(y){i6&&i6.isReady()?DuN(x,i6,y,{bypassNetworkless:!0},!0,UuN(v)):y()})}};
PzX=function(v,E){var n="";if(v.dangerousLogToVisitorSession)n="visitorOnlyApprovedKey";else if(v.cttAuthInfo){if(E===void 0?0:E){E=v.cttAuthInfo.token;n=v.cttAuthInfo;var f=new H5E;n.videoId?f.setVideoId(n.videoId):n.playlistId&&RY(f,2,gi1,g_(n.playlistId));Nq$[E]=f}else E=v.cttAuthInfo,n={},E.videoId?n.videoId=E.videoId:E.playlistId&&(n.playlistId=E.playlistId),uyF[v.cttAuthInfo.token]=n;n=v.cttAuthInfo.token}return n};
IjG=function(v,E,n){v=v===void 0?{}:v;E=E===void 0?!1:E;new _.z2(function(f,x){var y=duE(E,n),Q=y.useVideoStatsEndPoint;y.useVideoStatsEndPoint=!1;jU9(y.queueTimer);jU9(y.queueMaxTimer);y.queueMaxTimer=0;i6&&i6.isReady()?n===void 0&&_.Z("enable_web_tiered_gel")?O51(f,x,v,E,300,Q):O51(f,x,v,E,n,Q):(Ax9(E,n),f())})};
O51=function(v,E,n,f,x,y){var Q=i6;n=n===void 0?{}:n;f=f===void 0?!1:f;x=x===void 0?200:x;y=y===void 0?!1:y;var e=new Map,F=new Map,b={isJspb:f,cttAuthInfo:void 0,tier:x},l={isJspb:f,cttAuthInfo:void 0};if(f){E=_.p(Object.keys(T2));for(x=E.next();!x.done;x=E.next())x=x.value,F=_.Z("enable_web_tiered_gel")?G2().smartExtractMatchingEntries({keys:[b,l],sizeLimit:1E3}):G2().extractMatchingEntries({isJspb:!0,cttAuthInfo:x}),F.length>0&&e.set(x,F),(_.Z("web_fp_via_jspb_and_json")&&n.writeThenSend||!_.Z("web_fp_via_jspb_and_json"))&&
delete T2[x];DuN(e,Q,v,n,!1,y)}else{e=_.p(Object.keys(T2));for(b=e.next();!b.done;b=e.next())b=b.value,l=_.Z("enable_web_tiered_gel")?G2().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:b,tier:x},{isJspb:!1,cttAuthInfo:b}],sizeLimit:1E3}):G2().extractMatchingEntries({isJspb:!1,cttAuthInfo:b}),l.length>0&&F.set(b,l),(_.Z("web_fp_via_jspb_and_json")&&n.writeThenSend||!_.Z("web_fp_via_jspb_and_json"))&&delete T2[b];VIE(F,Q,v,E,n,!1,y)}};
Ax9=function(v,E){v=v===void 0?!1:v;E=E===void 0?200:E;var n=function(){IjG({writeThenSend:!0},v,E)},f=duE(v,E),x=f===kls||f===W$E?5E3:$uN;
_.Z("web_gel_timeout_cap")&&!f.queueMaxTimer&&(x=hLI(function(){n()},x),f.queueMaxTimer=x);
jU9(f.queueTimer);x=_.MX("LOGGING_BATCH_TIMEOUT",_.WG("web_gel_debounce_ms",1E4));_.Z("shorten_initial_gel_batch_timeout")&&L$X&&(x=Gl1);x=hLI(function(){_.WG("gel_min_batch_size")>0?G2().getSequenceCount({cttAuthInfo:void 0,isJspb:v,tier:E})>=TqI&&n():n()},x);
f.queueTimer=x};
VIE=function(v,E,n,f,x,y,Q){x=x===void 0?{}:x;var e=Math.round((0,_.gd)()),F=v.size,b=i5N(Q);v=_.p(v);var l=v.next();for(Q={};!l.done;Q={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},l=v.next()){var r=_.p(l.value);l=r.next().value;r=r.next().value;Q.batchRequest=_.sh.unsafeClone({context:_.SfE(E.config_||_.uq())});if(!_.E1(r)&&!_.Z("throw_err_when_logevent_malformed_killswitch")){f();break}Q.batchRequest.events=r;
(r=uyF[l])&&zLI(Q.batchRequest,l,r);delete uyF[l];Q.dangerousLogToVisitorSession=l==="visitorOnlyApprovedKey";RL1(Q.batchRequest,e,Q.dangerousLogToVisitorSession);tI1(x);Q.onSuccess$jscomp$3=function(a){_.Z("start_client_gcf")&&_.wh.addLowPriorityJob(function(){return _.X(function(M){return _.m(M,BqL(a),0)})});
F--;F||n()};
Q.networkFailures=0;Q.onError$jscomp$5=function(a){return function(){a.networkFailures++;if(x.bypassNetworkless&&a.networkFailures===1)try{xQQ(E,b,a.batchRequest,vzE({writeThenSend:!0},a.dangerousLogToVisitorSession,a.onSuccess$jscomp$3,a.onError$jscomp$5,y)),L$X=!1}catch(M){_.UO(M),f()}F--;F||n()}}(Q);
try{xQQ(E,b,Q.batchRequest,vzE(x,Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,y)),L$X=!1}catch(a){_.UO(a),f()}}};
DuN=function(v,E,n,f,x,y){f=f===void 0?{}:f;var Q=Math.round((0,_.gd)()),e={value:v.size},F=new Map([].concat(_.s8(v)));F=_.p(F);for(var b=F.next();!b.done;b=F.next()){var l=_.p(b.value).next().value,r=v.get(l);b=new EzG;var a=E.config_||_.uq(),M=new ts,U=new nzs;_.ps(U,1,a.innertubeContextHostLanguage);_.ps(U,2,a.innertubeContextGeoLocation);_.OH(U,16,a.innertubeContextClientNameFieldNumber);_.ps(U,17,a.innertubeContextClientVersion);if(a.innertubeContextClientConfigInfo){var d=a.innertubeContextClientConfigInfo,
Y=new WA;d.coldConfigData&&_.ps(Y,1,d.coldConfigData);d.appInstallData&&_.ps(Y,6,d.appInstallData);d.coldHashData&&_.ps(Y,3,d.coldHashData);d.hotHashData&&Y.setHotHashData(d.hotHashData);_.Bz(U,62,Y)}(d=_.n1.devicePixelRatio)&&d!=1&&_.km(U,65,_.Q6(d));d=jSI();d!==""&&_.ps(U,54,d);d=OVE();if(d.length>0){Y=new ozy;for(var V=0;V<d.length;V++){var O=new B7;O.setKey(d[V].key);RY(O,2,faG,g_(d[V].value));vP(Y,15,B7,O)}_.Bz(M,5,Y)}rcX(a,U);PnA(M);aII(U);ZHs(a,U);CnF(U);_.Z("start_client_gcf")&&M71(U);_.MX("DELEGATED_SESSION_ID")&&
!_.Z("pageid_as_header_web")&&(a=new Es,_.ps(a,3,_.MX("DELEGATED_SESSION_ID")));!_.Z("fill_delegate_context_in_gel_killswitch")&&(d=_.MX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Y=_.j5(M,Es,3)||new Es,a=M,d=_.ps(Y,18,d),_.Bz(a,3,d));a=U;d=_.p(Object.entries(_.Y6(_.MX("DEVICE",""))));for(Y=d.next();!Y.done;Y=d.next())V=_.p(Y.value),Y=V.next().value,V=V.next().value,Y==="cbrand"?_.ps(a,12,V):Y==="cmodel"?_.ps(a,13,V):Y==="cbr"?_.ps(a,87,V):Y==="cbrver"?_.ps(a,88,V):Y==="cos"?_.ps(a,18,
V):Y==="cosver"?_.ps(a,19,V):Y==="cplatform"&&_.OH(a,42,llL(V));M.setClient(U);_.Bz(b,1,M);if(U=Nq$[l])a:{if(_.nT(U,n3(U,gi1,1)))M=1;else if(U.getPlaylistId())M=2;else break a;_.Bz(b,4,U);U=b.getContext()||new ts;a=_.j5(U,Es,3)||new Es;d=new og;d.setToken(l);_.OH(d,1,M);vP(a,12,og,d);_.Bz(U,3,a)}delete Nq$[l];l=l==="visitorOnlyApprovedKey";xdN()||_.f3(b,2,Q);!l&&(M=_.MX("EVENT_ID"))&&(U=cZX(),a=new yZN,_.ps(a,1,M),_.f3(a,2,U),_.Bz(b,5,a));tI1(f);if(_.Z("jspb_serialize_with_worker")&&(M=_.VNI())&&
f.writeThenSend){_.p8Q.set(QjI,{client:E,resolve:n,networklessOptions:f,isIsolated:x,useVSSEndpoint:y,dangerousLogToVisitorSession:l,requestsOutstanding:e});M.postMessage({op:"gelBatchToSerialize",batchRequest:tR(b),clientEvents:r,key:QjI});QjI++;break}if(r){M=[];for(U=0;U<r.length;U++)try{M.push(new x$(r[U]))}catch(T){_.UO(new _.yc("Transport failed to deserialize "+String(r[U])))}r=M}else r=[];r=_.p(r);for(M=r.next();!M.done;M=r.next())vP(b,3,x$,M.value);r={startTime:(0,_.gd)(),ticks:{},infos:{}};
b=b.serialize();r.ticks.geljspc=(0,_.gd)();_.Z("log_jspb_serialize_latency")&&dDs("gel_jspb_serialize",r,{sampleRate:.1});_.X8X(b,E,n,f,x,y,l,e)}};
_.X8X=function(v,E,n,f,x,y,Q,e){f=f===void 0?{}:f;e=e===void 0?{value:0}:e;y=i5N(y);f=vzE(f,Q,function(F){_.Z("start_client_gcf")&&_.wh.addLowPriorityJob(function(){return _.X(function(b){return _.m(b,BqL(F),0)})});
e.value--;e.value||n()},function(){e.value--;
e.value||n()},x);
f.headers["Content-Type"]="application/json+protobuf";f.postBodyFormat="JSPB";f.postBody=v;xQQ(E,y,"",f);L$X=!1};
tI1=function(v){_.Z("always_send_and_write")&&(v.writeThenSend=!1)};
vzE=function(v,E,n,f,x){v={retry:!0,onSuccess:n,onError:f,networklessOptions:v,dangerousLogToVisitorSession:E,bypassMonitoring:!!x,headers:{},postBodyFormat:"",postBody:"",compress:_.Z("compress_gel")||_.Z("compress_gel_lr")};xdN()&&(v.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gd)())));return v};
RL1=function(v,E,n){xdN()||(v.requestTimeMs=String(E));_.Z("unsplit_gel_payloads_in_logs")&&(v.unsplitGelPayloadsInLogs=!0);!n&&(E=_.MX("EVENT_ID"))&&(n=cZX(),v.serializedClientEventId={serializedEventId:E,clientCounter:String(n)})};
cZX=function(){var v=_.MX("BATCH_CLIENT_COUNTER")||0;v||(v=Math.floor(Math.random()*65535/2));v++;v>65535&&(v=1);_.Ck("BATCH_CLIENT_COUNTER",v);return v};
zLI=function(v,E,n){if(n.videoId)var f="VIDEO";else if(n.playlistId)f="PLAYLIST";else return;v.credentialTransferTokenTargetId=n;v.context=v.context||{};v.context.user=v.context.user||{};v.context.user.credentialTransferTokens=[{token:E,scope:f}]};
rxX=function(v,E){var n=_.$6("il_payload_scraping")==="enable_il_payload_scraping";if(!_.JM("yt.logging.transport.enableScrapingForTest"))if(n)eYF=[],_.Vc("yt.logging.transport.enableScrapingForTest",!0),_.Vc("yt.logging.transport.scrapedPayloadsForTesting",eYF),_.Vc("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Vc("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Vc("yt.logging.transport.scrapeClientEvent",!0);else return;n=_.JM("yt.logging.transport.scrapedPayloadsForTesting");var f=_.JM("yt.logging.transport.payloadToScrape");E&&(E=_.JM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(E.payload)())&&n.push(E);E=_.JM("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var x=0;x<f.length;x++)if(v&&v.payload[f[x]])if(E)n.push(v.payload);else{var y=void 0;n.push(((y=v)==null?void 0:y.payload)[f[x]])}_.Vc("yt.logging.transport.scrapedPayloadsForTesting",
n)};
xdN=function(){return _.Z("use_request_time_ms_header")||_.Z("lr_use_request_time_ms_header")};
hLI=function(v,E){return _.Z("transport_use_scheduler")===!1?_.Ta(v,E):_.Z("logging_avoid_blocking_during_navigation")||_.Z("lr_logging_avoid_blocking_during_navigation")?_.cP(_.wh,function(){if(_.FGE().currentState==="none")v();else{var n={};_.FGE().install((n.none={callback:v},n))}},E):_.cP(_.wh,v,E)};
jU9=function(v){_.Z("transport_use_scheduler")?_.wh.cancelJob(v):_.za(v)};
BqL=function(v){var E,n,f,x,y,Q,e,F,b,l;return _.X(function(r){return r.nextAddress==1?(f=(E=v)==null?void 0:(n=E.responseContext)==null?void 0:n.globalConfigGroup,x=_.C(f,mdQ),Q=(y=f)==null?void 0:y.hotHashData,e=_.C(f,w8$),b=(F=f)==null?void 0:F.coldHashData,(l=_.P().resolve(_.jp(ys)))?Q?x?_.m(r,bRQ(l,Q,x),2):_.m(r,bRQ(l,Q),2):r.jumpTo(2):r.return()):b?e?_.m(r,laX(l,b,e),0):_.m(r,laX(l,b),0):r.jumpTo(0)})};
duE=function(v,E){E=E===void 0?200:E;return v?E===300?kls:sjX:E===300?W$E:rZN};
Z5$=function(v){if(_.Z("enable_web_tiered_gel")){v=Pj9[v||""];var E,n,f,x=_.P().resolve(_.jp(ys))==null?void 0:(E=aaE())==null?void 0:(n=E.loggingHotConfig)==null?void 0:(f=n.eventLoggingConfig)==null?void 0:f.payloadPolicies;if(x)for(E=0;E<x.length;E++)if(x[E].payloadNumber===v)return x[E]}};
ajy=function(v){v=Object.keys(v);v=_.p(v);for(var E=v.next();!E.done;E=v.next())if(E=E.value,Pj9[E])return E};
CzI=function(v){switch(v){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}};
UuN=function(v){return v==="gelDebuggingEvent"};
i5N=function(v){return(v===void 0?0:v)&&_.Z("vss_through_gel_video_stats")?"video_stats":"log_event"};
Qs=function(v,E,n,f){f=f===void 0?{}:f;var x={},y=Math.round(f.timestamp||(0,_.gd)());x.eventTimeMs=y<Number.MAX_SAFE_INTEGER?y:0;x[v]=E;v=_.gh();x.context={lastActivityMs:String(f.timestamp||!isFinite(v)?-1:v)};f.sequenceGroup&&!_.Z("web_gel_sequence_info_killswitch")&&(v=x.context,E=f.sequenceGroup,E={index:ZRE(E),groupKey:E},v.sequence=E,f.endOfSequence&&delete p3[f.sequenceGroup]);(f.sendIsolatedPayload?MIE:qeF)({endpoint:"log_event",payload:x,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},
n)};
ZRE=function(v){p3[v]=v in p3?p3[v]+1:0;return p3[v]};
_.eQ=function(v,E,n){n=n===void 0?{}:n;var f=Xu;_.Sp("ytLoggingEventsDefaultDisabled",!1)&&Xu===Xu&&(f=null);Qs(v,E,f,n)};
_.Fu=function(){if(_.Z("web_fp_via_jspb")){var v=!0;v=v===void 0?!1:v;var E=CjX;CjX=[];if(E){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,v?Qs(n.payloadName,n.payload,Xu,n.options):_.eQ(n.payloadName,n.payload,n.options)}IjG(void 0,!0);if(!_.Z("web_fp_via_jspb_and_json"))return}IjG(void 0,!1)};
Mgy=function(v,E){var n;if((n=E)==null?0:n.componentStack)return E;if(v=v.componentStack)E||(E={}),E.componentStack=v;return E};
SZQ=function(){_.I5(_.MX("ERRORS")||[],function(v){_.mb.apply(null,v)});
_.Ck("ERRORS",[])};
_.bi=function(v){_.mb(v)};
_.li=function(v){_.mb(v,"WARNING")};
Ud$=function(v){v instanceof Error?_.mb(v):(v=_.oF(v)?JSON.stringify(v):String(v),v=new _.yc(v),v.name="RejectedPromiseError",_.li(v))};
qZ1=function(v,E,n,f,x,y){E=E===void 0?"Unknown file":E;n=n===void 0?0:n;var Q=!1,e=ZVG("log_window_onerror_fraction");if(e&&Math.random()<e)Q=!0;else{e=document.getElementsByTagName("script");for(var F=0,b=e.length;F<b;F++)if(e[F].src.indexOf("/debug-")>0){Q=!0;break}}Q&&(Q=!1,x?Q=!0:(typeof v==="string"?e=v:ErrorEvent&&v instanceof ErrorEvent?(Q=!0,e=v.message,E=v.filename,n=v.lineno,f=v.colno):(e="Unknown error",E="Unknown file",n=0),x=new _.yc(e),x.name="UnhandledWindowError",x.message=e,x.fileName=
E,x.lineNumber=n,isNaN(f)?delete x.columnNumber:x.columnNumber=f),_.Z("wiz_enable_component_stack_propagation_killswitch")||(y=Mgy(x,y)),y&&_.ss(x,y),Q?_.mb(x):_.li(x))};
_.mb=function(v,E,n,f,x,y,Q,e){y=y===void 0?{}:y;y.name=n||_.MX("INNERTUBE_CONTEXT_CLIENT_NAME",1);y.version=f||_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION");n=y;E=E===void 0?"ERROR":E;Q=Q===void 0?!1:Q;E=E===void 0?"ERROR":E;Q=Q===void 0?!1:Q;if(v&&(v.hasOwnProperty("level")&&v.level&&(E=v.level),_.Z("console_log_js_exceptions")&&(f=[],f.push("Name: "+v.name),f.push("Message: "+v.message),v.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(v.params)),v.hasOwnProperty("args")&&f.push("Error args: "+
JSON.stringify(v.args)),f.push("File name: "+v.fileName),f.push("Stacktrace: "+v.stack),f=f.join("\n"),window.console.log(f,v)),!(JZL>=5))){f=[];x=_.p(KG1);for(y=x.next();!y.done;y=x.next()){y=y.value;try{y()&&f.push(y())}catch(Y){}}f=[].concat(_.s8(ddX),_.s8(f));var F=IaX(v);x=F.message||"Unknown Error";y=F.name||"UnknownError";var b=F.stack||v.stacktrace||"Not available";if(b.startsWith(y+": "+x)){var l=b.split("\n");l.shift();b=l.join("\n")}l=F.lineNumber||"Not available";F=F.fileName||"Not available";
var r=0;if(v.hasOwnProperty("args")&&v.args&&v.args.length)for(var a=0;a<v.args.length&&!(r=bG$(v.args[a],"params."+a,n,r),r>=500);a++);else if(v.hasOwnProperty("params")&&v.params){var M=v.params;if(typeof v.params==="object")for(a in M){if(M[a]){var U="params."+a,d=EH(M[a]);n[U]=d;r+=U.length+d.length;if(r>500)break}}else n.params=EH(M)}if(f.length)for(a=0;a<f.length&&!(r=bG$(f[a],"params.context."+a,n,r),r>=500);a++);navigator.vendor&&!n.hasOwnProperty("vendor")&&(n["device.vendor"]=navigator.vendor);
a={message:x,name:y,lineNumber:l,fileName:F,stack:b,params:n,sampleWeight:1};n=Number(v.columnNumber);isNaN(n)||(a.lineNumber=a.lineNumber+":"+n);if(v.level==="IGNORED")v=0;else a:{v=YZA();n=_.p(v.messageWeights);for(f=n.next();!f.done;f=n.next())if(f=f.value,a.message&&a.message.match(f.messageRegExp)){v=f.weight;break a}v=_.p(v.callbackWeights);for(n=v.next();!n.done;n=v.next())if(n=n.value,n.callback(a)){v=n.weight;break a}v=1}a.sampleWeight=v;v=_.p(hYI);for(n=v.next();!n.done;n=v.next())if(n=
n.value,n.patternsForType[a.name])for(x=_.p(n.patternsForType[a.name]),f=x.next();!f.done;f=x.next())if(y=f.value,f=a.message.match(y.regexp)){a.params["params.error.original"]=f[0];x=y.groups;y={};for(l=0;l<x.length;l++)y[x[l]]=f[l+1],a.params["params.error."+x[l]]=f[l+1];a.message=n.messageFn(y);break}a.params||(a.params={});v=YZA();a.params["params.errorServiceSignature"]="msg="+v.messageWeights.length+"&cb="+v.callbackWeights.length;a.params["params.serviceWorker"]="false";_.n1.document&&_.n1.document.querySelectorAll&&
(a.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new rt(AZI,"sample")).constructor!==rt&&(a.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(a);if(a.sampleWeight!==0&&!VgF.has(a.message)){if(Q&&_.Z("web_enable_error_204"))DdX(E===void 0?"ERROR":E,a);else{E=E===void 0?"ERROR":E;E==="ERROR"?(HRL.publish("handleError",a),_.Z("record_app_crashed_web")&&gzy===0&&a.sampleWeight===1&&(gzy++,Q={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Z("report_client_error_with_app_crash_ks")||(Q.systemHealth={crashData:{clientError:{logMessage:{message:a.message}}}}),_.eQ("appCrashed",Q)),NJG++):E==="WARNING"&&HRL.publish("handleWarning",a);if(_.Z("kevlar_gel_error_routing")){Q=E;e=e===void 0?{}:e;b:{v=_.p(u$L);for(n=v.next();!n.done;n=v.next())if(rd(n.value.toLowerCase())){v=!0;break b}v=!1}if(v)e=void 0;else{n={stackTrace:a.stack};a.fileName&&(n.filename=a.fileName);v=a.lineNumber&&a.lineNumber.split?a.lineNumber.split(":"):[];v.length!==
0&&(v.length!==1||isNaN(Number(v[0]))?v.length!==2||isNaN(Number(v[0]))||isNaN(Number(v[1]))||(n.lineNumber=Number(v[0]),n.columnNumber=Number(v[1])):n.lineNumber=Number(v[0]));v={level:"ERROR_LEVEL_UNKNOWN",message:a.message,errorClassName:a.name,sampleWeight:a.sampleWeight};Q==="ERROR"?v.level="ERROR_LEVEL_ERROR":Q==="WARNING"&&(v.level="ERROR_LEVEL_WARNNING");n={isObfuscated:!0,browserStackInfo:n};e.pageUrl=window.location.href;e.kvPairs=[];_.MX("FEXP_EXPERIMENTS")&&(e.experimentIds=_.MX("FEXP_EXPERIMENTS"));
f=_.MX("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!ZVG("web_disable_gel_stp_ecatcher_killswitch")&&f)for(x=_.p(Object.keys(f)),y=x.next();!y.done;y=x.next())y=y.value,e.kvPairs.push({key:y,value:String(f[y])});if(f=a.params)for(x=_.p(Object.keys(f)),y=x.next();!y.done;y=x.next())y=y.value,e.kvPairs.push({key:"client."+y,value:String(f[y])});f=_.MX("SERVER_NAME");x=_.MX("SERVER_VERSION");f&&x&&(e.kvPairs.push({key:"server.name",value:f}),e.kvPairs.push({key:"server.version",value:x}));e={errorMetadata:e,
stackTrace:n,logMessage:v}}e&&(_.eQ("clientError",e),(Q==="ERROR"||_.Z("errors_flush_gel_always_killswitch"))&&_.Fu())}_.Z("suppress_error_204_logging")||DdX(E,a)}try{VgF.add(a.message)}catch(Y){}JZL++}}};
DdX=function(v,E){var n=E.params||{};v={urlParams:{a:"logerror",t:"jserror",type:E.name,msg:E.message.substr(0,250),line:E.lineNumber,level:v,"client.name":n.name},postParams:{url:_.MX("PAGE_NAME",window.location.href),file:E.fileName},method:"POST"};n.version&&(v["client.version"]=n.version);if(v.postParams){E.stack&&(v.postParams.stack=E.stack);E=_.p(Object.keys(n));for(var f=E.next();!f.done;f=E.next())f=f.value,v.postParams["client."+f]=n[f];if(n=_.MX("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(E=
_.p(Object.keys(n)),f=E.next();!f.done;f=E.next())f=f.value,v.postParams[f]=n[f];(n=_.MX("LAVA_VERSION"))&&(v.postParams["lava.version"]=n);n=_.MX("SERVER_NAME");E=_.MX("SERVER_VERSION");n&&E&&(v.postParams["server.name"]=n,v.postParams["server.version"]=E)}_.tM(_.MX("ECATCHER_REPORT_HOST","")+"/error_204",v)};
_.jjE=function(v,E){E=E===void 0?"ERROR":E;var n=n===void 0?{}:n;var f=_.JM("ytbin.polymer.shared.lib.tampering.info");f&&(f=f())&&(n["params.tamperingInfo"]=f.sort().join(","));_.mb(v,E,void 0,void 0,!0,n)};
_.ss=function(v){var E=_.rV.apply(1,arguments);v.args||(v.args=[]);Array.isArray(v.args)&&v.args.push.apply(v.args,_.s8(E))};
OR9=function(v){v.level="IGNORED"};
kGN=function(v,E){ddX.push(v);E();ddX.pop()};
ag=function(v,E){for(var n in E)E.hasOwnProperty(n)&&(v=_.PP(v,n,E[n]));return v};
_.WGG=function(v,E,n){n=n===void 0?!1:n;if(!v)return null;if(v.adInfoDialogEndpoint||v.backstageImageUploadEndpoint||v.confirmDialogEndpoint||v.clientActionEndpoint||v.createBackstagePostDialogEndpoint||v.createCommentReplyDialogEndpoint||v.flowEndpoint||v.guideBuilderEndpoint||v.liveChatDialogEndpoint||v.modalEndpoint||v.openPopupAction||v.shareEndpoint||v.shareEntityEndpoint||v.showLiveChatItemEndpoint||v.subscriptionManagerEndpoint||v.unlimitedCreateFamilyEndpoint||v.unlimitedFamilyFlowEndpoint||
v.updateCommentDialogEndpoint||v.updateCommentReplyDialogEndpoint||v.userFeedbackEndpoint||v.videoEditorEndpoint||v.ypcCancelSurveyEndpoint)return E=_.WG("polymer_report_client_url_requested_rate"),!n&&Math.random()<E&&_.li(new _.yc("urlForEndpoint used on client endpoint",v)),null;var f=_.WG("polymer_report_missing_web_navigation_endpoint_rate");if(v.liveChatEndpoint||v.liveChatReplayEndpoint)f=0;if(!v.commandMetadata&&!v.clickTrackingParams&&Math.random()<f){var x={},y;for(y in v)x[y]="1";_.li(new _.yc("Missing navigation data",
x))}x="";if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url)x=v.commandMetadata.webCommandMetadata.url;else if(v.searchEndpoint)Math.random()<f&&_.li(new _.yc("Should not manually handle search",v)),x="/results?search_query="+encodeURIComponent(v.searchEndpoint.query).replace(/%20/g,"+"),v.searchEndpoint.params&&(x+="&sp="+v.searchEndpoint.params);else if(v.watchEndpoint)Math.random()<f&&_.li(new _.yc("Should not manually handle watch",v)),x="/watch?v="+
v.watchEndpoint.videoId,v.watchEndpoint.playlistId&&(x+="&list="+v.watchEndpoint.playlistId),v.watchEndpoint.index&&(x+="&index="+v.watchEndpoint.index),v.watchEndpoint.startTimeSeconds&&(x+="&t="+v.watchEndpoint.startTimeSeconds);else if(v.browseEndpoint)f=v.browseEndpoint.browseId,(y=v.browseEndpoint.canonicalBaseUrl)?x=y:f&&(x=f.substr(0,2),x=x==="FE"?f==="FEwhat_to_watch"?"/":f==="FEmy_videos"?"/my_videos":"/feed/"+f.substr(2):x==="VL"?"/playlist?list="+f.substr(2):"/channel/"+f),x&&v.browseEndpoint.query&&
(x=ag(x+"/search",{query:v.browseEndpoint.query})),x&&v.browseEndpoint.params&&(x=ag(x,{params:v.browseEndpoint.params}));else{if(v.urlEndpoint)return v.urlEndpoint.url;v.signInEndpoint?(x="https://accounts.google.com/ServiceLogin",f={},_.sh.extend(f,E||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),E=f):v.uploadEndpoint?x="//www.youtube.com/upload":v.liveChatEndpoint?(x=v.liveChatEndpoint,f=_.sh.clone(x),_.oF(x.continuation)&&(y=Object.keys(x.continuation)[0],
f.continuation=x.continuation[y].continuation),x=ag("/youtubei/v1/live_chat/get_live_chat",f)):v.liveChatReplayEndpoint?(x=_.sh.clone(v.liveChatReplayEndpoint),x.currentPlayerState&&(_.sh.extend(x,x.currentPlayerState),delete x.currentPlayerState),x=ag("/youtubei/v1/live_chat/get_live_chat_replay",x)):v.liveChatItemContextMenuEndpoint?x=ag("/youtubei/v1/live_chat/get_item_context_menu",v.liveChatItemContextMenuEndpoint):v.liveChatPurchaseMessageEndpoint?x=ag("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
v.liveChatPurchaseMessageEndpoint):v.openSuperStickerBuyFlowCommand?x=ag("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",v.openSuperStickerBuyFlowCommand):v.videoEditEndpoint?x=ag("/edit",{video_id:v.videoEditEndpoint.videoId}):v.liveDashboardEndpoint?x=v.liveDashboardEndpoint.videoId?ag("/live_dashboard",{v:v.liveDashboardEndpoint.videoId}):"/live_dashboard":v.signalNavigationEndpoint&&v.signalNavigationEndpoint.signal&&v.signalNavigationEndpoint.signal==="WEBCAM"?x="/webcam":v.getPdgBuyFlowCommand&&
(x=ag(v.getPdgBuyFlowCommand.buyflowApiPath,{params:v.getPdgBuyFlowCommand.params}))}return x||n?ag(x,E||{}):(_.li(new _.yc("Error: Can't construct url for endpoint","keys:"+Object.keys(v).sort().join(","),v)),null)};
$dX=function(v){if(v){if(v.browseEndpoint)return!!v.browseEndpoint.nofollow;if(v.watchEndpoint)return!!v.watchEndpoint.nofollow;if(v.urlEndpoint)return!!v.urlEndpoint.nofollow}return!1};
_.GGE=function(v,E){var n=E+v,f=LGA.get(n);if(f)return f;v=E+"-"+v.replace(/([A-Z])/g,"-$1").toLowerCase();LGA.set(n,v);return v};
TJs=function(v){var E=_.a5(v,"action")||_.a5(v,"command")||_.a5(v,"endpoint");if(!E)return null;E=_.GGE(E,"yt");_.C(v,_.Z4)&&(E+="-"+_.C(v,_.Z4).signal.toLowerCase().replace(/_/g,"-"));return E};
tgN=function(v){try{var E=Object.keys(v)}catch(x){return[]}for(var n=0;n<E.length;n++){var f=E[n];if(iRI.test(f)||zYG.test(f))return RYQ(v[f])}return[]};
RYQ=function(v){return v.command?[v.command]:v.onExecutionAction?[v.onExecutionAction]:v.onResponseReceivedCommand?[v.onResponseReceivedCommand]:v.updateFlowCommand?[v.updateFlowCommand]:v.clientActions?v.clientActions:v.action?[v.action]:v.actions||v.commands||v.onResponseReceivedActions||v.onResponseReceivedCommands||v.onResponseReceivedEndpoints||[]};
v_A=function(v,E){E=E===void 0?!1:E;var n=_.P().resolve(_.jp(SQ));n||(n=new BJ1,_.P().addProvider({provide:SQ,useValue:n}));return n&&v&&!_.sh.isEmpty(v)?n.getUrl(v,E):""};
E_9=function(v,E,n){n=n===void 0?"":n;if(E){v.data=E;var f=v_A(E);f?(Cc(v,f),$dX(E)||!NX(f)?v.rel="nofollow":v.removeAttribute("rel"),_.C(E,_.Us)&&_.C(E,_.Us).target==="TARGET_NEW_WINDOW"?v.target="_blank":n?v.target=n:v.removeAttribute("target")):(v.removeAttribute("href"),v.removeAttribute("rel"),v.removeAttribute("target"))}};
_.dt=function(v,E){var n=VK;if(pp())n_E(v,function(){var y=_.rV.apply(0,arguments);la(n,function(){E.apply(null,_.s8(y))})});
else{var f=_.qw.getInstance(),x=PG(E);Xo(function(){x.value=E});
_.l5(function(){var y={},Q=_.Jo(f,(y[v]=function(){var e=_.rV.apply(0,arguments);la(n,function(){x.value.apply(x,_.s8(e))})},y));
return function(){var e={};_.K3(f,(e[v]="",e),Q)}})}};
_.Ig=function(v){return pp()?o_N(v):fgI(v)};
_.Y$=function(v){return pp()?o_N(v):fgI(v)};
fgI=function(v){return rB(function(){return o_N(v)})};
o_N=function(v){var E=pZQ(function(n){E.value&&E.value===n||(E.__count=E.__count?E.__count+1:1);E.value=n;var f=function(){var x=OV(null);try{return v==null?void 0:v(n)}finally{OV(x)}}();
return function(){f==null||f();E.value=null}});
return E};
xqG=function(v){var E=VK,n=cf;return{getFn:function(){return function(f){E.isDisposed||Qh(function(){return Rc(function(){return v(f)})},{stack:n})!==!0&&f.stopPropagation()}}}};
piI=function(v,E){if(pp())cqE(v,function(f){var x=OV(null);try{E(f)}finally{OV(x)}});
else{var n=PG(E);Xo(function(){n.value=E});
_.l5(function(){var f=v.value;if(f){var x=function(y){n.value(y)};
f.addEventListener("yt-service-request-sent",x,void 0);return function(){f?f.removeEventListener("yt-service-request-sent",x,void 0):yqA(v)}}yqA(v)})}};
yqA=function(v){var E;(E=uY.handleError)==null||E.call.apply(E,[uY].concat(_.s8(sB(QSE.LOG_NULL_EL_REF_VALUE(),v.__expectedTagName,2))))};
ho=function(v){if(typeof v.children==="function")return v.children(),null;v=_.p(v.children);for(var E=v.next();!E.done;E=v.next())E=E.value,E();return null};
QXX=function(v){var E;return((E=v.prototype)==null?void 0:E.render)===void 0};
XiG=function(v){v=v.items.map(v.children);return v.length>0&&typeof v[0]==="string"?v.join(""):v};
Fcs=function(v,E,n){n=n===void 0?!1:n;Qh(function(){return eSE(v,E,n)})};
eSE=function(v,E,n){n=((n===void 0?0:n)?mqX:wiX)(v,function(){Ao(E)});
return n===null?v:n};
Ao=function(v){if(v!==void 0&&v!==null)if(v instanceof tv)for(var E=Cp;MB()!=null&&LbQ in MB()&&E.contains(MB());)qB();else if(Array.isArray(v))for(E=_.p(v),v=E.next();!v.done;v=E.next())Ao(v.value);else if(v instanceof oC||"function"==typeof _.Na&&v instanceof _.Na)Vh(v.toString());else if(OB(v)){if(MB()!==v){var n,f;E=(f=(n=cf)==null?void 0:n.name)!=null?f:"unknown";throw Error("ec`"+v.tagName+"`"+E);}qB()}else if(v!=null&&v.contentKind===$7||v instanceof Ma)for(E=mwL(v),E=Array.from(E.childNodes),
E=_.p(E),v=E.next();!v.done;v=E.next())Cp.appendChild(v.value),qB();else if(X_(v)&&(v=v.toString()),n=typeof v,n==="boolean"||n==="number"||n==="string")Vh(v);else if(typeof v==="function"){E=Cp;var x=MB();x&&(x._isSignalTextNode||x._isSafeOrSanitizedHtmlNode)||Dw9(E,x,v);qB()}else if(v.type===XiG)Ao(v.type(Object.assign({},v.props,{children:v.children[0]})));else{EO.beforeVisit(v);if(typeof v.type==="string"){a:{v.__open||G2A(v.type,v.props.idomKey);x=Cp;for(E in v.props)if(v.props[E]!==bhA){var y=
v.props[E];n=I0;n.push(E);n.push(y)}E=uY.attributes;E=E===void 0?Vs:E;y=Cp;n=ZY(y);v$N(y,n,E);VQI(x,v.props,!0);if((v.props.skip||v.props.skipchildren)&&Cp.hasChildNodes())Kp();else{if(v.type==="style"&&a4E(v.children)===null){Kp();E=void 0;break a}Ao(v.children)}ThG();v.__open&&(v.__open=!1);yo1(x,v.props);E=x}return E}if(v.type===_.gF)Ao(v.children);else if(!lgs(v)){E=v;try{sXQ(E)}catch(Q){v=Q,(y=uY.handleError)==null||y.call.apply(y,[uY].concat(_.s8(sB(v,(x=E.type)==null?void 0:x.TAG_NAME))))}E.__open&&
(ThG(),E.__open=!1)}}};
rqI=function(v,E){var n;QXX(v)?n=new o5(E,v):n=new v(E);n.JSC$8160___type=v;n.__updateContext={nextState:n.state,isForced:!1};return n};
sXQ=function(v){var E=v.type,n=E.TAG_NAME;if(E===ho)v.props.children=v.children,E(v.props);else{v.children.length>0&&(v.props.children=v.children);var f;(f=v.props).idomKey||(f.idomKey=E);if(n){var x=G2A(n,v.props.idomKey);v.__open=!0;var y=x.__instance}y||(y=rqI(E,v.props),y.props=null,x&&(x.__instance=y,y.el=x));var Q;n=((Q=y.__updateContext)!=null?Q:{nextState:y.state,isForced:!1}).nextState;y.__updateContext=void 0;E.getDerivedStateFromProps&&(n=E.getDerivedStateFromProps(v.props,n));y.props=
v.props;y.state=n;Q=function(){var e=y;EO.beforeRender(e);var F=e.render(e.props);EO.afterRender(e,F);F?(e.props.idomKey&&(F.props.idomKey=e.props.idomKey),e=F):e=void 0;if(F=e)if(F.__open=v.__open,e=Ao(F),v.__open=F.__open,!E.TAG_NAME)if(e)E.TAG_NAME=e.tagName.toLowerCase(),e.__instance=y,y.el=e;else{var b;if((b=y.hooks)==null?0:b.length){var l;(l=uY.handleError)==null||l.call.apply(l,[uY].concat(_.s8(sB(Error("kd")))))}}y.didPatch();EO.didPatch(y)};
(n=y.functionComponent)?eRI({component:n,debugInstance:y.props.debugInstance,fn:Q}):Q()}};
lgs=function(v){var E=v.type;if(!QXX(E)||E===ho||E.componentType===yh)return!1;v.props.children=v.children.length>1?v.children:v.children[0];var n,f=(n=v.props.idomKey)!=null?n:v.type,x;if(MB()&&((x=MB()[ia])==null?void 0:x.key)===f){var y=MB(),Q=y[ia];if(!Q)throw Error("dc`"+y.tagName);var e;(e=Q.updateSignalsFromIdomProps)==null||e.call(Q,v.props);PGE(Q);return!0}if(agX.has(E.name))throw e=E.name,E=(Q=(y=cf)==null?void 0:y.name)!=null?Q:"unknown",Error("cc`"+e+"`"+E);uus(v.type,v.props,v.children);
v.props.renderedFromIdom=!0;(e=eRI({component:v.type,debugInstance:v.props.debugInstance,fn:function(){return dw1(v.type,v.props)}}))&&Zh1(e);
return!0};
CGs=function(v){for(var E=0;E<R0(v).length;E++)qB()};
PGE=function(v){var E=MwN();if(E)CGs(E);else for(var n=0;n<v.numNodes;n++)(E=MwN())?CGs(E):qB()};
MwN=function(){var v;return(v=MB()[ia])==null?void 0:v.sourceDynamicRange};
Zh1=function(v){v=QgF(v);v=Array.isArray(v)?v:[v];v=_.p(v);for(var E=v.next();!E.done;E=v.next())Cp.insertBefore(E.value,MB()),qB()};
SdL=function(v){var E=Ysy(),n=rB(function(){return{value:typeof v==="function"?v():v}});
return[n.value,function(f){if(nk!==null){var x;(x=uY.handleError)==null||x.call.apply(x,[uY].concat(_.s8(sB(Error("ld")))))}n.value=typeof f==="function"?f(n.value):f;E.__updateContext={nextState:E.state,isForced:!0};f=DB(E.effectContext);x=NB(!1);try{if(E.el){var y,Q={},e=(Q.props=E.props,Q.type=E.JSC$8160___type,Q.children=(y=E.props.children)!=null?y:[],Q[Hf]=!0,Q);try{Fcs(E.el,e,!0)}catch(l){var F,b;(b=uY.handleError)==null||b.call.apply(b,[uY].concat(_.s8(sB(l,(F=E.JSC$8160___type)==null?void 0:
F.TAG_NAME))))}}}finally{NB(x),DB(f)}}]};
D4=function(v,E){var n=VK,f=function(x){la(n,function(){E(x)})};
window.addEventListener(v,f,void 0);_.Fp(function(){window.removeEventListener(v,f,void 0)})};
_.gt=function(v,E){var n=VK;_.l5(function(){var f,x=(f=E.observer)!=null?f:_.P().resolve(HP);if(f=v.value){var y=UqG(f),Q=[];E.showOption&&Q.push(x.observe(f,function(){la(n,function(){E.visibilityCallback(!0)})},E.showOption));
E.hideOption&&Q.push(x.observe(f,function(){la(n,function(){E.visibilityCallback(!1)})},E.hideOption));
E.prescanOption&&E.prescanCallback&&Q.push(x.observe(f,function(){la(n,function(){E.prescanCallback()})},E.prescanOption));
var e;y.visibilityMonitorKeys=((e=y.visibilityMonitorKeys)!=null?e:[]).concat(Q)}})};
UqG=function(v){var E;return(E=v.polymerController)!=null?E:v};
_.Nw=function(v){v.componentType=yh};
dq1=function(v,E){var n=qd$;return _.w(_.gF,null,A7(uY.enableLazyTsx,function(){return _.w(JqI,{id:n,value:v,children:E})},function(){var f=KcN(n,v);
gC(f);f=DB(f);try{return E()}finally{DB(f)}}))};
JqI=function(v){var E=v.children;v=KcN(v.id,v.value);gC(v);v=DB(v);try{return _.w(_.gF,null,Bf(E()))}finally{DB(v)}};
KcN=function(v,E){return Object.assign(Object.create(IgA),{id:v,contextValue:E})};
YdQ=function(v){var E,n=VK;_.ea(function(){var f=DB(n),x=NB(!E);try{if(E)Fcs(E,v.children(),!0);else if(E=Bf(v.children()),!(E instanceof Element))throw Error("md");}finally{NB(x),DB(f)}});
return E};
hSA=function(v){var E,n=wF(function(){var f=NB(!0);try{E=R0(v())}finally{NB(f)}},!1);
return[E,n]};
Vwy=function(v){v=v.buf.charCodeAt(v.pos++);return AqA[v]};
ui=function(v){var E=0,n=0;do{var f=Vwy(v);E|=(f&31)<<n;n+=5}while(f&32);return E<0?E+4294967296:E};
g_N=function(v,E,n){Dq$(v,E);v[E][HhQ].unshift(n)};
Dq$=function(v,E){if(!v[E]||!v[E][HhQ]){var n=v[E],f=n?[n]:[];v[E]=function(){for(var x=_.p(f),y=x.next();!y.done;y=x.next())y.value.apply(this,arguments)};
v[E][HhQ]=f}};
NWN=function(v){if(!v)return[];var E=[];v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,Array.isArray(n)?E.push.apply(E,_.s8(NWN(n))):E.push(n);return E};
_.Os=function(v,E){if(v&&um1.test(v)||v==="//")return v;if(jX$===void 0){jX$=!1;try{var n=new URL("b","http://a");n.pathname="c%20d";jX$=n.href==="http://a/c%20d"}catch(f){}}E||(E=document.baseURI||window.location.href);if(jX$)try{return(new URL(v,E)).href}catch(f){return v}jQ||(jQ=document.implementation.createHTMLDocument("temp"),jQ.base=jQ.createElement("base"),jQ.head.appendChild(jQ.base),jQ.anchor=jQ.createElement("a"),jQ.body.appendChild(jQ.anchor));jQ.base.href=E;jQ.anchor.href=v;return jQ.anchor.href||
v};
ky9=function(v,E){return v.replace(OhL,function(n,f,x,y){return f+"'"+_.Os(x.replace(/["']/g,""),E)+"'"+y})};
WcL=function(v){return v.substring(0,v.lastIndexOf("/")+1)};
Gy1=function(){$q9=!1;for(var v=k$.length,E=0;E<v;E++){var n=k$[E];if(n)try{n()}catch(f){setTimeout(function(){throw f;})}}k$.splice(0,v);
Lc1+=v};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(v){console.log("["+v.is+"]: registered")};
ih$=function(v){TWX.push(v)};
WP=function(v){return zSX[v]||(zSX[v]=v.indexOf("-")<0?v:v.replace(RS$,function(E){return E[1].toUpperCase()}))};
$$=function(v){return zSX[v]||(zSX[v]=v.replace(twy,"-$1").toLowerCase())};
BWE=function(v,E){var n=E.parentInfo&&BWE(v,E.parentInfo);if(n)for(v=n.firstChild,n=0;v;v=v.nextSibling){if(E.parentIndex===n++)return v}else return v};
vaX=function(v,E){v=v._methodHost||v;return function(n){if(v[E])v[E](n,n.detail);else console.warn("listener method `"+E+"` not defined")}};
L3=function(v){return v.indexOf(".")>=0};
G1=function(v){var E=v.indexOf(".");return E===-1?v:v.slice(0,E)};
Ea1=function(v,E){return v.indexOf(E+".")===0};
T1=function(v,E){return E.indexOf(v+".")===0};
ii=function(v,E,n){return E+n.slice(v.length)};
naE=function(v,E){return v===E||Ea1(v,E)||T1(v,E)};
z1=function(v){if(Array.isArray(v)){for(var E=[],n=0;n<v.length;n++)for(var f=v[n].toString().split("."),x=0;x<f.length;x++)E.push(f[x]);return E.join(".")}return v};
oa1=function(v){return Array.isArray(v)?z1(v).split("."):v.toString().split(".")};
Rg=function(v,E,n){E=oa1(E);for(var f=0;f<E.length;f++){if(!v)return;v=v[E[f]]}n&&(n.path=E.join("."));return v};
fkQ=function(v,E,n){var f=oa1(E),x=f[f.length-1];if(f.length>1){for(E=0;E<f.length-1;E++)if(v=v[f[E]],!v)return;v[x]=n}else v[E]=n;return f.join(".")};
xly=function(v,E,n){var f=v[E];if(!f)f=v[E]={};else if(!v.hasOwnProperty(E)&&(f=v[E]=Object.create(v[E]),n))for(var x in f)for(v=f[x],E=f[x]=Array(v.length),n=0;n<v.length;n++)E[n]=v[n];return f};
BP=function(v,E,n,f,x,y){if(E){var Q=!1,e=to++,F;for(F in n){var b=x?G1(F):F;if(b=E[b])for(var l=0,r=b.length,a=void 0;l<r&&(a=b[l]);l++)a.info&&a.info.lastRun===e||x&&!cFI(F,a.trigger)||(a.info&&(a.info.lastRun=e),a.fn(v,F,n,f,a.info,x,y),Q=!0)}return Q}return!1};
cFI=function(v,E){if(E){var n=E.name;return n==v||!(!E.structured||!Ea1(n,v))||!(!E.wildcard||!T1(n,v))}return!0};
yFI=function(v,E,n,f,x){E=typeof x.method==="string"?v[x.method]:x.method;n=x.property;E?E.call(v,v.__data[n],f[n]):x.dynamicFn||console.warn("observer method `"+x.method+"` not defined")};
pTN=function(v,E,n,f){n={value:n,queueProperty:!0};f&&(n.path=f);(0,_.vZ)(v).dispatchEvent(new CustomEvent(E,{detail:n}))};
QuE=function(v,E,n,f,x,y){y=(f=(y?G1(E):E)!=E?E:null)?Rg(v,f):v.__data[E];f&&y===void 0&&(y=n[E]);pTN(v,x.eventName,y,f)};
XTX=function(v,E,n,f,x){n=v.__data[E];E2&&(n=E2(n,x.attrName,"attribute",v));v._propertyToAttribute(E,x.attrName,n)};
FIA=function(v){var E=v.constructor.__orderedComputedDeps;if(!E){E=new Map;for(var n=v.__computeEffects,f=e6F(v),x=f.counts,y=f.ready,Q=f.total;f=y.shift();)E.set(f,E.size),(f=n[f])&&f.forEach(function(e){e=e.info.methodInfo;--Q;--x[e]===0&&y.push(e)});
Q!==0&&console.warn("Computed graph for "+v.localName+" incomplete; circular?");v.constructor.__orderedComputedDeps=E}return E};
e6F=function(v){var E=v.__computeInfo,n={};v=v.__computeEffects;var f=[],x=0,y;for(y in E){var Q=E[y];x+=n[y]=Q.args.filter(function(F){return!F.literal}).length+(Q.dynamicFn?1:0)}for(var e in v)E[e]||f.push(e);
return{counts:n,ready:f,total:x}};
wTE=function(v,E,n,f,x){E=mlF(v,E,n,f,x);if(E===nV)return!1;x=x.methodInfo;if(v.__dataHasAccessor&&v.__dataHasAccessor[x])return v._setPendingProperty(x,E,!0);v[x]=E;return!1};
su$=function(v,E,n,f,x,y,Q){n.bindings=n.bindings||[];f={kind:f,target:x,parts:y,literal:Q,isCompound:y.length!==1};n.bindings.push(f);f.target&&f.kind!="attribute"&&f.kind!="text"&&!f.isCompound&&f.parts[0].mode==="{"&&(n=f.parts[0],y=n.negate,f.listenerEvent=n.event||$$(x)+"-changed",f.listenerNegate=y);x=E.nodeInfoList.length;for(n=0;n<f.parts.length;n++){var e=f.parts[n];e.compoundIndex=n;y=v;Q=E;var F=f,b=e,l=x;if(!b.literal)if(F.kind==="attribute"&&F.target[0]==="-")console.warn("Cannot set attribute "+
F.target+' because "-" is not a valid attribute starting character');else for(e=b.dependencies,F={index:l,binding:F,part:b,evaluator:y},b=0;b<e.length;b++)l=e[b],typeof l=="string"&&(l=b7F(l),l.wildcard=!0),y._addTemplatePropertyEffect(Q,l.rootProperty,{fn:lkX,info:F,trigger:l})}};
lkX=function(v,E,n,f,x,y,Q){Q=Q[x.index];var e=x.binding,F=x.part;y&&F.source&&E.length>F.source.length&&e.kind=="property"&&!e.isCompound&&Q.__isPropertyEffectsClient&&Q.__dataHasAccessor&&Q.__dataHasAccessor[e.target]?(n=n[E],E=ii(F.source,e.target,E),Q._setPendingPropertyOrPath(E,n,!1,!0)&&v._enqueueClient(Q)):(E=x.evaluator._evaluateBinding(v,F,E,n,f,y),E!==nV&&(e.isCompound&&(n=Q.__dataCompoundStorage[e.target],n[F.compoundIndex]=E,E=n.join("")),e.kind==="attribute"||e.target!=="textContent"&&
(e.target!=="value"||Q.localName!=="input"&&Q.localName!=="textarea")||(E=E==void 0?"":E),F=E,E2&&(F=E2(F,e.target,e.kind,Q)),e.kind=="attribute"?v._valueToNodeAttribute(Q,F,e.target):(e=e.target,Q.__isPropertyEffectsClient&&Q.__dataHasAccessor&&Q.__dataHasAccessor[e]?Q.__readOnly&&Q.__readOnly[e]||Q._setPendingProperty(e,F)&&v._enqueueClient(Q):v._setUnmanagedPropertyToNode(Q,e,F))))};
rF1=function(v,E,n){if(n.listenerEvent){var f=n.parts[0];v.addEventListener(n.listenerEvent,function(x){var y=n.target,Q=f.source,e=f.negate,F=x.detail,b=F&&F.path;b?(Q=ii(y,Q,b),x=F&&F.value):x=x.currentTarget[y];E.__readOnly&&E.__readOnly[Q]||!E._setPendingPropertyOrPath(Q,e?!x:x,!0,!!b)||F&&F.queueProperty||E._invalidateProperties()})}};
PSX=function(v,E,n,f,x,y){y=E.static||y&&(typeof y!=="object"||y[E.methodName]);x={methodName:E.methodName,args:E.args,methodInfo:x,dynamicFn:y};for(var Q=0,e=void 0;Q<E.args.length&&(e=E.args[Q]);Q++)e.literal||v._addPropertyEffect(e.rootProperty,n,{fn:f,info:x,trigger:e});y&&v._addPropertyEffect(E.methodName,n,{fn:f,info:x});return x};
mlF=function(v,E,n,f,x){f=v._methodHost||v;var y=f[x.methodName];if(y)return v=v._marshalArgs(x.args,E,n),v===nV?nV:y.apply(f,v);x.dynamicFn||console.warn("method `"+x.methodName+"` not defined")};
akL=function(v){for(var E="",n=0;n<v.length;n++)E+=v[n].literal||"";return E};
MSy=function(v){if(v=v.match(/([^\s]+?)\(([\s\S]*)\)/)){var E={methodName:v[1],static:!0,args:Z79};return v[2].trim()?CSE(v[2].replace(/\\,/g,"&comma;").split(","),E):E}return null};
CSE=function(v,E){E.args=v.map(function(n){n=b7F(n);n.literal||(E.static=!1);return n},this);
return E};
b7F=function(v){v=v.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var E={name:v,value:"",literal:!1},n=v[0];n==="-"&&(n=v[1]);n>="0"&&n<="9"&&(n="#");switch(n){case "'":case '"':E.value=v.slice(1,-1);E.literal=!0;break;case "#":E.value=Number(v),E.literal=!0}E.literal||(E.rootProperty=G1(v),E.structured=L3(v),E.structured&&(E.wildcard=v.slice(-2)==".*",E.wildcard&&(E.name=v.slice(0,-2))));return E};
SII=function(v,E,n){v=Rg(v,n);v===void 0&&(v=E[n]);return v};
Ul$=function(v,E,n,f){f={indexSplices:f};oS&&!v._overrideLegacyUndefined&&(E.splices=f);v.notifyPath(n+".splices",f);v.notifyPath(n+".length",E.length);oS&&!v._overrideLegacyUndefined&&(f.indexSplices=[])};
fV=function(v,E,n,f,x,y){Ul$(v,E,n,[{index:f,addedCount:x,removed:y,object:E,type:"splice"}])};
qIQ=function(v){v=ky9((v.body?v.body:v).textContent,v.baseURI);var E=document.createElement("style");E.textContent=v;return E};
dlI=function(v){v=v.trim().split(/\s+/);for(var E=[],n=0;n<v.length;n++)E.push.apply(E,_.s8(KIA(v[n])));return E};
KIA=function(v){var E=x0.import(v);if(!E)return console.warn("Could not find style data in module named",v),[];if(E._styles===void 0){v=[];v.push.apply(v,_.s8(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E)));var n=E.querySelector("template");n&&v.push.apply(v,_.s8(IkX(n,E.assetpath)));E._styles=v}return E._styles};
IkX=function(v,E){if(!v._styles){for(var n=[],f=v.content.querySelectorAll("style"),x=0;x<f.length;x++){var y=f[x],Q=y.getAttribute("include");Q&&n.push.apply(n,_.s8(dlI(Q).filter(function(e,F,b){return b.indexOf(e)===F})));
E&&(y.textContent=ky9(y.textContent,E));n.push(y)}v._styles=n}return v._styles};
YIA=function(v){return(v=x0.import(v))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var E=[];v=v.querySelectorAll("link[rel=import][type~=css]");for(var n=0;n<v.length;n++){var f=v[n];if(f.import){var x=f.import;if((f=f.hasAttribute("shady-unscoped"))&&!x._unscopedStyle){var y=qIQ(x);y.setAttribute("shady-unscoped","");x._unscopedStyle=y}else x._style||(x._style=qIQ(x));E.push(f?x._unscopedStyle:x._style)}}return E};
AFI=function(v){v=v.trim().split(/\s+/);for(var E="",n=0;n<v.length;n++)E+=h6E(v[n]);return E};
h6E=function(v){var E=x0.import(v);if(E&&E._cssText===void 0){var n=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E),f=E.querySelector("template");f&&(n+=VSN(f,E.assetpath));E._cssText=n||null}E||console.warn("Could not find style data in module named",v);return E&&E._cssText||""};
VSN=function(v,E){var n="";v=IkX(v,E);for(E=0;E<v.length;E++){var f=v[E];f.parentNode&&f.parentNode.removeChild(f);n+=f.textContent}return n};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var E="";v=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v);for(var n=0;n<v.length;n++)E+=v[n].textContent;return E};
cZ=function(v,E){return{index:v,removed:[],addedCount:E}};
H7E=function(v,E,n,f){var x=0,y=0,Q=0,e=0,F=Math.min(E-x,f-y);if(x==0&&y==0)a:{for(Q=0;Q<F;Q++)if(v[Q]!==n[Q])break a;Q=F}if(E==v.length&&f==n.length){e=v.length;for(var b=n.length,l=0;l<F-Q&&Dl9(v[--e],n[--b]);)l++;e=l}x+=Q;y+=Q;E-=e;f-=e;if(E-x==0&&f-y==0)return[];if(x==E){for(E=cZ(x,0);y<f;)E.removed.push(n[y++]);return[E]}if(y==f)return[cZ(x,E-x)];F=x;Q=y;f=f-Q+1;e=E-F+1;E=Array(f);for(b=0;b<f;b++)E[b]=Array(e),E[b][0]=b;for(b=0;b<e;b++)E[0][b]=b;for(b=1;b<f;b++)for(l=1;l<e;l++)if(v[F+l-1]===
n[Q+b-1])E[b][l]=E[b-1][l-1];else{var r=E[b-1][l]+1,a=E[b][l-1]+1;E[b][l]=r<a?r:a}F=E.length-1;Q=E[0].length-1;f=E[F][Q];for(v=[];F>0||Q>0;)F==0?(v.push(2),Q--):Q==0?(v.push(3),F--):(e=E[F-1][Q-1],b=E[F-1][Q],l=E[F][Q-1],r=b<l?b<e?b:e:l<e?l:e,r==e?(e==f?v.push(0):(v.push(1),f=e),F--,Q--):r==b?(v.push(3),F--,f=b):(v.push(2),Q--,f=l));v.reverse();E=void 0;F=[];for(Q=0;Q<v.length;Q++)switch(v[Q]){case 0:E&&(F.push(E),E=void 0);x++;y++;break;case 1:E||(E=cZ(x,0));E.addedCount++;x++;E.removed.push(n[y]);
y++;break;case 2:E||(E=cZ(x,0));E.addedCount++;x++;break;case 3:E||(E=cZ(x,0)),E.removed.push(n[y]),y++}E&&F.push(E);return F};
gaX=function(v,E){return H7E(v,v.length,E,E.length)};
Dl9=function(v,E){return v===E};
uwy=function(v){if(v instanceof NQG)return v.value;throw Error("Dd`"+v);};
juX=function(v,E){for(var n in E)n===null?v.style.removeProperty(n):v.style.setProperty(n,E[n])};
O7A=function(v,E){return(v=window.getComputedStyle(v).getPropertyValue(E))?v.trim():""};
LI$=function(v){requestAnimationFrame(function(){kKE?kKE(v):(WIy||(WIy=new Promise(function(E){$lE=E}),document.readyState==="complete"?$lE():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&$lE()})),WIy.then(function(){v&&v()}))})};
i7$=function(v){GK1=v&&v.shimcssproperties?!1:TQy||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
vCX=function(v){if(!(z6Q.indexOf(v)>-1)&&v!=="touchend"&&R6E&&tSX&&BQQ)return{passive:!0}};
fEX=function(v){for(var E=ECE?["click"]:z6Q,n=0,f;n<E.length;n++)f=E[n],v?(nCQ.length=0,document.addEventListener(f,oCX,!0)):document.removeEventListener(f,oCX,!0)};
y2=function(v){var E=v.type;return z6Q.indexOf(E)>-1?E==="mousemove"?(E=v.buttons===void 0?1:v.buttons,v instanceof window.MouseEvent&&!xoX&&(E=cyI[v.which]||0),!!(E&1)):(v.button===void 0?0:v.button)===0:!1};
yyE=function(v){if(v.type==="click"){if(v.detail===0)return!0;var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);if(!E.nodeType||E.nodeType!==Node.ELEMENT_NODE)return!0;E=E.getBoundingClientRect();var n=v.pageX;v=v.pageY;return!(n>=E.left&&n<=E.right&&v>=E.top&&v<=E.bottom)}return!1};
pjI=function(v,E,n){v.movefn=E;v.upfn=n;document.addEventListener("mousemove",E);document.addEventListener("mouseup",n)};
pV=function(v){document.removeEventListener("mousemove",v.movefn);document.removeEventListener("mouseup",v.upfn);v.movefn=null;v.upfn=null};
QVN=function(v,E){for(var n=document.elementFromPoint(v,E),f=n;f&&f.shadowRoot&&!window.ShadyDOM;){var x=f;f=f.shadowRoot.elementFromPoint(v,E);if(x===f)break;f&&(n=f)}return n};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var E=XjE(v);return E.length>0?E[0]:v.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var E=v.type,n=v.currentTarget.__polymerGestures;if(n&&(n=n[E])){if(!v.__polymerGesturesHandled&&(v.__polymerGesturesHandled={},E.slice(0,5)==="touch")){var f=v.changedTouches[0];E==="touchstart"&&v.touches.length===1&&(eU9=f.identifier);if(eU9!==f.identifier)return;R6E||(E==="touchstart"||E==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)}f=
v.__polymerGesturesHandled;if(!f.skip){for(var x=0,y;x<Q2.length;x++)y=Q2[x],n[y.name]&&!f[y.name]&&y.flow&&y.flow.start.indexOf(v.type)>-1&&y.reset&&y.reset();for(x=0;x<Q2.length;x++)y=Q2[x],n[y.name]&&!f[y.name]&&(f[y.name]=!0,y[E](v))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var E=v.changedTouches[0],n=v.type;if(n==="touchstart")FHQ=E.clientX,mo$=E.clientY,wjy=!1;else if(n==="touchmove"&&!wjy){wjy=!0;n="auto";for(var f=XjE(v),x=0,y;x<f.length;x++)if(y=f[x],y.__polymerGesturesTouchAction){n=y.__polymerGesturesTouchAction;break}f=!1;x=Math.abs(FHQ-E.clientX);E=Math.abs(mo$-E.clientY);v.cancelable&&(n==="none"?f=!0:n==="pan-x"?f=E>x:n==="pan-y"&&(f=x>E));f?v.preventDefault():
e$("track")}};
mt=function(v,E,n){return Fc[E]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,E,n),!0):!1};
w6=function(v,E,n){return Fc[E]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,E,n),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,E,n){var f=Fc[E],x=f.deps,y=f.name,Q=v.__polymerGestures;Q||(v.__polymerGestures=Q={});for(var e=0,F,b;e<x.length;e++)F=x[e],ECE&&z6Q.indexOf(F)>-1&&F!=="click"||((b=Q[F])||(Q[F]=b={_count:0}),b._count===0&&v.addEventListener(F,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vCX(F)),b[y]=(b[y]||0)+1,b._count=(b._count||0)+1);v.addEventListener(E,n);f.touchAction&&_.b$(v,f.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,E,n){var f=Fc[E],x=f.deps;f=f.name;var y=v.__polymerGestures;if(y)for(var Q=0,e,F;Q<x.length;Q++)e=x[Q],(F=y[e])&&F[f]&&(F[f]=(F[f]||1)-1,F._count=(F._count||1)-1,F._count===0&&v.removeEventListener(e,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vCX(e)));v.removeEventListener(E,n)};
bU9=function(v){Q2.push(v);for(var E=0;E<v.emits.length;E++)Fc[v.emits[E]]=v};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){for(var E=0,n;E<Q2.length;E++){n=Q2[E];for(var f=0,x;f<n.emits.length;f++)if(x=n.emits[f],x===v)return n}return null};
_.b$=function(v,E){R6E&&v instanceof HTMLElement&&l$.run(function(){v.style.touchAction=E});
v.__polymerGesturesTouchAction=E};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,E,n){E=new Event(E,{bubbles:!0,cancelable:!0,composed:!0});E.detail=n;(0,_.vZ)(v).dispatchEvent(E);E.defaultPrevented&&(v=n.preventer||n.sourceEvent)&&v.preventDefault&&v.preventDefault()};
e$=function(v){v=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v.info&&(v.info.prevent=!0)};
s2=function(v,E,n,f){E&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,v,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:f,prevent:function(x){return e$(x)}})};
lEs=function(v,E,n){if(v.prevent)return!1;if(v.started)return!0;n=Math.abs(v.y-n);return Math.abs(v.x-E)>=5||n>=5};
sVI=function(v,E,n){if(E){var f=v.moves[v.moves.length-2],x=v.moves[v.moves.length-1],y=x.x-v.x,Q=x.y-v.y,e=0;if(f){var F=x.x-f.x;e=x.y-f.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"track",{state:v.state,x:n.clientX,y:n.clientY,dx:y,dy:Q,ddx:F,ddy:e,sourceEvent:n,hover:function(){return QVN(n.clientX,n.clientY)}})}};
PTE=function(v,E,n){var f=Math.abs(E.clientX-v.x),x=Math.abs(E.clientY-v.y),y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(n||E);!y||ry$[y.localName]&&y.hasAttribute("disabled")||!(isNaN(f)||isNaN(x)||f<=25&&x<=25||yyE(E))||v.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,"tap",{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:n})};
aEQ=function(v,E,n,f,x){var y;x&&(y=typeof n==="object"&&n!==null)&&(f=v.__dataTemp[E]);f=f!==n&&(f===f||n===n);y&&f&&(v.__dataTemp[E]=n);return f};
CTQ=function(){if(r6&&!PZ){if(!ZUL){ZUL=!0;var v=document.createElement("style");v.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(v)}return!0}return!1};
S_I=function(){return Mh$};
UoF=function(v,E){Mh$=v;Object.setPrototypeOf(v,E.prototype);new E;Mh$=null};
q_X=function(v,E){for(var n=0;n<E.length;n++){var f=E[n];if(!!v!=!!f.__hideTemplateChildren__)if(f.nodeType===Node.TEXT_NODE)v?(f.__polymerTextContent__=f.textContent,f.textContent=""):f.textContent=f.__polymerTextContent__;else if(f.localName==="slot")if(v)f.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.vZ)((0,_.vZ)(f).parentNode).replaceChild(f.__polymerReplaced__,f);else{var x=f.__polymerReplaced__;x&&(0,_.vZ)((0,_.vZ)(x).parentNode).replaceChild(f,x)}else f.style&&(v?(f.__polymerDisplay__=
f.style.display,f.style.display="none"):f.style.display=f.__polymerDisplay__);f.__hideTemplateChildren__=v;f._showHideChildren&&f._showHideChildren(v)}};
JyF=function(v){return(v=v.__dataHost)&&v._methodHost||v};
IEy=function(v,E,n){var f=n.mutableData?KHX:aS;Zm.mixin&&(f=Zm.mixin(f));var x=function(){return f.apply(this,arguments)||this};
_.S(x,f);x.prototype.__templatizeOptions=n;x.prototype._bindTemplate(v);dos(x,v,E,n);return x};
DoX=function(v,E,n,f){var x=n.forwardHostProp;if(x&&E.hasHostProps){var y=v.localName=="template",Q=E.templatizeTemplateClass;if(!Q){if(y){var e=n.mutableData?Y_L:hUF;Q=function(){return e.apply(this,arguments)||this};
_.S(Q,e);Q=E.templatizeTemplateClass=Q}else{var F=v.constructor;Q=function(){return F.apply(this,arguments)||this};
_.S(Q,F);Q=E.templatizeTemplateClass=Q}var b=E.hostProps,l;for(l in b)Q.prototype._addPropertyEffect("_host_"+l,Q.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:AyI(x)}),Q.prototype._createNotifyingProperty("_host_"+l);CV&&f&&Vh9(E,n,f)}v.__dataProto&&Object.assign(v.__data,v.__dataProto);if(y)UoF(v,Q),v.__dataTemp={},v.__dataPending=null,v.__dataOld=null,v._enableProperties();else{Object.setPrototypeOf(v,Q.prototype);E=E.hostProps;for(var r in E)r="_host_"+r,r in v&&(E=v[r],delete v[r],v.__data[r]=
E)}}};
AyI=function(v){return function(E,n,f){v.call(E.__templatizeOwner,n.substring(6),f[n])}};
dos=function(v,E,n,f){var x=n.hostProps||{},y;for(y in f.instanceProps){delete x[y];var Q=f.notifyInstanceProp;Q&&v.prototype._addPropertyEffect(y,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:HUG(Q)})}if(f.forwardHostProp&&E.__dataHost)for(var e in x)n.hasHostProps||(n.hasHostProps=!0),v.prototype._addPropertyEffect(e,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gCG()})};
HUG=function(v){return function(E,n,f){v.call(E.__templatizeOwner,E,n,f[n])}};
gCG=function(){return function(v,E,n){v.__dataHost._setPendingPropertyOrPath("_host_"+E,n[E],!0,!0)}};
Zm=function(v,E,n){if(MO&&!JyF(v))throw Error("Jd");n=n||{};if(v.__templatizeOwner)throw Error("Kd");v.__templatizeOwner=E;var f=(E?E.constructor:aS)._parseTemplate(v),x=f.templatizeInstanceClass;x||(x=IEy(v,f,n),f.templatizeInstanceClass=x);var y=JyF(v);DoX(v,f,n,y);n=function(){return x.apply(this,arguments)||this};
_.S(n,x);n.prototype._methodHost=y;n.prototype.__dataHost=v;n.prototype.__templatizeOwner=E;n.prototype.__hostProps=f.hostProps;return n};
Vh9=function(v,E,n){n=n.constructor._properties;v=v.propertyEffects;E=E.instanceProps;for(var f in v)if(!(n[f]||E&&E[f]))for(var x=v[f],y=0;y<x.length;y++){var Q=x[y].info.part;if(!Q.signature||!Q.signature.static){console.warn("Property '"+f+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
NNQ=function(v,E){for(var n;E;)if(n=E.__dataHost?E:E.__templatizeInstance)if(n.__dataHost!=v)E=n.__dataHost;else return n;else E=(0,_.vZ)(E).parentNode;return null};
S$=function(v){return v.localName==="slot"};
uHy=function(){for(var v=U2.prototype,E="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),n={},f=0;f<E.length;n={method$jscomp$32:void 0},f++)n.method$jscomp$32=E[f],v[n.method$jscomp$32]=function(x){return function(){return this.node[x.method$jscomp$32].apply(this.node,arguments)}}(n)};
jVA=function(v,E){for(var n={},f=0;f<E.length;n={name$jscomp$378:void 0},f++)n.name$jscomp$378=E[f],Object.defineProperty(v,n.name$jscomp$378,{get:function(x){return function(){return this.node[x.name$jscomp$378]}}(n),
configurable:!0})};
OUN=function(){for(var v=U2.prototype,E=["textContent","innerHTML","className"],n={},f=0;f<E.length;n={name$jscomp$379:void 0},f++)n.name$jscomp$379=E[f],Object.defineProperty(v,n.name$jscomp$379,{get:function(x){return function(){return this.node[x.name$jscomp$379]}}(n),
set:function(x){return function(y){this.node[x.name$jscomp$379]=y}}(n),
configurable:!0})};
kkQ=function(){qO=document.documentElement.getAttribute("dir");qO=document.documentElement.getAttribute("dir");for(var v=0;v<JK.length;v++){var E=JK[v];E.__autoDirOptOut||E.setAttribute("dir",qO)}};
GkF=function(){KV=!0;requestAnimationFrame(function(){KV=!1;WHX($o1);setTimeout(function(){for(var v=0,E=d6.length;v<E;v++)LHL(d6.shift())})})};
WHX=function(v){for(;v.length;)LHL(v.shift())};
LHL=function(v){var E=v[0],n=v[1];v=v[2];try{n.apply(E,v)}catch(f){setTimeout(function(){throw f;})}};
_.TN$=function(v,E,n){KV||GkF();$o1.push([v,E,n])};
_.IS=function(v,E,n){KV||GkF();d6.push([v,E,n])};
RUG=function(v,E){E=E===void 0?!1:E;if(!iU1||!zUN||!iU1.handlesDynamicScoping)return null;var n=zUN.ScopingShim;if(!n)return null;var f=n.scopeForNode(v),x=(0,_.vZ)(v).getRootNode(),y=function(Q){if((0,_.vZ)(Q).getRootNode()===x){var e=Array.from(iU1.nativeMethods.querySelectorAll.call(Q,"*"));e.push(Q);for(Q=0;Q<e.length;Q++){var F=e[Q];if((0,_.vZ)(F).getRootNode()===x){var b=n.currentScopeForNode(F);b!==f&&(b!==""&&n.unscopeNode(F,b),n.scopeNode(F,f))}}}};
y(v);return E?(E=new MutationObserver(function(Q){for(var e=0;e<Q.length;e++)for(var F=Q[e],b=0;b<F.addedNodes.length;b++){var l=F.addedNodes[b];l.nodeType===Node.ELEMENT_NODE&&y(l)}}),E.observe(v,{childList:!0,
subtree:!0}),E):null};
thy=function(){document.body.removeAttribute("unresolved")};
oJ9=function(v){var E=v=v.replace(BNs,"").replace(vJ$,""),n=new EJy;n.start=0;n.end=E.length;for(var f=n,x=0,y=E.length;x<y;x++)if(E[x]==="{"){f.rules||(f.rules=[]);var Q=f,e=Q.rules[Q.rules.length-1]||null;f=new EJy;f.start=x+1;f.parent=Q;f.previous=e;Q.rules.push(f)}else E[x]==="}"&&(f.end=x+1,f=f.parent||n);return nJG(n,v)};
nJG=function(v,E){var n=E.substring(v.start,v.end-1);v.parsedCssText=v.cssText=n.trim();v.parent&&(n=E.substring(v.previous?v.previous.end:v.parent.start,v.start-1),n=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(n),n=n.replace(fRX," "),n=n.substring(n.lastIndexOf(";")+1),n=v.parsedSelector=v.selector=n.trim(),v.atRule=n.indexOf("@")===0,v.atRule?n.indexOf("@media")===0?v.type=4:n.match(xII)&&(v.type=7,v.keyframesName=v.selector.split(fRX).pop()):n.indexOf("--")===
0?v.type=1E3:v.type=1);if(n=v.rules)for(var f=0,x=n.length,y=void 0;f<x&&(y=n[f]);f++)nJG(y,E);return v};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){return v.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var E=arguments[1],n=6-E.length;n--;)E="0"+E;return"\\"+E})};
cf$=function(v,E,n){n=n===void 0?"":n;var f="";if(v.cssText||v.rules){var x=v.rules;if(x&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x))for(var y=0,Q=x.length,e=void 0;y<Q&&(e=x[y]);y++)f=cf$(e,E,f);else E?E=v.cssText:(E=v.cssText,E=E.replace(yf1,"").replace(p_L,""),E=E.replace(QrN,"").replace(X_X,"")),(f=E.trim())&&(f="  "+f+"\n")}f&&(v.selector&&(n+=v.selector+" {\n"),n+=f,v.selector&&(n+="}\n\n"));return n};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){v=v[0];return!!v&&!!v.selector&&v.selector.indexOf("--")===0};
FnI=function(v){if(v=ei1[v])v._applyShimCurrentVersion=v._applyShimCurrentVersion||0,v._applyShimValidatingVersion=v._applyShimValidatingVersion||0,v._applyShimNextVersion=(v._applyShimNextVersion||0)+1};
mIs=function(v){return v._applyShimCurrentVersion===v._applyShimNextVersion};
beL=function(v){v._applyShimValidatingVersion=v._applyShimNextVersion;v._validating||(v._validating=!0,w_y.then(function(){v._applyShimCurrentVersion=v._applyShimNextVersion;v._validating=!1}))};
srX=function(v){if(!v)return"";typeof v==="string"&&(v=oJ9(v));return cf$(v,lR$)};
rfE=function(v){!v.__cssRules&&v.textContent&&(v.__cssRules=oJ9(v.textContent));return v.__cssRules||null};
aRX=function(v,E,n,f){if(v){var x=!1,y=v.type;if(f&&y===4){var Q=v.selector.match(P99);Q&&(window.matchMedia(Q[1]).matches||(x=!0))}y===1?E(v):n&&y===7?n(v):y===1E3&&(x=!0);if((v=v.rules)&&!x)for(x=0,y=v.length,Q=void 0;x<y&&(Q=v[x]);x++)aRX(Q,E,n,f)}};
ZeQ=function(v,E){var n=v.indexOf("var(");if(n===-1)return E(v,"","","");a:{var f=0;var x=n+3;for(var y=v.length;x<y;x++)if(v[x]==="(")f++;else if(v[x]===")"&&--f===0)break a;x=-1}f=v.substring(n+4,x);n=v.substring(0,n);v=ZeQ(v.substring(x+1),E);y=f.indexOf(",");if(y===-1)return E(n,f.trim(),"",v);x=f.substring(0,y).trim();f=f.substring(y+1).trim();return E(n,x,f,v)};
C9E=function(v){if(Y0!==void 0)return Y0;if(v.__cssBuild===void 0){var E=v.getAttribute("css-build");if(E)v.__cssBuild=E;else{a:{E=v.localName==="template"?v.content.firstChild:v.firstChild;if(E instanceof Comment&&(E=E.textContent.trim().split(":"),E[0]==="css-build")){E=E[1];break a}E=""}if(E!==""){var n=v.localName==="template"?v.content.firstChild:v.firstChild;n.parentNode.removeChild(n)}v.__cssBuild=E}}return v.__cssBuild||""};
SyL=function(v,E,n,f){for(var x=E._noAccessors,y=Object.getOwnPropertyNames(E),Q=0;Q<y.length;Q++){var e=y[Q];if(!(e in f))if(x)v[e]=E[e];else{var F=Object.getOwnPropertyDescriptor(E,e);F&&(F.configurable=!0,Object.defineProperty(v,e,F))}}for(var b in MUF)E[b]&&(n[b]=n[b]||[],n[b].push(E[b]))};
UII=function(v,E,n){E=E||[];for(var f=v.length-1;f>=0;f--){var x=v[f];x?Array.isArray(x)?UII(x,E):E.indexOf(x)<0&&(!n||n.indexOf(x)<0)&&E.unshift(x):console.warn("behavior is null, check for missing or 404 import")}return E};
qyE=function(v,E){for(var n in E){var f=v[n],x=E[n];v[n]=!("value"in x)&&f&&"value"in f?Object.assign({value:f.value},x):x}};
dIE=function(v,E,n){var f={},x=function(){return E.apply(this,arguments)||this};
_.S(x,E);x._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Q)for(var F=0,b;F<Q.length;F++)b=Q[F],b.properties&&this.createProperties(b.properties),b.observers&&this.createObservers(b.observers,b.properties);v.properties&&this.createProperties(v.properties);v.observers&&this.createObservers(v.observers,v.properties);this._prepareTemplate()}else E._finalizeClass.call(this)};
x.prototype.created=function(){E.prototype.created.call(this);var F=f.created;if(F)for(var b=0;b<F.length;b++)F[b].call(this)};
x.prototype._registered=function(){var F=x.prototype;if(!F.hasOwnProperty("__hasRegisterFinished")){F.__hasRegisterFinished=!0;E.prototype._registered.call(this);r6&&e(F);F=Object.getPrototypeOf(this);var b=f.beforeRegister;if(b)for(var l=0;l<b.length;l++)b[l].call(F);if(b=f.registered)for(l=0;l<b.length;l++)b[l].call(F)}};
x.prototype._applyListeners=function(){E.prototype._applyListeners.call(this);var F=f.listeners;if(F)for(var b=0;b<F.length;b++){var l=F[b];if(l)for(var r in l)this._addMethodEventListenerToNode(this,r,l[r])}};
x.prototype._ensureAttributes=function(){var F=f.hostAttributes;if(F)for(var b=F.length-1;b>=0;b--){var l=F[b],r;for(r in l)this._ensureAttribute(r,l[r])}E.prototype._ensureAttributes.call(this)};
x.prototype.ready=function(){E.prototype.ready.call(this);var F=f.ready;if(F)for(var b=0;b<F.length;b++)F[b].call(this)};
x.prototype.attached=function(){E.prototype.attached.call(this);var F=f.attached;if(F)for(var b=0;b<F.length;b++)F[b].call(this)};
x.prototype.detached=function(){E.prototype.detached.call(this);var F=f.detached;if(F)for(var b=0;b<F.length;b++)F[b].call(this)};
x.prototype.attributeChanged=function(F,b,l){E.prototype.attributeChanged.call(this);var r=f.attributeChanged;if(r)for(var a=0;a<r.length;a++)r[a].call(this,F,b,l)};
_.hK.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){var F={};if(Q)for(var b=0;b<Q.length;b++)qyE(F,Q[b].properties);qyE(F,v.properties);return F}},
observers:{configurable:!0,enumerable:!0,get:function(){var F=[];if(Q)for(var b=0,l;b<Q.length;b++)l=Q[b],l.observers&&(F=F.concat(l.observers));v.observers&&(F=F.concat(v.observers));return F}}});
if(n){Array.isArray(n)||(n=[n]);var y=E.prototype.behaviors;var Q=UII(n,null,y);x.prototype.behaviors=y?y.concat(n):Q}var e=function(F){if(Q)for(var b=Q,l=0;l<b.length;l++)SyL(F,b[l],f,Jfs);SyL(F,v,f,Kn1)};
r6||e(x.prototype);x.generatedFrom=v;return x};
AfX=function(v){var E=typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0};E.fastInit===void 0&&(E.fastInit=!0);return function(n){if(!E.disableInheritanceCheck&&Object.getPrototypeOf(n.prototype).constructor!==_.AK)throw Error("Od");var f=n.prototype;f.is=E.is;g_N(f,"created",function(){this.hostElement=this;this.polymerController=this});
IRA(f,n,E.fastInit);E.notifyObserversOnUndefined&&(f._overrideLegacyUndefined=!0);if(YyF)for(var x=_.p(Object.getOwnPropertyNames(f)),y=x.next();!y.done;y=x.next()){y=y.value;var Q=Object.getOwnPropertyDescriptor(f,y);Q.enumerable===!1&&(Q.enumerable=!0,Object.defineProperty(f,y,Q))}if("template"in n)var e=function(){return n.template};
else E.template!==void 0&&(e=E.template);if(e!==void 0){var F;Object.defineProperty(f,"_template",{get:function(){F===void 0&&(F=e());return F},
set:function(b){F=b},
configurable:!0,enumerable:!0})}Polymer(f);n[hiL]=f}};
VUX=function(v){v=v===void 0?{}:v;v.fastInit===void 0&&(v.fastInit=!0);return function(E){if(!v.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==V2)throw Error("Pd");IRA(E.prototype,E,v.fastInit)}};
IRA=function(v,E,n){n=n===void 0?!1:n;DIA(E);n?g_N(v,"created",function(){this.disableEnforceFastDefaultValuesCheck||He9(E,this)}):g_N(v,"ready",function(){for(var f={},x=_.p(NWN(this.behaviors)),y=x.next();!y.done;y=x.next())y=y.value,y.properties&&Object.assign(f,gJA(this,y.properties));
Object.assign(f,gJA(this,this.properties));He9(E,this);x=_.p(Object.keys(f));for(y=x.next();!y.done;y=x.next())y=y.value,this[y]=f[y]})};
He9=function(v,E){if(YyF){v=new v;for(var n=_.p(Object.getOwnPropertyNames(v)),f=n.next();!f.done;f=n.next())f=f.value,E[f]=v[f];for(n=E;n&&n!==Object.prototype;n=Object.getPrototypeOf(n)){f=_.p(Object.getOwnPropertyNames(n));for(var x=f.next();!x.done;x=f.next())x=x.value,v.hasOwnProperty(x)||Object.defineProperty(v,x,NwE(E,x))}}else v.apply(E)};
NwE=function(v,E){return{get:function(){var n=v[E];return n instanceof Function?n.bind(v):n},
set:function(n){v[E]=n}}};
gJA=function(v,E){if(!E)return{};for(var n={},f=_.p(Object.keys(E)),x=f.next();!x.done;x=f.next())if(x=x.value,!E[x].readOnly){var y=v[x];y!==void 0&&(n[x]=y)}return n};
DIA=function(v){var E=new v;v=v.prototype.properties||{};for(var n=_.p(Object.keys(v)),f=n.next();!f.done;f=n.next())if(f=f.value,E.hasOwnProperty(f)){var x=v[f];typeof x==="function"&&(v[f]=x={type:x});E[f]!=null&&x.type===Object&&(x.type=uhN(E[f].constructor))}};
uhN=function(v){for(var E=_.p(jrX),n=E.next();!n.done;n=E.next())if(n=n.value,v===n)return n;return Object};
OeF=function(v){return function(E,n){E.behaviors=E.behaviors||[];E.behaviors.push(v||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",E,n).prototype:void 0));Object.defineProperty(E,n,{get:function(){return this},
enumerable:!0,configurable:!0})}};
kYE=function(v){v=v===void 0?{}:v;return function(E,n){E.properties=E.properties||{};v.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?v.type=uhN(Reflect.getMetadata("design:type",E,n)):v.type=String);var f=v,x=E.properties[n];E.properties[n]=x?Object.assign({},x,f):f}};
WnQ=function(v){return function(E,n){E.listeners=E.listeners||{};E.listeners[v]=n}};
$Iy=function(){var v=_.rV.apply(0,arguments);if(v.length===0)throw Error("Qd");return function(E,n){E.observers=E.observers||[];E.observers.push(n+"("+v.join(",")+")")}};
LnF=function(){var v=_.rV.apply(0,arguments);return function(E,n,f){var x=Object.getOwnPropertyDescriptor(E,n).get,y="__compute__"+n;Object.defineProperty(E,y,{value:x,enumerable:!0});E.properties=E.properties||{};x=E.properties[n];x||(x={},E.properties[n]=x);x.computed=y+"("+v.join(",")+")";f.get=void 0}};
_.Dm=function(v,E,n){_.QK.call(this);this.JSC$9111_id_=null;this.usingListeners_=!1;this.JSC$9111_listener_=v;this.handler_=n;this.JSC$9111_win_=E||window;this.callback_=(0,_.XV)(this.JSC$9113_doAction_,this)};
HZ=function(v){this.range_=v};
g6=function(v){this.range_=v};
j$=function(v,E,n){_.QK.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=v;this.scrollTimer_=new _.NO(50);this.JSC$9190_eventHandler_=new _.u$(this);this.scrollDelta_=new _.PV;this.containerIsActuallyContent_=v.tagName==="BODY"||v.tagName==="HTML";this.containerBounds_=GYA(v);this.containerIsActuallyContent_&&(v=_.xr(),this.containerBounds_.height=v.height,this.containerBounds_.width=v.width);this.margin_=E||0;if(E){if(E=this.containerBounds_.clone(),v=this.margin_){var f=
Math.min(v,E.height*.25);E.top+=f;E.height-=2*f;v=Math.min(v,E.width*.25);E.left+=v;E.width-=2*v}}else E=this.containerBounds_;this.scrollBounds_=E;n||this.JSC$9190_eventHandler_.listen(_.ZJ(this.containerNode_),"mousemove",this.JSC$9192_onMouseMove);this.JSC$9190_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9192_onTick_)};
_.O2=function(v){this.mechanism=v};
k0=function(v,E){this.JSC$9288_key_=v;this.JSC$9288_value_=E};
ieF=function(v){if(v>=55296&&v<=57343||v>1114111)return"\ufffd";v in TwF&&(v=TwF[v]);var E="";v>65535&&(v-=65536,E+=String.fromCharCode(v>>>10&1023|55296),v=56320|v&1023);return E+=String.fromCharCode(v)};
zi$=function(v,E){return v<E?1:-1};
tUN=function(){return function(v){return v.charAt(1)==="#"?v.charAt(2)==="X"||v.charAt(2)==="x"?ieF(parseInt(v.substr(3),16)):ieF(parseInt(v.substr(2),10)):Ri9[v.slice(1,-1)]}};
E8s=function(v){return v.slice(1,v.length-1).trim().replace(Bw$,function(E){return v8I[E]||" "})};
WZ=function(v){return v===32||v===9};
$0=function(v,E){return E<v.length?v.charCodeAt(E):-1};
n8X=function(v){for(;v;){if(v._lastLineBlank)return!0;var E=v.type;if(E==="list"||E==="item")v=v._lastChild;else break}return!1};
LV=function(v){if(o8E.test(v)){var E=1,n=0,f=0;for(v[n]=="|"&&n++;n<v.length;){switch(v[n]){case "|":f=1;break;case " ":break;case "\t":break;default:f&&(f=0,E++)}n++}return f2E.test(v)?-E:E}return 0};
xr1=function(v){return v=="table"||v=="row"||v=="cell"};
cms=function(){return new Gq("document",[[1,1],[0,0]])};
ymF=function(){};
Tq=function(){var v={safe:!1};v=v||{};v.softbreak=v.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=v};
FkE=function(v,E){var n="";if(v)if(v=v.toLowerCase(),v===" "||p2E.test(v))n="space";else if(QGI.test(v))n="esc";else if(v.length==1){if(!E||X2L.test(v))n=v}else n=esE.test(v)?v.replace("arrow",""):v=="multiply"?"*":v;return n};
l2E=function(v,E){var n=v.hasModifiers;if(E.key)n=FkE(E.key,n);else if(E.detail&&E.detail.key)n=FkE(E.detail.key,n);else{n=E.keyIdentifier;var f="";n&&(n in mrE?f=mrE[n]:w2X.test(n)?(n=parseInt(n.replace("U+","0x"),16),f=String.fromCharCode(n).toLowerCase()):f=n.toLowerCase());(n=f)||(n=E.keyCode,f="",Number(n)&&(n>=65&&n<=90?f=String.fromCharCode(32+n):n>=112&&n<=123?f="f"+(n-112+1):n>=48&&n<=57?f=String(n-48):n>=96&&n<=105?f=String(n-96):f=b9X[n]),n=f);n=n||""}return n===v.key&&(!v.hasModifiers||
!!E.shiftKey===!!v.shiftKey&&!!E.ctrlKey===!!v.ctrlKey&&!!E.altKey===!!v.altKey&&!!E.metaKey===!!v.metaKey)};
rmy=function(v){return v.length===1?{combo:v,key:v,event:"keydown"}:v.split("+").reduce(function(E,n){var f=n.split(":");n=f[0];f=f[1];n in sGG?(E[sGG[n]]=!0,E.hasModifiers=!0):(E.key=n,E.event=f||"keydown");return E},{combo:v.split(":").shift()})};
PN9=function(v){return v.trim().split(" ").map(function(E){return rmy(E)})};
a2X=function(v,E){if(v&&v.fn){var n=v.fn;v.fn=function(){try{n.apply(this,arguments)}catch(f){if(f instanceof i$)console.warn("Argument '"+f.arg+"'"+(E?" for method '"+E+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw f;}}}return v};
Z9X=function(){var v=_.rV.apply(0,arguments);return v.length===0?function(E){return E}:v.length===1?v[0]:v.reduce(function(E,n){return function(){return E(n.apply(null,_.s8(_.rV.apply(0,arguments))))}})};
CNE=function(){var v=_.rV.apply(0,arguments);return function(E){return function(n,f){n=E(n,f);var x=function(){throw Error("Ae");},y={getState:n.getState,
dispatch:function(Q){return x.apply(null,[Q].concat(_.s8(_.rV.apply(1,arguments))))}};
f=v.map(function(Q){return Q(y)});
x=Z9X.apply(null,_.s8(f))(n.dispatch);return Object.assign({},n,{dispatch:x})}}};
UrQ=function(v){Object.keys(v).forEach(function(E){var n=v[E];if(typeof n(void 0,{type:MfF})==="undefined")throw Error("Be`"+E);if(typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Say()})==="undefined")throw Error("Ce`"+E+"`"+MfF);})};
zq=function(v){for(var E=Object.keys(v),n={},f=0;f<E.length;f++){var x=E[f];typeof v[x]==="function"&&(n[x]=v[x])}var y=Object.keys(n);try{UrQ(n)}catch(e){var Q=e}return function(e,F){e=e===void 0?{}:e;if(Q)throw Q;for(var b=!1,l={},r=0;r<y.length;r++){var a=y[r],M=e[a],U=(0,n[a])(M,F);if(typeof U==="undefined")throw e=F&&F.type,Error("De`"+(e?'"'+String(e)+'"':"(unknown type)")+"`"+a);l[a]=U;b=b||U!==M}return(b=b||y.length!==Object.keys(e).length)?l:e}};
qa9=function(v,E,n){function f(){if(l)throw Error("Ee");return e}
function x(M){if(typeof M!=="function")throw Error("Fe`"+typeof M);if(l)throw Error("Ge");var U=!0;b===F&&(b=F.slice());b.push(M);return function(){if(U){if(l)throw Error("He");U=!1;b===F&&(b=F.slice());var d=b.indexOf(M);b.splice(d,1);F=null}}}
function y(M){if(typeof M!=="object"||M===null)var U=!1;else{for(U=M;Object.getPrototypeOf(U)!==null;)U=Object.getPrototypeOf(U);U=Object.getPrototypeOf(M)===U}if(!U)throw Error("Ie`"+typeof M);if(typeof M.type==="undefined")throw Error("Je");if(l)throw Error("Ke");try{l=!0,e=Q(e,M)}finally{l=!1}U=F=b;for(var d=0;d<U.length;d++)(0,U[d])();return M}
if(typeof E==="function"&&typeof n==="function"||typeof n==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof E==="function"&&typeof n==="undefined"&&(n=E,E=void 0);if(typeof n!=="undefined"){if(typeof n!=="function")throw Error("Me`"+typeof n);return n(qa9)(v,E)}if(typeof v!=="function")throw Error("Ne`"+typeof v);var Q=v,e=E,F=[],b=F,l=!1;y({type:MfF});var r={},a=(r.dispatch=y,r.subscribe=x,r.getState=f,r.replaceReducer=function(M){if(typeof M!=="function")throw Error("Oe`"+
typeof M);Q=M;y({type:JmE});return a},r[KkG]=function(){var M={};
return M.subscribe=function(U){function d(){U.next&&U.next(f())}
if(typeof U!=="object"||U===null)throw new TypeError("Pe`"+typeof U);d();return{unsubscribe:x(d)}},M[KkG]=function(){return this},M},r);
return a};
dry=function(v){function E(){x&&(x=!1,v());y&&f()}
function n(){requestAnimationFrame(E)}
function f(){var e=Date.now();if(x){if(e-Q<2)return;y=!0}else x=!0,y=!1,setTimeout(n,20);Q=e}
var x=!1,y=!1,Q=0;return f};
RS=function(v){return typeof v==="number"?v:parseFloat(v)||0};
I2I=function(v){return _.rV.apply(1,arguments).reduce(function(E,n){return E+RS(v["border-"+n+"-width"])},0)};
_.q=function(v,E){E=Uw(Sc(E));v.innerHTML=E};
Am1=function(v){var E=Ya9;E||(E=hsQ(),E=Ya9=_.sh.transpose(E));E=E[v];return typeof E==="string"?E:_.tK(v)};
VfG=function(v){v=String(v).toLowerCase();var E=hsQ()[v];return typeof E==="string"?E:_.BZ(v)};
DrI=function(v){v=v.toLowerCase();v=hsQ()[v];return typeof v==="string"?v:null};
hsQ=function(){if(!H9$){for(var v=Object.assign({},g89),E=_.p(NOX),n=E.next();!n.done;n=E.next())n=n.value,v[n.toLowerCase()]=n;H9$=v}return H9$};
O9E=function(v,E){var n=window.customElements;return n&&n.get(v)||uBG[v]===!0?2:E.name==="HTMLUnknownElement"?1:E.name==="HTMLElement"&&jGI.test(v)?3:0};
$ry=function(v,E){switch(E){case "innerHTML":return kjy(v)===1?2:null;case "textContent":return v=kjy(v),v===1||v===6?1:null;default:var n,f;return(f=(n=Wk1[v.localName])==null?void 0:n[E])!=null?f:null}};
kjy=function(v){var E=v.localName,n=O9E(E,v.constructor);switch(n){case 0:case 1:return Lk$(E,v);case 3:case 2:return 1;default:_.p0(n,"got an unknown element classification")}};
Lk$=function(v,E){var n=Object.hasOwnProperty.call(GjA,v)?GjA[v]:null;return n!==null?n:Object.hasOwnProperty.call(TOQ,v)&&E instanceof SVGElement?TOQ[v]:null};
i9E=function(v,E){return E};
RsE=function(v){return(v=v.split(zsA,2))?{url:v[0],metadata:v[1]}:null};
BOL=function(v){var E=String(v.url).replace(tfF,encodeURIComponent);if(v=v.metadata){tfF.lastIndex=0;if(tfF.test(v))return null;E+=" "+v}return E};
oDs=function(v){function E(b){var l=b.localName;if(!b.getAttribute("is")&&O9E(l,b.constructor)===2){var r;return(r=F)!=null?r:F=document.createElement("polyresinuncustomized")}(b=e[l])||(b=e[l]=document.createElement(l));return b}
var n=v.reportHandler||void 0,f=v.safeTypesBridge||vDA,x=/^$/;if(v=v.allowedIdentifierPrefixes){v=_.p(v);for(var y=v.next();!y.done;y=v.next())x=new RegExp(x.source+"|^"+_.EDE(y.value))}n&&n(!1,"initResin",null);var Q=nDE(x,f,n),e={},F=null;return function(b,l,r){var a=b.nodeType;if(a!==Node.ELEMENT_NODE){if(a===Node.TEXT_NODE){l=b.parentElement;r=!l;if(l&&l.nodeType===Node.ELEMENT_NODE){a=l.localName;var M=O9E(a,l.constructor);switch(M){case 0:case 1:l=Lk$(a,l);r=l===1||l===6;break;case 3:case 2:r=
!0;break;default:_.p0(M,"got an unknown element classification")}}if(r)return function(V){return""+f(V,"STRING",V)}}return function(V){if(!V&&V!==document.all)return V;
n&&n(!0,"Failed to sanitize "+(b.parentElement&&b.parentElement.nodeName)+" #text node to value "+V,b.parentElement);return vq}}var U=b.localName;
a=E(b);var d=null;switch(r){case "attribute":if(VfG(l)in a)break;return function(V){return V};
case "property":if(l in a){d=$ry(a,l);break}if((M=DrI(l))&&M in a)break;return function(V){return V};
default:_.p0(r,"got an unknown resin type, expected either 'property' or 'attribute'")}var Y=r==="attribute"?l.toLowerCase():Am1(l);d||(d=MDE(U,Y,function(V){var O=b.getAttribute(V);return!O||/[\[\{]/.test(V)?null:O}));
return function(V){var O=EL,T=null;if(!V&&V!==document.all)return V;if(d!=null){var L=Q[d],xX=L.safeType;T=L.safeReplacement;xX&&(O=f(V,xX,EL));O===EL&&(L.filterString?(O=String(f(V,"STRING",V)),O=L.filterString(U,Y,O)):L.filterRaw&&(O=L.filterRaw(U,Y,V,b)),O===T&&(O=EL))}O===EL&&(O=T||vq,n&&n(!0,"Failed to sanitize attribute of <"+U+">: <"+U+" "+Y+'="'+V+'">',b));return O}}};
nDE=function(v,E,n){return[,{filterRaw:function(f,x,y){return y},
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:fbQ,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:fbQ,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vq,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:xmX,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(f,x,y){y=
String(y).toLowerCase();return qUE(f,x,y)?y:vq},
safeReplacement:vq,safeType:void 0},,{filterRaw:void 0,filterString:function(f,x,y){return v.test(y)?y:vq},
safeReplacement:vq,safeType:"CONSTANT"},{filterRaw:function(f,x,y,Q){if(typeof y==="string")var e=(e=y.match(cPs))?e.map(RsE).filter(Boolean):[];else if(Array.isArray(y))e=y;else return fbQ;var F=e;e=[];var b=[],l={};if(Array.isArray(F))for(var r=0,a=F.length;r<a;++r){var M=F[r],U=M&&M.url;if(U){var d=E(U,"URL",l);if(d){var Y=d!==l;(Y?e:b).push({url:Y?d:U,metadata:M.metadata})}}}else b.push(F);F=b.length?JSON.stringify(b):null;b=EL;if(e.length){if(!Array.isArray(e))throw Error();b=e.map(BOL).filter(Boolean).join(" , ")||
EL}F&&n&&n(!0,"Failed to sanitize attribute value of <"+f+">: <"+f+" "+x+'="'+y+'">: '+F,Q);return b===EL?fbQ:b},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
yPE=function(v){var E=oDs(v);return function(n,f,x,y){return y||y===document.all?E(n,f,x)(y):y}};
nG=function(v,E){function n(){function x(e,F,b){for(F=Reflect.getMetadata("parameters",e)||[];F.length<=b;)F.push(null);F[b]=F[b]||[];F[b].push(Q);Reflect.defineMetadata(F,e);return e}
var y=_.rV.apply(0,arguments);if(this instanceof n)return f.apply(this,y),this;var Q=new (Function.prototype.bind.apply(n,[null].concat(_.s8(y))));x.annotation=Q;return x}
var f=pME(E);n.prototype.toString=function(){return"@"+v};
return n.annotationCls=n};
pME=function(v){return function(){var E=_.rV.apply(0,arguments),n=this;v.forEach(function(f,x){x=E[x];if(Array.isArray(f))n[f[0]]=x&&x!==void 0?x:f[1];else for(var y in f)n[y]=x&&x[y]!==void 0?x[y]:f[y]})}};
Qy9=function(v){return v!==void 0&&v!==null};
oT=function(v){if(typeof v==="string")return v;if(v===void 0||v===null)return""+v;if(v.overriddenName)return v.overriddenName;if(v.name)return v.name;v=v.toString();var E=v.indexOf("\n");return E===-1?v:v.substring(0,E)};
XMG=function(v){v.__forward_ref__=XMG;v.toString=function(){return oT(this())};
return v};
cq=function(v){return typeof v==="function"&&v.hasOwnProperty("__forward_ref__")&&v.__forward_ref__===XMG?v():v};
e$E=function(v){return v?v.map(function(E){return new (Function.prototype.bind.apply(E.type.annotationCls,[null].concat(_.s8(E.args?E.args:[]))))}):[]};
FeE=function(v){for(var E=[],n=0;n<v.length;++n){if(E.indexOf(v[n])>-1){E.push(v[n]);break}E.push(v[n])}return E};
mm9=function(v){return v.length>1?" ("+FeE(v.slice().reverse()).map(function(E){return oT(E.token)}).join(" -> ")+")":""};
boN=function(v,E,n,f){if(f){var x=Error("We``"+(f instanceof Error?f.message:f));x.ngOriginalError=f}else x=Error();x.addKey=wMX;x.keys=[E];x.injectors=[v];x.constructResolvingMessage=n;x.message=x.constructResolvingMessage();x.ngOriginalError=f;return x};
wMX=function(v,E){this.injectors.push(v);this.keys.push(E);this.message=this.constructResolvingMessage()};
lbX=function(v,E){return boN(v,E,function(){return"No provider for "+oT(this.keys[0].token)+"!"+mm9(this.keys)})};
syL=function(v,E){return boN(v,E,function(){return"Cannot instantiate cyclic dependency!"+mm9(this.keys)})};
rPN=function(v,E,n){return boN(v,n,function(){var f=oT(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+f+"!"+mm9(this.keys)+"."},E)};
Py$=function(v,E){for(var n=[],f=0,x=E.length;f<x;f++){var y=E[f];y&&y.length!=0?n.push(y.map(oT).join(" ")):n.push("?")}return Error("$e`"+oT(v)+"`"+n.join(", ")+"`"+oT(v))};
qPF=function(v){var E=void 0,n=void 0;if(v&&v.useClass!==void 0){E=v.useClass;var f=cq(v.useClass);var x=abX.factory(f);f=ZoN(f)}else v&&v.useExisting!==void 0?(x=function(y){return y},f=[CyI(yT.get(cq(v.useExisting)))]):v&&v.useFactory!==void 0?(x=v.useFactory,f=MrF(v.useFactory,v.deps)):(n=v.useValue,x=function(){return v.useValue},f=SPy);
return new UmE(x,f,E,n)};
Ke$=function(v){return new JPy(yT.get(cq(v.provide)),[qPF(v)],v.multi)};
Ib1=function(v){v=dmN(v,[]).map(Ke$);for(var E=new Map,n=0;n<v.length;n++){var f=v[n],x=E.get(f.key.id);if(x){if(f.multiProvider!==x.multiProvider)throw Error("bf`"+x+"`"+f);if(f.multiProvider)for(var y=0;y<f.resolvedFactories.length;y++)x.resolvedFactories.push(f.resolvedFactories[y]);else E.set(f.key.id,f)}else x=void 0,f.multiProvider?x=new JPy(f.key,f.resolvedFactories.slice(),f.multiProvider):x=f,E.set(f.key.id,x)}return Array.from(E.values())};
dmN=function(v,E){v.forEach(function(n){if(n instanceof YPy)E.push({provide:n,useClass:n});else if(n&&typeof n=="object"&&n.provide!==void 0)E.push(n);else if(n instanceof Array)dmN(n,E);else throw Error("Ze`"+n);});
return E};
MrF=function(v,E){if(E){var n=E.map(function(f){return[f]});
return E.map(function(f){return h$X(v,f,n)})}return ZoN(v)};
ZoN=function(v){var E=abX.parameters(v);if(!E)return[];if(E.some(function(n){return n==null}))throw Py$(v,E);
return E.map(function(n){return h$X(v,n,E)})};
h$X=function(v,E,n){var f=null,x=!1;if(!Array.isArray(E))return E instanceof APX?VrX(E.token,x,null):VrX(E,x,null);for(var y=null,Q=0;Q<E.length;++Q){var e=E[Q];if(e instanceof YPy)f=e;else if(e instanceof APX)f=e.token;else if(e instanceof Dm$)x=!0;else if(e instanceof HoX||e instanceof gDE)y=e}f=cq(f);if(f!=null)return VrX(f,x,y);throw Py$(v,n);};
VrX=function(v,E,n){return new NxE(yT.get(cq(v)),E,n)};
uTG=function(v,E){for(var n=Array(v.providers.length),f=0;f<v.providers.length;++f){var x=f;if(f<0||f>=v.providers.length)throw Error("af`"+f);n[x]=E(v.providers[f])}return n};
jys=function(v){return typeof v==="function"&&abX.parameters(v).every(function(E){return!!E})};
WeA=function(v){var E=Oo$;kNE.get(v)||kNE.set(v,new E);return kNE.get(v)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,E){var n,f;if(v.contains(E))return!0;v=_.pG(v).querySelectorAll("content,slot");for(n=0;n<v.length;++n){var x=_.pG(v[n]).getDistributedNodes();for(f=0;f<x.length;++f)if(x[f].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x[f],E))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){v.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v)&&v.preventDefault();v.targetTouches&&(v=v.targetTouches[0],$mA=v.pageX,Le9=v.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 v=0,E=QT.length;v<E;v++)document.addEventListener(QT[v],_._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 v=0,E=QT.length;v<E;v++)document.removeEventListener(QT[v],_._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(v){var E=_.pG(v).rootTarget;v.type!=="touchmove"&&GNN!==E&&(GNN=E,Tx1=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.pG(v).path));if(!Tx1.length)return!0;if(v.type==="touchstart")return!1;v=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Tx1,v.deltaX,v.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){for(var E=[],n=v.indexOf(ioy),f=0;f<=n;f++)if(v[f].nodeType===Node.ELEMENT_NODE){var x=v[f],y=x.style;y.overflow!=="scroll"&&y.overflow!=="auto"&&(y=window.getComputedStyle(x));y.overflow!=="scroll"&&y.overflow!=="auto"||E.push(x)}return E};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,E,n){if(E||n)for(var f=Math.abs(n)>=Math.abs(E),x=0;x<v.length;x++){var y=v[x];if(f?n<0?y.scrollTop>0:y.scrollTop<y.scrollHeight-y.clientHeight:E<0?y.scrollLeft>0:y.scrollLeft<y.scrollWidth-y.clientWidth)return y}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){var E={deltaX:v.deltaX,deltaY:v.deltaY};"deltaX"in v||("wheelDeltaX"in v&&"wheelDeltaY"in v?(E.deltaX=-v.wheelDeltaX,E.deltaY=-v.wheelDeltaY):"wheelDelta"in v?(E.deltaX=0,E.deltaY=-v.wheelDelta):"axis"in v?(E.deltaX=v.axis===1?v.detail:0,E.deltaY=v.axis===2?v.detail:0):v.targetTouches&&(v=v.targetTouches[0],E.deltaX=$mA-v.pageX,E.deltaY=Le9-v.pageY));return E};
z$X=function(v){this.element=v;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
tr$=function(v){this.element=v;this.color=window.getComputedStyle(v).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");_.pG(this.waveContainer).appendChild(this.wave);R$$(this)};
XY=function(v,E){for(var n in v)if(n.toLowerCase()===E.toLowerCase())return v[n]};
Bx9=function(v,E){for(var n in v)if(n.toLowerCase()===E.toLowerCase()){delete v[n];break}};
E29=function(v){v=_.sh.clone(v);for(var E=0;E<v2$.length;++E){var n=v2$[E],f=XY(v,n);f&&(v["X-Goog-Upload-Header-"+n]=f,Bx9(v,n))}return v};
n2Q=function(v){v=_.sh.clone(v);Bx9(v,"X-Goog-Upload-Status")};
fr$=function(v){return o2E.some(function(E){return E.test(v)})};
pFG=function(v,E){var n;var f=(n=v.formContent)==null?void 0:n.locale;n=f==null?void 0:f.split("-")[0];f=f&&x9E.includes(f)?f:n&&x9E.includes(n)?n:void 0;f=(f!=null?f:"en").replaceAll("-","_").toLowerCase();var x;v=((x=v.initializationData)==null?0:x.useNightlyRelease)?"nightly":"live";var y;return(E==null?0:(y=E.getEnableAlohaBinarySplit)==null?0:y.call(E))?_.i_(c_I,v):_.i_(y_L,v,f)};
XF1=function(v,E,n,f){if(QWy)return QWy;var x=pFG(v,f);return QWy=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(y,Q){var e=_.oc("SCRIPT");_.Vv(e,x);e.onload=function(){E.feedbackV2GlobalObject?y(E.feedbackV2GlobalObject):Q(Error("ef"))};
e.onerror=function(){Q(Error("ff`"+x.toString()))};
n.body.appendChild(e)})};
FPI=function(v,E,n,f){if(euX)return euX;var x=pFG(v,f);return euX=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(y,Q){var e=_.oc("SCRIPT");_.Vv(e,x);e.onload=function(){E.feedbackV2GlobalObject?y(E.feedbackV2GlobalObject):Q(Error("ef"))};
e.onerror=function(){Q(Error("ff`"+x.toString()))};
n.body.appendChild(e)})};
m9E=function(v,E,n,f,x){x=x===void 0?!0:x;var y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:return y=Date.now(),_.m(l,XF1(v,n,f,E),2);case 2:Q=l.yieldResult;if(!(x||((F=v.initializationData)==null?0:F.useNightlyRelease)||((b=v.initializationData)==null?0:b.isLocalServer))){e=Q.initializeFeedbackClient(v,y,E);l.jumpTo(3);break}return _.m(l,Q.initializeFeedbackClientAsync(v,y,E),4);case 4:e=l.yieldResult;case 3:return e.initiateAloha(),l.return(e)}})};
wFI=function(v,E,n,f){var x,y,Q;return _.X(function(e){if(e.nextAddress==1)return x=Date.now(),_.m(e,FPI(v,n,f.document,E),2);if(e.nextAddress!=3)return y=e.yieldResult,_.m(e,y.initializeFeedbackClientAsync(v,x,E,f),3);Q=e.yieldResult;Q.initiateAloha();return e.return(Q)})};
byI=function(v,E,n){var f=!0;f=f===void 0?!0:f;var x,y,Q,e,F,b,l,r,a,M;return _.X(function(U){x=n||_.n1;if((y=E)==null?0:(e=(Q=y).getEnableAlohaBinarySplit)==null?0:e.call(Q)){F=x;if(F.isFormOpened)throw b=Error("gf"),b.name="DuplicateFormError",b;F.isFormOpened=!0;v.callbacks=v.callbacks||{};l=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(d){F.isFormOpened=!1;l(d)};
try{return U.return(wFI(v,E,F,x))}catch(d){throw F.isFormOpened=!1,d;}}else{r=x;if(r.isFormOpened)throw a=Error("gf"),a.name="DuplicateFormError",a;r.isFormOpened=!0;v.callbacks=v.callbacks||{};M=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(d){r.isFormOpened=!1;M(d)};
try{return U.return(m9E(v,E,r,x.document,f))}catch(d){throw r.isFormOpened=!1,d;}}_.yQ(U)})};
arE=function(v,E){return _.X(function(n){return n.return(new Promise(function(f){var x=lrX(E!=null?E:"")+"/aloha_form_properties?productId="+v;sWs(x,function(y){y=y.target;var Q=null;try{var e=JSON,F=e.stringify;if(y.JSC$7688_xhr_){var b=y.JSC$7688_xhr_.responseText;b.indexOf(")]}'\n")==0&&(b=b.substring(5));var l=(0,_.eK)(b)}else l=void 0;Q=obE(r_E,F.call(e,l))}catch(r){F=new r_E,l=PgE(),l=_.FY(l,13,!1),l=_.FY(l,14,!0),l=_.FY(l,15,!0),l=_.FY(l,20,!1),Q=_.Bz(F,1,l)}f(Q)},"GET","",{},2E3,!0)}))})};
lrX=function(v){return fr$(v)?v:"https://www.google.com/tools/feedback"};
SoX=function(v){v=v.match(new RegExp(ZyX,"gi"))||[];v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;a:{var n=_.p(Cg1);for(var f=n.next();!f.done;f=n.next())if(f.value.test(E)){n=!1;break a}n=!0}if(!n)a:{n=_.p(MPQ);for(f=n.next();!f.done;f=n.next())if(f.value.test(E)){n=!0;break a}n=!1}if(n)return!0}return!1};
U9X=function(v){switch(v){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"}};
J_X=function(v){if(window.crypto&&window.crypto.getRandomValues)try{var E=Array(v),n=new Uint8Array(v);window.crypto.getRandomValues(n);for(var f=0;f<E.length;f++)E[f]=n[f];return E}catch(y){}E=Array(v);for(n=0;n<v;n++){f=Date.now();for(var x=0;x<f%23;x++)E[n]=Math.random();E[n]=Math.floor(Math.random()*256)}if(qoX)for(n=1,f=0;f<qoX.length;f++)E[n%v]^=E[(n-1)%v]/4^qoX.charCodeAt(f),n++;return E};
mu=function(v){v=J_X(v);for(var E=[],n=0;n<v.length;n++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[n]&63));return E.join("")};
d91=function(v){v&&_.eQ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:KPQ,clientScreenNonce:v})};
Irs=function(v){return _.MX("client-screen-nonce-store",{})[v===void 0?0:v]};
Yo$=function(v,E){E=E===void 0?0:E;var n=_.MX("client-screen-nonce-store");n||(n={},_.Ck("client-screen-nonce-store",n));n[E]=v};
huQ=function(v){v=v===void 0?0:v;return v===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+v};
A_L=function(v){return _.MX(huQ(v===void 0?0:v))};
_.bc=function(v){return(v=A_L(v===void 0?0:v))?new _.wM({veType:v,youtubeData:void 0,jspbYoutubeData:void 0}):null};
VP9=function(){var v=_.MX("csn-to-ctt-auth-info");v||(v={},_.Ck("csn-to-ctt-auth-info",v));return v};
D9Q=function(){return Object.values(_.MX("client-screen-nonce-store",{})).filter(function(v){return v!==void 0})};
_.lc=function(v){v=Irs(v===void 0?0:v);if(!v&&!_.Sp("USE_CSN_FALLBACK",!0))return null;v||(v="UNDEFINED_CSN");return v?v:null};
g2E=function(v){for(var E=_.p(Object.values(Hy9)),n=E.next();!n.done;n=E.next())if(_.lc(n.value)===v)return!0;return!1};
NkX=function(v,E,n){var f=VP9();(n=_.lc(n))&&delete f[n];E&&(f[v]=E)};
sL=function(v){return VP9()[v]};
_.uXs=function(v,E,n,f){n=n===void 0?0:n;if(v!==Irs(n)||E!==_.MX(huQ(n)))if(NkX(v,f,n),Yo$(v,n),_.Ck(huQ(n),E),E=function(){setTimeout(function(){d91(v)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(E)}catch(x){E()}else E()};
jWX=function(v,E){E=E===void 0?"":E;var n=[],f;for(f in v)if(v.hasOwnProperty(f)){var x=E!==""?E+"."+f:f;typeof v[f]==="object"?n.push.apply(n,_.s8(jWX(v[f],x))):n.push([x,v[f]])}n.sort();return n};
_.kuE=function(v){var E=_.rV.apply(1,arguments);if(!Pq(v)||E.some(function(f){return!Pq(f)}))throw Error("hf");
E=_.p(E);for(var n=E.next();!n.done;n=E.next())OyI(v,n.value)};
OyI=function(v,E){for(var n in E)if(Pq(E[n])){if(n in v&&!Pq(v[n]))throw Error("jf");n in v||(v[n]={});OyI(v[n],E[n])}else if(WP$(E[n])){if(n in v&&!WP$(v[n]))throw Error("kf");n in v||(v[n]=[]);$9E(v[n],E[n])}else v[n]=E[n];return v};
$9E=function(v,E){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,Pq(n)?v.push(OyI({},n)):WP$(n)?v.push($9E([],n)):v.push(n);return v};
Pq=function(v){return typeof v==="object"&&!Array.isArray(v)};
WP$=function(v){return typeof v==="object"&&Array.isArray(v)};
GuI=function(v){for(var E=_.p(Object.entries(LPI)),n=E.next();!n.done;n=E.next())if(n=_.p(n.value),n.next(),n=n.next().value,n==="SLI_STATUS_"+v)return n;return"SLI_STATUS_UNKNOWN"};
_.aT=function(v,E,n,f){return TkQ(v,E,function(){return new _.iyF(v,E,n,f)})};
_.zuE=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Ru1=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Zl=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
tP9=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
BkQ=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
vYE=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
oYy=function(v){v&&(v.dataset?v.dataset[EYA()]="true":_.H5([_.G6(nY$)],v,"data-loaded","true".toString()))};
f6N=function(v){return v?v.dataset?v.dataset[EYA()]:v.getAttribute("data-loaded"):null};
EYA=function(){return xTL.loaded||(xTL.loaded="loaded".replace(/\-([a-z])/g,function(v,E){return E.toUpperCase()}))};
_.CG=function(v,E,n){ctI(v,E,n===void 0?null:n)};
_.plF=function(v,E){v&&E&&(v=""+_.xw(E),(v=ytN[v])&&_.pE$(v))};
ctI=function(v,E,n){n=n===void 0?null:n;var f=_.Q_A(v),x=document.getElementById(f),y=x&&f6N(x),Q=x&&!y;y?E&&E():(E&&(y=_.W7(f,E),E=""+_.xw(E),ytN[E]=y),Q||(x=XlQ(v,f,function(){f6N(x)||(oYy(x),_.QUI(f),_.Ta(function(){_.eLN(f)},0))},n)))};
XlQ=function(v,E,n,f){f=f===void 0?null:f;var x=_.oc("SCRIPT");x.id=E;x.onload=function(){n&&setTimeout(n,0)};
x.onreadystatechange=function(){switch(x.readyState){case "loaded":case "complete":x.onload()}};
f&&x.setAttribute("nonce",f);_.Vv(x,_.FV(v));v=document.getElementsByTagName("head")[0]||document.body;v.insertBefore(x,v.firstChild);return x};
_.Q_A=function(v){var E=document.createElement("a");Cc(E,v);return"js-"+MA(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ek1=function(v){var E=_.MX("INNERTUBE_HOST_OVERRIDE");E&&(v=String(E)+String(_.SK(v)));return v};
F2I=function(v){var E={};_.Z("json_condensed_response")&&(E.prettyPrint="false");return v=ImF(v,E)};
_.UL=function(v){return NX(v)?"same-origin":"include"};
_.qA=function(v){return NX(v)?"same-origin":"cors"};
JQ=function(v,E,n){n=n===void 0?{}:n;v={method:E===void 0?"POST":E,mode:_.qA(v),credentials:_.UL(v)};E={};for(var f=_.p(Object.keys(n)),x=f.next();!x.done;x=f.next())x=x.value,n[x]&&(E[x]=n[x]);Object.keys(E).length>0&&(v.headers=E);return v};
_.KG=function(v,E){E=E===void 0?{}:E;return"service:"+v+"/"+Object.keys(E).sort().map(function(n){return n+":"+E[n]}).join("/")};
mT$=function(v){var E,n,f,x;v=(E=_.C(v,_.dM))==null?void 0:(n=E.watchEndpointSupportedOnesieConfig)==null?void 0:(f=n.html5PlaybackOnesieConfig)==null?void 0:(x=f.commonConfig)==null?void 0:x.url;if(!v)return[];E=new _.IT(v);return E.JSC$7925_domain_?["https://"+E.JSC$7925_domain_+"/generate_204"]:[]};
_.l6$=function(){return wly()||AQG()||bLX&&rd("version/")?!0:_.MX("EOM_VISITOR_DATA")?!1:!0};
s_X=function(v){var E=v.docid||v.video_id||v.videoId||v.id;if(E)return E;E=v.raw_player_response;E||(v=v.player_response)&&(E=JSON.parse(v));return E&&E.videoDetails&&E.videoDetails.videoId||null};
rt9=function(v){return v.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
YZ=function(v){return!isNaN(Number(v))&&!_.XN(v)};
_.AQ=function(v,E,n,f){f=f===void 0?!0:f;var x=_.MX("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=_.HG(window.location.href);y&&x.push(y);y=_.HG(v);if(_.L1(x,y)||!y&&_.cI(v,"/"))if(x=document.createElement("a"),Cc(x,v),v=x.href)if(v=_.SK(v),v=_.hQ(v))f&&!E.csn&&(E.itct||E.ved)&&(E=Object.assign({csn:_.lc()},E)),n?(n=parseInt(n,10),isFinite(n)&&n>0&&PwE(v,E,n)):PwE(v,E)};
ZLL=function(v){var E=_.MX("VALID_SESSION_TEMPDATA_DOMAINS",[]),n=_.HG(window.location.href);n&&E.push(n);n=_.HG(v);if(!(_.L1(E,n)||!n&&_.cI(v,"/")))return null;v=_.SK(v);(v=_.hQ(v))?(v=a6Q(v),v=(v=_.nE.get(v,void 0)||null)?_.Y6(v):{}):v=null;return v};
PwE=function(v,E,n){v=a6Q(v);E=E?_.BG(E):"";n=n||5;_.l6$()&&_.oP(v,E,n)};
a6Q=function(v){for(var E=_.p(Cw9),n=E.next();!n.done;n=E.next())v=_.VT(v,n.value);return"ST-"+MA(v).toString(36)};
M0A=function(v,E){v.commandMetadata&&_.C(v.commandMetadata,_.Dl)&&_.C(v.commandMetadata,_.Dl).url&&(v=_.hM(_.C(v.commandMetadata,_.Dl).url).adurl)&&_.hf$(v)&&_.AQ(_.SK(v),{encoded_ad_playback_context:E})};
_.S69=function(v){if(v.requestFullscreen)v=v.requestFullscreen(void 0);else if(v.webkitRequestFullscreen)v=v.webkitRequestFullscreen();else if(v.mozRequestFullScreen)v=v.mozRequestFullScreen();else if(v.msRequestFullscreen)v=v.msRequestFullscreen();else if(v.webkitEnterFullscreen)v=v.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return v instanceof Promise?v:Promise.resolve()};
_.gM=function(v){var E;_.zVF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Hq()==v&&(E=document):E=v;if(E&&(v=_.zVF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],E))){v.call(E)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Hq=function(){var v=v===void 0?!1:v;var E=_.zVF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(v)for(;E&&E.shadowRoot;)E=E.shadowRoot.fullscreenElement;return E?E:null};
_.NA=function(v,E){E=E===void 0?!0:E;v.addEventListener("wheel",UTQ);v.overscrollConfig={cooldown:E}};
_.uc=function(v){v.overscrollConfig=void 0;v.removeEventListener("wheel",UTQ)};
UTQ=function(v){var E=v.deltaY,n=v.target,f=null;if(window.Polymer&&window.Polymer.Element){if(n=v.path||v.composedPath&&v.composedPath()){n=_.p(n);for(var x=n.next();!x.done&&(x=x.value,!q6E(x,E));x=n.next())if(x.overscrollConfig){f=x;break}}}else for(;n&&!q6E(n,E);){if(n.overscrollConfig){f=n;break}n=n.parentElement}f&&(E=f.overscrollConfig,E.cooldown?(f=v.deltaY,n=E.lastDeltaY||0,E.lastDeltaY=f,x=E.lastStopped||0,n&&x&&n>0==f>0?Math.abs(n)>=Math.abs(f)?(f=x+1200,n=!1):(f=x+600,n=!0):(f=Date.now()+
600,n=!0),f>Date.now()&&(v.preventDefault(),n&&(E.lastStopped=Date.now()))):v.preventDefault())};
q6E=function(v,E){return E<0&&v.scrollTop>0||E>0&&v.scrollTop<v.scrollHeight-v.clientHeight-1?(v=getComputedStyle(v).overflowY,v=="auto"||v=="scroll"):!1};
_.jK=function(v,E,n,f){f||(f={bubbles:!0,cancelable:!1,composed:!0});n!==null&&n!==void 0&&(f.detail=n);E=new CustomEvent(E,f);v.dispatchEvent(E);return E};
_.OL=function(v,E,n,f){E=new JtE(E,!(f===void 0||!f),n);_.jK(v,"yt-action",E);return E.returnValue};
_.kZ=function(v,E,n){return _.OL(v,E,n,!0)};
_.Wq=function(v,E,n){return _.OL(v,E,n)[0]};
_.LG=function(v,E,n,f){E&&E.length&&E.forEach(function(x){var y=TJs(x);y&&(_.Z("handle_service_request_actions")&&x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.$Z(n?n:v,[x]):_.kZ(v,y,[x,n,f]))})};
_.$Z=function(v,E){var n=[v];E&&n.push.apply(n,E);E=_.OL(v,"yt-service-request",n);return E.length>0&&(E=E[0],_.jK(v,"yt-service-request-sent",E),E&&E.ajaxPromise)?(E.ajaxPromise.then(function(f){_.jK(v,"yt-service-request-completed",f)},function(f){_.jK(v,"yt-service-request-error",{error:f,
params:n})},v),E.ajaxPromise):_.Gn()};
_.ic=function(v,E){if(_.Z("handle_service_request_actions"))_.LG(E,v,E);else{v=_.p(v);for(var n=v.next();!n.done;n=v.next()){n=n.value;var f=void 0;((f=_.C(n,_.Tn))==null?0:f.commands)?_.ic(_.C(n,_.Tn).commands,E):(f=void 0,((f=_.C(n,_.zn))==null?0:f.actions)?_.ic(_.C(n,_.zn).actions,E):(f=void 0,((f=_.C(n.commandMetadata,_.Dl))==null?0:f.sendPost)?_.$Z(E,[n]):_.LG(E,[n],E)))}}};
_.dTE=function(v,E,n){E=E===void 0?{}:E;typeof E==="function"&&(E={callback:E});n||E._c&&E._c.jsl&&E._c.jsl.h||_.sh.extend(E,{_c:{jsl:{h:_.MX("GAPI_HINT_PARAMS")}}});(E.gapiHintOverride||_.MX("GAPI_HINT_OVERRIDE"))&&(n=_.hM(document.location.href).gapi_jsh)&&_.sh.extend(E,{_c:{jsl:{h:n}}});K29(v,E)};
_.tQ=function(v,E,n){E=E===void 0?{}:E;v=(v=v in RT?RT[v]:n)||"";n={};for(var f in E){n={key$jscomp$788:n.key$jscomp$788};n.key$jscomp$788=f;var x=function(y){return function(){return String(E[y.key$jscomp$788])}}(n);
v=v.replace(new RegExp("\\$\\{"+n.key$jscomp$788+"\\}","gi"),x);v=v.replace(new RegExp("\\$"+n.key$jscomp$788,"gi"),x)}return v};
_.Bq=function(v,E){return I6I(v in RT?RT[v]:{},E)};
I6I=function(v,E){var n=_.MX("I18N_PLURAL_RULES");n||(n=function(f){return f==1?"one":"other"});
return(v=v["case"+E]||v[n(E)])?v.replace("#",E.toString()):E+""};
Aty=function(v){var E=Y6X(v),n=document.getElementById(E),f=n&&f6N(n);f||n&&!f||(n=hkX(v,E,function(){if(!f6N(n)){oYy(n);_.QUI(E);var x=_.vR(_.eLN,E);_.Ta(x,0)}}))};
hkX=function(v,E,n){var f=document.createElement("link");f.id=E;f.onload=function(){n&&setTimeout(n,0)};
v=_.FV(v);_.gV(f,v,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(f);return f};
Y6X=function(v){var E=_.oc("A");Cc(E,Qv(v));return"css-"+MA(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.DTX=function(v){var E=V09();v!==E&&(E=_.Ef(),!_.Z("web_autonav_allow_off_by_default")&&v||_.nH(0,141,!0),_.nH(0,140,!v),E.save())};
V09=function(){var v=_.Ef();return _.Z("web_autonav_allow_off_by_default")&&!v.getFlag(141)&&_.MX("AUTONAV_OFF_BY_DEFAULT")?!1:!v.getFlag(140)};
HLQ=function(v,E){var n,f;v=((n=v.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=n.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(n=0;n<v.length;++n)if(v[n].scope===E)return v[n].token||void 0};
gYI=function(v){for(var E=0,n=0;n<v.length;n++)E=E*31+v.charCodeAt(n),n<v.length-1&&(E%=0x800000000000);return E%1E5};
_.oQ=function(v){return _.JM("ytcsi."+(v||"")+"data_")||N$Q(v)};
_.uS1=function(v){v=_.oQ(v);v.metadata||(v.metadata={});return v.metadata};
_.j_9=function(v){v=_.oQ(v);v.tick||(v.tick={});return v.tick};
_.OL1=function(v){v=_.oQ(v);if(v.gel){var E=v.gel;E.gelInfos||(E.gelInfos={});E.gelTicks||(E.gelTicks={})}else v.gel={gelTicks:{},gelInfos:{}};return v.gel};
_.k0E=function(v){v=_.OL1(v);v.gelInfos||(v.gelInfos={});return v.gelInfos};
W2Q=function(v){var E=_.oQ(v).nonce;E||(E=mu(16),_.oQ(v).nonce=E);return E};
N$Q=function(v){var E={tick:{},info:{}};_.Vc("ytcsi."+(v||"")+"data_",E);return E};
$Ts=function(){var v=_.JM("ytcsi.debug");v||(v=[],_.Vc("ytcsi.debug",v),_.Vc("ytcsi.reference",{}));return v};
_.G0E=function(v){v=v||"";var E=L2y();if(E[v])return E[v];var n=$Ts(),f={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};n.push(f);return E[v]=f};
T$s=function(v){v=v||"";var E=L2y();E[v]&&delete E[v];var n=$Ts(),f={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};n.push(f);E[v]=f};
L2y=function(){var v=_.JM("ytcsi.reference");if(v)return v;$Ts();return _.JM("ytcsi.reference")};
_.zk9=function(v){return iLE[v]||"LATENCY_ACTION_UNKNOWN"};
veF=function(v,E,n){n=n===void 0?{}:n;var f=!1;_.Sp("ytLoggingEventsDefaultDisabled",!1)&&(f=!0);f=f?null:Xu;n=n===void 0?{}:n;var x=Math.round(n.timestamp||(0,_.gd)());_.f3(E,1,x<Number.MAX_SAFE_INTEGER?x:0);x=new RkI;if(n.lact)_.f3(x,1,isFinite(n.lact)?n.lact:-1);else if(n.timestamp)_.f3(x,1,-1);else{var y=_.gh();_.f3(x,1,isFinite(y)?y:-1)}if(n.sequenceGroup&&!_.Z("web_gel_sequence_info_killswitch")){y=n.sequenceGroup;var Q=ZRE(y),e=new t0X;_.f3(e,2,Q);_.ps(e,1,y);_.Bz(x,3,e);n.endOfSequence&&delete B$E[n.sequenceGroup]}_.Bz(E,
33,x);(n.sendIsolatedPayload?Jxs:K$E)(v,{endpoint:"log_event",payload:E,cttAuthInfo:n.cttAuthInfo,dangerousLogToVisitorSession:n.dangerousLogToVisitorSession},f)};
_.xs=function(){return(_.Z("csi_use_time_origin")||_.Z("csi_use_time_origin_tvhtml5"))&&_.fH.timeOrigin?Math.floor(_.fH.timeOrigin):_.fH.timing.navigationStart};
_.EeG=function(v,E){_.cR("_start",v,E)};
_.yf=function(v,E){if(!_.Z("web_csi_action_sampling_enabled")||!_.oQ(E).actionDisabled){var n=_.G0E(E||"");_.kuE(n.info,v);v.loadType&&(n=v.loadType,_.uS1(E).loadType=n);_.kuE(_.k0E(E),v);n=W2Q(E);E=_.oQ(E).cttAuthInfo;neX().info(v,n,E)}};
oe1=function(){var v,E,n,f;return((f=_.P().resolve(_.jp(ys))==null?void 0:(v=aaE())==null?void 0:(E=v.loggingHotConfig)==null?void 0:(n=E.csiConfig)==null?void 0:n.debugTicks)!=null?f:[]).map(function(x){return Object.values(x)[0]})};
_.cR=function(v,E,n){if(!_.Z("web_csi_action_sampling_enabled")||!_.oQ(n).actionDisabled){var f=W2Q(n),x;if(x=_.Z("web_csi_debug_sample_enabled")&&f){(_.P().resolve(_.jp(ys))==null?0:aaE())&&!fXX&&(fXX=!0,_.cR("gcfl",(0,_.gd)(),n));var y,Q,e;x=(_.P().resolve(_.jp(ys))==null?void 0:(y=aaE())==null?void 0:(Q=y.loggingHotConfig)==null?void 0:(e=Q.csiConfig)==null?void 0:e.debugSampleWeight)||0;if(y=x!==0)b:{y=oe1();if(y.length>0)for(Q=0;Q<y.length;Q++)if(v===y[Q]){y=!0;break b}y=!1}y?(x=gYI(f)%x!==0,
_.oQ(n).debugTicksExcludedLogged||(y={},y.debugTicksExcluded=x,_.yf(y,n)),_.oQ(n).debugTicksExcludedLogged=!0):x=!1}if(!x){v[0]!=="_"&&x_$(v,n,E);x=_.G0E(n||"");x.tick[v]=E||(0,_.gd)();if(x.callback&&x.callback[v])for(x=_.p(x.callback[v]),y=x.next();!y.done;y=x.next())y=y.value,y();x=_.OL1(n);x.gelTicks&&(x.gelTicks[v]=!0);y=_.j_9(n);x=E||(0,_.gd)();_.Z("log_repeated_ytcsi_ticks")?v in y||(y[v]=x):y[v]=x;y=_.oQ(n).cttAuthInfo;v==="_start"?neX().baseline(f,E,y):neX().tick(v,f,E,y);_.cSX(n);return x}}};
x_$=function(v,E,n){if(_.fH.mark)if(v.startsWith("mark_")||(v="mark_"+v),E&&(v+=" ("+E+")"),n===void 0||_.Z("web_csi_disable_alt_time_performance_mark"))_.fH.mark(v);else{n=_.Z("csi_use_performance_navigation_timing")||_.Z("csi_use_performance_navigation_timing_tvhtml5")?n-_.fH.timeOrigin:n-(_.fH.timeOrigin||_.fH.timing.navigationStart);try{_.fH.mark(v,{startTime:n})}catch(f){}}};
ySN=function(){var v,E=(v=_.fH.getEntriesByType)==null?void 0:v.call(_.fH,"mark");E&&E.forEach(function(n){if(n.name.startsWith("mark_")){var f;(f=_.fH.clearMarks)==null||f.call(_.fH,n.name)}})};
_.pN1=function(){switch(i2N()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.Q9s=function(v){var E={},n=function(y,Q,e){Q=Q.match("_rid")?Q.split("_rid")[0]:Q;typeof e==="number"&&(e=JSON.stringify(e));y.requestIds?y.requestIds.push({endpoint:Q,id:e}):y.requestIds=[{endpoint:Q,id:e}]};
v=_.p(Object.entries(v));for(var f=v.next();!f.done;f=v.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;switch(f){case "GetBrowse_rid":n(E,f,x);break;case "GetGuide_rid":n(E,f,x);break;case "GetHome_rid":n(E,f,x);break;case "GetPlayer_rid":n(E,f,x);break;case "GetSearch_rid":n(E,f,x);break;case "GetSettings_rid":n(E,f,x);break;case "GetTrending_rid":n(E,f,x);break;case "GetWatchNext_rid":n(E,f,x);break;case "yt_red":E.isRedSubscriber=!!x;break;case "yt_ad":E.isMonetized=!!x}}return E};
_.XNG=function(v){var E=_.pH("aft",v);if(E)return E;E=_.MX((v||"")+"TIMING_AFT_KEYS",["ol"]);for(var n=E.length,f=0;f<n;f++){var x=_.pH(E[f],v);if(x)return x}return NaN};
_.emX=function(v,E){_.Vc("ytglobal.timing"+(E||"")+"ready_",v)};
_.pH=function(v,E){if(v=_.j_9(E)[v])return typeof v==="number"?v:v[v.length-1]};
_.cSX=function(v){var E=_.pH("_start",v),n=_.XNG(v),f=!FjE;E&&n&&f&&(PxX(m_G,new wNX(Math.round(n-E),v)),FjE=!0)};
lXL=function(v){N$Q(v);bz1();ySN();v||(_.MX("TIMING_ACTION")&&_.Ck("PREVIOUS_ACTION",_.MX("TIMING_ACTION")),_.Ck("TIMING_ACTION",""))};
_.s9$=function(v){v=v===void 0?{}:v;_.qX(function(){Qf();T$s();lXL();_.emX(!1);v.cttAuthInfo&&(_.oQ().cttAuthInfo=v.cttAuthInfo);_.Ck("TIMING_AFT_KEYS",[]);v.isHot?_.XD({loadType:"hot"}):_.XD({loadType:"warm"});_.Ck("TIMING_ACTION","");delete _.MX("TIMING_INFO",{}).yt_lt;_.qX(_.EeG)(v.startTime,void 0)})()};
_.e7=function(v,E,n,f){E=E===void 0?{}:E;_.qX(function(){var x=n?n:v;rSN(x);var y=E.sampleRate;if(!_.Z("web_csi_action_sampling_enabled")||y===void 0||y<=1)y=!1;else{var Q=W2Q(x);y=gYI(Q)%y!==0}y&&(_.oQ(x).actionDisabled=!0);_.G0E(x||"").info.actionType=v;E.cttAuthInfo&&(_.oQ(x).cttAuthInfo=E.cttAuthInfo);_.Ck(x+"TIMING_ACTION",v);_.qX(_.EeG)(E.startTime,x);y={actionType:f||_.zk9(v)};E.logPreviousAction&&(y.previousAction=_.zk9(_.MX("TIMING_ACTION")));(Q=_.lc())&&Q!=="UNDEFINED_CSN"&&(y.clientScreenNonce=
Q);_.XD(y,x);_.emX(!0,x)})()};
rSN=function(v){_.qX(function(){Qf(v);T$s(v);lXL(v)})()};
PFN=function(){_.qX(function(){var v=[],E;for(E in _.JM("ytcsi.".slice(0,-1)))E.endsWith("data_")&&v.push(E.slice(0,-5));v=_.p(v);for(E=v.next();!E.done;E=v.next())rSN(E.value);Qf()})()};
_.ZzF=function(v){return _.qX(function(){return _.aX$("_start",v)})()};
_.XD=function(v,E,n){_.qX(_.yf)(v,E,n===void 0?!1:n)};
_.FD=function(v,E,n){return _.qX(_.cR)(v,E,n)};
_.aX$=function(v,E){return _.qX(function(){var n=_.j_9(E);return v in n})()};
M2X=function(v){if(!_.Z("universal_csi_network_ticks"))return"";v=_.R5(v)||"";for(var E=Object.keys(CFI),n=0;n<E.length;n++){var f=E[n];if(v.includes(f))return f}return""};
U_E=function(v){if(!_.Z("universal_csi_network_ticks"))return function(){};
var E=CFI[v];return E?(_.m5(E),function(){var n=_.Z("universal_csi_network_ticks")?(n=SMX[v])?_.m5(n):!1:!1;return n}):function(){}};
_.m5=function(v,E,n){return _.qX(function(){if(_.aX$(v,n))return!1;_.FD(v,E,n);return!0})()};
_.wj=function(v,E,n){_.qX(function(){if(!_.ZzF(n)||_.aX$(v,n))return!1;_.FD(v,E,n);return!0})()};
_.bn=function(v){return _.qX(_.pH)(v,void 0)};
Qf=function(v){_.ZzF(v)&&_.FD("aa",void 0,v)};
_.IXA=function(v,E,n,f,x,y,Q,e,F){var b=qMy();e=new _.wM({veType:E,youtubeData:y,jspbYoutubeData:e});y=ln({},b);x&&(y.cttAuthInfo=x);x={csn:b,pageVe:e.getAsJson()};_.Z("expectation_logging")&&F&&F.screenCreatedLoggingExpectations&&(x.screenCreatedLoggingExpectations=F.screenCreatedLoggingExpectations);n&&n.visualElement?(x.implicitGesture={parentCsn:n.clientScreenNonce,gesturedVe:n.visualElement.getAsJson()},Q&&(x.implicitGesture.gestureType=Q)):n&&_.li(new _.yc("newScreen() parent element does not have a VE - rootVe",
E));f&&(x.cloneCsn=f);v?Qs("screenCreated",x,v,y):_.eQ("screenCreated",x,y);PxX(qb$,new JSL(b));sf.clear();KjF.clear();d_y.clear();return b};
rj=function(v,E,n,f,x){_.YME(v,E,n,[f],x===void 0?!1:x)};
_.YME=function(v,E,n,f,x){x=x===void 0?!1:x;for(var y=ln({cttAuthInfo:sL(E)||void 0},E),Q=_.p(f),e=Q.next();!e.done;e=Q.next()){e=e.value;var F=e.getAsJson();(_.sh.isEmpty(F)||!F.trackingParams&&!F.veType)&&_.li(Error("uf"));if(_.Z("no_client_ve_attach_unless_shown")){var b=hmX(e,E);if(F.veType&&!KjF.has(b)&&!d_y.has(b)&&!x){if(!_.Z("il_attach_cache_limit")||sf.size<1E3){sf.set(b,[v,E,n,e]);return}_.Z("il_attach_cache_limit")&&sf.size>1E3&&_.li(new _.yc("IL Attach cache exceeded limit"))}e=hmX(n,
E);sf.has(e)?ASE(n,E):d_y.set(e,!0)}}f=f.filter(function(l){l.csn!==E?(l.csn=E,l=!0):l=!1;return l});
n={csn:E,parentVe:n.getAsJson(),childVes:_.rA(f,function(l){return l.getAsJson()})};
E==="UNDEFINED_CSN"?PR("visualElementAttached",y,n):v?Qs("visualElementAttached",n,v,y):_.eQ("visualElementAttached",n,y)};
D_Q=function(v,E,n,f,x){V2E(v,E,n,x)};
V2E=function(v,E,n,f){HzG(n,E);var x=ln({cttAuthInfo:sL(E)||void 0},E);n={csn:E,ve:n.getAsJson(),eventType:1};f&&(n.clientData=f);E==="UNDEFINED_CSN"?PR("visualElementShown",x,n):v?Qs("visualElementShown",n,v,x):_.eQ("visualElementShown",n,x)};
geN=function(v,E,n,f){HzG(n,E);var x=ln({cttAuthInfo:sL(E)||void 0},E);n={csn:E,ve:n.getAsJson(),eventType:4};f&&(n.clientData=f);E==="UNDEFINED_CSN"?PR("visualElementShown",x,n):v?Qs("visualElementShown",n,v,x):_.eQ("visualElementShown",n,x)};
NlN=function(v,E,n,f,x){var y=(f=f===void 0?!1:f)?16:8;f=ln({cttAuthInfo:sL(E)||void 0,endOfSequence:f},E);n={csn:E,ve:n.getAsJson(),eventType:y};x&&(n.clientData=x);E==="UNDEFINED_CSN"?PR("visualElementHidden",f,n):v?Qs("visualElementHidden",n,v,f):_.eQ("visualElementHidden",n,f)};
j9$=function(v,E,n,f,x){u6X(v,E,n,void 0,f,x)};
u6X=function(v,E,n,f,x){HzG(n,E);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var y=ln({cttAuthInfo:sL(E)||void 0},E);n={csn:E,ve:n.getAsJson(),gestureType:f};x&&(n.clientData=x);E==="UNDEFINED_CSN"?PR("visualElementGestured",y,n):v?Qs("visualElementGestured",n,v,y):_.eQ("visualElementGestured",n,y)};
OzG=function(v,E,n,f){var x=ln({cttAuthInfo:sL(E)||void 0},E);n={csn:E,ve:n.getAsJson(),clientData:f};E==="UNDEFINED_CSN"?PR("visualElementStateChanged",x,n):v?Qs("visualElementStateChanged",n,v,x):_.eQ("visualElementStateChanged",n,x)};
k5I=function(){var v=J_X(16);for(var E=[],n=0;n<v.length;n++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[n]&63));return E.join("")};
PR=function(v,E,n){WjI.push({payloadName:v,payload:n,jspbPayload:void 0,options:E});$_y||($_y=KW9())};
UDX=function(v){if(WjI){for(var E=_.p(WjI),n=E.next();!n.done;n=E.next())n=n.value,n.payload&&(n.payload.csn=v.csn,_.eQ(n.payloadName,n.payload,n.options));WjI.length=0}$_y=0};
hmX=function(v,E){return""+v.getAsJson().veType+v.getAsJson().veCounter+E};
HzG=function(v,E){if(_.Z("no_client_ve_attach_unless_shown")){var n=hmX(v,E);KjF.set(n,!0);ASE(v,E)}};
ASE=function(v,E){v=hmX(v,E);sf.has(v)&&(E=sf.get(v)||[],rj(E[0],E[1],E[2],E[3],!0),sf.delete(v))};
ln=function(v,E){_.Z("log_sequence_info_on_gel_web")&&(v.sequenceGroup=E);return v};
_.aQ=function(v,E,n){_.qX(rj)(void 0,v,E,n)};
_.ZI=function(v,E){_.qX(D_Q)(void 0,v,E,void 0,void 0,void 0)};
_.CH=function(v,E,n){_.qX(function(){_.I5(E,function(f){geN(void 0,v,f,n)})})()};
_.Mx=function(v,E,n,f){_.qX(function(){_.I5(E,function(x){NlN(void 0,v,x,n,f)})})()};
_.qx=function(v,E,n){_.qX(j9$)(void 0,v,E,n,void 0)};
_.Jc=function(v,E,n,f){_.qX(u6X)(void 0,v,E,n,f,void 0)};
_.KH=function(v,E,n){_.qX(OzG)(void 0,v,E,n,void 0)};
IQ=function(v){return dj.get(v)};
Lj9=function(v,E){dj.set(v,E)};
G5N=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(v){return(+v^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+v/4).toString(16)})};
RmE=function(v,E){E=E===void 0?{}:E;if(Ys&&Ys.sample(v,E)){var n=TlG++,f,x;v=new izX(v,E,performance.now(),n,zmL,(x=(f=hc)==null?void 0:f.traceId)!=null?x:n);if(hc){var y;(y=hc).children||(y.children=[]);hc.children.push(v)}n=_.p(Ys.spanProcessors);for(f=n.next();!f.done;f=n.next())y=x=void 0,(y=(x=f.value).onSpanStart)==null||y.call(x,v);return hc=v}};
t2N=function(v){var E;return(E=Ys)==null?void 0:E.sample(v,void 0)};
BlA=function(v){zmL=G5N();Ys=v};
vq1=function(v,E,n){if(!v)return E(n);var f=void 0;try{return E(n)}catch(x){throw f="error",x;}finally{v==null||v.close(f)}};
EqN=function(v,E){var n=Object.keys(v);v=new _.yc("[Command Handler] "+E,{filteredCommandNames:n,originalCommand:v});_.mb(v)};
nqy=function(v,E){EqN(v,E+" was called but not set")};
oqA=function(v){return function(){return new v}};
Ac=function(v){return function(){return _.P().resolve(v)}};
fes=function(v,E){var n=_.C(v,_.Z4);if(n&&(n=E[n.signal]))return n();v=_.p(Object.keys(v));for(n=v.next();!n.done;n=v.next())if(n=n.value,E[n]&&(n=E[n]))return n()};
Vf=function(v,E,n,f){return{browseEndpoint:{browseId:v},commandMetadata:{webCommandMetadata:{url:E,rootVe:n,webPageType:f===void 0?"WEB_PAGE_TYPE_BROWSE":f}}}};
x71=function(v,E,n){var f=E=E===void 0?0:E;n=n===void 0?0:n;var x=n-f;return _.DI(v,"PPSV",void 0,void 0,(x>600?0:x<60||n<=0||f/n>.9)?0:E)};
_.DI=function(v,E,n,f,x){var y="/watch?v="+v;v={videoId:v};E&&(v.playlistId=E,y+="&list="+E);f&&(y+="&pp="+f);x&&(v.startTimeSeconds=x,y+="&t="+x+"s");E={watchEndpoint:v,commandMetadata:{webCommandMetadata:{url:y,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};n&&(E.clickTrackingParams=n);f&&(_.C(E,_.dM).playerParams=f);return E};
cTX=function(v){return{browseEndpoint:{browseId:"VL"+v},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+v,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
yTX=function(v){if(v){var E;if(v){var n=(E=_.C(v.commandMetadata,_.Dl))==null?void 0:E.url;E=!(!n||n==="/service_ajax")}else E=!1;if(E)return v;var f;if(v=(f=_.C(v,_.Tn))==null?void 0:f.commands)for(f=_.p(v),v=f.next();!v.done;v=f.next())if(v=yTX(v.value))return v}};
_.HR=function(v){return{runs:[{text:v}]}};
pXL=function(v,E){return v&&E?{runs:[{text:v,navigationEndpoint:E}]}:void 0};
gj=function(v){return v?_.HR(v):void 0};
_.Nx=function(v){return v?{simpleText:v}:void 0};
_.un=function(v){var E=v.type;v=v.payload;E={type:E};v!==void 0&&(E.payload=v);return E};
Q4L=function(v,E,n){for(var f=Object.assign({},v),x=_.p(Object.keys(E)),y=x.next();!y.done;y=x.next()){y=y.value;var Q=v[y],e=E[y];if(e===void 0)delete f[y];else if(Q===void 0)f[y]=e;else if(Array.isArray(e)&&Array.isArray(Q))f[y]=n?[].concat(_.s8(Q),_.s8(e)):e;else if(!Array.isArray(e)&&_.oF(e)&&!Array.isArray(Q)&&_.oF(Q))f[y]=Q4L(Q,e,n);else if(typeof e===typeof Q)f[y]=e;else return E=new _.yc("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:y,originalValue:Q,updateValue:e}),
_.mb(E),v}return f};
F4s=function(v){if(!v.length)return"";try{if(XXN)return XXN.decode(v);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(v)}catch(Q){}for(var E=0,n=[],f=v.length;E<f;){for(var x=0;x<1024&&E<f;){var y=v[E++];if(y<128)eML[x++]=y;else{if(y<224)y=(y&31)<<6|v[E++]&63;else if(y<240)y=(y&15)<<12|(v[E++]&63)<<6|v[E++]&63;else{if(x+1===1024){--E;break}y=(y&7)<<18|(v[E++]&63)<<12|(v[E++]&63)<<6|v[E++]&63;y-=65536;eML[x++]=55296|y>>10;y=56320|y&1023}eML[x++]=y}}y=String.fromCharCode.apply(String,
eML);x<1024&&(y=y.substring(0,x));n.push(y)}return n.join("")};
wXy=function(v,E){var n;if((n=m7$)==null?0:n.encodeInto)return E=m7$.encodeInto(v,E),E.read<v.length?v.length*4:E.written;for(var f=n=0;f<v.length;f++){var x=v.charCodeAt(f);x<128?E[n++]=x:(x<2048?E[n++]=x>>6|192:((x&64512)===55296&&f+1<v.length&&(v.charCodeAt(f+1)&64512)===56320?(x=65536+((x&1023)<<10)+(v.charCodeAt(++f)&1023),E[n++]=x>>18|240,E[n++]=x>>12&63|128):E[n++]=x>>12|224,E[n++]=x>>6&63|128),E[n++]=x&63|128)}return n};
bry=function(v,E){v=new Uint8Array(v);E&&v.set(E);return v};
_.Of=function(v){v=new leX(new s41([_.w1(decodeURIComponent(v))]));if(rTE(v,2)){var E=j7(v);var n=v.pos;var f=v.arrayView;n=n===void 0?0:n;var x=E===void 0?-1:E;n=n===void 0?0:n;x=x===void 0?-1:x;if(f.totalLength&&x){x<0&&(x=f.totalLength-n);f.focus(n);if(!(n-f.arrayPos+x<=f.arrays[f.arrayIdx].length)){var y=f.arrayIdx,Q=f.arrayPos;f.focus(n+x-1);Q=new Uint8Array(f.arrayPos+f.arrays[f.arrayIdx].length-Q);for(var e=0,F=y;F<=f.arrayIdx;F++)Q.set(f.arrays[F],e),e+=f.arrays[F].length;f.arrays.splice(y,
f.arrayIdx-y+1,Q);f.arrayIdx=0;f.arrayPos=0;f.focus(n)}y=f.arrays[f.arrayIdx];f=new DataView(y.buffer,y.byteOffset+n-f.arrayPos,x)}else f=new DataView(new ArrayBuffer(0));f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);v.pos+=E;E=f}else E=void 0;E=E?F4s(E):void 0;v=rTE(v,4)?j7(v):void 0;f=P3A[v];if(typeof f==="undefined")throw v=new _.yc("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:v}),_.mb(v),v;return{entityTypeFieldNumber:v,entityType:f,entityId:E}};
_.$s=function(v,E,n){n=n===void 0?0:n;var f=new aeN;if(m7$)v=m7$.encode(v);else{var x=new Uint8Array(Math.ceil(v.length*1.2)),y=wXy(v,x);x.length<y&&(x=new Uint8Array(y),y=wXy(v,x));x.length>y&&(x=x.subarray(0,y));v=x}v!==void 0&&(ks(f,18),x=v.length,ks(f,x),WR(f,x),f.buf.set(v,f.pos),f.pos+=x);v=ZrX[E];if(typeof v==="undefined")throw n=new _.yc("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:E}),_.mb(n),n;v!==void 0&&(ks(f,32),ks(f,v));ks(f,40);ks(f,1);E=new Uint8Array(f.buf.buffer,
f.buf.byteOffset,f.pos);return encodeURIComponent(_.z3(E,n))};
C3L=function(v){v=v.key||v.id;if(!v)throw Error("yf");return v};
SGA=function(v,E){v=v===void 0?{}:v;return Mu$(v,E)};
U7X=function(v,E,n,f){if(f===void 0)return f=Object.assign({},v[E]||{}),n=(delete f[n],f),f={},Object.assign({},v,(f[E]=n,f));var x={},y={};return Object.assign({},v,(y[E]=Object.assign({},v[E],(x[n]=f,x)),y))};
qG9=function(v,E,n,f,x){var y=v[E];if(y==null||!y[n])return v;f=Q4L(y[n],f,x==="REPEATED_FIELDS_MERGE_OPTION_APPEND");x={};y={};return Object.assign({},v,(y[E]=Object.assign({},v[E],(x[n]=f,x)),y))};
_.LH=function(v,E,n){return v[E]?v[E][n]||null:null};
K4G=function(){if(JTE)return JTE();var v={};JTE=HA("PersistentEntityStoreDb",{objectStores:(v.EntityStore={addedAtVersion:1},v.EntityAssociationStore={addedAtVersion:2},v),shared:!1,upgrade:function(E,n){n(1)&&CZ(Z$(E,"EntityStore",{keyPath:"key"}),"entityType","entityType");n(2)&&(E=Z$(E,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),CZ(E,"byParentEntityKey","parentEntityKey"),CZ(E,"byChildEntityKey","childEntityKey"))},
version:3});return JTE()};
d7E=function(v){return _.KE(K4G(),v)};
Gx=function(v){return window.Int32Array?new Int32Array(v):Array(v)};
YGX=function(v){return _.KE(IeQ(),v)};
hMF=function(v){return new Tx("WRONG_DATA_TYPE",{encoderVersion:v})};
ATI=function(v){return v instanceof Error?new Tx("UNKNOWN_ENCODE_ERROR",{originalMessage:v.message}):new Tx("UNKNOWN_ENCODE_ERROR")};
Vus=function(v){return v instanceof Error?new Tx("UNKNOWN_DECODE_ERROR",{originalMessage:v.message}):new Tx("UNKNOWN_DECODE_ERROR")};
D7F=function(v,E){v=v instanceof Tx?v:E(v);_.mb(v);throw v;};
HrE=function(v){v=(new TextEncoder).encode(v).subarray(0,16);var E=new Uint8Array(16);E.set(v);return E};
NgQ=function(v){var E=gqI[v];if(E)return E;_.li(new _.yc("Entity model not found.",{entityType:v}))};
_.zx=function(){ul$||(ul$=j4I());return ul$};
j4I=function(){var v,E,n;return _.X(function(f){if(f.nextAddress==1)return _.vW(f,2),_.m(f,_.Du(),4);if(f.nextAddress!=2){v=f.yieldResult;if(!v||!_.cA()||typeof _.n1.BroadcastChannel==="undefined")return f.return();E=new OrE;return f.return(new RQ(v,E))}n=_.cW(f);n instanceof Error&&_.mb(n);return f.return()})};
_.tc=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1){n=v.mutations;if(!n||n.length<=0)return f.return();E&&E.dispatch(_.un({type:"ENTITY_LOADED",payload:n}));return _.m(f,kQQ(n),2)}n.length=0;_.yQ(f)})};
kQQ=function(v){var E;return _.X(function(n){return n.nextAddress==1?_.m(n,_.zx(),2):(E=n.yieldResult)?_.m(n,_.BR(E,"readwrite",function(f){for(var x={},y=_.p(v),Q=y.next(),e={};!Q.done;e={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Q=y.next())e.mutation$jscomp$4=Q.value,e.mutation$jscomp$4.entityKey&&W49(e.mutation$jscomp$4)&&(e.mutationEntityType$jscomp$3=(0,_.sh.getAnyKey)(e.mutation$jscomp$4.payload),Q=void 0,e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Q=function(F){return function(){return _.$7F(f,
F.mutation$jscomp$4.payload[F.mutationEntityType$jscomp$3],F.mutationEntityType$jscomp$3)}}(e)),e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Q=function(F){return function(){return L4I(f,F.mutation$jscomp$4.entityKey)}}(e)),e.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Q=function(F){return function(){return GQs(f,F.mutation$jscomp$4.entityKey,F.mutation$jscomp$4.payload[F.mutationEntityType$jscomp$3],F.mutationEntityType$jscomp$3)}}(e)),Q&&(x[e.mutation$jscomp$4.entityKey]=
x[e.mutation$jscomp$4.entityKey]?x[e.mutation$jscomp$4.entityKey].then(Q):Q()));
return CE.all(Object.values(x))}),0):n.return()})};
W49=function(v){var E;v=(E=v.options)==null?void 0:E.persistenceOption;return v==="ENTITY_PERSISTENCE_OPTION_PERSIST"||v==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
zMX=function(v,E){var n,f;_.X(function(x){if(x.nextAddress==1)return _.m(x,_.zx(),2);if(x.nextAddress!=3)return(n=x.yieldResult)?_.m(x,_.BR(n,"readonly",function(y){var Q={},e=Object.keys(E).map(function(F){var b=E[F]?[].concat(_.s8(E[F])):[];return TgG(y,F,b,Q)});
return CE.all(e).then(function(){return Q})}),3):x.return();
f=x.yieldResult;Object.keys(f).length>0&&v.dispatch(ir9(f));_.yQ(x)})};
TgG=function(v,E,n,f){return vy(v,E,n).then(function(x){f[E]=RMs(n,x)})};
RMs=function(v,E){if(E.length!==v.length)throw Error("Bf");return E.reduce(function(n,f,x){n[v[x]]=f;return n},{})};
vOX=function(v){var E=v.filter(function(x){var y;return(x==null?void 0:(y=x.transferEntity)==null?void 0:y.transferState)==="TRANSFER_STATE_COMPLETE"}).length,n=v.filter(function(x){var y;
return(x==null?void 0:(y=x.transferEntity)==null?void 0:y.transferState)==="TRANSFER_STATE_FAILED"}).length,f=v.filter(function(x){var y;
return(x==null?void 0:(y=x.transferEntity)==null?void 0:y.transferState)&&tuA.includes(x.transferEntity.transferState)});
if(!(E||f!=null&&f.length))return 0;E=_.BgL(f)+E;v=v.length-n;return v===0?0:Math.round(E*100/v)/100};
_.BgL=function(v){var E=[];E=E.concat.apply(E,_.s8(v.filter(function(y){return y.streamEntity}).map(function(y){var Q=Object.assign({},y.streamEntity),e,F=(e=y.transferEntity)==null?void 0:e.transferState;
Q.streamsProgress=Q.streamsProgress||[];Q.streamsProgress=Q.streamsProgress.map(function(b){var l=Object.assign({},b);l.numBytesDownloaded=F==="TRANSFER_STATE_COMPLETE"?b.numTotalBytes:b.numBytesDownloaded;return l});
return Q}).map(function(y){return y.streamsProgress})));
var n=v=0;E=_.p(E);for(var f=E.next();!f.done;f=E.next()){var x=f.value;f=Number(x.numBytesDownloaded);x=Number(x.numTotalBytes);n+=isNaN(f)?0:f;v+=isNaN(x)?0:x}return v===0?0:Math.round(n*100/v)/100};
EON=function(v){if(!v||!v.expirationTimestamp||!v.action)return!1;var E=(0,_.gd)()/1E3;return Number(v.expirationTimestamp)>=E};
Eb=function(v){return v&&v.expirationTimestamp&&v.action?EON(v)&&v.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.nC=function(v){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(v||"TRANSFER_STATE_UNKNOWN")};
nOy=function(v){var E=new aeN;if(v!==void 0){var n=Math.ceil(Math.log2(v.length*4+2)/7);n=n===void 0?2:n;ks(E,10);E.submessagePosStack.push(E.pos);E.submessagePosStack.push(n);E.pos+=n;WR(E,v.length*1.2);n=wXy(v,E.buf.subarray(E.pos));E.pos+n>E.buf.length&&(WR(E,n),n=wXy(v,E.buf.subarray(E.pos)));E.pos+=n;v=E.submessagePosStack.pop();n=E.submessagePosStack.pop();for(var f=E.pos-n-v;v--;){var x=v?128:0;E.view.setUint8(n++,f&127|x);f>>=7}}E=new Uint8Array(E.buf.buffer,E.buf.byteOffset,E.pos);return(new TextDecoder("utf-8")).decode(E)};
_.ob=function(v){var E=0;v=_.p(v);for(var n=v.next(),f={};!n.done;f={transferState$jscomp$3:void 0},n=v.next()){var x=n.value,y=void 0;n=(y=x.streamEntity)!=null?y:{};y=void 0;f.transferState$jscomp$3=(y=x.transferEntity)==null?void 0:y.transferState;y=x=void 0;((x=n)==null?0:(y=x.streamsProgress)==null?0:y.length)&&n.streamsProgress.forEach(function(Q){return function(e){e=Number(Q.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?e.numTotalBytes:e.numBytesDownloaded);isFinite(e)&&(E+=e)}}(f))}return E};
oOE=function(v){return v.some(function(E){var n;if(!(E==null?0:(n=E.transferEntity)==null?0:n.transferState)){var f;return!(E==null?0:(f=E.policyEntity)==null?0:f.action)||E.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return tuA.includes(E.transferEntity.transferState)})};
fT1=function(v,E){if(!E)return!1;if(_.Z("of_pb_en_po_ks"))return!0;var n;v=(n=_.LH(v,"offlineVideoPolicy",_.$s(E,"offlineVideoPolicy")))!=null?n:void 0;return!!v&&Eb(v)};
_.c8X=function(v){var E=["TRANSFER_STATE_COMPLETE"];E=E===void 0?xhs:E;return v.filter(function(n){var f,x;return E.includes((x=(f=n.transferEntity)==null?void 0:f.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN")})};
y8Q=function(v,E){if(E){var n,f=(n=_.LH(v,"playbackData",_.$s(E,"playbackData")))!=null?n:null,x;n=(x=_.LH(v,"transfer",_.$s(E,"transfer")))!=null?x:null;var y;x=(y=_.LH(v,"offlineVideoStreams",_.$s(E,"offlineVideoStreams")))!=null?y:null;var Q;v=(Q=_.LH(v,"offlineVideoPolicy",_.$s(E,"offlineVideoPolicy")))!=null?Q:null;if(f||n||x||v)return{playbackDataEntity:f,transferEntity:n,streamEntity:x,policyEntity:v}}};
_.fC=function(v){var E=v.playbackData;if(!E)return[];var n=[];E=_.p(Object.keys(E));for(var f=E.next();!f.done;f=E.next()){var x=f.value;if(!pkN(v,_.Of(x).entityId)&&(f=y8Q(v,_.Of(x).entityId))){var y=void 0,Q=void 0;x=(Q=Number((y=_.LH(v,"playbackData",x))==null?void 0:y.streamDownloadTimestampSeconds))!=null?Q:(0,_.gd)();n.push({entity:f,streamDownloadTimestamp:x})}}return n.sort(function(e,F){var b=e.streamDownloadTimestamp,l=F.streamDownloadTimestamp;return l===b?e.entity.streamEntity&&!F.entity.streamEntity?
1:-1:l-b}).map(function(e){return e.entity})};
Q1Q=function(v){return _.c8X(_.fC(v))};
_.Xks=function(v){return _.fC(v).filter(function(E){var n;if(((n=E.policyEntity)==null?0:n.action)&&E.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var f;if((f=E.transferEntity)==null?0:f.transferState){var x;return tuA.includes((x=E.transferEntity)==null?void 0:x.transferState)}return!0})};
pkN=function(v,E){var n;return((n=_.LH(v,"downloadStatusEntity",_.$s(E,"downloadStatusEntity")))==null?void 0:n.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
eAI=function(v){var E;if(v==null?0:(E=v.playbackDataEntity)==null?0:E.key)return _.Of(v.playbackDataEntity.key).entityId;var n;if(v==null?0:(n=v.transferEntity)==null?0:n.key)return _.Of(v.transferEntity.key).entityId;var f;if(v==null?0:(f=v.streamEntity)==null?0:f.key)return _.Of(v.streamEntity.key).entityId;var x;if(v==null?0:(x=v.policyEntity)==null?0:x.key)return _.Of(v.policyEntity.key).entityId};
mhQ=function(v){var E=new Set,n;v=(n=v.mainDownloadsListEntity)==null?void 0:n[Fw9];var f;if(!(v==null?0:(f=v.downloads)==null?0:f.length))return E;var x;v==null||(x=v.downloads)==null||x.forEach(function(y){(y==null?0:y.videoItem)&&E.add(y.videoItem)});
return E};
xt=function(v,E){if(E){var n=_.LH(v,"mainVideoEntity",_.$s(E,"mainVideoEntity")),f=_.LH(v,"downloadStatusEntity",_.$s(E,"downloadStatusEntity")),x=_.LH(v,"ytMainChannelEntity",_.$s(E,"ytMainChannelEntity")),y={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};v=y8Q(v,E);f=(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Z("woffle_render_failed_download_state_ks")&&(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_FAILED";!v&&f&&(v=y);if(v&&n&&
x)return Object.assign({},{videoEntity:n,channelEntity:x},v)}};
bML=function(v,E){return wk1(v,E)==="TRANSFER_STATE_COMPLETE"&&fT1(v,E)};
GtF=function(v,E){if(!E)return!1;var n;v=(n=_.LH(v,"playbackData",_.$s(E,"playbackData")))!=null?n:void 0;return!!v&&!!v.playerResponseJson};
wk1=function(v,E){if(!E)return"TRANSFER_STATE_UNKNOWN";var n=_.LH(v,"transfer",_.$s(E,"transfer"));if(n){var f;return(f=n.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}n=_.LH(v,"offlineOrchestrationActionWrapperEntity",_.$s(E,"offlineOrchestrationActionWrapperEntity"));v=_.LH(v,"mainVideoEntity",_.$s(E,"mainVideoEntity"));return n||v?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
T7s=function(v,E){if(!E)return"TRANSFER_STATE_UNKNOWN";if(v=_.LH(v,"transfer",_.$s(E,"transfer"))){var n;return(n=v.transferState)!=null?n:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
iME=function(v,E){return E&&(v=_.LH(v,"videoPlaybackPositionEntity",_.$s(E,"videoPlaybackPositionEntity")),v==null?0:v.lastPlaybackPositionSeconds)?Number(v.lastPlaybackPositionSeconds):0};
RAX=function(v,E){return zAX(v).some(function(n){var f;return(n==null?void 0:(f=n.mainPlaylistEntity)==null?void 0:f.playlistId)===E})};
B7s=function(v,E,n){var f=tHN(v,E);if(!f.length)return[];E=[];f=_.p(f);for(var x=f.next();!x.done;x=f.next()){x=x.value;var y=xt(v,x);n&&wk1(v,x)!=="TRANSFER_STATE_COMPLETE"||y&&E.push(y)}return E};
tHN=function(v,E){if(!E)return[];var n=_.$s(E,"mainPlaylistEntity"),f;E=(f=v.mainPlaylistEntity)==null?void 0:f[n];f=[];if(E==null||!E.videos)return f;E=_.p(E.videos);for(n=E.next();!n.done;n=E.next()){n=n.value;var x=void 0,y=void 0,Q=void 0,e=(x=v)==null?void 0:(y=x.mainPlaylistVideoEntity)==null?void 0:(Q=y[n])==null?void 0:Q.video;e&&(n=_.Of(e).entityId)&&f.push(n)}return f};
vVX=function(v,E){if(E){var n=_.LH(v,"mainPlaylistEntity",_.$s(E,"mainPlaylistEntity")),f=_.LH(v,"mainPlaylistDownloadStateEntity",_.$s(E,"mainPlaylistDownloadStateEntity"));v=_.LH(v,"ytMainChannelEntity",_.$s(E,"ytMainChannelEntity"));if(f&&n)return Object.assign({},{mainPlaylistEntity:n,mainPlaylistDownloadStateEntity:f},!!v&&{channelEntity:v})}};
zAX=function(v){return EVs(v).sort(function(E,n){return n.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedPlaylistEntities})};
EVs=function(v){var E=v.mainPlaylistDownloadStateEntity,n=[];if(!E)return n;for(var f=_.p(Object.keys(E)),x=f.next();!x.done;x=f.next()){var y=x.value;x=vVX(v,_.Of(y).entityId);var Q=void 0;y=Number((Q=E[y])==null?void 0:Q.addedTimestampMillis);Q=isNaN(y)?(0,_.gd)():y;x!==void 0&&n.push({downloadedPlaylistEntities:x,addedTimestampMillis:Q})}return n};
nVL=function(v){var E,n=(E=v.mainPlaylistVideoEntity)!=null?E:{};return new Set(zAX(v).reduce(function(f,x){f=f===void 0?[]:f;var y,Q;x==null||(y=x.mainPlaylistEntity)==null||(Q=y.videos)==null||Q.forEach(function(e){var F;(e=(F=n[e])==null?void 0:F.video)&&f.push(e)});
return f},[]))};
oVX=function(v){return"downloadedMusicPlaylistEntities"in v};
fOX=function(v){return"mainPlaylistEntity"in v&&"mainPlaylistDownloadStateEntity"in v};
xbE=function(v){return"videoEntity"in v&&"channelEntity"in v};
c$1=function(v){var E=v.musicPlaylistDownloadMetadataEntity,n=[];if(!E)return n;for(var f=_.p(Object.keys(E)),x=f.next();!x.done;x=f.next()){x=x.value;a:{var y=v,Q=_.Of(x).entityId;if(Q){var e=_.LH(y,"musicPlaylist",_.$s(Q,"musicPlaylist"));y=_.LH(y,"musicPlaylistDownloadMetadataEntity",_.$s(Q,"musicPlaylistDownloadMetadataEntity"));if(e&&y){e={musicPlaylistEntity:e,musicPlaylistDownloadStateEntity:y};break a}}e=void 0}y=void 0;x=Number((y=E[x])==null?void 0:y.addedTimestampMillis);x=isNaN(x)?(0,_.gd)():
x;e!==void 0&&n.push({downloadedMusicPlaylistEntities:e,addedTimestampMillis:x})}return n};
y$E=function(v){var E=new Set;v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,"musicPlaylistEntity"in n&&"musicPlaylistDownloadStateEntity"in n){n=_.p(n.musicPlaylistEntity.tracks);for(var f=n.next();!f.done;f=n.next())E.add(f.value)}return E};
pDE=function(v,E){if(E){var n=_.LH(v,"musicTrack",_.$s(E,"musicTrack")),f=_.LH(v,"musicArtist",_.$s(E,"musicArtist"))||{};if((v=y8Q(v,E))&&n&&f)return Object.assign({},{musicTrackEntity:n,musicArtistEntity:f},v)}};
QsX=function(v){var E=v.musicTrackDownloadMetadataEntity,n=[];if(!E)return[];E=_.p(Object.keys(E));for(var f=E.next();!f.done;f=E.next()){var x=f.value;f=pDE(v,_.Of(x).entityId);var y=void 0;x=Number((y=_.LH(v,"musicTrackDownloadMetadataEntity",x))==null?void 0:y.addedTimestampMillis);y=isNaN(x)?(0,_.gd)():x;f!==void 0&&n.push({downloadedMusicEntities:f,addedTimestampMillis:y})}return n};
FDs=function(v,E){if(!E)return[];if(Object.values(XDF).includes(E))return erA(v,E);E=_.$s(E,"musicPlaylist");var n;v=(n=v.musicPlaylist)==null?void 0:n[E];n=[];if(v==null||!v.tracks)return n;v=_.p(v.tracks);for(E=v.next();!E.done;E=v.next())(E=_.Of(E.value).entityId)&&n.push(E);return n};
erA=function(v,E){var n=new Set,f=c$1(v).map(function(y){return y.downloadedMusicPlaylistEntities});
f=y$E(f);f=_.p(f);for(var x=f.next();!x.done;x=f.next())(x=_.Of(x.value).entityId)&&n.add(x);return mby(v).downloadedMusicEntities.filter(function(y){var Q;if((Q=y.musicTrackEntity)!=null&&Q.videoId){y=y.musicTrackEntity;if(Q=E==="PPOM"?!0:!n.has(y.videoId))b:switch(y=y.musicVideoType,E){case "PPSE":Q=y==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Q=y!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}y=Q}else y=!1;return y}).map(function(y){var Q;
return(Q=y.musicTrackEntity)==null?void 0:Q.videoId})};
mby=function(v){var E=QsX(v).sort(function(n,f){return f.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return"downloadedMusicEntities"in n?n.downloadedMusicEntities:oVX(n)?n.downloadedMusicPlaylistEntities:{}});
v=c$1(v).sort(function(n,f){return f.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return"downloadedMusicEntities"in n?n.downloadedMusicEntities:oVX(n)?n.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:E,downloadedMusicPlaylistEntities:v}};
bgF=function(v,E){E=_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?FDs(v,E):tHN(v,E);if(!E.length)return"TRANSFER_STATE_UNKNOWN";E=E.map(function(n){return T7s(v,n)});
return wDF(E)};
wDF=function(v){var E=new Set(v);if(E.has("TRANSFER_STATE_FAILED")&&E.size===1)return"TRANSFER_STATE_FAILED";E.delete("TRANSFER_STATE_FAILED");if(E.has("TRANSFER_STATE_UNKNOWN")&&E.size===1)return"TRANSFER_STATE_PRE_TRANSFER";E.delete("TRANSFER_STATE_UNKNOWN");if(E.has("TRANSFER_STATE_PRE_TRANSFER")&&E.size===1||E.size===0)return"TRANSFER_STATE_PRE_TRANSFER";v=E.has("TRANSFER_STATE_TRANSFERRING");E=E.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return v||E?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
cy=function(v){var E=v.mainVideoDownloadStateEntity,n=[];if(!E)return[];E=_.p(Object.keys(E));for(var f=E.next();!f.done;f=E.next()){var x=f.value;if(!pkN(v,_.Of(x).entityId)){f=xt(v,_.Of(x).entityId);var y=void 0,Q=void 0;x=(Q=Number((y=_.LH(v,"mainVideoDownloadStateEntity",x))==null?void 0:y.addedTimestampMillis))!=null?Q:(0,_.gd)();f!==void 0&&n.push({downloadedVideoEntities:f,addedTimestampMillis:x})}}return n};
lOy=function(v){return cy(v).sort(function(E,n){return n.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities})};
_.r$E=function(v){var E=nVL(v),n=_.yN(v),f=mhQ(v),x=cy(v).filter(function(Q){var e,F;if((Q==null?void 0:(e=Q.downloadedVideoEntities)==null?void 0:(F=e.transferEntity)==null?void 0:F.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var b,l;Q=Q==null?void 0:(b=Q.downloadedVideoEntities)==null?void 0:(l=b.videoEntity)==null?void 0:l.key;return _.Z("kevlar_use_library_entity")?Q&&(f.has(Q)||n[Q]):Q&&!E.has(Q)}),y=EVs(v).filter(function(Q){return bgF(v,Q.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.s8(x),_.s8(y)).sort(function(Q,e){return e.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return ss$(Q)})};
PME=function(v,E){if(E&&fT1(v,E)){var n,f,x=(f=(n=_.LH(v,"playbackData",_.$s(E,"playbackData")))!=null?n:void 0)==null?void 0:f.playerResponseJson;if(x){try{var y=JSON.parse(x);var Q=_.LH(v,"transfer",_.$s(E,"transfer")),e=iME(v,E);e&&(y=Object.assign({},y,{playerConfig:Object.assign({},y.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+e*1E3}}})}));y.cotn=Q==null?void 0:Q.cotn}catch(F){}return y}}};
_.CME=function(v){var E,n,f;v=(f=(n=((E=v.downloadsPageViewConfigurationEntity)!=null?E:{})[aOA])==null?void 0:n.smartDownloadsOptInBannerVisibility)!=null?f:{};var x;return(x=_.C(v,Zgy))!=null?x:{}};
_.yN=function(v){var E,n,f;v=(f=(n=((E=v.mainDownloadsListEntity)!=null?E:{})[_.MOF])==null?void 0:n.downloads)!=null?f:[];E={};n=_.p(v);for(f=n.next();!f.done;f=n.next())v=void 0,E[(v=f.value.videoItem)!=null?v:""]=!0;return E};
Sk1=function(v){var E=_.yN(v);if(Object.keys(E).length===0)return!1;var n=v.mainVideoEntity;if(!n)return!0;n=_.p(Object.keys(n));for(var f=n.next();!f.done;f=n.next()){f=f.value;var x=_.Of(f).entityId;if(E[f]&&!pkN(v,x))return!1}return!0};
_.pC=function(v){var E=_.yN(v);return cy(v).sort(function(n,f){return n.addedTimestampMillis-f.addedTimestampMillis}).map(function(n){return n.downloadedVideoEntities}).filter(function(n){var f;
return(n=n==null?void 0:(f=n.videoEntity)==null?void 0:f.key)&&!!E[n]})};
ss$=function(v){return"downloadedVideoEntities"in v?v.downloadedVideoEntities:"downloadedPlaylistEntities"in v?v.downloadedPlaylistEntities:{}};
UbX=function(v){var E=_.yN(v),n=nVL(v),f=cy(v).filter(function(x){var y,Q;return(x=x==null?void 0:(y=x.downloadedVideoEntities)==null?void 0:(Q=y.videoEntity)==null?void 0:Q.key)&&!E[x]&&!n.has(x)});
v=EVs(v);return[].concat(_.s8(f),_.s8(v)).sort(function(x,y){return y.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return ss$(x)})};
_.QN=function(v){if(!_.Z("kevlar_use_library_entity"))return UbX(v);var E=cy(v).filter(function(f){var x,y;if(x=f=f==null?void 0:(x=f.downloadedVideoEntities)==null?void 0:(y=x.videoEntity)==null?void 0:y.key){var Q,e,F;x=((e=(Q=v.mainDownloadsListEntity)==null?void 0:Q[Fw9])==null?0:(F=e.downloads)==null?0:F.length)?mhQ(v).has(f):!1}return x}),n=EVs(v);
return[].concat(_.s8(E),_.s8(n)).sort(function(f,x){return x.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return ss$(f)})};
qkL=function(v){var E=_.yN(v),n=nVL(v);return lOy(v).filter(function(f){var x;return(f=f==null?void 0:(x=f.videoEntity)==null?void 0:x.key)&&!E[f]&&!n.has(f)})};
J$9=function(v){if(!_.Z("kevlar_use_library_entity"))return qkL(v);var E=_.yN(v),n=mhQ(v);return lOy(v).filter(function(f){var x;return(f=f==null?void 0:(x=f.videoEntity)==null?void 0:x.key)&&!E[f]&&n.has(f)})};
KDA=function(v,E){E=_.$s(E,"settingEntity");var n,f,x;return!!((x=(f=((n=v.settingEntity)!=null?n:{})[E])==null?void 0:f.settingOptionValue)!=null?x:{}).boolValue};
_.Xq=function(v){var E=_.pC(v);if(oOE(E))return 0;var n=[];E=_.p(E);for(var f=E.next();!f.done;f=E.next()){f=f.value;var x=void 0,y=void 0;if((x=f)==null?0:(y=x.videoEntity)==null?0:y.key)x=_.Of(f.videoEntity.key).entityId,f=v,x=_.$s(x,"mainVideoDownloadStateEntity"),f=_.LH(f,"mainVideoDownloadStateEntity",x),(f=Number(f==null?void 0:f.addedTimestampMillis))&&n.push(f)}return Math.max.apply(Math,_.s8(n))};
_.eN=function(v){return v.ui.richGridMiniMode};
_.Fq=function(v){return v.ui.richGridItemsPerRow};
_.dbX=function(v){return v.ui.richGridSlimItemsPerRow};
_.IOQ=function(v){return v.ui.guideIsExpanded};
_.mW=function(v){return v.ui.miniplayerIsActive};
_.YkX=function(v){return v.ui.singleOptionSurveyIsActive};
_.wG=function(v){return v.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.hrX=function(v){return v.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.A$F=function(v){return v.ui.inlinePreviewIsActive};
_.VOL=function(v){return v.ui.inlinePreviewIsEnabled};
_.DbE=function(v){return v.ui.miniplayerPlaybackState};
HgI=function(v){return v.ui.isOnline};
_.gVN=function(v){return v.ui.frostedGlassMode};
_.bx=function(v,E){return wk1(v.entities,E)};
_.lx=function(v,E){return bgF(v.entities,E)};
NRA=function(v,E){var n;if(E){var f;v=(f=_.LH(v.entities,"offlineVideoPolicy",_.$s(E,"offlineVideoPolicy")))==null?void 0:f.action}else v=void 0;return(n=v)!=null?n:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
u01=function(v,E){var n;E?(v=_.LH(v.entities,"offlineVideoPolicy",_.$s(E,"offlineVideoPolicy")),v=Number(v==null?void 0:v.expirationTimestamp)):v=void 0;return(n=v)!=null?n:0};
_.jsI=function(v){return _.fC(v.entities).length};
OgX=function(v,E){return xt(v.entities,E)};
k4X=function(v,E){return vVX(v.entities,E)};
sb=function(v,E){return(v=xt(v.entities,E))?_.BgL([v]):0};
_.WD$=function(v,E){var n=_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(n){var f=v.entities;var x=FDs(f,E);if(x.length){var y=[];x=_.p(x);for(var Q=x.next();!Q.done;Q=x.next())(Q=pDE(f,Q.value))&&y.push(Q);f=y}else f=[]}else f=B7s(v.entities,E);var e;if(n){var F=v.entities;E?(E=_.$s(E,"musicPlaylist"),F=(e=F.musicPlaylist)==null?void 0:e[E],e=F!=null&&F.tracks?F.tracks.length:0):e=0}else e=v.entities,E?(E=_.$s(E,"mainPlaylistEntity"),e=(F=e.mainPlaylistEntity)==null?void 0:F[E],e=e!=null&&e.videos?
e.videos.length:0):e=0;return f.length!==e?0:f?vOX(f):0};
_.$bI=function(v){return v.download.isLeaderTab};
_.LDI=function(v,E,n){if(!E&&n){var f=v.entities;if(n){var x=nOy(n),y,Q;E=(Q=(y=_.LH(f,"offlineabilityEntity",_.$s(x,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else y=v.entities,E?(Q=nOy(E),E=(x=(f=_.LH(y,"offlineabilityEntity",_.$s(Q,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return E};
G4X=function(v,E){v=v.entities;if(E){E=nOy(E);var n,f;E=(f=(n=_.LH(v,"offlineabilityEntity",_.$s(E,"offlineabilityEntity")))==null?void 0:n.addToOfflineButtonState)!=null?f:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else E="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return E};
_.TR1=function(v){var E=v.entities;v=HgI(v);var n=KDA(E,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Z("kevlar_modern_downloads_page")&&n)var f=!1;else{var x,y;E=(y=(x=((f=E.downloadsPageViewConfigurationEntity)!=null?f:{})[aOA])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?y:{};f=v?!!E.visibleWithConnection:!!E.visibleWithoutConnection}return f};
_.ig1=function(v){return KDA(v.entities,"SMART_DOWNLOADS_ENABLED")};
_.zrN=function(v){return Sk1(v.entities)};
RrG=function(v){return _.pC(v.entities).every(function(E){var n;return(E==null?void 0:(n=E.transferEntity)==null?void 0:n.transferState)&&!tuA.includes(E.transferEntity.transferState)})};
_.tOI=function(v,E){return pkN(v.entities,E)};
BRF=function(v,E){if(E){var n,f;v=(f=(n=_.LH(v.entities,"downloadStatusEntity",_.$s(E,"downloadStatusEntity")))==null?void 0:n.downloadState)!=null?f:"DOWNLOAD_STATE_UNKNOWN"}else v="DOWNLOAD_STATE_UNKNOWN";return v};
rG=function(v,E){return iME(v.entities,E)};
ooE=function(v){v=_.voE(v);var E=v.hours===void 0?0:v.hours,n=v.minutes===void 0?0:v.minutes,f=v.seconds===void 0?0:v.seconds,x=E>0;v=[];x&&(E=_.EoF(E),v.push(E));E=x;E=E===void 0?!1:E;n=(["af","be","lt"].includes(_.Py)||E)&&n<10?noL().format(n):(new Intl.NumberFormat("en-u-nu-latn")).format(n);v.push(n);n=noL().format(f);v.push(n);n=":";"da fi id si sr sr-Latn".split(" ").includes(_.Py)&&(n=".");return v.join(n)};
_.voE=function(v){var E=v.hours||0,n=v.minutes||0,f=v.seconds||0;E=f+n*60+E*3600+(v.days||0)*86400+(v.weeks||0)*604800+(v.months||0)*2629800+(v.years||0)*31557600;if(E<=0)return{hours:0,minutes:0,seconds:0};v=E;E=Math.floor(v/3600);v%=3600;n=Math.floor(v/60);f=Math.floor(v%60);return{hours:E,minutes:n,seconds:f}};
_.EoF=function(v){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var E=["fr"],n="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(_.Py)?v.replace(",","\u00a0"):E.includes(_.Py)?v.replace(",","\u202f"):n.includes(_.Py)?v.replace(",","."):v};
noL=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
fDQ=function(v){try{return(new _.ab(5)).format(v)}catch(E){}};
ZG=function(v){return{thumbnailOverlayDownloadingRenderer:{state:v}}};
xsN=function(v){if(v=fDQ(v))return{thumbnailOverlaySidePanelRenderer:{text:_.HR(v),icon:{iconType:"PLAYLISTS"}}}};
chG=function(){var v=_.tQ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.HR(v),icon:{iconType:"PLAY_ALL"}}}};
yhG=function(v){v=_.CC(v,2);return _.Py!=="ru"&&_.Py!=="es_419"&&_.Py!=="es-419"&&_.Py!=="es"&&_.Py!=="es_US"&&_.Py!=="es-US"&&_.Py!=="fr"&&_.Py!=="pl"&&_.Py!=="it"&&_.Py!=="nl"&&_.Py!=="uk"&&_.Py!=="fr_CA"&&_.Py!=="fr-CA"||v===""?v:v[0].toLocaleUpperCase()+v.substring(1)};
Q6X=function(v){return function(E){var n=v(),f=_.CC(E,n.dateFormat);E=_.CC(E,n.timeFormat);var x=pg$.DATETIMEFORMATS[n.joinerStyle];x=x.replace(/'(?!')/g,"");x=x.replace("{0}",E);x=x.replace("{1}",f);return n.capitalize(x)}};
XgN=function(v){return v?typeof v.seconds==="string"&&(v.nanos===void 0||typeof v.nanos==="number"):!1};
e8Q=function(v){return new Date(Number(v.seconds)*1E3+(v.nanos||0)*1E-6)};
_.CC=function(v,E){if(typeof v.getTime==="function")v={date:v};else if(XgN(v))v={date:e8Q(v)};else if(typeof XgN(v.timestamp)&&typeof v.i18nInternalSecondsEastOfUtc==="number")v={date:e8Q(v.timestamp),timeZone:MD(-v.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(v));var n=v;v=n.date;n=n.timeZone;E=FpN(E).format(v,n);_.Py==="zh-TW"&&(v=n?Number(FpN("H").format(v,n)):v.getHours(),E=v<5?E.replace("\u4e0a\u5348","\u51cc\u6668"):v<8?E.replace("\u4e0a\u5348","\u65e9\u4e0a"):v<12?
E.replace("\u4e0a\u5348","\u4e0a\u5348"):v<13?E.replace("\u4e0b\u5348","\u4e2d\u5348"):v<19?E.replace("\u4e0b\u5348","\u4e0b\u5348"):E.replace("\u4e0b\u5348","\u665a\u4e0a"));return E};
FpN=function(v){if(msI.has(v))return msI.get(v);var E=wgy(v);E=bQF(E);lDE!==!0&&(lDE=!0);s6X=!0;s6X=!1;E=new SN(E,pg$);msI.set(v,E);return E};
wgy=function(v){return(new SN(v,pg$)).patternParts_.map(function(E){return E.type===0?"'"+E.text+"'":E.text}).join("")};
bQF=function(v){return _.Py==="en"||_.Py==="es_US"||_.Py==="es-US"?v:v.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(E,n,f){return"H".repeat(n.length)+f})};
UsX=function(v,E){rhy||(_.Ub=_.PHE,rhy=new aD9);var n=rhy;a:if(v=ZQ1(v),E=ZQ1(E||new Date),v>E)n=v.getTime()-E.getTime()>6048E5?_.CC(v,1):CHN(v);else{for(var f=0;MYy(v,12*(f+1))<E;)++f;if(f>0)n=n.format(-f,0);else{for(f=0;MYy(v,f+1)<E;)++f;if(f>0)n=n.format(-f,2);else{v=E.getTime()-v.getTime();E=_.p(Sly);for(f=E.next();!f.done;f=E.next()){f=f.value;var x=f.unit,y=Math.floor(v/f.unitDuration);if(y>=(f.threshold===void 0?1:f.threshold)){n=n.format(-y,x);break a}}n=n.format(-0,7)}}}return n};
ZQ1=function(v){if(typeof v.getTime==="function")return v;if(XgN(v))return e8Q(v);throw Error("Df`"+JSON.stringify(v));};
MYy=function(v,E){for(var n=0,f;;++n)if(f=new Date(v.getFullYear(),v.getMonth()+E,v.getDate()-n,v.getHours(),v.getMinutes(),v.getSeconds()),f.getMonth()===(v.getMonth()+E)%12)return f};
_.qD=function(v){return{runs:[{text:v}]}};
_.JC=function(v){if(v&&v.simpleText)return v.simpleText;var E="";if(v&&v.runs)for(var n=0;n<v.runs.length;n++)v.runs[n].text&&(E+=v.runs[n].text);return E};
JhL=function(v,E,n,f){return v.videoEntity&&!v.policyEntity&&n!=="DOWNLOAD_STATE_FAILED"?[ZG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Eb(v.policyEntity)&&E!=="TRANSFER_STATE_FAILED"&&E!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?E==="TRANSFER_STATE_PAUSED_BY_USER"?[ZG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.nC(E)?[ZG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:v.videoEntity.lengthSeconds?qlN(v.videoEntity.lengthSeconds,f):[]:
[ZG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
qlN=function(v,E){var n=[{thumbnailOverlayTimeStatusRenderer:{text:_.HR(ooE({seconds:v})),style:"DEFAULT"}}];E&&(v=E<=0||v<=0?0:E>=v?100:Math.ceil(E*100/v),v>0&&n.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:v}}));return n};
KpG=function(v,E,n,f,x){if(E==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(_.nC(E)||E==="TRANSFER_STATE_PRE_TRANSFER")var y=[ZG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Q,e;if(E==="TRANSFER_STATE_COMPLETE"&&((Q=v.mainPlaylistEntity)==null?0:(e=Q.videos)==null?0:e.length)){if(_.Z("web_modern_collections_v2")){var F;var b=(y=v.mainPlaylistEntity)==null?void 0:(F=y.videos)==null?void 0:F.length;y=(y=fDQ(b))?{thumbnailOverlayBottomPanelRenderer:{text:_.HR(y),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var l;y=xsN((b=v.mainPlaylistEntity)==null?void 0:(l=b.videos)==null?void 0:l.length)}var r;y=[chG(),Object.assign({},(r=y)!=null?r:{})]}else y=[]}r=y;a:if(E==="TRANSFER_STATE_PRE_TRANSFER")n=gj(_.tQ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE")n=gj(_.tQ("WAITING_TO_DOWNLOAD"));else if(_.nC(E))n=Math.floor(n*100).toString(),n=gj(_.tQ("DOWNLOADING_PERCENT",{percent:n},"Downloading... "+n+"%"));else{if(f&&(_.Z("playlist_is_offline_selector_killswitch")&&
(x=_.P().resolve(_.q1).isNetworkAvailable()),x)){n=pXL(_.tQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),cTX(f));break a}n=void 0}E=E==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.tQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},r.length?{thumbnailOverlays:r}:{},n?{viewPlaylistText:n}:{viewPlaylistText:_.qD("")},E.length?{badges:E}:{})};
dsE=function(v,E,n,f,x,y){if(E==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(f==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Q=JhL(v,E,f);if(v.videoEntity&&!v.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"){var e=_.tQ("WAITING_TO_DOWNLOAD");if(e)return{shortViewCountText:_.qD(e),publishedTimeText:void 0,thumbnailOverlays:Q}}if(!Eb(v.policyEntity)){y=v.policyEntity&&!EON(v.policyEntity)?_.tQ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.tQ("TRANSFER_FAILED",{},"Download failed");var F;if((F=v.policyEntity)==null?0:F.shortMessageForDisabledAction)y=v.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:gj(y),publishedTimeText:void 0,thumbnailOverlays:Q}}if(E==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.qD(_.tQ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Q};if(E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.qD(_.tQ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Q};if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(F=_.tQ("WAITING_TO_DOWNLOAD"),f==="DOWNLOAD_STATE_PAUSED"&&(F=_.tQ("DOWNLOAD_PAUSED",{},"Download paused")),F))return{shortViewCountText:_.qD(F),publishedTimeText:void 0,thumbnailOverlays:Q};if(_.nC(E))return v=Math.floor(n*100).toString(),{shortViewCountText:_.qD(_.tQ("DOWNLOADING_PERCENT",{percent:v},"Downloading... "+v+"%")),publishedTimeText:void 0,thumbnailOverlays:Q};E=void 0;v.videoEntity.publishedTimestampMillis&&
(E=new Date,x&&(E=new Date(x)),E=gj(UsX(new Date(Number(v.videoEntity.publishedTimestampMillis)),E)));x=[];_.Z("kevlar_woffle_badge_killswitch")||(x=[{metadataBadgeRenderer:{label:_.tQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var b;v=gj((b=v.videoEntity.localizedStrings)==null?void 0:b.viewCount);return Object.assign({},y?{shortViewCountText:void 0}:{shortViewCountText:v},y?{}:{publishedTimeText:E},{badges:x,thumbnailOverlays:Q})};
YlQ=function(v,E){v=v===void 0?IDN:v;switch(E.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:E.payload.playlistId,inviteLinkURL:E.payload.inviteLinkUrl};default:return v}};
AhE=function(v,E){v=v===void 0?h8y:v;switch(E.type){case "SET_CURRENT_FORM_ID":return E=E.payload.formId,v.currentFormId===E?v:{currentFormId:E,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var n=E.payload;E=n.groupId;n=n.command;if(v.currentFormId){var f=Object.assign({},v.commandsMap);f[E]=n;v=Object.assign({},v,{commandsMap:f})}return v;case "RESET_COMMAND_MAP":return Object.assign({},v,{commandsMap:{}});default:return v}};
DsE=function(v,E){v=v===void 0?VYE:v;switch(E.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},v,{guideIsExpanded:E.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},v,{scrollAtTop:E.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},v,{guideIsVisibleButNotPersistent:E.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},v,{miniplayerIsActive:E.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},v,{singleOptionSurveyIsActive:E.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},v,{slimlineSurveyRatingSelectedIndex:E.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},v,{richGridMiniMode:E.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},v,{richGridItemsPerRow:E.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},v,{richGridSlimItemsPerRow:E.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},v,{richGridContainerWidth:E.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},v,{richGridStyle:E.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:E.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},v,{inlinePreviewIsActive:E.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},v,{inlinePreviewIsEnabled:E.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},v,{darkModeIsEnabled:E.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
v,{miniplayerPlaybackState:E.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},v,{tabGesturesIsActive:E.payload});case "SET_ONLINE_STATUS":return Object.assign({},v,{isOnline:E.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},v,{chipBarIsSticky:E.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},v,{frostedGlassMode:E.payload});default:return v}};
goN=function(v,E){v=v===void 0?HQQ:v;switch(E.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},v,{transcription:E.payload});case "SET_OVERLAY_STATE":return Object.assign({},v,{overlay:E.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return v}};
TrQ=function(){return zq(Object.assign({},{continuation:NrN,entities:SGA,download:usX,reportChannelAbuse:j6E,share:OQ$,talkToRecs:kBN,ui:DsE,voiceSearch:goN,watch:WpE,ypc:$s$,shorts:LpE,radioButtonGroup:AhE,collabInviteLink:YlQ},GBs))};
R8$=function(){return _.Z("web_player_entities_middleware")?new KC(TrQ(),[iQX,z8X]):new KC(TrQ(),[iQX])};
_.dG=function(){tYG||(tYG=R8$());return tYG};
BrN=function(v,E,n){if(v.length)return{titleText:_.HR(E!=null?E:_.tQ("DOWNLOADS",void 0,"Downloads")),contents:v.map(function(f){var x=f.videoEntity;f={videoId:x.videoId,title:gj(x.title),shortBylineText:gj(f.channelEntity.title),thumbnail:x.thumbnail};var y=x.videoId?rG(_.dG().getState(),x.videoId):0;x.videoId&&n?f.navigationEndpoint=_.DI(x.videoId,n,void 0,void 0,y):x.videoId&&(f.navigationEndpoint=x71(x.videoId,y,x.lengthSeconds));x.lengthSeconds&&(f.thumbnailOverlays=qlN(x.lengthSeconds,y));return{playlistPanelVideoRenderer:f}}),
totalVideos:v.length}};
vIs=function(v){return(v=(0,_.sh.getValueByKeys)(v,"playlistId"))?{playlistId:v}:null};
EIQ=function(){return{}};
nI9=function(v,E){return new _.z2(function(n,f){v.then(function(x){if(x){if(x=E(x))return n(x);f()}},f)})};
oIE=function(v){var E,n,f,x=(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.autoplay)==null?void 0:f.autoplay,y,Q,e;E=(y=v.contents)==null?void 0:(Q=y.twoColumnWatchNextResults)==null?void 0:(e=Q.playlist)==null?void 0:e.playlist;return x&&E&&E.playlistId?{rawResponse:v,autoplayRenderer:x,playlistPanelRenderer:E,playlistId:E.playlistId}:null};
x2Q=function(v){var E=E===void 0?"UNKNOWN_INTERFACE":E;if(v.length===1)return v[0];var n=fQN[E];if(n){n=new RegExp(n);for(var f=_.p(v),x=f.next();!x.done;x=f.next())if(x=x.value,n.exec(x))return x}var y=[];Object.entries(fQN).forEach(function(Q){var e=_.p(Q);Q=e.next().value;e=e.next().value;E!==Q&&y.push(e)});
n=new RegExp(y.join("|"));v.sort(function(Q,e){return Q.length-e.length});
f=_.p(v);for(x=f.next();!x.done;x=f.next())if(x=x.value,!n.exec(x))return x;return v[0]};
_.Yt=function(v){return"/youtubei/v1/"+x2Q(v)};
_.hC=function(v){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:v}}}}};
_.AC=function(v){return _.hC(_.qD(v))};
c1$=function(v,E){var n={mode:"NORMAL"};v&&(n.autoplayVideo=v.navigationEndpoint,n.nextButtonVideo=v.navigationEndpoint);E&&(n.previousButtonVideo=E.navigationEndpoint);return n};
QDX=function(v,E,n){if(!n||!n.sets)return{sets:[c1$(v,E)]};var f=n.sets.find(function(Q){return Q.mode==="NORMAL"}),x=(0,_.sh.unsafeClone)(n);
if(!f)return x.sets.push(c1$(v,E)),x;if(!v)return n;f=_.sh.getValueByKeys.apply(null,[f].concat(_.s8(y1N)));var y=_.sh.getValueByKeys.apply(null,[v].concat(_.s8(psL)));if(f===y)return n;x.sets=x.sets.filter(function(Q){return Q.mode!=="NORMAL"});
x.sets.push(c1$(v,E));return x};
XsF=function(v){return!!v.playlistPanelVideoRenderer&&!v.playlistPanelVideoRenderer.unplayableText};
ebL=function(v){return!!v.playlistPanelVideoRenderer&&!!v.playlistPanelVideoRenderer.title};
FL9=function(v,E){if(E.contents&&!(v>=E.contents.length)&&(v=E.contents.slice(v).find(XsF)))return v.playlistPanelVideoRenderer};
m2F=function(v,E){if(E.contents)return(E=E.contents.find(function(n){return!!n.playlistPanelVideoRenderer&&n.playlistPanelVideoRenderer.videoId===v}))?E.playlistPanelVideoRenderer:void 0};
wsG=function(v,E){return E.contents?E.contents.findIndex(function(n){return!!n.playlistPanelVideoRenderer&&n.playlistPanelVideoRenderer.videoId===v}):-1};
btX=function(v,E){return E.contents?E.contents.findIndex(function(n){return!!n.playlistPanelVideoRenderer&&n.playlistPanelVideoRenderer.playlistSetVideoId===v}):-1};
lQN=function(v,E){v.contents&&E!==-1&&v.contents.splice(E,1).length===1&&v.totalVideos!==void 0&&(--v.totalVideos,delete v.videoCountText)};
_.sDG=function(v){var E=[];if(!v||!v.contents)return E;v=_.p(v.contents);for(var n=v.next();!n.done;n=v.next())n=n.value,n.playlistPanelVideoRenderer&&n.playlistPanelVideoRenderer.videoId&&E.push(n.playlistPanelVideoRenderer.videoId);return E};
_.r1L=function(v){if(v&&v.contents)return(v=v.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&!!E.playlistPanelVideoRenderer.selected})||v.contents[v.currentIndex])?v.playlistPanelVideoRenderer:void 0};
PQL=function(v,E,n,f,x,y,Q){x=x===void 0?!1:x;y=y===void 0?!1:y;Q=Q===void 0?!1:Q;if(v.contents&&v.contents.length!==0){f&&(v.contents=v.contents.filter(f));f=v.contents.length;for(var e=0;e<f;e++){var F=v.contents[e].playlistPanelVideoRenderer;F&&(e===E?(y&&delete F.menu,F.indexText=_.qD("\u25b6")):x||v.isInfinite||F.indexText===void 0?delete F.indexText:F.indexText=_.qD((e+1+n).toString()))}v.currentIndex=E+n;Q&&(delete v.videoCountText,v.totalVideos=f)}};
_.CQ$=function(v){v=aQX(v);if(v){var E=v.length;var n=-13%E;n<0&&(n=E+n);v=v.slice(E-n)+v.slice(0,E-n)}else v="";n="";for(E=0;E<v.length&&v[E]!==ZtI;E++)n+=v[E];return n};
_.MVN=function(v,E){var n=document.body;E=E===void 0?function(e){return e}:E;
var f,x=null;v=_.p(v);for(f=v.next();!f.done;f=v.next()){var y=f.value;f=document.createElement("div");x||(x=f);var Q=y[0];y=y[1];Q&&(f.id=E(Q));if(y)for(Q=_.p(y),y=Q.next();!y.done;y=Q.next())f.classList.add(E(y.value));n.appendChild(f);n=f}return[x,n]};
SC9=function(v,E){for(var n="",f=0;f<E;f++)n+=v.charAt(Math.floor(Math.random()*v.length));return n};
VN=function(v){return SC9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",v)};
DG=function(v){return SC9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",v)};
Hy=function(v){return SC9("0123456789",v)};
gG=function(){var v=performance.now(),E=new Date;var n="2."+E.getFullYear()+String(E.getMonth()+1).padStart(2,"0")+String(E.getDate()).padStart(2,"0");for(var f,x=Math.floor(Math.random()*11)+15,y=[],Q=0;Q<x;Q++)y.push(Math.floor(Math.random()*26476865)+24547720);f=y.join(",");var e=VN(10),F=VN(100),b=VN(102),l=VN(106),r=VN(108),a=VN(11),M=VN(1140),U=VN(123),d=VN(14),Y=VN(16),V=VN(1900),O=VN(23),T=VN(26),L=VN(34),xX=VN(397),t=VN(44),QE=VN(5),MF=VN(72),K1=VN(74),JG=VN(75),$X=VN(88),HI=VN(91),uE="rr3---sn-q4fl6n6y rr3---sn-q4fl6nsd rr5---sn-q4flrn7y rr5---sn-hgn7rnll rr2---sn-hgn7rnll rr4---sn-aigl6ned rr1---sn-q4fl6nsr rr4---sn-q4fl6nlz rr5---sn-q4flrnle rr1---sn-q4flrnss rr1---sn-q4flrn7r rr2---sn-q4flrnes rr4---sn-aigzrnz7 rr1---sn-q4fl6n6d rr2---sn-aigl6nzl rr3---sn-5hneknek rr5---sn-q4fl6nlz rr5---sn-q4fl6nde rr1---sn-aigzrnz7 rr4---sn-q4flrnlz".split(" ");
var WI=uE[Math.floor(Math.random()*uE.length)];var bX=(new Date("2010-01-01")).getTime();var n0=(new Date(bX+Math.random()*((new Date).getTime()-bX))).toISOString().split("T")[0];for(var qi,fl=[],yP=0;yP<4;yP++)fl.push(Math.floor(Math.random()*100));qi=fl.join(".");var IF=Number(Hy(5)),QP=Number(Hy(6)),T3=Number(Hy(7)),aK=Number(Hy(9)),yE=Hy(1),Cl=Hy(10),VP=Hy(16),JR=Hy(19),d1=Hy(2),$w=Hy(20),y6=Hy(21),eo=Hy(3),kX=Hy(4),lX=Hy(5),cb=Hy(6),Zz=Hy(7),C0=Hy(8),ZL=Hy(9);var fG=SC9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var lr=[DG(5),DG(5),DG(5)].join("%2C"),Ng=[Hy(3),Hy(5),Hy(5)].join("%2C"),xZ=DG(0),he=DG(1),mA=DG(10),ep=DG(108),fc=DG(11),wt=DG(12),Cs=DG(13),Hp=DG(14),Wv=DG(15),e8=DG(16),Xc=DG(17),a$=DG(18),AG=DG(19),j9=DG(2),s1=DG(20),oO=DG(22),Jj=DG(23),Fd=DG(24),aF=DG(266),r1=DG(3),mU=DG(30),Mn=DG(34),cU=DG(35),sw=DG(36),ua=DG(4),hj=DG(40),$E=DG(43),V4=DG(47),pR=DG(5),es=DG(6),R$=DG(7),sx=DG(75),V6=DG(8),d2=DG(80),E8=DG(9),oK="https://www."+DG(12)+".com",ja={},C9={},Od={},nbE={},aB={},W4={},$4={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:f}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:n},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+DG(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:n},{key:"client.name",value:"WEB"},{key:"client.fexp",value:f}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:y6+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+DG(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:hj,ypcGetOfflineUpsellEndpoint:{params:d2}},trackingParams:cU+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&cnr="+d1+"&ratebypass=yes&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&c=WEB&txp="+Zz+"&n="+Y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:QP,width:640,height:360,lastModified:VP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zz,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Ng+"&mn="+
lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&cnr="+d1+"&ratebypass=yes&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&c=WEB&txp="+Zz+"&n="+Y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+ep+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:QP,width:1280,
height:720,lastModified:VP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zz,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+lr+"&ms="+
lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&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="+r,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:T3,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:T3,approxDurationMs:Zz},{itag:248,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+lr+"&ms="+lr+"&mv="+
he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:T3,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:T3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:399,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&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="+r,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:T3,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:T3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:136,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:T3,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:QP,approxDurationMs:Zz},{itag:247,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+
lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:T3,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:398,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+ZL+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:T3,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:ZL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:135,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:QP,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:QP,approxDurationMs:Zz},{itag:244,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+
lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+ep+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QP,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:397,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&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="+r,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:QP,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:134,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:QP,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:QP,highReplication:!0,approxDurationMs:Zz},{itag:243,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QP,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:396,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:QP,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:133,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:QP,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:QP,approxDurationMs:Zz},{itag:242,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+
lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QP,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:395,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:QP,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:QP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:160,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:QP,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IF,approxDurationMs:Zz},{itag:278,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+Ng+"&mn="+
lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'video/webm; codecs="vp9"',bitrate:QP,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:394,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&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="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=video%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&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="+r,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:IF,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IF,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zz},{itag:140,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=audio%2Fmp4&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:QP,
initRange:{start:"0",end:"631"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:QP,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zz,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+
d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=audio%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+Zz+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/webm; codecs="opus"',bitrate:IF,initRange:{start:"0",end:"265"},indexRange:{start:eo,
end:kX},lastModified:VP,contentLength:Zz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IF,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=audio%2Fwebm&ns="+
Fd+"&gir="+r1+"&clen="+Zz+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+Zz+"&n="+e8+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+r,mimeType:'audio/webm; codecs="opus"',bitrate:IF,initRange:{start:"0",end:"265"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:Zz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IF,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+WI+".googlevideo.com/videoplayback?expire="+Cl+"&ei="+O+"&ip="+qi+"&id=o-AF"+$E+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Ng+"&mn="+lr+"&ms="+lr+"&mv="+he+"&mvi="+yE+"&pl="+d1+"&initcwndbps="+Zz+"&siu="+yE+"&spc="+t+"&vprv="+yE+"&svpuc="+yE+"&mime=audio%2Fwebm&ns="+Fd+"&gir="+r1+"&clen="+C0+"&dur="+C0+"&lmt="+VP+"&mt="+Cl+"&fvip=3&keepalive="+r1+"&c=WEB&txp="+
Zz+"&n="+e8+"&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="+r,mimeType:'audio/webm; codecs="opus"',bitrate:QP,initRange:{start:"0",end:"265"},indexRange:{start:eo,end:kX},lastModified:VP,contentLength:C0,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:QP,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zz,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="+ZL+"&docid="+a+"&ei="+O+"&feature="+e+"&fexp="+xZ+"&ns="+j9+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+he+"&el="+mA+"&len="+kX+"&of="+oO+
"&uga="+d1+"&vm="+aF},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ZL+"&docid="+a+"&ei="+O+"&feature="+e+"&fexp="+xZ+"&ns="+j9+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+he+"&el="+mA+"&len="+kX+"&of="+oO+"&uga="+d1+"&vm="+aF},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ZL+"&docid="+a+"&ei="+O+"&feature="+e+"&fexp="+xZ+"&ns="+j9+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
he+"&el="+mA+"&len="+kX+"&of="+oO+"&uga="+d1+"&vm="+aF},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+O+"&m="+$X+"&oid="+oO+"&plid="+Y+"&pltype="+R$+"&ptchn="+oO+"&ptk="+d+"&video_id="+a},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ZL+"&docid="+a+"&ei="+O+"&event="+Hp+"&feature="+e+"&fexp="+xZ+"&ns="+j9+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+he},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+a+"&ei="+O+"&feature="+
e+"&len="+kX+"&ns="+j9+"&plid="+Y+"&ver="+yE,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+a+"&caps="+r1+"&opi="+ZL+"&xoaf="+yE+"&hl="+j9+"&ip="+qi+"&ipbits="+yE+"&expire="+Cl+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qi+"&key="+r1+"&lang="+QE,name:{simpleText:Cs},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+a+"&caps="+r1+"&opi="+ZL+"&xoaf="+yE+"&hl="+j9+"&ip="+qi+"&ipbits="+yE+"&expire="+Cl+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qi+"&key="+r1+"&kind="+r1+"&lang="+j9,name:{simpleText:s1},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:fc,title:wt,lengthSeconds:"1155",keywords:[AG,es,AG,R$],
channelId:Fd,isOwnerViewing:!1,shortDescription:Cs,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+Mn,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+Mn,width:196,height:110},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
a+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Zz,author:Cs,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Zz,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+oO+"/featured_channel.jpg?v="+V6,width:40,height:40}]},trackingParams:cU+"=",navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fd,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fd}},channelName:Cs,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Cs}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fd,showPreferences:!1,subscribedButtonText:{runs:[{text:R$}]},unsubscribedButtonText:{runs:[{text:Xc}]},trackingParams:cU+"=",unsubscribeButtonText:{runs:[{text:Xc}]},serviceEndpoints:[{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Fd],params:V6}},{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:hj,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:cU+"=",dialogMessages:[{runs:[{text:R$},{text:mA},{text:pR}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Wv}]},serviceEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fd],params:V6}},accessibility:{label:pR},trackingParams:cU+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fc}]},accessibility:{label:AG},trackingParams:cU+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:a$}},unsubscribeAccessibility:{accessibilityData:{label:R$}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:C0},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fd],params:V6}},unsubscribeCommand:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fd],params:V6}},addToWatchLaterCommand:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:fc,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:fc}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+a+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+sw+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
a+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+fc,width:1280,height:720},title:{simpleText:wt},description:{simpleText:Hp},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Cs,externalChannelId:Fd,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:Zz,category:"Travel & Events",publishDate:n0,ownerChannelName:Cs,uploadDate:n0}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Cs},trackingParams:cU+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:hj,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:cU+"="}}],headerText:{simpleText:Wv},icon:{infoCardIconRenderer:{trackingParams:cU+"="}},closeButton:{infoCardIconRenderer:{trackingParams:cU+"="}},trackingParams:cU+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:cU+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+fc+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:fG,interpreterSafeUrl:(ja.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+mU+".js",ja),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Xc},{text:Cs,bold:!0}]},endpoint:{clickTrackingParams:hj,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:cU+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:R$}]},actionButton:{buttonRenderer:{text:{runs:[{text:fc}]},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+a,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
a,target:"TARGET_NEW_WINDOW"}},trackingParams:cU+"="}},trackingParams:cU+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+MF+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+MF+"=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:Zz,endMs:Zz,title:{accessibility:{accessibilityData:{label:R$}},simpleText:mA},metadata:{simpleText:a$},callToAction:{simpleText:pR},dismiss:{simpleText:E8},endpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fd,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fd}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:mA}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fd,showPreferences:!1,
subscribedButtonText:{runs:[{text:mA}]},unsubscribedButtonText:{runs:[{text:s1}]},trackingParams:cU+"=",unsubscribeButtonText:{runs:[{text:E8}]},serviceEndpoints:[{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fd],params:V6}},{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:hj,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:cU+
"=",dialogMessages:[{runs:[{text:Wv},{text:pR},{text:Xc}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:s1}]},serviceEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fd],params:V6}},accessibility:{label:wt},trackingParams:cU+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:E8}]},
accessibility:{label:pR},trackingParams:cU+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Wv}},unsubscribeAccessibility:{accessibilityData:{label:Hp}}}},trackingParams:cU+"=",isSubscribe:!0,id:$w}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+L,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+Mn,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+sw+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Zz,endMs:Zz,title:{accessibility:{accessibilityData:{label:Xc}},simpleText:V6},metadata:{simpleText:V6},endpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
fc,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:fc,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+WI+".googlevideo.com/videoplayback?source=youtube&oeis="+yE+"&c=WEB&oad="+kX+"&ovd="+kX+"&oaad="+lX+"&oavd="+lX+"&ocs="+eo+"&oewis="+yE+"&oputc="+yE+"&ofpcc="+yE+"&siu="+yE+"&msp="+yE+"&odepv="+yE+
"&id=o-AF"+$E+"&ip="+qi+"&initcwndbps="+Zz+"&mt="+Cl+"&oweuc="+xZ}}}}},trackingParams:cU+"=",id:$w,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:es}},simpleText:mA},style:"DEFAULT"}}]}}],startMs:Zz,trackingParams:cU+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:yE,offsetEndMilliseconds:lX},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";ord="+Cl+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+eo+";dc_sk="+yE+";dc_ctype="+d1+";dc_ref=http://www.youtube.com/video/"+fc+";dc_pubid="+yE+";dc_btype=23?gclid="+HI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+yE+"&ns="+yE+"&event="+yE+"&device="+yE+"&content_v="+a+"&el="+mA+"&ei="+O+"&devicever="+n+"&bti="+Zz+"&format="+cb+"&break_type="+yE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+yE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qi+"&slot_pos="+yE+"&slot_len="+yE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Ng+"&ad_len="+lX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
fc+"&aqi="+O+"&ad_rmp="+yE+"&sli="+yE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+
";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+Zz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&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"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&ctype="+eo+"&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"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_engaged_view&ctype="+eo+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+JR+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&dc_pubid="+yE+"&dc_exteid="+$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+yE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&avm="+yE+"&dc_pubid="+yE+"&dc_exteid="+
$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&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="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
b+"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+yE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&dc_pubid="+yE+"&dc_exteid="+$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:hj,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+
eo+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:cU+"="},trackingParams:cU+
"=",templatedCountdown:{templatedAdText:{text:es,isTemplated:!0,trackingParams:cU+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Cs,isTemplated:!1,trackingParams:cU+"="},trackingParams:cU+"="}},trackingParams:cU+"=",skipOffsetMilliseconds:5E3}},trackingParams:cU+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Wv},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:wt,isTemplated:!1,trackingParams:cU+"="},trackingParams:cU+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Cs,isTemplated:!0,trackingParams:cU+"="}},trackingParams:cU+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:hj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(C9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+V+"&hl="+j9+"&origin=www.youtube.com&ata_theme="+ua,C9),trackingParams:cU+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:cU+"="}},hoverText:{runs:[{text:s1}]},trackingParams:cU+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+V4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:cU+"="},headline:{text:ua,isTemplated:!1,trackingParams:cU+"="},description:{text:Cs,
trackingParams:cU+"="},actionButton:{buttonRenderer:{text:{simpleText:V6},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"="}},startMs:yE,trackingParams:cU+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:e8},elementId:wt}},elementId:ua,trackingParams:cU+"=",legacyInfoCardVastExtension:mA,sodarExtensionData:{siub:Wv,bgub:es,scs:wt,bgp:Xc},externalVideoId:fc,adLayoutLoggingData:{serializedAdServingDataEntry:e8},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+V4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:cU+"="},
headline:{text:Hp,isTemplated:!1,trackingParams:cU+"="},description:{text:es,isTemplated:!1,trackingParams:cU+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:V6},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+
$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+
yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:cU+"="}},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+
ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+
U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:cU+"="},abandonCommands:{commands:[{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&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="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+
yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:hj,commandExecutorCommand:{commands:[{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:es,isTemplated:!1,trackingParams:cU+
"="},trackingParams:cU+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:a$},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+Zz+";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="+ZL+";dc_trk_cid="+ZL+";ord="+Cl+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+eo+";dc_sk="+yE+";dc_ctype="+d1+";dc_ref=http://www.youtube.com/video/"+fc+";dc_pubid="+yE+";dc_btype=23?gclid="+HI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+yE+"&ns="+yE+"&event="+yE+"&device="+yE+"&content_v="+a+"&el="+mA+"&ei="+O+"&devicever="+n+"&bti="+Zz+"&format="+cb+"&break_type="+yE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+yE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qi+"&slot_pos="+yE+"&slot_len="+yE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Ng+"&ad_len="+lX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+fc+"&aqi="+O+"&ad_rmp="+yE+"&sli="+yE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+
T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+Zz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&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"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&ctype="+eo+"&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"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_engaged_view&ctype="+eo+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+
es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&dc_pubid="+yE+"&dc_exteid="+$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+
"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+yE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&avm="+yE+"&dc_pubid="+yE+"&dc_exteid="+$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&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="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Jj+"&ad_cpn=[AD_CPN]&id="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+yE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+es+"&dc_pubid="+yE+"&dc_exteid="+$w+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+
eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:cU+"="},trackingParams:cU+"=",templatedCountdown:{templatedAdText:{text:wt,isTemplated:!0,trackingParams:cU+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:wt,isTemplated:!1,trackingParams:cU+"="},trackingParams:cU+"="}},
trackingParams:cU+"=",skipOffsetMilliseconds:5E3}},trackingParams:cU+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:a$},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:es,isTemplated:!1,trackingParams:cU+"="},trackingParams:cU+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:s1,
isTemplated:!0,trackingParams:cU+"="}},trackingParams:cU+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:hj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Od.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+V+"&hl="+j9+"&origin=www.youtube.com&ata_theme="+ua,Od),trackingParams:cU+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:cU+"="}},hoverText:{runs:[{text:Wv}]},trackingParams:cU+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+K1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:cU+"="},headline:{text:es,isTemplated:!1,trackingParams:cU+"="},description:{text:Xc,trackingParams:cU+"="},actionButton:{buttonRenderer:{text:{simpleText:e8},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"="}},startMs:yE,trackingParams:cU+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:AG},elementId:ua}},elementId:Wv,trackingParams:cU+"=",legacyInfoCardVastExtension:Wv,sodarExtensionData:{siub:R$,bgub:wt,scs:es,bgp:Cs},externalVideoId:fc,adLayoutLoggingData:{serializedAdServingDataEntry:Cs},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+K1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:cU+"="},headline:{text:mA,
isTemplated:!1,trackingParams:cU+"="},description:{text:pR,isTemplated:!1,trackingParams:cU+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fc},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:cU+"="}},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+
yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:cU+"="},abandonCommands:{commands:[{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&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="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+d1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:hj,commandExecutorCommand:{commands:[{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Wv,isTemplated:!1,trackingParams:cU+"="},trackingParams:cU+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fc},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yE+";dc_exteid="+$w+";met="+yE+";ecn"+yE+"="+yE+";etm1="+yE+";eid1="+
Zz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:wt}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lX,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+d1+"&token=ALHj"+xX+"&index="+yE+"&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="+n+"&m_pos_ms="+lX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:cb,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+eo+"&token=ALHj"+xX+"&index="+yE+"&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="+
n+"&m_pos_ms="+cb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cb,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+eo+"&token=ALHj"+xX+"&index="+yE+"&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="+
n+"&m_pos_ms="+cb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cb,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+eo+"&token=ALHj"+xX+"&index="+yE+"&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="+
n+"&m_pos_ms="+cb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cb,offsetEndMilliseconds:d1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+eo+"&token=ALHj"+xX+"&index="+yE+"&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="+
n+"&m_pos_ms="+cb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Cs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:d1,offsetEndMilliseconds:d1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+d1+"&token=ALHj"+xX+"&index="+yE+"&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="+
n+"&m_pos_ms="+d1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ua}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Cs,isTemplated:!1,trackingParams:cU+"="},description:{text:s1,isTemplated:!1,trackingParams:cU+"="},actionButton:{buttonRenderer:{text:{simpleText:ua},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+V4+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:cU+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+JG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:cU+"="},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+
";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(nbE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+V+"&hl="+j9+"&origin=www.youtube.com&ata_theme="+ua,nbE),trackingParams:cU+"="}},popupType:"DIALOG"}},trackingParams:cU+"="}},hoverText:{runs:[{text:a$}]},trackingParams:cU+"="}},adVideoId:fc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Wv},associatedCompositePlayerBytesLayoutId:e8}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:fc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:s1,isTemplated:!1,trackingParams:cU+"="},description:{text:mA,isTemplated:!1,trackingParams:cU+"="},actionButton:{buttonRenderer:{text:{simpleText:E8},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+
U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+K1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:cU+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:cU+"="},navigationEndpoint:{clickTrackingParams:hj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+
yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+V+"&hl="+j9+"&origin=www.youtube.com&ata_theme="+ua,aB),trackingParams:cU+"="}},popupType:"DIALOG"}},trackingParams:cU+"="}},
hoverText:{runs:[{text:es}]},trackingParams:cU+"="}},adVideoId:fc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+fc+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:es},associatedCompositePlayerBytesLayoutId:e8}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:fc,
isTemplated:!1,trackingParams:cU+"="},description:{text:Cs,isTemplated:!1,trackingParams:cU+"="},actionButton:{buttonRenderer:{text:{simpleText:E8},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+
d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+
L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:cU+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+V4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:cU+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+JG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:cU+
"="},navigationEndpoint:{clickTrackingParams:hj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZL+";dc_trk_cid="+ZL+";dc_dbm_token="+r+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yE+";ord="+ZL+";dc_rui="+yE+";dc_exteid="+$w+";dc_av="+yE+";dc_sk="+yE+";dc_ctype="+d1+";dc_pubid="+yE+";dc_btype=3?gclid="+HI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+M+"____________"+U+"AxAA&ase=2&num="+yE+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+oK+"&label=video_click_to_advertiser_site&ctype="+eo+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:cU+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(W4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+V+"&hl="+j9+"&origin=www.youtube.com&ata_theme="+ua,W4),trackingParams:cU+"="}},popupType:"DIALOG"}},trackingParams:cU+
"="}},hoverText:{runs:[{text:ua}]},trackingParams:cU+"="}},adVideoId:fc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+M+"____________"+U+"AxAA&sigh="+a+"&cid="+T+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:e8},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:e8}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pR}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:mU,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:mU,command:{innertubeCommand:{clickTrackingParams:hj,ypcGetOfflineUpsellEndpoint:{params:d2}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:cU+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Cl,nanos:aK}}}},JFI=JSON.stringify($4),L6=performance.now()-v;return{objectRepresentation:$4,jsonRepresentation:JFI,generationTime:L6}};
U2F=function(v,E){if(v===E)return!0;if(!v||!E||typeof v!==typeof E)return!1;if(v instanceof Array&&E instanceof Array){if(v.length!==E.length)return!1;for(var n=0;n<v.length;n++)if(!U2F(v[n],E[n]))return!1;return!0}if(typeof v==="object"&&typeof E==="object"&&v&&E){for(n in v)if(!(n in E&&U2F(v[n],E[n])))return!1;for(var f in E)if(!(f in v))return!1;return!0}return!1};
_.ux=function(){if(!ND){ND=new vv(new qCL);var v=_.WG("client_streamz_web_flush_count",-1);v!==-1&&(ND.invocationLimit=v)}return ND};
jN=function(v,E,n,f){if(v===E)return!0;if(Array.isArray(v)&&Array.isArray(E)){if(v.length!==E.length)return!1;for(var x=0;x<v.length;x++)if(!jN(v[x],E[x],n,f))return!1;return!0}if(v instanceof Set||E instanceof Set){if(v instanceof Set&&E instanceof Set){if(v.size!==E.size)return!1;f=_.p(v.values());for(x=f.next();!x.done;x=f.next())if(!E.has(x.value))return!1;return!0}return!1}if(v instanceof Function){if(f)return!0;v.name===""&&_.mb(Error("Hf"),"ERROR");return!1}if(v instanceof Date&&E instanceof
Date)return v.getTime()===E.getTime();if(v instanceof Object&&E instanceof Object){if(J1I(v)&&J1I(E))try{return v.equals(E)}catch(Q){_.mb(Error("If`"+Q),"ERROR")}x=Object.getOwnPropertyNames(v).filter(function(Q){return n?v[Q]!==void 0:!0});
var y=Object.getOwnPropertyNames(E).filter(function(Q){return n?E[Q]!==void 0:!0});
if(x.length!==y.length)return!1;x=_.p(x);for(y=x.next();!y.done;y=x.next())if(y=y.value,!jN(v[y],E[y],n,f))return!1;return!0}return!1};
J1I=function(v){v=Object.getPrototypeOf(v).equals;return v instanceof Function&&v.length===1};
_.IQA=function(){return _.X(function(v){if(v.nextAddress==1)return KLI!==2?v.jumpTo(2):_.m(v,d2N(),3);v.nextAddress!=2&&(KLI=v.yieldResult);return v.return(KLI)})};
_.A1A=function(){return _.X(function(v){if(v.nextAddress==1)return _.Z("ab_pl_man")?YCQ!==2?v.jumpTo(2):_.m(v,hbE(),3):v.return(1);v.nextAddress!=2&&(YCQ=v.yieldResult);return v.return(YCQ)})};
Ht9=function(){return _.X(function(v){if(v.nextAddress==1)return _.Z("ab_fk_sk_cl")?VVN!==2?v.jumpTo(2):_.m(v,D2I(),3):v.return(1);v.nextAddress!=2&&(VVN=v.yieldResult);return v.return(VVN)})};
_.ugy=function(){return _.X(function(v){if(v.nextAddress==1)return _.Z("ab_det_apb_b")?gIX!==2?v.jumpTo(2):_.m(v,Nm1(),3):v.return(1);v.nextAddress!=2&&(gIX=v.yieldResult);return v.return(gIX)})};
kUG=function(){var v;return _.X(function(E){if(E.nextAddress==1)return _.m(E,Promise.all([_.IQA(),_.ugy(),_.A1A(),Ht9()]),2);if(E.nextAddress!=3)return jDX()?E.return(!0):_.m(E,_.OtF(),3);v=E.yieldResult;return E.return(v===0)})};
jDX=function(){var v=!1,E=function(n,f){WLL.increment(f,n);n===0&&(v=!0)};
E(_.$2G(),"j.s_");E(KLI,"f.i_");E(gIX,"a.b_");E(YCQ,"p.m_");E(VVN,"i.f_");LLX===2&&(LLX=_.GUA(_.MVN(TmL)));E(LLX,"e.h_");_.Z("ks_det_gpbl")||E(_.itE(),"p.i_");_.Z("ks_get_o_pp")||E(_.zbL(),"g.o_");_.Z("ab_deg_unex_thr")||E(_.RbE(),"a.o_");E(tVy,"s.t_");_.Z("ab_det_sc_inj_enf")&&E(_.BmE(),"s.i_");E(vMX,"d.p_");E(_.EMy(_.Ob),"o.p_");E(_.nMQ()===0?0:_.oMN(),"o.a_");return _.Z("debug_sk_em_precheck")?!0:v};
x3s=function(){var v=[].concat(_.s8(fvG));try{var E=gG();v.push({jsonRepresentation:E.jsonRepresentation,objectRepresentation:E.objectRepresentation})}catch(n){v=[].concat(_.s8(fvG))}return v};
cdE=function(){var v=["adPlacements","adSlots"];try{return v.filter(function(){return!0}).length!==v.length?0:1}catch(E){return 0}};
_.zbL=function(){if(cdE()===0)return 0;var v=gG(),E=v.objectRepresentation,n=(0,_.sh.unsafeClone)(E),f=[];if(E&&typeof E==="object")for(var x in E)f.push(x);else return 4;v=v.objectRepresentation.adPlacements;if(!(v&&v.length>0))return 4;try{if(!U2F(f,Object.getOwnPropertyNames(E)))return 0}catch(y){return 0}return U2F(n,E)?1:0};
_.EMy=function(v){var E=Object.getOwnPropertyNames(Object.prototype);v=_.p(v);for(var n=v.next();!n.done;n=v.next()){n=_.CQ$(n.value);for(var f=_.p(E),x=f.next();!x.done;x=f.next())if(n===x.value)return 0}return 1};
yds=function(v){var E=_.CQ$(v[1]);if(v[0]===null)return E;v=v[0];for(var n={},f=0;f<v.length;f++){var x=_.CQ$(v[f]);if(f===0)n[x]=E;else{var y={};y[x]=n;n=y}}return n};
_.nMQ=function(){for(var v=_.kt,E=0;E<v.length;E++){var n=yds(v[E]),f=[];f.push(n);if(f.length===0)return 0}return 1};
_.oMN=function(){for(var v=_.kt,E={},n=0;n<v.length;E={eeK:void 0},n++){var f=[yds(v[n])];E.eeK=[];f.forEach(function(x){return function(y){x.eeK[x.eeK.length]=y}}(E));
if(E.eeK.length===0)return 0}return 1};
_.$2G=function(){for(var v=_.p(x3s()),E=v.next();!E.done;E=v.next()){var n=E.value;E=n.jsonRepresentation;n=n.objectRepresentation;try{var f=JSON.parse(E);if(!jN(f,n,!1,!1))return 0}catch(x){return 0}}return 1};
_.BmE=function(){try{var v=_.Lk("ab_det_sc_inj_val");v.length===1&&v[0]===""&&(v=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var E=document.querySelectorAll("script"),n=_.p(E),f=n.next();!f.done;f=n.next())for(var x=f.value,y=_.p(v),Q=y.next();!Q.done;Q=y.next()){var e=Q.value;E=void 0;if((E=x.textContent)==null?0:E.includes(e))return 0}}catch(F){return 4}return 1};
_.OtF=function(){var v,E,n,f,x,y,Q;return _.X(function(e){switch(e.nextAddress){case 1:_.vW(e,2),v=_.p(fvG),E=v.next();case 4:if(E.done)return e.return(1);f=n=E.value;x=f.jsonRepresentation;y=f.objectRepresentation;return _.m(e,(new Response(x,{status:200})).json(),7);case 7:Q=e.yieldResult;if(!jN(Q,y,!1,!1))return e.return(0);E=v.next();e.jumpTo(4);break;case 2:return _.cW(e),e.return(4)}})};
_.RbE=function(){try{btoa("abc")}catch(v){return 0}return 1};
d2N=function(){var v,E,n,f,x,y,Q,e,F,b,l;return _.X(function(r){switch(r.nextAddress){case 1:_.vW(r,2),v=_.p(x3s()),E=v.next();case 4:if(E.done)return r.return(1);f=n=E.value;x=f.jsonRepresentation;y=f.objectRepresentation;Q=btoa(x);e="data:application/json;base64,"+Q;F=new Request(e);Object.defineProperty(F,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(F,"method",{get:function(){return"POST"}});
Object.defineProperty(F,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(F,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(F,"body",{get:function(){return new ReadableStream}});
return _.m(r,fetch(F),7);case 7:return b=r.yieldResult,_.m(r,b.json(),8);case 8:l=r.yieldResult;if(!jN(l,y,!1,!1))return r.return(0);E=v.next();r.jumpTo(4);break;case 2:return _.cW(r),r.return(4)}})};
_.GUA=function(v){var E=_.p(v);v=E.next().value;E=E.next().value;try{var n=document.createElement("div");document.body.appendChild(n);var f=getComputedStyle(n).display;document.body.removeChild(n);if(f==="none")return 4;var x=getComputedStyle(E).display==="none"?0:1;document.body.removeChild(v);return x}catch(y){return 4}};
D2I=function(){var v,E,n;return _.X(function(f){v=new _.Wy;E=document.createElement("button");E.classList.add("ytp-ad-skip-button");E.style.opacity="0";E.style.height="0px";E.style.width="0px";E.style.padding="0px";E.style.border="none";n=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.onclick=function(){v.resolve(0);n()};
document.body.appendChild(E);setTimeout(function(){n();v.resolve(1)},50);
return f.return(v.promise)})};
hbE=function(){var v,E,n,f,x,y,Q;return _.X(function(e){v=new _.Wy;E=document.createElement("ytd-player");try{document.body.prepend(E)}catch(F){return e.return(4)}n=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.getElementsByTagName("div").length>0?f=E.getElementsByTagName("div")[0]:(f=document.createElement("div"),E.appendChild(f));x=document.createElement("div");f.appendChild(x);y=document.createElement("video");Q=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"});y.src=_.ec(_.lW(Q));y.ontimeupdate=function(){n();v.resolve(0)};
x.appendChild(y);y.classList.add("html5-main-video");setTimeout(function(){x.classList.add("ad-interrupting")},200);
setTimeout(function(){n();v.resolve(1)},5E3);
return e.return(v.promise)})};
pmN=function(v,E){var n,f;return _.X(function(x){switch(x.nextAddress){case 1:n=[],f=0;case 2:if(!(f<3)){x.jumpTo(4);break}return _.m(x,fetch(v,{cache:"no-store",method:E}).then(function(y){n.push(y.status)}).catch(function(){n.push(-1)}),3);
case 3:f++;x.jumpTo(2);break;case 4:return x.return(n)}})};
QfA=function(v){return v.domainLookupStart===0&&v.domainLookupEnd===0&&v.connectStart===0&&v.connectEnd===0};
Xm1=function(v,E,n){n=n===void 0?"GET":n;var f,x,y,Q,e,F,b,l,r,a;return _.X(function(M){if(M.nextAddress==1)return _.m(M,Promise.all([pmN(v,n),pmN(E,n)]),2);f=M.yieldResult;x=_.p(f);y=x.next().value;Q=x.next().value;e=y;F=Q;if(Math.min.apply(Math,_.s8(F))!==Math.max.apply(Math,_.s8(F))||Math.min.apply(Math,_.s8(e))!==Math.max.apply(Math,_.s8(e)))return M.return(2);if(Math.min.apply(Math,_.s8(F))===Math.min.apply(Math,_.s8(e)))return M.return(1);l=(b=performance.getEntriesByName(v))==null?void 0:b[0];
a=(r=performance.getEntriesByName(E))==null?void 0:r[0];return l&&a?QfA(a)?M.return(1):QfA(l)?M.return(0):M.return(1):M.return(2)})};
Nm1=function(){var v;return _.X(function(E){var n=[];var f;var x,y,Q;(x=f=(x=gG().objectRepresentation.streamingData)==null?void 0:(y=x.formats)==null?void 0:(Q=y[0])==null?void 0:Q.url)&&x&&!f.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(x=x.replace("initcwndbps","ctier=L&initcwndbps"),f={testUrl:x,baseUrl:f,method:"GET"}):f=void 0;f&&n.push(f);_.Z("ab_net_tp_e")&&n.push({testUrl:_.n1.location.origin+"/ad_companion",baseUrl:_.n1.location.origin+"/generate_204",method:"OPTIONS"});if(_.Z("ad_net_pb_ab")){var e;
b:{f=/api\/stats\/ads/;var F,b,l,r;x=(e=gG().objectRepresentation.adPlacements)==null?void 0:(F=e[0])==null?void 0:(b=F.adPlacementRenderer)==null?void 0:(l=b.renderer)==null?void 0:(r=l.linearAdSequenceRenderer)==null?void 0:r.linearAds;if(x!=null&&x.length&&(e=_.C(x[0],ezQ))&&(e=e.pings,e!=null&&e.impressionPings))for(F=[].concat(_.s8(e.impressionPings)),e.progressPings&&(F=[].concat(_.s8(F),_.s8(e.progressPings))),e=_.p(F),F=e.next();!F.done;F=e.next())if(F=F.value,F.baseUrl&&f.test(F.baseUrl)){e=
F.baseUrl.replace("https://www.youtube.com","");break b}e=void 0}e&&n.push({testUrl:_.n1.location.origin+e,baseUrl:_.n1.location.origin+"/feed/download",method:"GET"})}if(_.Z("ad_net_pb_pbp")){var a;b:{e=/api\/stats\/qoe/;if(F=gG().objectRepresentation.playbackTracking){b=[];b.push(F==null?void 0:(a=F.videostatsPlaybackUrl)==null?void 0:a.baseUrl);var M;b.push(F==null?void 0:(M=F.videostatsDelayplayUrl)==null?void 0:M.baseUrl);var U;b.push(F==null?void 0:(U=F.videostatsWatchtimeUrl)==null?void 0:
U.baseUrl);var d;b.push(F==null?void 0:(d=F.ptrackingUrl)==null?void 0:d.baseUrl);var Y;b.push(F==null?void 0:(Y=F.qoeUrl)==null?void 0:Y.baseUrl);var V;b.push(F==null?void 0:(V=F.atrUrl)==null?void 0:V.baseUrl);a=_.p(b);for(M=a.next();!M.done;M=a.next())if((M=M.value)&&e.test(M)){a=M.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}a=void 0}a&&n.push({testUrl:_.n1.location.origin+a,baseUrl:_.n1.location.origin+"/feed/download",method:"GET"})}n=n.length!==0?n[Math.floor(Math.random()*
n.length)]:void 0;return(v=n)?E.return(Xm1(v.testUrl,v.baseUrl,v.method)):E.return(4)})};
_.itE=function(){if(_.n1.yl0===void 0||_.n1.yl0===null||typeof _.n1.yl0!=="function")return 2;try{return _.n1.yl0()===!0?0:1}catch(v){return 0}};
FNE=function(v){switch(v){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.p0(v,"unknown result type")}};
_.m3Q=function(v,E){var n=Number(_.MX("CATSTAT",0));if(E.nKq===void 0)return n;E=E.nKq;v=FNE(v);return n&~(3<<E)|v<<E};
wmL=function(v){var E,n;if((v=(E=v.auxiliaryUi)==null?void 0:(n=E.messageRenderers)==null?void 0:n.bkaEnforcementMessageViewModel)&&v.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return v};
lvQ=function(){for(var v=_.p(Object.values(_.bKI)),E=v.next();!E.done;E=v.next())E=E.value,E.isAsync&&E.nKq&&_.Ck("CATSTAT",_.m3Q(2,E))};
_.Te=function(v,E){v=_.$t("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",v);(E===void 0?0:E)?_.sfX(v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.LC(_.Ge(),v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
PJy=function(){if(!rdL){if(Polymer.Base){var v=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{v.apply(this,arguments)}catch(r){_.UO(r)}};
var E=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{E.apply(this,arguments)}catch(r){_.UO(r)}};
var n=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{n.apply(this,arguments)}catch(r){_.UO(r)}};
var f=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{f.apply(this,arguments)}catch(r){_.UO(r)}};
var x=Polymer.Base._listen,y=new WeakMap;Polymer.Base._listen=function(r,a,M){var U=function(){try{M.apply(this,arguments)}catch(d){_.UO(d)}};
y.set(M,U);x.call(this,r,a,U)};
var Q=Polymer.Base._unlisten;Polymer.Base._unlisten=function(r,a,M){Q.call(this,r,a,y.get(M))}}if(Polymer.Async){var e=Polymer.Async,F=e._atEndOfMicrotask;
e._atEndOfMicrotask=function(){try{F.apply(e,arguments)}catch(r){_.UO(r)}}}if(Polymer.RenderStatus){var b=Polymer.RenderStatus,l=b.afterNextRender;
b.afterNextRender=function(r,a,M){l.call(b,r,function(){try{a.apply(this,arguments)}catch(U){_.UO(U)}},M)}}rdL=!0}};
_.ZKI=function(v){var E=v?_.R5(v):"";if(E){if(E.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(E.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(E.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(E.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(E.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(E.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";E=E.toLowerCase();if(E==="/")return"home";if(E===
"/channel_memberships")return"channel-memberships-shopfront";if(E.indexOf("/feed/trending")===0)return"trending";if(E.indexOf("/feed/explore")===0)return"explore";if(E.indexOf("/live")===0)return"live";if(E.indexOf("/results")===0)return"search";if(E.indexOf("/sports")===0)return"sports";if(E.indexOf("/fashion")===0||E.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(E))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(E))return"learning";
if(E.indexOf("/channel/")===0||E.indexOf("/user/")===0||E.indexOf("/gaming")===0||E.indexOf("/post/")===0)return"channel";if(avI(v))return"show";if(E==="/playlist"||E.indexOf("/playlist/")===0||E==="/view_play_list"||E.indexOf("/view_play_list/")===0||E.indexOf("/show/")===0)return"playlist";if(E==="/feed/history"||E.indexOf("/feed/history/")===0)return"history";if(E==="/new")return"labs";if(E==="/feed/subscriptions")return"subscriptions";if(E.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(E==="/history_controls")return"standalone";if(E.indexOf("/account")===0||E==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(E.indexOf("/paid_memberships")===0||E.indexOf("/refund")===0||E.indexOf("/purchases")===0||E.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(E.indexOf("/product")===0)return"yts-products";if(E.indexOf("/premium")===0||E.indexOf("/musicpremium")===0)return E.indexOf("/premium/offers")===0||E.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(E===
"/cart/checkout"||E==="/cart")return"ypc-checkout";if(E.indexOf("/feed/downloads")===0||E.indexOf("/redeem")===0||E.indexOf("/reporthistory")===0)return"browse";if(E.indexOf("/hashtag")===0)return"hashtag-landing-page";if(E.indexOf("/handle")===0)return"handle";if(E.indexOf("/source")===0)return"audio-pivot";if(E.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(E.indexOf("/playables")===0)return"playables";if(E.indexOf("/create/live/join")===0)return"open-in-app";if(E.indexOf("/shorts")===
0)return"shorts";if(E.indexOf("/feed/channels")===0)return"subscriptions-channels";(E=v?_.R5(v):"")&&E.indexOf("/watch")===0&&_.Z("web_watch_enable_learning_journey")?(v=_.hM(v),v=!!v.list&&v.list.indexOf("LJPP")===0):v=!1;if(v)return"learning-journey-watch"}};
avI=function(v){var E=v?_.R5(v):"";if(!E)return!1;E=E.toLowerCase();return E.indexOf("/show/")===0||E.indexOf("/playlist")===0&&(v=_.hM(v),v.list&&v.list.indexOf("EL")===0)?!0:!1};
Rb=function(v){var E="unknown",n;var f=((n=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:n.webPageType)||"";f?(n=f.toLowerCase(),n.startsWith("web_page_type_")&&(n=n.slice(14))):n=f;n&&CJG[n.toUpperCase()]?E=CJG[n.toUpperCase()]:_.C(v,_.ix)||_.C(v,MGX)?E="browse":_.C(v,_.ze)?E="search":_.C(v,_.dM)&&(E="watch");E==="unknown"&&_.li(Error("Kf`"+JSON.stringify({clickTrackingParams:v==null?void 0:v.clickTrackingParams,commandMetadata:v==null?void 0:v.commandMetadata,allEndpointKeys:Object.keys(v||
[])})));return E};
_.tC=function(v){if(!_.SpE||v)_.SpE=_.xr();return _.SpE};
_.U31=function(v){return!!_.C(v,_.dM)||!!_.C(v,_.By)&&_.Z("kevlar_enable_shorts_prefetch")};
_.qp$=function(v,E){v=_.C(v,_.dM)||_.C(v,_.By);return"v"+v.videoId+(v.playlistId?"-pl"+v.playlistId:"")+(E?"-an1":"")+(v.params?"-pr"+v.params:"")};
KN1=function(v){var E=_.WG("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;if(!_.C(v,_.By))return E&&_.li(Error("Nf")),!1;var n;return _.Z("shorts_controller_retrieve_seedless_sequence_v2")&&((n=_.C(v,_.By))==null?void 0:n.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Jds(v)?!0:(E&&_.li(Error("Of")),!1)};
Jds=function(v){var E=(_.C(v,_.dM)||_.C(v,_.By)).videoId;if(!E||!d3E.test(E))return!1;var n;return(v=(n=_.C(v.commandMetadata,_.Dl))==null?void 0:n.url)&&(v.includes(E)||v.startsWith("/clip"))?!0:!1};
_.YpQ=function(){var v=_.Ef();return v.getFlag(192)?v.getFlag(190):!(_.Z("web_watch_cinematics_disabled_by_default")||_.Z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&IvN())};
_.vp=function(v,E,n){var f={};f.currentUrl=E;f.vis=v.vis!==void 0?v.vis:0;f.splay=!1;E=_.Ef();f.autoCaptionsDefaultOn=E.getFlag(66);E.getFlag(141)?E.getFlag(140)?f.autonavState="STATE_OFF":f.autonavState="STATE_ON":f.autonavState="STATE_NONE";f.html5Preference="HTML5_PREF_WANTS";isNaN(_.MX("STS"))||(f.signatureTimestamp=_.MX("STS"));v.autonav&&(f.autoplay=!0,f.autonav=!0);v.mutedAutoplay&&(f.autoplay=!0,f.mutedAutoplay=!0);v.inlinePlayback&&(f.autoplay=!0,f.autonav=!1,f.isInlineUnmutedPlayback=!!v.inlineUnmuted);
f.referer=n;f.lactMilliseconds=v.lact!==void 0?v.lact.toString():"-1";_.Z("enable_unknown_lact_fix_on_html5")&&f.lactMilliseconds==="-1"&&_.li(new _.yc("Unknown LACT is set in playbackContext.",{"lact in tempData":v.lact||"undefined",autonav:v.autonav||"undefined"}));v={};E.getFlag(194)&&(v.hasShownAmbientMode=!0);E.getFlag(192)&&(v.hasToggledOffAmbientMode=!0);_.YpQ()&&(v.watchAmbientModeEnabled=!0);f.watchAmbientModeContext=v;return f};
hzE=function(v){var E={},n=v.pbis||0;n&&(E.playbackBeginsInSeconds=n);v.prefetch_reason&&v.prefetch_reason==="hc_pbis"&&(E.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return E};
_.Ad9=function(v){var E=new En(_.MX("ONE_PICK_URL",""));E.urlParamMap_.set("hostId",v);(v=_.MX("GAPI_LOCALE"))&&E.urlParamMap_.set("hl",v);(v=_.MX("SESSION_INDEX"))&&E.urlParamMap_.set("authuser",v);(v=_.MX("DELEGATED_SESSION_ID"))&&E.urlParamMap_.set("groupId",v);return E};
D3A=function(){var v=_.P(),E=v.resolve(_.n2);v=v.resolve(_.ok);return new VGN(E,v)};
gME=function(v){if(window.IntersectionObserver)return new HKG(v,400);throw new TypeError("Vf");};
uPL=function(){var v=Hammer.TouchAction,E=v.prototype.preventDefaults;v.prototype.preventDefaults=function(n){var f=this.actions.indexOf("pan-down")>-1;if(!f)return E.call(this,n);if(!No$){var x=n.srcEvent;n=n.direction;var y;if((y=this.manager)==null?0:y.session.prevented)x.preventDefault();else if(f&&n&Hammer.DIRECTION_DOWN)return this.preventSrc(x)}}};
jfQ=function(v){if(!v||v.size===0)return Hammer.DIRECTION_ALL;if(v.size===2){if(v.has("up")&&v.has("down"))return Hammer.DIRECTION_VERTICAL;if(v.has("right")&&v.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(v.size===1){if(v.has("up"))return Hammer.DIRECTION_UP;if(v.has("down"))return Hammer.DIRECTION_DOWN;if(v.has("right"))return Hammer.DIRECTION_RIGHT;if(v.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.kvy=function(){return OK1?Promise.resolve(OK1):new Promise(function(v,E){var n=self.indexedDB.open("swpushnotificationsdb");n.onerror=E;n.onsuccess=function(){var f=n.result;if(f.objectStoreNames.contains("swpushnotificationsstore"))OK1=f,v(OK1);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.kvy()};
n.onupgradeneeded=WN9})};
WN9=function(v){v=v.target.result;v.objectStoreNames.contains("swpushnotificationsstore")&&v.deleteObjectStore("swpushnotificationsstore");v.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
LN$=function(v){var E=$3E(),n;return _.X(function(f){switch(f.nextAddress){case 1:return _.vW(f,2),_.m(f,v.match(E,{cacheName:"yt-appshell-assets"}),4);case 4:n=f.yieldResult;_.qp(f,3);break;case 2:_.cW(f);case 3:return f.return(n)}})};
$3E=function(){var v=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Gv9.registration.scope:ToG;v.endsWith("/")&&(v=v.slice(0,-1));return v+"/app_shell_home"};
iK9=function(v){v.map(function(E){return E.source}).join("|")};
_.zzG=function(v){return _.X(function(E){return E.return(LN$(v))})};
RzQ=function(){var v=window.caches,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,_.zzG(v),2);E=n.yieldResult;return n.return(!!E)})};
f7E=function(){_.X(function(v){if(v.nextAddress==1){if(tG1)return v.jumpTo(0);tG1=!0;if(_.Z("enable_system_health_primes_monitoring"))return _.i5(Bo1,3E4),vQ$(),v.return();if(!(Math.random()<_.WG("web_system_health_fraction")))return v.jumpTo(0);EQy={heightPixels:screen.height,widthPixels:screen.width};f2&&!isNaN(f2.jsHeapSizeLimit)&&(EQy.memoryTotalKbytes=String(Math.round(f2.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(EQy.devicePixelRatio=window.devicePixelRatio);return _.m(v,nQQ(),4)}_.i5(Bo1,
3E4);return _.m(v,oQX(),0)})};
nQQ=function(){return _.X(function(v){if(v.nextAddress==1)return xy.intersectionObserverPresent="IntersectionObserver"in window,xy.serviceWorkerPresent="serviceWorker"in navigator,xy.webSharePresent="share"in navigator,xy.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,xy.cacheStoragePresent="caches"in window,xy.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,xy.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
xy.webkitTemporaryStoragePresent="webkitTemporaryStorage"in cp&&cp.webkitTemporaryStorage&&"queryUsageAndQuota"in cp.webkitTemporaryStorage,xy.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.m(v,vsE(),2);xy.indexedDbPresent=v.yieldResult;xy.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;xy.broadcastChannelPresent="BroadcastChannel"in window;xy.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(xy.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,xy.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.yQ(v)})};
Bo1=function(){var v=9E4+Math.random()*2E3;_.gh()>v||(_.Z("enable_system_health_primes_monitoring")?vQ$():oQX())};
oQX=function(){var v;return _.X(function(E){if(E.nextAddress==1)return _.m(E,xjE(),2);v=E.yieldResult;_.eQ("systemHealthCaptured",v);_.yQ(E)})};
vQ$=function(){var v={metric:{}},E=czE();E.networkEvents.length&&(v.metric.networkEvents=yzs(E));_.eQ("systemHealthCaptured",v)};
xjE=function(){var v,E,n,f,x,y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:v={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)};E=window.screen;_.Z("enable_is_extended_monitoring")&&E&&"isExtended"in E&&(v.isExtended=!!E.isExtended);n={metric:{staticContext:EQy,dynamicContext:v,webMetric:pLE,webApiSupport:xy}};
if(f=_.lc())n.csn=f;f2&&(n.metric.webMetric.currentHeapKbytes=Math.round(f2.usedJSHeapSize/1E3));window.matchMedia&&(n.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,n.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,n.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in cp&&typeof cp.getBattery==="function")){l.jumpTo(2);break}return _.m(l,cp.getBattery(),3);case 3:if(x=
l.yieldResult)n.metric.dynamicContext.chargingStatus=x.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(n.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(xy.storageEstimatePresent)return _.m(l,navigator.storage.estimate(),8);if(!xy.webkitTemporaryStoragePresent){l.jumpTo(5);break}return _.m(l,Q2G(),7);case 7:y=l.yieldResult;l.jumpTo(5);break;case 8:y=l.yieldResult;case 5:return n.metric.dynamicContext.deviceStorageQuotaMbytes=((Q=y)==null?0:Q.quota)?String(Math.round(y.quota/
1048576/10)*10):"-1",n.metric.dynamicContext.deviceStorageUsageMbytes=((e=y)==null?0:e.usage)?String(Math.round(y.usage/1048576/10)*10):"-1",F=n.metric.dynamicContext,_.m(l,RzQ(),9);case 9:return F.hasAppShell=l.yieldResult,b=czE(),b.networkEvents.length&&(n.metric.networkEvents=yzs(b)),l.return(n)}})};
Q2G=function(){return new Promise(function(v){var E;xy.webkitTemporaryStoragePresent&&(E=cp.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?cp.webkitTemporaryStorage.queryUsageAndQuota(function(n,f){v({usage:n,quota:f})}):v(void 0)})};
_.p2=function(v){v&=16777215;v=[(v&16711680)>>16,(v&65280)>>8,v&255];return XLX(v[0],v[1],v[2])};
_.Qt=function(v){v=[(v&16711680)>>>16,(v&65280)>>>8,v&255,(v&4278190080)>>>24];var E=_.eGE(v,function(n){return n==(n&255)});
v[3]=(v[3]/255).toFixed(3);if(!E)throw Error("Wf`"+v.join(","));return"rgba("+v.join(",")+")"};
_.F89=function(v){return[(v&16711680)>>>16,(v&65280)>>>8,v&255]};
_.mj1=function(v){v=v.map(function(E){E/=255;return E<=.03928?E/12.92:Math.pow((E+.05)/1.05,2.4)});
return v[0]*.2126+v[1]*.7152+v[2]*.0722};
XJ=function(v,E){v=_.F89(v);return"rgba("+v[0]+", "+v[1]+", "+v[2]+", "+E+")"};
_.wL9=function(){try{return!!self.localStorage}catch(v){return!1}};
rzQ=function(){if(b41())_.li(Error("Xf"));else{var v=document.createElement("iframe");v.style.display="none";var E=E===void 0?window.location.href:E;var n=_.b6(_.MX("PERSIST_IDENTITY_IFRAME_URL"));E=n?n:(new URL(E)).host.indexOf("studio")===0?_.i_(l7L,"persist_identity"):_.i_(s2Q,"persist_identity");_.PrG(v,1,E);v.id="persist_identity";var f;(f=document.body)==null||f.appendChild(v)}};
b41=function(){var v=PRs;v||(v=document.querySelector("#persist_identity"));return v};
a71=function(){var v=!1;try{v=!!window.sessionStorage.getItem("session_logininfo")}catch(E){v=!0}return(_.MX("INNERTUBE_CLIENT_NAME")==="WEB"||_.MX("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&v};
Z4E=function(v,E){if(!a71())return!1;E||(E=_.MX("LOGIN_INFO"));return E?(v.session_logininfo=E,!0):!1};
MR1=function(v,E){v=v===void 0?!1:v;if((E===void 0||!E)&&CRG!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Sp("LOG_STICKINESS",!1)){E=_.lc();var n=_.bc(),f={identityStickinessData:{initialState:CRG}};E&&n&&_.KH(E,n,f)}if(E=b41())if(n=E.src?(new URL(E.src)).origin:"*",v){var x;(x=E.contentWindow)==null||x.postMessage({action:"clear"},n)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(v=window.sessionStorage.getItem("session_logininfo"))){var y;(y=E.contentWindow)==null||y.postMessage({loginInfo:v},n)}};
_.ek=function(v){v=v===void 0?!0:v;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Ck("LOGIN_INFO",""),v&&window.sessionStorage.setItem("from_switch_account","1"),MR1(!0,v)}catch(E){}};
Sqy=function(v){v&&(v.startsWith("https://accounts.google.com/AddSession")?_.ek():v.startsWith("https://accounts.google.com/ServiceLogin")?_.ek():v.startsWith("https://myaccount.google.com")&&_.qE(v).getPath().endsWith("/youtubeoptions")&&_.ek())};
FJ=function(v,E){Sqy(v);if(_.Sp("LOGGED_IN",!0)&&a71()){var n=ZLL(v);n==null&&(n={});Z4E(n,E)&&_.AQ(v,n)}};
UjQ=function(){function v(E){for(E=E.target;E&&E.nodeName!=="A";)if(E=E.parentNode,!(E&&E instanceof HTMLElement))return;if(E&&!E.hasAttribute("download")&&E.getAttribute("rel")!=="external"&&E.href)return E.href}
document.addEventListener("mousedown",function(E){E.button!==0&&(E=v(E))&&FJ(E)});
document.addEventListener("click",function(E){(E=v(E))&&FJ(E)})};
K8Q=function(){var v=new qqI;try{if(_.Sp("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(e){v.increment(5,!1);return}if(_.MX("LOGIN_INFO")){var E=Jz$?Jz$:window.location;_.MX("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&rzQ();var n=ZLL(E.href);n==null&&(n={});var f=n.session_logininfo,x=Number(window.sessionStorage.getItem("stickiness_reload")),y=f===_.MX("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
x>=2||y)x>=2?v.increment(2,y):y?v.increment(7,y):window.sessionStorage.getItem("session_logininfo")||(v.increment(3,y),CRG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.MX("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.MX("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))v.increment(4,y),window.sessionStorage.removeItem("stickiness_reload");
else if(x<2){window.sessionStorage.setItem("stickiness_reload",String(x+1));var Q=E.href;Q=_.VT(Q,"sttick");FJ(Q,window.sessionStorage.getItem("session_logininfo"));Q=_.AM(Q,{sttick:x});v.increment(x,y);_.jc(E,Q)}}else v.increment(6,!1)}else _.ek(!1)}catch(e){}};
_.mo=function(v,E,n,f,x){E=E===void 0?{}:E;n=n===void 0?"":n;f=f===void 0?window:f;v=_.V1(v,E);FJ(v);n=_.bW(v+n,x);_.jc(f.location,n)};
djL=function(v){if(v.urlEndpoint){if(v=_.hM(v.urlEndpoint.url),v.adurl)return u5(v.adurl)}else if(v.watchEndpoint)return"//www.youtube.com/watch?v="+v.watchEndpoint.videoId;return null};
I7X=function(v){if(!v||!v.reportingPings)return null;var E={};v.reportingPings.forEach(function(n){n.pingType in E?E[n.pingType].push(n.url):E[n.pingType]=[n.url]});
return{adpings:KtE(E)}};
_.bo=function(v){v=v===void 0?!1:v;var E=_.Ef(),n="USER_INTERFACE_THEME_LIGHT";E.getFlag(165)?n="USER_INTERFACE_THEME_DARK":E.getFlag(174)?n="USER_INTERFACE_THEME_LIGHT":_.wn()&&(n="USER_INTERFACE_THEME_DARK");return v?n:YqE()||n};
_.hGQ=function(){return!_.Z("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.wn=function(){return _.hGQ()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.lo=function(){var v=_.Ef();return _.hGQ()&&!v.getFlag(165)&&!v.getFlag(174)};
YqE=function(){var v=v===void 0?window.location.href:v;if(_.Z("kevlar_disable_theme_param"))return null;var E=_.R5(v);if(_.AzX(E))return"USER_INTERFACE_THEME_DARK";try{var n=_.hM(v).theme;return VRE.get(n)||null}catch(f){}return null};
_.AzX=function(v){return _.Z("enable_dark_theme_only_on_shorts")?!(v==null||!v.startsWith("/shorts/")):!1};
_.gQQ=function(v,E,n,f,x){E=E===void 0?!1:E;n=n===void 0?!1:n;var y=_.MX("INNERTUBE_CONTEXT");if(!y)return _.mb(Error("ag")),{};y=(0,_.sh.unsafeClone)(y);_.Z("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var Q=y.client;Q.clientName==="MWEB"&&Q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Q.clientFormFactor=_.MX("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Q.screenWidthPoints=window.innerWidth;Q.screenHeightPoints=window.innerHeight;Q.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Q.screenDensityFloat=window.devicePixelRatio||1;Q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Q.userInterfaceTheme=_.bo();if(!E){var e=_.ZGI();e&&(Q.connectionType=e);_.Z("web_log_effective_connection_type")&&(e=MKE())&&(y.client.effectiveConnectionType=e)}var F;if(_.Z("web_log_memory_total_kbytes")&&((F=_.n1.navigator)==null?0:F.deviceMemory)){var b;F=(b=_.n1.navigator)==null?void 0:b.deviceMemory;y.client.memoryTotalKbytes=""+F*1E6}E&&f&&!_.Z("web_it_context_set_original_url_ks")&&
(Q.originalUrl=DjX(_.n1.location.href,f).toString());_.Z("web_gcf_hashes_innertube")&&(e=V7X())&&(b=e.coldConfigData,F=e.coldHashData,e=e.hotHashData,y.client.configInfo=y.client.configInfo||{},b&&(y.client.configInfo.coldConfigData=b),F&&(y.client.configInfo.coldHashData=F),e&&(y.client.configInfo.hotHashData=e));b=_.hM(_.n1.location.href);!_.Z("web_populate_internal_geo_killswitch")&&b.internalcountrycode&&(Q.internalGeo=b.internalcountrycode);!_.Z("web_populate_client_screen_killswitch")&&x&&(Q.clientScreen=
x);Q.clientName==="MWEB"||Q.clientName==="WEB"?(Q.mainAppWebInfo={graftUrl:f||_.n1.location.href},_.Z("kevlar_woffle")&&_.sn.instance&&(f=_.sn.instance,Q.mainAppWebInfo.pwaInstallabilityStatus=!f.appInstalledEventFired&&f.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Q.mainAppWebInfo.webDisplayMode=qfX(),Q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Q.clientName==="TVHTML5"&&(!_.Z("web_lr_app_quality_killswitch")&&
(f=_.MX("LIVING_ROOM_APP_QUALITY"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{appQuality:f})),f=_.MX("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{certificationScope:f}));!_.Z("web_populate_time_zone_itc_killswitch")&&(f=PcL())&&(Q.timeZone=f);(f=jSI())?Q.experimentsToken=f:delete Q.experimentsToken;Q=OVE();f=_.H41();f=(0,_.sh.getValues)(f.tokenJars);y.request=Object.assign({},y.request,{internalExperimentFlags:Q,consistencyTokenJars:f});!_.Z("web_prequest_context_killswitch")&&
(Q=_.MX("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=Q);f=_.Ef();Q=f.getFlag(58);f=f.get("gsml","");y.user=Object.assign({},y.user);Q&&(y.user.enableSafetyMode=Q);f&&(y.user.lockedSafetyMode=!0);_.Z("warm_op_csn_cleanup")?n&&(E=_.lc())&&(y.clientScreenNonce=E):!E&&(E=_.lc())&&(y.clientScreenNonce=E);v&&(y.clickTracking={clickTrackingParams:v});if(v=_.JM("yt.mdx.remote.remoteClient_"))y.remoteClient=v;_.rn.getInstance().setLocationOnInnerTubeContext(y);try{var l=t$s(),
r=l.bid;delete l.bid;y.adSignalsInfo={params:[],bid:r};for(var a=_.p(Object.entries(l)),M=a.next();!M.done;M=a.next()){var U=_.p(M.value),d=U.next().value,Y=U.next().value;l=d;r=Y;v=void 0;(v=y.adSignalsInfo.params)==null||v.push({key:l,value:""+r})}var V,O;if(((V=y.client)==null?void 0:V.clientName)==="TVHTML5"||((O=y.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var T=_.MX("INNERTUBE_CONTEXT");T.adSignalsInfo&&(y.adSignalsInfo.advertisingId=T.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=T.adSignalsInfo.limitAdTracking)}}catch(L){_.mb(L)}return y};
_.Pp=function(){return{isShellLoad:_.Sp("IS_SHELL_LOAD",!1)}};
u51=function(){navigator.serviceWorker.getRegistrations().then(function(v){v.forEach(NT1)})};
NT1=function(v){v&&_.j2I(O4$,v.scope)};
_.j2I=function(v,E){E={scope:E||_.$6("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.c5(v),E)};
ak=function(v,E,n,f){if(E&&E.serializedYpcCujLoggingParams){if(n){var x={};x.transactionErrorType=n;f&&(x.errorMessage=f);E.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:x}}}n={};n.ypcCujContext=E;v=_.$t("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",v,n);_.LC(_.Ge(),v,"FLOW_TYPE_YPC_ACQUISITION")}};
_.k9G=function(v,E,n,f){var x={};x.serializedTransactionFlowLoggingParams=E;n&&(x.errorType=n);f&&(x.errorMessage=f);_.eQ(v,x);_.Fu()};
_.W8L=function(v){v&&_.k9G("transactionFlowStarted",v)};
_.$jI=function(v){v&&_.k9G("transactionFlowCancelled",v)};
_.Z_=function(v,E,n){E&&_.k9G("transactionFlowFailed",E,v,n)};
_.C2=function(){this.megabloxUrl_=null};
_.MQ=function(v){try{var E=L8X==null?void 0:L8X.composedPath(v)}catch(n){E=v.composedPath?v.composedPath():[]}return E&&E.length>0?E:v.composedPath?v.composedPath():[]};
_.Sk=function(v){return _.MQ(v)[0]};
_.Un=function(v){if(!(v instanceof Element))return null;v=v.classList?Array.from(v.classList):void 0;if(!v)return null;var E=v.indexOf("style-scope");return E>-1&&E+1<v.length?v[E+1]:null};
qQ=function(v){if(!(v instanceof HTMLElement))return null;var E=v&&(v.$$||v.polymerController)?v.tagName.toLowerCase():null;return E?E:_.Un(v)};
G9Q=function(v,E){return v.replace(/[^a-z]*[^\s]+/g,function(n){return n+".style-scope."+E})};
TTL=function(v,E){return E?v.split(",").map(function(n){return G9Q(n.trim(),E)}).join(", "):v};
_.JV=function(v){var E,n,f,x;return(x=(f=(n=(E=v.root)!=null?E:v.shadowRoot)!=null?n:v.__shady_native_shadowRoot)!=null?f:v.__shady_shadowRoot)!=null?x:v};
K2=function(v){return v instanceof ShadowRoot?ShadowRoot:v instanceof DocumentFragment?DocumentFragment:v instanceof Document?Document:HTMLElement};
i49=function(v){var E,n,f;return(f=(n=(E=v.parentElement)!=null?E:v.__shady_native_parentElement)!=null?n:v.__shady_parentElement)!=null?f:null};
zGI=function(v){var E,n,f;return(f=(n=(E=v.parentNode)!=null?E:v.__shady_native_parentNode)!=null?n:v.__shady_parentNode)!=null?f:null};
RG9=function(v){var E,n,f;return(f=(n=(E=v.__shady_parentNode)!=null?E:v.__shady_native_parentNode)!=null?n:v.parentNode)!=null?f:null};
tRs=function(v){var E,n;return(n=(E=zGI(v))!=null?E:v.host)!=null?n:null};
BT1=function(v){var E,n,f;return(f=(n=(E=v.nextSibling)!=null?E:v.__shady_native_nextSibling)!=null?n:v.__shady_nextSibling)!=null?f:null};
vUA=function(v){var E,n,f;return(f=(n=(E=v.previousSibling)!=null?E:v.__shady_native_previousSibling)!=null?n:v.__shady_previousSibling)!=null?f:null};
EUX=function(v){var E,n,f;return(f=(n=(E=v.nextElementSibling)!=null?E:v.__shady_native_nextElementSibling)!=null?n:v.__shady_nextElementSibling)!=null?f:null};
nUQ=function(v){var E,n,f;return(f=(n=(E=v.previousElementSibling)!=null?E:v.__shady_native_previousElementSibling)!=null?n:v.__shady_previousElementSibling)!=null?f:null};
oUE=function(v){var E,n,f;return new Set([].concat(_.s8((E=v.children)!=null?E:[]),_.s8((n=v.__shady_native_children)!=null?n:[]),_.s8((f=v.__shady_children)!=null?f:[])))};
f8$=function(v){var E,n,f;return new Set([].concat(_.s8((E=v.childNodes)!=null?E:[]),_.s8((n=v.__shady_native_childNodes)!=null?n:[]),_.s8((f=v.__shady_childNodes)!=null?f:[])))};
xv9=function(v){if(!v)return null;var E=_.Un(v);if(!E){var n;return(n=Node.prototype.getRootNode)==null?void 0:n.call(v)}E=E.toUpperCase();for(v=i49(v);v&&v.tagName!==E;)v=i49(v);return v?_.JV(v):null};
cLF=function(v){for(;v&&!(v instanceof HTMLElement);)v=tRs(v);return v};
yLA=function(v){var E=cLF(v);return v===E?_.Un(v):E?qQ(E):null};
pYI=function(v){return(v=cLF(v))?qQ(v):null};
QaE=function(v){if(v instanceof Comment)return!1;if(v instanceof Text){var E,n;if(((n=(E=v.textContent)==null?void 0:E.trim())!=null?n:"")==="")return!1}return!0};
dn=function(v,E,n){var f=E(v);for(n=n===void 0?pYI(v):n;f&&(yLA(f)!==n||!QaE(f));)v=f,f=E(v);return f};
XYN=function(v,E,n){if(!E)return null;v=pYI(v);return yLA(E)===v&&QaE(E)?E:dn(E,n,v)};
ee$=function(v){return dn(v,RG9,_.Un(v))};
F0y=function(v){return dn(v,EUX)};
mvE=function(v){return dn(v,BT1)};
wYI=function(v){return dn(v,nUQ)};
bi9=function(v){return dn(v,vUA)};
l81=function(v){return XYN(v,v.firstChild||v.__shady_native_firstChild||v.__shady_firstChild||null,BT1)};
saG=function(v){var E,n,f;var x=(f=(n=(E=v.firstElementChild)!=null?E:v.__shady_native_firstElementChild)!=null?n:v.__shady_firstElementChild)!=null?f:null;return XYN(v,x,EUX)};
rLQ=function(v){var E,n,f;var x=(f=(n=(E=v.lastChild)!=null?E:v.__shady_native_lastChild)!=null?n:v.__shady_lastChild)!=null?f:null;return XYN(v,x,vUA)};
PdI=function(v){var E,n,f;var x=(f=(n=(E=v.lastElementChild)!=null?E:v.__shady_native_lastElementChild)!=null?n:v.__shady_lastElementChild)!=null?f:null;return XYN(v,x,nUQ)};
a8X=function(v){var E=pYI(v);return Array.from(f8$(v)).filter(function(n){return yLA(n)===E})};
ZiE=function(v){var E=qQ(v);return Array.from(oUE(v)).filter(function(n){return _.Un(n)===E})};
_.Ik=function(v,E,n){if(v instanceof HTMLElement&&_.Un(v)===n){var f=Array.from(v.classList).indexOf("style-scope");if(f===-1)v.classList.add("style-scope"),v.classList.add(E);else if(!(f+1>=v.classList.length)){f=v.classList[f+1];var x,y;v==null||(x=v.classList)==null||(y=x.replace)==null||y.call(x,f,E)}}if(v instanceof HTMLElement||v instanceof DocumentFragment)for(x=_.p(oUE(v)),y=x.next();!y.done;y=x.next())_.Ik(y.value,E,n);return v};
Yy=function(v,E){if(v instanceof HTMLElement&&_.Un(v)===E){var n=Array.from(v.classList).indexOf("style-scope");n===-1||n+1>=v.classList.length||v.classList.remove("style-scope",v.classList[n+1])}if(v instanceof HTMLElement||v instanceof DocumentFragment){n=_.p(v.children);for(var f=n.next();!f.done;f=n.next())Yy(f.value,E)}return v};
_.CdE=function(v,E){return K2(v).prototype.appendChild.call(v,E)};
MLs=function(v,E){if(v===E)return!0;v=f8$(v);return Array.from(v).some(function(n){return MLs(n,E)})};
_.K=function(v,E){if(v instanceof hV)return v;(E==null?0:E.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(v,"ownerDocument")&&Object.defineProperty(v,"ownerDocument",{get:function(){return window.document}});
return new hV(v)};
UvX=function(){var v=hV.prototype,E=[].concat(_.s8(S$N?[]:["getRootNode"]),["setAttribute","removeAttribute"]);E=_.p(E);for(var n=E.next(),f={};!n.done;f={method$jscomp$50:void 0},n=E.next())f.method$jscomp$50=n.value,v[f.method$jscomp$50]=function(x){return function(){return this.host[x.method$jscomp$50].apply(this.host,arguments)}}(f)};
JLQ=function(){var v=hV.prototype,E=[].concat(_.s8(S$N?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.s8(q$X?[]:["querySelector","querySelectorAll"]));E=_.p(E);for(var n=E.next(),f={};!n.done;f={method$jscomp$51:void 0},n=E.next())f.method$jscomp$51=n.value,v[f.method$jscomp$51]=function(x){return function(){return this.root[x.method$jscomp$51].apply(this.root,arguments)}}(f)};
I8E=function(){var v=hV.prototype,E=[].concat(_.s8(K0L?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.s8(dvF?[]:["parentNode"]));E=_.p(E);for(var n=E.next(),f={};!n.done;f={prop$jscomp$62:void 0},n=E.next())f.prop$jscomp$62=n.value,Object.defineProperty(v,f.prop$jscomp$62,{get:function(x){return function(){return this.host[x.prop$jscomp$62]}}(f),
configurable:!0})};
AL$=function(){var v=hV.prototype,E=["activeElement"].concat(_.s8(K0L?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.s8(Y$$?[]:["children"]),_.s8(he$?[]:["lastChild"]));E=_.p(E);for(var n=E.next(),f={};!n.done;f={prop$jscomp$63:void 0},n=E.next())f.prop$jscomp$63=n.value,Object.defineProperty(v,f.prop$jscomp$63,{get:function(x){return function(){return this.root[x.prop$jscomp$63]}}(f),
configurable:!0})};
VLy=function(){for(var v=hV.prototype,E=_.p(["innerHTML","textContent"]),n=E.next(),f={};!n.done;f={prop$jscomp$64:void 0},n=E.next())f.prop$jscomp$64=n.value,Object.defineProperty(v,f.prop$jscomp$64,{get:function(x){return function(){return this.root[x.prop$jscomp$64]}}(f),
set:function(x){return function(y){this.root[x.prop$jscomp$64]=y}}(f),
configurable:!0})};
DvG=function(v){var E=hV.prototype;v=_.p(Object.entries(v));for(var n=v.next(),f={};!n.done;f={fn$jscomp$360:void 0},n=v.next()){var x=_.p(n.value);n=x.next().value;x=x.next().value;f.fn$jscomp$360=x;E[n]=function(y){return function(){return y.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.s8(arguments)))}}(f)}};
gUL=function(){for(var v=hV.prototype,E=_.p(Object.entries(HiQ)),n=E.next(),f={};!n.done;f={fn$jscomp$361:void 0},n=E.next()){var x=_.p(n.value);n=x.next().value;x=x.next().value;f.fn$jscomp$361=x;Object.defineProperty(v,n,{get:function(y){return function(){return y.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.s8(arguments)))}}(f),
configurable:!0})}};
_.AV=function(v){return v instanceof NzL||v instanceof Document?v:new NzL(v)};
uQN=function(){for(var v=NzL.prototype,E=_.p("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),n=E.next(),f={};!n.done;f={method$jscomp$52:void 0},n=E.next())f.method$jscomp$52=n.value,v[f.method$jscomp$52]=function(x){return function(){return HTMLElement.prototype[x.method$jscomp$52].call.apply(HTMLElement.prototype[x.method$jscomp$52],[this.node].concat(_.s8(arguments)))}}(f)};
jaA=function(){for(var v=NzL.prototype,E=_.p("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),n=E.next(),f={};!n.done;f={prop$jscomp$65:void 0},n=E.next())f.prop$jscomp$65=n.value,Object.defineProperty(v,f.prop$jscomp$65,{get:function(x){return function(){var y;return(y=this.node["__shady_native_"+x.prop$jscomp$65])!=null?y:this.node[x.prop$jscomp$65]}}(f),
configurable:!0})};
_.Vt=function(v,E,n){n===void 0&&(n=!v.classList.contains(E));n?v.classList.add(E):v.classList.remove(E)};
_.D_=function(v,E,n){n===void 0&&(n=!v.hasAttribute(E));if(E==="class")throw Error("eg");n?_.AV(v).setAttribute(E,""):_.AV(v).removeAttribute(E)};
OiE=function(v){return(v.localName!=="slot"?[]:(0,_.gn)(v).assignedNodes({flatten:!0})).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
_.kRX=function(v){return(v=_.K(v).querySelector("slot"))&&v.localName==="slot"?OiE(v):[]};
_.NQ=function(v,E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(v,E)};
W0A=function(v,E){var n=E.bind(v);return function(f){n(f,f.detail)}};
_.uo=function(v,E){var n=$vA.get(v);n||(n=new WeakMap,$vA.set(v,n));if(n.has(E))return n.get(E);if(_.Z("web_fi_listen_disable_bound_fn_helper")){var f=E.bind(v);v=function(x){f(x,x==null?void 0:x.detail)}}else v=W0A(v,E);
n.set(E,v);return v};
TzL=function(v,E){L0G(v);v.created[GR$].push(E)};
L0G=function(v){if(!v.created||!v.created[GR$]){var E=v.created,n=E?[E]:[];v.created=function(){for(var f=_.p(n),x=f.next();!x.done;x=f.next())x.value.apply(this)};
v.created[GR$]=n}};
iiE=function(v){return function(){var E=_.rV.apply(0,arguments);return function(n,f,x){v.apply(null,_.s8(E))(n,f,x)}}};
zeE=function(){return function(){var v=_.rV.apply(0,arguments);return function(E,n,f){OeF.apply(null,_.s8(v))(E,n,f)}}};
_.h=function(v){return zeE()(v)};
_.A=function(){return iiE(LnF).apply(null,_.s8(_.rV.apply(0,arguments)))};
_.jk=function(v){return _.Z("pbcm_fi_listen_decorators")?ReN(v):iiE(WnQ)(v)};
ReN=function(v){return function(E,n){TzL(E,function(){var f=this[n],x=_.Z("web_fi_listen_disable_bound_fn_helper")?function(y){f(y,y.detail)}.bind(this):W0A(this,f);
tLE.has(v)?mt(this.hostElement,v,x):this.hostElement.addEventListener(v,x)})}};
_.On=function(){return iiE($Iy).apply(null,_.s8(_.rV.apply(0,arguments)))};
_.H=function(v){v=v===void 0?{}:v;return iiE(kYE)(v)};
_.ky=function(v){if(v.hostElement&&v!==v.hostElement){var E=_.pG(v.hostElement);E=v.renderIdom?E:E.shadowRoot}E||(v=v.root,E=v instanceof Node?_.pG(v):null);return E};
_.Wp=function(v){return BzG?vxE(v):function(E,n){Object.defineProperty(E,n,{get:function(){var f;return(f=_.ky(this))==null?void 0:f.querySelector(v)},
enumerable:!0,configurable:!0})}};
vxE=function(v){return function(E,n){Object.defineProperty(E,n,{get:function(){var f,x=(f=_.K(this.hostElement))==null?void 0:f.querySelector(v);if(x)return x;var y;f=(y=this.is)!=null?y:"yt-undefined-target";ExG!=null||(ExG=Date.now());(MA(f)+ExG)%100>_.WG("pbcm_fi_query_decorators_fallback_logging_pct")||(nxF!=null||(nxF=new oxN),fKF.has(f)||(fKF.add(f),nxF.increment(f)));var Q;return(Q=_.ky(this))==null?void 0:Q.querySelector(v)},
enumerable:!0,configurable:!0})}};
_.$y=function(v){return BzG?x8E(v):function(E,n){Object.defineProperty(E,n,{get:function(){var f;return(f=_.ky(this))==null?void 0:f.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
x8E=function(v){return function(E,n){Object.defineProperty(E,n,{get:function(){var f,x=(f=_.K(this.hostElement))==null?void 0:f.querySelectorAll(v);if(x==null?0:x.length)return x;var y;return(y=_.ky(this))==null?void 0:y.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
cwI=function(v){return function(E){if(![_.AK,_.g].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("fg");AfX(Object.assign({},typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(E)}};
_.Gw=function(){var v=v===void 0?{}:v;return function(E){if(![V2,_.L2].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("gg");VUX(Object.assign({},v,{disableInheritanceCheck:!0}))(E)}};
pBE=function(v,E){ywX[v]!=null||(ywX[v]=new Set);ywX[v].add(E)};
_.Tw=function(){var v=_.On.apply(null,_.s8(_.rV.apply(0,arguments)));return function(E,n){pBE(E.is,n);v(E,n)}};
Rk=function(v,E,n){if(io(v)&&!QhQ.has(E)){E=E.replace(/^JSC\$[\d]+_/,"");E=E.replace(/\.\d+(\.|$)/g,function(y,Q){return".#"+Q});
zw[v]!=null||(zw[v]={});var f,x;(f=zw[v])[x=E]!=null||(f[x]=new Set);zw[v][E].has(n)||(zw[v][E].add(n),_.eQ("polymerPropertyAccessEvent",{componentName:v,propertyName:E,accessType:n}))}};
XBQ=function(){return _.Z("polymer_property_access_logging_debug")||_.Z("polymer_enable_property_access_logging")};
io=function(v){if(_.Z("polymer_property_access_logging_debug"))return!0;if(!_.Z("polymer_enable_property_access_logging"))return!1;eOL||(eOL=Date.now());return(MA(v)+eOL)%100<_.WG("polymer_property_access_logging_percent")};
FhF=function(v,E){return io(E)&&v.hostElement.loggingStatus?new Proxy(v,{get:function(n,f,x){if(n.hostElement.loggingStatus.bypassProxyController)return n[f];n.hostElement.loggingStatus.isExternalGet=!0;var y=n[f];n.hostElement.loggingStatus.isExternalGet=!1;if(y instanceof Function)return function(){var Q=_.rV.apply(0,arguments);try{return n.hostElement.loggingStatus.currentExternalCall=f,Rk(E,f,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),y.apply(this===x?n:this,Q)}finally{n.hostElement.loggingStatus.currentExternalCall=
void 0}};
Rk(E,f,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return y},
set:function(n,f,x){if(n.hostElement.loggingStatus.bypassProxyController)return n[f]=x,!0;n.hostElement.loggingStatus.isRendererStamper?Rk(E,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):n.hostElement.loggingStatus.isDeclarativeExternal||Rk(E,f,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{n.hostElement.loggingStatus.currentExternalSet=f,n[f]=x}finally{n.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):v};
m81=function(v,E){v&&v.loggingStatus&&!v.loggingStatus.isDeclarativeExternal&&!v.loggingStatus.isExternalGet&&v.loggingStatus.currentExternalSet!==E&&Rk(v.tagName.toLowerCase(),E,"PROPERTY_ACCESS_GET_INTERNAL")};
tV=function(v,E,n){v&&(n||v.loggingStatus&&!v.loggingStatus.isInitializing&&!v.loggingStatus.isDefiningPropertyAccessor&&v.loggingStatus.currentExternalSet!==E)&&Rk(v.tagName.toLowerCase(),E,"PROPERTY_ACCESS_SET_INTERNAL")};
wBE=function(){return{_definePropertyAccessor:function(v,E){var n=this,f=n.hostElement.loggingStatus;f&&(f.isDefiningPropertyAccessor=!0);var x=n[v];x!==void 0&&(n.__data?n._setPendingProperty(v,x):(n.__dataProto!=null||(n.__dataProto={}),n.__dataProto[v]=x));f&&(f.isDefiningPropertyAccessor=!1);Object.defineProperty(this,v,{get:function(){m81(n.hostElement,v);return this.__data[v]},
set:function(y){E||this._setPendingProperty(v,y,!0)&&this._invalidateProperties()}})},
created:function(){var v=this._setPendingProperty.bind(this);this._setPendingProperty=function(E,n,f){tV(this.hostElement,E);return v.apply(this,[E,n,f])}}}};
bw$=function(v){XBQ()&&_.h(Bp.prototype)(v.prototype,"__templateBindingLoggingBehavior")};
lKL=function(v,E){if(E.resolvedFactories.length!==v.resolvedFactories.length)return!0;E=_.p(E.resolvedFactories.entries());for(var n=E.next();!n.done;n=E.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;if(f.providerClass){if(f.providerClass!==v.resolvedFactories[n].providerClass)return!0}else if(f.providerValue){if(f.providerValue!==v.resolvedFactories[n].providerValue)return!0}else if(f.factory!==v.resolvedFactories[n].factory)return!0}return!1};
shI=function(v,E){v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,n.constructor===Array)shI(n,E);else{var f=E;f.has(n)||(n.inject&&f.add(n),n.behaviors&&shI(n.behaviors,f))}};
vE=function(v,E){var n=v[E];v[E]=function(){var f=_.rV.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(n)return n.apply(this,f)}};
Zws=function(){_.Ee.Class=function(n,f){n=rw$(n,f);vE(n.prototype,"created");return n};
vE(n5.prototype,"_initializeProperties");vE(_.xi.prototype,"_initializeProperties");if(Pvy)vE(aK9,"created");else{var v=function(){vE(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))v();else{var E=customElements.define;customElements.define=function(n,f,x){E.call(customElements,n,f,x);n==="tp-yt-iron-list"&&(v(),customElements.define=E)}}}};
MzG=function(v,E){v.prototype.behaviors=v.prototype.behaviors||[];v.prototype.behaviors.unshift(CvE.InjectBehavior);v.prototype.provide=E};
_.p5=function(v){return function(E){if(!v.disableElementRegistration){v.noInjection||MzG(E,v.providers);var n=E.prototype;n.__templateHelpers||OeF(cE.prototype)(n,"__templateHelpers");n=v.is;S5X||(S5X=Date.now());(MA(n)+S5X)%100<_.WG("polymer_log_prop_change_observer_percent")&&OeF(yV.prototype)(E.prototype,"__propertyObserverObserver");E.prototype.behaviors=E.prototype.behaviors||[];E.prototype.behaviors.unshift(_.U8I.YtHostElementBehavior);bw$(E);cwI({is:v.is,notifyObserversOnUndefined:v.notifyObserversOnUndefined!==
!1,fastInit:v.fastInit,template:v.template,disableEnforceFastDefaultValuesCheck:!0})(E)}}};
_.N=function(v){return _.p5({is:v.is,template:v.template,disableElementRegistration:v.disableElementRegistration,cssBuildOptOut:v.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
KhX=function(v,E){if(q5A){v=new v;for(var n=_.p(Object.getOwnPropertyNames(v)),f=n.next();!f.done;f=n.next())f=f.value,E[f]=v[f];for(n=E;n&&n!==Object.prototype;n=Object.getPrototypeOf(n)){f=_.p(Object.getOwnPropertyNames(n));for(var x=f.next();!x.done;x=f.next())x=x.value,v.hasOwnProperty(x)||Object.defineProperty(v,x,JwF(E,x))}}else v.apply(E)};
JwF=function(v,E){return{get:function(){var n=v[E];return n instanceof Function?n.bind(v):n},
set:function(n){v[E]=n}}};
IKX=function(v,E){for(var n=v._noAccessors,f=_.p(Object.getOwnPropertyNames(v)),x=f.next();!x.done;x=f.next())if(x=x.value,!d8G.has(x))if(n)E[x]=v[x];else{var y=Object.getOwnPropertyDescriptor(v,x);y&&(y.configurable=!0,Object.defineProperty(E,x,y))}};
Y5I=function(v,E,n){return function(f){if(n){var x=n();f.model=x}if(v[E])v[E](f,f.detail)}};
QV=function(v){var E=[];if(typeof v==="string")v.length>0&&E.push.apply(E,_.s8(v.split(".")));else{v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,typeof n==="string"?E.push.apply(E,_.s8(n.split("."))):E.push(n)}return E};
hO1=function(v,E){if(E[E.length-1]!=="*"&&E[E.length-1]!=="splices"){for(var n=0;n<E.length;n++){if(!v)return;v=v[E[n]]}return v}};
Aw9=function(v,E){if(v.length>E.length)return!1;for(var n=0;n<v.length;n++)if(v[n]!==E[n])return!1;return!0};
D8X=function(v,E,n){if(E.type==="compute"){var f=E.getter.bind(n);var x=E.args}else f=function(){return n[E.method.methodName].apply(n,_.s8(_.rV.apply(0,arguments)))},x=E.method.args;
VzX(v,E.propertyKey,f,x,E.value)};
gx1=function(v,E){if(E.readOnly){var n=Object.getOwnPropertyDescriptor(v.model,E.propertyKey);Object.defineProperty(v.model,E.propertyKey,{get:n.get,set:function(){}});
v.model[Hws(E.propertyKey)]=n.set}};
NiX=function(v,E,n){if(n){var f=E.propertyKey,x=E.selector;E=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.s8(E.selectorArgs.map(function(y){return{type:"path",path:y}})));
VzX(v,f,function(y){var Q=_.rV.apply(1,arguments);return x.apply(null,[n.getState()].concat(_.s8(Q)))},E)}};
jhy=function(v,E,n){var f=_.tK(E.propertyKey)+"-changed";uKG(v,function(x){var y={value:x.value,queueProperty:!0};x.path.split(".").length>1&&(y.path=x.path);n.dispatchEvent(new CustomEvent(f,{detail:y}))},[{type:"wildcard",
path:E.propertyKey}])};
OwL=function(v,E,n){uKG(v,function(){n[E.method.methodName].apply(n,_.s8(_.rV.apply(0,arguments)))},E.method.args)};
Hws=function(v){return"_set"+(v.charAt(0).toUpperCase()+v.slice(1))};
kPL=function(){var v,E=wF(function(n){v=n},!1);
return[v,E]};
TiX=function(v){v=v.trim().replace(WhI,",").replace($8E,"$1");var E=v[0];E==="-"&&(E=v[1]);if(E>="0"&&E<="9")return{type:"literal",value:Number(v)};if(E==="'"||E==='"')return{type:"literal",value:v.slice(1,-1)};if(E=v.match(Lh1)){E=E[1];var n=GPy[E];if(n)return{type:n,path:v.slice(0,-(E.length+1))}}return{type:"path",path:v}};
tz1=function(v){var E=v.match(iwX);if(E)return v={methodName:E[1],args:zOQ},E[2].trim()&&(E=E[2].replace(ROA,"&comma;").split(","),v.args=E.map(TiX)),v};
BiL=function(v,E,n,f){f=f===void 0?!1:f;E=_.tK(E);var x=E2;x&&(n=x(n,E,"attribute",v));Xy(v,n,E,f)};
Xy=function(v,E,n,f){E=vFy(E,f===void 0?!1:f);E===void 0?v.removeAttribute(n):v.setAttribute(n,E)};
vFy=function(v,E){switch(typeof v){case "object":case "function":if(v instanceof Date)return v.toString();if(v){if((E===void 0?0:E)&&!_.Z("polymer_reflect_objects_as_boolean_killswitch"))return v?"":void 0;E=window.trustedTypes?window.trustedTypes.isHTML(v)||window.trustedTypes.isScript(v)||window.trustedTypes.isScriptURL(v):void 0;if(E)return v;try{return JSON.stringify(v)}catch(n){_.li(Error("Cg`"+v))}}break;case "boolean":return v?"":void 0;default:return v!==null&&v!==void 0?v.toString():void 0}};
EFs=function(v){if(v===void 0)throw Error("Dg");return v};
ckE=function(v,E,n,f){var x=nFX(f);if(x.length){f=n;var y="property";oFI.test(n)?y="attribute":n[n.length-1]==="$"&&(n=n.slice(0,-1),y="attribute");var Q=ftI(x);Q&&y==="attribute"&&(n==="class"&&v.hasAttribute("class")&&(Q+=" "+v.getAttribute(n)),Xy(v,Q,n));y==="attribute"&&f==="disable-upgrade$"&&v.setAttribute("disable-upgrade","");v.localName==="input"&&f==="value"&&v.setAttribute("value","");v.removeAttribute(f);y==="property"&&(n=_.BZ(n));E=EFs(E);xUE(E,y,n,x);return!0}return n.slice(0,3)===
"on-"?(v.removeAttribute(n),(y=E).events!=null||(y.events=[]),E.events.push({name:n.slice(3),value:f}),!0):n==="id"?(E.id=f,!0):!1};
nFX=function(v){for(var E=[],n=0,f;(f=ykL.exec(v))!==null;){f.index>n&&E.push({type:"literal",value:v.slice(n,f.index)});var x=f[1][0];n=!!f[2];f=f[3].trim();if(x==="{")throw Error("Eg");(x=tz1(f))?E.push({type:"method",negate:n,signature:x}):E.push({type:"path",negate:n,path:f});n=ykL.lastIndex}n&&n<v.length&&(v=v.substring(n))&&E.push({type:"literal",value:v});return E};
ftI=function(v){for(var E="",n=0;n<v.length;n++){var f=v[n];f.type==="literal"&&(E+=f.value)}return E};
xUE=function(v,E,n,f){v.bindings!=null||(v.bindings=[]);v.bindings.push({kind:E,target:n,parts:f})};
FCF=function(v,E,n){var f=!1;if(v.localName==="template"){f=n;var x=E.stripWhitespace;x=p$9(v,x===void 0?!1:x);var y=v.content.ownerDocument.createDocumentFragment();x.content=y;y.appendChild(v.content);f&&(f.templateInfo=x);f=!0}else v.localName==="slot"&&(E.hasInsertionPoint=!0);if(v.firstChild&&(x=n,v.localName!=="script"&&v.localName!=="style")){y=0;for(var Q=v.firstChild;Q;){var e=Q;if(e.localName==="template"){var F=e.getAttribute("is");if((Q=F==="dom-if")||F==="dom-repeat"){e.removeAttribute("is");
F=e.ownerDocument.createElement("ps-"+F);e.parentNode.replaceChild(F,e);F.appendChild(e);var b=Array.from(e.attributes);b=_.p(b);for(var l=b.next();!l.done;l=b.next())l=l.value,Q?QBL.has(l.name)&&Xy(F,l.value,l.name):X$X.has(l.name)?Xy(F,l.value,l.name):ea9.has(l.name),e.removeAttribute(l.name);Q=F}else Q=e}if(Q.nodeType===Node.TEXT_NODE){e=void 0;F=v;for(b=Q;((e=b.nextSibling)==null?void 0:e.nodeType)===Node.TEXT_NODE;)l=void 0,(l=b).textContent!=null||(l.textContent=""),b.nextSibling.textContent&&
(b.textContent+=b.nextSibling.textContent),F.removeChild(b.nextSibling);if(E.stripWhitespace&&Q.textContent&&!Q.textContent.trim()){v.removeChild(Q);Q=Q.nextSibling;continue}}FCF(Q,E,{parentIndex:y,parentInfo:x});Q.parentNode&&y++;Q=Q.nextSibling}}var r;if((r=v.hasAttributes)==null?0:r.call(v)){r=n=EFs(n);x=!1;y=Array.from(v.attributes);y=_.p(y);for(e=y.next();!e.done;e=y.next())e=e.value,x=ckE(v,r,e.name,e.value)||x;f=x||f}v.nodeType===Node.TEXT_NODE&&(r=nFX(v.textContent),r.length&&(v.textContent=
ftI(r)||" ",n=EFs(n),xUE(n,"text","textContent",r),f=!0));n&&f&&(n.infoIndex=E.nodeInfoList.push(n)-1)};
p$9=function(v,E){E={nodeInfoList:[],stripWhitespace:(E===void 0?!1:E)||v.hasAttribute("strip-whitespace")};FCF(v.content,E);return E};
mUQ=function(v){Object.assign(v,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
bX1=function(v,E,n){E.signalCache!=null||(E.signalCache={});var f=E.signalCache[n];if(!f){var x=n.split("."),y,Q;f=_.Z("web_polysi_immutable_root_fix_killswitch")?!((y=v.options)==null?0:(Q=y.immutableProps)==null?0:Q.has(x[0])):!w$s(v,x[0]);if(x.length>1&&f){var e=v.getPathMutationSignal(x);f=function(){var F=la(v.owner,function(){return v.getWithPath([x[0]])}),b,l=(b=e())==null?void 0:b.value;
return{rootWasDefined:F!==void 0,value:l}}}else f=function(){var F=v.getWithPath(x);
return{rootWasDefined:F!==void 0,value:F}};
E.signalCache[n]=f}return f()};
sBE=function(v,E,n,f,x){E=E.parts.map(function(Q,e){if(Q.type==="literal"){n.partWasDefined!=null||(n.partWasDefined=[]);var F;(F=n.partWasDefined)[e]||(F[e]=Q.value!==void 0);return Q.value}var b;if(Q.type==="method"){var l,r=(l=(b=n.partWasDefined)==null?void 0:b[e])!=null?l:!1;r||(r=Q.signature.args.every(function(U){return U.type==="literal"}));
var a=!1,M=!0;b=Q.signature.args.map(function(U){if(U.type==="literal")return U.value;if(U.type!=="path")throw Error("Fg`"+U.type);var d=bX1(v,n,U.path);U=d.value;d=d.rootWasDefined;a||(a=d);M&&(M=d);return U});
r||(r=x===1?M:a);n.partWasDefined!=null||(n.partWasDefined={});n.partWasDefined[e]=r;if(!r)return;b=(e=bX1(v,n,Q.signature.methodName).value)&&typeof e==="function"?e.apply(f,b):void 0}else l=bX1(v,n,Q.path),b=l.value,n.partWasDefined!=null||(n.partWasDefined={}),(r=n.partWasDefined)[e]||(r[e]=b!==void 0||l.rootWasDefined);Q.negate&&(b=!b);return b});
if(E.length===1){var y;return((y=n.partWasDefined)==null?0:y[0])?E[0]:lts}return E.join("")};
rkE=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v&&"canNotifyPath"in v};
PO1=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v};
at1=function(v){return"polymerController"in v};
ZXN=function(v,E){E=""+QV(E)[0];if(rkE(v))return v.canNotifyPath(E);if(at1(v)&&rkE(v.polymerController))return v.polymerController.canNotifyPath(E);if(PO1(v)){var n;return!((n=v.properties)==null||!n[E])}if(at1(v)&&PO1(v.polymerController)){var f;return!((f=v.polymerController.properties)==null||!f[E])}return!1};
COE=function(v,E,n){rkE(v)||PO1(v)?v.notifyPath(E,n):at1(v)&&(rkE(v.polymerController)||PO1(v.polymerController))&&v.polymerController.notifyPath(E,n)};
SAA=function(v,E,n){if(n!==lts){v.kind==="attribute"||v.target!=="textContent"&&(v.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(n=n===void 0?"":n);var f,x=(f=M69.Polymer)==null?void 0:f.sanitizeDOMValue;x&&(n=x(n,v.target,v.kind,E));if(v.kind==="attribute"){v=v.target;if(v==="class"||v==="name"||v==="slot")E=(0,_.gn)(E);Xy(E,n,v)}else if(v=v.target,n!==E[v]||typeof n==="object")E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!0,Rk(E.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
E[v]=n,E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!1)}};
UUs=function(v,E,n,f){var x=E.parts[0];if(E.parts.length!==1||x.type!=="path"||!ZXN(n,E.target))return!1;var y=_.p(x.path.split(".")),Q=y.next().value,e=YE(y);if(!_.Z("web_polysi_immutable_root_fix_killswitch")&&w$s(v,Q))return!1;f.signalCache!=null||(f.signalCache={});y=f.signalCache[x.path];var F;y=(F=y)==null?void 0:F().value;if((y==null?void 0:y.path)!==void 0){f=QV(y.path);var b=QV(x.path);f=[E.target].concat(_.s8(f.slice(b.length-1)));COE(n,f,x.negate?!y.value:y.value);return!0}var l=eI(v,Q);
var r=l.getChangeRecordSignal(e),a=!1;y=function(){if(!a){var U=la(v.owner,function(){return l.getWithPath([])});
a||(a=U!==void 0)}return{value:r(),rootWasDefined:a}};
f.signalCache[x.path]=y;f.partWasDefined!=null||(f.partWasDefined={});y=y();(b=f.partWasDefined)[0]||(b[0]=y.rootWasDefined);var M=la(v.owner,function(){return l.getWithPath(e)});
f.partWasDefined[0]&&la(v.owner,function(){return void SAA(E,n,x.negate?!M:M)});
return!0};
qA1=function(v,E,n,f,x,y){if(!UUs(v,E,n,f)){var Q=sBE(v,E,f,x,y);la(v.owner,function(){return void SAA(E,n,Q)})}};
Jk$=function(v,E,n,f,x,y){n=_.p(n);for(var Q=n.next(),e={};!Q.done;e={infoIndex:void 0},Q=n.next()){Q=Q.value;var F=Q.bindings;e.infoIndex=Q.infoIndex;Q=Q.parentInfo;if(F){F=_.p(F);for(var b=F.next(),l={};!b.done;l={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},b=F.next()){l.b$jscomp$254=b.value;if(e.infoIndex===void 0)throw Error("Gg");l.bindingCtx$jscomp$4={};v.effect(function(r,a){return function(){x&&!x()||qA1(v,r.b$jscomp$254,E[a.infoIndex],r.bindingCtx$jscomp$4,f,y)}}(l,e))}}Q&&Jk$(v,E,[Q],
f,x,y)}};
KCA=function(v,E){v=(E.parentInfo?KCA(v,E.parentInfo):v).firstChild;for(var n=0;v;v=v.nextSibling)if(E.parentIndex===n++)return v;throw Error("Hg");};
ItF=function(v,E,n,f){v=document.importNode(v.content,!0);v.__noInsertionPoint=!(f==null?0:f.hasInsertionPoint);for(var x=Array(E.length),y={},Q=0;Q<E.length;Q++){var e=E[Q],F=KCA(v,e);x[Q]=F;e.id&&(y[e.id]=F);if(e.templateInfo){var b=F.parentElement;b&&(b.templateInfo=e.templateInfo,b.parentSignalProxy=n,b.eventListenerHost=f.eventListenerHost,b.stampingEnabled=f.enabledSignal)}b=void 0;if((b=e.events)==null?0:b.length)for(b=0;b<e.events.length;b++){var l=e.events[b];dUL(f.eventListenerHost,F,l.name,
l.value,f.getModel)}}Jk$(n,x,E,f.thisCtx,f.enabledSignal,f.methodInvocationRequirement);return{root:v,nodes:x,nodesById:y}};
haQ=function(v,E){v=v();var n;(n=YAA.ShadyCSS)==null||n.prepareTemplate(v,E);E=p$9(v);return{template:v,nodeInfoList:E.nodeInfoList,hasInsertionPoint:E.hasInsertionPoint}};
DUG=function(){Aky=!1;for(var v=Fy.length,E=0;E<v;E++){var n=Fy[E];if(n)try{n()}catch(f){Promise.resolve().then(function(){throw f;})}}Fy.splice(0,v);
V6L+=v};
u4s=function(v){Aky||(Aky=!0,HXX.textContent=(gFA++).toString());Fy.push(v);return NIE++};
_.bz=function(v,E,n){m$++;v=E?new jBG(m$,v,E,n):new OXX(m$,v);wq.set(m$,v);return m$};
kmE=function(v){(v=wq.get(v))&&v.cancel()};
$Uy=function(v,E){v=WCA.get(v);return v?(E=v.get(E))?E:null:null};
_.lz=function(v,E,n,f){var x=$Uy(v,E);if(!x){x=new LCQ;var y=WCA.get(v);y||(y=new Map,WCA.set(v,y));y.set(E,x)}v=n.bind(v);x.run(v,f,void 0)};
_.GmE=function(v,E){var n;(n=$Uy(v,E))==null||n.cancel()};
TIN=function(v){var E;(E=$Uy(v,"doRender"))==null||E.flush()};
se=function(v){var E;return(E=v.hostElement)!=null?E:v};
iXX=function(v){var E=v.indexOf(".");return E===-1?v:v.slice(0,E)};
zaG=function(v,E,n,f,x,y){y=(x=(f=y?iXX(E):E)?E:null)?v.get(x):v.__data[E];x&&y===void 0&&(y=n[E]);_.jK(v.hostElement,rt9(f)+"-changed",{value:y,queueProperty:!0,path:x!=null?x:void 0},{bubbles:!1,composed:!1})};
RaX=function(v,E){v.__isReflecting=!0;BiL(v.hostElement,E,v.__data[E]);v.__isReflecting=!1};
t6$=function(v){if(v._onIronRequestResizeNotifications){var E=v._onIronRequestResizeNotifications.bind(v);v._onIronRequestResizeNotifications=function(n){_.Sk(n)!==v.hostElement&&E(n)}}v._ariaActiveAttributeChanged&&(v._ariaActiveAttributeChanged=v._ariaActiveAttributeChanged.bind(v.hostElement));
v._activeChanged&&(v._activeChanged=function(n){v.toggles?Xy(v.hostElement,n?"true":"false",v.ariaActiveAttribute):v.hostElement.removeAttribute(v.ariaActiveAttribute);v._changedButtonState()});
v._asyncClick&&(v._asyncClick=function(){_.bz(function(){v.hostElement.click()},1)});
!v.keyEventTarget||v.keyEventTarget instanceof EventTarget||(v.keyEventTarget=se(v.keyEventTarget));v._disabledChanged&&(v._disabledChanged=v._disabledChanged.bind(v.hostElement));v._observeItems&&(v._observeItems=function(n){var f=se(n);return _.pG(f).observeNodes(function(x){v._updateItems();v._updateSelected();_.jK(f,"iron-items-changed",x,{bubbles:!1,cancelable:!1})})});
v._updateItems&&v._updateItems===_.rq._updateItems&&(v._updateItems=function(){var n=_.pG(v.hostElement).queryDistributedElements(v.selectable||"*");n=Array.prototype.filter.call(n,v._bindFilterItem);v._setItems(n)});
v._computeKeyboardClass&&(v._computeKeyboardClass=function(n){_.Vt(v.hostElement,"keyboard-focus",n)});
v.ensureRipple&&(v.ensureRipple=function(n){if(v.hasRipple&&!v.hasRipple()){if(!v._createRipple)return;v._ripple=v._createRipple();v._ripple.noink=v.noink;var f=v._rippleContainer||v.hostElement;f&&_.K(f).appendChild(v._ripple)}var x;if(n&&((x=v._ripple)==null?0:x.uiDownAction)){f=_.K(v._rippleContainer||v.hostElement);var y;x=(y=n.composedPath())==null?void 0:y[0];f.contains(x)&&v._ripple.uiDownAction(n)}});
v._updateMultiselectable&&(v._updateMultiselectable=function(n){n?v.hostElement.setAttribute("aria-multiselectable","true"):v.hostElement.removeAttribute("aria-multiselectable")})};
BIE=function(v,E,n){n=_.p(n);for(var f=n.next();!f.done;f=n.next())KhX(f.value.constructor,v);KhX(E.constructor,v)};
Egs=function(v,E){v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,n.type==="signal"){var f=n.propertyKey;if(E.hasOwnProperty(f)&&E[f]!=null&&n.attributeType===Object){a:{f=E[f].constructor;for(var x=_.p(vgQ),y=x.next();!y.done;y=x.next())if(y=y.value,f===y){f=y;break a}f=Object}n.attributeType=f}}};
ngN=function(){};
ogX=function(v){var E;return(E=v.hostElement)!=null?E:v};
fMA=function(){throw Error("Lg");};
xM9=function(v,E){v.constructor.prototype.useSignals=!0;var n=new v.constructor;BIE(n,v,E.behaviors);Egs(E.reactiveSchemas,n);n={};for(var f=_.p(E.reactiveSchemas),x=f.next();!x.done;x=f.next())x=x.value,x.type==="signal"&&(n[x.propertyKey]=x.attributeType);var y={copyPropertiesToProto:fMA,didRegister:!1,typesForSignals:n},Q=["disable-upgrade"].concat(_.s8(E.observedAttributes)),e=function(F){PE.call(this,v,E,y,F)};
_.S(e,PE);_.hK.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q}}});
y.copyPropertiesToProto=function(){for(var F=0;F<E.behaviors.length;F++)IKX(E.behaviors[F],e.prototype);IKX(v,e.prototype)};
E.legacyOptimizations||y.copyPropertiesToProto();e.prototype.is=v.is;return e};
cWE=function(v,E){if(Object.getPrototypeOf(E.prototype).constructor!==_.g)throw Error("Mg");E.prototype.is=v.is;return xM9(E.prototype,v)};
yWy=function(v){return v.type==="compute"||v.type==="computeWithMethod"};
pKL=function(v){for(var E=v.reactiveSchemas.filter(yWy),n=new Map,f=new Map,x=new Map,y=_.p(E),Q=y.next();!Q.done;Q=y.next())Q=Q.value,n.set(Q.propertyKey,Q),f.set(Q.propertyKey,[]),x.set(Q.propertyKey,0);y=0;E=_.p(E);for(Q=E.next();!Q.done;Q=E.next()){Q=Q.value;for(var e=_.p(Q.type==="computeWithMethod"?Q.method.args:Q.args),F=e.next();!F.done;F=e.next())F=F.value,F.type!=="literal"&&(F=F.path.split(".")[0],f.has(F)&&(f.get(F).push(Q.propertyKey),x.set(Q.propertyKey,x.get(Q.propertyKey)+1),y++))}Q=
[].concat(_.s8(f.keys())).filter(function(b){return x.get(b)===0});
for(E=[];Q.length;)for(e=Q.shift(),E.push(n.get(e)),e=_.p(f.get(e)),F=e.next();!F.done;F=e.next())F=F.value,x.set(F,x.get(F)-1),y--,x.get(F)===0&&Q.push(F);n=v.reactiveSchemas.filter(function(b){return!yWy(b)});
v.reactiveSchemas=[].concat(_.s8(n),_.s8(E))};
QHN=function(v,E){if(E.properties)for(var n=_.p(Object.entries(E.properties)),f=n.next();!f.done;f=n.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;v.properties[f]=typeof x==="function"?{type:x}:x}E.observers&&v.observers.push.apply(v.observers,_.s8(E.observers));E.disabledPolySiReactions&&v.disabledPolySiReactions.push.apply(v.disabledPolySiReactions,_.s8(E.disabledPolySiReactions))};
XKX=function(v,E){for(var n=E.length-1;n>=0;n--){var f=E[n];Array.isArray(f)?XKX(v,f):v.indexOf(f)<0&&v.unshift(f)}};
ePF=function(v,E){v.reactiveSchemas=v.reactiveSchemas.filter(function(n){return n.type==="observe"&&E.includes(n.method.methodName)||yWy(n)&&E.includes(n.propertyKey)?!1:!0})};
mMG=function(v,E){var n=E.prototype,f,x,y={is:v.is,reactiveSchemas:[],observedAttributes:[],behaviors:[CvE.InjectBehavior,cE.prototype],disableElementRegistration:v.disableElementRegistration,provide:(f=v.providers)!=null?f:[],reactivityMode:v.reactivityMode,signalProperties:(x=n.signalProperties)!=null?x:[]};"template"in E?y.templateGetter=function(){return E.template}:v.getTemplate&&(y.templateGetter=v.getTemplate);
n.behaviors&&XKX(y.behaviors,n.behaviors);Fry(y,E);return y};
Fry=function(v,E){for(var n=E.prototype,f={properties:{},observers:[],disabledPolySiReactions:[]},x=_.p(v.behaviors),y=x.next();!y.done;y=x.next())QHN(f,y.value);QHN(f,n);if(v.signalProperties)for(n=_.p(v.signalProperties),x=n.next();!x.done;x=n.next())delete f.properties[x.value];n=_.p(Object.entries(f.properties));for(x=n.next();!x.done;x=n.next()){y=_.p(x.value);x=y.next().value;y=y.next().value;var Q=void 0;if((Q=v.signalProperties)==null||!Q.includes(x)){Q=void 0;var e=v,F=y.type;if(!F)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{F=Reflect.getMetadata("design:type",E,x);for(var b=_.p(wKE),l=b.next();!l.done;l=b.next())if(l=l.value,F===l){F=l;break a}F=Object}else F=String;y.computed||y.selector||(e.reactiveSchemas.push({type:"signal",propertyKey:x,value:y.value,attributeType:F,readOnly:y.readOnly}),e.observedAttributes.push(_.tK(x)));y.reflectToAttribute&&e.reactiveSchemas.push({type:"reflect",propertyKey:x});if(y.computed){F=tz1(y.computed);if(!F)throw Error("Ng");e.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:x,method:F,value:y.value})}y.observer&&e.reactiveSchemas.push({type:"observe",method:{methodName:y.observer,args:[{type:"path",path:x}]}});y.notify&&e.reactiveSchemas.push({type:"notify",propertyKey:x});y.selector&&e.reactiveSchemas.push({type:"redux",propertyKey:x,selector:y.selector,selectorArgs:(Q=y.selectorArgs)!=null?Q:[]})}}bq9&&pKL(v);E=_.p(f.observers);for(x=E.next();!x.done;x=E.next())n=v,x=x.value,(y=tz1(x))?n.reactiveSchemas.push({type:"observe",method:y}):console.log('Warning: unable to parse observe declaration: "'+
x+'"');ePF(v,f.disabledPolySiReactions)};
lM9=function(v,E){for(var n=0;n<E.length;n++){var f=E[n],x=void 0;(x=f).showHideApi!=null||(x.showHideApi={});x=void 0;!!v!==!((x=f.showHideApi)==null||!x.hideTemplateChildren)&&(f.nodeType===Node.TEXT_NODE?v?(f.showHideApi.polymerTextContent=f.textContent,f.textContent=""):(x=void 0,f.textContent=(x=f.showHideApi.polymerTextContent)!=null?x:null):f instanceof Element&&f.localName==="slot"?v?(f.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.gn)((0,_.gn)(f).parentNode).replaceChild(f.showHideApi.polymerReplaced,
f)):(x=f.showHideApi.polymerReplaced)&&(0,_.gn)((0,_.gn)(x).parentNode).replaceChild(f,x):f instanceof HTMLElement&&f.style&&(v?(f.showHideApi.polymerDisplay=f.style.display,f.style.display="none"):f.style.display=f.showHideApi.polymerDisplay));f.showHideApi.hideTemplateChildren=v;f.showHideChildren&&f.showHideChildren(v)}};
rWX=function(){if(!sHN){var v=document.createElement("style");v.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(v);sHN=!0}};
aU=function(){return _.Z("disable_hidden_dom_if_using_stamper")||_.Z("creator_disable_hidden_dom_if_using_stamper")};
PVQ=function(v,E){var n=_.Zj().getState();return E?v.apply(null,[n].concat(_.s8(E))):v(n)};
CVI=function(){if(aM9)return aM9;var v=_.p(_.t7(0,void 0,"Nl6eIe")),E=v.next().value;v.next();var n=v.next().value;_.Zj().subscribe(function(){ZqX(n)});
return aM9=E};
ZqX=function(v){_.Z("delay_redux_signal_update_killswitch")?v(function(E){return E+1}):MAy||(MAy=!0,Promise.resolve().then(function(){v(function(E){return E+1});
MAy=!1}))};
_.Zj=function(){return SEQ.getAppStore()};
C5=function(v,E){return SEQ.getSelectFn()(v,E)};
_.Mu=function(v){SEQ.getDispatchFn()(v)};
UMQ=function(v,E){var n={},f;for(f in v)n[f]=E(v[f],f);return n};
_.SI=function(v,E){return function(){var n;return(n=_.ba(v))!=null?n:E}};
_.Ue=function(v,E){var n=Object.assign({},v),f;for(f in E)E.hasOwnProperty(f)&&(n[f]=_.SI(v[f],E[f]));return n};
qEE=function(v,E,n){v instanceof Element&&(n.debugName||(n.debugName="<"+v.tagName.toLowerCase()+(v.tagName.includes("-")?">":"."+v.className+">")),_.Z("ytwiz_enable_debug_component_props")&&(v.debugProps||(v.debugProps=UMQ(E,function(f){return function(){return f()}}))))};
_.qu=function(v,E){var n=function(f){var x={stack:[],error:void 0,hasError:!1};try{var y=JWF={};var Q=Krs(x,RmE("component()")),e;if(((e=n)==null?0:e.idomCompat)&&f.renderedFromIdom){Q==null||Q.attr("idomCompat",!0);var F,b=typeof n.idomCompat==="object"?(F=n)==null?void 0:F.idomCompat.callbacks:{},l=_.p(dM1(f,b,n.debugName)),r=l.next().value;l.next();var a=l.next().value,M=IMX(v,r);y.privateValue=M;JWF=void 0;qEE(M,r,n);Q==null||Q.attr("debugName",n.debugName);var U=QgF(M),d=Array.isArray(U)?U[0]:
U;d[ia]||(d[ia]={});d[ia].updateSignalsFromIdomProps=a;return M}var Y=UMQ(f,YEE);var V=IMX(v,Y);y.privateValue=V;JWF=void 0;qEE(V,Y,n);Q==null||Q.attr("debugName",n.debugName);return V}catch(O){x.error=O,x.hasError=!0}finally{hPE(x)}};
n.debugName=E===void 0?"":E;return n};
IMX=function(v,E){v=v(E);return Bf(v)};
AWN=function(v,E){v[E]||(v=new _.yc("IDOM interop setter undefined. Key:",E),_.mb(v))};
YEE=function(v,E){return E==="children"||E==="ref"||typeof v==="function"||v===void 0?v:function(){return _.ba(v)}};
dM1=function(v,E,n){var f={},x={},y={},Q={},e;for(e in v){Q={key$jscomp$886:Q.key$jscomp$886};Q.key$jscomp$886=e;var F=v[Q.key$jscomp$886];if(Q.key$jscomp$886==="children"||Q.key$jscomp$886==="ref")f[Q.key$jscomp$886]=F;else if(typeof F==="function")Q.key$jscomp$886 in E||F.length>0?(y[Q.key$jscomp$886]=F,f[Q.key$jscomp$886]=function(l){return function(){return y[l.key$jscomp$886].apply(y,_.s8(_.rV.apply(0,arguments)))}}(Q)):f[Q.key$jscomp$886]=F;
else if(!(v[Q.key$jscomp$886]===void 0&&Q.key$jscomp$886 in E)){var b=_.p(_.t7(v[Q.key$jscomp$886],{debugName:"__cwis:"+n+":"+Q.key$jscomp$886},"cEBU8c"));F=b.next().value;b=b.next().value;f[Q.key$jscomp$886]=F;x[Q.key$jscomp$886]=b}}return[f,x,function(l){var r={},a;for(a in l)r={key$jscomp$887:r.key$jscomp$887,val$jscomp$116:void 0},r.key$jscomp$887=a,r.val$jscomp$116=l[r.key$jscomp$887],r.key$jscomp$887!=="children"&&r.key$jscomp$887!=="ref"&&(typeof r.val$jscomp$116==="function"?r.key$jscomp$887 in
E?y[r.key$jscomp$887]=r.val$jscomp$116:r.val$jscomp$116.length>0&&(y[r.key$jscomp$887]=r.val$jscomp$116,_.li(new _.yc("Callback detected that was not set in the idomCompat callbacks map. Key:",r.key$jscomp$887))):r.key$jscomp$887 in E&&r.val$jscomp$116===void 0||(AWN(x,r.key$jscomp$887),fp(function(M){return function(){x[M.key$jscomp$887](M.val$jscomp$116)}}(r))))}]};
HqN=function(v,E,n){var f=dIE(v.prototype,VAX,v.prototype.behaviors);f.prototype.is=E;f.prototype.localName=E;n&&DML(f,n);return function(x){x&&(f.prototype.hostElement=x);var y=new f;y.root=y;y.hostElement=x;return y}};
DML=function(v,E){var n;Object.defineProperty(v.prototype,"_template",{get:function(){n===void 0&&(n=E());return n},
set:function(f){n=f},
configurable:!0,enumerable:!0})};
OqE=function(v,E,n,f){function x(){if(!M){for(var U=new Set,d=_.p(l),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;for(var V=_.p(Object.getOwnPropertyNames(Y)),O=V.next();!O.done;O=V.next()){O=O.value;var T=void 0,L=(T=Object.getOwnPropertyDescriptor(Y,O))==null?void 0:T.value;L&&L instanceof Function&&!Jx(O)&&(!e[O]||_.Z("polymer_forward_method_killswitch"))&&U.add(O)}}d=_.p(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(Y=d.next();!Y.done;Y=d.next())V=_.p(Y.value),Y=V.next().value,
V=V.next().value,V.value instanceof Function&&!Jx(Y)&&U.add(Y);M=U}return M}
ggA(v,E,f==null?void 0:f.providers);IRA(v.prototype,v,!0);var y=HqN(v,E,n),Q,e=(Q=v.prototype.properties)!=null?Q:{},F,b,l=(b=(F=v.prototype.behaviors)==null?void 0:F.flat(Infinity))!=null?b:[];n=_.p(l);for(Q=n.next();!Q.done;Q=n.next())e=Object.assign({},Q.value.properties,e);var r=[].concat(_.s8(NvA),_.s8(Object.keys(e).map(function(U){return _.tK(U)}))),a=!1,M;
return{ctor:function(U,d){var Y=y(U),V,O;U=[].concat(_.s8((V=f==null?void 0:f.allowedProps)!=null?V:[]),_.s8((O=f==null?void 0:f.allowedPropsFromBehaviors)!=null?O:[]));Y.allowedProps=U.length>0?U:void 0;V={};O=_.p(r);for(U=O.next();!U.done;U=O.next())U=U.value,V[U]=_.BZ(U);Y.__dataAttributes=V;var T=Y.ready.bind(Y);Y.ready=function(){d.beforeReady();T();if(io(E)&&!a){var L=Y.__templateInfo;if(L==null?0:L.hostProps){L=_.p(Object.keys(L.hostProps));for(var xX=L.next();!xX.done;xX=L.next())Rk(E,xX.value,
"PROPERTY_ACCESS_GET_INTERNAL")}a=!0}};
Y._overrideLegacyUndefined=!0;return Y},
props:e,observedAttributes:r,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var U=[],d=new Set,Y=_.p(Object.keys(e)),V=Y.next();!V.done;V=Y.next())V=V.value,U.push([V,e[V].readOnly]),d.add(V);Y=x();V=_.p(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var O=V.next();!O.done;O=V.next())O=O.value,!u2I(O)||Y.has(O)||d.has(O)||(U.push([O,!1]),d.add(O));d=_.p(jHG);for(Y=d.next();!Y.done;Y=d.next())U.push([Y.value,!0]);return U},
getPropsToForwardBeforeReady:function(U){for(var d=[],Y=_.p(Object.entries(U)),V=Y.next();!V.done;V=Y.next()){var O=_.p(V.value);V=O.next().value;O=O.next().value;if(u2I(V)&&!(O instanceof Function)&&(d.push([V,!1]),io(E))){var T=O=void 0;(T=(O=U)._createPropertyAccessor)==null||T.call(O,V)}}return d},
shouldForwardProp:u2I,shouldLog:io}};
ggA=function(v,E,n){MzG(v,n);v.prototype.behaviors.unshift(kI1);if(XBQ()){if(io(E)){var f;(f=v.prototype).behaviors!=null||(f.behaviors=[]);v.prototype.behaviors.unshift(wBE())}bw$(v)}_.h(cE.prototype)(v.prototype,"__templateHelpers")};
Jx=function(v){return WrN.has(v)||v.startsWith("__compute__")};
u2I=function(v){return!Jx(v)&&!v.startsWith("_")&&!v.endsWith("_")};
iq1=function(v,E){function n(){var a=F();a=_.p(a);for(var M=a.next();!M.done;M=a.next()){var U=_.p(M.value);M=U.next().value;U=U.next().value;$Ms(r.prototype,M,U)}f=!0}
var f=!1,x=v.ctor,y=v.getInitialMethods,Q=v.observedAttributes,e=v.getPropsToForwardBeforeReady,F=v.getPropsToForwardBeforeRegister,b=v.shouldForwardProp,l=v.shouldLog,r=function(){var a=HTMLElement.call(this)||this;a.didForwardDynamicProps=!1;a.loggingStatus={};f||n();a.inst=x(a,{beforeReady:function(){a.didForwardDynamicProps||(a.forwardDynamicProps(),a.didForwardDynamicProps=!0)}});
a.controllerProxy=FhF(a.inst,E);a.forwardMethods();return a};
_.S(r,HTMLElement);r.prototype.forwardMethods=function(){for(var a=this,M=_.p(this.inst.getExtraMethodsToForward()),U=M.next(),d={};!U.done;d={method$jscomp$62:void 0},U=M.next()){var Y=_.p(U.value);U=Y.next().value;Y=Y.next().value;d.method$jscomp$62=Y;this[U]=function(V){return function(){return V.method$jscomp$62.call.apply(V.method$jscomp$62,[a.inst].concat(_.s8(_.rV.apply(0,arguments))))}}(d)}M=_.p(y());
for(d=M.next();!d.done;d=M.next())d=d.value,b(d)&&LrA(this,d),l(E)&&!Jx(d)&&GI$(this.inst,d)};
r.prototype.forwardDynamicProps=function(){var a=e(this.inst);a=_.p(a);for(var M=a.next();!M.done;M=a.next()){var U=_.p(M.value);M=U.next().value;U=U.next().value;$Ms(this,M,U);l(E)&&!Jx(M)&&TvE(this.inst,M)}};
r.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
r.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
r.prototype.attributeChangedCallback=function(a,M,U){this.inst.attributeChangedCallbackWrapper(a,M,U)};
_.hK.Object.defineProperties(r.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return E}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.hK.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q}}});
customElements.define(E,r)};
$Ms=function(v,E,n){v.hasOwnProperty(E)||Object.defineProperty(v,E,{get:function(){var f,x=((f=v.is)!=null?f:v.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Rk(x,E,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,f=this.polymerController[E],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,f},
set:function(f){if(!n){var x,y=((x=v.is)!=null?x:v.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Rk(y,E,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=E,this.loggingStatus.bypassProxyController=!0,this.polymerController[E]!==f&&(x={},this.polymerController.setProperties((x[E]=f,x)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
LrA=function(v,E,n){var f=v.polymerController;v[E]=function(){var x=_.rV.apply(0,arguments);v.loggingStatus.currentExternalCall=E;v.loggingStatus.bypassProxyController=!0;var y,Q=((y=v.is)!=null?y:v.tagName).toLowerCase();Rk(Q,E,"PROPERTY_ACCESS_CALL_EXTERNAL");var e;y=(e=n!=null?n:f[E])==null?void 0:e.call.apply(e,[f].concat(_.s8(x)));v.loggingStatus.currentExternalCall=void 0;v.loggingStatus.bypassProxyController=!1;return y}};
GI$=function(v,E){var n=v.hostElement,f=v[E];v[E]=function(){var x=_.rV.apply(0,arguments);if(n.loggingStatus.currentExternalCall!==E){var y,Q=((y=n.is)!=null?y:n.tagName).toLowerCase();Rk(Q,E,"PROPERTY_ACCESS_CALL_INTERNAL")}return f==null?void 0:f.apply(v,x)}};
TvE=function(v,E){var n=Object.getOwnPropertyDescriptor(v,E);n&&!n.get&&Object.defineProperty(v,E,{get:function(){m81(v.hostElement,E);return n.value},
set:function(f){tV(v.hostElement,E);n.value=f}})};
zP9=function(v){return _.Z("poly_si_dom_repeat_detached_fix_killswitch")||v.tagName!=="PS-DOM-REPEAT"?v.tagName==="DOM-REPEAT":!0};
tA$=function(v,E){var n=RPG(v);v instanceof Element&&n.unshift(v);v=_.p(n.filter(zP9));for(var f=v.next();!f.done;f=v.next()){var x=void 0;f=_.p((x=f.value.__instances)!=null?x:[]);for(x=f.next();!x.done;x=f.next())if(x=x.value,x.root){x=Array.from(x.root.children);x=_.p(x);for(var y=x.next();!y.done;y=x.next())n.push.apply(n,_.s8(tA$(y.value,E)))}}return n.filter(function(Q){return Q.usePatchedLifecycles&&Q.lifecycleIsConnected===E})};
RPG=function(v){var E=null;v instanceof Element?E=Element.prototype.querySelectorAll:v instanceof DocumentFragment&&(E=DocumentFragment.prototype.querySelectorAll);return E?Array.from(E.call(v,"*")):[]};
K5=function(v){Rc(function(){for(var E=_.p(tA$(v,!1)),n=E.next();!n.done;n=E.next()){n=n.value;n.lifecycleIsConnected=!0;try{var f=void 0,x=void 0,y=void 0,Q=void 0;(f=(Q=n.polymerController)!=null?Q:n)==null||(y=(x=f).connectedCallback)==null||y.call(x)}catch(e){_.mb(e)}}})};
dq=function(v){Rc(function(){for(var E=_.p(tA$(v,!0)),n=E.next();!n.done;n=E.next()){n=n.value;n.lifecycleIsConnected=!1;try{var f=void 0,x=void 0,y=void 0,Q=void 0;(f=(Q=n.polymerController)!=null?Q:n)==null||(y=(x=f).disconnectedCallback)==null||y.call(x)}catch(e){_.mb(e)}}})};
xGE=function(){if(!Bv1){Bv1=!0;var v=[Node];IU&&v.push(IU.Wrapper);var E=Node.prototype.insertBefore,n=Node.prototype.removeChild;v=_.p(v);for(var f=v.next(),x={};!f.done;x={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},f=v.next())f=f.value,x.nativeInsertBefore=f.prototype.insertBefore,f.prototype.insertBefore=function(Q){return function(e,F){if(e instanceof DocumentFragment){var b=Array.from(e.children);e=Q.nativeInsertBefore.call(this,e,F);
if(this.isConnected&&Q.nativeInsertBefore===E)for(F=_.p(b),b=F.next();!b.done;b=F.next())K5(b.value);return e}b=e instanceof Element&&e.isConnected;F=Q.nativeInsertBefore.call(this,e,F);b&&dq(e);this.isConnected&&K5(e);return F}}(x),x.nativeAppendChild=f.prototype.appendChild,f.prototype.appendChild=function(Q){return function(e){if(e instanceof DocumentFragment){var F=Array.from(e.children);
e=Q.nativeAppendChild.call(this,e);if(this.isConnected){F=_.p(F);for(var b=F.next();!b.done;b=F.next())K5(b.value)}return e}F=e instanceof Element&&e.isConnected;b=Q.nativeAppendChild.call(this,e);F&&dq(e);this.isConnected&&K5(e);return b}}(x),x.nativeRemoveChild=f.prototype.removeChild,f.prototype.removeChild=function(Q){return function(e){var F=e instanceof Element&&e.isConnected,b=Q.nativeRemoveChild.call(this,e);
F&&n===Q.nativeRemoveChild&&dq(e);return b}}(x),x.nativeReplaceChild=f.prototype.replaceChild,f.prototype.replaceChild=function(Q){return function(e,F){if(e instanceof DocumentFragment){var b=Array.from(e.children);
e=Q.nativeReplaceChild.call(this,e,F);if(this.isConnected)for(dq(F),F=_.p(b),b=F.next();!b.done;b=F.next())K5(b.value);return e}b=e instanceof Element&&e.isConnected;var l=this.isConnected,r=Q.nativeReplaceChild.call(this,e,F);l&&dq(F);b&&dq(e);l&&K5(e);return r}}(x);
v=[Element];IU&&v.push(IU.Wrapper);v=_.p(v);f=v.next();for(x={};!f.done;x={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},f=v.next())f=f.value,f.prototype.before=v5F(f.prototype.before),f.prototype.after=v5F(f.prototype.after),x.nativeReplaceWith=f.prototype.replaceWith,f.prototype.replaceWith=function(Q){return function(){var e=_.rV.apply(0,arguments),F=_.p(E59(e)),b=F.next().value,
l=F.next().value;F=this.isConnected;Q.nativeReplaceWith.apply(this,e);e=_.p(l);for(l=e.next();!l.done;l=e.next())dq(l.value);if(F)for(dq(this),b=_.p(b),F=b.next();!F.done;F=b.next())F=F.value,F instanceof Element&&K5(F)}}(x),x.nativeRemove=f.prototype.remove,f.prototype.remove=function(Q){return function(){var e=this.isConnected;
Q.nativeRemove.call(this);e&&dq(this)}}(x),x.nativeInsertAdjacentElement=f.prototype.insertAdjacentElement,f.prototype.insertAdjacentElement=function(Q){return function(e,F){var b=F.isConnected;
e=Q.nativeInsertAdjacentElement.call(this,e,F);b&&dq(F);e.isConnected&&K5(e);return e}}(x),x.nativeSetAttribute=f.prototype.setAttribute,f.prototype.setAttribute=function(Q){return function(e,F){var b=n5E(this);
if(!b.usePatchedLifecycles)return Q.nativeSetAttribute.call(this,e,F);var l=this.getAttribute(e);Q.nativeSetAttribute.call(this,e,F);F=this.getAttribute(e);o5Q(b,e,l,F)}}(x),x.nativeRemoveAttribute=f.prototype.removeAttribute,f.prototype.removeAttribute=function(Q){return function(e){var F=n5E(this);
if(!F.usePatchedLifecycles)return Q.nativeRemoveAttribute.call(this,e);var b=this.getAttribute(e);Q.nativeRemoveAttribute.call(this,e);b!==null&&o5Q(F,e,b,null)}}(x),x.nativeToggleAttribute=f.prototype.toggleAttribute,f.prototype.toggleAttribute=function(Q){return function(e,F){var b=n5E(this);
if(!this.usePatchedLifecycles)return Q.nativeToggleAttribute.call(this,e,F);var l=this.getAttribute(e),r=l!==null;F=Q.nativeToggleAttribute.call(this,e,F);F!==r&&o5Q(b,e,l,F?"":null);return F}}(x);
v=[Document,DocumentFragment,Element,ShadowRoot];IU&&v.push(IU.Wrapper);v=_.p(v);for(x=v.next();!x.done;x=v.next())x=x.value,x.prototype.prepend=v5F(x.prototype.prepend),x.prototype.append=v5F(x.prototype.append);(IU==null?void 0:IU.noPatch)===!0&&f5E();document.readyState==="complete"?K5(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&K5(document.body)});
var y=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");y&&y.get&&y.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:y.enumerable,configurable:!0,get:y.get,set:function(Q){Q||dq(this);y.set.call(this,Q);return Q}})}};
v5F=function(v){return function(){var E=_.rV.apply(0,arguments),n=_.p(E59(E)),f=n.next().value;n=n.next().value;v.apply(this,E);E=_.p(n);for(n=E.next();!n.done;n=E.next())dq(n.value);if(this.isConnected)for(f=_.p(f),E=f.next();!E.done;E=f.next())E=E.value,E instanceof Element&&K5(E)}};
f5E=function(){for(var v=_.p(cX$),E=v.next();!E.done;E=v.next()){E=E.value.prototype;for(var n=_.p(yXy),f=n.next();!f.done;f=n.next()){f=f.value;var x=Object.getOwnPropertyDescriptor(E,f);x&&Object.defineProperty(E,"__shady_native_"+f,x)}}};
o5Q=function(v,E,n,f){var x,y;if((x=v.polymerController)==null?0:(y=x.observedAttributes)==null?0:y.includes(E))if(v=v.polymerController,v.attributeChangedCallbackWrapper)v.attributeChangedCallbackWrapper.call(v,E,n,f);else{var Q;(Q=v.attributeChangedCallback)==null||Q.call(v,E,n,f)}};
E59=function(v){var E=[],n=[];v=_.p(v);for(var f=v.next();!f.done;f=v.next())f=f.value,f instanceof Element&&f.isConnected&&n.push(f),f instanceof DocumentFragment?E.push.apply(E,_.s8(Array.from(f.children))):E.push(f);return[E,n]};
n5E=function(v){return!(v instanceof Element)&&v.node instanceof Element?v.node:v};
p0s=function(v,E){var n=E?["children"].concat(_.s8(E)):["children"];E=[];n=_.p(n);for(var f=n.next();!f.done;f=n.next()){var x=f.value;if(v.hasOwnProperty(x)){f=v[x];f=typeof f==="function"?f():f;f=Bf(Array.isArray(f)?f:[f]).flat();if(x!=="children"){x=rt9(x);for(var y=_.p(f),Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q instanceof Element&&Q.setAttribute("slot",x)}E.push(f)}}E.length===0?v=[]:(v=Bf(_.w("div",null,E)),v=Array.from(v.childNodes));return v};
X01=function(v,E,n){var f={};_.ea(function(){var x={},y;for(y in E)if(E.hasOwnProperty(y)){var Q=void 0,e=void 0;if(!(((Q=n.slotProps)==null?0:Q.includes(y))||y==="children"||((e=n.callbackProps)==null?0:e.includes(y))||y==="ref")&&(Q=_.ba(E[y]),f[y]!==Q)){f[y]=Q;e=void 0;var F=(e=v.hostElement)!=null?e:v;QRy.has(y)&&(F[y]=Q);x[y]=Q}}fp(function(){if(v.setProperties)v.setProperties(x);else for(var b=_.p(Object.entries(x)),l=b.next();!l.done;l=b.next()){var r=_.p(l.value);l=r.next().value;r=r.next().value;
v[l]=r}})})};
Fqy=function(v,E,n,f){var x=p0s(n,f.slotProps),y=_.Z("web_wcw_disable_slot_host_shady_dom_wrap")?v:(0,_.gn)(v);x=_.p(x);for(var Q=x.next();!Q.done;Q=x.next())y.appendChild(Q.value);X01(E,n,f);f=_.p(f.callbackProps||[]);x=f.next();for(y={};!x.done;y={kebabEventName:void 0,eventListener:void 0},x=f.next())Q=x=x.value,String(x).substring(0,2)==="on"&&n[Q]?(y.kebabEventName=rt9(String(x).substring(2)),y.eventListener=n[Q],v.addEventListener(y.kebabEventName,y.eventListener),_.Fp(function(l){return function(){v.removeEventListener(l.kebabEventName,
l.eventListener)}}(y))):E[Q]=n[Q];
if(n.ref){n=_.p(e1$(n.ref));var e=n.next().value,F=n.next().value,b=E.attached.bind(E);E.attached=function(){e(v);b()};
_.Fp(function(){F()})}};
e1$=function(v){if(typeof v==="function"){var E;return[function(n){E=v(n)},
function(){var n;(n=E)==null||n()}]}if(!v.onRender||!v.onUnmount)throw Error("Rg");
return[v.onRender,v.onUnmount]};
l59=function(v,E,n,f,x){f=f===void 0?{}:f;var y=mGI,Q=!1;y?(Q=!0,mGI=void 0):(w0s=E,y=document.createElement(E),w0s=void 0);var e=y;e.usePatchedLifecycles=!0;e.lifecycleIsConnected=!1;y.loggingStatus={};var F=baX(v,E,y,f,x);_.Fp(function(){e.lifecycleIsConnected&&(e.lifecycleIsConnected=!1,F.disconnectedCallback())});
Q||Fqy(y,F,n,f);return y};
baX=function(v,E,n,f,x){x=x===void 0?OqE:x;sR9[E]!=null||(sR9[E]=x(v,E,f==null?void 0:f.getTemplate,f));var y=sR9[E],Q=y.ctor;x=y.getInitialMethods;var e=y.getPropsToForwardBeforeReady;v=y.getPropsToForwardBeforeRegister;f=y.shouldForwardProp;var F=y.observedAttributes,b=y.shouldLog,l=Q(n,{beforeReady:function(){var r=l;r._takeAttributes?r._takeAttributes():r.setPropertiesFromInitialAttributeValues&&r.setPropertiesFromInitialAttributeValues();r=_.p(e(n.polymerController));for(var a=r.next();!a.done;a=
r.next()){var M=_.p(a.value);a=M.next().value;M=M.next().value;$Ms(n,a,M);b(E)&&!Jx(a)&&TvE(n.polymerController,a)}n.polymerController=FhF(l,E)}});
n.polymerController=l;n.polymerController.observedAttributes=F;y=_.p(l.getExtraMethodsToForward());for(Q=y.next();!Q.done;Q=y.next())F=_.p(Q.value),Q=F.next().value,F=F.next().value,LrA(n,Q,F);x=_.p(x());for(y=x.next();!y.done;y=x.next())y=y.value,f(y)&&LrA(n,y),b(E)&&!Jx(y)&&GI$(l,y);v=_.p(v());for(f=v.next();!f.done;f=v.next())x=_.p(f.value),f=x.next().value,x=x.next().value,$Ms(n,f,x);return l};
P1E=function(v,E){return Yi===E?(v.isInert=!0,Yi="",!0):rX$===E?(v.isInert=!0,rX$="",!0):!1};
a5L=function(v){var E=hx;hx=v;return E};
C1I=function(v){if(Ax.has(v))rX$=v;else if(VV.has(v)&&hx&&ZaL(hx)===v){var E;(E=hx)._numRenders!=null||(E._numRenders=0);hx._numRenders++;if(hx._numRenders>1)throw Error("Sg");return hx}};
MWQ=function(v){Ax.has(ZaL(v))?rX$=ZaL(v):VV.has(ZaL(v))&&hx!==v&&(v._isInert=!0)};
ZaL=function(v){var E;return(E=v==null?void 0:v.tagName.toLowerCase())!=null?E:""};
S4$=function(v,E){if(v.componentType===yh)throw Error("Tg");VV.add(E);var n=function(){var f=HTMLElement.call(this)||this;f.is=E;if(w0s===E)return f.isInert=!0,f;f.createElement();return f};
_.S(n,HTMLElement);n.prototype.createElement=function(){if(!this.isInert){mGI=this;var f=_.p(hSA(function(){return _.w(v,null)})).next().value;
mGI=void 0;mUQ(this);return f}};
customElements.define(E,n)};
q4L=function(v,E,n,f,x){v.prototype.is=E;(f==null?0:f.useSink)?UG$(v,E,n,f,x):(n=OqE(v,E,n,f),iq1(n,E));return v};
UG$=function(v,E,n,f,x){xGE();var y=_.qu(function(Q){return l59(v,E,Q,Object.assign({},f,{getTemplate:n}),x)},"a");
S4$(y,E);return y};
KqL=function(v){return!JXX.has(v)};
Y4$=function(v,E,n,f){function x(){if(!r){for(var a=new Set(dG1),M=_.p(y.behaviors),U=M.next();!U.done;U=M.next()){U=U.value;for(var d=_.p(Object.getOwnPropertyNames(U)),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var V=void 0,O=(V=Object.getOwnPropertyDescriptor(U,Y))==null?void 0:V.value;O&&O instanceof Function&&(!b[Y]||_.Z("polymer_forward_method_killswitch"))&&a.add(Y)}}M=_.p(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(U=M.next();!U.done;U=M.next())d=_.p(U.value),U=d.next().value,
d=d.next().value,d.value instanceof Function&&a.add(U);r=a}return r}
var y=mMG({is:E,disableElementRegistration:!1,getTemplate:n,providers:f==null?void 0:f.providers,reactivityMode:f==null?void 0:f.reactivityMode},v);if((f==null?0:f.allowedProps)||(f==null?0:f.allowedPropsFromBehaviors)){var Q,e;y.allowedProps=[].concat(_.s8((Q=f.allowedProps)!=null?Q:[]),_.s8((e=f.allowedPropsFromBehaviors)!=null?e:[]))}var F=cWE(y,v);E=F.observedAttributes;var b={};n=_.p(y.reactiveSchemas);for(f=n.next();!f.done;f=n.next())if(f=f.value,f.type==="signal")b[f.propertyKey]={readOnly:f.readOnly},
f.readOnly&&(b[Hws(f.propertyKey)]={readOnly:!0});else if(f.type==="compute"||f.type==="computeWithMethod"||f.type==="redux")b[f.propertyKey]={readOnly:!0};var l=y.reactiveSchemas.length,r;return{ctor:function(a,M){a=new F(a);a.beforeReady=M.beforeReady;return a},
props:b,observedAttributes:E,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var a=[],M=new Set,U=_.p(I5X),d=U.next();!d.done;d=U.next())d=d.value,a.push([d,d!=="observers"&&d!=="properties"]),M.add(d);U=_.p(Object.keys(b));for(d=U.next();!d.done;d=U.next())d=d.value,a.push([d,b[d].readOnly]),M.add(d);U=x();d=_.p(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,!KqL(Y)||U.has(Y)||M.has(Y)||(a.push([Y,!1]),M.add(Y));a.push(["allowedProps",
!0]);return a},
getPropsToForwardBeforeReady:function(a){var M=[];a=_.p(Object.keys(a));for(var U=a.next();!U.done;U=a.next()){U=U.value;var d=x();KqL(U)&&!d.has(U)&&M.push([U,!1])}a=_.p(y.reactiveSchemas.slice(l));for(U=a.next();!U.done;U=a.next())U=U.value,U.type!=="compute"&&U.type!=="computeWithMethod"&&U.type!=="redux"&&U.type!=="signal"||M.push([U.propertyKey,U.type==="signal"?U.readOnly:!0]);return M},
shouldForwardProp:KqL,shouldLog:io}};
_.u=function(v,E,n,f){var x,y,Q=(y=(x=f)==null?void 0:x.mode)!=null?y:0;f!=null||(f={});var e;(e=f).reactivityMode!=null||(e.reactivityMode=0);Q===1&&_.Lk("creator_poly_si_disable_list").includes(E)&&(Q=2);return Q===1?q4L(v,E,n,Object.assign({},f,{useSink:!0}),Y4$):q4L(v,E,n,Object.assign({},f,{useSink:Q===2}))};
_.Dj=function(){return function(v,E,n,f){var x,y,Q=(y=(x=f)==null?void 0:x.mode)!=null?y:2;f!=null||(f={});var e;(e=f).reactivityMode!=null||(e.reactivityMode=0);if(Q===0)throw Error("Ug`"+Q);return UG$(v,E,n,f,Q===1?Y4$:void 0)}};
_.HE=function(v){return _.Z("creator_poly_si_killswitch")?!1:_.Z("force_all_poly_si_batches")&&(v==="poly_si_all_on_test_check"||v==="creator_poly_si_batch_050"?0:v)||document.documentElement.hasAttribute("use-signals")?!0:!v||_.Z(v+"_holdback_enabled")&&_.Z("kevlar_polysi_holdback")?!1:_.Z(v)};
gq=function(v){return v?v.icon?v.icon.iconType.toLowerCase():v.customThumbnail?"member":"":""};
h1E=function(v){if(!v)return"";v=_.p(v);for(var E=v.next();!E.done;E=v.next())if((E=E.value)&&E.liveChatAuthorBadgeRenderer&&(E=gq(E.liveChatAuthorBadgeRenderer))&&E!=="verified")return E;return""};
AXE=function(v,E){if(!v)return null;var n;return((n=v.find(function(f){return f&&f.liveChatAuthorBadgeRenderer?gq(f.liveChatAuthorBadgeRenderer)===E:!1}))==null?void 0:n.liveChatAuthorBadgeRenderer)||null};
_.ua9=function(v){var E=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;v=VWE(v);E=VWE(E);var n=DGX(v.hex);E=DGX(E.hex);var f=E[0]/255;var x=E[1]/255,y=E[2]/255,Q=Math.max(f,x,y),e=Math.min(f,x,y),F=0,b=0,l=.5*(Q+e);Q!=e&&(Q==f?F=60*(x-y)/(Q-e):Q==x?F=60*(y-f)/(Q-e)+120:Q==y&&(F=60*(f-x)/(Q-e)+240),b=0<l&&l<=.5?(Q-e)/(2*l):(Q-e)/(2-2*l));f=[Math.round(F+360)%360,b,l];n=HaE(n,E);for(v=g5N(v.hex);n<4.5;){v=f[2]>=.5?v.darker((4.5-n)/2):v.brighter((4.5-n)/2);n=v.toString();
x=Nu$(n);if(!x.length)throw Error("Sd`"+n);n=x;n=HaE(n,E)}return v.hex()};
HaE=function(v,E){v=_.mj1(v);E=_.mj1(E);return(Math.max(v,E)+.05)/(Math.min(v,E)+.05)};
_.Nu=function(v){return"#"+("000000"+(v&16777215).toString(16)).slice(-6)};
_.jRI=function(v){for(var E=0,n=0;n<v.length;n++)E=v.charCodeAt(n)+((E<<5)-E);v="#";for(n=0;n<3;n++)v+=("00"+(E>>n*8&255).toString(16)).slice(-2);return v};
Oa1=function(v){v=(v||"").split(":");v.length===1&&v.unshift("yt-icons");v[1]=v[1].toLowerCase();return v};
TuA=function(v,E){var n=(E=E===void 0?!1:E)?kiQ:WqE,f=E?$GA:Lq$;v.getIconNames().forEach(function(x){x=E?x:x.substring(x.indexOf(":")+1);v.name==="yt-icons"?Giy.add(x):x.includes("-filled")?n.add(x):f.add(x)})};
uz=function(v,E,n,f){n=n===void 0?!1:n;f=f===void 0?!1:f;var x,y,Q;return _.X(function(e){if(e.nextAddress==1)return _.m(e,iaL,2);if(f)return e.return(Giy.has(v));x=n?kiQ:WqE;y=n?$GA:Lq$;return E?(Q=v.includes("-filled")?v:v.concat("-filled"),e.return(x.has(Q))):e.return(y.has(v))})};
_.tWQ=function(v){if(z11(v))return v;var E=v=v.toLowerCase();(v=R1I.get(v))&&(E=v);return E};
_.jI=function(v){if(z11(v))return v.toString();var E=BuE.get(v);if(E)return E;E=v.toLowerCase();var n="yt-icons",f=E.replace(/_/g,"-");switch(v){case "MY_CHANNEL":E="account_circle";break;case "ADD_TO_LIBRARY":E="add";break;case "ALERT_WARN_RED":E="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":E="person_music";break;case "BLOCK_USER":E="block";break;case "CAPTIONS":E="closed_caption";break;case "CLOSED_CAPTION":n="av";E="closed-caption";break;case "COLLECTION":n="maps";E="layers";break;case "CONTACT":n=
"icons";E="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":n="ytcp-icons";E=f.split("creator-studio-")[1];break;case "DISMISSAL":E="close";break;case "DO_NOT_DISTURB":E="block";break;case "DOGFOOD":n="icons";E="pets";break;case "DRAFT":E="paper_corner_folded";break;
case "EMPTY_LIKE":E="like_outline";break;case "EXIT_APP":E="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":E=f;break;case "GAMES":n="ytg";E="my-games";break;case "GO_TO_PAGE":E="arrow-forward";break;case "GROUP":n="social";break;case "HIDE":E="not_interested";break;case "INPUT_COMPONENT":n="icons";E="settings-input-component";break;case "KIDS_BLOCK":E="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":n="ytg";E="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":n=
"ytg";E="membership-post-purchase";break;case "MULTIVIEW":E="screen_multi_view";break;case "MY_LOCATION":n="maps";E=f;break;case "NOTIFICATIONS_INBOX":E="NOTIFICATIONS";break;case "NEXT":E="chevron_right";break;case "OFFLINE":E="power-settings-new";break;case "PAUSE":n="miniplayer";break;case "PAYMENT":n="icons";break;case "PHONE_DOWNLOAD":E="phone_download";break;case "PREMIUM_STANDALONE":n="yt-logos";E="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":n="yt-logos";E="premium_standalone_cairo";
break;case "QUESTION_ANSWER":E="question_answer";break;case "REDEEM":n="icons";E="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":E="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":E="library_add";break;case "SCHOOL":n="yt-sys-icons";E="creator_academy";break;case "SETTINGS_LIGHT":E="settings_applications";break;case "SETTINGS_MATERIAL":E="settings";break;case "SEARCH_HISTORY":E="watch_history";break;case "SHOPPING_BAG":E="bag";break;case "SOCIAL":case "PEOPLE":n=
"yt-icons";E="people";break;case "STAFF_PICK":n="ytg";E="spotlight";break;case "START_DVR":E="add";break;case "STOP_DVR":n="av";E="stop";break;case "TAB_LIKED":E="like";break;case "TAB_INBOX":E="mail";break;case "TERMS_OF_SERVICE":n="icons";E="description";break;case "TRENDING":E="fire";break;case "UNBLOCK_USER":E="remove";break;case "UNPLUGGED_DARK_THEME":n="image";E="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":E="live";break;case "UNPLUGGED_SPORTS":n="ytu";E="visibility-off";break;
case "VIDEOS":n="av";E="play-circle-filled";break;case "YOUTUBE":n="yt-logos";E="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":n="yt-logos-ext";E="yt-logo-red-updated";break;case "YOUTUBE_LOGO":n="yt-logos-ext";E="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":n="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":n="shorts";E=f;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":n="yt-sys-icons";E="youtube_improve_tv";break;case "OUTLINE_BAG":n=
"yt-sys-icons";E="bag";break;case "QUEUE_PLAY_LAST":n="yt-sys-icons";E="list_queue_last";break;case "SLASH_CIRCLE_LEFT":E="slash_circle_left";break;case "SPEED_1_POINT_2X":E="1_point_2x";break;case "SPEED_1_POINT_5X":E="1_point_5x";break;case "SPEED_1_POINT_8X":E="1_point_8x";break;case "SPEED_POINT_2X":E="point_2x";break;case "SPEED_POINT_5X":E="point_5x";break;case "SPEED_POINT_8X":E="point_8x";break;case "SPEED_1X":E="1x";break;case "SPEED_2X":E="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":n="yt-sys-icons";
E="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":n="yt-sys-icons";E="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":n="yt-sys-icons",E="tic_tac_toe"}E=n+":"+E;BuE.set(v,E);return E};
z11=function(v){var E;_.Z("kevlar_use_wil_icons")?E=!!_.P().resolve(_.Oe).resolveIcon({iconName:v.toString()}):E=!1;return E};
_.WE=function(v,E,n,f){n=n===void 0?{}:n;f=f===void 0?!1:f;n===null&&(n={});var x=_.Lk("kevlar_command_handler_command_banlist");x=_.p(x);for(var y=x.next();!y.done;y=x.next())if(y=v?v.hasOwnProperty(y.value):void 0,y)return!1;x=_.C(v.commandMetadata,_.Dl);return f&&x!=null&&x.url?!1:!E.disableCommandHandlerOverride&&_.ki.instance?(f=_.ki.instance,n.form||(n.form={element:E}),n.form.element||(n.form.element=E),!n.clickedVisualElement&&E.visualElement&&(n.clickedVisualElement=E.visualElement),f.resolveCommand(v,
n),!0):!1};
vf1=function(v,E){v=$i(v);for(var n=_.p(v.visibilityMonitorKeys||[]),f=n.next();!f.done;f=n.next())E.unobserveByKey(f.value);v.visibilityMonitorKeys=void 0};
fwE=function(v,E){if(_.lc()){if(_.Z("kevlar_vimio_use_shared_monitor"))EfQ(v,E.data);else if(!EfQ(v,E.data))return;var n=E.data,f=nfE(n);if(_.Z("enable_client_ve_spec_logging"))vf1(v,E.observer);else{var x=$i(v);x.trackedParams&&x.trackedParams!==f&&vf1(v,E.observer)}x=$i(v);!n||x.data&&x.data===n||(x.data=n);ofX(v,E);x.trackedParams=f}};
ofX=function(v,E){var n=E.observer;if(!n&&_.Z("web_skip_missing_vimio_observer")){var f,x;_.li(new _.yc("VisibilityObserver is not defined.",v.tagName,v.trackedParams,(f=E.data)==null?void 0:f.trackingParams,(x=E.data)==null?void 0:x.loggingDirectives))}else{var y=E.layer,Q=E.visibilityCallback||function(){},e=E.prescanCallback,F=$i(v);
f=[];E.showOption&&f.push(n.observe(v,function(){E.skipLogging&&E.skipLogging()||_.L5().reportShown(F,void 0,y);Q(!0)},E.showOption));
E.hideOption&&f.push(n.observe(v,function(){_.L5().reportHidden(F,void 0,y);Q(!1)},E.hideOption));
E.prescanOption&&e&&f.push(n.observe(v,function(){e()},E.prescanOption));
F.visibilityMonitorKeys=f}};
EfQ=function(v,E){v=$i(v);if(v.visualElement&&!E)return!0;if(!E)return!1;var n=!1;if(_.Z("enable_client_ve_spec_logging")){var f,x;n=!!((f=E.loggingDirectives)==null?0:(x=f.clientVeSpec)==null?0:x.uiType)}f=nfE(E);if(!f&&!n)return!1;_.Z("mweb_component_visibility_logging")&&(v.veContainer||(v.veContainer={}),v.veContainer.trackingParams=f);if(v.trackedParams&&v.trackedParams===f)return!1;var y;if(_.Z("enable_client_ve_spec_logging")&&((y=v.visualElement)==null?0:y.isClientVe())){var Q;y=(Q=v.visualElement)==
null?void 0:Q.getAsJspb();var e,F,b,l;if(_.$r(y,2)===((e=E.loggingDirectives)==null?void 0:(F=e.clientVeSpec)==null?void 0:F.uiType)&&_.$r(y,3,-1)===((b=E.loggingDirectives)==null?void 0:(l=b.clientVeSpec)==null?void 0:l.elementIndex))return!1}if(_.Z("enable_client_ve_spec_logging")){var r,a;!v.visualElement&&((r=E.loggingDirectives)==null?0:(a=r.clientVeSpec)==null?0:a.uiType)&&(e=E.loggingDirectives.clientVeSpec,E=e.uiType,Q=e.elementIndex,e=e.clientYoutubeData,v.visualElement=_.Gl(_.Tl(),{veType:E,
elementIndex:Q,clientYouTubeData:e}))}return!0};
nfE=function(v){if(v==null?0:v.rendererContext){var E=_.C(v.rendererContext,_.xS9);if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams}return(v==null?0:v.loggingDirectives)?v.loggingDirectives.trackingParams:v==null?void 0:v.trackingParams};
$i=function(v){var E;return(E=v.polymerController)!=null?E:v};
QeF=function(v){_.L5();if(_.qX(iz().JSC$10359_elementShouldLogGesture).bind(iz())(v,4)){clE(v);var E=ylG(v);pnE.set(v,E)}};
clE=function(v){pnE.has(v)&&(pnE.get(v).cancel("untrack hover element"),pnE.delete(v))};
ylG=function(v){var E,n=[],f=!1,x=new _.z2(function(y,Q){zl(v,"mouseenter",_.qX(function(){var e,F,b;return _.X(function(l){if(l.nextAddress==1)return E=(0,_.gd)(),e=Xn$(v),n.push(e),F=ew1(v,function(){f=!0;Q(Error("Vg"))}),_.m(l,e,2);
if(l.nextAddress!=3)return F&&RU(F),b=FSX(v),n.push(b),_.m(l,b,3);y();_.yQ(l)})}))});
x.then(function(){var y=(0,_.gd)()-E;y=Math.round(y);if(!(500>y||6E5<=y)){var Q=v.getScreenLayer?v.getScreenLayer():void 0;Q=_.lc(Q)||"";var e=mSF(_.L5(),v);_.Jc(Q,v.visualElement?v.visualElement:_.tx(e),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:y}})}QeF(v)},function(){BE&&(BE(),BE=null);
f&&(clE(v),QeF(v))});
return x};
Xn$=function(v){var E;return(new _.z2(function(n,f){BE=function(){f(Error("Wg"))};
E=_.wh.debounce(_.qX(function(){RU(x);n()}),1,100);
var x=_.v8(v,"mousemove",E)})).thenCatch(function(){var n=_.wh.cancelDebouncedJobMap.get(E);
n&&_.wh.cancelJob(n)})};
FSX=function(v){var E;return(new _.z2(function(n,f){BE=function(){f(Error("Xg"))};
E=zl(v,"mouseleave",_.qX(function(){n()}))})).thenCatch(function(){RU(E)})};
ew1=function(v,E){return zl(v,"mouseleave",_.qX(E))};
bjL=function(v){wnX&&_.EZ.cancel(wnX);wnX=_.EZ.run(function(){_.jK(v,"yt-visibility-refresh");wnX=0})};
lwI=function(v){v=Number(v);return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
rlX=function(v){if(!v)return!1;if(_.C(v,_.seA))return!0;var E;if(v=(E=_.C(v,_.Tn))==null?void 0:E.commands)for(E=_.p(v),v=E.next();!v.done;v=E.next())if(_.C(v.value,_.seA))return!0;return!1};
Pb9=function(v){var E=!0;E=E===void 0?!0:E;if(!v.useSignals&&!v.experimentalPropertiesChanged||_.Z("experimental_templating_behavior_nopatch_killswitch")){var n=v._propertiesChanged;v._propertiesChanged=function(f,x,y){E?v.debounceRender():v.doRender();n&&n.call(v,f,x,y)}}};
awX=function(v,E){if(v.useSignals||v.experimentalPropertiesChanged)if(_.Z("experimental_templating_behavior_nopatch_killswitch"))v.experimentalPropertiesChanged=function(){};
else return;var n=new Set,f=[v].concat(_.s8(v.behaviors));f=_.p(f);for(var x=f.next();!x.done;x=f.next()){x=x.value;for(var y in x.properties)n.has(y)||(v._addPropertyEffect(y,"function",E),n.add(y))}};
ZjN=function(){var v=Polymer.Element,E=v._prepareTemplate;v._prepareTemplate=function(){E.call(this);var n=this.prototype;if(n.experimentalTemplatingInUse&&n.experimentalTemplatingInUse()&&n.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.mb(Error("Yg"));else{n=this.template.content.childNodes;for(var f=n.length-1;f>=0;f--){var x=n[f];x.nodeName!=="STYLE"&&x.nodeName!=="LINK"&&x.nodeName!=="SCRIPT"&&x.nodeName!=="#comment"&&x.remove()}}}};
Cb1=function(v){var E=!0;E=E===void 0?!0:E;ZjN();var n=v.ready;v.ready=function(){this._template=null;n.call(this)};
awX(v,E?v.debounceRender:v.doRender)};
SK$=function(v,E,n){if(n===null||n===void 0)return n;var f=MDE(v.tagName.toLowerCase(),E,function(){throw Error("Qb");});
if(f===null)return n;f=Mqy[f];var x;if((x=f.isUnwrappable)==null?0:x.call(f,n)){if(f.unwrap)return f.unwrap(n);throw Error("ah");}return f.filterString?f.filterString(v.tagName,E,String(n)):n};
USN=function(v,E,n){var f=E[E.length-1]!=="$",x=SK$(v,E,n);if(f)if(typeof x==="function"&&E.startsWith("reactiveon")&&E===E.toLowerCase()){var y=VK;As9(v,E.slice(8),function(Q){la(y,function(){x(Q)})})}else v[E]=x;
else n=x==null?null:String(x),hRE(v,E.slice(0,-1),n)};
oj=function(v){qKQ.length===0&&requestAnimationFrame(function(){setTimeout(function(){var E=qKQ.slice();qKQ.length=0;E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;try{n()}catch(f){_.nR(f)}}})});
qKQ.push(v)};
Jl$=function(v){if(v){var E=v.component;if(E){var n;E==null||(n=E.events)==null||n.publish("DISCONNECTED");var f;E==null||(f=E.onDisconnected)==null||f.call(E)}var x,y;(x=v.__spec)==null||(y=x.didUnmount)==null||y.call(x);for(E=0;E<v.childNodes.length;E++)Jl$(v.childNodes[E])}};
xz=function(v,E,n){var f=E&&E.key,x=dF;x[0]=v;x[1]=f;x[2]=void 0;for(var y in E)E.hasOwnProperty(y)&&(v=E[y],f=I0,f.push(y),f.push(v));E=dF;a:{if(y=dF[2])for(v=0;v<y.length;v+=2)if(y[v]==="nonce"){y=y[v+1];break a}y=""}y=G2A(E[0],E[1],y);v=ZY(y);f=E[2];if(!v.staticsApplied&&(v.staticsApplied=!0,f&&f.length))if((x=v._attrsArr)&&x.length){for(x=0;x<f.length;x+=2)fR[f[x]]=x+1;x=v._attrsArr||(v._attrsArr=YUE(0));for(var Q=0,e=0;e<x.length;e+=2){var F=x[e],b=x[e+1],l=fR[F];l?f[l]===b&&delete fR[F]:(x[Q]=
F,x[Q+1]=b,Q+=2)}rF(x,Q);for(var r in fR)NhA(y,r,f[fR[r]],Vs),delete fR[r]}else for(r=0;r<f.length;r+=2)NhA(y,f[r],f[r+1],Vs);v$N(y,v,Vs);rF(E,0);n&&n(Cp);ThG()};
KSA=function(v){var E=v.toString().toLowerCase();return function(n,f){xz(E,n,f)}};
_.c8=function(v,E,n){n===void 0?delete v[E.name]:v[E.name]=n};
_.yI=function(v){var E={androidIncludeFontPadding:!1},n=0,f=[],x=[],y=[];if(v.simpleText)return E.content=v.simpleText,E;if(v.runs===void 0)return E.content="",E;v=_.p(v.runs);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var e=Q.text,F=void 0,b=(F=e)==null?void 0:F.length;if(e&&b){f.push(e);if(Q.bold||Q.italics||Q.strikethrough||Q.underline||Q.textColor!=null&&Q.textColor!==0||Q.deemphasize){e=x;F=e.push;var l={startIndex:n,length:b};Q.bold&&(l.weightLabel="FONT_WEIGHT_MEDIUM");Q.italics&&(l.italic=
!0);Q.strikethrough&&(l.strikethrough="LINE_STYLE_SINGLE");Q.underline&&(l.underline="LINE_STYLE_SINGLE");Q.textColor!=null&&Q.textColor!==0?document.documentElement.hasAttribute("dark")?l.fontColor=Q.darkModeTextColor||Q.textColor:l.fontColor=Q.textColor:Q.deemphasize&&(document.documentElement.hasAttribute("dark")?l.fontColor=parseInt("ff"+dS1("#aaa").substring(1),16):l.fontColor=parseInt("ff"+dS1("#606060").substring(1),16));F.call(e,l)}Q.navigationEndpoint&&(e=y,F=e.push,l={startIndex:n,length:b,
onTap:{innertubeCommand:Q.navigationEndpoint}},Q.loggingDirectives&&_.c8(l,IwE,Q.loggingDirectives),F.call(e,l));n+=b}}E.content=f.join("");E.styleRuns=x.length?x:void 0;E.commandRuns=y.length?y:void 0;return E};
hwQ=function(v){if(v==null||!v.runs)return!0;v=_.p(v.runs);for(var E=v.next();!E.done;E=v.next())if(E=E.value,E.bracket||E.errorUnderline||E.deemphasize||_.C(E,QI)||_.C(E,YKE))return!1;return!0};
AlI=function(v,E){return function(n){var f=E.unit;if(f!==n)throw Error("dh`"+v+"`"+f+"`"+n);return E}};
X$=function(v){if(!((v==null?0:v.value)&&(v==null?0:v.unit)))return"";switch(v.unit){case "DIMENSION_UNIT_FRACTION":var E="%";break;default:E="px"}v=v.value;E==="%"&&(v*=100);return""+v+E};
Vqy=function(v){try{return v()}catch(E){_.li(E)}};
_.F$=function(v){var E=_.C(v,_.eg);if(E)return E;if((E=_.C(v,DSF))&&E.commands)return HjG(E.commands);if((E=_.C(v,gfI))&&E.commands)return HjG(E.commands);if((v=_.C(v,NyA))&&v.identifier&&v.command&&(uzE||(uzE=[]),!uzE.includes(v.identifier)))return uzE.push(v.identifier),_.C(v.command,_.eg)};
HjG=function(v){if(v.length!==0){var E=[];v=_.p(v);for(var n=v.next();!n.done;n=v.next())(n=_.F$(n.value))&&E.push(n);return{commandExecutorCommand:{commands:E}}}};
_.wJ=function(v){var E=v.defaultTarget,n=v.elementConfig,f=v.elementsCommand,x=v.skipOnClick,y=v.forceNewState,Q=v.additionalCommandArgs,e=v.innertubeCommand||_.F$(f);if(e){v={};var F=jeE(e);f=F.navigatingCommand;F=F.href;f&&F?(v.href$=F,OjG(v,f,F,E),_.Z("web_atagconfig_pointerdown")&&kXI(v,f),y&&(v["force-new-state$"]=!0)):(v.role$="button",v.href$="javascript:void(0);");_.C(e,WS$)&&(v["aria-haspopup$"]=!0);x||(v.onclick=function(b){if($S$(b)){var l=Object.assign({},{form:{element:b.target,event:b}},
Q);b.preventDefault();_.mG(e,l)}});
return Object.assign({},n,v)}};
LSA=function(v){if(v.length){if(v.length===1)return v[0];var E={};_.c8(E,_.Tn,{commands:v});return E}};
bj=function(v){return v&&v.href$!=="javascript:void(0);"};
jeE=function(v){var E,n=((E=_.C(v,_.Tn))==null?void 0:E.commands)||[v];v=_.p(n);for(E=v.next();!E.done;E=v.next()){E=E.value;var f=void 0,x=void 0;n=(x=_.C((f=E)==null?void 0:f.commandMetadata,_.Dl))==null?void 0:x.url;_.Z("web_remove_web_navigation_endpoint_data")||(f=void 0,n=n||((f=_.C(E,GX9))==null?void 0:f.url));if(n&&n!=="/service_ajax"){if(f=m_(n,TyQ))return v=_.ec(f),{navigatingCommand:E,href:v};_.li(new _.yc("AttributedString URL could not be sanitized",n))}}return{}};
$S$=function(v){return v.button!==void 0?v.button===0&&!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey):!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey)};
OjG=function(v,E,n,f){n=!NX(n);var x,y,Q;if((x=_.C(E,_.ix))!=null&&x.nofollow||(y=_.C(E,_.dM))!=null&&y.nofollow||(Q=_.C(E,_.Us))!=null&&Q.nofollow||n)v.rel$="nofollow";var e;E=((e=_.C(E,_.Us))==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"_blank":f===void 0?"":f;v.target$=E};
kXI=function(v,E){E.clickTrackingParams&&(v.params={itct:E.clickTrackingParams});v.onpointerdown=function(n){ij$(n)};
v._data=E};
zwy=function(v){(v.loggingUrls||[]).forEach(function(E){UU(E.baseUrl,E.attributionSrcMode)})};
RwF=function(v){v.currentTarget._data&&zwy(v.currentTarget._data)};
ij$=function(v){var E=v.currentTarget;v=Vqy(function(){return E.href});
var n=E.params;v&&_.AQ(v,n||{},8,!0)};
tq1=function(v,E){if(E=_.C(E,_.Us))(E==null?void 0:E.target)==="TARGET_NEW_WINDOW"&&(v.target="_blank"),E.nofollow&&(v.rel="nofollow")};
ByG=function(v){v=_.C(v==null?void 0:v.commandMetadata,_.Dl);return(v==null?0:v.url)?v.url:null};
_.lj=function(v,E){(v=_.F$(v))&&_.mG(v,E)};
_.mG=function(v,E){N6Q(function(n){E?n.resolveCommand(v,E):n.resolveCommand(v)})};
olQ=function(v,E){var n=["yt-core-attributed-string__link"];E!=null&&E.noLinkColor||((E==null?0:E.isOverlay)?n.push("yt-core-attributed-string__link--overlay-call-to-action-color"):n.push("yt-core-attributed-string__link--call-to-action-color"),(E==null?0:E.linkInheritColor)&&n.push("yt-core-attributed-string--link-inherit-color"));n={className:n.join(" "),tabindex$:"0"};var f=v.onTap||v.onLongPress;if(!f)return n;var x=vlL(v);x&&(n["aria-label$"]=x);E=_.wJ({elementsCommand:f,elementConfig:n,skipOnClick:!(E==
null||!E.skipOnClick),forceNewState:!0});v.onLongPress&&(f=new ElG(function(){var y=_.F$(v.onLongPress);y&&_.P().resolve(_.OO).resolveCommand(y)}),E&&nlA(f,E));
return E||n};
vlL=function(v){var E,n;return(E=v.onTapOptions)==null?void 0:(n=E.accessibilityInfo)==null?void 0:n.accessibilityLabel};
fVy=function(v){var E=v;v<=16777215&&(E+=parseInt("ff000000",16));return _.Qt(E)};
xCE=function(v){var E=v.isDarkTheme;var n=v.extension;v=v.runColor;var f=void 0;if(n=n==null?void 0:n.colorMap){E=E?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";n=_.p(n);for(var x=n.next();!x.done;x=n.next())if(x=x.value,E===x.key){f=x.value;break}}f==null&&v&&(f=v);if(f)return fVy(f)};
sZ=function(v){var E=v.config;var n=v.image;var f=v.imageConfig;var x=v.imageWrapperConfig;var y=v.run;var Q=v.tag;var e=v.textLength;var F=v.startIndex===void 0?0:v.startIndex;v=v.length;F===void 0&&(F=0);y={run:y,startIndex:F,endIndex:v!==void 0?F+v:e,tag:Q};n&&(y.image=n);f&&(y.imageConfig=f);x&&(y.imageWrapperConfig=x);E&&(y.config=E);return y};
yIL=function(v,E){var n=[];n.push("yt-core-attributed-string");(E==null?0:E.className)&&n.push(E==null?void 0:E.className);(E==null?0:E.ellipsisTruncate)?n.push("yt-core-attributed-string--ellipsis-truncate"):(E==null?0:E.noWrap)?n.push("yt-core-attributed-string--white-space-no-wrap"):(E==null?0:E.noPreWrap)||n.push("yt-core-attributed-string--white-space-pre-wrap");(E==null?0:E.linkInheritColor)&&n.push("yt-core-attributed-string--link-inherit-color");v.alignment&&n.push(cIE(v.alignment));v.lineBreakMode&&
n.push("yt-core-attributed-string--word-wrapping");return n.join(" ")};
poF=function(v){if(v.weight)return v.weight;switch(v.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}};
QZN=function(v){switch(v){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"}};
cIE=function(v){switch(v){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"}};
eTN=function(v,E,n){var f=E;v.content&&n&&(n=v.content.indexOf("\n"),n!==-1&&(f=Math.min(E,n)));if(!v.content||v.content.length<=f)E=v;else if(v.attachmentRuns||v.commandRuns||v.decorationRuns||v.styleRuns||v.paragraphStyleRuns){E=rJ(v.content,f);n=f;var x=v.attachmentRuns;if(x){var y=[];x=_.p(x);for(var Q=x.next();!Q.done;Q=x.next())Q=Object.assign({},Q.value),Q.startIndex===void 0||Q.startIndex>=n||(Q.length||(Q.length=0),Q.length+Q.startIndex>n&&(Q.length=n-Q.startIndex),y.push(Q));n=y}else n=
void 0;y=Xos(f,v.commandRuns);x=f;var e=v.decorationRuns;if(e){Q=[];e=_.p(e);for(var F=e.next();!F.done;F=e.next()){F=F.value;var b=_.C(F.textDecorator,P8);if(b&&b.startIndex!==void 0&&!(b.startIndex>=x)){F=Object.assign({},F,{textDecorator:{highlightTextDecorator:Object.assign({},b)}});b=_.C(F.textDecorator,P8);if(!b.length||b.length+b.startIndex>x)b.length=x-b.startIndex;Q.push(F)}}x=Q}else x=void 0;Q=Xos(f,v.styleRuns);if(e=v.paragraphStyleRuns)for(v=[],e=_.p(e),F=e.next();!F.done;F=e.next()){var l=
F.value;F=Object.assign({},l);if(!(F.startIndex===void 0||F.startIndex>=f)){if(!F.length||F.length+F.startIndex>f)F.length=f-F.startIndex;b=[];var r=void 0,a=void 0;if((r=l)==null?0:(a=r.listGroup)==null?0:a.listItems)for(l=_.p(l.listGroup.listItems),r=l.next();!r.done;r=l.next())if(r=Object.assign({},r.value),!(r.startIndex===void 0||r.startIndex>=f)){if(!r.length||r.length+r.startIndex>f)r.length=f-r.startIndex;b.push(r)}b.length>0&&(F.listGroup||(F.listGroup={}),F.listGroup=Object.assign({},F.listGroup,
{listItems:b}));v.push(F)}}else v=void 0;E={content:E,attachmentRuns:n,commandRuns:y,decorationRuns:x,styleRuns:Q,paragraphStyleRuns:v}}else E=Object.assign({},v,{content:rJ(v.content,f)});return E};
Xos=function(v,E){if(E){var n=[];E=_.p(E);for(var f=E.next();!f.done;f=E.next())if(f=Object.assign({},f.value),!(f.startIndex===void 0||f.startIndex>=v)){if(!f.length||f.length+f.startIndex>v)f.length=v-f.startIndex;n.push(f)}return n}};
rJ=function(v,E){var n=E,f;if(f=n>0)f=v.charCodeAt(n-1),f=f>=55296&&f<=56319;f&&(n=v.charCodeAt(n),f=n>=56320&&n<=57343);f&&--E;return v.substring(0,E)};
bYL=function(v,E,n){n=n===void 0?Fay:n;if(v){var f=_.P().resolve(HP);f||_.Z("mweb_no_observer_killswitch")?fwE(v,{data:E,observer:f,visibilityCallback:n,hideOption:mCF,showOption:woL,layer:v.layer}):_.li(new _.yc("Warning: monitorVisibility called with null observer",v.tagName,E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams))}else _.li(new _.yc("Warning: monitorVisibility called with null element",E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams,E==null?void 0:
E.rendererContext))};
CBX=function(v,E){var n=[],f=v.content.length,x,y=(x=_.P().resolve(_.jp(_.aj)))==null?void 0:x();if(v.paragraphStyleRuns){x=_.p(v.paragraphStyleRuns);for(var Q=x.next();!Q.done;Q=x.next()){var e=n.push,F=e.apply;var b=void 0;Q=Q.value;if((b=Q.listGroup)!=null&&b.listItems){b=[];b:switch(Q.listGroup.listType){case "LIST_TYPE_BULLET":var l="ul";break b;default:l="span"}b.push(sZ({run:Q,textLength:f,tag:l,config:{className:"yt-core-attributed-string__list-group"},startIndex:Q.startIndex,length:Q.length}));
l=_.p(Q.listGroup.listItems);for(var r=l.next();!r.done;r=l.next()){r=r.value;b:switch(Q.listGroup.listType){case "LIST_TYPE_BULLET":var a="li";break b;default:a="span"}b.push(sZ({run:Q,textLength:f,tag:a,startIndex:r.startIndex,length:r.length}))}Q=b}else Q=[];F.call(e,n,_.s8(Q))}}if(v.styleRuns&&(E==null||!E.noStyleRuns))for(x=_.p(v.styleRuns),e=x.next();!e.done;e=x.next()){e=e.value;F=xCE({extension:_.C(e.styleRunExtensions,lVQ),isDarkTheme:y===void 0?!1:y,runColor:e.fontColor});b=[];F&&b.push("yt-core-attributed-string--link-inherit-color");
e.italic&&b.push("yt-core-attributed-string--italicized");e.underline&&e.strikethrough?b.push("yt-core-attributed-string--underline-strikethrough",QZN(e.underline)):e.underline?b.push("yt-core-attributed-string--underlined",QZN(e.underline)):e.strikethrough&&b.push("yt-core-attributed-string--strikethrough",QZN(e.strikethrough));if(e.baselineOffset){a:switch(e.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Q="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Q=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Q="yt-core-attributed-string--baseline-offset-unknown"}b.push(Q)}Q=b.join(" ");b=e;l={};if(b.weight||b.weightLabel)l.fontWeight=poF(b).toString();F&&(l.color=F);n.push(sZ({run:e,textLength:f,tag:"span",config:{className:Q,style:l},startIndex:e.startIndex,length:e.length}))}if(v.decorationRuns)for(x=_.p(v.decorationRuns),e=x.next();!e.done;e=x.next())e=e.value,F={},e.textDecorator&&(l=e.textDecorator,Q=y===void 0?!1:y,r=[],b=
_.C(l,P8),l=_.C(l,sZE),b?(l=r,r=l.concat,a=[],(Q=xCE({extension:_.C(b.highlightTextDecoratorExtensions,rIA),isDarkTheme:Q,runColor:b.backgroundColor}))&&a.push("background-color: "+Q+";"),b.backgroundCornerRadius!==void 0&&a.push("border-radius: "+b.backgroundCornerRadius+"px;"),b.leftPadding!==void 0&&a.push("padding-left: "+b.leftPadding+"px;"),b.rightPadding!==void 0&&a.push("padding-right: "+b.rightPadding+"px;"),b.topPadding!==void 0&&a.push("padding-top: "+b.topPadding+"px;"),b.bottomPadding!==
void 0&&a.push("padding-bottom: "+b.bottomPadding+"px;"),r=r.call(l,a)):l&&(b=r,r=b.concat,Q=Q?"#2ba640":"#107516",Q=l.color?fVy(l.color):Q,Q=["padding: 2px;","border-top: solid "+Q+" 2px;","border-bottom: solid "+Q+" 2px;","background: linear-gradient(135deg, "+Q+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Q+" 3px, rgba(0, 0, 0, 0) 3px);"],r=r.call(b,Q)),Q=r.join(" "),F.style$=Q,Q=e.textDecorator,b=[],l=_.C(Q,sZE),_.C(Q,P8)?b.push("yt-core-attributed-string--highlight-text-decorator"):
l&&b.push("yt-core-attributed-string--bracket-text-decorator"),Q=b.join(" "),F.className=Q,F.dir="auto"),Q=_.C(e.textDecorator,P8),b=_.C(e.textDecorator,sZE),l=_.C(e.textDecorator,P8),r=_.C(e.textDecorator,sZE),n.push(sZ({run:e,textLength:f,tag:"span",config:F,startIndex:(Q==null?void 0:Q.startIndex)||(b==null?void 0:b.startIndex)||0,length:(l==null?void 0:l.length)||(r==null?void 0:r.length)||0}));if(v.commandRuns&&(E==null||!E.noEndpoints))for(y=_.p(v.commandRuns),x=y.next();!x.done;x=y.next())x=
x.value,e=olQ(x,E),n.push(sZ({run:x,textLength:f,tag:"a",config:e,startIndex:x.startIndex,length:x.length}));if(v.attachmentRuns)for(v=_.p(v.attachmentRuns),y=v.next();!y.done;y=v.next()){y=y.value;F=e=void 0;x={className:"yt-core-attributed-string--inline-block-mod"};if((F=y.element)==null?0:F.properties){F=(e=y.element)==null?void 0:e.properties;e=[];F=_.C(F,PBX);if(F==null?0:F.margin)F=F.margin,F.left&&e.push("margin-left: "+X$(F.left)+";"),F.right&&e.push("margin-right: "+X$(F.right)+";"),F.top&&
e.push("margin-top: "+X$(F.top)+";"),F.bottom&&e.push("margin-bottom: "+X$(F.bottom)+";");e=e.length!==0?e.join(" "):void 0;x.style$=e}Q=void 0;e={alt:"",preserveHeight:!0,preserveWidth:!0};F=["yt-core-attributed-string__image-element"];if(y.alignment){a:switch(y.alignment){case "ALIGNMENT_BASELINE":b="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":b="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:b=
"yt-core-attributed-string__image-element--image-alignment-bottom"}F.push(b)}if((Q=y.element)==null?0:Q.properties)Q=[],b=_.C(y.element.properties,PBX),(b==null?0:b.height)&&Q.push("height: "+X$(b.height)+";"),(b==null?0:b.width)&&Q.push("width: "+X$(b.width)+";"),Q=Q.length!==0?Q.join(" "):void 0,e.style$=Q,b=void 0,Q=((b=_.C(y.element.properties,aVy))==null?void 0:b.label)||"",e.alt=Q;e.className=F.join(" ");F=void 0;l=b=void 0;Q=((l=y.element)==null?0:l.type)?(b=_.C(y.element.type,ZY$))==null?
void 0:b.image:void 0;n.push(sZ({run:y,textLength:f,tag:"img",image:Q,imageConfig:e,imageWrapperConfig:x,startIndex:y.startIndex,length:(F=y.length)!=null?F:0}))}if(E==null?0:E.headerRuns)for(E=_.p(E.headerRuns),v=E.next();!v.done;v=E.next())if(v=v.value,v.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(v.headerMapping)){a:{switch(v.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":y=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":y="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":y="yt-core-attributed-string--heading-3";break a}y=void 0}n.push(sZ({run:v,textLength:f,tag:"span",config:y?{className:y}:void 0,startIndex:v.startIndex,length:v.length}))}return n};
_.Za=function(v){return(v==null?void 0:v.content)!==void 0};
M3E=function(v){return _.Za(v)?v:_.yI(v)};
SDX=function(v){return v.image!==void 0&&v.imageConfig!==void 0};
UC1=function(v,E){if(E==null?0:E.userInput)for(v=_.p(v),E=v.next();!E.done;E=v.next())if(E=E.value,E.tag!=="a"&&E.tag!=="li"){var n=void 0;(n=E).config||(n.config={});E.config.dir=E.tag==="ul"?_.P().resolve(_.CR):"auto"}};
qDX=function(v){return function(E){var n=v.run;(n.onTap!==void 0||n.onLongPress!==void 0)&&_.C(n,IwE)&&bYL(E,{loggingDirectives:_.C(n,IwE)})}};
JIs=function(v){return function(E){for(var n in v)(Vs[n]||Vs[a0["default"]])(E,n,v[n])}};
YDI=function(v,E){KaX(E);var n={data:null,start:0,end:v.length,parts:[]};E=_.p(E);for(var f=E.next();!f.done;f=E.next())f=f.value,dC$(n,f.startIndex,f.endIndex,f);IVQ(v,n);return n};
dC$=function(v,E,n,f){for(var x=_.p(v.parts),y=x.next();!y.done;y=x.next()){y=y.value;if(typeof y==="string")throw Error("fh");if(y.start<=E&&n<=y.end){dC$(y,E,n,f);return}}v.parts.push({data:f,parts:[],start:E,end:n})};
IVQ=function(v,E){for(var n=E.parts.length;n>=0;n--){var f=E.parts[n],x=E.parts[n-1],y=n===E.parts.length?E.end:f.start;x=n===0?E.start:x.end;y!==x&&E.parts.splice(n,0,v.slice(x,y));f&&IVQ(v,f)}};
KaX=function(v){v.sort(function(E,n){if(E.startIndex<n.startIndex)return-1;if(n.startIndex<E.startIndex)return 1;E=E.endIndex-E.startIndex;n=n.endIndex-n.startIndex;return E>n?-1:n>E?1:0})};
_.hTX=function(v){var E=v.thumbnails;if(E){v={sources:[]};E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f={};f.url=n.url;f.width=n.width;f.height=n.height;v.sources.push(f)}return v}};
AIy=function(v,E,n,f){if(!E)return v.length>=1?v[v.length-1]:null;if(f)for(var x=_.p(v),y=x.next();!y.done;y=x.next()){y=y.value;var Q=void 0,e=(Q=y.url)==null?void 0:Q.indexOf(f);if(e!==void 0&&e>=0)return y}f=_.p(v);for(x=f.next();!x.done;x=f.next())if(x=x.value,x.width&&x.height&&(n&&x.width>=E||!n&&x.height>=E))return x;for(E=v.length-1;E>=0;E--)if(n&&v[E].width||!n&&v[E].height)return v[E];return v[0]};
_.V3E=function(v){var E;return(v=(E=v.sources)==null?void 0:E[0])?v.width/v.height:0};
DCN=function(v){if(v.sources){v=_.p(v.sources);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=void 0;if((n=E.clientResource)==null?0:n.imageName)return E}}};
HYE=function(v){var E;if((E=v.clientResource)!=null&&E.imageColor)return _.Qt(v.clientResource.imageColor)};
_.N5$=function(v,E,n,f,x,y,Q){if(!E||E.length===0||E[0].clientResource)return null;if(n&&E[0].url)return E[0].url;f===void 0&&(f=!0);if(f){var e;v=glN*(x||(v==null?void 0:(e=v.getBoundingClientRect())==null?void 0:e.width)||0)}else{var F;v=glN*(y||(v==null?void 0:(F=v.getBoundingClientRect())==null?void 0:F.height)||0)}E=AIy(E,v,f,Q);return(E==null?0:E.url)?E.url:(E==null?0:E.imageData)?E.imageData:null};
uZs=function(v,E,n){n=n?[n]:[];v.opacity&&n.push("opacity: "+v.opacity+";");E&&v.placeholderColor?(v=_.Qt(v.placeholderColor),n.push("background-color: "+v+";")):n.push("background-color: transparent;");return n.join(" ")};
jZE=function(v,E,n,f,x){var y=["yt-core-image"];E&&y.push(E);n||y.push("yt-core-image--fill-parent-height");f||y.push("yt-core-image--fill-parent-width");switch(v.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":y.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":y.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":y.push("yt-core-image--content-mode-center");break;default:y.push("yt-core-image--content-mode-scale-to-fill")}v.flipForRtlLayout&&
y.push("yt-core-image--flip-rtl");switch(x){case "TOP_START":var Q;y.push(((Q=document.body)==null?void 0:Q.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return y.join(" ")};
kMy=function(v){var E;if(v==null?0:(E=v.clientResource)==null?0:E.imageName){var n;v=(n=v.clientResource)==null?void 0:n.imageName;a:{switch(v){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":n="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":n="yt-logos-ext:yt-logo-updated";break a}n=void 0}return n||OYE.get(v)||v}};
Md=function(v){return _.Z("mweb_wiz_skip_render")?WaQ(v):$CG(v)};
WaQ=function(v){return function(E){var n=G2A("wink-root");Kp();ThG();Fcs(n,_.w(v,E))}};
$CG=function(v){var E=E===void 0?!1:E;return function(n){if(!E||!_.Z("mweb_skip_keto_to_c3_if_no_data")||n.data!==void 0){var f=NB(!1);try{var x=n.children;_.Z("mweb_render_outside_patch_killswitch")||Cp?x?Ao(_.w(v,n,x)):Ao(_.w(v,n)):_.li(new _.yc("ketoToC3 called outside of a patch",{tagName:v.TAG_NAME}))}finally{NB(f)}}}};
LaE=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
T5E=function(v,E){v.onViewportEntered=E;GM1.observe(v)};
iYI=function(){var v={rootMargin:"10%",threshold:.01};_.Z("mweb_enable_set_io_root_to_null_safari")?v.root=null:_.Z("mweb_enable_set_io_root_to_body_safari")&&(v.root=document.body);return new IntersectionObserver(function(E,n){E.filter(function(f){return f.intersectionRect.height>0}).forEach(function(f){f=f.target;
if(!_.Z("mweb_enable_only_update_image_when_connected")||f.isConnected!==!1){var x;(x=f.onViewportEntered)==null||x.call(f);n.unobserve(f)}})},v)};
zTE=function(v,E,n,f,x){function y(){if(f){var e=f.loadedClass,F=f.notifyOnUnloaded;e&&_.Sg(v,e);F&&v.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Q(){var e=n(E,v);e&&v.getAttribute("src")!==e&&(_.Z("mweb_enable_only_update_image_when_connected")&&v.isConnected===!1||e===v.src||(v.src=e),y())}
x=x===void 0?!0:x;v.removeAttribute("src");y();E&&(x?T5E(v,Q):Q())};
RTN=function(v,E,n){if(!E)return!1;E=n(E,v);n=v.getAttribute("src");return E&&E===n&&v.complete};
t3$=function(v,E){for(var n in E)n==="className"?v.className=E[n]:(Vs[n]||Vs[a0.default])(v,n,E[n])};
B5X=function(v,E,n,f){Md(_.UZ)({contentMode:E.contentMode,loadedClass:E.loadedClass,isPreloaded:E.isPreloaded,notifyOnLoaded:E.notifyOnLoaded,notifyOnUnloaded:E.notifyOnUnloaded,preferredThumbnail:E.preferredThumbnail,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,objectPosition:E.objectPosition,targetWidth:E.targetWidth,targetHeight:E.targetHeight,shouldShowPlaceholder:E.shouldShowPlaceholder,useWidth:E.useWidth,alt:E.alt,className:E.className,onerror:E.onerror,onload:E.onload,style$:E.style$,
color:E.color,width:E.width,height:E.height,"aria-hidden$":E["aria-hidden$"],draggable:E.draggable,"data-disabled$":E["data-disabled$"],data:v,callback:n,renderLazy:f===void 0?!0:f,hideOn404:!1})};
ESE=function(v,E,n){n=n===void 0?!1:n;var f=v.sources!==void 0?v:_.hTX(v);if(f){var x=E.onload;E.onload=function(F){var b=F.target;n&&b.naturalWidth===120||_.qd(b,"yt-core-image--loaded");E.notifyOnLoaded&&b.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));x==null||x(F)};
E.targetWidth&&E.preserveWidth&&(E.width=E.targetWidth);E.targetHeight&&E.preserveHeight&&(E.height=E.targetHeight);var y=DCN(f),Q=y&&kMy(y);if(Q)return(v=HYE(y))&&(E.color=v),{type:"icon",iconName:Q,config:Object.assign({},E,E.alt?{}:{"aria-hidden$":"true"},{"aria-label$":E.alt,role:"img"})};if(v.sources===void 0){E.alt=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label||E.alt;E.style$=uZs(v,E.shouldShowPlaceholder,E.style$);var e;E.isPreloaded=!((e=_.C(v,
vS1))==null||!e.isPreloaded)}E.contentMode&&!f.contentMode&&(f.contentMode=E.contentMode);E.className=jZE(f,E.className,E.preserveHeight,E.preserveWidth,E.objectPosition);E.loadedClass="yt-core-image--loaded";return{type:"image",image:f,config:E}}};
_.JZ=function(){var v=_.rV.apply(0,arguments);return _.Y$(function(E){var n=v.map(function(f){return f(E)});
return function(){return void n.forEach(function(f){return void(f==null?void 0:f())})}})};
KR=function(v,E){var n=E==null?void 0:E.initial;return _.o0(function(){_.ba(!0);return n=v(n)},{equals:E==null?void 0:E.isEqual},"rSlKsc")};
nSL=function(v,E){if(v===E)return!0;if(v===void 0||E===void 0)return!1;var n,f,x,y,Q,e,F,b;return v.content===E.content&&((n=v.styleRuns)==null?void 0:n.length)===((f=E.styleRuns)==null?void 0:f.length)&&((x=v.commandRuns)==null?void 0:x.length)===((y=E.commandRuns)==null?void 0:y.length)&&((Q=v.attachmentRuns)==null?void 0:Q.length)===((e=E.attachmentRuns)==null?void 0:e.length)&&((F=v.decorationRuns)==null?void 0:F.length)===((b=E.decorationRuns)==null?void 0:b.length)};
x6Q=function(v,E){if(v){var n=M3E(v);if(n!=null&&n.content)if(_.Z("attr_string_reactive"))Md(oSN)({text:v,config:E});else{var f=!(E==null||!E.ariaLabel)||!(n.commandRuns&&n.commandRuns.length!==0||n.paragraphStyleRuns&&n.paragraphStyleRuns.length!==0);v=f?E==null?void 0:E.ariaLabel:null;f=f?"text":null;xz("span",{className:yIL(n,E),dir$:(E==null?0:E.userInput)?"auto":void 0,"aria-label$":v,role$:f},function(){if(n.styleRuns||n.commandRuns||n.attachmentRuns||n.decorationRuns){var x=CBX(n,E);UC1(x,
E);x=YDI(n.content,x);x=_.p(x.parts);for(var y=x.next();!y.done;y=x.next())foG(y.value)}else Vh(n.content)})}}};
foG=function(v){typeof v==="string"?Vh(v):SDX(v.data)?xz("span",v.data.imageWrapperConfig,function(){B5X(v.data.image,v.data.imageConfig)}):xz(v.data.tag,v.data.config,function(E){qDX(v.data)(E);
E=_.p(v.parts);for(var n=E.next();!n.done;n=E.next())foG(n.value)})};
y4X=function(v){return v.parts.map(c49)};
c49=function(v){if(typeof v==="string")return v;v=SDX(v.data)?_.w("span",{el:_.JZ(JIs(v.data.imageWrapperConfig))},_.w(_.UZ,Object.assign({},{data:v.data.image},v.data.imageConfig))):_.w(v.data.tag,{el:_.JZ(qDX(v.data),JIs(v.data.config))},v.parts.map(c49));return Bf(v)};
pdQ=function(v,E){return v===E?!0:v===void 0||E===void 0?!1:v.noStyleRuns===E.noStyleRuns&&v.noLinkColor===E.noLinkColor&&v.noEndpoints===E.noEndpoints&&v.headerRuns===E.headerRuns&&v.isOverlay===E.isOverlay&&v.linkInheritColor===E.linkInheritColor&&v.userInput===E.userInput};
Qqy=function(v){return function(){var E,n,f,x,y,Q,e,F,b,l,r,a,M,U;return{ariaLabel:(E=v.ariaLabel)==null?void 0:E.call(v),className:(n=v.className)==null?void 0:n.call(v),ellipsisTruncate:(f=v.ellipsisTruncate)==null?void 0:f.call(v),isOverlay:(x=v.isOverlay)==null?void 0:x.call(v),linkInheritColor:(y=v.linkInheritColor)==null?void 0:y.call(v),noEndpoints:(Q=v.noEndpoints)==null?void 0:Q.call(v),noStyleRuns:(e=v.noStyleRuns)==null?void 0:e.call(v),noLinkColor:(F=v.noLinkColor)==null?void 0:F.call(v),
noPreWrap:(b=v.noPreWrap)==null?void 0:b.call(v),noWrap:(l=v.noWrap)==null?void 0:l.call(v),skipOnClick:(r=v.skipOnClick)==null?void 0:r.call(v),stopPropagation:(a=v.stopPropagation)==null?void 0:a.call(v),userInput:(M=v.userInput)==null?void 0:M.call(v),headerRuns:(U=v.headerRuns)==null?void 0:U.call(v)}}};
XdX=function(v){return v.value===""||v.value==="true"?!0:v.value==="false"?!1:isNaN(Number(v.value))?v.value:Number(v.value)};
dJ=function(v,E){v=new eQE(v,E);_.mb(v);throw v;};
FsN=function(v,E,n){var f=a5L(v);v._numRenders=0;try{var x=hSA(function(){return _.w(E,Object.assign({},n))})}catch(Q){var y=function(e){e.args||(e.args=[]);
e.args.push("Error in web component wrapper");e.args.push(v.tagName.toLowerCase());return e};
_.bi(Q instanceof Error?y(Q):new eQE("Wiz rendering error",v.tagName.toLowerCase()));throw Q;}finally{a5L(f)}return x};
_.Yz=function(v,E,n){function f(l){var r={};l=_.p(l);for(var a=l.next();!a.done;a=l.next()){a=a.value;var M=void 0,U=void 0,d=void 0,Y=_.BZ((d=(U=(M=a).getAttribute)==null?void 0:U.call(M,"slot"))!=null?d:"children");if(M=r[Y])M.push(a);else if(Y in y||Y==="children")r[Y]=[a]}if(m6Q)for(l=_.p(Object.keys(r)),Y=l.next(),a={};!Y.done;a={content$jscomp$55:void 0},Y=l.next())Y=Y.value,Y!=="children"&&(a.content$jscomp$55=r[Y],r[Y]=function(V){return function(){return V.content$jscomp$55}}(a));
return r}
n=n===void 0?{}:n;v.componentType!==yh||dJ("Components must be marked reactive to be used from web component wrapper.",E);Ax.has(E)&&dJ("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",E);var x,y=(x=n.props)!=null?x:{};VV.add(E);var Q=wdA();x=function(){var l=Q.apply(this,arguments)||this;l.rawProps={};l.queuingRender=!1;l.dispose=function(){};
l.isWebComponentWrapper=!0;l.isReparenting=!1;l.hasAttached=!1;return l};
_.S(x,Q);x.prototype.render=function(){this.hasAttached=!0;for(var l=_.p([].concat(_.s8(this.attributes))),r=l.next();!r.done;r=l.next())r=r.value,r.name!=="slot"&&this.removeAttribute(r.name);l=Object.assign({},this.componentProps,this.slotProps);r=_.p(FsN(this,v,l));l=r.next().value;r=r.next().value;!(l[0]instanceof Element)||l.length>1?dJ("Wrapped Wiz components must return a single root element.",E):(l=l[0].tagName.toLowerCase(),l!==E&&dJ("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(l+" !== '"+E),E),this.dispose=r)};
x.prototype.setUpProps=function(){for(var l=this.rawProps,r=this.attributes,a=_.p(Object.keys(y)),M=a.next();!M.done;M=a.next()){M=M.value;var U=void 0;((U=this)==null?0:U[M])&&this[M]!==bnX&&l[M]===void 0&&(l[M]=this[M],(U=Object.getOwnPropertyDescriptor(this.constructor.prototype,M))&&Object.defineProperty(this,M,U))}a=_.p(r);for(M=a.next();!M.done;M=a.next()){U=M.value;M=_.BZ(U.name);var d=M==="class"&&!r.getNamedItem("class-name");if(M in y||d)U=XdX(U),M!=="class"||l.className?l[M]=U:l.className=
U}r={};for(var Y in y)y[Y]===_.Ij||m6Q&&y[Y]===loE||(l[Y]instanceof Function&&dJ("Function props must be configured as STATIC, not SIGNAL.",E),M=_.p(_.t7(l[Y],void 0,"uFSkac")),a=M.next().value,M=M.next().value,r[Y]=M,l[Y]=a);l=_.p([l,r]);this.componentProps=l.next().value;this.setters=l.next().value;this.slotProps=f(this.childNodes)};
x.prototype.connectedCallback=function(){Yi===E&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in y&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
x.prototype.disconnectedCallback=function(){if(!this._isInert){var l;a:{if(_.sq9)for(l=this;l;){if(_.r4X.has(l)){l=!0;break a}l=l.parentElement}l=!1}if(l)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){l=_.p([].concat(_.s8(this.attributes)));for(var r=l.next();!r.done;r=l.next())r=r.value,r.name!=="slot"&&this.removeAttribute(r.name)}this.innerText="";mUQ(this)}}};
x.prototype._setPendingPropertyOrPath=function(){};
x.prototype.notifyPath=function(){};
_.hK.Object.defineProperties(x.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var e=_.p(Object.keys(y)),F=e.next(),b={};!F.done;b={prop$jscomp$103:void 0},F=e.next())b.prop$jscomp$103=F.value,F=void 0,((F=n.legacyPolymer)==null?0:F.forwardHostProps)&&QRy.has(b.prop$jscomp$103)||Object.defineProperty(x.prototype,b.prop$jscomp$103,{set:function(l){return function(r){var a=this;this._isInert||(this.setters?fp(function(){var M,U;return void((U=(M=a.setters)[l.prop$jscomp$103])==null?void 0:U.call(M,r))}):(this.rawProps[l.prop$jscomp$103]=r,this.queuingRender&&l.prop$jscomp$103===
"data"&&r!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(b),
get:Pls.has(b.prop$jscomp$103)?void 0:function(){return bnX}});
customElements.define(E,x)};
_.ao9=function(v,E){return(v=_.hZ(v,E))?_.ec(_.bW(v)):null};
_.AZ=function(v){if(v=_.hZ(v,Number.MAX_VALUE,void 0,"width"))return _.bW(v)};
_.hZ=function(v,E,n,f){f=f===void 0?"width":f;if(!v||!v.length)return null;if(_.Z("kevlar_tuner_should_always_use_device_pixel_ratio")){var x=window.devicePixelRatio;_.Z("kevlar_tuner_should_clamp_device_pixel_ratio")?x=Math.min(x,_.WG("kevlar_tuner_clamp_device_pixel_ratio")):_.Z("kevlar_tuner_should_use_thumbnail_factor")&&(x=_.WG("kevlar_tuner_thumbnail_factor"));ZnF=x}else ZnF||(ZnF=window.devicePixelRatio);x=ZnF;_.Z("kevlar_tuner_should_always_use_device_pixel_ratio")?E*=x:x>1&&(E*=x);if(_.Z("kevlar_tuner_min_thumbnail_quality"))return v[0].url||
null;x=v.length;if(_.Z("kevlar_tuner_max_thumbnail_quality"))return v[x-1].url||null;if(n)for(var y=0;y<x;y++)if(v[y].url.indexOf(n)>=0)return v[y].url||null;for(n=0;n<x;n++)if(v[n][f]>=E)return v[n].url||null;for(E=x-1;E>0;E--)if(v[E][f])return v[E].url||null;return v[0].url||null};
Szy=function(){VI.size?setTimeout(function(){Da(ClA)},0):MBQ=0};
ClA=function(){var v=(0,_.gd)(),E=null,n=!1;VI.forEach(function(x){x.loaded=!0;x.loadTime=v;x.pendingPaint=!1;var y=U6$.get(x);y&&y.resolve(v);E=x;n||!x.ftlEligible&&x.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(n=!0)});
var f;((f=E)==null?0:f.markDirty)&&E.markDirty();VI.clear();MBQ=0;n&&qzN(v)};
J4L=function(v){VI.add(v);v.pendingPaint=!0;MBQ||(MBQ=_.H8(_.wh,Szy))};
Kss=function(v){v.loaded=!1;v.loadTime=Infinity;var E=U6$.get(v);E&&(E.reject(Error("lh")),U6$.delete(v));v.pendingPaint&&(VI.delete(v),v.pendingPaint=!1)};
_.d6L=function(v){var E=v.indexOf(":");return E===-1?{originalName:v}:{originalName:v.substring(0,E),datasyncId:v.substring(E+1)}};
_.YzF=function(){return _.X(function(v){if(Ios!==void 0)return v.return(Ios);Ios=new Promise(function(E){var n;return _.X(function(f){switch(f.nextAddress){case 1:return _.vW(f,2),_.m(f,_.gJ.open("test-only"),4);case 4:return _.m(f,_.gJ.delete("test-only"),5);case 5:_.qp(f,3);break;case 2:if(n=_.cW(f),n instanceof Error&&n.name==="SecurityError")return E(!1),f.return();case 3:E("caches"in window),_.yQ(f)}})});
return v.return(Ios)})};
VBE=function(){return _.X(function(v){if(v.nextAddress==1)return _.m(v,_.YzF(),2);if(!v.yieldResult)return v.return(void 0);hQE||(hQE=new A4E);return v.return(hQE)})};
D6E=function(v){var E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return _.m(y,VBE(),2);case 2:E=y.yieldResult;if(!E)throw Error("nh");return _.m(y,E.open("yt-player-local-img"),3);case 3:return n=y.yieldResult,_.m(y,n.match(v),4);case 4:f=y.yieldResult;if(!f)throw Error("oh");return _.m(y,f.blob(),5);case 5:return x=y.yieldResult,y.return(x)}})};
HnL=function(v,E){for(var n in v)if(v.hasOwnProperty(n)&&E[n])return n;return null};
gSQ=function(v){return"stamp"+v.replace("-","_")+"_"};
NEL=function(v){var E=v.match(/\[\[([\w\.]+)\]\]/);if(E&&E.length>1)return E[1];_.mb(Error("qh`"+v));return null};
uUF=function(v){return v===void 0?_.Sp("REUSE_COMPONENTS",!1):v||!1};
koL=function(v,E,n){n&&(E.is?(jqI.has(E)&&(v=jqI.get(E),n=v.listener,delete E[v.property],n.type==="element"&&E.removeEventListener(n.eventName,n.handler),jqI.delete(E)),On1(E)):E.__proto__==HTMLElement.prototype&&(E=new _.yc("Rendererstamper removed a non custom element","Stamper: "+v+" element: "+(E&&E.nodeName)),_.li(E)))};
WsX=function(v,E,n,f){var x=E.node?E.node:E;_.K(n).parentNode===x&&(E.removeChild(n),koL(v,n,f));if(v=Nd.get(n))Nd.delete(n),_.wh.cancelJob(v);n.hidden=!1};
$6N=function(v,E,n,f){if(E&&E.children&&(n=E.children[n]))if(_.Sp("DEFERRED_DETACH"))for(;n&&!Nd.has(n);){var x=v,y=E,Q=n,e=f;Q.hidden=!0;x=_.cP(_.wh,WsX.bind(null,x,y,Q,e),0);Nd.set(Q,x);n=n.nextElementSibling}else for(;(Q=E.lastElementChild)&&(E.removeChild(Q),koL(v,Q,f),Q!=n););};
LsN=function(v){var E=_.Ig();_.l5(function(){for(var n=_.p(v.slotContent),f=n.next();!f.done;f=n.next())E.value.appendChild(f.value)});
return _.w("__slot-el",{el:E,skip:!0})};
_.uj=function(v,E,n){n=n===void 0?Goy:n;Ax.add(E);var f;(f=n).propNames!=null||(f.propNames=[]);var x=new Set(n.propNames),y=wdA();f=function(){var b=y.call(this)||this;b.props={};b.isUpdating=!1;b.hasAttached=!1;b.isInert=!1;b.updateQueued=!1;b.initialClasses=[];P1E(b,E);return b};
_.S(f,y);f.prototype.forwardKebabCaseProp=function(b,l){b=_.BZ(b);if(x.has(b)||b==="children")this.props[b]=l};
f.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var b=_.p(this.initialClasses),l=b.next();!l.done;l=b.next())(l=l.value)&&this.classList.add(l);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
f.prototype.handleSlottedContent=function(){for(var b=new Map,l=_.p(this.children),r=l.next();!r.done;r=l.next()){r=r.value;var a=void 0,M=(a=r.getAttribute("slot"))!=null?a:"children";(a=b.get(M))?a.push(r):b.set(M,[r]);if(!r.getAttribute("key")){var U=void 0,d=void 0;r.setAttribute("key",M+"_"+((d=(U=a)==null?void 0:U.length)!=null?d:0))}}b=_.p(b);for(l=b.next();!l.done;l=b.next())r=_.p(l.value),l=r.next().value,r=r.next().value,this.forwardKebabCaseProp(l,_.w(LsN,{slotContent:r}))};
f.prototype.connectedCallback=function(){var b=this;if(!P1E(this,E)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var l=_.p(this.attributes),r=l.next();!r.done;r=l.next())r=r.value,this.forwardKebabCaseProp(r.name,XdX(r));this.handleSlottedContent();n.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){b.afterFirstPatch()});
this.hasAttached=!0}};
f.prototype.attributeChangedCallback=function(b,l,r){this.isInert||this.isUpdating||this.isConnected||b!=="class"||this.initialClasses.push.apply(this.initialClasses,_.s8(r.split(" ")))};
f.prototype.disconnectedCallback=function(){G1X(this)};
f.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var b,l;Fcs(this,_.w(v,Object.assign({},this.props,{idomKey:(l=(b=this.__incrementalDOMData)==null?void 0:b.key)!=null?l:E})),!0)}catch(a){var r=a instanceof Error?a:new _.yc("Wiz rendering error");r.args||(r.args=[]);r.args.push("Error in deprecated web component wrapper");r.args.push(E.toLowerCase());_.mb(r);throw a;}finally{this.updateQueued=this.isUpdating=!1}}};
f.prototype.enqueueUpdate=function(){var b=this;return _.X(function(l){if(n.synchronous)return b.update(),l.return();if(b.updateQueued)return l.return();b.updateQueued=!0;return l.return(Promise.resolve().then(function(){b.update()}))})};
f.prototype.notifyPath=function(){n.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.hK.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Q=_.p(n.propNames),e=Q.next(),F={};!e.done;F={prop$jscomp$105:void 0},e=Q.next())F.prop$jscomp$105=e.value,Object.defineProperty(f.prototype,F.prop$jscomp$105,{set:function(b){return function(l){this.isInert||l===this.props[b.prop$jscomp$105]||(this.props[b.prop$jscomp$105]=l,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(F)});
customElements.define(E,f)};
_.TEX=function(v,E){return _.LH(v.entities,"markersEngagementPanelSyncEntity",E)};
inQ=function(v,E){return _.LH(v.entities,"fantasyWinProbabilityEntity",E)};
zQX=function(v,E){return _.LH(v.entities,"fantasyTeamEntity",E)};
RQ9=function(v,E){return _.LH(v.entities,"fantasyPlayerEntity",E)};
tBL=function(v,E){return _.LH(v.entities,"booleanEntity",E)};
BEs=function(v,E){return _.LH(v.entities,"qrCodeEntity",E)};
vKs=function(v){return _.LH(v.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
EK$=function(){if(jg)return jg;if(window.lottie)return jg=Promise.resolve(window.lottie);var v=_.b6(_.MX("LOTTIE_URL"));return v?jg=new Promise(function(E,n){var f=document.createElement("script");f.addEventListener("load",function(){E(lottie)});
f.addEventListener("error",function(x){var y="Lottie library failed to load.";x?x.message&&(y+=" Original description: "+x.message,_.ss(x,y)):x=Error(y);_.li(x);n(x)});
f.setAttribute("async","");_.Vv(f,v);document.head.appendChild(f)}):Promise.reject(Error("rh"))};
nKF=function(){return jg?jg:EK$()};
oKF=function(){var v=vKs(_.dG().getState());if(v&&v.animationStyle)switch(v.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return OZ.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return OZ.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return OZ.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
fSA=function(v){if(v)switch(v){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Z("kevlar_use_wil_icons"))return(v=oKF())?v:OZ.get("LIKE")}};
xeL=function(v){var E=fSA(v);if(E)return E;switch(v){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return OZ.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return OZ.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return OZ.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return OZ.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return OZ.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return OZ.get("NOTIFICATION_BELL")}};
y2s=function(v,E){if(!v||c29)E=!1;else{if(v.closest){var n=!!fSA(E);n=_.MX("ID_TOKEN")&&n?!!v.closest("segmented-like-dislike-button-view-model"):!1}else n=!1;if(!n)if(v.closest)if(n=!_.MX("ID_TOKEN"),v=v.closest("ytd-subscription-notification-toggle-button-renderer-next"),n||!v)n=!1;else{var f;n=((f=v.data)==null?void 0:f.targetId)==="notification-bell"&&E!=="EXPAND_MORE"}else n=!1;E=n}return E};
pCs=function(v){var E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.vW(f,2),_.m(f,fetch(v),4);case 4:return E=f.yieldResult,_.m(f,E.json(),5);case 5:return f.return(f.yieldResult);case 2:n=_.cW(f),_.li(n),_.yQ(f)}})};
Qmy=function(v,E){var n,f,x;return _.X(function(y){if(y.nextAddress==1)return(n=E?v.pathDarkTheme:v.path)?_.m(y,Promise.all([pCs(n),EK$()]),2):y.return();f=y.yieldResult;x=f[0];kz.set(n,x);_.yQ(y)})};
_.W8=function(){var v=_.rV.apply(0,arguments);return function(){for(var E="",n=_.p(v),f=n.next();!f.done;f=n.next())if(f=f.value,typeof f==="function"&&(f=f()),f)if(typeof f==="string")E+=" "+f;else for(var x in f)if(f.hasOwnProperty(x)){var y=f[x];typeof y==="function"&&(y=y());y&&(E+=" "+x)}E=E.trim()||void 0;return _.ba(E)}};
_.$z=function(v){var E;var n=v.data;var f=v.className;var x=v.animationName;var y=v.animationRef;var Q=(E=v.elRefForInterop)||_.Ig(),e;_.Fp(function(){var l;return void((l=e)==null?void 0:l.destroy())});
var F;_.Xp(function(){var l=_.ba(x);if(l!==F){F=l;var r=Object.assign({},{animationName:l,animationRef:_.ba(y)},_.ba(n));try{_.P().resolve(XCX)().then(function(U){var d;(d=e)==null||d.destroy();d=r.animationRef;var Y=r.listeners;U=U.loadAnimation(Object.assign({},{container:Q.value},r.animationConfig));d&&(d.lottieEl=U);if(Y)for(d=_.p(Object.entries(Y)),Y=d.next();!Y.done;Y=d.next()){var V=_.p(Y.value);Y=V.next().value;(V=V.next().value)&&U.addEventListener(Y,V)}e=U})}catch(U){l=U;
var a="LottieComponent error.";l.message&&(a+=" Original description: "+l.message);_.ss(l,a);_.li(l);var M;((M=r.listeners)==null?0:M.error)&&r.listeners.error(l)}}});
var b=_.W8("ytLottieComponentHost",f);return _.w(BtF,{cond:function(){return!E},
then:function(){return _.w("lottie-component",{class:b,el:Q})}})};
egA=function(v){var E=_.Ig(),n=_.p(amL(v.data.animationConfig.name||"",v.className)),f=n.next().value;n=n.next().value;var x=rB(function(){return v.data.animationRef});
b5(function(){v.data.animationRef&&(v.data.animationRef.lottieEl=x==null?void 0:x.lottieEl)},[v.data.animationRef]);
return _.w("lottie-component",{skip:!0,class:_.W8(n,"ytLottieComponentHost"),el:E},_.w(_.$z,{data:v.data,animationRef:x,animationName:f,elRefForInterop:E}))};
me9=function(v,E,n,f){function x(Q,e){if(E.value===e&&v!=null&&v.value){for(;v.value.firstChild;)v.value.removeChild(v.value.firstChild);v.value.classList.add("yt-spec-icon-shape");Q(v.value,f)}}
n=_.Ff$(_.P().resolve(_.Oe),n);if(typeof n==="function")E.value=null,x(n,null);else{var y=new _.z2(n.then,n);E.value=y;y.then(function(Q){x(Q,y)})}};
bdE=function(v,E){var n=document.createElement("div"),f=_.Fo(n,function(){return _.w(_.x6,{cond:v,then:function(x){return _.w(wCG,{data:x,options:E})}})});
return[n,f]};
_.LR=function(){for(var v=[],E=_.p(_.rV.apply(0,arguments)),n=E.next();!n.done;n=E.next())if(n=n.value)if(typeof n==="string")v.push(n);else{n=_.p(Object.entries(n));for(var f=n.next();!f.done;f=n.next()){var x=_.p(f.value);f=x.next().value;(x=x.next().value)&&v.push(f)}}return v.join(" ")};
PAy=function(v){var E=_.Ig(),n=PG(),f=YZ(v.character)||YZ(v.previousCharacter);Xo(function(){if(v.marginMultiplier){var x;(x=n.value)==null||x.cancel();f?(x=v.previousCharacter?Number(v.previousCharacter)+10:v.rollUp?0:30,v.shouldAnimate||(x-=lSG(v,x))):(x=v.rollUp?0:2,v.shouldAnimate||(x-=v.rollUp?-1:1));E.value.style.marginTop="-"+x*v.marginMultiplier+"px";v.shouldAnimate?n.value=smE(E.value,v,x,f):E.value.style.display=v.character?"":"none"}});
return _.w("animated-rolling-character",{el:E,class:"animated-rolling-character-wiz"},A7(f,function(){for(var x=[],y=1;y<30;y++)x.push(_.w("div",null,y%10));return _.w(_.gF,null,_.w("div",null,"\u00a0"),x,_.w("div",null,"\u00a0"))},function(){return r2E(v.character)}))};
r2E=function(v){return _.w(_.gF,null,_.w("div",null,"\u00a0"),_.w(_.gF,null,A7(!v||_.XN(v),function(){return _.w("div",null,"\u00a0")},function(){return _.w("div",null,v)})),_.w("div",null,"\u00a0"))};
smE=function(v,E,n,f){n=new Animation(new KeyframeEffect(v,[{transform:"translateY(0px)"},{transform:"translateY("+(f?lSG(E,n):E.rollUp?-1:1)*E.marginMultiplier+"px)"}],aSy),document.timeline);E.character?(v.style.display="",n.onfinish=null):n.onfinish=function(){v.style.display="none"};
n.play();return n};
lSG=function(v,E){var n=Number(v.character)+10;if(v.previousCharacter)if(v.character){var f=Number(v.character),x=Number(v.previousCharacter);v=v.rollUp?x<f?n:n+10:x<f?n-10:n}else v=v.rollUp?30:0;else v=v.character==="0"?n:v.rollUp?n-10:n+10;return E-v};
_.GG=function(v,E){return function(n){var f={},x;for(x in n){var y=void 0,Q=void 0;((y=E)==null?0:(Q=y.callbacks)==null?0:Q[x])||(f[x]=n[x])}return _.w(YdQ,null,function(){for(var e in f)n[e]=_.ba(f[e]);n.disableReactiveLogging=!0;return _.w(v,Object.assign({},n))})}};
_.TG=function(v){var E=PG(),n=PG();b5(function(){E.value=v.numberText;n.value=v.numberValue},[v.numberText]);
var f=v.fontSizeMultiplier?v.heightPx*v.fontSizeMultiplier:v.heightPx,x=sO(function(){if(v.numberText){var Q=v.numberText;var e=v.forceRollUp||!n.value||!v.numberValue||n.value<v.numberValue;var F=!!v.shouldAnimate,b=E.value,l=[],r=0,a=0,M=(b?b.replace(/\D/g,"").length:0)-(Q?Q.replace(/\D/g,"").length:0);b=b?b.split(/(\d)/).filter(Boolean):[];for(Q=Q.split(/(\d)/).filter(Boolean);M<0;){var U=Q[a];l.push({character:U,rollUp:e,marginMultiplier:f,shouldAnimate:F});a++;YZ(U)&&M++}for(;r<M;)U=b[r],l.push({previousCharacter:U,
rollUp:e,marginMultiplier:f,shouldAnimate:F}),r++,YZ(U)||M++;for(;a<Q.length;)M=Q[a],U=b[r],YZ(M)===YZ(U)?(a++,r++):YZ(M)?(r++,M=void 0):YZ(U)&&(a++,U=void 0),l.push({character:M,previousCharacter:U,rollUp:e,marginMultiplier:f,shouldAnimate:F});e=l}else e=[];return e},[v.numberText]),y=v.numberText?["height: "+f+"px;",
"line-height: "+v.heightPx+"px;"].join(" "):"";return _.w("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:y,dir:"ltr","aria-hidden":"true"},x.map(function(Q){return _.w(PAy,Object.assign({},Q))}))};
ZdL=function(v){var E=v.nodeName;if(v.id)return E+="#"+v.id;if(v.classList)for(var n=_.p(v.classList),f=n.next();!f.done;f=n.next())E+="."+f.value;v.parentElement&&(E=ZdL(v.parentElement)+" > "+E);return E};
CAs=function(v){return function(E){var n=RmE("event",{type:E.type});n&&E.target&&n.attr("nodepath",ZdL(E.target));return vq1(n,v,E)}};
_.ij=function(v){v&&t2N("event")&&(v=CAs(v));return xqG(function(E){var n,f=(n=v)==null?void 0:n(E);return typeof f==="boolean"?f:!0})};
zG=function(v){return function(){return v()?v():void 0}};
Mb9=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Sc1=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
UeE=function(v){var E=_.p(_.t7(v,void 0,"Clci1e")),n=E.next().value,f=E.next().value;n.current=v;return[n,function(x){return void f(n.current=x)}]};
_.Rj=function(v){var E=KR(function(){return UeE(v())},{isEqual:function(n,f){return n[0].current===f[0].current}});
return[function(){return E()[0]()},
function(n){return void E()[1](n)}]};
_.tZ=function(v){return function(){var E="",n;for(n in v){for(var f=v[n];typeof f==="function";)f=f();f!==void 0&&f!==null&&(E+="; "+n+": "+f)}return E.length>0?_.ba(E.slice(2)):_.ba()}};
qc9=function(v){switch(v){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"}};
deE=function(v,E,n,f,x,y){var Q=J2Q(v),e=Q.disabled,F=Q.iconPosition,b=Q.style,l=Q.focused,r=function(){return!!U()&&F()==="icon-only"},a=function(){return!!U()&&F()==="icon-only-40"},M=function(){return!!U()&&F()==="icon-with-label"},U=function(){return!!E||!(f==null||!f())};
return{type:function(){return b()==="call-to-action-inverse"?"text":b()==="overlay-dark"&&v().type!=="filled"&&v().type!=="tonal"?"tonal":v().type},
shouldFocus:function(){return(l()||(y==null?void 0:y()))&&!e()},
hasIconLeading:function(){return!!U()&&F()==="leading"},
hasIconTrailing:function(){return!!U()&&F()==="trailing"},
hasIconLeadingTrailing:function(){return!!U()&&!!(n||x!=null&&x())&&F()==="leading-trailing"},
hasIconOnly:r,hasIconOnly40:a,hasIconWithLabel:M,iconButton:function(){return r()||a()||M()},
visiblyDisabled:function(){return(e()?"disabled":v().state)==="disabled"||e()},
overrideSmallSizeIcon:function(){return Kfy(v(),U())},
iconToRender:E?E:function(){return _.w(_.B8,{icon:f,size:function(){return vi(v(),!0)},
active:function(){return v().toggled}})},
secondaryIconToRender:n?n:function(){return _.w(_.B8,{icon:x,size:function(){return vi(v(),!0)},
active:function(){return v().toggled}})}}};
J2Q=function(v){return{size:function(){return v().size},
style:function(){return v().style},
focused:function(){return v().focused},
disabled:function(){return v().disabled},
onTap:function(E){var n,f;return(f=(n=v()).onTap)==null?void 0:f.call(n,E)},
alignByText:function(){return v().alignByText},
aTagConfig:function(){return v().aTagConfig},
customColors:function(){return v().customColors},
segmentedPosition:function(){return v().segmentedPosition},
toggled:function(){return v().toggled},
toggleable:function(){return v().toggleable},
accessibilityLabel:function(){return v().accessibilityLabel},
onToggle:function(E){var n,f;return(f=(n=v()).onToggle)==null?void 0:f.call(n,E)},
iconPosition:function(){return v().iconPosition},
oneOffCustomTextWrap:function(){return v().oneOffCustomTextWrap},
disableTextEllipsis:function(){return v().disableTextEllipsis},
disableBackdropFilter:function(){return v().disableBackdropFilter},
tooltipText:function(){return v().tooltipText},
ariaHidden:function(){return v().ariaHidden},
tabIndex:function(){return v().tabIndex},
buttonText:function(){return v().buttonText},
formattedButtonText:function(){return v().formattedButtonText},
animatedTextProps:function(){return v().animatedTextProps}}};
ISX=function(v){return v.style==="overlay-dark"?4:v.style==="overlay"?v.type==="filled"?4:3:v.type==="filled"||v.style==="call-to-action-inverse"||v.style==="mono-inverse"?2:1};
Kfy=function(v,E){E=(v.iconPosition==="icon-only"||v.iconPosition==="icon-only-40"||v.iconPosition==="icon-with-label")&&E;return!v.segmentedPosition&&E&&v.size==="S"};
YcA=function(){return!_.Z("web_disable_backdrop_filter")};
vi=function(v,E){switch(v.size){case "XS":return 16;case "S":return Kfy(v,E)?24:16;default:return 24}};
hgX=function(v){switch(v){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"}};
A2L=function(v){switch(v){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"}};
VbN=function(v){switch(v){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"}};
Des=function(v){if(v.style==="overlay-dark"&&v.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
HdE=function(v){if(!v)return{};var E=v.color,n=v.backgroundColor;v=v.borderColor;var f="";E&&(f+="color: "+E+";");n&&(f+="background-color: "+n+";");v&&(f+="border-color: "+v+";");return{style:f}};
gK1=function(v,E){if(!VK){var n;a$F(function(){return n=dq1(v,E)});
return n}return dq1(v,E)};
NpE=function(){var v=NBN(VK||void 0,qd$);return v===g69||(v==null?void 0:v.name)==="\u0275NotFound"?void 0:v};
OdA=function(v){var E=v.data;var n=v.icon;var f=v.secondaryIcon;var x=v.iconName;var y=v.secondaryIconName;NpE();var Q=E.size;v=E.style;var e=E.focused,F=E.disabled,b=E.onTap,l=E.alignByText,r=E.aTagConfig,a=E.customColors,M=E.segmentedPosition,U=E.toggled,d=E.toggleable,Y=E.accessibilityLabel,V=E.onToggle,O=E.iconPosition,T=E.oneOffCustomTextWrap,L=E.disableTextEllipsis,xX=E.disableBackdropFilter,t=E.tooltipText,QE=E.ariaHidden,MF=E.tabIndex,K1=!!n||!!x,JG=n,$X=f;if(x){var HI=vi(E,!0);JG=function(){return _.w(_.B8,
{icon:x,size:HI,active:E.toggled})}}if(y){var uE=vi(E,!0);
$X=function(){return _.w(_.B8,{icon:y,size:uE,active:E.toggled})}}var WI=E.state;
n=E.type;v==="call-to-action-inverse"&&(n="text");v==="overlay-dark"&&n!=="filled"&&n!=="tonal"&&(n="tonal");var bX=K1&&O==="leading",n0=K1&&O==="trailing",qi=K1&&(!!f||!!y)&&O==="leading-trailing";f=K1&&O==="icon-only";var fl=K1&&O==="icon-only-40";O=K1&&O==="icon-with-label";var yP=f||fl||O;F&&(WI="disabled");var IF=WI==="disabled"||F;K1=Kfy(E,K1);WI={};var QP=_.LR((WI["yt-spec-button-shape-next"]=!0,WI[hgX(n)]=!0,WI[A2L(v)]=!IF,WI["yt-spec-button-shape-next--disabled"]=!!IF,WI[VbN(Q)]=!0,WI["yt-spec-button-shape-next--focused"]=
!!e&&!F,WI["yt-spec-button-shape-next--icon-trailing"]=n0,WI["yt-spec-button-shape-next--icon-leading"]=bX,WI["yt-spec-button-shape-next--icon-leading-trailing"]=qi,WI["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=qi&&!(E.buttonText||E.formattedButtonText),WI["yt-spec-button-shape-next--icon-button"]=f||O,WI["yt-spec-button-shape-next--icon-only-default"]=fl,WI["yt-spec-button-shape-next--align-by-text"]=!!l,WI["yt-spec-button-shape-next--segmented-start"]=M==="start",WI["yt-spec-button-shape-next--segmented-end"]=
M==="end",WI["yt-spec-button-shape-next--override-small-size-icon"]=K1,WI["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!T,WI["yt-spec-button-shape-next--disable-text-ellipsis"]=!!L,WI["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!xX&&YcA(),WI)),T3=_.ij(function(aK){b==null||b(aK);d&&(V==null||V(aK))});
Q=function(){return r?_.w(_.Ed,{aTagConfig:r,disabled:F,className:QP,style:HdE(a).style,title:t!=null?t:"",ariaLabel:Y,ariaCurrent:d&&U},_.w(_.gF,null,ukN(E,bX,qi,n0,yP,JG,$X))):_.w("button",{"on:click":T3,class:QP,title:t!=null?t:"",style:F&&r?"pointer-events:none":HdE(a).style,disabled:F,"aria-pressed":d?!!U:void 0,"aria-label":Y?Y:void 0,"aria-disabled":IF,"aria-hidden":QE,tabindex:MF},_.w(_.gF,null,ukN(E,bX,qi,n0,yP,JG,$X)))};
e={};v=(e["yt-spec-button-shape-with-label"]=!0,e["yt-spec-button-shape-with-label--is-overlay"]=v==="overlay"||v==="overlay-dark",e);return _.w("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},O?_.w("label",{class:_.LR(v)},Q(),_.w("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},jmN(E))):Q())};
jmN=function(v){var E=v.formattedButtonText,n=v.animatedTextProps,f=v.buttonText,x=v.oneOffCustomTextWrap;v=v.iconPosition;return n?_.w(_.TG,{numberText:n.numberText,numberValue:n.numberValue,heightPx:n.heightPx,fontSizeMultiplier:n.fontSizeMultiplier,shouldAnimate:n.shouldAnimate,forceRollUp:n.forceRollUp}):E?(n=v==="icon-with-label"||x,_.w(_.nh,{text:Object.assign({},E,n?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!n})):f};
ukN=function(v,E,n,f,x,y,Q){return _.w(_.gF,null,A7(y&&(E||n||x),function(){return _.w(_.gF,null,_.w("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},y==null?void 0:y()))}),A7((v.buttonText||v.formattedButtonText||v.animatedTextProps)&&!x,function(){return _.w(_.gF,null,_.w("div",{class:"yt-spec-button-shape-next__button-text-content"},jmN(v)))}),A7(f,function(){return _.w(_.gF,null,_.w("div",{class:"yt-spec-button-shape-next__icon"},y==null?void 0:y()))}),A7(n,function(){return _.w(_.gF,
null,_.w("div",{class:"yt-spec-button-shape-next__secondary-icon"},Q==null?void 0:Q()))}),A7(!v.disabled&&!0,function(){return _.w(_.oX,{model:{color:ISX(v)}})}))};
kVN=function(v,E,n){Md(OdA)({data:v,icon:E?function(){return _.w(ho,null,E)}:void 0,
secondaryIcon:n?function(){return _.w(ho,null,n)}:void 0})};
GVF=function(v,E,n){var f=v.buttonText,x=v.formattedButtonText,y=v.formattedButtonTextLegacy,Q=v.animatedTextProps,e=v.style,F=v.size,b=v.focused,l=v.disabled,r=v.onTap,a=v.alignByText,M=v.aTagConfig,U=v.customColors,d=v.segmentedPosition,Y=v.toggled,V=v.toggleable,O=v.accessibilityLabel,T=v.onToggle,L=v.iconPosition,xX=v.oneOffCustomTextWrap,t=v.disableTextEllipsis,QE=v.disableBackdropFilter,MF=v.tooltipText,K1=v.ariaHidden,JG=v.tabIndex,$X=v.state,HI=v.type;e==="call-to-action-inverse"&&(HI="text");
e==="overlay-dark"&&HI!=="filled"&&HI!=="tonal"&&(HI="tonal");var uE=!!E&&L==="leading",WI=!!E&&L==="trailing",bX=!!E&&!!n&&L==="leading-trailing",n0=!!E&&L==="icon-only",qi=!!E&&L==="icon-only-40",fl=!!E&&L==="icon-with-label",yP=n0||qi||fl;l&&($X="disabled");var IF=$X==="disabled"||l;$X=Kfy(v,!!E);var QP={},T3=(QP["yt-spec-button-shape-next"]=!0,QP[hgX(HI)]=!0,QP[A2L(e)]=!IF,QP["yt-spec-button-shape-next--disabled"]=!!IF,QP[VbN(F)]=!0,QP["yt-spec-button-shape-next--focused"]=!!b&&!l,QP["yt-spec-button-shape-next--icon-trailing"]=
WI,QP["yt-spec-button-shape-next--icon-leading"]=uE,QP["yt-spec-button-shape-next--icon-leading-trailing"]=bX,QP["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=bX&&!(f||x),QP["yt-spec-button-shape-next--icon-button"]=n0||fl,QP["yt-spec-button-shape-next--icon-only-default"]=qi,QP["yt-spec-button-shape-next--align-by-text"]=!!a,QP["yt-spec-button-shape-next--segmented-start"]=d==="start",QP["yt-spec-button-shape-next--segmented-end"]=d==="end",QP["yt-spec-button-shape-next--override-small-size-icon"]=
$X,QP["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!xX,QP["yt-spec-button-shape-next--disable-text-ellipsis"]=!!t,QP["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!QE&&YcA(),QP),aK=function(){if(Q)Md(_.TG)(Q);else if(y)y(L==="icon-with-label"||xX?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(x){var $w=L==="icon-with-label"||xX;x6Q(Object.assign({},x,$w?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!$w})}else f&&Vh(f)},yE=function($w){r==null||r($w);
V&&(T==null||T($w))},Cl=M?WfX:$e9,VP=M?"aria-current$":"aria-pressed$",JR=function(){E&&(uE||bX||yP)&&function(){fh({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){E()})}();
(f||x||y||Q)&&!yP&&function(){fh({className:"yt-spec-button-shape-next__button-text-content"},function(){aK()})}();
WI&&function(){fh({className:"yt-spec-button-shape-next__icon"},function(){E()})}();
bX&&function(){fh({className:"yt-spec-button-shape-next__secondary-icon"},function(){n()})}();
l||Md(_.oX)({model:{color:ISX(v)}})},d1=function(){var $w={};
Cl(Object.assign({},($w.className=_.LR(T3),$w.onclick=M?void 0:yE,$w.disabled=l,$w["aria-disabled$"]=IF,$w.style=l&&M?"pointer-events:none":void 0,$w[VP]=V?!!Y:void 0,$w["aria-label$"]=O,$w.title$=MF!=null?MF:"",$w["aria-hidden$"]=K1,$w.tabindex$=JG,$w),M,HdE(U)),function(){JR()})};
fl?(F={},e=(F["yt-spec-button-shape-with-label"]=!0,F["yt-spec-button-shape-with-label--is-overlay"]=e==="overlay"||e==="overlay-dark",F),LfE({className:_.LR(e)},function(){d1();fh({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},aK)})):d1()};
Tps=function(v,E,n){_.Z("web_wiz_button_shape")?kVN(v,E,n):GVF(v,E,n)};
x_=function(v,E){_.mG(v,Object.assign({},E,{forceClickLogging:!0}))};
id1=function(v,E,n,f){var x=void 0;return function(y){var Q=_.F$(n?v==null?void 0:v.onDisabledTap:v==null?void 0:v.onTap);if(Q){var e;x=(e=x)!=null?e:E==null?void 0:E.value;if(Q)if(_.Z("web_button_vm_click_client_ve_killswitch"))x_(Q,Object.assign({},{form:{element:x,event:y}},void 0));else{var F;e=Q==null?void 0:Q.clickTrackingParams;var b,l=v==null?void 0:(F=v.loggingDirectives)==null?void 0:(b=F.clientVeSpec)==null?void 0:b.uiType;F=l&&!e?_.ci(l):void 0;x_(Q,Object.assign({},{form:{element:x,event:y}},
{clickedVisualElement:F}))}}f&&f(y)}};
zgX=function(v){switch(v){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"}};
Rg9=function(v){switch(v){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"}};
tbI=function(v){switch(v){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"}};
Bp1=function(v){switch(v){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"}};
vLX=function(v,E){return _.LH(v.entities,"engagementToolbarStateEntityPayload",E)};
nLG=function(v){(v=_.tx(v))&&_.ELN(v)};
_.ELN=function(v){var E=_.lc();E&&_.ZI(E,v)};
oL$=function(v,E,n){_.OL(v,"yt-open-popup-action",[E,n||v])};
fHs=function(v,E){var n=_.a5(v,"endpoint"),f=_.a5(v,"action");return(n=f?f:n)&&E&&(n=E.navigationEndpointPopupMap[n])&&(v=_.JM(n,v),(n=_.a5(v,"renderer"))&&E.supportedPopups.hasOwnProperty(n))?{openPopupAction:{popupType:E.popupTypeMap[n],popup:v}}:null};
xYs=function(v,E,n,f){if(f){var x;n=n==null?void 0:(x=n.data)==null?void 0:x.contents;(x=n instanceof Array&&n.length?n[0]:n)&&(n=_.a5(x,"renderer"))&&f.supportedPopups.hasOwnProperty(n)&&(E.stopPropagation(),oL$(v,{openPopupAction:{popupType:f.popupTypeMap[n],popup:x}}))}};
p6y=function(v,E,n,f){f=f===void 0?!1:f;var x=cbI(E);if(x){x.href&&FJ(x.href);var y=E.button;y=y!==void 0?y===0&&!y3(E):!y3(E);x.data&&y&&ybQ(v,x,E,n,f)}};
ybQ=function(v,E,n,f,x){x=x===void 0?!1:x;var y=_.WG("pbj_navigate_limit",-1)===0;QJQ(E);_.P().resolve(_.jp(SQ));var Q=E.data;if(Object.keys(Q).length!==0)if(!_.Z("unplugged_web_disable_actions_for_cec_endpoint")&&_.C(Q,_.Tn))_.Z("endpoint_behavior_command_executor_fix_killswitch")||(n.preventDefault(),n.stopPropagation()),_.LG(v,[Q],v);else if(f=fHs(Q,f))Q.loggingUrls&&Q.loggingUrls.forEach(function(F){F.baseUrl&&_.SD(F.baseUrl)}),n.preventDefault(),n.stopPropagation(),oL$(v,f,E);
else{var e=X6y(0,E.data,n);if(v=E.getForm)v=v(),e.tempData=e.tempData||{},e.tempData=Object.assign({},e.tempData,v);v=_.MQ(n);if(f=v.find(function(F){return!!F.visualElement}))e.createScreenConfig=e.createScreenConfig||{},e.createScreenConfig.clickedVisualElement=f.visualElement;
if(!y)if(n.preventDefault(),n.stopPropagation(),_.C(Q,_.enG)&&!x&&_.ki.instance)_.ki.instance.resolveCommand(Q,e);else if(_.Z("kevlar_command_handler_formatted_string")&&!x&&_.ki.instance&&FmX(Q))x=v.find(function(F){return!!F.is})||n.target,n={form:Object.assign({},e,{event:n,
element:x,originatingNode:E})},_.ki.instance.resolveCommand(Q,n);else{Q=_.MQ(n);n=[];for(x=0;x<Q.length;x++)(y=Q[x].is)&&n.push(y);kGN({parents:n.join(","),text:E.innerText},function(){_.jK(E,"yt-navigate",e)})}}};
mYQ=function(v){if(v=cbI(v))QJQ(v),Sqy(v.href)};
cbI=function(v){v=_.MQ(v);for(var E,n=0;n<v.length;n++)if(E=v[n],E.tagName==="A"&&E.classList.contains("yt-simple-endpoint")){if(!E.data)break;return E}return null};
y3=function(v){return v.shiftKey||v.altKey||v.metaKey||v.ctrlKey};
w61=function(v,E){var n={itct:E.clickTrackingParams};_.Z("kevlar_client_side_screens")&&(!_.C(E,_.By)||_.Z("kevlar_exclude_endpoint_killswitch"))&&(n.endpoint=JSON.stringify(E));_.Z("enable_unknown_lact_fix_on_html5")&&_.P().resolve(_.jp(_.ph))&&(n.lact=_.gh());Z4E(n);_.AQ(v,n)};
QJQ=function(v){v.href&&Object.keys(v.data).length!==0&&w61(v.href,v.data)};
FmX=function(v){for(var E=_.p(bBE),n=E.next();!n.done;n=E.next())if(v[n.value])return!1;return!0};
_.Q3=function(v,E){if(E){var n={};lHN.forEach(function(f){f=sJN(E,f,"--yt-lightsource-");Object.assign(n,f)});
rbF.forEach(function(f){f=sJN(E,f,"--yt-basic-");Object.assign(n,f)});
_.NQ(v,n)}};
sJN=function(v,E,n){var f={};f[n+_.tK(E)]=v&&v[E]?_.Qt(v[E]):"";return f};
_.ew=function(v,E,n){Xm[v]||(Xm[v]={});Xm[v][E]=n};
_.Fm=function(v){Xm[v]||(Xm[v]={});return Xm[v]};
P01=function(v){if(!v)return{};var E=v.foregroundTitleColor,n=v.backgroundColor;v=v.borderColor;var f="text";v?f="outline":n&&(f="filled");return{type:f,customColors:{color:E?_.Qt(E):void 0,backgroundColor:n?_.Qt(n):void 0,borderColor:v?_.Qt(v):void 0}}};
SgX=function(v){var E=v.renderer;var n=v.element;var f=v.commandController;var x=v.onTapCallback;var y=v.skipCommandHandling;var Q=v.overrides;var e=v.forceIcon;var F=v.forceModernIconButton;var b=v.forceDisabled;var l=v.isSubscribe===void 0?!1:v.isSubscribe;var r=v.isPressed===void 0?!1:v.isPressed;var a=v.useButtonSize===void 0?!1:v.useButtonSize;v=aH9(E);l&&(v.style="mono",v.type="filled");e=!E.icon||!e&&E.text?E.icon?E.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:F?"icon-only":"icon-only-40";e==="icon-only-40"&&(v.type="text");var M;F=Object;l=F.assign;a=ZBE(E,a);r=!!E.isSelected||!_.Z("web_propagate_is_pressed_killswitch")&&!!r;var U=E.isSelected!==void 0;b=b===void 0?E.isDisabled:b;var d=E.text?_.yI(E.text):void 0;var Y,V,O,T=((Y=E.accessibilityData)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label)||((O=E.accessibility)==null?void 0:O.label);Y=T?T:_.JC(E.text);n=C0E(E,n,f,x,y);f=MxX(E);f!=null&&f.length?(f=_.wJ({innertubeCommand:LSA(f),
forceNewState:!0}),f=bj(f)?f:void 0):f=void 0;return l.call(F,{},v,a,{iconPosition:e},Q,{focused:!1,toggled:r,toggleable:U,disabled:b,formattedButtonText:d,accessibilityLabel:Y,onTap:n,aTagConfig:f},P01((M=E.colorData)==null?void 0:M.basicColorPaletteData),{oneOffCustomTextWrap:E.oneOffCustomTextWrap})};
C0E=function(v,E,n,f,x){return function(y){var Q=MxX(v);f(Q,y);if(!x){Q=_.p(Q);for(var e=Q.next();!e.done;e=Q.next())x_(e.value,{form:{element:E,event:y},commandController:n})}}};
MxX=function(v){var E=[];v.command&&E.push(v.command);v.serviceEndpoint&&E.push(v.serviceEndpoint);v.navigationEndpoint&&E.push(v.navigationEndpoint);return E};
ZBE=function(v,E){if(E)switch(v.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(v.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
aH9=function(v){switch(v.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"}}};
_.mc=function(v){return _.o0(function(){CVI()();return C5(v)},void 0,"Icv7j")};
wW=function(v,E){return _.LH(v.entities,"likeStatusEntity",E)};
UYN=function(v,E){return _.LH(v.entities,"likeCountEntity",E)};
_.qgQ=function(v,E){return _.LH(v.entities,"stringEntity",E)};
JbE=function(v,E){if(!v)return!1;var n,f=(n=_.C(v,_.zn))==null?void 0:n.signal;if(f&&E.signalEndpointMap)return!!E.signalEndpointMap[f];var x;if((n=(x=_.C(v,_.bG))==null?void 0:x.request)&&E.continuationEndpointMap)return!!E.continuationEndpointMap[n];for(var y in v)if(E.commandEndpointMap[y])return!0;return!1};
KmA=function(v,E){if(E.streamingEndpointMap)for(var n in v)if(E.streamingEndpointMap[n]&&(v=E.streamingEndpointMap[n]))return v()};
dYy=function(v,E){var n,f=(n=_.C(v,_.zn))==null?void 0:n.signal;if(f&&E.signalEndpointMap&&(n=E.signalEndpointMap[f]))return n();var x;if((n=(x=_.C(v,_.bG))==null?void 0:x.request)&&E.continuationEndpointMap&&(x=E.continuationEndpointMap[n]))return x();for(var y in v)if(E.commandEndpointMap[y]&&(v=E.commandEndpointMap[y]))return v()};
IHG=function(v){var E={"Content-Type":"application/json"};_.MX("EOM_VISITOR_DATA")?E["X-Goog-EOM-Visitor-Id"]=_.MX("EOM_VISITOR_DATA"):_.MX("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=_.MX("VISITOR_DATA"));E["X-Youtube-Bootstrap-Logged-In"]=_.MX("LOGGED_IN",!1);_.MX("DEBUG_SETTINGS_METADATA")&&(E["X-Debug-Settings-Metadata"]=_.MX("DEBUG_SETTINGS_METADATA"));v!=="cors"&&((v=_.MX("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(E["X-Youtube-Client-Name"]=v),(v=_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(E["X-Youtube-Client-Version"]=
v),(v=_.MX("CHROME_CONNECTED_HEADER"))&&(E["X-Youtube-Chrome-Connected"]=v),(v=_.MX("DOMAIN_ADMIN_STATE"))&&(E["X-Youtube-Domain-Admin-State"]=v),_.Sp("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(v=_.MX("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=v));return E};
YgE=function(v,E){E.watchNextResponse||E.reelItemWatchResponse?E.watchNextResponse?v.content=E.watchNextResponse:v.content=E.reelItemWatchResponse:E.playerResponse?v.player=E.playerResponse:E.reelWatchSequenceResponse&&(v.reelSequence=E.reelWatchSequenceResponse)};
lG=function(v){return function(){return new v}};
sd=function(v){var E=_.P();return function(){return E.resolve(v)}};
_.rW=function(v){if(!v)return null;for(var E=[],n=0;n<v.textSegments.length;n++){var f=v.textSegments[n];f.text?E.push(f):f.emojiId&&E.push({emoji_id:f.emojiId})}return{text_segments:E}};
HBQ=function(v,E,n,f,x,y,Q){y=y===void 0?[]:y;var e=new _.Pi;e.endpoint=n;if(!n)return _.bi(new _.yc("handle undefined endpoint",E.tagName)),e;var F=tgN(n);F.length&&(_.LG(v,F,E,f),e.actions=F);n.loggingUrls&&n.loggingUrls.forEach(function(l){l.baseUrl&&UU(l.baseUrl,l.attributionSrcMode)});
F=!_.Z("web_skip_impression_click_killswitch")&&f&&f.impression;if(n.clickTrackingParams&&!hn9(n)&&!AbX(E)&&!F&&(F=_.Tl(),!_.aX(F,E))){var b=E.getScreenLayer&&E.getScreenLayer();b?F.clickCommand(n,null,b):F.clickCommand(n,null)}F=!1;for(b=0;b<y.length;b++)if((0,y[b])(E,n,f)){F=!0;break}!F&&Vxs(n)&&(e.ajaxPromise=DYL(v,E,n,f,x,Q));return e};
AbX=function(v){var E;return(v=(E=v.data)==null?void 0:E.navigationEndpoint)&&!!v.clickTrackingParams};
hn9=function(v){var E=_.C(v,_.zn);if(E&&(E=E.signal)&&gLI.indexOf(E)>=0)return!0;for(var n in v)if(N4N.indexOf(n)>=0)return!0;return!1};
Vxs=function(v){var E;if(((E=_.C(v,_.zn))==null?void 0:E.signal)==="CLIENT_SIGNAL")return!1;for(var n in v)if(u8s.indexOf(n)>=0)return!1;v=Object.keys(v);return v.length===1&&v[0]==="loggingUrls"?!1:!0};
T4X=function(v,E,n,f,x,y,Q){var e=_.Zg.instance;if(e&&_.Ch(e,f))var F=_.Mq(e,f,x).then(function(l){return(l==null?0:l.data)?l:{data:l}});
else F=v.requestDataForServiceEndpoint(f,x),_.C(f,jJI)||_.C(f,OBy)||_.C(f,_.khX)||_.C(f,WmX)||_.li(new _.yc("No RequestBuilder for endpoint",f));var b=_.Sw();b.promise.thenCatch(function(){var l=_.a5(f,"action")||_.a5(f,"command")||_.a5(f,"endpoint");l&&(l=f[l],l.hasOwnProperty("onFailureAction")?_.LG(E,[l.onFailureAction],n):l.hasOwnProperty("onFailureCommand")&&_.LG(E,l.onFailureCommand,n));F.cancel("Resolver promise rejected")});
F.then(function(l){if(l){var r=l.error;if(r){if(y&&y.onServerError)y.onServerError(f,l);b.reject(new _.yc("Response error",f,r))}else if(l=l.data)if(r=l.error){if(y&&y.onServerError)y.onServerError(f,l);b.reject(new _.yc("Returned error",f,r))}else{$YE(E,n,l,f);Lmy(l);if(r=RYQ(l))for(var a=_.p(r),M=a.next();!M.done;M=a.next()){M=M.value;var U=_.P().resolve(_.jp(GhF))||Ud;if(!_.Zg.instance||!U.some(function(Y){return!!_.C(f,Y)})||_.Z("kevlar_response_processor_allowlist_killswitch")){var d=U=void 0;
((d=_.C((U=M)==null?void 0:U.commandMetadata,_.Dl))==null?0:d.sendPost)?_.$Z(E,[M]):_.LG(E,[M],n)}}(a=_.C(l==null?void 0:l.frameworkUpdates,qq))&&Q&&Q(a);if(y&&y.onSuccess)y.onSuccess(f,l);b.resolve(new _.Jq(l,r))}}else b.reject(new _.yc("Invalid service endpoint provided",f))},function(l){b.reject(l)});
return b.promise};
Lmy=function(v){var E;(v=(E=_.C(v==null?void 0:v.onResponseReceivedCommand,_.iBX))==null?void 0:E.continuationItems)&&(v==null?void 0:v.length)===1&&_.C(v[0],zn1)&&_.FD("so_r",void 0,"search_overview_answer")};
DYL=function(v,E,n,f,x,y){var Q;return(Q=E.getNetworkManager&&E.getNetworkManager()?E.getNetworkManager():_.P().resolve(_.jp(_.n2)))?T4X(Q,v,E,n,f,x,y):_.nR("No network manager.")};
$YE=function(v,E,n,f){if(n=n.trackingParams||n.loggingDirectives&&n.loggingDirectives.trackingParams){var x;(_.C(f,RnG)||_.C(f,txE)||_.C(f,B49))&&f.clickTrackingParams?x=_.tx(f.clickTrackingParams):_.Z("web_graft_to_parent_command")&&f.clickTrackingParams&&(x=_.tx(f.clickTrackingParams));var y;f=(y=E.getScreenLayer)==null?void 0:y.call(E);E=_.Tl().graftServerVe(n,x,f);_.kZ(v,"yt-store-grafted-ve-action",[E])}};
_.v9X=function(v){var E=new Image;return new _.z2(function(n,f){E.addEventListener("load",function(){n()});
E.addEventListener("error",function(){f()});
E.src=v})};
E9s=function(v){return!!v};
n9Q=function(v){return!!v};
o9E=function(v,E,n){var f=v.rowIndex;f!==void 0&&_.kZ(v.hostElement,"yt-section-reactive-dismissal",[f,E,n])};
_.Kh=function(v,E,n){v=_.p(v);for(var f=v.next();!f.done;f=v.next()){f=f.value;if(f===E)break;for(var x=_.p(n),y=x.next();!y.done;y=x.next())if(y=y.value,f.tagName===y||!_.Z("web_event_button_role_check_killswitch")&&f.role==="button"&&y==="BUTTON")return!0}return!1};
_.dW=function(v,E,n){v=_.p(v);for(var f=v.next();!f.done;f=v.next()){f=f.value;if(f===E)break;for(var x=_.p(n),y=x.next();!y.done;y=x.next())if(f.id===y.value)return!0}return!1};
IX=function(v,E){if(!v&&!E)return"medium";v=Math.max(v||0,E||0);return v>=256?"large":v>=96?"medium":"small"};
fNX=function(v){switch(v){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Aq=function(){var v=_.P().resolve(_.jp(_.Y_));return v?(v=v.getCurrentPage())?_.hq(v):null:null};
_.V3=function(){var v=_.Aq();if(!v){var E=_.P().resolve(_.jp(_.Y_)),n=E?typeof E:"no page manager";E=E?E.getCurrentPage():null;n=new _.yc("Player is missing when requested.",n,E?E.tagName:"no page");_.mb(n)}return v};
_.hq=function(v){return v&&v.getPlayer?v.getPlayer():null};
x$I=function(v,E){v={args:{raw_player_response:v}};E&&(v.args=Object.assign({},v.args,E));return v};
c9y=function(v){if(v.args){if(v.args.raw_player_response)return v.args.raw_player_response;if(v.args.player_response)return JSON.parse(v.args.player_response)}};
_.y91=function(v,E){var n={url:"/watch?v="+v.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};v.playlistId&&(n.url+="&list="+v.playlistId);v.playerParams&&(n.url+="&pp="+v.playerParams);v={watchEndpoint:v,commandMetadata:{webCommandMetadata:n}};E&&(v.clickTrackingParams=E);return v};
Q3A=function(){return p1F||!!_.JM("yt.player.Application")};
ecE=function(){return X1F||!!document.querySelector("link#player-css")};
m$X=function(){function v(){p1F=!0;F3s.resolve()}
var E,n;return _.X(function(f){F3s||(F3s=new _.Wy,Q3A()?v():(E=document.createElement("script"),E.addEventListener("load",v),n=_.FV(_.MX("PLAYER_JS_URL")),_.Vv(E,n),document.head.appendChild(E)));return f.return(F3s.promise)})};
bxX=function(){function v(){X1F=!0;w1X.resolve()}
if(!w1X)if(w1X=new _.Wy,ecE())v();else{var E=document.createElement("link");E.id="player-css";E.addEventListener("load",v);var n=_.FV(_.MX("PLAYER_CSS_URL"));_.gV(E,n,"stylesheet");document.head.appendChild(E)}return w1X.promise};
lNE=function(){return Q3A()&&ecE()?Promise.resolve([]):Promise.all([m$X(),bxX()])};
s31=function(v,E,n){var f={args:{}};v&&(f.args.raw_player_response=v);E&&(f.args.raw_watch_next_response=E);n&&(f.args=Object.assign({},f.args,n));return f};
ZxE=function(v,E,n){var f=!1;f=f===void 0?!0:f;v=typeof v==="string"?_.Dg(document,v):v;var x=r9X+"_"+_.xw(v),y=PfX[x];if(y&&f)return aNI(E,n)?y.api.loadVideoByPlayerVars(E.args||null):y.loadNewVideoConfig(E),y.api;y=new Hi(v,x,E,n,void 0);PfX[x]=y;y.addOnDisposeCallback(function(){delete PfX[y.getId()]});
return y.api};
aNI=function(v,E){return E&&E.serializedExperimentFlags?E.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):v&&v.args&&v.args.fflags?v.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
CfA=function(){var v=new _.Wy;v.resolved=!1;var E=v.resolve;v.resolve=function(n){v.resolved=!0;E(n)};
return v};
S0Q=function(v){var E={};MjI().install((E.document_disposed={callback:v},E))};
gW=function(v,E){if(!v&&Math.random()<=_.WG("kevlar_unified_player_logging_threshold")){v=Error("th`"+(E?E:"Unspecified error"));if(_.Z("kevlar_unified_player_throw_errors"))throw v;_.li(v)}};
_.U$9=function(){var v=_.JM("ytDebugData.callbacks");v||(v={},_.Vc("ytDebugData.callbacks",v));return v};
J9s=function(v,E){var n=_.U$9();if(_.Z("web_dd_iu")||q0s.includes(v))n[v]=E};
K39=function(){return _.X(function(v){return v.return({isLeader:_.$bI(_.dG().getState()),c:_.MX("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
d$X=function(){var v;_.X(function(E){if(E.nextAddress==1)return J9s("APP_STATE",K39),_.m(E,_.P().resolve(_.Nq),2);v=E.yieldResult;J9s("PI",function(){return _.X(function(n){return n.return(v.getVideoStats())})});
_.yQ(E)})};
INX=function(v){var E=_.hQ(_.SK(_.n1.location.href));v=_.hQ(_.SK(v));return _.Z("kevlar_clear_non_displayable_url_params")?E==uG(v):uG(E)==uG(v)};
uG=function(v){var E=_.Y09(v);v=v.slice(0);var n=["frags"];_.Z("kevlar_hide_pp_url_param")&&n.push("pp");_.Z("kevlar_hide_time_continue_url_param")&&n.push("time_continue");n=_.p(n);for(var f=n.next();!f.done;f=n.next())f=f.value,v=_.VT(_.hQ(v),f);return _.hQ(v)+(E?"#"+E:"")};
jw=function(v,E){E=Number(E)*1E3;var n=Math.round((0,_.gd)()),f=n.toString();v={innertubeResponse:v,serverDateTimestampMs:f,lastModifiedTimestampMs:f,expireTimestampMs:(n+E).toString()};if(E=_.MX("INNERTUBE_CONTEXT_CLIENT_NAME"))v.clientName=E;return v};
A9X=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++hcs};
_.Vj1=function(){var v=_.bc(),E=_.lc();E&&v&&_.Mx(E,[v],!0)};
HxL=function(v){return v&&D$L.some(function(E){return v.includes(E)})};
k8F=function(v){var E=_.C(v,_.Us);if(!E)return!1;var n=E.url,f=E.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!n)return _.mb(Error("yh")),!1;if(E.target==="TARGET_NEW_WINDOW"){var x={};_.Z("resolve_url_parent_tracking_params")&&(!_.HG(n)||gB(window.location.href,n))&&(x={endpoint:v,itct:v.clickTrackingParams});Z4E(x);v=null;try{if(f){a:{var y=n,Q=x;f=f===void 0?!1:f;Q&&_.AQ(y,Q);var e=_.bW(y),F=_.ec(e);y!=F&&_.Kk(Error("Yf`"+y));y=F;try{if(f){F=y;F=hV$(F);FJ(F);v=_.Kc(window,F,"_blank",
"attributionsrc");break a}}catch(a){_.UO(a)}FJ(y);v=_.Kc(window,e,"_blank")}g9G(_.P().resolve(NeX),v,n);return!0}}catch(a){_.mb(a)}_.AQ(n,x);x={target:"_blank",noopener:_.Z("set_window_noopener_ks")&&!E.allowOpener};E=window;e=X_(n)?n:_.bW(typeof n.href!="undefined"?n.href:String(n));v=self.crossOriginIsolated!==void 0;y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);F=x.noreferrer;if(v&&F&&y==="unsafe-url")throw Error("qe");y=F&&!v;F=x.target||n.target;f=
[];Q=[];var b=!1;for(r in x){var l=x[r];switch(r){case "width":case "height":case "top":case "left":f.push(r+"="+l);break;case "target":break;case "noopener":case "noreferrer":l?Q.push(r):(b=!0,Q.push(r+"=false"));break;case "attributionsrc":f.push(r+(l?"="+l:""));break;default:f.push(r+"="+(l?1:0))}}var r=F!==void 0&&!["_blank","_self","_top","_parent",""].includes(F);r=dL()&&r;u3E&&v&&f.length===0&&Q.length>0&&!r&&!b?(Q.length===2&&(Q=["noreferrer"]),_.Kc(E,e,F,Q[0]),v=j3L()):(r=f.join(","),_.VE()&&
E.navigator&&E.navigator.standalone&&F&&F!="_self"?(r=_.oc("A"),Cc(r,e),r.target=F,y&&(r.rel="noreferrer"),((x=x.attributionsrc)||x==="")&&r.setAttribute("attributionsrc",x),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,E,1),r.dispatchEvent(x),r=j3L()):y?(r=_.Kc(E,"",F,r),E=_.ec(e),r&&(r.opener=null,E===""&&(E="javascript:''"),E='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+k_(E)+'">',E=Sc(E),(x=r.document)&&x.write&&(x.write(Uw(E)),
x.close()))):((r=_.Kc(E,e,F,r))&&x.noopener&&(r.opener=null),r&&x.noreferrer&&(r.opener=null)),v=r);g9G(_.P().resolve(NeX),v,n);return!0}r=_.R5(n);r=HxL(r)||n==="https://studio.youtube.com/";E=!(!_.HG(n)||gB(window.location.href,n));x=n.indexOf("disable_polymer=1")>=0;if(E||x||r)FJ(n),Qf(),_.mo(n,void 0,void 0,window.top,Oxs);else return _.li(new _.yc("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",v)),!1;return!0};
_.L3E=function(v,E){E=E===void 0?0:E;if(!(_.C(v,W3I)||_.C(v,$$X)||_.C(v,_.Us)&&_.C(v,_.Us).url))return!1;var n,f=(n=_.C(v,_.Us))==null?void 0:n.url;n=f?{externalLinkData:{url:f}}:null;return _.Tl().clickCommand(v,n,E)};
_.Wi=function(v,E){return _.LH(v.entities,"subscriptionStateEntity",E)};
G8N=function(v,E){return _.LH(v.entities,"subscriptionNotificationStateEntity",E)};
Tes=function(v,E){return _.LH(v.entities,"upcomingEventReminderStateEntity",E)};
ixL=function(v,E){return _.LH(v.entities,"engagementToolbarSurfaceEntityPayload",E)};
zcy=function(v,E){return _.LH(v.entities,"triStateButtonStateEntityPayload",E)};
RcG=function(v,E){return _.LH(v.entities,"commerceCartCheckoutButtonEntity",E)};
_.tj9=function(v,E){return _.LH(v.entities,"playlistLoopStateEntity",E)};
BeX=function(v,E){return _.LH(v.entities,"commandEntity",E)};
EnX=function(v,E,n,f,x){x=x===void 0?{}:x;return function(y){var Q,e;var F=((Q=v.loggingDirectives)==null?0:(e=Q.clientVeSpec)==null?0:e.uiType)?_.ci(v.loggingDirectives.clientVeSpec.uiType):void 0;x.clickedVisualElement||(x.clickedVisualElement=F);F=vny(v,E);n(F,y);F=_.p(F);for(Q=F.next();!Q.done;Q=F.next()){Q=Q.value;e=f;var b=y,l=x;l.form?l.form.event=b:l.form={element:e,event:b};x_(Q,l)}}};
vny=function(v,E){var n=[];E?(v.toggledCommand&&n.push(v.toggledCommand),v.toggledServiceEndpoint&&n.push(v.toggledServiceEndpoint)):(v.defaultCommand&&n.push(v.defaultCommand),v.defaultServiceEndpoint&&n.push(v.defaultServiceEndpoint),v.defaultNavigationEndpoint&&n.push(v.defaultNavigationEndpoint));return n};
nnA=function(v,E){var n=v.toggledStyle||v.style,f;switch((f=E?n:v.style)==null?void 0:f.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"}}};
onL=function(v,E){E=E.uniqueId+"-border";var n,f;var x=(f=(n=_.P().resolve(_.jp(_.aj)))==null?void 0:n())!=null?f:!1;return{animationRef:v,animationConfig:{name:E,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(x?"dark":"light")+"_v2.json"}}};
_.$_=function(){return _.X(function(v){return v.nextAddress==1?_.m(v,_.P().resolve(_.Nq),2):v.return(_.P().resolve(fpG)())})};
_.Lh=function(){return _.P().resolve(fpG)()};
_.Gy=function(){return rB(function(){return{lottieEl:void 0}})};
xHy=function(v,E){return v.startsWith(E.uniqueId)};
cDQ=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,_.$_(),2);E=f.yieldResult;if((n=E)==null||!n.addEventListener)return Ty(),f.return();E.addEventListener("onCueRangeEnter",v);_.yQ(f)})};
yD1=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,_.$_(),2);E=f.yieldResult;if((n=E)==null||!n.removeEventListener)return Ty(),f.return();E.removeEventListener("onCueRangeEnter",v);_.yQ(f)})};
pw$=function(v){var E,n,f,x,y;_.X(function(Q){if(Q.nextAddress==1)return _.m(Q,_.$_(),2);E=Q.yieldResult;if((n=E)==null||!n.addCueRange)return Ty(),Q.return();f=_.p(v.timings);for(x=f.next();!x.done;x=f.next())y=x.value,E.addCueRange(v.uniqueId+"-"+y,y/1E3,(y+100)/1E3);_.yQ(Q)})};
Qts=function(v){var E,n,f,x,y;_.X(function(Q){if(Q.nextAddress==1)return _.m(Q,_.$_(),2);E=Q.yieldResult;if((n=E)==null||!n.removeCueRange)return Ty(),Q.return();f=_.p(v.timings);for(x=f.next();!x.done;x=f.next())y=x.value,E.removeCueRange(v.uniqueId+"-"+y);_.yQ(Q)})};
Xw9=function(){var v,E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.$_(),2);v=f.yieldResult;if((E=v)==null||!E.getPlayerState)return Ty(),f.return();n=v.getPlayerState();return f.return(n===2)})};
Ty=function(){_.li(new _.yc("Smartimation player does not exist or is corrupted"))};
wwX=function(v){var E=eEF;F7F.push(v);mHA||(E(function(){for(var n=_.p(F7F),f=n.next();!f.done;f=n.next())f=f.value,f();F7F.length=0;mHA=!1}),mHA=!0)};
eEF=function(v){Promise.resolve().then(v)};
iG=function(v){v=_.p(SdL(v));var E=v.next().value,n=v.next().value,f=!1;_.l5(function(){return function(){f=!0}});
return[E,function(x){wwX(function(){f&&!_.Z("cow_prevent_state_setter_after_cleanup_killswitch")||n(x)})}]};
lpX=function(v){function E(b){var l;return _.X(function(r){if(r.nextAddress==1)return(l=!xHy(b,f)||!f.enabled)?r.jumpTo(2):_.m(r,Xw9(),3);r.nextAddress!=2&&(l=r.yieldResult);if(l)return r.return();n();setTimeout(function(){F(!1)},1500);
_.yQ(r)})}
function n(){setTimeout(function(){F(!0);var b;(b=y.lottieEl)==null||b.goToAndPlay(0)},150)}
var f=v.settings;var x=v.className;v=v.children;var y=_.Gy(),Q=_.p(iG(!1)),e=Q.next().value,F=Q.next().value;f||(f={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.li(new _.yc("Smartimation Settings is undefined")));b5(function(){if(f.experimentEnabled)return f.enabled?cDQ(E):(F(!1),yD1(E)),function(){yD1(E)}},[f.enabled,
f.experimentEnabled]);b5(function(){if(f.experimentEnabled)return pw$(f),function(){Qts(f)}},[f.timings.join("")]);
return _.w("yt-smartimation",{class:bSX(x,e,f)},A7(f.experimentEnabled,function(){return _.w("div",{class:"smartimation__border"},_.w(egA,{className:"smartimation__border-gradient",data:onL(y,f)}))}),_.w("div",{class:"smartimation__content"},v))};
bSX=function(v,E,n){var f=["smartimation"];v&&f.push(v);n.experimentEnabled&&f.push("smartimation--experiment-enabled");E&&f.push("smartimation--active-border");try{var x;var y=(x=window.CSS)!=null&&x.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(Q){_.li(new _.yc("Smartimation CSS.supports threw an error")),y=!1}y&&f.push("smartimation--enable-masking");
return f.join(" ")};
stE=function(){try{var v;return(v=window.CSS)!=null&&v.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(E){return _.li(new _.yc("Smartimation CSS.supports threw an error")),!1}};
SR1=function(v,E,n,f,x){var y=v.playlistId?rDI:PhE;E=E();n=n();x=!!v.videoId&&x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.nC(E))return apE({data:v,actionType:y,disabled:x},n);if(v.videoId&&f())return ZSs({data:v,actionType:y,disabled:x});switch(E){case "TRANSFER_STATE_UNKNOWN":return ZSs({data:v,actionType:y,disabled:x});case "TRANSFER_STATE_FAILED":return v.videoId?ChA({data:v,actionType:y,disabled:x}):M4X({data:v,actionType:y,disabled:x});case "TRANSFER_STATE_COMPLETE":return M4X({data:v,
actionType:y,disabled:x});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return apE({data:v,actionType:y,disabled:x},n);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return v.videoId?ChA({data:v,actionType:y,disabled:x}):ZSs({data:v,actionType:y,disabled:x});default:return ZSs({data:v,actionType:y,disabled:x})}};
UHy=function(v,E){var n=v.onTapCommand,f=_.F$(n);if(v.videoId&&_.C(f,_.zy))return _.C(f,_.zy).action=E,n;v.playlistId&&_.C(f,_.RX)&&(_.C(f,_.RX).action=E);return n};
ZSs=function(v){var E=v.data;var n=v.actionType;v=v.disabled;return{text:qRL,iconType:"OFFLINE_DOWNLOAD",onTap:UHy(E,n.ACTION_ADD),disabled:v}};
apE=function(v,E){var n=v.data;var f=v.actionType;v=v.disabled;var x="OFFLINE_DOWNLOAD";E>=0&&E<=.1?x="OFFLINE_DOWNLOADING_ZERO":E>.1&&E<=.3?x="OFFLINE_DOWNLOADING_TWENTY":E>.3&&E<=.5?x="OFFLINE_DOWNLOADING_FORTY":E>.5&&E<=.7?x="OFFLINE_DOWNLOADING_SIXTY":E>.7&&E<1?x="OFFLINE_DOWNLOADING_EIGHTY":E===1&&(x="OFFLINE_PIN");return{text:JD9,iconType:x,onTap:UHy(n,f.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
M4X=function(v){var E=v.data;var n=v.actionType;v=v.disabled;return{text:K7F,iconType:"OFFLINE_PIN",onTap:UHy(E,n.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
ChA=function(v){var E=v.data;var n=v.actionType;v=v.disabled;return{text:dHE,iconType:"OFFLINE_DOWNLOAD",onTap:UHy(E,n.ACTION_RETRY),disabled:v}};
Ip$=function(){var v=_.p(iG(!1)),E=v.next().value,n=v.next().value;return function(){n(!E)}};
YRQ=function(v){return rB(function(){return{value:v}})};
hEX=function(v,E){var n=YRQ(v),f=YRQ(E);b5(function(){n.value=v},[v]);
b5(function(){f.value=E},E&&E.length>=1?E:[void 0]);
var x=rB(function(){return{value:void 0}});
if(v!==n.value||f.value!==E||x.value===void 0)x.value=C5(v,E);var y=Ip$();_.l5(function(){function Q(){var F=C5(n.value,E);F!==x.value&&(x.value=F,y())}
var e=_.Zj().subscribe(Q);Q();return e});
return x.value};
_.tq=function(v,E){return hEX(v,[E])};
_.Bi=function(v,E){var n=CVI();return _.o0(function(){n();return C5(v,[_.ba(E)||""])},void 0,"HaeHEc")};
AD$=function(v){var E=_.Bi(_.bx,function(){return v().videoId}),n=_.Bi(_.lx,function(){return v().playlistId});
return function(){return v().videoId?E:v().playlistId?n:_.p(_.t7("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
V4F=function(v){var E=_.Bi(sb,function(){return v().videoId}),n=_.Bi(_.WD$,function(){return v().playlistId});
return function(){return v().videoId?E:v().playlistId?n:_.p(_.t7(0,void 0,"K4tgOc")).next().value}};
DH1=function(v){var E=_.Bi(_.tOI,function(){return v().videoId});
return function(){return v().videoId?E:_.p(_.t7(!1,void 0,"Oaxwcf")).next().value}};
HS$=function(v){var E=_.Bi(G4X,function(){return v().videoId});
return function(){return v().videoId?E:_.p(_.t7("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
gnI=function(){return{}};
jtF=function(v){var E=v.backgroundLottieRef;var n=v.foregroundLottieRef;var f=v.children;var x=v.wrapperClass;v=v.disableAnimation;v=(_.Z("web_animated_actions")||_.Z("web_animated_actions_v2"))&&!v;return _.w("yt-animated-action",{class:_.W8("animated-action__container",x)},_.w("div",{class:"animated-action__content-with-background"},A7(v,function(){return _.w(N9$,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:E,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(uA1()?"dark":"light")+"_v5.json"}}})}),f),A7(v,function(){return _.w(N9$,{lottiePlayerProps:{animationRef:n,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(uA1()?"dark":"light")+"_v4.json"}}})}))};
N9$=function(v){var E=v.wrapperClass;var n=v.lottieClass;v=v.lottiePlayerProps;return _.w("div",{class:_.LR("animated-action__lottie",E),"aria-hidden":"true"},_.w(egA,{className:n,data:v}))};
uA1=function(){var v,E;return(E=(v=_.P().resolve(_.jp(_.aj)))==null?void 0:v())!=null?E:!1};
OSQ=function(){var v,E;return(E=(v=_.P().resolve(_.jp(_.aj)))==null?void 0:v())!=null?E:!1};
W79=function(v,E){v=v===void 0?kgs:v;switch(E.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},v,{isOpen:E.payload});default:return v}};
L7G=function(v,E){v=v===void 0?$H1:v;switch(E.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},v,{isAllowed:E.payload});default:return v}};
T9Q=function(v,E){v=v===void 0?Ggy:v;switch(E.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{errorMessage:E.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{title:E.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},v,{privacy:E.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},v,{isDisabled:E.payload});default:return v}};
zEs=function(v,E){v=v===void 0?iSG:v;switch(E.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},v,{isOpen:E.payload});default:return v}};
t4y=function(v,E){v=v===void 0?REG:v;switch(E.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},v,{isFullscreen:E.payload});case "SET_NAVIGATION_BUTTON":var n=E.payload.targetId,f=Object.assign({},v.navigationButtons);f[n]=E.payload.button;return Object.assign({},v,{navigationButtons:f});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},v,{topPanelId:E.payload});case "SET_SECONDARY_HEADER":return n=E.payload.panelId,f=Object.assign({},v.secondaryHeader),f[n]=E.payload.secondaryHeader,
Object.assign({},v,{secondaryHeader:f});default:return v}};
nvX=function(){return zq(Object.assign({},{entities:SGA,voiceSearch:goN,engagementPanel:t4y,bottomSheet:W79,cinematicSetting:L7G,shorts:LpE,drawerLayout:zEs,createPlaylist:T9Q,locationCollection:B9s,reportChannel:vvG,reportForm:Ev$},GBs))};
ov1=function(v,E){return"https://www.gstatic.com/youtube/img/lottie/"+v+"/"+E+".json"};
fhI=function(v){return{lottiePlayerProps:{animationConfig:{name:v.name,path:ov1("custom_animated_like_icon",v.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:v.totalFrames,lazyLoad:!0}};
xVG=function(v,E){_.wh.addLowPriorityJob(function(){var n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return _.vW(y,2),_.m(y,EK$(),4);case 4:return _.m(y,fetch(v),5);case 5:return n=y.yieldResult,_.m(y,n.json(),6);case 6:f=y.yieldResult;kz.set(v,f);requestAnimationFrame(function(){E(f)});
_.qp(y,0);break;case 2:x=_.cW(y),_.li(x),_.yQ(y)}})})};
cuE=function(v){var E={animationConfig:{},listeners:{}},n=function(){v(!0)};
E.listeners.data_failed=n;E.listeners.error=n;E.listeners.data_ready=function(){v(!1)};
return E};
vT=function(v){var E=v.model;var n=v.subscribed;var f=v.isOverlay;var x=v.element;var y=v.commandController;var Q=v.notificationState;if(n){var e,F;var b=(E==null?void 0:(e=E.buttonStyle)==null?void 0:e.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:E==null?void 0:(F=E.unsubscribeButtonContent)==null?void 0:F.buttonText}else{var l;b=E==null?void 0:(l=E.subscribeButtonContent)==null?void 0:l.buttonText}a:{var r;switch(E==null?void 0:(r=E.buttonStyle)==
null?void 0:r.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":e="S";break a;default:e="M"}}a:if(f)f="overlay";else switch(E.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":f="overlay";break a;default:f="mono"}a:if(n)var a="tonal";else switch((a=E.buttonStyle)==
null?void 0:a.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":a="tonal";break a;default:a="filled"}return{style:f,type:a,state:E.disableSubscribeButton?"disabled":"active",size:e,focused:v.focused,toggled:n,accessibilityLabel:yuG(E,n,Q),buttonText:b,iconPosition:E.disableNotificationBell?"none":"leading-trailing",onTap:ptX(E,n,x,y),disableTextEllipsis:!!v.disableTextEllipsis}};
ptX=function(v,E,n,f){return function(x){if(E){var y;var Q=v.disableNotificationBell?_.F$(v==null?void 0:(y=v.unsubscribeButtonContent)==null?void 0:y.onTapCommand):_.F$(v==null?void 0:v.onShowSubscriptionOptions)}else{var e;Q=_.F$(v==null?void 0:(e=v.subscribeButtonContent)==null?void 0:e.onTapCommand)}Q&&x_(Q,{form:{element:n},commandController:f});x.stopPropagation()}};
yuG=function(v,E,n){if(E){if(v==null?0:v.disableNotificationBell){var f;return v==null?void 0:(f=v.unsubscribeButtonContent)==null?void 0:f.accessibilityText}switch(n){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var x;return v==null?void 0:(x=v.bellAccessibilityData)==null?void 0:x.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var y;return v==null?void 0:(y=v.bellAccessibilityData)==null?void 0:y.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Q;return v==null?void 0:(Q=
v.bellAccessibilityData)==null?void 0:Q.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var e;return v==null?void 0:(e=v.bellAccessibilityData)==null?void 0:e.disabledLabel;default:var F;return v==null?void 0:(F=v.unsubscribeButtonContent)==null?void 0:F.accessibilityText}}else{var b;return v==null?void 0:(b=v.subscribeButtonContent)==null?void 0:b.accessibilityText}};
EI=function(v){if(!v)return null;switch(v){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":v="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":v="NOTIFICATIONS_OFF";break;default:v="NOTIFICATIONS_NONE"}return v};
QN$=function(v,E,n){n.subscribed!==E&&((n=n.key)&&_.Mu(_.n7("subscriptionStateEntity",n,{key:n,subscribed:E})),v.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:E})),E||_.OL(v,"yt-unsubscribe-action"))};
eN1=function(v){v=_.C(_.F$(v),_.ou);var E,n,f,x;return(x=_.C(v==null?void 0:(E=v.panelLoadingStrategy)==null?void 0:(n=E.inlineContent)==null?void 0:(f=n.sheetViewModel)==null?void 0:f.content,Xt9))==null?void 0:x.listItems};
FRF=function(v,E){if(v.onShowSubscriptionOptions&&E&&(v=eN1(v.onShowSubscriptionOptions),v!=null&&v.length)){var n=EI(E);v.forEach(function(f){f=_.C(f,_.f7);var x,y,Q,e,F=f==null?void 0:(x=f.leadingImage)==null?void 0:(y=x.sources)==null?void 0:(Q=y[0])==null?void 0:(e=Q.clientResource)==null?void 0:e.imageName;f&&F&&(f.isSelected=F===n)})}};
mVX=function(v,E,n,f){E&&n?v.style.width=n+"px":!E&&f&&(v.style.width=f+"px")};
wts=function(v,E,n){var f;(f=v.lottieEl)==null||f.goToAndPlay(0);var x;(x=E.lottieEl)==null||x.goToAndPlay(0);_.xa(_.wh,function(){var y;(y=n.lottieEl)==null||y.goToAndPlay(0)},300)};
PPA=function(v){var E=_.Ig(),n=_.Ig(),f=_.Ig(),x=_.Gy(),y=_.Gy(),Q=_.Gy(),e=_.P().resolve(bJE),F,b=(F=_.tq(_.Wi,v.data.stateEntityStoreKey))!=null?F:void 0,l,r,a,M=(a=_.tq(G8N,(r=(l=v.data.notificationStateEntityStoreKeys)==null?void 0:l.subsNotificationStateKey)!=null?r:""))!=null?a:void 0;F=!!v.data.disableNotificationBell;var U=!v.data.enableSubscribeButtonPostClickAnimation;l=_.p(iG(0));var d=l.next().value,Y=l.next().value;l=_.p(iG(0));var V=l.next().value,O=l.next().value;l=_.p(iG(!1));var T=
l.next().value,L=l.next().value;l=_.p(iG(!1));var xX=l.next().value,t=l.next().value,QE=PG(!1),MF=PG("");l=_.p(iG(!1));var K1=l.next().value,JG=l.next().value,$X=function(){t(!0);_.xa(_.wh,function(){t(!1)},1500)};
b5(function(){xX&&!U&&b&&wts(x,y,Q)},[xX]);
b5(function(){!U&&b&&(v.animateWidth&&mVX(E.value,!!b.subscribed,d,V),b.subscribed&&b.key===MF.value&&$X(),b.key&&(MF.value=b.key))},[b==null?void 0:b.subscribed,
b==null?void 0:b.key]);var HI=sO(function(){var IF=v.data,QP=!(b==null||!b.subscribed),T3=!!v.isOverlay,aK=T?E.value:void 0,yE=M==null?void 0:M.state;FRF(IF,yE);return vT({model:IF,subscribed:QP,isOverlay:T3,element:aK,notificationState:yE,disableTextEllipsis:!0,focused:K1})},[v.data,
b,M,K1,v.isOverlay,T]),uE=function(){var IF=_.P().resolve(_.jp(_.cT));IF&&JG(IF.isKeyBoardInUse())},WI=function(){JG(!1)};
piI(E,function(IF){bX();b&&(IF.detail.endpoint.subscribeEndpoint||IF.detail.endpoint.unsubscribeEndpoint)&&QN$(E.value,!b.subscribed,b)});
_.dt("yt-player-subscribe",function(IF){b&&IF===v.data.channelId&&QN$(E.value,!0,b)});
_.dt("yt-player-unsubscribe",function(IF){b&&IF===v.data.channelId&&QN$(E.value,!1,b)});
_.dt("yt-update-subscribe-button-action",function(IF){IF=_.C(IF,lhL);b&&IF&&IF.channelId===v.data.channelId&&QN$(E.value,!!IF.subscribed,b)});
_.l5(function(){E.value&&(E.value.addEventListener("focusin",uE),E.value.addEventListener("focusout",WI));_.cP(_.wh,function(){bX()});
L(!0);return function(){E.value&&(E.value.removeEventListener("focusin",uE),E.value.removeEventListener("focusout",WI))}});
var bX=function(){if(!U&&v.animateWidth&&(n==null?0:n.value)&&(f==null?0:f.value)&&!QE.value){var IF=_.p((b==null?0:b.subscribed)?[n,f]:[f,n]),QP=IF.next().value;IF=IF.next().value;QP=Math.ceil(QP.value.getBoundingClientRect().width);IF=Math.ceil(IF.value.getBoundingClientRect().width);Y(QP);O(IF);mVX(E.value,!(b==null||!b.subscribed),QP,IF);QE.value=!0}},n0=function(){var IF=EI(M==null?void 0:M.state);
return U||IF!=="NOTIFICATIONS_NONE"?function(){return e(IF)}:function(){Md(sNI)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Q})}};
l=function(){var IF=EI(M==null?void 0:M.state);return U||IF!=="NOTIFICATIONS_NONE"?function(){return _.w(_.B8,{icon:IF!=null?IF:void 0})}:function(){return _.w(sNI,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Q})}};
var qi=!(b==null||!b.subscribed)&&!F&&!(M==null||!M.state),fl=!(b==null?0:b.subscribed),yP=fl&&!F&&!(M==null||!M.state);F={};r={};return _.w("yt-subscribe-button-view-model",{class:_.LR("yt-subscribe-button-view-model-wiz",(F["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(b==null||!b.subscribed)&&v.animateWidth&&xX,F["yt-subscribe-button-view-model-wiz--hidden"]=!(b==null?0:b.subscribed)&&v.data.hideWhenUnsubscribed,F)),el:E},_.w(ruF,{backgroundLottieRef:x,foregroundLottieRef:y,wrapperClass:_.LR("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(r["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=v.animateWidth&&xX,r["yt-subscribe-button-view-model-wiz__static-width"]=!v.animateWidth,r)),disableAnimation:U},_.w("div",{el:n,class:_.LR("yt-subscribe-button-view-model-wiz__container"),idomKey:v.data.channelId},_.Z("web_wiz_button_shape")?_.w(OdA,{data:HI,icon:qi?l():void 0,secondaryIcon:qi?function(){return _.w(_.B8,{icon:"EXPAND"})}:void 0}):_.w(ho,null,function(){Tps(HI,qi?n0():void 0,qi?function(){return e("EXPAND")}:
void 0)}))),_.w("div",{el:f,
class:"yt-subscribe-button-view-model-wiz__invisible"},!v.animateWidth||U||QE.value?null:_.Z("web_wiz_button_shape")?_.w(OdA,{data:vT({model:v.data,subscribed:fl,isOverlay:!!v.isOverlay,element:E.value,disableTextEllipsis:!0}),icon:yP?function(){var IF;return _.w(_.B8,{icon:(IF=EI(M==null?void 0:M.state))!=null?IF:void 0})}:void 0,
secondaryIcon:yP?function(){return _.w(_.B8,{icon:"EXPAND"})}:void 0}):_.w(ho,null,function(){Tps(vT({model:v.data,
subscribed:fl,isOverlay:!!v.isOverlay,element:E.value,disableTextEllipsis:!0}),yP?function(){return e(EI(M==null?void 0:M.state))}:function(){},yP?function(){return e("EXPAND")}:void 0)})))};
ahX=function(v){if(v){switch(v){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":v="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":v="NOTIFICATIONS_OFF";break;default:v="NOTIFICATIONS_NONE"}return v}};
ZJF=function(v,E,n){n.subscribed!==E&&((n=n.key)&&_.Mu(_.n7("subscriptionStateEntity",n,{key:n,subscribed:E})),v.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:E})),E||_.OL(v,"yt-unsubscribe-action"))};
CPQ=function(v){v=_.C(_.F$(v),_.ou);var E,n,f,x;return(x=_.C(v==null?void 0:(E=v.panelLoadingStrategy)==null?void 0:(n=E.inlineContent)==null?void 0:(f=n.sheetViewModel)==null?void 0:f.content,Xt9))==null?void 0:x.listItems};
MiF=function(v,E){if(v.onShowSubscriptionOptions&&E&&(v=CPQ(v.onShowSubscriptionOptions),v!=null&&v.length)){var n=ahX(E);v.forEach(function(f){f=_.C(f,_.f7);var x,y,Q,e,F=f==null?void 0:(x=f.leadingImage)==null?void 0:(y=x.sources)==null?void 0:(Q=y[0])==null?void 0:(e=Q.clientResource)==null?void 0:e.imageName;f&&F&&(f.isSelected=F===n)})}};
S9s=function(v,E,n,f){E&&n?v.style.width=n+"px":!E&&f&&(v.style.width=f+"px")};
UV$=function(v,E,n){var f;(f=v.lottieEl)==null||f.goToAndPlay(0);var x;(x=E.lottieEl)==null||x.goToAndPlay(0);_.xa(_.wh,function(){var y;(y=n.lottieEl)==null||y.goToAndPlay(0)},300)};
yX=function(){return _.P().resolve(_.jp(q9A))||{}};
JuE=function(v){return typeof v==="function"};
_.p7=function(v){Object.keys(v);var E=function(n,f){var x=E.mapping||v;if(!n)return _.w(_.gF,null);if(Array.isArray(n)&&(n=KR$(x,E,n),Array.isArray(n))){if(!n.length)return _.w(_.gF,null);if(n.length>1){for(var y=!1,Q=!1,e=[],F={},b=0;b<n.length;F={data$jscomp$1832:void 0},b++)if(F.data$jscomp$1832=n[b],F.data$jscomp$1832){var l=dVX(F.data$jscomp$1832,x),r=l.mappingEntry;l=l.rendererName;r&&l&&(r&&(!JuE(r)&&IhX(r)&&(Q=!0),!JuE(r)&&r.asyncId||(y=!0)),e.push(Y9X(F.data$jscomp$1832,r,l,E,f)))}return Q&&
!y?_.w(_.gF,null,hN1()):_.w(_.gF,null,e)}n=n[0]}if(!n)return _.w(_.gF,null);n=KR$(x,E,[n])[0];if(!n)return _.w(_.gF,null);y=dVX(n,x);x=y.mappingEntry;y=y.rendererName;return x&&y?_.w(_.gF,null,Y9X(n,x,y,E,f)):_.w(_.gF,null)};
E.mapping=v;return E};
_.AuX=function(v){var E=void 0,n;for(n in v)if(v.hasOwnProperty(n)){E=n;break}return E};
KR$=function(v,E,n){var f,x=(f=yX().preProcessOptions)==null?void 0:f.idomOptions;if(!x)return n;yX();return x.preProcessPropsIdom(v,n,E.triggerRerender)};
dVX=function(v,E){return(v=_.AuX(v))?{mappingEntry:E[v],rendererName:v}:{mappingEntry:void 0,rendererName:void 0}};
Y9X=function(v,E,n,f,x){if(!E)return _.w(_.gF,null);var y={};x&&x[n]&&(y=Object.assign({},x[n]));v[n]!==void 0&&(y.data=v[n]);if(JuE(E))return E.debugName||(E.debugName=n),_.w(E,y);E.asyncId&&(f.pendingIdsMap=f.pendingIdsMap||{},f.pendingIdsMap[n]=E.asyncId);return E.templateFn?E.templateFn(y):IhX(E)?hN1():_.w(_.gF,null)};
IhX=function(v){var E;return(E=v.showPlaceholder)!=null?E:yX().defaultShowPlaceholder};
hN1=function(){var v=yX().placeholder;return v()};
Vis=function(v,E){E=E===void 0?{shouldPersist:!0}:E;return{useUpdatableData:function(n,f){var x=[],y=_.p(_.Rj(function(){var b=n();if(f!=null&&f.length&&x){var l=x.length>0;for(var r=!1,a=0;a<f.length;a++){var M=f[a]();l&&M!==x[a]&&(r=!0);x[a]=M}l=r}else l=!1;if(l)_.QX.remove(F());else if(l=_.QX.get(F()))return l;return b})),Q=y.next().value,e=y.next().value,F=_.o0(function(){return v(n())},void 0,"VFraLb");
_.Xp(function(){if(F()!=null){eS.set(F(),[Q,e,!1]);var b=F();_.Fp(function(){eS.delete(b)})}});
return[Q,function(b){e(b);E.shouldPersist&&_.QX.set(F(),b)}]},
getData:function(n){var f;return(f=eS.get(v(n)))==null?void 0:f[0]()},
updateData:function(n,f){n=v(n);var x=eS.get(n);if(!x)return!1;var y=_.p(x);x=y.next().value;y=y.next().value;f=f(x());y(f);E.shouldPersist&&_.QX.set(n,f);return!0},
useUpdatableDataIdom:function(n,f){var x=v(n),y=_.QX.get(x),Q=_.p(iG(y!=null?y:n)),e=Q.next().value,F=Q.next().value,b=PG(y!=null?y:n);b5(function(){if(x!=null)return eS.set(x,[function(){return b.value},
function(l){F(l);b.value=l},
eS.has(x)]),_.wh.addJob(function(){_.Fw(_.wh,function(){var l=eS.get(x);l&&(l[2]=!1)},0)},8),function(){var l;
((l=eS.get(x))==null?0:l[2])||eS.delete(x)}},[x]);
b5(function(){e!==n&&(F(n),b.value=n)},f?[].concat(_.s8(f),[x]):[x]);
return[e,F]}}};
DVF=function(v){var E=_.p(_.t7(!0,void 0,"bKtO6d")),n=E.next().value;E.next();return function(){var f=Bf(v.children());return _.w(_.x6,{cond:n,then:function(){return f},
else:v.fallback})}()};
_.mI=function(v){var E=HJI(v),n=E.data,f=E.mapping,x=E.wrapper;E=E.pendingFallback;var y=function(){return gvQ(_.ba(n))},Q=function(){var e=y(),F=[];
e=_.p(e);for(var b=e.next();!b.done;b=e.next()){var l=void 0;b=b.value;var r=void 0;for(l in b)if(!(!b).hasOwnProperty(l)){r=l;break}(l=r)&&F.push(l)}return F};
return v.data?_.w(DVF,{fallback:E},function(){return _.w(_.cG,{each:Q},function(e,F){var b=x?function(r){return x(function(){return f[e](r,F)},l,F)}:function(r){return f[e](r,F)};
b.debugName||(b.debugName=String(e));if(!f[String(e)])return document.createComment("");var l=N8I(y,e,F);return _.w(b,{data:l})})}):_.w(_.gF,null)};
HJI=function(v){var E=v.targetId||uGs(v.children);if(!v.data||!E||_.Z("mweb_new_replaceables_killswitch"))return Object.assign({},v,{mapping:v.children,wrapper:void 0});var n="stamper-"+jNE++,f=function(){var e;return(e=_.ba(v.targetId))!=null?e:n};
E=_.p(OJX(function(){var e=gvQ(v.data());e.targetId=f;return e})).next().value;
var x=Object.assign({},yX().replaceableMapping,v.children);if(v.replacementWrapper){var y=x.notificationTextRenderer,Q=x.notificationMultiActionRenderer;y&&(x.notificationTextRenderer=function(e,F){return v.replacementWrapper(y({data:e.data},F))});
Q&&(x.notificationMultiActionRenderer=function(e,F){return v.replacementWrapper(Q({data:e.data},F))})}return Object.assign({},v,{data:E,
mapping:x,wrapper:function(e,F,b){return gK1({targetId:f,stamperIndex:b},e)}})};
N8I=function(v,E,n){var f;return _.o0(function(){var x=v()[n()];if(x)f=x[E];else return _.li(new _.yc("Stamper failed to find "+String(E)+" at index "+n()+" of data array of length "+(v().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),f;return x[E]},void 0,"DHuMIe")};
uGs=function(v){v=_.p(Object.keys(v));for(var E=v.next();!E.done;E=v.next())if(E=E.value,kHL.includes(E)||WRE.includes(E)||$Vy.includes(E))return!0;return!1};
gvQ=function(v){return v?Array.isArray(v)?v:[v]:[]};
LRX=function(v){v=_.C(v,_.wQ);return(v==null?void 0:v.iconName)&&!(v==null?0:v.title)};
iJ$=function(v,E,n){var f;return _.w(_.gF,null,v==null?void 0:(f=v.actions)==null?void 0:f.map(function(x){return _.w("div",{class:function(){var y={"yt-flexible-actions-view-model-wiz__action":!0};y["yt-flexible-actions-view-model-wiz__action--row-action"]=E;y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(LRX(x))var Q=!0;else if(Q=_.C(x,_.bS),(Q==null?0:Q.isToggled)&&LRX(Q==null?void 0:Q.toggledButtonViewModel)||(Q==null||!Q.isToggled)&&LRX(Q==null?void 0:Q.defaultButtonViewModel))Q=
!0;else{var e;Q=((e=_.C(x,GH1))==null?0:e.playlistId)?!0:!1}y=(y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Q,y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=n,y);return _.LR(y)}},T8N([x],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!E}}))}))};
zNs=function(v){var E=v.layout===1,n,f=((n=v.data)==null?void 0:n.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";n={};f=(n["yt-flexible-actions-view-model-wiz"]=!0,n["yt-flexible-actions-view-model-wiz--inline"]=!E,n["yt-flexible-actions-view-model-wiz--scrollable"]=f,n);var x,y;return _.w("yt-flexible-actions-view-model",{class:_.LR(v.className,f)},(x=v.data)==null?void 0:(y=x.actionsRows)==null?void 0:y.map(function(Q){if(E){var e;return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
iJ$(Q,E,!((e=v.data)==null||!e.respectActionIntrinsicWidth)))}return iJ$(Q,E,!1)}))};
RNs=function(v){return!(v==null||!v.iconName||(v==null?0:v.title))};
tiX=function(v){var E=_.C(v.data.toggleButtonViewModel,_.bS),n,f=(n=v.data.dislikeEntityKey)!=null?n:"",x=_.tq(wW,f);E=Object.assign({},E,{isToggled:x?x.likeStatus==="DISLIKE":E.isToggled});return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.lS,{data:E,buttonShapeOverrides:v.buttonShapeOverrideables,onToggle:function(y){x&&y!==(x.likeStatus==="DISLIKE")&&x.key&&_.Mu(_.sI("likeStatusEntity",x.key,{likeStatus:y?"DISLIKE":"INDIFFERENT",hadUserInteraction:y}))}}))};
vds=function(v){var E=_.Z("web_supports_animations_api"),n=_.C(v.data.toggleButtonViewModel,_.bS),f,x,y,Q,e=_.p(iG({numberText:(Q=(f=v.likeCountEntity)==null?void 0:(x=f.likeCountIfIndifferent)==null?void 0:x.content)!=null?Q:"",numberValue:Number((y=v.likeCountEntity)==null?void 0:y.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),F=e.next().value,b=e.next().value,l,r,a,M;f=_.p(iG({numberText:(M=(l=v.likeCountEntity)==null?void 0:(r=l.likeCountIfLiked)==null?void 0:r.content)!=null?
M:"",numberValue:Number((a=v.likeCountEntity)==null?void 0:a.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));l=f.next().value;var U=f.next().value;r=_.p(iG(void 0));var d=r.next().value,Y=r.next().value,V;r=(V=v.data.likeStatusEntityKey)!=null?V:"";var O,T;V=(T=(O=v.likeCountEntity)==null?void 0:O.key)!=null?T:"";var L=_.tq(wW,r),xX=_.tq(UYN,V);O=sO(function(){return(L==null?void 0:L.likeStatus)==="LIKE"},[L]);
b5(function(){var t,QE=xX&&((t=xX.likeCountIfIndifferent)==null?void 0:t.content)!==F.numberText;if(!d&&QE){var MF,K1;b({numberText:(K1=xX==null?void 0:(MF=xX.likeCountIfIndifferent)==null?void 0:MF.content)!=null?K1:"",numberValue:Number(xX==null?void 0:xX.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var JG,$X;U({numberText:($X=xX==null?void 0:(JG=xX.likeCountIfLiked)==null?void 0:JG.content)!=null?$X:"",numberValue:Number(xX==null?void 0:xX.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[xX]);
n=Object.assign({},n,{isToggled:O});E=E&&v.likeCountEntity;return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.lS,{data:n,buttonShapeOverrides:v.buttonShapeOverrideables,animatedTextPropsDefault:E?F:void 0,animatedTextPropsToggled:E?l:void 0,onToggle:function(t){B8F(t,L,d,Y)},
style:function(){return v.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
B8F=function(v,E,n,f){n&&_.wh.cancelJob(n);n=_.wh.addLowPriorityJob(function(){f(void 0)},5E3);
f(n);E&&v!==(E.likeStatus==="LIKE")&&E.key&&_.Mu(_.n7("likeStatusEntity",E.key,{key:E.key,likeStatus:v?"LIKE":"INDIFFERENT",hadUserInteraction:v}))};
EdG=function(v,E,n,f){n&&_.wh.cancelJob(n);n=_.wh.addLowPriorityJob(function(){f(void 0)},5E3);
f(n);E&&v!==(E.likeStatus==="LIKE")&&E.key&&_.Mu(_.n7("likeStatusEntity",E.key,{key:E.key,likeStatus:v?"LIKE":"INDIFFERENT",hadUserInteraction:v}))};
xty=function(v){var E,n=_.C((E=v.data)==null?void 0:E.likeButtonViewModel,rQ),f;E=_.C((f=v.data)==null?void 0:f.dislikeButtonViewModel,PT);var x,y=(x=_.tq(wW,(n==null?void 0:n.likeStatusEntityKey)||""))!=null?x:n==null?void 0:n.likeStatusEntity;f=sO(function(){var Q=v.data,e;Q=(Q==null?void 0:(e=Q.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(y==null?void 0:y.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},[v.data,
y]);return _.w("segmented-like-dislike-button-view-model",{class:_.LR(v.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.w(_.ndy,{settings:f},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},n?_.w(odI,{data:n,likeCountEntity:v.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,E?_.w(fWy,{data:E,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
cp1=function(v,E){var n=IQ(v)||{layerNode:E};n.layerNode=E;Lj9(v,n);v.getScreenLayer=function(){return au(n.layerNode)}};
yps=function(v){var E;v=v.parentNode;for(var n;v&&((E=IQ(v))==null||!E.isRenderer)&&!((n=v.polymerController)!=null?n:v).isRenderer_;)v=v.parentNode||v.host;if(E=v)return IQ(E)};
pcL=function(v){if(v){dj.delete(v);var E=_.P().resolve(HP);vf1(v,E)}};
Xcy=function(v,E,n){if(n===void 0?0:n){if(n=v.getAttribute("client-ve-type"),E.data&&!E.disableReactiveLogging||n)_.ea(function(){QwF(v,_.ba(E.data))}),_.Fp(function(){return void pcL(v)})}else typeof E.data!=="function"&&QwF(v,E.data)};
QwF=function(v,E){ehF++;FK$(v,E)&&_.wh.addJob(function(){_.Fw(_.wh,function(){if(FK$(v,E)&&v.ownerDocument.documentElement===document.documentElement&&v){var n;if(v.getAttribute("layer")){var f=n=Number(v.getAttribute("layer")),x=IQ(v);x?x.layerNode.layer=f:cp1(v,new mtE(f));(f=yps(v))&&(x=IQ(v))!=null&&(x.layerNode.parent=f.layerNode)}else if(n=IQ(v))n=au(n.layerNode);else{n=au;f=new mtE;if(x=yps(v))f.parent=x.layerNode;cp1(v,f);n=n(f)}n!=null||(n=0);f=v.getAttribute("client-ve-type");x=Number(f);
var y=!1;f=!1;var Q=IQ(v),e;if((e=Q)&&!(e=Q[Zk]!==E)&&(e=x)){var F;e=((F=dj.get(v))==null?void 0:F.clientVeType)===void 0}e&&(Q[Zk]=E,y=f=Q.isRenderer=!0);dj.has(v)&&(dj.get(v).clientVeType=x);v.visualElement&&(f=!0);(F=E==null?void 0:E.loggingDirectives)&&F.clientVeSpec&&(Q=wc$(_.L5(),v),F=_.bPX(_.Tl(),F,Q||void 0,n))&&(v.visualElement=F);!v.visualElement&&x&&y&&(v.veType=x,F=void 0,_.Z("wiz_next_client_ve_parent_fix")&&(F=wc$(_.L5(),v)),F=_.Gl(_.Tl(),v,F,n),v.visualElement=F);f&&(F=_.P().resolve(HP),
fwE(v,{data:E,observer:F,layer:n,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
FK$=function(v,E){return(E==null?0:E.trackingParams)||(E==null?0:E.loggingDirectives)||_.C(E==null?void 0:E.rendererContext,_.xS9)||v.getAttribute("client-ve-type")?!0:!1};
swF=function(v){return _.Z("cow_logging_in_component_wrapper")?function(E){Xcy(E,v,!0)}:lW1};
lW1=function(){};
_.rp1=function(v,E){return _.LH(v.entities,"accountLinkStatusEntity",E)};
Pk$=function(v,E){return _.LH(v.entities,"hatsSurveyEntity",E)};
aWL=function(v,E){return _.LH(v.entities,"hatsSurveyStateEntity",E)};
ZPE=function(v,E){return _.LH(v.entities,"quantityIncrementerEntity",E)};
qNI=function(v){var E=v.data;var n=v.className===void 0?"":v.className;var f=v.setMinWidth;v=v.forceIconOnly;var x=_.Ig(swF({data:E}));f=f?"ytwAccountLinkButtonViewModelHostMinWidth":"";var y=_.Bi(_.rp1,function(){var r;return(r=_.ba(E).accountLinkStatusEntityKey)!=null?r:""}),Q=_.Bi(_.rp1,function(){var r;
return(r=_.ba(E).accountLinkStatusSecondaryEntityKey)!=null?r:""}),e=function(){if(!_.Z("web_account_link_secondary_killswitch")){var r,a;
return((r=y())==null?void 0:r.linked)||((a=Q())==null?void 0:a.linked)}var M;return(M=y())==null?void 0:M.linked};
_.Xp(function(){var r=y();if(r){var a=CkE(new MnN,SNE(new Uty,!!r.linked));_.$_().then(function(M){M&&(M.setAccountLinkState(_.z3(a.JSC$9965_serializeBinary(),4)),M.updateAccountLinkingConfig(!!r.linked))})}});
var F=function(){return _.C(_.ba(E).toggleButtonViewModel,_.bS)};
_.dt("yt-signal-action-show-account-link-dialog",function(){if(F()){var r=e()?F().toggledButtonViewModel:F().defaultButtonViewModel;r=_.C(r,_.wQ);var a;if((a=y())==null?0:a.isWarning){a=_.C(_.ba(E).warningButtonViewModel,_.wQ);if(!a){_.Kk(Error("zh"));return}r=a}var M;(a=_.F$((M=r)==null?void 0:M.onTap))&&_.ic([a],x.value)}else _.Kk(Error("Ah"))});
var b=function(){var r=F();return Object.assign({},r,{isToggled:e()})},l=v?{iconPosition:"icon-only"}:{};
return _.w("account-link-button-view-model",{class:_.W8("ytwAccountLinkButtonViewModelHost",function(){return _.ba(n)},f),
el:x,"button-renderer":!0},_.w("div",null,_.w(_.x6,{cond:function(){var r;if((r=y())==null?0:r.isWarning)return(r=_.C(_.ba(E).warningButtonViewModel,_.wQ))||_.Kk(Error("zh")),r},
then:function(r){return _.w(_.C7,{data:r,buttonOverrides:l})},
else:function(){return _.w(_.lS,{data:b,buttonShapeOverrides:l})}})))};
Jp9=function(v){switch(v){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}};
KK1=function(v){switch(v){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}};
dtA=function(v){switch(v){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"}};
_.YNI=function(v){var E=_.WG("web_generic_client_event_wait_period ",0);E||(E=3E5);var n=IWA.get(v);!_.Z("enable_web_client_experiment_event_timeout_killswitch")&&n&&(0,_.gd)()-n<E||(IWA.set(v,(0,_.gd)()),_.eQ("genericClientExperimentEvent",{eventType:v}))};
VnF=function(v){var E=v.data;var n=v.children;var f=hhs(E),x=(E==null?0:E.thumbnailSize)?E.thumbnailSize:"medium";v=!(E==null||!E.doubleStack);var y=!(E==null||!E.experimentEnabled),Q={},e=(Q["collections-stack-wiz__collection-stack1"]=!0,Q[ApE(x)]=!0,Q);if(E==null?0:E.customClassName1stStack)e[E.customClassName1stStack]=!0;x={};var F=(x["collections-stack-wiz__collection-stack2"]=v,x["collections-stack-wiz__collection-stack2--responsive-mode"]=E==null?void 0:E.enableResponsiveMode,x);if(E==null?
0:E.customClassName2ndStack)F[E.customClassName2ndStack]=!0;return _.w("yt-collections-stack",{class:"collections-stack-wiz",hidden:!y},A7(E,function(){return _.w("div",null,A7(E.doubleStack,function(){return _.w("div",{class:_.LR(F),style:"background-color:"+f})}),_.w("div",{class:_.LR(e),
style:"background-color:"+f}),n)}))};
ApE=function(v){switch(v){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""}};
hhs=function(v){if(!v)return"";var E,n=(E=_.P().resolve(_.jp(_.aj)))==null?void 0:E(),f;if(!n&&((f=v.vibrantColorPalette)==null?0:f.iconInactiveColor))return XJ(v.vibrantColorPalette.iconInactiveColor,"1");var x;return n&&((x=v.darkColorPalette)==null?0:x.iconInactiveColor)?XJ(v.darkColorPalette.iconInactiveColor,"1"):v.color?XJ(v.color,"1"):v.sampledThumbnailColor?(v=v.sampledThumbnailColor,"rgba("+v.red+","+v.green+","+v.blue+");"):""};
_.Ml=function(v,E){if(!v.includes("DATE_PLACEHOLDER"))return v;var n=new Date(0);n.setUTCSeconds(E);return v.replace("DATE_PLACEHOLDER",Dt$(n))};
_.SS=function(v){v=_.HPs(v);return _.Z("web_watch_enable_single_column_grid_view")?v:!1};
_.HPs=function(v){return v.watch.isWatchNarrowWidth};
gd1=function(v,E,n){return function(f){var x=v.command;x&&(x_(x,{form:{element:n}}),E([x],f))}};
ux$=function(v,E,n,f,x){return function(y){var Q=NfG(v,n);Q&&x_(Q,{form:{element:f},commandController:x});E&&E.stopPropagation&&y.stopPropagation()}};
NfG=function(v,E){if(v.signInEndpoint&&!_.Z("web_subscribe_sign_in_endpoint_killswitch"))return v.signInEndpoint;if(E){if(v.serviceEndpoints)return v.serviceEndpoints[1];if(v.onUnsubscribeEndpoints)return v.onUnsubscribeEndpoints[0]}else{if(v.serviceEndpoints)return v.serviceEndpoints[0];if(v.onSubscribeEndpoints)return v.onSubscribeEndpoints[0]}};
jwE=function(v,E){var n,f,x,y;E=E&&((n=v.unsubscribeAccessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)||((x=v.subscribeAccessibility)==null?void 0:(y=x.accessibilityData)==null?void 0:y.label);return v.longSubscriberCountText?[E,_.JC(v.longSubscriberCountText)].filter(function(Q){return Q}).join(" "):E};
UI=function(v,E){return E||(v==null?0:v.isChannelDelegate)?"disabled":"active"};
OPX=function(v,E){var n;switch((n=v.style)==null?void 0:n.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:UI(v)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:UI(v)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:UI(v,!0)};case "OVERLAY":return E?{style:"overlay",type:"tonal",state:UI(v)}:{style:"overlay",type:"filled",state:UI(v)};default:return E?{style:"mono",type:"tonal",state:UI(v)}:{style:"mono",type:"filled",state:UI(v)}}};
kCE=function(v,E){var n=v.map(function(f){return f.toString()});
return _.ij(function(f){if(n.includes(f.key)){E&&f.preventDefault();var x;(x=f.currentTarget)==null||x.click()}})};
_.ql=function(){return kCE(["Enter"])};
_.WKQ=function(){return kCE(["Enter"," "],!0)};
_.JF=function(v){if(v.composedPath)return v.composedPath();if(!v.__composedPath){for(var E=[],n=v.target;n;)E.push(n),n=n.parentNode;E.push(window);v.__composedPath=E}return v.__composedPath};
_.$ty=function(v,E,n){v=_.p(v);for(var f=v.next();!f.done;f=v.next()){f=f.value;if(f===E)break;for(var x=_.p(n),y=x.next();!y.done;y=x.next())if(y=y.value,f.tagName===y||f.role==="button"&&y==="BUTTON")return!0}return!1};
GCX=function(v,E){var n,f=(n=E.observer)!=null?n:_.P().resolve(HP);if(v){n=LK9(v);var x=[];E.showOption&&x.push(f.observe(v,function(){E.visibilityCallback(!0)},E.showOption));
E.hideOption&&x.push(f.observe(v,function(){E.visibilityCallback(!1)},E.hideOption));
E.prescanOption&&E.prescanCallback&&x.push(f.observe(v,function(){E.prescanCallback()},E.prescanOption));
var y;n.visibilityMonitorKeys=((y=n.visibilityMonitorKeys)!=null?y:[]).concat(x)}};
LK9=function(v){var E;return(E=v.polymerController)!=null?E:v};
_.dQ=function(v){return!!_.K7(v)};
_.Iu=function(v,E){var n=NpE();b5(function(){var f=v.value;if(f)return Tf$(f,E),iPX(f,E,void 0,void 0,void 0,n)},[E])};
_.Ya=function(v,E,n,f,x,y){var Q=NpE();_.Xp(function(){var e=v.value;e&&(Tf$(e,E(),y),e=iPX(e,E(),n,f,x,Q),_.Fp(e))})};
Tf$=function(v,E,n){var f=zhG(E),x=Rhy(E);E=f&&tnL;var y=x&&BfX;(f||x)&&GCX(v,{visibilityCallback:function(Q){var e=_.P().resolve(_.OO);Q&&f?e.resolveCommand(f,{form:{element:n?v:void 0},disableClickTracking:!0}):!Q&&x&&e.resolveCommand(x,{form:{element:n?v:void 0},disableClickTracking:!0})},
showOption:E,hideOption:y})};
iPX=function(v,E,n,f,x,y){var Q=new Map;if(E=_.K7(E)){var e;v=(f==null?void 0:(e=f.onTap)==null?void 0:e.value)||v;n=vjQ(E,v,n==null?void 0:n.onTap,x,y);v.addEventListener("click",n);Q.set("click",n)}return function(){for(var F=_.p(Q),b=F.next();!b.done;b=F.next()){var l=_.p(b.value);b=l.next().value;l=l.next().value;v.removeEventListener(b,l)}}};
_.K7=function(v){var E;return(v=(E=_.C(v,hF))==null?void 0:E.onTap)&&_.F$(v)};
zhG=function(v){var E;return(v=(E=_.C(v,hF))==null?void 0:E.onVisible)&&_.F$(v)};
Rhy=function(v){var E;return(v=(E=_.C(v,hF))==null?void 0:E.onHidden)&&_.F$(v)};
vjQ=function(v,E,n,f,x){var y=function(e){_.P().resolve(_.OO).resolveCommand(v,e)},Q=function(e){f&&_.$ty(_.JF(e),E,f)||y(e.target?{form:{element:e.target,
sourceData:v,mutationContext:x}}:void 0)};
n&&(Q=function(e){n(e,y)});
return Q};
EjI=function(v){var E=v.data;var n=v.className;v=v.alwaysShow;var f=_.Ig();_.Iu(f,E.rendererContext);a:switch(E.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var x="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:x="ytThumbnailHoverOverlayViewModelStyleCover"}x=_.LR("ytThumbnailHoverOverlayViewModelScrim",x);var y,Q=(y=_.C(E==null?void 0:E.rendererContext,_.AF))==null?void 0:y.label,e=_.K7(E.rendererContext)!==void 0;y=e?"button":void 0;e=e?0:void 0;var F=_.WKQ(),b={};return _.w("thumbnail-hover-overlay-view-model",
{el:f,class:_.LR("ytThumbnailHoverOverlayViewModelHost",n,(b.ytThumbnailHoverOverlayViewModelHostForceHover=v,b)),"aria-label":Q,role:y,tabindex:e,"on:keypress":F},_.w("div",{class:x},E.icon?_.w(_.UZ,{data:E.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,E.text?_.w(_.nh,{text:E.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
njA=function(v){switch(v){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}};
ojQ=function(v,E){return function(n){var f=Object.keys(E);_.Xp(function(){if(v()){for(var x=_.p(f),y=x.next();!y.done;y=x.next())y=y.value,n.addEventListener(y,E[y]);_.Fp(function(){for(var Q=_.p(f),e=Q.next();!e.done;e=Q.next())e=e.value,n.removeEventListener(e,E[e])})}})}};
fCQ=function(v){switch(v){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""}};
xWF=function(v){switch(v){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""}};
ca1=function(v){switch(v){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}};
yaE=function(v){return v==="medium"||v==="48"||v==="large"||v==="extra-large"||v==="extra-extra-large"||v==="giant"};
pe9=function(v){return!!((v==null?0:v.includes(3))||(v==null?0:v.includes(5)))};
XeE=function(v){return{size:Qxy(v.data.avatarImageSize),onTap:v.onTap,decorations:v.decorations||[],badgeText:v.badgeText,accessibilityText:v.accessibilityText,avatarButtonCustomClassName:v.avatarButtonCustomClassName}};
Qxy=function(v){switch(v){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
eB1=function(v){function E(){n.endpoint&&_.lj(n.endpoint)}
var n=v.data;var f=v.decorations;var x=v.avatarButtonCustomClassName;v=v.isOverlay;return _.w("avatar-view-model",null,n.image?_.w(VX,{data:XeE({data:n,onTap:n.endpoint?E:void 0,decorations:f,badgeText:void 0,accessibilityText:n.accessibilityText,avatarButtonCustomClassName:x}),image:n.image,iconType:"RADAR_LIVE",overlays:function(){return _.w(Dk,{data:n})},
isOverlay:v}):null)};
mWE=function(v){var E=v.data;var n=v.avatar;var f=v.onTap;var x=v.element;v=v.commandController;f=f?FO1(f,x,v):void 0;x=[];E.liveData&&x.push(0);var y;v=(y=E.liveData)==null?void 0:y.liveBadgeText;var Q;y=(Q=_.C(E.rendererContext,_.AF))==null?void 0:Q.label;return XeE({data:n,onTap:f,decorations:x,badgeText:v,accessibilityText:y?y:E.a11yLabel})};
FO1=function(v,E,n){return function(){x_(v,{form:{element:E},commandController:n})}};
we9=function(v,E,n,f){return E?mWE({data:v,avatar:E,onTap:n,element:f}):{size:"medium"}};
b8s=function(v){var E=v.data;v=v.className;var n=_.Y$(),f=_.C(E.avatar,_.HT),x=_.K7(E.rendererContext),y,Q=we9(E,f,x,(y=n.value)!=null?y:void 0);return _.w("yt-decorated-avatar-view-model",{class:_.LR("yt-decorated-avatar-view-model-wiz",v),el:n},A7(f==null?void 0:f.image,function(){var e,F,b;return _.w(VX,{data:Q,image:f.image,iconType:"RADAR_LIVE",overlays:function(){return _.w(Dk,{data:f})},
idomKey:f==null?void 0:(e=f.image)==null?void 0:(F=e.sources)==null?void 0:(b=F.at(0))==null?void 0:b.url})}))};
lC9=function(v){switch(v){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
sxL=function(v){switch(v){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""}};
ra9=function(v){var E=0;v.avatars&&(E+=v.avatars.length);v.decoratedText&&(E+=1);return E};
aCE=function(v){var E=v.data,n=E.avatars,f=E.text,x=E.rendererContext,y=E.decoratedText,Q=(E=_.Ig())&&_.dQ(x);_.Iu(E,x);var e=ra9(v.data)>1,F,b=n&&n.length>0?lC9((F=_.C(n[0],_.HT))==null?void 0:F.avatarImageSize):0,l,r=n&&n.length>0?(l=_.C(n[0],_.HT))==null?void 0:l.avatarImageSize:"AVATAR_SIZE_UNKNOWN",a,M;F={};return _.w("yt-avatar-stack-view-model",{el:E,class:_.LR("yt-avatar-stack-view-model-wiz",v.className,(F["yt-avatar-stack-view-model-wiz--tappable"]=Q,F["yt-avatar-stack-view-model-wiz--is-overlay"]=
v.isOverlay,F["yt-avatar-stack-view-model-wiz--medium-text"]=v.useMediumText,F)),tabindex:Q?0:void 0,role:Q?"link":void 0,"aria-label":(M=(a=_.C(x,_.AF))==null?void 0:a.label)!=null?M:""},A7(n&&!v.hideAvatar,function(){return _.w("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},A7(y,function(){var U={};return _.w("div",{class:_.LR("yt-avatar-stack-view-model-wiz__text-container",(U["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=r==="AVATAR_SIZE_XXS"||r==="AVATAR_SIZE_XS",U["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=
v.isOverlay&&(r==="AVATAR_SIZE_XXS"||r==="AVATAR_SIZE_XS"),U)),style:"width: "+b+"px; height: "+b+"px"},_.w(_.nh,{text:y,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),n.slice().reverse().map(function(U){return _.w("div",{class:sxL(r)},Psy(U,{avatarViewModel:{decorations:v.decorations?v.decorations:e?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:v.isOverlay}}))}))}),A7(f,function(){return _.w(_.nh,{text:f,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
Z8A=function(v){switch(v){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Cs$=function(v){switch(v){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""}};
MJF=function(v){switch(v){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
SXQ=function(v){var E=v.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:v.hidden===void 0?!1:v.hidden},_.w(_.nh,{text:E.title,className:"yt-thumbnail-overlay-title-view-model__title"}),E.subtitle?_.w(_.nh,{text:E.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
UWN=function(v){switch(v){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"}};
qXX=function(v){var E=v.data;v=v.hidden===void 0?!1:v.hidden;var n={};v={class:_.LR("yt-page-indicator-view-model",(n["yt-page-indicator-view-model__indicator--hidden"]=!E.indicatorCount,n)),hidden:v};if(E.indicatorCount){n=[];for(var f=0;f<E.indicatorCount;f++){var x={};x=_.LR("yt-page-indicator-view-model__indicator",(x["yt-page-indicator-view-model__indicator--selected"]=E.selectedIndex===f,x));n.push(_.w("div",{class:x}))}E=_.w(_.gF,null,n)}else E=_.w(_.gF,null);return _.w("yt-page-indicator-view-model",
v,E)};
KOI=function(v){v&&(JaG(v)?delete v.inlinePlayerData:"inlinePlaybackEndpoint"in v&&delete v.inlinePlaybackEndpoint)};
dWy=function(v){if("accessibilityText"in v)return v.accessibilityText||"";if("title"in v){var E,n,f;return((E=v.title)==null?void 0:(n=E.accessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)||""}if("accessibility"in v){var x,y;return((x=v.accessibility)==null?void 0:(y=x.accessibilityData)==null?void 0:y.label)||""}return""};
JaG=function(v){return"inlinePlayerData"in v};
gQ=function(v){return new ICN(v)};
_.YXy=function(v,E,n,f,x,y){var Q=function(b){b.preventDefault()},e=function(){var b=v.value;
if(b)return(b._data=E)?(b.addEventListener("touchstart",ij$,{passive:!0}),b.addEventListener("click",RwF),E.clickTrackingParams&&(b.params={itct:E.clickTrackingParams}),tq1(b,E),Cc(b,ByG(E)||"")):b.addEventListener("click",Q),function(){E?(b.removeEventListener("touchstart",ij$,{passive:!0}),b.removeEventListener("click",RwF)):b.removeEventListener("click",Q)}},F=function(){var b=v.value;
if(b){var l=_.wJ({innertubeCommand:E,elementsCommand:n,forceNewState:f,stopPropagation:y});if(l)return b._data=l._data,l["aria-haspopup$"]&&b.setAttribute("aria-haspopup",l["aria-haspopup$"].toString()),l["force-new-state$"]&&b.setAttribute("force-new-state",l["force-new-state$"].toString()),l.href$&&Cc(b,l.href$),l.rel$&&(b.rel=l.rel$),l.role$&&b.setAttribute("role",l.role$),l.target$&&(b.target=l.target$),b.params=l.params,l.onclick&&b.addEventListener("click",l.onclick),l.onpointerdown&&b.addEventListener("onpointerdown",
l.onpointerdown),function(){l.onclick&&b.removeEventListener("click",l.onclick);l.onpointerdown&&b.removeEventListener("onpointerdown",l.onpointerdown)}}};
b5(x?F:e,[E,n])};
hBX=function(v){var E=v.children;var n=v.className;var f=v.dir;var x=v.style;var y=v.role;var Q=v.ariaSelected;var e=v.ariaLabel;var F=v.ariaHidden;var b=v.ariaLabelledby;var l=v.ariaDescribedby;var r=v.command;var a=v.elementsCommand;var M=v.forceNewState;var U=v.isPlaceholder;var d=v.tabIdentifier;var Y=v.target;var V=v.tabIndex;var O=v.useATagConfig;var T=v.stopPropagation;v=_.Ig();_.YXy(v,r,a,M,O,T);a=_.ij(function(){return T===!1});
return _.w("a",{el:v,"on:click":a,class:n,style:x,dir:f,role:y?y:r?void 0:"group","aria-hidden":F?!0:void 0,"aria-label":e,"aria-labelledby":b,"aria-describedby":l,"aria-selected":Q,tabindex:V!==void 0?V:void 0,target:Y,"tab-identifier":d,"force-new-state":M?!0:void 0,"is-placeholder":U?!0:void 0},E)};
VJF=function(v){var E=v.data;v=_.ij(function(){var x=_.C(E.onTap,_.eg);x&&_.P().resolve(_.OO).resolveCommand(x);return!1});
var n={sources:[{url:E.thumbnailUrl,width:120,height:90}]},f=E.rating&&E.ratingA11yLabel&&E.reviewsCount&&E.reviewsCountA11yLabel;return _.w("place-data-view-model",null,E.placeName&&E.placeCategory?_.w("div",{class:"yt-spec-place-data-view-model-shape","on:click":v},_.w(_.UZ,{data:n,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+AaX}),_.w(hBX,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.C(E.onTap,_.eg),forceNewState:!0,
useATagConfig:!0},_.w("h3",{class:"yt-spec-place-data-view-model-shape__name",title:E.placeName},E.placeName)),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata"},f?_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.w("span",{class:"score",title:E.ratingA11yLabel},E.rating),_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.w(_.B8,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:E.reviewsCountA11yLabel},E.reviewsCount)):_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.w("span",{class:"category",title:E.placeCategory},E.placeCategory)))):null)};
DWs=function(v){return function(E){v&&(v.thumbnailElRef=E.thumbnailElRef,v.thumbnail=E.thumbnail,v.thumbnailOverlays=E.thumbnailOverlays,v.thumbnailSize=E.thumbnailSize)}};
H8L=function(v){var E;return(E=v.sharedUi)==null?void 0:E.animatedThumbnailEnabled};
gjA=function(v){var E;return(E=v.sharedUi)==null?void 0:E.inlinePreviewEnabled};
_.NKE=function(v){var E;return(E=v.sharedUi)==null?void 0:E.currentPageSubType};
uvy=function(){return _.w("div",{class:"yt-pinking"},_.w("svg",{class:"yt-pinking__pinking-left"},_.w("defs",null,_.w("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.w("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.w("svg",{class:"yt-pinking__pinking-right"},_.w("defs",null,_.w("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.w("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
jxX=function(v){switch(v){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"}};
GJF=function(v){var E=[],n=v.data,f=IX(v.width,v.height),x=_.P().resolve(_.jp(O8y)),y=_.Ig(function(){E.push("elRef.value set")});
_.l5(function(){E.push("onInit");return function(){E.push("onCleanup")}});
_.l5(function(){var Y;(Y=v.playbackRef)==null||Y.call(v,{thumbnailElRef:y,thumbnail:n.image,thumbnailOverlays:n.overlays,thumbnailSize:f})});
var Q=hEX(H8L),e,F=(e=v.aspectRatio)!=null?e:0,b=(e=(n.image?_.V3E(n.image):F)<=1&&F===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",l=function(){y.value||_.li(new _.yc("Thumbnail elRef.value is null",E.join("\n")));x&&y.value&&x(y.value)},r={};
a:{if(!v.disableRounding&&!v.isClip)switch(f){case "large":var a="yt-thumbnail-view-model--large";break a;case "small":a="yt-thumbnail-view-model--small";break a;default:a="yt-thumbnail-view-model--medium";break a}a=void 0}F=_.LR("yt-thumbnail-view-model",v.className,jxX(F),a,(r["yt-thumbnail-view-model--cinematic"]=e,r));r=void 0;var M,U;(a=e?(M=v.data)==null?void 0:(U=M.backgroundColor)==null?void 0:U.lightTheme:void 0)&&(r="background-color:"+XJ(a,"1")+";");var d;M=v.hovered&&f!=="large"&&((d=
n.overlays)==null?void 0:d.some(function(Y){return _.C(Y,kJF)}));
return _.w("yt-thumbnail-view-model",{class:F,style:r,el:y},A7(e,function(){return _.w("div",{class:"yt-thumbnail-view-model__blurred-image"},_.w(_.UZ,{data:n.image,alt:"",contentMode:b,targetWidth:v.width,onload:l}))}),_.w("div",{class:"yt-thumbnail-view-model__image"},_.w(_.UZ,{data:n.image,
alt:"",contentMode:b,targetWidth:v.width,onload:l}),null),A7(!M,function(){return WOy(n.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:f,isClip:v.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:v.lockupExperiments}})}),A7(v.hovered,function(){return $WA(n.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),A7(v.hovered&&Q,function(){return LO9(n.overlays)}),A7(v.isClip,function(){return uvy()}))};
TKQ=function(v){switch(v){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"}};
BK$=function(v){var E=_.p(iG(-1)),n=E.next().value,f=E.next().value,x=rB(function(){return new i89(f)});
_.l5(function(){zB1(x,v.data.thumbnails.length);return function(){RBs(x)}});
var y;return _.w("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(y=v.data.thumbnails)==null?void 0:y.map(function(Q,e){var F=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!v.data.primaryThumbnail&&e===0&&F.push("yt-collection-thumbnail-slideshow--first-slide");e<=n&&F.push("yt-collection-thumbnail-slideshow--show-slide");e=F.join(" ");return _.w("div",{class:e},tJX(Q,{thumbnailViewModel:{disableRounding:v.disableRounding}}))}))};
EP$=function(v){var E=_.p(iG(!1)),n=E.next().value,f=E.next().value;_.l5(function(){if(v){var x=_.P().resolve(_.jp(vPE));if(x){var y={triggeringElement:v,onDwellTriggeredFn:function(){f(!0)},
onDwellEndFn:function(){f(!1)}};
x.registerElement(y);return function(){x.unregisterElement(y)}}}});
return n};
nP9=function(v){var E=_.p(_.t7(!1,void 0,"RIOonf")),n=E.next().value,f=E.next().value;_.l5(function(){var x=v==null?void 0:v();if(x){var y=_.P().resolve(_.jp(vPE));if(y){var Q={triggeringElement:x,onDwellTriggeredFn:function(){f(!0)},
onDwellEndFn:function(){f(!1)}};
y.registerElement(Q);_.Fp(function(){y.unregisterElement(Q)})}}});
return n};
xL1=function(v){var E,n=(E=_.P().resolve(_.jp(_.aj)))==null?void 0:E(),f=EP$(v.triggeringElement),x=!!v.data.primaryThumbnail,y=function(){var e;return _.w("div",null,oPE(v.data.primaryThumbnail,{thumbnailViewModel:{width:v.width,height:v.height,aspectRatio:v.aspectRatio,disableRounding:v.disableRounding,className:x?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:v.hovered,playbackRef:v.playbackRef}}),A7(f&&((e=v.data.thumbnails)==null?void 0:e.length),function(){return _.w("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.w(fnE,{data:v.data,disableRounding:!x}))}))};
E=v.data.stackColor;var Q={experimentEnabled:x,thumbnailSize:IX(v.width,v.height),doubleStack:v.doubleStack,color:n?E==null?void 0:E.darkTheme:E==null?void 0:E.lightTheme,enableResponsiveMode:!1};return _.w("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},A7(x,function(){return _.w(VnF,{data:Q},y())}),A7(!x,y))};
cBF=function(v,E,n){n?n(E):_.lj(E,v.target?{form:{element:v.target}}:void 0)};
_.Nl=function(v,E,n,f){_.Xp(function(){var x=v.value;if(x){var y=new Map,Q,e=(Q=E())==null?void 0:Q.onTap;e&&(Q=function(F){a:{var b=F.composedPath();b=_.p(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;if(l===x)break;if(l.className.indexOf("HostIsClickableAdComponent")>=0||l.tagName==="A".toString()||l.tagName==="BUTTON".toString()){b=!0;break a}}b=!1}b||(_.Z("enable_square_image_components_ui_web_with_float_button")?_.jK(v.value,"yt-navigate",{endpoint:_.F$(e)}):cBF(F,e,n))},(f==null?0:f())||
_.Z("enable_web_home_top_landscape_image_layout_level_click")?(x.addEventListener("tap",Q),y.set("tap",Q)):(x.addEventListener("click",Q),y.set("click",Q)));
_.Fp(function(){for(var F=_.p(y),b=F.next();!b.done;b=F.next()){var l=_.p(b.value);b=l.next().value;l=l.next().value;x.removeEventListener(b,l)}})}})};
yBE=function(v,E){var n,f=(n=v.interaction)==null?void 0:n.onTap;if(v=_.wJ({elementsCommand:f,forceNewState:!0,skipOnClick:!0}))return v.onclick=function(x){$S$(x)&&(x.preventDefault(),f&&cBF(x,f,E))},bj(v)?v:void 0};
pQE=function(v){switch(v){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Q8E=function(v){switch(v){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"}};
XQE=function(v){switch(v){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"}};
_.ev1=function(v){return _.Z("rich_grid_enable_dynamic_offset")&&v?Math.max(Math.round((v-_.WG("rich_grid_dynamic_offset_anchor_width",1300))/100*_.WG("rich_grid_dynamic_offset_offset_per_100",10)),_.WG("rich_grid_dynamic_offset_lower_bound",-60)):0};
FyN=function(v,E){switch(E){case 4:return 16;case 1:return v<528?16:v<1024?32:48;case 2:return(v>=528?16:8)/2;case 3:return(v<528?16:v<1024?32:48)+(v>=528?16:8)/2;default:return 0}};
mLX=function(v){var E=v.originalContainerWidth;var n=v.sizing;var f=v.standardUnit;if(v.isCompactList&&E<528)return 1;switch(n){case "STANDARD":return f;case "COMPACT":return f+1;case "EXTRA_COMPACT":return _.Z("web_responsive_extra_compact_2x")?f*2:_.Z("web_responsive_current")?f===1?2:f%2===0?f/2*3:f+2:f<4?f*2:Math.ceil(f*3/2);case "MINI":return f>1?f*2:3;default:return f}};
bbI=function(v){var E=v.containerWidth;var n=v.peek;var f=v.gutter;var x=v.numItems;v=v.ignoreMaxWidthLimit;E=n?Math.max((E-n-f*x)/x,0):Math.max((E-f*(x-1))/x,0);return v?E:Math.min(E,wQL)};
_.uS=function(v){var E=v.containerWidth;var n=v.hasPeek;var f=v.sizing;var x=v.marginSettings;var y=v.isCompactList;var Q=v.enableFullBleedForSingleCol;var e=v.standardUnitMinWidth;f=f||"STANDARD";n=!!n;v=E>=528?16:8;var F=n?E>=528?48:24:0;x=FyN(E,x);var b=Math.max(E-x*2,0);e=_.Z("kevlar_disable_min_width_override")?void 0:e;e=Math.min(Math.max(Math.floor((b-F+v)/((e!=null?e:ln1)+_.ev1(E)+v)),1),6);var l=(Q=!!Q&&e===1)||e===1&&f!=="STANDARD";n=n||l?b:Math.min(b,(wQL+v)*e-v);f=mLX({originalContainerWidth:E,
sizing:f,standardUnit:e,isCompactList:y});return{itemWidth:bbI({containerWidth:n,peek:F,gutter:v,numItems:f,ignoreMaxWidthLimit:l}),gutter:v,maxContainerWidth:n,numItems:f,margin:Q?0:x,contentMargin:FyN(E,1),typographyBump:bbI({containerWidth:n,peek:F,gutter:v,numItems:e,ignoreMaxWidthLimit:l})>400&&!(y&&E<528),standardUnit:e}};
s8L=function(v){switch(v){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.rBL=function(v){if(v){var E;if((E=v.responsiveContainerConfiguration)==null?0:E.responsiveSize)return s8L(v.responsiveContainerConfiguration.responsiveSize);if(v.layoutSizing)switch(v.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"}}};
P4y=function(v){if(v.fullbleed)return 1;switch(v.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
MFE=function(v,E,n,f,x,y,Q,e){a:switch(v){case 4:y=!!(y&&y<100);break a;default:y=!1}a:switch(v){case 3:case 4:var F=f==="LOCKUP_CONTENT_TYPE_CHANNEL"||f==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:F=!1}a:switch(v){case 5:var b=!0;break a;case 4:b=!1;break a;default:b=!1}a:if(v===4&&f==="LOCKUP_CONTENT_TYPE_SOURCE")var l=1;else switch(v){case 3:l=1;break a;default:l=0}return{isOverlay:b,isCard:anF(f,Q),sizing:E!=null?E:"STANDARD",typographyBump:n!=null?n:!1,isTiny:y,isCentered:F,isCollection:ZbN(f),
arrangement:l,addMarginForFullbleed:v===1&&f!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:v===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:C4Q(f,x,e),disableRounding:v===5||anF(f,Q)||v===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:ZbN(f)?2:0,useLegacyTypography:!(e==null||!e.useLegacyTypography),useRichGridLegacyTypography:!(e==null||!e.useRichGridLegacyTypography)&&!_.Z("web_enable_typography_bump")}};
ZbN=function(v){switch(v){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}};
anF=function(v,E){if(E&&v==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(v){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
C4Q=function(v,E,n){if(E&&(n==null||!n.alwaysRespectPodcastShowAspectRatio||v!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(v){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}};
S3A=function(v){switch(v){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"}};
JB1=function(v,E,n){a:switch(v.badgeStyle){case "BADGE_OVERLAY":var f=!0;break a;default:f=!1}return{type:E?16:ULX(v.badgeStyle),brNzRatingBadgeType:q3I(v.badgeStyle),text:v.badgeText,icon:v.iconName,isOverlay:f,modern:n||_.Z("web_modern_badge_view_model")}};
ULX=function(v){switch(v){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
q3I=function(v){switch(v){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}};
dLG=function(v){var E=v.data?JB1(v.data,!!v.workaroundShortsIsThumbnailBadge,v.modern):void 0;return _.w("yt-badge-view-model",{class:_.LR("yt-badge-view-model-wiz",v.class)},A7(E==null?void 0:E.brNzRatingBadgeType,function(){return _.w(KyL,{data:E})}),A7(E&&!E.brNzRatingBadgeType,function(){return _.w(_.jS,{data:E})}))};
_.OI=function(v){if(v){var E;return((E=_.P().resolve(_.jp(_.aj)))==null?0:E())?v.darkThemeImage:v.image}};
hvL=function(v,E,n,f,x,y){if(!n)return x&&y&&E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+x+"px; height: "+y+"px;":"";x=n.size;n=n.allowFullWidth;if(E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&n)return"width: 100%;";if(x===void 0)return"";switch(v){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+x+"px; height: "+x+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+x+"px; height: "+1/In$*
x+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+x*Y3$+"px; height: "+x+"px;";default:return(f==null?0:f.height)&&(f==null?0:f.width)?f.width/f.height>1?"max-width: "+x*Y3$+"px;":"max-width: "+x+"px;":"max-width: "+x+"px;"}};
ABs=function(v){var E;return v&&((E=_.OI(v.themedImage))!=null?E:v.image)};
VFX=function(v){var E;return v==null?void 0:(E=v.sources)==null?void 0:E[0]};
HbX=function(v,E){var n,f;return!!((v==null?0:(n=v.byline)==null?0:n.hideAvatar)&&((f=_.C(E,DLs))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
gPE=function(v,E){var n,f;return!!((v==null?0:(n=v.byline)==null?0:n.addPadding)&&((f=_.C(E,DLs))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
N3$=function(v,E,n,f){var x={},y=(x["yt-content-metadata-view-model-wiz__delimiter"]=!0,x["yt-content-metadata-view-model-wiz__delimiter--standalone"]=f,x);return A7(E-1>n,function(){return _.w("span",{class:_.LR(y),"aria-hidden":!0},v)})};
j8X=function(v,E){return _.w(_.nh,{text:v.text,linkInheritColor:!0,className:uWL(E),userInput:!0})};
k_G=function(v){var E=v.metadataPart;var n=v.isOverlay;var f=v.useMediumText;var x=v.hideAvatar;var y=1;E.maxLines!==void 0&&(y=E.maxLines);return _.w(_.gF,null,A7(E.avatarStack,function(){return ObA(E.avatarStack,{avatarStackViewModel:{isOverlay:n,useMediumText:f,hideAvatar:x}})}),A7(E.text,function(){var Q=y;
return _.w(_.gF,null,E.tooltip?_.w("span",{title:E.tooltip,role:"tooltip"},j8X(E,Q)):j8X(E,Q))}))};
uWL=function(v){switch(v){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"}};
WyE=function(v){var E=v.metadataRow;var n=v.isInline;var f=v.delimiter;var x=v.isOverlay;var y=v.useMediumText;var Q=v.extensions;var e=HbX(Q==null?void 0:Q.lockupMetadata,E);v=gPE(Q==null?void 0:Q.lockupMetadata,E);Q=!!((Q==null?0:Q.lockupMetadata)&&E.badges);var F={};v=(F["yt-content-metadata-view-model-wiz__metadata-row"]=!0,F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=n,F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=v,F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
Q,F);var b,l;return _.w("div",{class:_.LR(v)},(b=E.badges)==null?void 0:b.map(function(r){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},ObA(r))}),(l=E.metadataParts)==null?void 0:l.map(function(r,a){return _.w(_.gF,null,k_G({metadataPart:r,
isOverlay:x,useMediumText:y,hideAvatar:e}),N3$(f,E.metadataParts.length,a,!1))}),A7(E.isSpacerRow&&!n,function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
$L$=function(v){var E=v.className;var n=v.data;var f=v.layout===void 0?0:v.layout;var x=v.isOverlay===void 0?!1:v.isOverlay;var y=v.useMediumText;var Q=v.extensions;v=_.Ig();var e=f===0;f={};f=(f["yt-content-metadata-view-model-wiz"]=!0,f["yt-content-metadata-view-model-wiz--inline"]=e,f["yt-content-metadata-view-model-wiz--tappable"]=_.dQ(n.rendererContext),f["yt-content-metadata-view-model-wiz--medium-text"]=y,f);_.Iu(v,n.rendererContext);return _.w("yt-content-metadata-view-model",{class:_.LR(E,
f),el:v},A7(n.metadataRows,function(){return n.metadataRows.map(function(F,b){return _.w(_.gF,null,WyE({metadataRow:F,isInline:e,delimiter:n.delimiter,isOverlay:x,useMediumText:y,extensions:Q}),A7(e&&!F.isSpacerRow,function(){return N3$(n.delimiter,n.metadataRows.length,b,!0)}))})}))};
LyG=function(v){switch(v){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"}};
G_L=function(v){if(v==null?0:v.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(v==null?void 0:v.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
T3N=function(v){if(v==null?0:v.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(v==null?void 0:v.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
zvX=function(v){var E,n,f,x,y,Q,e={},F=_.LR(G_L(v.lockupStyle),T3N(v.lockupStyle),(e["yt-lockup-metadata-view-model-wiz"]=!0,e["yt-lockup-metadata-view-model-wiz--overlay"]=(E=v.lockupStyle)==null?void 0:E.isOverlay,e["yt-lockup-metadata-view-model-wiz--card"]=(n=v.lockupStyle)==null?void 0:n.isCard,e["yt-lockup-metadata-view-model-wiz--centered"]=(f=v.lockupStyle)==null?void 0:f.isCentered,e["yt-lockup-metadata-view-model-wiz--typography-bump"]=(x=v.lockupStyle)==null?void 0:x.typographyBump,e["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(y=v.lockupStyle)==null?void 0:y.useLegacyTypography,e["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(Q=v.lockupStyle)==null?void 0:Q.useRichGridLegacyTypography,e)),b,l,r,a,M,U;return _.w("yt-lockup-metadata-view-model",{class:F},A7(v.data.image,function(){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},ib9(v.data.image))}),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(b=v.data.title)==null?void 0:b.content},A7(v.data.title,function(){return _.w(_.Ed,{command:v.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:v.lockupAccessibilityLabel},_.w(_.nh,{text:v.data.title}))})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},ib9(v.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((l=v.lockupStyle)==null?void 0:l.typographyBump)||((r=v.lockupStyle)==null?void 0:r.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((a=v.lockupStyle)==null?void 0:a.arrangement)===0,addPadding:((M=v.lockupStyle)==null?void 0:M.arrangement)===1}}}}})),A7(v.data.attribution,function(){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},ib9(v.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
ib9(v.data.menuButton,((U=v.lockupStyle)==null?0:U.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
RvI=function(v){switch(v.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"}}};
tFE=function(v){var E=_.NKE(_.Zj().getState())||"";return v?v+E:""};
B3E=function(v){switch(v){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
EWI=function(v){var E=_.p(_.t7(void 0,void 0,"BIquNb")),n=E.next().value,f=E.next().value,x=_.p(_.t7(void 0,void 0,"eR0GH"));E=x.next().value;var y=x.next().value,Q=_.p(_.t7(void 0,void 0,"UmkP0"));x=Q.next().value;var e=Q.next().value;Q=_.ij(function(l){if(vWA(_.JF(l)))return!1;f(l);y(void 0);e(void 0);return!0});
var F=_.ij(function(l){v==null||v(l);if(vWA(_.JF(l)))return!1;y(l);f(void 0);e(void 0);return!0}),b=_.ij(function(l){vWA(_.JF(l))||(e(l),y(void 0),f(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:n,pointerDownEvent:E,pointerLeaveEvent:x},touchFeedbackOnPointerUp:Q,touchFeedbackOnPointerDown:F,touchFeedbackOnPointerLeave:b}};
vWA=function(v){var E=["BUTTON".toString()];v=_.p(v);for(var n=v.next();!n.done;n=v.next()){n=n.value;for(var f=_.p(E),x=f.next();!x.done;x=f.next())if(n.tagName===x.value)return!0}return!1};
nWX=function(v){switch(v){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"}};
oWX=function(v){var E;return eTN(v,((E=v.content)==null?void 0:E.length)||0,!0)};
f0y=function(v){var E=oWX(v),n,f;return(((n=v.content)==null?void 0:n.length)||0)>(((f=E.content)==null?void 0:f.length)||0)};
xZE=function(v){var E=v.isTruncated;var n=v.isAbsoluteButton;var f=v.lineHeight;var x=v.contentRef.value,y=v.placeholderTruncationTextRef.value,Q=v.truncationTextRef.value;v=v.appDirection==="rtl";if(x&&y){var e=y.offsetLeft;v&&(e=x.offsetWidth-y.offsetWidth-y.offsetLeft);if(E){E=y.offsetWidth;y=x.offsetWidth;var F=n?y-E-70:e-70;f="linear-gradient(\n      to top, transparent 0%,\n      transparent "+f+"px,\n      #000 "+f+"px,\n      #000 100%), linear-gradient(\n      to "+((v?"left":"right")+",\n      #000 0px,\n      #000 "+
F+"px,\n      transparent "+(n?y-E:F+70)+"px)");x.style.setProperty("-webkit-mask-image",f);x.style.setProperty("mask-image",f)}else x.style.setProperty("-webkit-mask-image",""),x.style.setProperty("mask-image","");n?v?(Q.style.setProperty("left","0"),Q.style.setProperty("right","unset")):(Q.style.setProperty("left",""),Q.style.setProperty("right","0")):v?(Q.style.setProperty("left","unset"),Q.style.setProperty("right",e+"px")):(Q.style.setProperty("left",e+"px"),Q.style.setProperty("right","unset"))}};
cYF=function(v,E,n,f,x){var y=_.Ig(),Q=_.Ig(),e=_.Ig(),F=oWX(v),b=_.P().resolve(_.CR),l=_.p(iG(f0y(v))),r=l.next().value,a=l.next().value,M=PG(null);b5(function(){function U(){if(y.value&&Q.value&&e.value){var V=y.value;V.scrollHeight-V.offsetHeight>1?(a(!0),f||xZE({isTruncated:!0,isAbsoluteButton:!0,lineHeight:n,contentRef:y,placeholderTruncationTextRef:Q,truncationTextRef:e,appDirection:b})):(V=f0y(v),a(V),f||xZE({isTruncated:V,isAbsoluteButton:!1,lineHeight:n,contentRef:y,placeholderTruncationTextRef:Q,
truncationTextRef:e,appDirection:b}))}}
var d,Y;(d=M.value)==null||(Y=d.stop)==null||Y.call(d);d=new _.ka(U,17);U();M.value=d},[v.content,
E,n,b,f,x]);_.l5(function(){var U=function(){var Y,V;(Y=M.value)==null||(V=Y.fire)==null||V.call(Y)};
if(window.ResizeObserver){var d=new ResizeObserver(U);d.observe(y.value);return function(){var Y,V;(Y=M.value)==null||(V=Y.stop)==null||V.call(Y);d.disconnect()}}window.addEventListener("resize",U);
return function(){var Y,V;(Y=M.value)==null||(V=Y.stop)==null||V.call(Y);window.removeEventListener("resize",U)}});
return{isTruncated:r,displayText:F,contentRef:y,placeholderTruncationTextRef:Q,truncationTextRef:e}};
yYA=function(v){return _.w("button",{"aria-disabled":!0,disabled:!0,class:v.className,el:v.elRef,style:"line-height: "+v.lineHeight+"px;"},_.w(_.nh,{text:v.text}))};
puE=function(v){var E=v.text;var n=v.alwaysShowTruncationText;var f=v.truncationText;var x=v.onExpandClick;var y=v.lineHeight===void 0?16:v.lineHeight;var Q=v.maxLines===void 0?2:v.maxLines;var e=v.disableTextMask===void 0?!1:v.disableTextMask;var F=v.isOverlay===void 0?!1:v.isOverlay;var b=v.accessibilityLabel===void 0?"":v.accessibilityLabel;var l=v.useMediumText===void 0?!1:v.useMediumText;v=_.ij(function(){return void(x==null?void 0:x())});
var r=cYF(E,Q,y,e,l),a=r.isTruncated;E=r.displayText;var M=r.contentRef,U=r.placeholderTruncationTextRef;r=r.truncationTextRef;var d={};n=_.LR((d["truncated-text-wiz__absolute-button"]=!e,d["truncated-text-wiz__bottom-button"]=e,d["truncated-text-wiz--hidden"]=!(n||a),d));e={};F=_.LR((e["truncated-text-wiz"]=!0,e["truncated-text-wiz--overlay"]=F,e["truncated-text-wiz--medium-text"]=l,e));return _.w("truncated-text",{class:F,"on:click":v,style:"line-height: "+y+"px;"},_.w("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:M,style:"max-height: "+Q*y+"px;"},_.w(_.nh,{text:E}),_.w(yYA,{text:f,lineHeight:y,elRef:U,className:"truncated-text-wiz__inline-button"})),_.w("button",{"aria-label":b,class:n,el:r,style:"line-height: "+y+"px;"},_.w(_.nh,{text:f})))};
QzA=function(v){return{content:v!=null?v:""}};
FB9=function(v){var E=v.data;var n;v={class:v.className};a:switch(E.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var f="yt-video-attribute-view-model--vertical";break a;default:f="yt-video-attribute-view-model--horizontal"}a:switch(E.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var x="yt-video-attribute-view-model--image-small";break a;default:x="yt-video-attribute-view-model--image-large"}a:switch(E.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(E.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Q="yt-video-attribute-view-model--metadata-header";break a;default:Q=""}a:switch(E.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var e="yt-video-attribute-view-model--container-card";break a;default:e=""}var F=_.F$(E.onTap)||_.K7(E.rendererContext)?"yt-video-attribute-view-model--clickable":"";
f=["yt-video-attribute-view-model",f,x,y,Q,e,F].join(" ");if(E.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var b="";else x=E.lightColorPalette,y=E.darkColorPalette,Q=((b=_.P().resolve(_.jp(_.aj)))==null?0:b())&&y?y:x,b=(b=Q==null?void 0:Q.section2Color)?_.Qt(b):"";return _.w("yt-video-attribute-view-model",v,_.w("div",{class:f,style:_.tZ({"background-color":b})},_.w(hBX,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(n=_.F$(E.onTap))!=
null?n:_.K7(E.rendererContext),role:"group",ariaLabel:E.title,forceNewState:!0},E.heroText||E.image?_.w(XuE,{data:E}):null,_.w(eXI,{data:E,sizeSmall:E.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
mZs=function(v){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:v.overflowMenuA11yLabel,onTap:function(E){E.preventDefault();E.stopPropagation();if(v.overflowMenuOnTap){var n=_.wJ({elementsCommand:v.overflowMenuOnTap,forceNewState:!0});if(n==null?0:n.onclick)n.onclick(E)}}}};
XuE=function(v){v=v.data;var E,n=((E=_.P().resolve(_.jp(_.aj)))==null?0:E())&&v.darkThemeImage?v.darkThemeImage:v.image;E=mZs(v);return _.w("div",{class:"yt-video-attribute-view-model__hero-section"},n?_.w(_.UZ,{data:n,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):v.heroText?_.w("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.w("span",{class:"yt-video-attribute-view-model__hero-text"},v.heroText)):null,v.overflowMenuOnTap?
_.w("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.w(WT,{data:E,iconName:"MORE_VERT"})):null)};
eXI=function(v){var E=v.data;v=v.sizeSmall;var n=E.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",f=_.F$(E.onTap)||_.K7(E.rendererContext);f=_.wJ({innertubeCommand:f});f=bj(f);var x={};v={class:_.LR("yt-video-attribute-view-model__metadata",(x["yt-video-attribute-view-model--small-font"]=v,x)),role:f?"link":"group"};f=_.w("h1",{class:"yt-video-attribute-view-model__title"},E.title);n=E.subtitle?_.w("h4",{class:"yt-video-attribute-view-model__subtitle"},n?_.w(puE,{text:QzA(E.subtitle),truncationText:QzA(E.subtitleTruncationText),
maxLines:2}):_.w("span",null,E.subtitle)):null;if(E.secondarySubtitle){x=E.secondarySubtitle;if(x!=null&&x.attachmentRuns){for(var y=[],Q=_.p(x.attachmentRuns),e=Q.next();!e.done;e=Q.next())e=e.value,e.element&&y.push(Object.assign({},e,{element:Object.assign({},e.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));x=Object.assign({},x,{attachmentRuns:y})}x=_.w("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.w(_.nh,{text:x}))}else x=null;return _.w("div",v,f,n,x,E.buttonViewModel?wuE(E.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
l0N=function(v){var E={};E=_.LR("video-summary-content-view-model-wiz",v.className,(E["video-summary-content-view-model-wiz--is-search"]=!!v.isSearch,E));var n=_.C(v.data.likeButtonViewModel,rQ),f=_.C(v.data.dislikeButtonViewModel,PT),x=sO(function(){var y=[],Q,e=(Q=v.data)==null?void 0:Q.paragraphs;if(e==null||!e.length)return[];for(Q=0;Q<e.length;Q++){var F=_.C(e[Q],b$$),b=void 0;Q>0&&(b=_.C(e[Q-1],b$$));b&&!!b.marker===!!F.marker?y[y.length-1].paragraphs.push(F):y.push({isList:!!F.marker,paragraphs:[F]})}return y},
[v.data]);
return _.w("video-summary-content-view-model",{class:E},x.map(function(y){return y.isList?_.w("ul",{class:"video-summary-content-view-model-wiz__list"},y.paragraphs.map(function(Q){return _.w("li",{class:"video-summary-content-view-model-wiz__list-item"},_.w(_.nh,{text:Q.text}))})):y.paragraphs.map(function(Q){return _.w("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.w(_.nh,{text:Q.text}))})}),A7(!!n&&!!f,function(){return _.w("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.w("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.w(odI,{data:n,
disableIconAnimation:!0})),_.w(fWy,{data:f}))}))};
_.$a=function(v,E,n,f,x){f=f===void 0?{}:f;if(!x||Math.random()<5E-4){E=E||null;n=n||null;v=v instanceof Error?v:new _.yc(v);if(v.args)for(var y=_.p(v.args),Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q instanceof Object&&(f=Object.assign({},Q,f));f.category="H5 Ads Control Flow";E&&(f.slot=E?"slot:  "+E.slotType:"");n&&(f.layout=n?"layout:  "+n.layoutType:"",f.layoutId=n.layoutId);x&&(f.known_error_aggressively_sampled=!0);v.args=[f];_.li(v)}};
_.szX=function(v,E){_.OL(v,"yt-open-popup-action",[_.hC(E),v])};
P7Q=function(v){if(!v)return"";if(rYL[v])return rYL[v];L7||(L7=_.oc("A"));L7.href!==v&&Cc(L7,v);var E=L7.pathname;rYL[v]=E.startsWith("/")?E:"/"+E;return rYL[v]};
a0Q=function(){var v=P7Q(window.location.href);if(v==="/")return"home";if(v.startsWith("/results"))return"search";if(v.startsWith("/watch"))return"watch";if(v.startsWith("/shorts"))return"shorts";if(v.startsWith("/hashtag"))return"hashtag";if(v.startsWith("/create_channel"))return"create_channel";if(v.startsWith("/@")||v.startsWith("/user/")||v.startsWith("/channel/"))return"channel";if(v.startsWith("/experiments"))return"experiments";if(v.startsWith("/sponsor_channel"))return"sponsorship";if(v.startsWith("/select_site"))return"settings";
if(v.startsWith("/locate"))return"locate";if(v.startsWith("/redeem"))return"redeem";if(v.startsWith("/musicpremium")||v.startsWith("/premium")||v.startsWith("/red"))return"premium";if(v.startsWith("/paid_memberships"))return"paid_memberships";if(v.startsWith("/oops"))return"oops";if(v.startsWith("/clip"))return"clip";var E;return(GK==null?void 0:(E=GK.response)==null?void 0:E.page)==="404"?"404":v.startsWith("/feed/history")?"history":v.startsWith("/feed/library")?"library":v.startsWith("/feed/subscriptions")?
"subscriptions":v.startsWith("/feed/trending")?"trending":v.startsWith("/feed/news_destination")?"news":v.startsWith("/playlist")?"playlist":v.startsWith("/minor_moment")?"minor_moment":v.startsWith("/playable/")||v.match("^/playables/(?!saved).")?"mini_app":v.startsWith("/playables")?"playables":v.startsWith("/create/live/join")?"open_in_app":v.startsWith("/feed/explore")?"explore":"browse"};
_.SJI=function(){var v=GK==null?void 0:GK.response,E=v==null?void 0:v.endpoint;if(!E)return(v==null?void 0:v.page)==="watch"?"watch":a0Q();var n;v=(n=_.C(E==null?void 0:E.commandMetadata,_.Dl))==null?void 0:n.webPageType;n=!1;if(v&&!Z$G.includes(v))switch(v){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 f;return((f=_.C(E==null?void 0:E.commandMetadata,_.Dl))==null?0:f.url)&&P7Q(_.C(E.commandMetadata,_.Dl).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var x;return(E=(x=_.C(E,_.ix))==null?void 0:x.browseId)?C7y[E]||"browse":"browse";default:n=!0}if(_.C(E,_.TK)||_.C(E,Mm$))return"sponsorship";x=P7Q(window.location.href);if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/create_channel"))return"create_channel";
if(_.C(E,_.Us)&&x.startsWith("/shorts"))return"shorts";if(_.C(E,_.Us)&&x.startsWith("/watch"))return"watch";n&&(E=new _.yc("Unsupported mWeb page type",{pathname:x,webPageType:v}),_.mb(E));return"browse"};
YJs=function(v){var E=v.data;var n=v.inlineMetadata;var f=v.aspectRatio;var x=v.scrimStyle;var y=v.useDefaultStyle;var Q=v.className;var e=PG(new UZ$);v=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";v=y?v==="SHORTS_LOCKUP_STYLE_SLIM":E.style==="SHORTS_LOCKUP_STYLE_SLIM";n=n||v||!1;x=x!==void 0?x:1;var F=_.Ig(function(Y){e.value&&(e.value.hostElement=Y,d())});
_.gt(F,{visibilityCallback:function(Y){Y&&E.onFirstVisible&&_.lj(E.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});Q=_.LR("shortsLockupViewModelHost",Q);var b=_.wJ({elementsCommand:E.onTap}),l=_.Ig();_.YXy(l,_.F$(E.onTap));var r=_.ij(function(Y){if(b==null?0:b.onclick)b.onclick(Y);return!1}),a=_.Ig(),M=[];
M.push("shortsLockupViewModelHostThumbnailContainer");f===1?M.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):f===2&&M.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");v||M.push("shortsLockupViewModelHostThumbnailContainerRounded");_.Z("web_shorts_2_by_3_lockups_study")||_.Z("desktop_search_enable_two_by_three_shorts_aspect_ratio")||M.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var U,d=function(){if(e.value){var Y;(Y=U)==null||
iS(Y);Y=e.value;var V;Y.hostElement&&((V=Y.data)==null?0:V.inlinePlayerData)&&(U=gQ({mediaRenderer:Y,lockupElement:Y.hostElement,thumbnailElement:a.value,videoPreviewOpts:qJX}))}};
b5(function(){e.value&&(e.value.data=E,d())},[E]);
return _.w("ytm-shorts-lockup-view-model",{el:F,class:Q},_.w("a",{el:l,"on:click":r,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!n,tabindex:n?0:-1},_.w("div",{el:a,class:M.join(" ")},A7(E.thumbnail,function(){return _.w(_.gF,null,_.w(_.UZ,{data:E.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),n?_.w(JYs,{data:E,
scrimStyle:x,useDefaultStyle:y}):null,KBy(E.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),n&&E.menuOnTap?_.w(dZA,{data:E,inlineMetadata:n}):null,n?null:_.w(I09,{useDefaultStyle:y,data:E}))};
JYs=function(v){var E=v.data;var n=v.scrimStyle;var f=v.useDefaultStyle;var x=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";v=f&&_.Z("web_hide_primary_text_for_pivot_panel");var y={};f=_.LR("shortsLockupViewModelHostInlineMetadata",(y.shortsLockupViewModelHostMetadataRounded=!(f?x==="SHORTS_LOCKUP_STYLE_SLIM":E.style==="SHORTS_LOCKUP_STYLE_SLIM"),y.shortsLockupViewModelHostInlineMetadataShortScrim=n===3&&!_.Z("enable_shorts_lockup_new_scrim"),
y.shortsLockupViewModelHostInlineMetadataShortScrimNew=n===3&&_.Z("enable_shorts_lockup_new_scrim"),y.shortsLockupViewModelHostInlineMetadataMediumScrim=n===2||n===4,y.shortsLockupViewModelHostShowOverPlayer=!0,y));var Q,e;x={};return _.w("div",{class:f+" image-overlay-text"},_.w("h3",{class:_.W8("shortsLockupViewModelHostMetadataTitle",(x.shortsLockupViewModelHostMetadataTitleTextShadow=n===4,x)),"aria-label":E.accessibilityText},A7(((Q=E.overlayMetadata)==null?void 0:Q.primaryText)&&!v,function(){return _.w(_.nh,
{text:E.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((e=E.overlayMetadata)==null?0:e.secondaryText)?_.w(hXQ,{data:E,
scrimStyle:n}):null)};
I09=function(v){var E=v.data;var n=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";v=(v.useDefaultStyle?n==="SHORTS_LOCKUP_STYLE_SLIM":E.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var f=_.wJ({elementsCommand:E.onTap});n=_.Ig();_.YXy(n,_.F$(E.onTap));var x=_.ij(function(r){if(f==null?0:f.onclick)f.onclick(r);return!1}),y,Q,
e,F,b,l={};
return _.w("div",{class:v+" image-overlay-text","on:click":x},_.w("h3",{class:_.W8("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(l.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((y=E.overlayMetadata)==null?0:(Q=y.primaryText)==null?0:Q.content),l)),"aria-label":E.accessibilityText},_.w("a",{el:n,"on:click":x,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(e=E.overlayMetadata)==null?void 0:(F=e.primaryText)==
null?void 0:F.content},A7(E.overlayMetadata,function(){return _.w(_.nh,{text:E.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((b=E.overlayMetadata)==null?0:b.secondaryText)?_.w(hXQ,{data:E,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,E.menuOnTap?_.w(dZA,{data:E,inlineMetadata:!1}):null)};
hXQ=function(v){var E=v.data;var n=v.scrimStyle;v=v.className;var f,x={};return _.w("div",{class:_.W8((x.shortsLockupViewModelHostMetadataSubhead=n!==4,x.shortsLockupViewModelHostMetadataSubheadNew=_.Z("enable_shorts_lockup_new_scrim"),x.shortsLockupViewModelHostMetadataSubheadTextShadow=n===4,x),v),"aria-hidden":"true"},_.w(_.nh,{text:(f=E.overlayMetadata)==null?void 0:f.secondaryText,noStyleRuns:!0}))};
dZA=function(v){var E={};E=_.LR((E.shortsLockupViewModelHostInlineMetadataMenu=v.inlineMetadata,E.shortsLockupViewModelHostOutsideMetadataMenu=!v.inlineMetadata,E.shortsLockupViewModelHostShowOverPlayer=!0,E));return _.w("div",{class:E},_.w(WT,{data:{style:v.inlineMetadata?"overlay":"mono",accessibilityLabel:v.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(n){n.preventDefault();n.stopPropagation();var f=_.wJ({elementsCommand:v.data.menuOnTap,forceNewState:!0});
if(f==null?0:f.onclick)f.onclick(n)}},
iconName:"MORE_VERT"}))};
zK=function(v,E,n,f){return v&&E?v!==n||E!==f?(_.$a(Error("Gh"),void 0,void 0,{"stored-slot":v,"stored-layout":E,"latest-slot":n,"latest-layout":f}),!1):!0:!1};
AYE=function(v,E,n){return v({targetId:E},function(f){return n.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},f,{header:n.continuationItems?n.continuationItems[0]:void 0}):Object.assign({},f,{contents:n.continuationItems?n.continuationItems:[]})})};
Vm1=function(v,E,n,f){if(E=E.trackingParams){var x,y=(x=n.getScreenLayer)==null?void 0:x.call(n);n=_.lc(y);x=_.bc(y);if(n&&x){var Q=_.tx(E);_.Z("combine_ve_grafts")?v.graftServerVe(E,x,y):_.aQ(n,x,Q);f==null||f(Q)}}};
H$N=function(v){var E;return((E=DZ$.get(v))==null?void 0:E.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
un9=function(v,E){var n={type:E.slotType,controlFlowManagerLayer:gW1.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E.slotEntryTrigger&&(n.entryTriggerType=E.slotEntryTrigger.triggerType);E.slotPhysicalPosition!==1&&(n.slotPhysicalPosition=E.slotPhysicalPosition);if(v){n.debugData={slotId:E.slotId};if(v=E.slotEntryTrigger)n.debugData.slotEntryTriggerData=N0X(v);v=E.slotFulfillmentTriggers;n.debugData.fulfillmentTriggerData=[];v=_.p(v);for(var f=v.next();!f.done;f=v.next())n.debugData.fulfillmentTriggerData.push(N0X(f.value));
E=E.slotExpirationTriggers;n.debugData.expirationTriggerData=[];E=_.p(E);for(v=E.next();!v.done;v=E.next())n.debugData.expirationTriggerData.push(N0X(v.value))}return n};
N0X=function(v,E){var n={type:v.triggerType};E!=null&&(n.category=E);v.triggeringSlotId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedSlotId=v.triggeringSlotId);v.triggeringLayoutId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedLayoutId=v.triggeringLayoutId);return n};
jzI=function(v,E,n,f){E={opportunityType:E};v&&(f||n)&&(f=_.rA(f||[],function(x){return un9(v,x)}),E.debugData=Object.assign({},n&&n.length>0?{associatedSlotId:n}:{},f.length>0?{slots:f}:{}));
return E};
O$F=function(v){return Ru(v.opportunityAdapterMap).concat(Ru(v.triggerAdapterMap)).concat(Ru(v.fulfillmentAdapterFactoryMap)).concat(Ru(v.slotAdapterFactoryMap)).concat(Ru(v.layoutRenderingAdapterFactoryMap))};
Ru=function(v){var E=[];v=_.p(v.values());for(var n=v.next();!n.done;n=v.next())n=n.value,n.isAdsControlFlowEventListener&&E.push(n);return E};
BT=function(v){var E=v.slotId,n=v.slotType,f=v.slotPhysicalPosition;return E===void 0?new tF("Cannot construct a slot due to the missing id.",{adSlotMetadata:v}):n===void 0?new tF("Cannot construct a slot due to the missing type.",{adSlotMetadata:v}):f===void 0?new tF("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:v}):{slotId:E,slotType:n,slotPhysicalPosition:f,managerLayer:"external",adSlotLoggingData:v.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new k$s}};
WBE=function(v){var E=v.layoutId,n=v.layoutType;return E===void 0?new vj("Cannot construct a layout due to the missing id.",{adLayoutMetadata:v}):n===void 0?new vj("Cannot construct a layout due to the missing type.",{adLayoutMetadata:v}):{layoutId:E,layoutType:n,managerLayer:"external",adLayoutLoggingData:v.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new k$s,interactionLoggingAdsClientData:{}}};
$Zy=function(v){if((v=v.value)&&v.querySelector("img")){var E=v.querySelector("img");E.addEventListener("error",function(){D6E(E.src).then(function(n){(n=_.lW(n).toString())?E.src=n:E.removeAttribute("src")}).catch(function(){E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
nU=function(v,E){if(E&&(LB9(E.viewableCommand)||LB9(E.endOfSessionCommand))){v=v.value;var n=G$E(E==null?void 0:E.viewableCommand);E=G$E(E==null?void 0:E.endOfSessionCommand);if(!E_){var f=_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);E_=new T09((f==null?void 0:f.length)===2?f[1]:null)}i$X(E_,v);zXN(E_,v,n,E)}};
oV=function(v){E_&&i$X(E_,v.value)};
LB9=function(v){v=_.F$(v);return!(v==null||!v.loggingUrls)&&v.loggingUrls.length>0};
G$E=function(v){if(!v)return[];var E=[],n,f;((f=(n=_.F$(v))==null?void 0:n.loggingUrls)!=null?f:[]).forEach(function(x){x.baseUrl&&E.push(x.baseUrl)});
return E};
RXL=function(v){return v.shorts.isDesktopSmallWidth};
_.tmy=function(v){return v.shorts.isWatchWhileMode};
_.fU=function(v){return v.shorts.isFullscreen};
_.xC=function(v){return v.shorts.isShortsPipActive};
v4E=function(v){var E,n;if(v=(E=_.C(v.reelsAdCardButtoned,B0E))==null?void 0:(n=E.animatedRenderingConfig)==null?void 0:n.easeOutSeconds)return v+"s"};
n41=function(v,E,n){return _.X(function(f){return f.return(new Promise(function(x){var y=new Image;y.onload=function(){x(new E4s(v,E,n,y.naturalWidth,y.naturalHeight))};
y.src=n.toString()}))})};
o4X=function(v,E){return Math.round(v/1E-5)===Math.round(E/1E-5)};
fZs=function(v,E){return Math.round(v/1E-5)===Math.round(E/1E-5)};
xJs=function(v,E){return v.year===E.year&&v.month===E.month&&v.day===E.day};
ci9=function(v,E){return v.year!==E.year?v.year<E.year:v.month!==E.month?v.month<E.month:v.day<E.day};
p4G=function(v){return v.day===yi1(v.year,v.month)?v.month===11?{year:v.year+1,month:0,day:1}:{year:v.year,month:v.month+1,day:1}:{year:v.year,month:v.month,day:v.day+1}};
QIX=function(){var v=new Date,E={year:v.getFullYear(),month:v.getMonth(),day:v.getDate()};return{start:E,end:{year:v.getFullYear()+2,month:v.getMonth(),day:v.getDate()},selectedDate:p4G(E)}};
X4I=function(v){return(new SN(2)).format(new Date(v.year,v.month,v.day))};
edX=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
F6N=function(v,E){v=(v+(Number(E.utcOffsetSec)+(new Date(v*1E3)).getTimezoneOffset()*60))*1E3;E=edX(new Date(v));return{date:E,secondsSinceMidnight:Math.floor((v-(new Date(E.year,E.month,E.day)).getTime())/1E3)}};
mJs=function(v,E){E=E.months.findIndex(function(n){return n.year===v.year&&n.month===v.month});
return E>=0?E:void 0};
w4L=function(v){if(!v)return!1;try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENTBOX")return!0}catch(E){return!1}return w4L(v.parentNode)};
cj=function(v){return v?!(v.tagName!=="A"||!v.href||!v.classList.contains("yt-simple-endpoint")):!1};
b6I=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1};
lZG=function(v,E,n){if(!v)return null;var f=cj(v);if(f&&n)return E=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(f&&!n)return document.createTextNode("");if(b6I(v))return n=v.alt,v=v.dataset.emojiId,!v&&E&&(E=_.ye(E,n))&&E.isCustomEmoji&&(v=E.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(n);f=v.cloneNode(!1);for(var x=0;x<v.childNodes.length;++x){var y=lZG(v.childNodes[x],E,n);y&&f.appendChild(y)}return f};
pU=function(v){return v?cj(v)?v:pU(v.lastChild):null};
sIy=function(v){return v?cj(v)?v:sIy(v.firstChild):null};
ris=function(v){if(!v)return null;for(var E=v.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=pU(E))?v=E:v=(v=v.parentNode)?pU(v.previousElementSibling):null;return v};
P8Q=function(v){if(!v)return null;for(var E=v.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=sIy(E))?E:P8Q(v.parentNode)};
aZE=function(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();if(!w4L(n.parentNode))return null;E=E.JSC$9144_getStartOffset();if(n.nodeType===Node.TEXT_NODE){var f=_.Ss(n,cj);if(f){if(v&&E===0||!v&&E===n.length)return f}else{if(v&&E===n.length)return!n||n.nodeName==="BR"||n.nextElementSibling&&_.XH(n.nextElementSibling,"display")==="block"?null:sIy(n.nextElementSibling);if(!v&&E===0)return n?pU(n.previousElementSibling):null}}if(n.nodeType===Node.ELEMENT_NODE)if(v){if(0<=E&&E<n.childNodes.length)return sIy(n.childNodes[E])}else if(0<
E&&E<=n.childNodes.length)return pU(n.childNodes[E-1]);return null};
Z6E=function(v,E,n){if(!v)return null;if(v.nodeType===Node.TEXT_NODE)if(n){var f=ris(v);if(f&&!/^\s+\S/.test(v.wholeText.substr(0,E)))return f}else if((f=P8Q(v))&&!/\S\s+/.test(v.wholeText.substr(E,v.wholeText.length)))return f;return v.nodeType===Node.ELEMENT_NODE?n?ris(v.childNodes[E]):P8Q(v.childNodes[E]):Z6E(v.parentNode,E,n)};
C8s=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var E="";for(v=v.firstChild;v;v=v.nextSibling)E+=C8s(v);return E;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}};
eh=function(v,E){return v.year===E.year&&v.month===E.month&&v.day===E.day};
FH=function(v,E){return v.year!==E.year?v.year<E.year:v.month!==E.month?v.month<E.month:v.day<E.day};
Me9=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
Sj9=function(v){var E=yhG;E=E===void 0?yhG:E;E(new Date(v.year,v.month,v.day))};
mH=function(v){return Me9(new Date(Number(v.seconds)*1E3))};
UJF=function(v){return v.year!==void 0&&v.month!==void 0&&v.day!==void 0};
qjN=function(v){return v.start!==void 0&&v.end!==void 0};
JiI=function(v){return qjN(v)?v.start:v};
K6N=function(v){return qjN(v)?v.end:void 0};
IZs=function(v,E){for(var n=[],f=new Date(v.start.year,v.start.month);f.getFullYear()<v.end.year||f.getFullYear()===v.end.year&&f.getMonth()<=v.end.month;){var x=n,y=x.push,Q=f.getFullYear(),e=f.getMonth(),F=v,b=E,l=void 0,r=[],a=Object.freeze({extraCssClass:"invisible"}),M=new Date(Q,e),U=Me9(M);M=M.getDay();for(var d=Me9(new Date);U.month===e;){M!==dJ9&&l||(l=Array.from({length:7}).fill(a),r.push(l));var Y={date:{year:Q,month:e,day:U.day},extraCssClass:"",debugClass:""};Y.extraCssClass=b(Y.date,
U,d,F).trim();l[(M-dJ9+7)%7]=Y;U=U.day===yi1(U.year,U.month)?U.month===11?{year:U.year+1,month:0,day:1}:{year:U.year,month:U.month+1,day:1}:{year:U.year,month:U.month,day:U.day+1};M=(M+1)%7}y.call(x,{weeks:r,monthLabel:wN.SHORTMONTHS[e]+" "+Q,year:Q,month:e,monthLabelExtraCssClass:r[0][2]===a?"shift-down-label":""});f.setMonth(f.getMonth()+1)}return n};
YjI=function(v,E){E=E.months.findIndex(function(n){return n.year===v.year&&n.month===v.month});
return E>=0?E:void 0};
AiL=function(v,E){a:{var n=n===void 0?[2,3]:n;n=_.p(n);for(var f=n.next();!f.done;f=n.next()){var x=new Date;if((new hdA(f.value)).parse(E,x,{validate:!0})){x.setHours(0,0,0,0);E=x;break a}}E=null}if(!E)return{isValid:!1,value:void 0};E=Me9(E);n=v.end;return FH(E,v.start)||FH(n,E)?{isValid:!1,value:void 0}:{isValid:!0,value:E}};
NU9=function(v){var E=VeQ;E=E===void 0?DJQ:E;var n=v.columnsToShow||[],f=H61(v.columnDimensions,v.columnsToShow,v.leftFloatingColumns,E);return n.map(function(x,y){var Q=v.columns[x];if(Q===void 0)throw Error("Mh");var e=f?f[y]:"";var F=v.getCustomTooltip?v.getCustomTooltip(x,Q.headerTooltipParagraphs):Q.headerTooltipParagraphs;var b=g4E(v,x);return{type:x,index:y,style:e,classes:b,headerName:Q.headerName||"",headerIcon:Q.headerIcon,headerTooltipParagraphs:F||[],headerTooltipHelpContext:Q.headerTooltipHelpContext,
sortOrders:Q.sortOrders||[],selectionState:Q.isSelectionCheckbox?v.selectionState:void 0}})};
g4E=function(v,E){var n=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],f=v.columns[E];if(f===void 0)return"";var x=n.includes("DEFAULTS")&&f.cssClass?[f.cssClass]:[];if(n.includes("SORTING")){f.sortOrders&&f.sortOrders.length&&x.push("sortable");if(v.sorting&&v.sorting.columnType===E)a:switch(v.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var y="column-sorted";break a;default:y=""}else y="";y&&x.push(y)}n.includes("FLOATING")&&(E=v.columnsToShow.indexOf(E),v.leftFloatingColumns&&E<v.leftFloatingColumns&&
x.push("floating-column"),v.leftFloatingColumns&&E===v.leftFloatingColumns-1&&x.push("last-floating-column"));n.includes("RIGHT_ALIGN")&&f.rightAlignHeader&&x.push("right-align");return x.filter(function(Q){return Q}).join(" ")};
H61=function(v,E,n,f){n=n===void 0?0:n;f=f===void 0?DJQ:f;if(v){var x=[],y=0;uEQ(v,E,f).forEach(function(Q,e){var F="min-width:"+Q.minWidth+"px;padding-left:"+Q.paddingLeft+"px;padding-right:"+Q.paddingRight+"px;flex:"+Q.flexGrow+" 0 "+Q.minWidth+"px;";Q.maxWidth!==Infinity&&(F=[F,"max-width:"+Q.maxWidth+"px;"].join(""));y>0&&e<n&&(F=[F,"left:"+y+"px;"].join(""));x.push(F);y+=Q.minWidth+Q.paddingLeft+Q.paddingRight});
return x}};
uEQ=function(v,E,n){n=n===void 0?DJQ:n;return E.map(function(f,x){f=v&&v[f]||{};var y=x===0?n.paddingLeftFirstColumn:n.padding;f.paddingLeft!==void 0&&(y=f.paddingLeft);x=x===E.length-1?n.paddingRightLastColumn:n.padding;f.paddingRight!==void 0&&(x=f.paddingRight);return{paddingLeft:y,paddingRight:x,minWidth:f.minWidth!==void 0?f.minWidth:n.minWidth,maxWidth:f.maxWidth!==void 0?f.maxWidth:n.maxWidth,flexGrow:f.flexGrow!==void 0?f.flexGrow:n.flexGrow}})};
jIE=function(v){var E=v.reduce(function(f,x){var y=x.columnId,Q={};x.headerText&&(Q.headerName=_.JC(x.headerText));x.rightAlignHeader&&(Q.rightAlignHeader=x.rightAlignHeader);var e;if((e=x.headerIcon)==null?0:e.iconType)Q.headerIcon=_.jI(x.headerIcon.iconType);f[y]=Q;return f},{}),n=v.filter(function(f){return!f.hideColumn}).map(function(f){return f.columnId});
v=v.filter(function(f){return!!f.dimensions}).reduce(function(f,x){f[x.columnId]=x.dimensions;
return f},{});
return{columns:E,columnsToShow:n,columnDimensions:v}};
_.O6E=function(v){return v?v.simpleText?v.simpleText:v.runs?v.runs.map(function(E){return E.text}).join(""):"":""};
GL1=function(v){var E=v.data;var n=v.onTap;var f=v.isSelected;var x=v.onFocusIn;if(!E)return{};v=kL$(E);f===void 0&&(f=E==null?void 0:E.isSelected);var y;return{text:W61(E,v),startIcon:(y=E.icon)==null?void 0:y.iconType,state:f?0:2,type:0,onTap:$JG(E,n),accessibilityLabel:L6y(E,v),onFocusIn:function(){return x==null?void 0:x()}}};
W61=function(v,E){if(!E)return v.text?_.O6E(v.text):void 0};
$JG=function(v,E){return function(n){E==null||E(n,v)}};
kL$=function(v){v=v.style&&v.style.styleType;return!TU9&&v==="STYLE_EXPLORE_LAUNCHER_CHIP"};
L6y=function(v,E){if(E){var n,f,x;return(x=(n=v.accessibilityData)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)!=null?x:W61(v,!1)}};
bT=function(v){return{signalAction:{signal:v}}};
Rds=function(){return _.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?i6N:_.zd9};
teI=function(v,E){v=v===void 0?"SOFT_RELOAD_PAGE":v;E=E===void 0?49504:E;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.HR(_.tQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:E}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:v}}]}}}};
BUL=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.HR(_.tQ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Rds()}};
vTI=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Rds()}};
ETE=function(v,E){var n=_.HR(_.tQ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),f=_.HR(_.tQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),x={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.HR(_.tQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};x.serviceEndpoint=v?v:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[bT("SOFT_RELOAD_PAGE")]}};return{title:n,bodyText:f,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:x},
style:{value:E!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
oTE=function(v){v=v===void 0?{}:v;return{title:_.HR(v.localizedZeroStateTitleText===void 0?"":v.localizedZeroStateTitleText),bodyText:_.HR(v.localizedZeroStateMessage===void 0?"":v.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.HR(v.localizedZeroStateButtonText===void 0?"":v.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[nTQ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.cEL=function(v,E,n,f,x,y,Q,e){f=f===void 0?!1:f;x=x===void 0?!1:x;y=y===void 0?0:y;Q=Q===void 0?-Infinity:Q;e=e===void 0?!1:e;var F=[],b=_.HR(_.tQ("SMART_DOWNLOADS",void 0,"Smart downloads"));Q=_.HR(f3Q(y,Q,v.length));y=void 0;f?y=v.length>0?xk1(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Z("kevlar_manual_downloads_above"),b,Q):e?{alertBannerViewModel:{heading:{content:n.localizedOptInBannerTitleText===void 0?"":n.localizedOptInBannerTitleText},body:{content:n.localizedPromptMessage===
void 0?"":n.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.tQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.tQ("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:_.MOF}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.HR(_.tQ("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"}}}:x&&(y={alertBannerViewModel:{heading:{content:n.localizedOptInBannerTitleText===void 0?"":n.localizedOptInBannerTitleText},body:{content:n.localizedOptInMessage===
void 0?"":n.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.tQ("TURN_ON",void 0,"Turn on"),accessibilityText:_.tQ("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}}}}}});n=_.HR(_.tQ("YOUR_DOWNLOADS",void 0,"Your downloads"));x=void 0;E.length>0?(x=void 0,_.Z("kevlar_display_downloads_numbers")&&(x=_.HR(_.Bq("VIDEO_COUNT",E.length))),x=xk1(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,n,x)):f||v.length||(x={backgroundPromoRenderer:{bodyText:_.HR(_.tQ("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}}}});y&&!_.Z("kevlar_manual_downloads_above")&&F.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});x&&F.push({richSectionRenderer:{content:x,loggingDirectives:{clientVeSpec:{uiType:51721}}}});y&&_.Z("kevlar_manual_downloads_above")&&F.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(E.length>0||f&&v.length>0)&&F.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.HR(_.tQ("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:F}};
_.pr9=function(v){return yEX(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.QnN=function(v){return yEX(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
yEX=function(v,E){var n=[];v=xk1(v,E,!0);n.push({richSectionRenderer:{content:v}});return{contents:n}};
xk1=function(v,E,n,f,x){n=n===void 0?!1:n;v={isExpanded:n,contents:lT(v),entitySelectorType:E};f&&(v.title=f);x&&(v.subtitle=x);n||(_.Z("kevlar_smart_downloads_show_more_button")?(v.showMoreButton={buttonRenderer:{accessibility:{label:_.tQ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.HR(_.tQ("SHOW_MORE",void 0,"Show more"))}},v.showLessButton={buttonRenderer:{accessibility:{label:_.tQ("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.HR(_.tQ("SHOW_LESS",void 0,"Show less"))}}):(v.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.tQ("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}}}},v.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.tQ("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}}}},v.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.tQ("VIEW_ALL",void 0,"View all"),accessibilityText:_.tQ("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:Vf("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:v}};
lT=function(v){var E=[];v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,xbE(n)){var f=E,x=f.push;var y=void 0;if(n==null?0:(y=n.videoEntity)==null?0:y.videoId){y=rG(_.dG().getState(),n.videoEntity.videoId);var Q=_.dG().getState();var e=_.$s(n.videoEntity.videoId,"mainVideoEntity");Q=!!_.yN(Q.entities)[e];Q={videoId:n.videoEntity.videoId,title:gj(n.videoEntity.title),shortBylineText:gj(n.channelEntity.title),thumbnail:n.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Q&&_.Z("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:x71(n.videoEntity.videoId,y,n.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.tQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};n.videoEntity.lengthSeconds&&(Q.thumbnailOverlays=qlN(n.videoEntity.lengthSeconds,y));Q.isWatched=y>0;_.Z("kevlar_modern_downloads_page")&&(Q.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:n.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.tQ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Q.badges=void 0);n=Q}else n={};x.call(f,{richItemRenderer:{content:{videoRenderer:n},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(fOX(n)){f=E;x=f.push;var F=e=y=void 0,b=void 0,l=void 0,r=void 0,a=void 0,M=void 0,U=void 0,d=void 0,Y=void 0,V=void 0;Q=n.mainPlaylistEntity.playlistId;var O=n==null?void 0:(V=n.mainPlaylistEntity)==null?void 0:(Y=V.thumbnailStyleData)==null?void 0:(d=Y[0])==null?void 0:(U=d.value)==null?void 0:(M=U.collageThumbnail)==
null?void 0:M.coverThumbnail;if(Q&&O){M=cTX(Q);!_.Z("enable_offline_playlist_page")&&(n==null?0:(a=n.mainPlaylistEntity)==null?0:a.videos)&&(a=n==null?void 0:(r=n.mainPlaylistEntity)==null?void 0:(l=r.videos)==null?void 0:l[0],l=_.Of(a).entityId,l=JSON.parse(l).videoId,l!==void 0&&(r=rG(_.dG().getState(),l),M=_.DI(l,Q,void 0,void 0,r)));l=[];if(n==null?0:(b=n.mainPlaylistEntity)==null?0:(F=b.videos)==null?0:F.length)l=[chG(),Object.assign({},(e=xsN(n==null?void 0:n.mainPlaylistEntity.videos.length))!=
null?e:{})];n={playlistId:Q,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},navigationEndpoint:M,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:l,title:gj(n.mainPlaylistEntity.title),shortBylineText:gj(n==null?void 0:(y=n.channelEntity)==null?void 0:y.title),badges:[{metadataBadgeRenderer:{label:_.tQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.Z("kevlar_modern_downloads_page")&&(n.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Xr$,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.tQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},n.badges=void 0)}else n=void 0;x.call(f,{richItemRenderer:{content:{playlistRenderer:n},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return E};
f3Q=function(v,E,n){v=v?eJN(v):"";E!==void 0&&isFinite(E)?E===0?E=_.tQ("UPDATING",void 0,"Updating..."):(E=UsX(new Date(E),new Date),E=_.tQ("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var f="";v&&E&&(f=" \u2022 ");if(n&&_.Z("kevlar_display_downloads_numbers")){n=_.Bq("VIDEO_COUNT",n);if(v||E)f=" \u2022 ";return n+f+v+f+E}return v+f+E};
F1Q=function(v){return zAX(v.entities).length};
_.mkN=function(v,E){var n=s8L(v.responsiveSize),f;v=!((f=v.responsiveMap)==null||!f.some(function(x){return x.containerSize==="CONTAINER_SIZE_NARROW"&&x.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:E,sizing:n,enableFullBleedForSingleCol:!1,isCompactList:n==="COMPACT"&&v}};
wrX=function(v,E){return _.LH(v.entities,"votingEntity",E)};
bO$=function(v){if(v){var E;return((E=_.P().resolve(_.jp(_.aj)))==null?0:E())?v.darkTheme:v.lightTheme}};
l3X=function(v,E,n){return _.w(_.gF,null,Vp$(n,[[0,function(){return _.w("h2",{class:E},v)}],
[1,function(){return _.w("h3",{class:E},v)}],
[2,function(){return _.w("h4",{class:E},v)}]],function(){return _.w("h2",{class:E},v)}))};
sn$=function(v){var E=["shelf-header-layout-wiz"];v.disableHorizontalPadding&&E.push("shelf-header-layout-wiz--disable-horizontal-padding");v.disableVerticalPadding&&E.push("shelf-header-layout-wiz--disable-vertical-padding");v.useResponsiveLayout&&(E.push("shelf-header-layout-wiz--responsive"),v.forceSmallLayout&&E.push("shelf-header-layout-wiz--narrow"));v.isOverlay&&E.push("shelf-header-layout-wiz--is-overlay");v.onClick&&E.push("shelf-header-layout-wiz--tappable");var n=["shelf-header-layout-wiz__title"];
v.forceSmallLayout&&n.push("shelf-header-layout-wiz__title--small-title");var f=["shelf-header-layout-wiz__leading-image"];v.circularImage&&f.push("shelf-header-layout-wiz__leading-image--circular-image");var x=_.ij(function(y){var Q;(Q=v.onClick)==null||Q.call(v,y)});
return _.w("yt-shelf-header-layout",{class:E.join(" "),"on:click":x,tabindex:v.onClick?0:void 0},v.leadingIcon?_.w("div",{class:"shelf-header-layout-wiz__leading-icon"},_.w(_.B8,{icon:v.leadingIcon})):v.leadingImage?_.w("div",{class:f.join(" ")},v.leadingImage()):_.w(_.gF,null),_.w("div",{class:"shelf-header-layout-wiz__label-container"},v.superlabel?_.w("div",{class:"shelf-header-layout-wiz__superlabel"},v.superlabel()):_.w(_.gF,null),_.w("div",{class:"shelf-header-layout-wiz__title-row"},l3X(v.title(),
n.join(" "),v.tagLevel),A7(v.detail,function(){return _.w("div",{class:"shelf-header-layout-wiz__detail"},v.detail())})),v.sublabel?_.w("div",{class:"shelf-header-layout-wiz__sublabel"},v.sublabel()):_.w(_.gF,null)),v.trailingActions?_.w("div",{class:"shelf-header-layout-wiz__trailing-actions"},v.trailingActions()):_.w(_.gF,null))};
rEX=function(v){var E=_.C(v==null?void 0:v.avatar,_.HT),n,f=(n=v==null?void 0:v.image)!=null?n:_.OI(v==null?void 0:v.themedImage);return _.w(_.gF,null,A7(f,function(){return _.w(_.UZ,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0})}),A7(E,function(){return _.w(_.s_,{data:E})}))};
ZOA=function(v){var E=_.C(v.bottomBadge,PpA),n=E&&v.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.w(_.gF,null,A7(E,function(){return E&&_.w(a3Q,{data:E,class:n})}),A7(v.sublabel,function(){return _.w(_.nh,{text:v.sublabel})}))};
Cpy=function(v){var E=_.C(v.topBadge,PpA),n=E&&v.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.w(_.gF,null,A7(E,function(){return E&&_.w(a3Q,{data:E,class:n})}),A7(v.superlabel,function(){return _.w(_.nh,{text:v.superlabel})}))};
SFA=function(v){var E=v.data;var n=v.disableHorizontalPadding;var f=v.disableVerticalPadding;var x=v.forceSmallLayout;var y=v.useResponsiveLayout;v=v.isOverlay;var Q=E.sublabel||E.bottomBadge,e=E.superlabel||E.topBadge,F=_.dQ(E.rendererContext);n={title:function(){return _.w(_.nh,{text:E.headline})},
sublabel:Q&&function(){return ZOA(E)},
superlabel:e&&function(){return Cpy(E)},
leadingImage:E.leadingAccessory&&function(){return rEX(E.leadingAccessory)},
trailingActions:E.trailingActions&&function(){return _.w(_.gF,null,MdE(E.trailingActions))},
disableHorizontalPadding:n,disableVerticalPadding:f,forceSmallLayout:x,useResponsiveLayout:y,isOverlay:v,onClick:F?function(b){var l=_.K7(E.rendererContext);l&&_.mG(l,{form:{element:b.target,event:b}})}:void 0};
f=(f=bO$(E==null?void 0:E.backgroundColor))?"background-color: "+_.Qt(f)+";":void 0;return _.w("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:f},_.w(sn$,Object.assign({},n)))};
UkL=function(v,E){if(v.simpleText)return Object.assign({},v,{simpleText:rJ(v.simpleText,E)});if(!v.runs)return v;for(var n=Object.assign({},v,{runs:[]}),f=0,x=_.p(v.runs),y=x.next();!y.done;y=x.next())if(y=y.value,y.text)if(f+y.text.length<=E)n.runs.push(y),f+=y.text.length;else return n.runs.push(Object.assign({},y,{text:rJ(y.text,E-f)})),n;return v};
qFF=function(v,E){return _.LH(v.entities,"chipBarStateEntity",E)};
JEs=function(v,E){return _.LH(v.entities,"chipEntity",E)};
dk1=function(v,E,n,f){return function(){var x=K19.has(v.displayType)&&v.selected,y=x&&v.deselectCommand?v.deselectCommand:v.tapCommand;!y||x&&f||_.lj(y,{form:{element:E==null?void 0:E.value}});n==null||n()}};
I3L=function(v){switch(v){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""}};
YF9=function(v,E){return{triggeringElement:v,onDwellTriggeredFn:function(){var n={triggeringElement:v,loadVideoPreviewEventData:E},f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:n}))},
onDwellEndFn:function(){var n=document.querySelector(".video-preview");n&&n.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
hJ1=function(v,E){var n=_.P().resolve(_.jp(vPE)),f=function(){var x=E();return n&&x?YF9(v.value,x):null};
_.Xp(function(){var x=f();n&&x&&Promise.resolve().then(function(){n.registerElement(x)});
_.Fp(function(){n&&x&&Promise.resolve().then(function(){n.unregisterElement(x)})})})};
Vd1=function(v){var E=v.dataset.resizeObserverId;if(E)return E;E=""+AEF++;return v.dataset.resizeObserverId=E};
DkI=function(v,E){var n=Vd1(v);rN.has(n)||rN.set(n,new Set);rN.get(n).add(E);Pj.has(n)&&E(Object.assign({},{target:v},Pj.get(n)))};
HOL=function(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=Vd1(E.target),f=Object.assign({},{target:E.target},Pj.get(n));if(f!=null&&f.contentRect?f.contentRect.width!==E.contentRect.width||f.contentRect.height!==E.contentRect.height:1)for(Pj.set(n,{borderBoxSize:E.borderBoxSize,contentBoxSize:E.contentBoxSize,contentRect:E.contentRect,devicePixelContentBoxSize:E.devicePixelContentBoxSize}),n=_.p(rN.get(n)||[]),f=n.next();!f.done;f=n.next())f=f.value,f(E)}};
NSy=function(){return aV?aV:aV=new gT$(HOL)};
ujE=function(v,E){var n=Vd1(v);rN.has(n)&&(rN.get(n).delete(E),rN.get(n).size===0&&(rN.delete(n),Pj.delete(n),aV.unobserve(v),delete v.dataset.resizeObserverId));rN.size===0&&aV&&(aV.disconnect(),aV=void 0)};
OO1=function(v,E){var n=_.P().resolve(HP);return jnL.map(function(f){return n.observe(v,E,f)})};
kb1=function(v){var E=_.P().resolve(HP);v.forEach(function(n){E.unobserveByKey(n)})};
_.L1s=function(v,E){var n=Object.assign({},W1G,E);E=_.p($pE());var f=E.next().value,x=E.next().value,y=function(Q){var e=Q.contentRect.height;if((Q=Q.contentRect.width)||e||n.canHaveZeroSize)f.width()===Q&&f.height()===e||x(f,{height:e,width:Q})};
_.l5(function(){var Q=v instanceof HTMLElement?v:v.value,e=$ks(y,n.throttleMs),F=[];n.useVisibilityObserver&&(F=OO1(Q,function(b,l){requestAnimationFrame(function(){l==="visible"?(DkI(Q,e),NSy().observe(Q)):ujE(Q,e)})}));
F.length||(DkI(Q,e),NSy().observe(Q));_.Fp(function(){F.length&&(kb1(F),F.length=0);ujE(Q,e)})});
return f};
TSQ=function(v){var E=v.data;var n=v.callback;var f=v.enableSingleChipSelection;var x=v.disableChipsScrollAnimation;var y=_.Ig(),Q=PG(!1),e=PG(0);v={};v=_.p(iG(E.autoselectedChipIndex!=null?(v[E.autoselectedChipIndex]=!0,v):{}));var F=v.next().value,b=v.next().value,l=function(){var MF=y.value;return MF==null||MF.scrollLeft-1<=0},r=function(){var MF=y.value;
return MF==null?!1:MF.scrollLeft+1>=(MF==null?NaN:MF.scrollWidth)-(MF==null?NaN:MF.clientWidth)};
v=_.p(iG(l()));var a=v.next().value,M=v.next().value;v=_.p(iG(r()));var U=v.next().value,d=v.next().value;v=E.isHorizontallyScrollable;var Y=function(MF){y.value!=null&&(_.MX("HTML_DIR")==="rtl"&&(MF=-MF),y.value.scrollBy({left:MF,behavior:x?"instant":"smooth"}))},V=function(){Y(-320)},O=function(){Y(320)},T=_.ij(function(MF){Q.value=!0;
e.value=MF.clientX}),L=_.ij(function(MF){if(Q.value){MF=MF.clientX;
var K1=MF-e.value;e.value=MF;y.value.scrollBy({left:-K1})}}),xX=_.ij(function(){var MF=l(),K1=r();
MF!==a&&M(MF);K1!==U&&d(K1)});
D4("pointerup",function(){Q.value&&(Q.value=!1)});
var t={},QE={};return _.w("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},A7(E.title,function(){return _.w("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.w("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},E.title),GbG(E.overflowButton))}),_.w("div",{class:"ytChipsShelfViewModelChipsShelfContent"},A7(E.previousButton!=null,function(){var MF={};
return _.w("div",{class:_.LR("ytChipsShelfViewModelLeftArrowContainer",(MF.ytChipsShelfViewModelLeftArrowContainerIsHidden=a,MF))},GbG(E.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:V}}))}),_.w("div",{el:y,
"on:pointerdown":T,"on:pointermove":L,"on:scroll":xX,class:_.LR("ytChipsShelfViewModelChipsScrollContainer",(t.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!v,t))},_.w("div",{class:_.LR("ytChipsShelfViewModelChipsContainer",(QE.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!v,QE.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!v&&!1,QE))},(E.contents||[]).map(function(MF,K1){return _.w("div",{class:"ytChipsShelfViewModelChipWrapper"},GbG(MF,
{chipViewModel:{callback:function(JG,$X){if(f){var HI={};b((HI[K1]=$X,HI))}else HI={},b(Object.assign({},F,(HI[K1]=$X,HI)));n==null||n(JG,$X,K1)},
disableDeselection:f,selected:!!F[K1]}}))}))),A7(E.nextButton!=null,function(){var MF={};
return _.w("div",{class:_.LR("ytChipsShelfViewModelRightArrowContainer",(MF.ytChipsShelfViewModelRightArrowContainerIsHidden=U,MF))},GbG(E.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:O}}))})))};
iOA=function(){return TU9&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
zJs=function(v,E){if(!((E==null?0:E.entitySelectorType)&&(E==null?0:E.entityKey)))return{};switch(E.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return v=_.qgQ(v,E.entityKey),v=v==null?void 0:v.value,E=!1,v==="CAPTIONS_UNAVAILABLE"&&(E=!0,v=""),Object.assign({},!!v&&{selectionText:{content:v}},{isSelected:!!v},!!v&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:E});default:return{}}};
tdE=function(v,E,n,f,x){v=E?v.switchOffCommand:v.switchOnCommand;if(f&&x)RJ$(v,n,x);else{var y,Q;(y=_.wJ({elementsCommand:v}))==null||(Q=y.onclick)==null||Q.call(y,n)}};
RJ$=function(v,E,n){v=_.wJ({elementsCommand:v,additionalCommandArgs:{commandController:{onSuccess:function(){n(!1)},
onServerError:function(){n(!1)}}}});
if(v==null?0:v.onclick)v.onclick(E),n(!0)};
vuy=function(v){if(v)return _.C(v,BSA)};
Eu1=function(v){v=v.selectElementClass;var E={};v=_.LR("checkbox-shape-wiz__checkbox",v,(E["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!v,E));return _.w("div",{class:v,"aria-hidden":"true"},_.w(_.B8,{icon:_.Z("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.B8,{icon:_.Z("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
nuA=function(v){var E=v.name;var n=v.onChange;var f=v.onClick;var x=v.checked===void 0?!1:v.checked;var y=v.labelRenderable;var Q=v.hasLeadingLabel;var e=v.labelClass;var F=v.isCompact;var b=v.selectElementClass;var l=v.disableHorizontalPadding;v="checkbox"+_.ZE(_.CU);var r=_.Ig(),a=_.ij(function(d){f==null||f(d);return!1}),M=_.ij(function(d){r.value.checked=x;
n==null||n(d);return!1}),U={};
e=_.LR("checkbox-shape-wiz",e,(U["checkbox-shape-wiz--compact"]=!!F,U["checkbox-shape-wiz--disable-horizontal-padding"]=!!l,U));return _.w("checkbox-shape",null,_.w("label",{class:e},_.w("input",{el:r,class:"checkbox-shape-wiz__input",id:v,checked:x,name:E,type:"checkbox","on:change":M,"on:click":a}),A7(!Q,function(){return Eu1({isLeading:!0,selectElementClass:b})}),A7(y,function(){return _.w("div",{class:"checkbox-shape-wiz__label"},y==null?void 0:y())}),A7(Q,function(){return Eu1({isLeading:!1,
selectElementClass:b})})))};
ouX=function(v){var E=v.useCheckIcon===void 0?!1:v.useCheckIcon;var n=v.selectElementClass;v=E?"CHECK":"CIRCLE";var f="",x=_.Z("radio_shape_filled_icon_manual_setting_killswitch");x&&(f=E?"CHECK":"CIRCLE_FILLED");var y={};n=_.LR("radio-shape-wiz__radio",n,(y["radio-shape-wiz__radio--check-icon"]=!!E,y["radio-shape-wiz__radio--radio-default-style"]=!n,y));return x?_.w("div",{class:n,"aria-hidden":"true"},_.w(_.B8,{icon:v}),_.w(_.B8,{icon:f,active:!E})):_.w("div",{class:n,"aria-hidden":"true"},_.w(_.B8,
{icon:v}),_.w(_.B8,{icon:v,active:!E}))};
fy9=function(v){function E(){var L;((L=_.P().resolve(_.jp(_.cT)))==null?0:L.isKeyBoardInUse())&&Y.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function n(){Y.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var f=v.name;var x=v.onChange;var y=v.onClick;var Q=v.checked===void 0?!1:v.checked;var e=v.labelRenderable;var F=v.useCheckIcon;var b=v.hasLeadingLabel;var l=v.labelClass;var r=v.isCompact;var a=v.selectElementClass;var M=v.ariaLabel;var U=v.className;v=rB(function(){return"radio"+_.ZE(_.CU)});
var d=_.Ig(),Y=_.Ig(),V=_.ij(function(L){d.value.checked=Q;x==null||x(L);return!1}),O=_.ij(function(L){y==null||y(L);
return!1}),T=["radio-shape-wiz"];
U&&T.push(U);U={};l=_.LR("radio-shape-wiz__label-container",l,(U["radio-shape-wiz--compact"]=!!r,U));Xo(function(){document.activeElement===d.value&&E()});
_.l5(function(){var L=d.value;L.addEventListener("focusin",E);L.addEventListener("focusout",n);return function(){L.removeEventListener("focusin",E);L.removeEventListener("focusout",n)}});
return _.w("radio-shape",{class:T.join(" ")},_.w("input",{el:d,class:"radio-shape-wiz__input",id:v,"prop:checked":Q,name:f,type:"radio","on:change":V,"on:click":O,"aria-label":M}),_.w("label",{class:l,for:v,el:Y},A7(!b,function(){return ouX({checked:Q,useCheckIcon:F,isLeading:!0,selectElementClass:a})}),A7(e,function(){return _.w("div",{class:"radio-shape-wiz__label",
"aria-hidden":M?"true":"false"},e==null?void 0:e())}),A7(b,function(){return ouX({checked:Q,
useCheckIcon:F,isLeading:!1,selectElementClass:a})})))};
xcs=function(v,E){return!!(E&&(v.leadingImage||v.leadingAccessory)||!E&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.selectionText))};
pJs=function(v){var E=v.data;var n=v.isLeading;var f=v.hideSelectionTextChevron;if(xcs(E,n)){var x=_.LR("yt-list-item-view-model-wiz__button-container");v={};var y=_.LR("yt-list-item-view-model-wiz__image-container",(v["yt-list-item-view-model-wiz__leading"]=n,v["yt-list-item-view-model-wiz__trailing"]=!n,v)),Q=n?E.leadingImage:E.trailingImage,e=_.LR("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");v={};var F=_.LR("yt-list-item-view-model-wiz__accessory",(v["yt-list-item-view-model-wiz__leading"]=
n,v["yt-list-item-view-model-wiz__trailing"]=!n,v)),b=!!E.selectionText,l=cNs(E.listItemIconAfterSelectionText);return function(){var r;return _.w(_.gF,null,A7(Q,function(){return _.w("div",{class:y,"aria-hidden":"true"},_.w(_.UZ,{data:Q,alt:"",preserveWidth:!0,preserveHeight:!0,className:e}))}),A7(n&&E.leadingAccessory,function(){return _.w("div",{class:y},yN9(E.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:e}}))}),A7(!n&&E.trailingButton,function(){return _.w("div",{class:x},yN9(E.trailingButton,
{buttonViewModel:{className:F}}))}),A7(!n&&((r=E.trailingButtons)==null?void 0:r.buttons),function(){var a;
return _.w("div",{class:x},yN9((a=E.trailingButtons)==null?void 0:a.buttons,{buttonViewModel:{className:F},accountLinkButtonViewModel:{className:F},switchButtonViewModel:{className:F},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:F}}))}),A7(!n&&b,function(){return _.w(_.gF,null,_.w(_.nh,{text:E.selectionText,
className:_.LR("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),A7(!f,function(){return _.w(_.B8,{icon:l,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
cNs=function(v){switch(v){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
QM9=function(v){return v.title||v.subtitle?function(){return _.w("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.w("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},A7(v.title,function(){return _.w(_.nh,{text:v.title,className:"yt-list-item-view-model-wiz__title"})})),A7(v.subtitle,function(){return _.w(_.nh,{text:v.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.w(_.gF,null)}};
FT1=function(v){function E(){var $X;(($X=_.P().resolve(_.jp(_.cT)))==null?0:$X.isKeyBoardInUse())&&xX.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function n(){xX.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var f=v.data;var x=v.isMenuItem;var y=v.isCompact;var Q=v.onTap;var e=v.trailingAccessory;var F=v.hideSelectionTextChevron;var b=v.disabled;var l=v.inPopup;var r=v.disableHorizontalPadding;var a=v.isOverlay;v=hEX(function($X){return zJs($X,f)});
var M=_.Z("enable_web_shorts_captions_language_command")?Object.assign({},f,v):f;v=!(M.isSelected===void 0||!M.selectionStyle||M.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var U=(_.dQ(M.rendererContext)||Q)&&!v,d=_.dQ(M.rendererContext)||v;b=!!M.isDisabled||!!b;var Y={};a=_.LR("yt-list-item-view-model-wiz",(Y["yt-list-item-view-model-wiz--is-overlay"]=!!a,Y));Y={};var V=_.LR("yt-list-item-view-model-wiz__label",(Y["yt-list-item-view-model-wiz__container"]=!v,Y["yt-list-item-view-model-wiz__container--disabled"]=
b,Y["yt-list-item-view-model-wiz__container--has-subtitle"]=!!M.subtitle,Y["yt-list-item-view-model-wiz__container--compact"]=!!y,Y["yt-list-item-view-model-wiz__container--tappable"]=U,Y["yt-list-item-view-model-wiz__container--in-popup"]=!!l,Y));b={};b=_.LR("yt-list-item-view-model-wiz__container",(b["yt-list-item-view-model-wiz__container--tappable"]=d,b["yt-list-item-view-model-wiz__container--compact"]=!!y,b["yt-list-item-view-model-wiz__container--in-popup"]=!!l,b["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!r,b));Y=M.leadingImage||M.leadingAccessory;var O=_.LR("yt-list-item-view-model-wiz__image-container",Y?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),T=_.Z("apply_button_role_to_list_item");l=_.Ig();var L=_.Ig(),xX=T?L:l,t=function(){var $X,HI,uE;return _.w(_.gF,null,($X=pJs({data:M,isLeading:!0,hideSelectionTextChevron:!!F}))==null?void 0:$X(),(HI=QM9(M))==null?void 0:HI(),e?_.w("div",{class:"yt-list-item-view-model-wiz__trailing"},e()):(uE=pJs({data:M,isLeading:!1,
hideSelectionTextChevron:!!F}))==null?void 0:uE())},QE=function(){return T?_.w("div",{class:V,
el:L,role:d||U?"button":void 0,tabindex:Q||U?0:void 0,"on:keydown":JG,"on:click":K1},t()):_.w("div",{class:V,el:L},t())},MF={labelRenderable:QE,
isCompact:y,checked:M.isSelected,hasLeadingLabel:!!Y,labelClass:b,selectElementClass:O,disableHorizontalPadding:!!r};_.Iu(l,M.rendererContext);var K1=_.ij(function($X){return void(Q==null?void 0:Q($X))}),JG=_.ql();
_.l5(function(){U&&(xX.value.addEventListener("focusin",E),xX.value.addEventListener("focusout",n));return function(){xX.value&&U&&(xX.value.removeEventListener("focusin",E),xX.value.removeEventListener("focusout",n))}});
y=_.ij(function(){return!1});
return _.w("yt-list-item-view-model",{el:l,class:a,role:x?"menuitem":"listitem",tabindex:T?void 0:Q||U?0:void 0,"on:keydown":T?y:JG,"on:click":T?y:K1},A7(v,function(){return Vp$(M.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.w(XJG,Object.assign({},MF))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.w(e7s,Object.assign({},MF))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.w(e7s,Object.assign({},MF,{useCheckIcon:!0}))}]],function(){return QE()})},function(){return QE()}))};
sMX=function(v,E,n){if(E)return[mcL];switch(v){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Mo];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return n?[Mo]:[wJE,Mo];case "TRANSFER_STATE_PAUSED_BY_USER":return[bN9,Mo];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[lyX,Mo];default:return[mcL]}};
rNE=function(v,E,n,f){return sMX(v,E,f).map(function(x){var y=x.text,Q=x.iconType,e=x.videoAction;x=x.playlistAction;y=y?{content:y}:void 0;Q=Q&&{sources:[{clientResource:{imageName:Q}}]};var F=(0,_.sh.unsafeClone)(n);if(F){var b=_.C(F,_.zy),l=_.C(F,_.RX);b&&e?b.action=e:l&&x&&(l.action=x)}return{title:y,leadingImage:Q,rendererContext:F&&{commandContext:{onTap:{innertubeCommand:F}}}}})};
Pu$=function(v){v=_.K7(v.rendererContext);var E;return(E=_.C(v,_.RX))==null?void 0:E.playlistId};
ayI=function(v){var E;return(E=v.listItems)==null?void 0:E.some(function(n){var f;return _.dQ((f=_.C(n,_.f7))==null?void 0:f.rendererContext)})};
CuQ=function(v){var E=v.data;var n=v.isCompact;var f=v.hideSelectionTextChevron;var x=v.inPopup;v=v.isOverlay;var y=ayI(E)&&x,Q={};return _.w("yt-list-view-model",{class:_.LR("yt-list-view-model-wiz",(Q["yt-list-view-model-wiz--kaios-spat-nav"]=iOA(),Q)),role:y?"menu":"list"},ZN9(E.listItems,{listItemViewModel:{isMenuItem:y,isCompact:n,hideSelectionTextChevron:f,inPopup:x,isOverlay:v},downloadListItemViewModel:{isMenuItem:y,isCompact:n,inPopup:x}}))};
Sh=function(v){var E=_.P().resolve(_.jp(_.aj));return E!=null&&E()?v.darkThemeColorPalette:v.lightThemeColorPalette};
qo=function(v){return{primaryTextColor:U_(v,0),secondaryTextColor:U_(v,1),optionColor:U_(v,2),backgroundColor:U_(v,3),videoBackgroundColor:U_(v,4)}};
U_=function(v,E){if(v){switch(E){case 0:v=v.primaryTitleColor;break;case 1:v=v.secondaryTitleColor;break;case 2:v=v.surgeColor;break;case 3:v=v.section2Color;break;case 4:v=v.section3Color;break;default:return}if(v)return _.p2(v)}};
MXX=function(v){return v?_.Qt(v):""};
SvI=function(v){return(v==null?void 0:v.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
UcG=function(v,E){var n;return"linear-gradient(to bottom, "+((n=E==null?void 0:E.map(function(f){var x=v?f.darkThemeColor:f.lightThemeColor;return x?_.Qt(x)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"}))==null?void 0:n.join(", "))+")"};
qv$=function(v){var E=v.className;var n=v.data;var f=v.isOverlay;var x=v.maxLinesOverride;var y=v.useMediumText;v=_.Ig();var Q=n.description,e=n.alwaysShowTruncationText,F=n.truncationText,b=n.maxLines,l,r=!((l=_.C(n.rendererContext,hF))==null||!l.onTap),a,M,U=(M=(a=_.C(n.rendererContext,_.AF))==null?void 0:a.label)!=null?M:"";l=_.p(iG(!1));var d=l.next().value,Y=l.next().value;_.Iu(v,n.rendererContext);l=_.ij(function(){n.expandOnTap&&Y(!d);return!1});
a={};return _.w("yt-description-preview-view-model",{el:v,class:_.LR("yt-description-preview-view-model-wiz",E,(a["yt-description-preview-view-model-wiz--clickable"]=r,a["yt-description-preview-view-model-wiz--is-overlay"]=f,a)),"on:click":l},A7(Q,function(){var V={};return d?_.w("div",{class:_.LR("yt-description-preview-view-model-wiz__description",(V["yt-description-preview-view-model-wiz__description--medium-text"]=y,V))},_.w(_.nh,{text:Q})):_.w(puE,{text:Q,alwaysShowTruncationText:e,truncationText:F,
maxLines:x!=null?x:b,isOverlay:f,accessibilityLabel:U,useMediumText:y})}))};
dc1=function(v,E,n,f,x){var y=!v.metadata;var Q=E?_.C(v.heroImage,JNE):_.C(v.animatedImage||v.image,JNE);if(!Q)return{size:0};v=Q.style;var e=Q.layoutMode;Q=VFX(ABs(Q));if(E)E=KTF(n,v,e,Q,x);else a:if(y)E=n===1?{size:48}:{size:72};else switch(n){case 1:E={size:72};break a;case 2:E={size:120};break a;default:E=f<4?{size:120}:{size:160}}return E};
KTF=function(v,E,n,f,x){if(!((f==null?0:f.height)&&(f==null?0:f.width)))return{size:0};var y=f.width;f=f.height;if(x)return E==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&y>f?{size:312/Y3$}:E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(n!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||v!==1&&v!==2||E!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&E!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&E!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(E==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||f===y)switch(v){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||f>y)switch(v){case 1:case 3:return{size:240*In$};default:return{size:360*In$}}switch(v){case 1:case 2:return{size:1/Y3$*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.IyQ=function(v){if(!("matchMedia"in window))return _.Kk(Error("Nh")),function(){return!1};
var E=window.matchMedia(v);v=_.p(_.t7(E.matches,void 0,"jLJc8e"));var n=v.next().value,f=v.next().value,x=function(y){f(y.matches)};
E.addEventListener?(E.addEventListener("change",x),_.Fp(function(){E.removeEventListener("change",x)})):E.addListener&&(E.addListener(x),_.Fp(function(){E.removeListener(x)}));
return n};
Yv1=function(v){return v==="IMAGE_BANNER_STYLE_INSET"||v==="IMAGE_BANNER_STYLE_UNKNOWN"};
h7X=function(){var v=_.Z("web_enable_sink_page_header_view_model"),E=v?_.t7:iG;if(!("matchMedia"in window))return _.Kk(Error("Nh")),0;var n=rB(function(){return window.matchMedia("(max-width: 527.9px)")}),f=rB(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),x=rB(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),y=rB(function(){return window.matchMedia("(min-width: 1024px)")}),Q=_.p(E(n.matches)),e=Q.next().value,F=Q.next().value;
Q=_.p(E(f.matches));var b=Q.next().value,l=Q.next().value;Q=_.p(E(x.matches));var r=Q.next().value,a=Q.next().value;E=_.p(E(y.matches));var M=E.next().value,U=E.next().value,d=rB(function(){return function(T){F(T.matches)}}),Y=rB(function(){return function(T){l(T.matches)}}),V=rB(function(){return function(T){a(T.matches)}}),O=rB(function(){return function(T){U(T.matches)}});
_.l5(function(){n.addEventListener?(n.addEventListener("change",d),f.addEventListener("change",Y),x.addEventListener("change",V),y.addEventListener("change",O)):n.addListener&&(n.addListener(d),f.addListener(Y),x.addListener(V),y.addListener(O));var T=function(){n.removeEventListener?(n.removeEventListener("change",d),f.removeEventListener("change",Y),x.removeEventListener("change",V),y.removeEventListener("change",O)):n.removeListener&&(n.removeListener(d),f.removeListener(Y),x.removeListener(V),
y.removeListener(O))};
if(v)_.Fp(T);else return T});
return v?function(){return e()?1:b()?2:r()?3:M()?4:0}:e?1:b?2:r?3:M?4:0};
AN$=function(v){var E=0;v=_.p([v.title,v.metadata,v.actions,v.description,v.attribution]);for(var n=v.next();!n.done;n=v.next())n.value&&E++;return E};
DcA=function(v,E,n){var f=v.image,x=_.C(f,VXX),y=x==null?void 0:x.avatar,Q=_.C(y,_.HT);if(f&&y&&Q){switch(E){case 1:Q.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Q.avatarImageSize="AVATAR_SIZE_XXL";break;default:n<4?Q.avatarImageSize="AVATAR_SIZE_XXL":Q.avatarImageSize="AVATAR_SIZE_XXXL"}_.Z("web_enable_sink_page_header_view_model")&&(_.c8(y,_.HT,Object.assign({},Q)),x.avatar=Object.assign({},y),_.c8(f,VXX,Object.assign({},x)),v.image=Object.assign({},f))}};
HNI=function(v){return v===1||v===2?1:0};
gu$=function(v,E){return v?_.w("div",{class:"page-header-view-model-wiz__scroll-container"},E()):E()};
urE=function(v){var E=v.data;var n=v.noPadding;var f=v.enableBanner;var x=v.cinematicContainerTopbarOffset;var y=v.allowCinematicContainerOverflow;var Q=v.displayAsSidebar;var e=v.displayAsPanel;v=AN$(E);var F=!!E.heroImage,b=!!E.image||!!E.animatedImage,l=!!E.background,r=Q||e?1:h7X(),a=r===1,M=r===2,U=a||M,d=r===4,Y=dc1(E,F,r,v,Q),V={};n=_.LR((V["page-header-view-model-wiz"]=!0,V["page-header-view-model-wiz--no-padding"]=!!n,V["page-header-view-model-wiz--small-top-padding"]=a&&!E.actions||M&&!(b||
F),V["page-header-view-model-wiz--small-bottom-padding"]=U&&!E.actions,V["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!y,V["page-header-view-model-wiz--display-as-sidebar"]=Q,V["page-header-view-model-wiz--display-as-panel"]=e,V));y={};var O=_.LR((y["page-header-view-model-wiz__page-header-headline"]=!0,y["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=Y.allowFullWidth,y)),T=U&&!Y.allowFullWidth;e=(y=a&&(F||b)&&v>0)&&e;M={};e=(M["page-header-view-model-wiz__page-header-title"]=
!0,M["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!y,M["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=y&&!e,M["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=e,M["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=l,M);y={};y=(y["page-header-view-model-wiz__page-header-headline-image"]=!0,y["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
F&&U,y);var L;M={};var xX=(M["page-header-view-model-wiz__page-header-banner-container"]=f,M["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=f&&((L=_.C(E.banner,_.NZG))==null?void 0:L.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",M);L={};L=(L["page-header-view-model-wiz__page-header-content-metadata"]=!0,L["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=l,L);M={};M=(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"]=!!E.metadata||U,M["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!U,M);V={};V=(V["page-header-view-model-wiz__page-header-attribution"]=!0,V["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=l,V);var t={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:l,
maxLinesOverride:a?void 0:1,useMediumText:d},dynamicTextViewModel:{className:_.LR(e)},contentPreviewImageViewModel:{className:_.LR(y),imageSizeConfig:Y},contentMetadataViewModel:{layout:a?1:0,className:_.LR(L),isOverlay:l,useMediumText:d},flexibleActionsViewModel:{layout:HNI(r),className:_.LR(M)},attributionViewModel:{className:_.LR(V),useMediumText:d},decoratedAvatarViewModel:{className:_.LR(y)},cinematicContainerViewModel:{topbarOffset:x},flexibleContainer:{isOverlay:l}};b&&DcA(E,r,v);return _.w("yt-page-header-view-model",
{class:n},A7(l,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-background"},Jy(E.background,t))}),gu$(!!Q,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-content"},A7(f&&(E==null?void 0:E.banner),function(){return _.w("div",{class:_.LR(xX)},Jy(E==null?void 0:E.banner,t))}),_.w("div",{class:O},A7(b,function(){return Jy((E==null?void 0:E.animatedImage)||(E==null?void 0:E.image),t)}),A7(F&&!T,function(){return Jy(E==null?void 0:E.heroImage,t)}),
_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},A7(F&&T,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},Jy(E==null?void 0:E.heroImage,t))}),A7(E==null?void 0:E.title,function(){return Jy(E==null?void 0:E.title,t)}),A7(E.metadata,function(){return Jy(E.metadata,t)}),A7(E.description&&!a,function(){return Jy(E.description,t)}),A7(E.attribution&&!U,function(){return Jy(E.attribution,t)}),A7(E.actions&&!U,function(){return Jy(E.actions,
t)}))),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},A7(E.description&&a,function(){return Jy(E.description,t)}),A7(E.attribution&&U,function(){return Jy(E.attribution,t)}),A7(E.actions&&U,function(){return Jy(E.actions,t)})),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},A7(E.bottomMetadataFlexibleContainer,function(){return Jy(E.bottomMetadataFlexibleContainer,t)})))}))};
ON9=function(v){var E,n=((E=_.P().resolve(_.jp(_.aj)))==null?0:E())&&v.data.darkThemeImage?v.data.darkThemeImage:v.data.image;E=_.w("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.w("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},n?_.w(_.UZ,{data:n,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),jMN(v.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));n=_.w(_.nh,{text:v.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var f=v.data;if(f.bodyText){var x=[];f=_.p(f.bodyText);for(var y=f.next();!y.done;y=f.next())x.push(_.w(_.nh,{text:y.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else x=_.w(_.gF,null);return _.w("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},E,n,x,jMN(v.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.w(_.nh,{text:v.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.w(_.nh,{text:v.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
WTN=function(v){v=(new kFQ).parse(v);return(new Tq).render(v).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(E){var n=E.split(":").map(Number),f=0,x=0;if(n.length===3)n=_.p(n),f=n.next().value,x=n.next().value,n=n.next().value;else if(n.length===2)n=_.p(n),x=n.next().value,n=n.next().value;else if(n.length===1)n=_.p(n).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(f*3600+x*60+n)+'" role="button">'+E+"</span>"})};
$cE=function(v){v=_.p(v.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var E=v.next(),n={};!E.done;n={clickHandler$jscomp$4:void 0},E=v.next()){E=E.value;n.clickHandler$jscomp$4=function(x){x=Number(x.target.getAttribute("data-time"));if(isNaN(x))throw Error("Ph");var y=document.querySelector("video");y&&(y.currentTime=x)};
var f=function(x){return function(y){y.key!=="Enter"&&y.key!=="Space"||(0,x.clickHandler$jscomp$4)(y)}}(n);
E.setAttribute("tabindex","0");E.removeEventListener("click",n.clickHandler$jscomp$4);E.removeEventListener("keydown",f);E.addEventListener("click",n.clickHandler$jscomp$4);E.addEventListener("keydown",f)}};
LTs=function(){return _.w("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.w(KU,{percentWidth:100}),_.w(KU,{animationDelay:200}),_.w(KU,{animationDelay:400}),_.w(KU,{animationDelay:600}),_.w(KU,{animationDelay:800,percentWidth:60}),_.w("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.w(KU,{percentWidth:100}),_.w(KU,{animationDelay:200}),_.w(KU,{animationDelay:400}),_.w(KU,{animationDelay:600,percentWidth:50}))};
KU=function(v){return _.w("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(v.percentWidth===void 0?100:v.percentWidth)+"%"},_.w("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(v.animationDelay===void 0?0:v.animationDelay)+"ms"}))};
GF$=function(){var v=_.p(_.t7(function(){return""},void 0,"v2wS5e")),E=v.next().value;
return[function(){return E()()},
v.next().value]};
iNE=function(v){v=v===void 0?{}:v;return{title:_.HR(v.localizedOptInBannerTitleText===void 0?"":v.localizedOptInBannerTitleText),titleLength:19,subtitle:_.HR(v.localizedOptInMessage===void 0?"":v.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.HR(_.tQ("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:_.HR(_.tQ("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:[TZE]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
z79=function(v,E){v=v?eJN(v):"";E!==void 0&&isFinite(E)?E===0?E=_.tQ("UPDATING",void 0,"Updating..."):(E=UsX(new Date(E),new Date),E=_.tQ("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var n="";v&&E&&(n=" \u2022 ");return _.HR(v+n+E)};
BZN=function(v,E,n,f,x,y){E=E===void 0?0:E;var Q=R79[E],e=Q.title,F=Q.iconType,b=Q.topButtonRenderer,l=Q.sectionClientVE;Q=Q.videoClientVE;var r;if(E!==1||v.length){n=[];v=_.p(v);for(f=v.next();!f.done;f=v.next()){var a=f.value;if(xbE(a))n.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:a.videoEntity.videoId,title:gj(a.videoEntity.title),shortBylineText:gj(a.channelEntity.title),thumbnail:a.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:a.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.tQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Q}}}}}});else if(fOX(a)){f=n;var M=f.push;var U=void 0,d=void 0,Y=void 0,V=void 0,O=void 0,T=void 0,L=void 0,xX=void 0,t=a.mainPlaylistEntity.playlistId,QE=a==null?void 0:(xX=a.mainPlaylistEntity)==null?void 0:(L=xX.thumbnailStyleData)==null?void 0:(T=L[0])==null?void 0:(O=T.value)==null?void 0:(V=O.collageThumbnail)==null?void 0:V.coverThumbnail;V=cTX(t);if(!_.Z("enable_offline_playlist_page")&&
(a==null?0:(Y=a.mainPlaylistEntity)==null?0:Y.videos)){b:{Y=a==null?void 0:(d=a.mainPlaylistEntity)==null?void 0:d.videos;d=_.dG().getState().entities;if(Y!=null&&Y.length&&d)for(Y=_.p(Y),O=Y.next();!O.done;O=Y.next())if(O=_.Of(O.value).entityId,(O=JSON.parse(O).videoId)&&T7s(d,O)==="TRANSFER_STATE_COMPLETE"){d=O;break b}d=""}d!==void 0&&(V=rG(_.dG().getState(),d),V=_.DI(d,t,void 0,void 0,V))}d=pXL(_.tQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),cTX(t));a=t&&QE&&d?{playlistId:t,navigationEndpoint:V,
viewPlaylistText:d,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:QE}},title:gj(a.mainPlaylistEntity.title),shortBylineText:gj(a==null?void 0:(U=a.channelEntity)==null?void 0:U.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:tX9,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:t,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.tQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Q}}}:
void 0;M.call(f,{gridPlaylistRenderer:a})}}Q={gridRenderer:{items:n}};E===1&&(r=z79(x,y))}else if(f){var MF=_.HR((M=n==null?void 0:n.localizedPromptMessage)!=null?M:"");Q={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.HR(_.tQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.MOF}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.HR(_.tQ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};r=z79(x,y)}else MF=_.HR(_.tQ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Q={};return{contents:[{shelfRenderer:{title:e,titleAnnotation:r,icon:{iconType:F},subtitle:MF,content:Q,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:b}]}}}}],loggingDirectives:{clientVeSpec:{uiType:l}}}};
vBX=function(v,E,n,f,x,y,Q,e){n=n===void 0?{}:n;f=f===void 0?!1:f;x=x===void 0?!1:x;y=y===void 0?!1:y;Q=Q===void 0?0:Q;e=e===void 0?-Infinity:e;if(!E.length&&!v.length&&!f)return x?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:oTE(n)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.HR(_.tQ("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 F=[];v.length&&F.push(BZN(v,0));f?F.push(BZN(E,1,n,y,Q,e)):x&&F.push({contents:[{statementBannerRenderer:iNE(n)}]});(f&&E.length||v.length)&&F.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.HR(_.tQ("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 F.map(function(b){return{itemSectionRenderer:b}})};
dN=function(v,E){if(typeof v!=="object")return null;v=_.p(Object.entries(v));for(var n=v.next();!n.done;n=v.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;if(n===E)return n;if(f=dN(f,E))return n+"."+f}return null};
IV=function(v){var E=v.content;return(v=v.styleRuns)&&E?{runs:v.map(function(n){var f={text:E.slice(n.startIndex,n.startIndex+n.length)};n.fontColor&&(f.textColor=n.fontColor);return f})}:{simpleText:E}};
oBL=function(v,E,n,f){var x=EB$;f&&(v.quantity=f);if(!v.quantity||!v.maxQuantity)return{};f=v.minusButton;var y=v.plusButton,Q,e,F,b;return{value:v.quantity,maxValue:v.maxQuantity,onChangeCallback:function(l){x(v,l)},
minusLabel:(Q=_.C(f,nB$))==null?void 0:Q.label,minimumReachedLabel:(e=_.C(f,nB$))==null?void 0:e.limitReachedLabel,plusLabel:(F=_.C(y,nB$))==null?void 0:F.label,maximumReachedLabel:(b=_.C(y,nB$))==null?void 0:b.limitReachedLabel,disabled:E,onRemoveCommand:n}};
EB$=function(v,E){var n=v.quantityIncrementerEntityKey;if(n){var f={};f.quantity=E;_.Mu(_.sI("quantityIncrementerEntity",n,f));v.onChangeCommand&&_.lj(v.onChangeCommand)}};
fc1=function(v){return _.Z("kevlar_comments_clone_data_killswitch")?v:_.sh.unsafeClone(v)};
y51=function(v,E){(v=xy$(v))&&(E?c5I.push({command:v,sourceData:{},commandContext:void 0}):_.P().resolve(_.OO).resolveCommand(v))};
xy$=function(v){return _.C(v,_.eg)};
pOF=function(){var v=window.performance.timeOrigin+window.performance.now(),E=(new _.YC).setSeconds(v/1E9);return _.Pz(E,2,_.Z1(v%1E9),0)};
hy=function(v,E){var n=_.C(_.C(v,_.eg),QEQ);n&&(E&&(n.serializedAdditionalMetadata=_.z3(E)),y51(v,!0))};
XOs=function(v){switch(v){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"}};
eF9=function(){return!!_.MX("ID_TOKEN")};
wOI=function(v){return v instanceof Error&&v.cause instanceof FdI&&v.cause.rpcErrorCode!==void 0?!myy.includes(v.cause.rpcErrorCode):!0};
lcL=function(){return _.V1(bvE,{authuser:""+(_.MX("SESSION_INDEX")||0)})};
Ay=function(v,E,n,f){n=n===void 0?"MINI_APP_SDK_API_UNSPECIFIED":n;f=f===void 0?"":f;var x=new _.yc;n={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:f,sdkApi:n};v instanceof Error&&(x.message=v.message,x.name=v.name,v.cause instanceof FdI&&v.cause.rpcErrorCode!==void 0&&(n.rpcErrorCode=v.cause.rpcErrorCode));var y;(y=E.onError)==null||y.call(E,{loggingError:x,metadata:n})};
r5E=function(v,E,n,f){switch(v){case "MINI_APP_SOURCE_GAMESNACKS":return new Ve(E,n,f);default:return new sEI(E,n,f)}};
Pm9=function(v){switch(v){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"}};
ac$=function(v){switch(v){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"}};
ZvN=function(v){switch(v){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"}};
CmF=function(){return Math.floor(Math.random()*4)+1};
MZA=function(v,E,n,f){v=_.p(Object.entries(v));for(var x=v.next(),y={};!x.done;y={message$jscomp$957:void 0},x=v.next()){var Q=_.p(x.value);x=Q.next().value;Q=Q.next().value;y.message$jscomp$957=Q;E.push(setTimeout(function(e){return function(){f(!1);n(e.message$jscomp$957.text)}}(y),y.message$jscomp$957.delayMs));
Number(x)>0&&E.push(setTimeout(function(){f(!0)},y.message$jscomp$957.delayMs-400))}};
SWN=function(v,E){var n=n===void 0?Fay:n;_.Z("mweb_fix_monitor_visibility_after_render")?v&&oj(function(){bYL(v,E,n)}):oj(function(){bYL(v,E,n)})};
KdX=function(v){Uys||(Uys=qW9(new _.ab(1,void 0,void 0,J5s),0));var E=Uys.format(Math.floor(v));E=_.Py==="be"||_.Py==="bg"||_.Py==="es"||_.Py==="et"||_.Py==="hu"||_.Py==="ka"||_.Py==="lv"||_.Py==="pl"||_.Py==="pt-PT"||_.Py==="sq"?E.replace(new RegExp("^(\\d)"+J5s.GROUP_SEP.replace(".","\\.")+"(\\d+("+J5s.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):E;return v>=1E3&&v<=9999&&E[1]==="."&&(_.Py==="sl"||_.Py==="it")?E.replace(".",""):E};
dyF=function(v,E){xz("ytd-button-renderer",{data:v,className:E?E.className:"",overrides:E==null?void 0:E.buttonOverrides},Kp)};
hFE=function(v,E,n,f){if(v)return f=f||v.likeStatus,E?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="LIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:n},defaultText:f==="LIKE"?v.likeCountWithUnlikeText:v.likeCountText,toggledText:f==="LIKE"?v.likeCountText:v.likeCountWithLikeText,defaultNavigationEndpoint:IcG(v,"LIKE"),defaultServiceEndpoint:YW$(v,"LIKE"),toggledServiceEndpoint:YW$(v,"INDIFFERENT"),defaultTooltip:_.JC(v.likeCountTooltipText),toggledTooltip:_.JC(v.likeCountTooltipText),
targetId:v.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="DISLIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:n},defaultText:f==="DISLIKE"?v.dislikeCountWithUndislikeText:v.dislikeCountText,toggledText:f==="DISLIKE"?v.dislikeCountText:v.dislikeCountWithDislikeText,defaultNavigationEndpoint:IcG(v,"DISLIKE"),defaultServiceEndpoint:YW$(v,"DISLIKE"),toggledServiceEndpoint:YW$(v,"INDIFFERENT"),defaultTooltip:_.JC(v.dislikeCountTooltipText),
toggledTooltip:_.JC(v.dislikeCountTooltipText)}};
IcG=function(v,E){if(E==="LIKE")return v.likeCommand;if(E==="DISLIKE")return v.dislikeNavigationEndpoint};
YW$=function(v,E){var n;return(n=v.serviceEndpoints)==null?void 0:n.find(function(f){var x;return((x=_.C(f,_.DE))==null?void 0:x.status)===E})};
A5E=function(v,E){E=E===void 0?{}:E;if(v){var n=!!E.activeState,f=E.iconSize,x=E.className,y=E["aria-hidden$"],Q=E["aria-label$"],e=E.role;E=E.style$+";width: "+((E.width||f)+"px;height: ")+((E.height||f)+"px;color: ")+(E.color+";");v={icon:v};n!==void 0&&(v.active=n);f!==void 0&&(v.size=f);E!==void 0&&(v.style=E);x!==void 0&&(v.className=x);y!==void 0&&(v.ariaHidden=y);Q!==void 0&&(v.ariaLabel=Q);e!==void 0&&(v.role=e);xz("yt-icon",v,Kp)}};
_.HvA=function(v,E,n){return window.spf&&!_.Z("web_disable_spfjs_client")?VZG(v,E,n):DyG(v,E)};
VZG=function(v,E,n){var f=null,x=(new _.z2(function(y,Q){var e={};if(E){e.method=E.method;var F=E.postParams||{};EZE(v,E)&&(F[_.MX("XSRF_FIELD_NAME")]=_.MX("XSRF_TOKEN"));e.postData=_.BG(F);E.type&&(e.type=E.type);F=E.headers}e.headers=iVX(v,F);_.Z("debug_forward_web_query_parameters")&&(v=_.B6N(v,window.location.search));e.experimental_headers=e.headers;e.onError=function(b){b.err&&b.xhr&&(b.err.params={url:b.xhr.responseURL,response:b.xhr.responseText.substr(0,64)});Q(b.err)};
e.onPartDone=function(b){n&&n.call(null,b.part)};
e.onDone=function(b){var l=gBL(b.response,"xsrf_token");gB(window.location.href,v)&&l&&_.Ck("XSRF_TOKEN",l);if(l=gBL(b.response,"service_worker_killswitch"))_.Ck("SERVICE_WORKER_KILLSWITCH",l),u51();y(b.response)};
f=spf.request(v,e)})).then(NPX);
x.thenCatch(function(y){var Q=y instanceof _.Hj,e=y&&y.hasOwnProperty("params")&&y.params.response?y.params.response:"";y instanceof Error&&(e?Q?OR9(y):e===')]}\'\n{"reload":"now"}'?OR9(y):(uMI(y,v,e),jE1(y,e)?_.li(y):_.mb(y)):OR9(y));f&&f.abort()});
return x};
NPX=function(v){if(v.type==="multipart"){var E=v.timing;v=v.parts.reduce(function(n,f){Object.assign(n,f);return n},{});
v.timing=v.timing||{};Object.assign(v.timing,E);v.type="reduced"}return v};
DyG=function(v,E){E=E===void 0?{}:E;var n=null,f=new _.z2(function(x,y){E.onFinish=function(Q){if(Q.readyState===XMLHttpRequest.DONE)if(Q.status===200){if(Q.responseType!=="json"){var e=Q.response;e.substring(0,5)===")]}'\n"&&(e=e.substring(5));try{var F=JSON.parse(e)}catch(b){F=b}}else F=Q.response;F instanceof Error?y(F):(e=gBL(F,"xsrf_token"),gB(window.location.href,v)&&e&&_.Ck("XSRF_TOKEN",e),Q=Q.responseURL,window.performance&&window.performance.getEntriesByName?(e=window.performance.getEntriesByName(Q).pop())?
Q={responseStart:(0,_.gd)()-(e.responseEnd-e.responseStart)}:(Math.random()<.01&&(e=Error("ai"),e.params=Q,_.li(e)),Q={responseStart:-1}):Q={responseStart:0},F.timing=F.timing||{},Object.assign(F.timing,Q),x(F))}else y(Error("$h`"+Q.status))};
(n=_.tM(v,E))||y(Error("$h`"+n.status))});
f.thenCatch(function(x){x instanceof Error&&(uMI(x,v),jE1(x)&&(x.level="WARNING"))});
_.Z("cancel_pending_navs")&&f.thenCatch(function(){n.abort()});
return f};
gBL=function(v,E){var n=v[E],f=v.parts;v.type==="multipart"&&f&&(n=(v=f.find(function(x){return E in x}))&&v[E]);
return n};
uMI=function(v,E,n){var f=v.message||"";E={original:f,url:E};if(n)if(f=f.match(/position:?\s*(\d+)/)){f=f&&Number(f[1])?Number(f[1]):0;var x=Math.max(f-25,0);E.position=f;E.response=n.substring(x,f+25)}else E.response=n.substring(0,50);_.ss(v,E);try{v.message="JSON parse error"}catch(y){}};
jE1=function(v,E){v=v.message||"";v=!!(v.indexOf("<")>=0||v.indexOf("end of ")>=0||v.indexOf("Unterminated string")>=0||v.indexOf("Unexpected EOF"));if(!v&&E)for(var n=E.length,f=!1,x=0;x<n;x++)if(f&&E[x]==="\\")x++;else if(E[x]==='"')f=!f;else if(E[x]==="<"&&!f){v=!0;break}return v};
OvE=function(){return document.documentElement.hasAttribute("dark")};
_.kWA=function(v,E){if(v!=="GFEEDBACK"&&v!=="GUIDED_HELP")_.UO(Error("bi`"+v));else{var n=_.P().resolve(_.jp(_.Y_));if(n&&(n=n.getCurrentPage())&&n.getServiceTrackingParams&&(n=n.getServiceTrackingParams()))for(var f=0,x;x=n[f++];)if(x.service===v){if(v=x.params)for(n=0;f=v[n++];)E[f.key]=f.value;break}}};
_.WdG=function(v){var E=_.Aq();E&&(E=E.getPlayer())&&(E.pauseVideo(),v.playback_id=E.getVideoData().cpn,v.eid=E.getVideoData().eventId,Object.assign(v,E.getFeedbackProductData()))};
$yX=function(){var v={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.MX("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(v.enableAnonymousFeedback=!0);_.MX("SESSION_INDEX")&&(v.authuser=String(_.MX("SESSION_INDEX")));_.Z("enable_pageid_for_feedback")&&_.MX("DELEGATED_SESSION_ID")&&(v.pageId=String(_.MX("DELEGATED_SESSION_ID")));return v};
_.gN=function(v){_.Z("enable_ypc_spinners")&&_.OL(v,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},v])};
_.No=function(v){_.Z("enable_ypc_spinners")&&_.OL(v,"yt-close-popup-action",["yt-loading-renderer"])};
LdE=function(v){return new Promise(function(E,n){_.mG({verifyCommand:{recaptchaToken:v.recaptchaResponse}},{commandController:{onSuccess:function(f,x){x||n("ChallengeService did not return a response.");var y;E({challengeCompleted:(y=x.verified)!=null?y:!1})},
onServerError:function(f,x){n(x)}}})})};
GWs=function(v,E,n,f){E({recaptchaResponse:f}).then(function(x){x.challengeCompleted?_.fE()?(n(3),_.P().resolve(_.OO).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:v}})):n(2):n(4)},function(){n(4)})};
TP9=function(v,E,n){_.CG("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.MX("HL"),function(){var f;(f=window.grecaptcha)==null||f.ready(function(){var x=window.grecaptcha;x?(n(x.render(v,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:GWs.bind(null,v,LdE,E)})),E(1)):E(4)})})};
ivA=function(v,E){return function(){switch(E()){case 0:return v().captchaLoadingMessage;case 1:return v().challengeReason;case 3:return v().captchaSuccessfulMessage;case 2:return v().captchaCookieSetFailureMessage;case 4:return v().captchaFailedMessage;default:return v().challengeReason}}()};
_.uT=function(){if(!zFG){var v=document.querySelector("#player.skeleton");v&&(_.fT(v),zFG=!0)}};
_.tZy=function(){return RFy=jDX()};
Ecy=function(){return _.X(function(v){return BPX!==void 0?v.return():_.m(v,vcX(),0)})};
vcX=function(){return _.X(function(v){if(v.nextAddress==1)return _.m(v,kUG(),2);RFy=v.yieldResult;BPX=_.wh.addLowPriorityJob(vcX,5E3);_.yQ(v)})};
yUs=function(v){var E=E===void 0?ncE:E;var n,f,x=(n=v.responseContext)==null?void 0:(f=n.mainAppWebResponseContext)==null?void 0:f.trackingParam;if(!x){E.increment("MISSING");var y,Q,e,F,b,l;_.li(new _.yc("282054944_a",{vF8:!!((y=v.responseContext)==null?0:(Q=y.mainAppWebResponseContext)==null?0:Q.loggedOut),hGQ:((e=v.responseContext)==null?void 0:e.mainAppWebResponseContext)===void 0,u42:v.responseContext===void 0,eXU:(F=v.playabilityStatus)==null?void 0:F.contextParams,f3Q:(((b=v.streamingData)==
null?void 0:b.formats)||[]).length>0,vmz:(((l=v.streamingData)==null?void 0:l.adaptiveFormats)||[]).length>0,os:!!v.offlineState,cotn:v.cotn}));return 2}n="";try{n=oc9(x)}catch(M){return E.increment("C_ERROR"),_.mb(M),2}try{var r=_.ff9(n);var a=xN1(r)}catch(M){return E.increment("P_ERROR"),_.mb(M),2}a=_.kr(a,cUs,1,_.WV());x=[];a=_.p(a);for(r=a.next();!r.done;r=a.next())f=r.value,r=f.getPath(),n=(0,_.sh.getValueByKeys)(v,r.split(".")),n=String(n===void 0||n===null?"":n),f=f.getValue()||"",y=/[+\-\/_]/g,
n.replace(y,"")!==f.replace(y,"")&&(E.increment("MISMATCH"),_.Z("ab_mis_log_err")&&(n=new _.yc("282054944_p",{yhz:r,g:String(n),e:String(f)}),_.mb(n)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(r)||(r.match(/enforcementMessageViewModel/i)?x.push(3):x.push(2)));if(x.length>0)return Math.max.apply(Math,_.s8(x));E.increment("SUCCESS");return 1};
X99=function(v){var E=new jh;if(v.interpreterJavascript){var n=_.IGQ(v.interpreterJavascript);n=hA(n).toString();var f=new p9E;_.ps(f,6,n);_.Bz(E,1,f,kw)}else v.interpreterUrl&&(n=_.b6(v.interpreterUrl),n=_.c5(n).toString(),f=new _.QvG,_.ps(f,4,n),_.Bz(E,2,f,kw));v.interpreterHash&&_.O_(E,3,v.interpreterHash,kw);v.program&&_.O_(E,4,v.program,kw);v.globalName&&_.O_(E,5,v.globalName,kw);v.clientExperimentsStateBlob&&_.O_(E,7,v.clientExperimentsStateBlob,kw);return E};
kC=function(v){var E={};v=_.p(v.split("&"));for(var n=v.next();!n.done;n=v.next())n=n.value.split("="),n.length===2&&(E[n[0]]=n[1]);return E};
e91=function(v){return Number(v.t)||7200};
HTI=function(){if(_.Z("bg_st_hr"))return"havuokmhhs-0";var v,E=((v=performance)==null?void 0:v.timeOrigin)||0;return"havuokmhhs-"+Math.floor(E)};
FQs=function(){return new Promise(function(v){var E=window.top;E.ntpevasrs!==void 0?v(new Gk(E.ntpevasrs)):(E.ntpqfbel===void 0&&(E.ntpqfbel=[]),E.ntpqfbel.push(function(n){v(new Gk(n))}))})};
mNL=function(v){var E=v.euH.bind(v);_.Vc("yt.aba.att",E);v=v.z2Z.bind(v);_.Vc("yt.aba.att2",v)};
bmN=function(v){switch(_.R5(v.input)){case _.Yt(w9E):var E={};return E.encryptedVideoId=v.innerTubeRequest.externalVideoId,E}return{}};
svX=function(v){switch(_.R5(v.input)){case _.Yt(w9E):if(_.Z("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Yt(Tk):if(_.Z("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&v.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Yt(lfX):var E,n;if(_.Z("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((n=_.C((E=v.config)==null?void 0:E.command,
RnG))==null?0:n.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.PZN=function(v){var E;if(v.playlistVideoRenderer&&((E=v.playlistVideoRenderer)==null?0:E.engagementBar))return rUE(v.playlistVideoRenderer.engagementBar);if(_.C(v,iT)){var n;if(v=(n=_.C(v,iT))==null?void 0:n.engagementBar)return rUE(v)}return""};
rUE=function(v){if(!v)return"";v=_.C(v,_.af1);if(v==null||!v.actions)return"";v=_.p(v.actions);for(v=v.next();!v.done;v=v.next()){v=_.C(v.value,_.ZmN);var E=void 0;if((E=v)==null||!E.itemId)break;return v.itemId}return""};
_.CZN=function(v){var E;if(v.playlistVideoRenderer&&((E=v.playlistVideoRenderer)==null?0:E.videoId))return v.playlistVideoRenderer.videoId;if(_.C(v,iT)){var n,f;if(v=(n=_.C(v,iT))==null?void 0:(f=n.playlistItemData)==null?void 0:f.videoId)return v}return""};
_.M_Q=function(v){var E;if(v.playlistVideoRenderer&&((E=v.playlistVideoRenderer)==null?0:E.voteCount))return v.playlistVideoRenderer.voteCount;if(_.C(v,iT)){var n,f;if(v=(n=_.C(v,iT))==null?void 0:(f=n.playlistItemData)==null?void 0:f.voteCount)return v}return 0};
_.zk=function(v,E){return _.LH(v.entities,"flowStateEntity",E)};
UNN=function(v,E,n,f){var x=void 0;v=_.p(v[E.iconName]||[]);for(var y=v.next();!y.done;y=v.next()){y=y.value;var Q=E.iconSize;var e=E.iconStyle;Q=!Q||Q===y[2];var F=STL[y[0]];f&&f!==y[1]||!Q||e&&e!==F?e=!1:x?(e=STL[y[0]],e=!!E.iconStyle||e==="youtube_outline",Q=x.version<=y[1],e=(!!E.iconSize||y[2]===24)&&e&&Q):e=!0;e&&(x={name:E.iconName,style:STL[y[0]],size:y[2],version:y[1],allowMirroring:!!y[3],url:n(E.iconName,y)})}return x};
qTX=function(v,E,n,f){return v+(""+STL[n[0]]+((f===void 0?0:f)?"_experimental":"")+"/"+E+"/v"+n[1]+"/")+(n[2]+"px.svg")};
RV=function(v){return _.Z("web_bookmark_playlist_save_icon")?"bookmark":v};
JUy=function(v,E){return qTX("https://fonts.gstatic.com/s/i/",v,E)};
KQX=function(v,E){return qTX("https://fonts.gstatic.com/s/i/",v,E,!0)};
dNN=function(v,E){return qTX("https://www.gstatic.com/youtube/img/icons/web/",v,E)};
If9=function(v){var E=v.enabled;var n=v.itemPlaybackModel;var f=v.thumbnailElRef;var x=v.containerElRef;var y=v.options;var Q;_.Xp(function(){var e=x==null?void 0:x.value;var F,b=(F=f())==null?void 0:F.value;F=n();var l=y();if(E&&F&&e&&b&&(l==null?0:l.thumbnail)){var r,a;e={mediaRenderer:{data:F,hostElement:e},lockupElement:e,thumbnailElement:b,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.F$((r=F.inlinePlayerData)==null?void 0:r.onVisible),navigationEndpoint:_.F$((a=F.inlinePlayerData)==
null?void 0:a.onSelect),thumbnail:l.thumbnail,thumbnailOverlays:l.thumbnailOverlays||[],accessibilityText:l.accessibilityText||""},thumbnailSize:l.thumbnailSize,enableRounding:l.enableRounding}}}else e=void 0;if(r=e){var M;(M=Q)==null||iS(M);Q=gQ(r)}});
_.Fp(function(){var e;(e=Q)==null||iS(e)})};
YT9=function(v){v=atob(v);for(var E=[],n=0;n<v.length;n++)E.push(v.charCodeAt(n));return new Blob([new Uint8Array(E)],{type:"image/png"})};
AUX=function(v,E,n,f){f=f===void 0?"INSERTION_POSITION_UNSPECIFIED":f;return v({targetId:E},function(x){var y,Q=(y=x.contents)!=null?y:[];y=n!=null?n:[];var e=h9X(Q);switch(f){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},x,{contents:[].concat(_.s8(Q.slice(0,e)),_.s8(y),_.s8(Q.slice(e+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},x,{contents:[].concat(_.s8(y),_.s8(Q))});case "INSERTION_POSITION_LAST":return Object.assign({},x,{contents:[].concat(_.s8(Q),_.s8(y))});
default:return x}})};
DNA=function(v,E,n,f,x){x=x===void 0?"RELATIVE_INSERTION_POSITION_AFTER":x;return v({targetId:E},function(y){var Q,e=(Q=y.contents)!=null?Q:[];Q=V_X(e,n);if(Q<0)return y;Q=x==="RELATIVE_INSERTION_POSITION_BEFORE"?Q:Q+1;return Object.assign({},y,{contents:[].concat(_.s8(e.slice(0,Q)),_.s8(f),_.s8(e.slice(Q)))})})};
h9X=function(v){var E=v.findIndex(function(n){return _.C(n,_.ty)});
return E>=0?E:v.length};
V_X=function(v,E){return v.map(function(n){return _.C(n,_.HmX)}).findIndex(function(n){return(n==null?void 0:n.targetId)===E})};
Nas=function(v,E,n){return v({targetId:E},function(f){var x,y=(x=f.contents)!=null?x:[];return Object.assign({},f,{contents:gc1(y,n)})})};
gc1=function(v,E){return v.filter(function(n){var f=E.includes;a:{n=_.p(Object.values(n));for(var x=n.next();!x.done;x=n.next())if((x=x.value)&&x.targetId){n=x.targetId;break a}n=""}return!f.call(E,n||"")})};
_.Bj=function(v,E){return{engagementPanelSectionListRenderer:{panelIdentifier:v,identifier:E,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
ue$=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
jvy=function(v){var E=ue$(v);if(E==null?0:E.length)return E;v.loadModule("captions");return ue$(v)};
OmX=function(v,E,n){if(v.getVideoData){var f,x=(f=jvy(v))==null?void 0:f.find(function(y){return y.languageCode===n});
f=_.$s("/youtube/app/player_caption_language_entity_key","stringEntity",2);E.dispatch(_.n7("stringEntity",f,{key:f,value:(x==null?void 0:x.displayName)||""}));x?v.setOption("captions","track",x):(v.setOption("captions","stickyLoading",{}),v.setOption("captions","track",{}))}};
kEG=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
WQA=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
$NE=function(v){var E=WQA(v);if(E==null?0:E.length)return E;v.loadModule("captions");return WQA(v)};
LQX=function(v){var E=v.getOption("captions","track");if(E)return E;v.loadModule("captions");return v.getOption("captions","track")};
GEX=function(v){var E=$NE(v);if(E!=null&&E.length){var n=LQX(v);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.tQ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(n==null?0:n.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.s8(E.map(function(f){return{listItemViewModel:{title:{content:f.displayName},
isSelected:f.languageCode===(n==null?void 0:n.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:f.languageCode}}]}}}}}}}})))}}}}}}}}};
R91=function(v){return new Promise(function(E,n){if(v===void 0)_.mb(Error("Ci"),"ERROR"),n(Error("Ci"));else{n=new _.TaE;var f=_.imL();n=n.init();var x=_.z9N(_.MX("YPC_MB_URL"),!0);Promise.all([n,x]).then(function(){var y=payments.business.integration.ClientTokenFactory.createClientToken(v,f);E(y)})}})};
v1X=function(v,E,n,f,x,y,Q){var e=_.Sw();n=n.replace(/-/g,"+").replace(/_/g,"/");var F=_.Ef().get("hl"),b=_.v_(_.C2),l=E==null?void 0:E.element;l&&_.gN(l);t_N(E,!0);_.BaF(b,n,e.resolve,function(){l&&_.No(l)},function(r){l&&_.No(l);
e.reject(r)},F,f?function(r){f&&_.Mq(v,f,{backend_analytics:r})}:void 0,e.resolve,x,y,Q);
return e.promise};
t_N=function(v,E){!(v=v==null?void 0:v.element)||v.tagName!=="YT-BUTTON-RENDERER"&&v.tagName!=="YTD-BUTTON-RENDERER"||(v.disabled=E)};
E1E=function(){var v=_.tQ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.HR(v),actionButton:{buttonRenderer:vTI()}}},popupType:"TOAST"}};
n1I=function(){var v=_.tQ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.HR(v),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
o1E=function(v){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:v}]}}};
Ey=function(v,E,n,f){var x;return _.X(function(y){if(y.nextAddress==1)return _.vW(y,2),_.m(y,v,4);if(y.nextAddress!=2)return(x=_.fC(E.getState().entities).length>0)?y.return({title:_.HR(_.tQ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.HR(_.tQ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:BUL()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
y.return(ETE(n,f));_.cW(y);return y.return(ETE(n,f))})};
fPy=function(v,E){return E?E==="PPSV"||RAX(v,E):!1};
x5L=function(v){v.responseContext||(v.responseContext={});v.responseContext.maxAgeSeconds=0;return v};
or=function(v){var E;return _.X(function(n){return n.nextAddress==1?_.m(n,c3N(v,"service:topbar:fallback"),2):(E=n.yieldResult)&&_.ne(E)?n.return(x5L(_.ne(E))):n.return()})};
y3L=function(v){var E;return _.X(function(n){return n.nextAddress==1?_.m(n,c3N(v,"service:downloads_settings:fallback"),2):(E=n.yieldResult)&&_.ne(E)?n.return(E):n.return()})};
c3N=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return v?_.m(f,v.get(E),2):f.return();n=f.yieldResult;return!n||!_.ne(n)||!isNaN(Number(n.data.expireTimestampMs))&&n.isExpired()?f.return():f.return(n)})};
pay=function(v){var E=_.P().resolve(fe).getState().entities;return v.playlistId?fPy(E,v.playlistId):!1};
QA9=function(v,E){var n;if(E==null?0:(n=E.requestTemplate)==null?0:n.panelId)v.panelId=E.requestTemplate.panelId;var f;if(E==null?0:(f=E.requestTemplate)==null?0:f.params)v.params=E.requestTemplate.params};
e2E=function(){if(XaX)return XaX();var v=!_.Z("idb_response_store_auth_killswitch"),E={};XaX=HA("yt-it-response-store",{objectStores:(E.ResponseStore={addedAtVersion:1},E),shared:!v,upgrade:function(n,f){f(1)&&(n=Z$(n,"ResponseStore",{keyPath:["key","clientName"]}),CZ(n,"byExpiration","expireTimestampMs"),CZ(n,"byInterface","clientName"))},
version:1});return XaX()};
FY$=function(v){return _.KE(e2E(),v)};
waX=function(v,E){var n;return _.X(function(f){return f.nextAddress==1?_.m(f,_.Du(),2):(n=f.yieldResult)?f.return(new m5E(v,E,n)):f.return()})};
bA$=function(v){var E=Object.keys(v)[0];if(E)return v.screenExit&&(E=E+";"+v.screenExit.screen),E};
lP$=function(v){var E=new Map;v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,n!=null&&(E.has(n.taskType)||E.set(n.taskType,[]),E.get(n.taskType).push(n));return E};
sAA=function(v){return!isNaN(v)&&v>0};
r3I=function(v){v=[].concat(_.s8(v)).sort(function(n,f){return n-f});
var E=Math.floor(v.length/2);return v.length%2?v[E]:(v[E-1]+v[E])/2};
ZAN=function(v,E){_.Vc("yt.logging.errors.log",_.mb);SZQ();PtX(YZA(),E);window.onerror=v;aPG=Ud$;window.addEventListener("unhandledrejection",function(n){if(n.reason instanceof Error){var f=n.reason;_.ss(f,{source:"unhandledrejection"});f.name==="AbortError"&&(f.level="WARNING")}Ud$(n.reason);n.preventDefault()})};
_.CtE=function(v){return v.a11y.ephemeralAction||null};
_.MEQ=function(v){var E,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF,K1,JG,$X,HI,uE,WI,bX,n0,qi,fl,yP,IF,QP,T3,aK,yE;return _.X(function(Cl){if(Cl.nextAddress==1)return _.m(Cl,_.BR(v,{mode:"readonly",enableRetries:!0},function(VP){return vy(VP,"playbackData").then(function(JR){var d1=JR.map(function(kX){return kX.transfer}).filter(function(kX){return!!kX}),$w=JR.map(function(kX){return kX.offlineVideoPolicy}).filter(function(kX){return!!kX}),y6=JR.filter(function(kX){return!!kX.key}).map(function(kX){return _.$s(_.Of(kX.key).entityId,
"downloadStatusEntity")});
d1=vy(VP,"transfer",d1);$w=vy(VP,"offlineVideoPolicy",$w);y6=vy(VP,"downloadStatusEntity",y6);var eo=d1.then(function(kX){kX=kX.reduce(function(lX,cb){(cb==null?0:cb.offlineVideoStreams)&&lX.push.apply(lX,_.s8(cb.offlineVideoStreams));return lX},[]).filter(function(lX){return!!lX});
return vy(VP,"offlineVideoStreams",kX)});
return CE.all([d1,$w,eo,y6]).then(function(kX){var lX=_.p(kX);kX=lX.next().value;var cb=lX.next().value;var Zz=lX.next().value;lX=lX.next().value;return[JR,kX,cb,Zz,lX]})})}),2);
if(Cl.nextAddress!=3)return E=Cl.yieldResult,_.m(Cl,_.BR(v,{mode:"readonly",enableRetries:!0},function(VP){return vy(VP,"mainDownloadsListEntity").then(function(JR){var d1,$w;return($w=(d1=JR[0])==null?void 0:d1.downloads)!=null?$w:[]})}),3);
n=Cl.yieldResult;f=_.p(E);x=f.next().value;y=f.next().value;Q=f.next().value;e=f.next().value;F=f.next().value;b=x;l=y;r=Q;a=e;M=F;U={};d={};Y={};V={};O={};T=[];L=_.p(l);for(xX=L.next();!xX.done;xX=L.next())(t=xX.value)&&(U[t.key]=t);QE=_.p(r);for(MF=QE.next();!MF.done;MF=QE.next())(K1=MF.value)&&(d[K1.key]=K1);JG=_.p(M);for($X=JG.next();!$X.done;$X=JG.next())(HI=$X.value)&&(Y[HI.key]=HI);uE=_.p(a);for(WI=uE.next();!WI.done;WI=uE.next())(bX=WI.value)&&(V[bX.key]=bX);n0=_.p(n);for(qi=n0.next();!qi.done;qi=
n0.next())fl=qi.value,yP=void 0,O[(yP=fl.videoItem)!=null?yP:""]=!0,fl.videoItem&&(QP=IF=void 0,T3=(QP=(IF=_.Of(fl.videoItem))==null?void 0:IF.entityId)!=null?QP:"",T.push({externalVideoId:T3}));aK=b.filter(function(VP){if(!VP||!VP.key||!VP.offlineVideoPolicy)return!1;VP=_.Of(VP.key).entityId;VP=_.$s(VP,"downloadStatusEntity");var JR;return!(VP&&((JR=Y[VP])==null?void 0:JR.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
yE=aK.map(function(VP){var JR=U[VP.transfer],d1=[];if(JR==null?0:JR.offlineVideoStreams)for(var $w=_.p(JR.offlineVideoStreams),y6=$w.next();!y6.done;y6=$w.next())(y6=V[y6.value])&&d1.push(y6);$w=d[VP.offlineVideoPolicy];y6=O;var eo=VP==null?void 0:VP.playerResponseTimestamp,kX=_.Of($w.key).entityId;VP=_.$s(kX,"mainVideoEntity");if($w.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var lX="OFFLINE_VIDEO_STATE_DISABLED";$w.expirationTimestamp&&Number($w.expirationTimestamp)<Date.now()/1E3&&(lX="OFFLINE_VIDEO_STATE_EXPIRED")}else if($w.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")lX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(JR==null?void 0:JR.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":lX="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":lX="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":lX="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":lX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":lX="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":lX="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:lX="OFFLINE_VIDEO_STATE_UNKNOWN"}if(lX==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(JR==null?void 0:JR.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":lX="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":lX="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":lX=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}kX={id:kX,videoState:lX};if(JR==null?0:JR.cotn)kX.cotn=JR.cotn;if(JR==null?0:JR.maximumDownloadQuality)kX.selectedVideoQuality=JR==null?void 0:JR.maximumDownloadQuality;if(JR==null?0:JR.lastProgressTimeMs)kX.lastProgressTimeMs=JR.lastProgressTimeMs;eo&&(kX.playerResponseSavedTimeMs=String(Number(eo)*1E3));JR=String;eo=0;d1=_.p(d1);for(lX=d1.next();!lX.done;lX=d1.next())if(lX=lX.value,lX.streamsProgress){lX=_.p(lX.streamsProgress);for(var cb=lX.next();!cb.done;cb=
lX.next()){var Zz=void 0;eo+=Number((Zz=cb.value.numBytesDownloaded)!=null?Zz:0)}}kX.downloadedBytes=JR(eo);kX.selectedOfflineMode=y6[VP]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";$w.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(kX.offlinePlaybackDisabledReason=$w.offlinePlaybackDisabledReason);return kX});
return Cl.return({offlineVideos:yE,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:T}}})})};
S7E=function(){var v;return _.X(function(E){return E.nextAddress==1?_.m(E,_.zx(),2):(v=E.yieldResult)?E.return(_.MEQ(v)):E.return({state:"PES Unavailable"})})};
J3G=function(){var v,E,n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,_.zx(),2);if(x.nextAddress!=3)return(v=x.yieldResult)?_.m(x,U5I(v),3):x.return({state:"PES Unavailable"});E=x.yieldResult;n={};f=E.reduce(function(y,Q){y[Q.key]=Q;return y},n);
return x.return(q7s(f))})};
q7s=function(v){for(var E={},n=[],f=_.p(Object.keys(v)),x=f.next();!x.done;x=f.next()){var y=x.value;x=v[y];var Q=void 0;if(((Q=x)==null?void 0:Q.entityType)==="mainVideoEntity"){delete v[y];var e=x.data;x={};if(e){var F=void 0;Q=(F=e.videoId)!=null?F:"vid-"+y;y=v;x.video=e;delete x.video.formattedDescription;delete x.video.thumbnail;e.owner&&(F=y[e.owner],F==null?0:F.data)&&(delete y[F.key],x.video.owner=F.data,delete x.video.owner.avatar);if(e=e.downloadState)if(F=y[e],F==null?0:F.data)if(delete y[e],
e=F.data.playbackData)if(F=y[e],F!=null&&F.data){delete y[e];e=F.data;delete e.playerResponseJson;x.playbackData=e;if(e.transfer&&(F=y[e.transfer],F==null?0:F.data)){delete y[F.key];var b=F.data;x.transfer=b;F=[];b=_.p(b.offlineVideoStreams||[]);for(var l=b.next();!l.done;l=b.next())if(l=y[l.value])delete y[l.key],F.push(l.data);F&&(x.streams=F)}(e=e.offlineVideoPolicy)&&(e=y[e])&&e.data&&(delete y[e.key],x.offlineVideoPolicy=e.data)}E[Q]=x}}else x&&x.entityType==="offlineOrchestrationActionWrapperEntity"&&
x.data&&(delete v[x.key],Q=x.data,y=void 0,n.push({id:Q.rootActionId,type:((y=Q.actionProto)==null?void 0:y.actionType)||"",entity:x}))}E.wrapperEntities=n;Object.keys(v).length>0&&(E.unknownKeys=v);return E};
KYE=function(){var v,E,n,f,x,y,Q,e,F;return _.X(function(b){if(b.nextAddress==1)return v=!!(new _.P7("")).expiringStorage_,f=!!((E=_.n1.crypto)==null?0:(n=E.subtle)==null?0:n.importKey),x=!!_.n1.BroadcastChannel,y=!!_.n1.navigator.locks,_.m(b,vsE(),2);Q=b.yieldResult;e=v&&f&&x&&y&&Q;F={isSupported:e};if(e)return b.return(F);F.missingBrowserFeatures=[];Q||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");v||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
f||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");x||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");y||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return b.return(F)})};
d5Q=function(){var v;return!((v=xJ?xJ:null)==null||!v.window)};
_.Y7F=function(v){if(I$()&&_.eyE("Chromium")>=120){var E=_.IPX().mediaSession;try{E.setActionHandler("enterpictureinpicture",function(){v()})}catch(n){}}};
_.c_=function(){return!!window.documentPictureInPicture&&I$()};
h2X=function(v){for(var E=[],n=_.p(document.styleSheets),f=n.next(),x={};!f.done;x={node$jscomp$724:void 0},f=n.next())x.node$jscomp$724=f.value.ownerNode,x.node$jscomp$724&&(x.node$jscomp$724 instanceof HTMLStyleElement||x.node$jscomp$724 instanceof HTMLLinkElement)&&E.push(new Promise(function(y){return function(Q){var e=y.node$jscomp$724.cloneNode(!0);e.onload=function(){Q()};
e.onerror=function(){_.li(Error("ej"));Q()};
v.document.head.appendChild(e)}}(x)));
return Promise.all(E)};
kzG=function(v){var E=[_.G6(A3E),_.G6(VEX),_.G6(D59)];HA1(window.document.documentElement,v.document.documentElement,[_.G6(g1A),_.G6(NDX),_.G6(uFX),_.G6(jAX),_.G6(OAE)]);HA1(window.document.body,v.document.body,E)};
HA1=function(v,E,n){v=_.p(v.attributes);for(var f=v.next();!f.done;f=v.next())if(f=f.value)try{_.H5(n,E,f.name,f.value)}catch(x){}};
$5L=function(v,E){v=new _.yw(v.document.documentElement);v.start(WYN,E);return v};
LYX=function(v){var E=v.document.documentElement;E.addEventListener("click",function(n){p6y(E,n)});
E.addEventListener("touchstart",function(n){mYQ(n)});
E.addEventListener("mousedown",function(n){mYQ(n)})};
TDA=function(v,E,n,f){f=f===void 0?!1:f;E=new GzN(E||v,n||v);return{x:v.x+((f===void 0?0:f)?E.lengthX*-1:E.lengthX)*.2,y:v.y+((f===void 0?0:f)?E.lengthY*-1:E.lengthY)*.2}};
iAQ=function(v){if(!v)return!1;var E=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",n,f,x,y=(x=(n=v.errorScreen)==null?void 0:n.playerLegacyDesktopYpcTrailerRenderer)!=null?x:(f=v.errorScreen)==null?void 0:f.ypcTrailerRenderer;return!!E||!!y};
_.z2y=function(v,E){if(!v)return!1;var n,f=(n=v.errorScreen)==null?void 0:n.playerLegacyDesktopYpcOfferRenderer,x;E=!!(E==null?0:(x=E.playerOverlayRenderer)==null?0:x.gatedActionsOverlayRenderer);return!!iAQ(v)||!!f||!!E};
R2Q=function(v){return v.includes("gclid")||v.includes("gad_source")};
v3G=function(v){var E=[],n=0;return{push:function(f){E[n]=f;n=(n+1)%v},
iterate:function(){return function x(){var y,Q,e,F;return _.tEE(x,function(b){switch(b.nextAddress){case 1:_.ol(b,2),y=E.length,Q=0;case 4:if(!(Q<y)){b.jumpTo(2);break}e=n+Q;F=_.BDE;return _.m(b,E[e%y],7);case 7:F(b.yieldResult);Q++;b.jumpTo(4);break;case 2:_.nI(b),_.xh(b,0)}})}()}}};
n3X=function(){var v=_.WG("web_max_tracing_events",0);_.Z("web_enable_tracing")&&v>0&&E31(v)};
E31=function(v){var E=v3G(v);BlA({sample:function(n,f){return n==="event"?!o3s.has(f==null?void 0:f.type):!1},
spanProcessors:[{onSpanStart:function(n){E.push(n)}}]});
HRL.subscribe("handleError",function(n){Object.assign(n.params,{breadcrumbs:JSON.stringify(Array.from(E.iterate()))})})};
fiE=function(v){return new Promise(function(E){window.setTimeout(E,v)})};
xRX=function(v){var E={bicf:function(y){v.tmd=y},
blc:function(){return v.getLatestChallengeResponse()},
bcr:function(y){v.zyR.push(y)}},n=window.top;
n.ntpevasrs=E;if(n.ntpqfbel!==void 0)for(var f=_.p(n.ntpqfbel),x=f.next();!x.done;x=f.next())x=x.value,x(E);n.ntpqfbel=void 0};
cgN=function(v){return _.X(function(E){if(E.nextAddress==1)return _.vW(E,2),_.m(E,v.e7L(),4);if(E.nextAddress!=2)return _.qp(E,0);_.cW(E);_.yQ(E)})};
ygQ=function(v){var E,n;(E=v.ytcsi)==null||(n=E.tick)==null||n.call(E,"pot_ist")};
pSX=function(v){if(v instanceof Error){var E=_.JM("yt.logging.errors.log");E&&E(v,"WARNING")}};
QdX=function(v){try{var E=JSON.parse(v);if(E.bgChallenge)return E}catch(n){}};
eWQ=function(){var v=window,E={networkStatusManagerPromise:_.P().resolve(new g0N(_.q1)),initialChallengeSli:_.Z("wpo_att_sli")?new _.iyF("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};v=v===void 0?window:v;var n=v.ytAtR,f;E==null||(f=E.initialChallengeSli)==null||_.pe(f);if(n){if(n=QdX(n)){var x;E==null||(x=E.initialChallengeSli)==null||_.Qw(x,"SUCCESS");XSN(n,E)}v.ytAtR=void 0}else v.ytAtRC=function(y){if(y=QdX(y)){var Q;E==null||(Q=E.initialChallengeSli)==null||_.Qw(Q,
"SUCCESS");XSN(y,E);v.ytAtRC=void 0}}};
wS9=function(){if(FEI)return FEI;try{var v=_.oc("IFRAME");_.qa(v,_.i_(mRL));v.sandbox.add("allow-same-origin");v.style.display="none";document.body.appendChild(v);return FEI=v}catch(E){v=new _.yc("Failed to create sandbox iframe"),_.mb(v)}};
bfE=function(v){var E,n;return(n=v==null?void 0:(E=v.contentWindow)==null?void 0:E.fetch)!=null?n:window.fetch};
liI=function(v){var E,n;return(n=v==null?void 0:(E=v.contentWindow)==null?void 0:E.JSON.parse)!=null?n:JSON.parse};
sdG=function(v){var E,n;return(n=v==null?void 0:(E=v.contentWindow)==null?void 0:E.Request)!=null?n:window.Request};
aiy=function(){if(i2N()==="hidden")var v="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else i2N()==="visible"&&(v="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",rg9=null);v&&Pey(v)};
Pey=function(v){if(v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(ZfQ===v)return;ZfQ=v}var E=9E4+Math.random()*2E3;if(v!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.gh()>E)&&i2N()==="visible"){E=-1;rg9&&(E=Math.round((0,_.gd)()-rg9));var n=String;var f=_.JM("_fact",window);f=f==null||f==-1?-1:Math.max(Date.now()-f,0);_.eQ("foregroundHeartbeat",{firstActivityMs:n(f),clientDocumentNonce:KPQ,index:String(Ce9),lastEventDeltaMs:String(E),trigger:v});
_.Vc("_fact",-1,window);Ce9++;rg9=(0,_.gd)()}};
_.M1s=function(){try{return!!self.sessionStorage}catch(v){return!1}};
SrX=function(){var v=navigator;return new Promise(function(E,n){var f;(f=v.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?v.webkitTemporaryStorage.queryUsageAndQuota(function(x,y){E({usage:x,quota:y})},function(x){n(x)}):n(Error("mj"))})};
URI=function(v,E){var n={errorSeverity:E.errorSeverity.toString(),wizFeatureFlags:Object.entries(E.featureFlags).join("\n")};Mgy(E,n);E=E.errorSeverity;E===3?_.mb(v,"ERROR",void 0,void 0,void 0,n):E===2&&_.mb(v,"WARNING",void 0,void 0,void 0,n);_.Z("cow_if_errors_in_popup")&&E===3&&v.message.indexOf("<If>")!==-1&&window.alert(v.message)};
qrQ=function(v,E,n){v.componentType!==yh&&n instanceof HTMLElement&&E&&!_.Z("cow_logging_in_component_wrapper")&&Xcy(n,E,!0)};
JgQ=function(v,E,n){E=E===void 0?{}:E;var f,x=(f=_.C(v.commandMetadata,_.Dl))==null?void 0:f.url;f=E.form||{};!n||f.element||f.skipDefaultElement||(E.form=E.form||{},E.form.element=n);if(x&&x!=="/service_ajax")return{type:0,command:v,form:E.form};if(_.Z("kevlar_service_command_check")){if(_.Ch(_.P().resolve(_.ok),v))return Object.assign({},{type:1,command:v},E)}else{var y;if((y=_.C(v.commandMetadata,_.Dl))==null?0:y.apiUrl)return Object.assign({},{type:1,command:v},E)}return{type:2,command:v,form:E.form}};
KEN=function(v){if(v.form){var E=v.form,n=Object.assign({},E);E=E.element;n=(delete n.element,n);if(E)return[_.$Z(E,[v.command,n,v.commandController])]}return[]};
dRE=function(v){if(v.form){var E=v.form,n=Object.assign({},E);E=E.element;n=(delete n.element,n);E&&_.LG(E,[v.command],E,n)}};
YrL=function(v,E,n){var f=new Iis(v,E),x=new Xh(v,E,n);v={"/youtubei/v1/browse":new eU(v,E,n),"/youtubei/v1/player":f,"/youtubei/v1/navigation/resolve_url":new Fh,"/youtubei/v1/next":x,"/youtubei/v1/guide":new mn(n),"/youtubei/v1/search":new ww(v,E,n),"/youtubei/v1/reel/reel_item_watch":new b9(v,E,n),"/youtubei/v1/get_watch":new l9(f,x)};v["/youtubei/v1/account/account_menu"]=new sy;v["/youtubei/v1/notification/get_notification_menu"]=new rw;return v};
ar=function(){var v=_.P().resolve(P_);return Promise.resolve(hWs(v,_.n1.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Ag$=function(v){return v&&(v=_.ZR(_.Y09(v)))?(new URLSearchParams(v)).get("service"):null};
SU=function(v,E){_.H8(_.Ce(),function(){_.FD("adl")});
_.P().resolve(V19)(E);v=v.root;v.loadData&&v.loadData(E);(E==null?0:E.response)?_.Qw(tP9(),"SUCCESS"):_.li(new _.yc("Lifecycle: No response in data",_.Sp("IS_SHELL_LOAD"),E?E.page:"NO_PAGE",E?E.endpoint:"NO_ENDPOINT"));v.polymerController.$["page-manager"].lazyPrepareCriticalPages((E==null?void 0:E.page)||"",E.endpoint);var n,f;((f=_.C(E==null?void 0:(n=E.endpoint)==null?void 0:n.commandMetadata,_.Dl))==null?0:f.webPageType)&&_.dG().dispatch(_.MI(_.C(E.endpoint.commandMetadata,_.Dl).webPageType))};
DRI=function(){var v,E;return _.X(function(n){switch(n.nextAddress){case 1:v=window;if(!v.getDataPromise){n.jumpTo(2);break}_.vW(n,3);return _.m(n,v.getDataPromise(),5);case 5:return n.return(n.yieldResult);case 3:return _.cW(n),_.m(n,ar(),6);case 6:return n.return(n.yieldResult);case 2:if(v.getInitialData)return E=v.getInitialData(),v.getInitialData=void 0,n.return(E);throw Error("oj`"+_.n1.location.href);}})};
g39=function(){_.Ck("CSI_SERVICE_NAME","youtube");_.XD({loadType:"cold"});_.Z("kevlar_log_lcp")&&HfE(function(v){_.FD("lcp",v.value)})};
NH$=function(){var v=_.SC(document.location.href,"enable");v&&v.indexOf("scraper")>-1&&_.Ck("ADD_SCRAPER_ATTRIBUTES",!0)};
WEF=function(v){var E=v.root;v=[uCX,jdE,_.Uy];_.Z("web_feedback_endpoint_autolog_allowlist_killswitch")&&v.push(_.qI,Of1);kDF(function(n,f){return JgQ(n,f,E)},function(n){if(!n.command)return[];
var f;((f=n.form)==null?0:f.element)?n.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},n.form,{endpoint:n.command})})):E.handleNavigate(n);return[]},v);
_.P().addProvider({provide:_.OO,useValue:_.ki.instance})};
LEL=function(){var v={},E={},n;for(n in $RG){var f=_.p(_.t7($RG[n],void 0,"UAX5pb"));v[n]=f.next().value;E[n]=f.next().value}return[v,function(x){for(var y in x){var Q=void 0;(Q=E[y])==null||Q(x[y])}}]};
_.if$=function(v,E){var n=_.sh.getValueByKeys(v,"contents","twoColumnWatchNextResults","results","results","contents"),f=_.sh.getValueByKeys(v,"contents","twoColumnWatchNextResults","playlist","playlist")||null,x=null,y=null;if(f)x=_.sh.getValueByKeys(f,"titleText"),y=_.sh.unsafeClone(_.sh.getValueByKeys(f,"longBylineText")),n="",y&&(n=_.JC(y)),y=_.qD(n);else if(n){n=_.p(n);for(var Q=n.next();!Q.done;Q=n.next())Q=Q.value,Q.videoPrimaryInfoRenderer&&(x=_.sh.getValueByKeys.apply(_.sh,[Q].concat(_.s8(GDs)))),
Q.videoSecondaryInfoRenderer&&(y=_.sh.getValueByKeys.apply(_.sh,[Q].concat(_.s8(THA))))}else _.Kk(Error("tj"));var e;v.currentVideoEndpoint?e=v.currentVideoEndpoint:_.Kk(Error("uj"));var F;E&&(F=_.sh.getValueByKeys(E,"playabilityStatus","miniplayer","miniplayerRenderer"));v={miniplayerTitle:x,miniplayerSubtitle:y,watchEndpoint:e,playlistData:f};F&&(v.miniplayerRenderer=F);return v};
zWA=function(v){if(v)return _.yI(v)};
_.RWL=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");}}};
t19=function(v){return v.videoDuration?v.numTaps>1&&v.tapDirection!==0?_.Jf(v.draggedTime/v.videoDuration,0,1):_.Jf((v.playedTime||0)/v.videoDuration,0,1):0};
BHN=function(v){return v.videoDuration?v.isDragging||v.numTaps>1&&v.tapDirection!==0?_.Jf(v.draggedTime/v.videoDuration,0,1):_.Jf((v.playedTime||0)/v.videoDuration,0,1):0};
EA$=function(v){var E,n,f;return _.C(v==null?void 0:(E=v.markersMap)==null?void 0:(n=E.find(function(x){return x.key==="HEATSEEKER"}))==null?void 0:(f=n.value)==null?void 0:f.heatmap,vAE)};
nAE=function(v){var E,n;return(n=(E=EA$(v))==null?void 0:E.heatMarkersDecorations)!=null?n:[]};
oA1=function(v){if(_.Z("mweb_supported_chapters_killswitch"))return!0;var E;return!!(v==null?0:(E=v.markersMap)==null?0:E.find(function(n){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(n.key)}))};
_.fsQ=function(v){var E=Object,n=E.assign,f;v={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(f=v==null?void 0:v.getPlayerState())!=null?f:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return n.call(E,{},{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},v,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
x4E=function(v){return function(E){var n=v(),f,x=(f=n.playerApi)==null?void 0:f.getPlayerState();E&&E!==n.playerState&&(E===1||E===2)&&n.setState({playerState:x})}};
yHL=function(v){return function(E){var n=v(),f=n.playerApi;f&&(E==null?void 0:E.type)==="newdata"&&(cHE&&(clearTimeout(cHE),cHE=void 0),_.Z("web_shorts_use_progress_state_for_gapless")?(E=f==null?void 0:f.getProgressState(E==null?void 0:E.playertype),E=E.seekableEnd-E.seekableStart):E=f==null?void 0:f.getDuration(E==null?void 0:E.playertype),n.setState({playedTime:0,videoDuration:E}))}};
ph1=function(v){return function(E){var n=v(),f=n.playerApi;if(f){var x=f.getPresentingPlayerType();_.Z("web_shorts_use_progress_state_for_gapless")?(f=f.getProgressState(x),f=f.seekableEnd-f.seekableStart):f=f.getDuration(x);n.setState({playedTime:E,videoDuration:f})}}};
eDs=function(v){var E=v.element;var n=v.veType;var f=v.storedVisualElement===void 0?null:v.storedVisualElement;var x=v.elementIndex===void 0?0:v.elementIndex;v=v.clientYouTubeData;var y=_.lc();y!==Qp9&&(XhX.clear(),Qp9=y);if(E.visualElement&&XhX.has(E.visualElement))return null;if(f&&XhX.has(f))return E.visualElement=f,null;n=_.Gl(_.Tl(),{veType:n,elementIndex:x,clientYouTubeData:v});if(!n)return null;E.visualElement=n;XhX.add(n);return n};
_.Ke=function(v,E,n,f){n=n===void 0?null:n;f=f===void 0?Fay:f;var x=x===void 0?null:x;oj(function(){if(E){n instanceof Function&&(n=n());var y=eDs({element:E,veType:v,storedVisualElement:n,clientYouTubeData:void 0});y&&(bYL(E,x),f(y))}})};
m4I=function(v){_.Ke(112394,v,function(){return FJQ},function(E){FJQ=E})};
ls1=function(v,E){if(!v)return[];var n,f,x;v=((n=v.markersMap)==null?void 0:(f=n.find(function(y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(y.key)}))==null?void 0:(x=f.value)==null?void 0:x.chapters)||[];
!wh9(v)||(E==null?0:E.ignoreStub)||(v=[b_$()].concat(_.s8(v)));return v};
b_$=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
wh9=function(v){if(v.length===0)return!1;var E;return((E=_.C(v[0],dw))==null?void 0:E.timeRangeStartMillis)!==0};
Ir=function(v){return v?v.timeRangeStartMillis||0:0};
rHG=function(v,E){if(v.isDragging&&E)return v=sp9(v,E),v===-1?b_$():ls1(E)[v]};
sp9=function(v,E){return v.isDragging&&E?ls1(E,{ignoreStub:!0}).findIndex(function(n,f,x){n=P21(v);return asI(n,x,f).scrubberHovering}):-1};
P21=function(v){return Object.assign({},v,{videoDuration:v.videoDuration*1E3,playedTime:v.playedTime*1E3,draggedTime:v.draggedTime*1E3})};
asI=function(v,E,n){var f=Ir(_.C(E[n],dw));E=Ir(_.C(E[n+1],dw))||v.videoDuration;n=v.isDragging;var x;if(x=v.isDragging)x=v.draggedTime,x=x!==null&&x>=f&&x<E;var y=v.playedTime;return y!==null&&y>=f&&y<E?{videoPosition:"active",isScrubbing:n,scrubberHovering:x}:v.playedTime<f?{videoPosition:"pending",isScrubbing:n,scrubberHovering:x}:{videoPosition:"seen",isScrubbing:n,scrubberHovering:x}};
Z_$=function(v,E){return v.videoPosition==="seen"||(E===void 0?0:E)>0};
C2A=function(v,E,n){E=v/E.storyboardInterval;var f=ls1(n);if(!f.length)return-E*72;n=0;f=_.p(f);for(var x=f.next();!x.done;x=f.next())if(Ir(_.C(x.value,dw))/1E3<v)n++;else break;return-(E*72)-n*56};
MvX=function(v){return v?v.width/v.columns:0};
SYQ=function(v){return v.isHovering?v.hoveredTime:v.draggedTime};
U4E=function(v,E){v=v.draggedTime*1E3;return v>=E.visibleTimeRangeStartMillis&&v<=E.visibleTimeRangeEndMillis};
_.qYX=function(v){if(v===void 0||Number.isNaN(v))return"--:--";var E=Math.abs(Math.floor(v)),n=Math.floor(E/86400),f=Math.floor(E%86400/3600),x=Math.floor(E%3600/60);E=Math.floor(E%60);var y="";n>0&&(y+=n+":",f<10&&(y+="0"));if(n>0||f>0)y+=f+":",x<10&&(y+="0");y+=x+":";E<10&&(y+="0");y+=E;return v>=0?y:"-"+y};
JHL=function(v,E){return function(){var n=SYQ(v());var f=E();var x=v().playerApi;if(x&&x.getNumberOfStoryboardLevels()!==0){var y=x.getStoryboardFrameIndex(n,1);y!==-1?f=x.getStoryboardFrame(y,1):(n=x.getStoryboardFrameIndex(n,0),x=x.getStoryboardFrame(n,0),f&&x&&(x.height*=3,x.width*=3),f=x)}else f=null;if(!f)return null;E()&&(f.width=90*f.columns,f.height=160*f.rows);return f}};
_.YJ=function(v){if(!v||v.getVideoData)return v};
KJE=function(){var v;return{playerApi:(v=_.Lh())!=null?v:void 0}};
_.AHX=function(v){function E(t){t!==0||r?t>50&&(r||!M)?(a(!1),U(!0)):t<=50&&(r||M)&&(a(!1),U(!1)):a(!0)}
function n(){var t;return _.X(function(QE){if(QE.nextAddress==1)return _.m(QE,_.$_(),2);(t=QE.yieldResult)&&(t.isMuted()?a(!0):a(!1));_.yQ(QE)})}
var f=v.noSlider;var x=v.orientation;v=_.Ig();var y=_.Ig(),Q=_.Y$(),e=_.p(iG(!1)),F=e.next().value,b=e.next().value,l=_.p(iG(!1));e=l.next().value;l=l.next().value;var r=e,a=l;l=_.p(iG(!0));e=l.next().value;l=l.next().value;var M=e,U=l;e=x==="vertical_down";_.l5(function(){function t(){b(!0)}
function QE(){b(!1)}
f?(n(),E(r?0:100)):Q&&Q.value&&(Q.value.addEventListener("focus",t),Q.value.addEventListener("focusout",QE),d4N(Q.value).then(function(){E(Number(IsL(Q.value)))}));
y&&y.value&&(y.value.addEventListener("focus",t),y.value.addEventListener("focusout",QE));return function(){var MF;Q==null||(MF=Q.value)==null||MF.removeEventListener("focus",t);var K1;Q==null||(K1=Q.value)==null||K1.removeEventListener("focusout",QE);y.value.removeEventListener("focus",t);y.value.removeEventListener("focusout",QE)}});
var d=_.ij(function(){if(Q&&Q.value){var t=Number(IsL(Q.value));YYL(t);Q.value.style.setProperty("--gradient-percent",t+"%");E(t)}return!1});
l={};l=(l.ytdDesktopShortsVolumeControlsHost=!0,l.ytdDesktopShortsVolumeControlsHostVertical=e,l.ytdDesktopShortsVolumeControlsHostExpanded=F,l);var Y={},V=(Y.ytdDesktopShortsVolumeControlsSliderContainer=!0,Y.ytdDesktopShortsVolumeControlsSliderContainerExpanded=F,Y.ytdDesktopShortsVolumeControlsSliderContainerVertical=e,Y.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=x==="vertical_down",Y.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=F&&e,Y);x={};var O=(x.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,x.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=f?!1:F,x);F={};F=(F.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=e,F);x=_.ij(function(){b(!0)});
Y=_.ij(function(){b(!1)});
var T=_.ij(function(){if(Q&&Q.value||f)hDA(Q.value,r,f),a(!r);return!1}),L=_.Z("web_shorts_keyboard_enable_mute_shortcut")?r?_.tQ("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.tQ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):r?_.tQ("UNMUTE_VOLUME",void 0,"Unmute"):_.tQ("MUTE_VOLUME",void 0,"Mute"),xX={sources:[{clientResource:{imageName:r?"VOLUME_OFF_FILLED":M?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.w("desktop-shorts-volume-controls",{"on:pointerleave":Y,class:_.LR(l),el:v},A7(!e,function(){return _.w("div",{class:_.LR(O)})}),_.w("div",{class:_.LR(F)},_.w("button",{"aria-label":L,
title:L,el:y,"on:click":T,"on:pointerenter":x,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},xX?_.w(_.UZ,{data:xX,alt:L,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),A7(!f,function(){return _.w("div",{class:_.LR(V)},_.w("input",{"aria-label":_.tQ("VOLUME"),title:_.tQ("VOLUME"),el:Q,"on:input":d,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
d4N=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.$_(),2);E=f.yieldResult;n=50;E&&(n=E.getVolume(),E.isMuted()?Vv1(v,0):Vv1(v,n));_.yQ(f)})};
YYL=function(v){var E;_.X(function(n){if(n.nextAddress==1)return _.m(n,_.$_(),2);if(E=n.yieldResult)E.unMute(!0),E.setVolume(v,!0);_.yQ(n)})};
Vv1=function(v,E){v&&(v.value=""+E,v.style.setProperty("--gradient-percent",E+"%"))};
IsL=function(v){var E;return(E=v==null?void 0:v.value)!=null?E:0};
hDA=function(v,E,n){var f;_.X(function(x){if(x.nextAddress==1)return _.m(x,_.$_(),2);f=x.yieldResult;E&&f?(f.unMute(!0),!n&&v&&Vv1(v,f.getVolume())):f&&(f.mute(!0),!n&&v&&Vv1(v,0));_.yQ(x)})};
D4G=function(){var v;_.X(function(E){if(E.nextAddress==1)return _.m(E,_.$_(),2);v=E.yieldResult;if(!v)return E.return();v.isMuted()?v.unMute(!0):v.mute(!0);_.yQ(E)})};
H_9=function(v){var E=_.P().resolve(_.hf).getPlayerElement();E&&v&&(v===1?E.pause():E.play())};
gAF=function(v){_.kZ(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Ncy=function(v){_.kZ(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
jpG=function(v){return _.Fo(v.document.body,function(){return _.w(uRL,null)})};
O_L=function(){var v=window.performance.getEntriesByType("navigation");return v?v.map(function(E){return E.type}).includes("reload"):!1};
zDI=function(){Af(Af(Af(Af(Af(Af(Af(_.P().resolve(_.Vw),_.kOF),_.WJX),_.$4F),_.LJy),_.GOs),_.TcG),_.i_s)};
RDE=function(v,E){E=E===void 0?!1:E;var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return E||!_.Z("kevlar_shorts_seedless_retry_initial_load")||(n=window,f=!(!n.getDataPromise&&!n.getInitialData),f)?_.m(Q,DRI(),2):(setTimeout(RDE.bind(window,v,!0),1E3),Q.return());if(Q.nextAddress!=3)return x=Q.yieldResult,_.m(Q,tvG(x),3);y=Q.yieldResult;SU(v,y);_.yQ(Q)})};
tvG=function(v){var E;if((E=v.response)==null||!E.replacementEndpoint)return _.Gn(v);E=_.P().resolve(P_);v=v.response;_.C(v.replacementEndpoint,_.By)&&v.sequenceContinuation&&(_.C(v.replacementEndpoint,_.By).sequenceParams=v.sequenceContinuation);return DR(E,v.replacementEndpoint,{},_.n1.location.href,"shorts",function(){},function(){return!1})};
BcA=function(v){var E=_.dG(),n,f=_.C((n=v.response)==null?void 0:n.frameworkUpdates,qq),x;n=_.C((x=v.playerResponse)==null?void 0:x.frameworkUpdates,qq);var y;v=_.C((y=v.reelWatchSequenceResponse)==null?void 0:y.frameworkUpdates,qq);f&&_.tc(f,E);n&&_.tc(n,E);v&&_.tc(v,E)};
vkQ=function(v){var E;_.Z("enable_redirect_linking_for_desktop_web_client")&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&v.url&&(v.url=v.url.toString()+window.location.hash)};
okX=function(v){var E=_.P(),n=E.resolve(P_);E=E.resolve(_.Ek1);v.endpoint&&(n=nkL(n,v.endpoint),n.content&&v.response&&_.H_(E,v.response,n.content),n.player&&v.playerResponse&&_.H_(E,v.playerResponse,n.player),n.reelSequence&&v.reelWatchSequenceResponse&&_.H_(E,v.reelWatchSequenceResponse,n.reelSequence))};
gw=function(v,E){BcA(E);var n;(E==null?0:E.url)&&((n=window.location.hash)==null?0:n.includes("redirect_state"))&&(vkQ(E),(n=Ag$(E.url))&&_.OL(v.root,"yt-initialize-third-party",[n,E]));okX(E);n=_.P();var f=n.resolve(f9G);E.playerResponse&&n.resolve(xzL).handleResponse(E.playerResponse);if(E.playerResponse){n=void 0;if(_.Z("ab_v_vid_sig")&&E.endpoint){var x,y=(x=_.C(E.endpoint,_.dM))!=null?x:_.C(E.endpoint,_.By);y&&(n=y.videoId)}cnX(f,E.playerResponse,n)}E.playerResponse&&wmL(E.playerResponse)&&_.Z("web_enable_ab_rsp_cl")?
Ecy().then(function(){ynL(f,E.playerResponse);SU(v,E)}):SU(v,E)};
QLG=function(v){if(v=v.root.data){var E=_.P().resolve(p3y);v.endpoint&&(v.response&&E.handleResponse(v.response,void 0,document.querySelector("ytd-app")),v.playerResponse&&E.handleResponse(v.playerResponse),v.reelWatchSequenceResponse&&E.handleResponse(v.reelWatchSequenceResponse))}};
X3X=function(v){var E,n,f,x,y,Q;return _.X(function(e){switch(e.nextAddress){case 1:E=window;if(!E.getDataPromise){e.jumpTo(2);break}_.vW(e,3);return _.m(e,E.getDataPromise(),5);case 5:n=e.yieldResult;gw(v,n);_.qp(e,4);break;case 3:return _.cW(e),_.m(e,ar(),6);case 6:f=e.yieldResult,SU(v,f);case 4:return e.return();case 2:if(!_.Z("sw_nav_preload_pbj")){e.jumpTo(7);break}E.fetchInitialData=function(){var F;return _.X(function(b){if(b.nextAddress==1)return _.m(b,ar(),2);F=b.yieldResult;SU(v,F);_.yQ(b)})};
if(E.getInitialData){E.loadInitialData=function(F){gw(v,F)};
x=E.getInitialData();E.getInitialData=void 0;gw(v,x);e.jumpTo(8);break}E.fetchInitialData=void 0;return _.m(e,ar(),9);case 9:y=e.yieldResult,SU(v,y);case 8:return e.return();case 7:E.getInitialData?(Q=E.getInitialData(),E.getInitialData=void 0,gw(v,Q)):E.loadInitialData=function(F){gw(v,F)},_.yQ(e)}})};
eI1=function(v){var E=0;return function(){return E<v.length?{done:!1,value:v[E++]}:{done:!0}}};
FFF=typeof Object.defineProperties=="function"?Object.defineProperty:function(v,E,n){if(v==Array.prototype||v==Object.prototype)return v;v[E]=n.value;return v};
mzs=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;E<v.length;++E){var n=v[E];if(n&&n.Math==Math)return n}throw Error("a");};
_.hK=mzs(this);NI=function(v,E){if(E)a:{var n=_.hK;v=v.split(".");for(var f=0;f<v.length-1;f++){var x=v[f];if(!(x in n))break a;n=n[x]}v=v[v.length-1];f=n[v];E=E(f);E!=f&&E!=null&&FFF(n,v,{configurable:!0,writable:!0,value:E})}};
NI("Symbol",function(v){if(v)return v;var E=function(y,Q){this.$jscomp$symbol$id_=y;FFF(this,"description",{configurable:!0,writable:!0,value:Q})};
E.prototype.toString=function(){return this.$jscomp$symbol$id_};
var n="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",f=0,x=function(y){if(this instanceof x)throw new TypeError("b");return new E(n+(y||"")+"_"+f++,y)};
return x});
NI("Symbol.iterator",function(v){if(v)return v;v=Symbol("c");for(var E="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<E.length;n++){var f=_.hK[E[n]];typeof f==="function"&&typeof f.prototype[v]!="function"&&FFF(f.prototype,v,{configurable:!0,writable:!0,value:function(){return w3F(eI1(this))}})}return v});
NI("Symbol.asyncIterator",function(v){return v?v:Symbol("d")});
var w3F=function(v){v={next:v};v[Symbol.iterator]=function(){return this};
return v},buE=typeof Object.create=="function"?Object.create:function(v){var E=function(){};
E.prototype=v;return new E},l9F=function(){function v(){function n(){}
new n;Reflect.construct(n,[],function(){});
return new n instanceof n}
if(typeof Reflect!="undefined"&&Reflect.construct){if(v())return Reflect.construct;var E=Reflect.construct;return function(n,f,x){n=E(n,f);x&&Reflect.setPrototypeOf(n,x.prototype);return n}}return function(n,f,x){x===void 0&&(x=n);
x=buE(x.prototype||Object.prototype);return Function.prototype.apply.call(n,x,f)||x}}(),sLs;
if(typeof Object.setPrototypeOf=="function")sLs=Object.setPrototypeOf;else{var rnQ;a:{var PDF={a:!0},a9L={};try{a9L.__proto__=PDF;rnQ=a9L.a;break a}catch(v){}rnQ=!1}sLs=rnQ?function(v,E){v.__proto__=E;if(v.__proto__!==E)throw new TypeError("e`"+v);return v}:null}u9=sLs;
_.S=function(v,E){v.prototype=buE(E.prototype);v.prototype.constructor=v;if(u9)u9(v,E);else for(var n in E)if(n!="prototype")if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(E,n);f&&Object.defineProperty(v,n,f)}else v[n]=E[n];v.superClass_=E.prototype};
_.p=function(v){var E=typeof Symbol!="undefined"&&Symbol.iterator&&v[Symbol.iterator];if(E)return E.call(v);if(typeof v.length=="number")return{next:eI1(v)};throw Error("f`"+String(v));};
YE=function(v){for(var E,n=[];!(E=v.next()).done;)n.push(E.value);return n};
_.s8=function(v){return v instanceof Array?v:YE(_.p(v))};
_.jU=function(v){return Zu1(v,v)};
Zu1=function(v,E){v.raw=E;Object.freeze&&(Object.freeze(v),Object.freeze(E));return v};
Oy=function(v,E){return Object.prototype.hasOwnProperty.call(v,E)};
CDL=typeof Object.assign=="function"?Object.assign:function(v,E){for(var n=1;n<arguments.length;n++){var f=arguments[n];if(f)for(var x in f)Oy(f,x)&&(v[x]=f[x])}return v};
NI("Object.assign",function(v){return v||CDL});
var MTE=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},SiN=function(v){if(v.isRunning_)throw new TypeError("h");
v.isRunning_=!0};
MTE.prototype.JSC$6627_next_=function(v){this.yieldResult=v};
var UzE=function(v,E){v.abruptCompletion_={exception:E,isException:!0};v.nextAddress=v.catchAddress_||v.finallyAddress_};
MTE.prototype.return=function(v){this.abruptCompletion_={return:v};this.nextAddress=this.finallyAddress_};
_.m=function(v,E,n){v.nextAddress=n;return{value:E}};
MTE.prototype.jumpTo=function(v){this.nextAddress=v};
_.yQ=function(v){v.nextAddress=0};
_.vW=function(v,E,n){v.catchAddress_=E;n!=void 0&&(v.finallyAddress_=n)};
_.ol=function(v,E){v.catchAddress_=0;v.finallyAddress_=E||0};
_.qp=function(v,E,n){v.nextAddress=E;v.catchAddress_=n||0};
_.cW=function(v,E){v.catchAddress_=E||0;E=v.abruptCompletion_.exception;v.abruptCompletion_=null;return E};
_.nI=function(v,E,n,f){f?v.finallyContexts_[f]=v.abruptCompletion_:v.finallyContexts_=[v.abruptCompletion_];v.catchAddress_=E||0;v.finallyAddress_=n||0};
_.xh=function(v,E,n){n=v.finallyContexts_.splice(n||0)[0];(n=v.abruptCompletion_=v.abruptCompletion_||n)?n.isException?v.nextAddress=v.catchAddress_||v.finallyAddress_:n.jumpTo!=void 0&&v.finallyAddress_<n.jumpTo?(v.nextAddress=n.jumpTo,v.abruptCompletion_=null):v.nextAddress=v.finallyAddress_:v.nextAddress=E};
qiE=function(v){this.JSC$6632_context_=new MTE;this.program_=v};
KFL=function(v,E){SiN(v.JSC$6632_context_);var n=v.JSC$6632_context_.yieldAllIterator_;if(n)return JnX(v,"return"in n?n["return"]:function(f){return{value:f,done:!0}},E,v.JSC$6632_context_.return);
v.JSC$6632_context_.return(E);return kJ(v)};
JnX=function(v,E,n,f){try{var x=E.call(v.JSC$6632_context_.yieldAllIterator_,n);if(!(x instanceof Object))throw new TypeError("g`"+x);if(!x.done)return v.JSC$6632_context_.isRunning_=!1,x;var y=x.value}catch(Q){return v.JSC$6632_context_.yieldAllIterator_=null,UzE(v.JSC$6632_context_,Q),kJ(v)}v.JSC$6632_context_.yieldAllIterator_=null;f.call(v.JSC$6632_context_,y);return kJ(v)};
kJ=function(v){for(;v.JSC$6632_context_.nextAddress;)try{var E=v.program_(v.JSC$6632_context_);if(E)return v.JSC$6632_context_.isRunning_=!1,{value:E.value,done:!1}}catch(n){v.JSC$6632_context_.yieldResult=void 0,UzE(v.JSC$6632_context_,n)}v.JSC$6632_context_.isRunning_=!1;if(v.JSC$6632_context_.abruptCompletion_){E=v.JSC$6632_context_.abruptCompletion_;v.JSC$6632_context_.abruptCompletion_=null;if(E.isException)throw E.exception;return{value:E.return,done:!0}}return{value:void 0,done:!0}};
dzG=function(v){this.next=function(E){SiN(v.JSC$6632_context_);v.JSC$6632_context_.yieldAllIterator_?E=JnX(v,v.JSC$6632_context_.yieldAllIterator_.next,E,v.JSC$6632_context_.JSC$6627_next_):(v.JSC$6632_context_.JSC$6627_next_(E),E=kJ(v));return E};
this.throw=function(E){SiN(v.JSC$6632_context_);v.JSC$6632_context_.yieldAllIterator_?E=JnX(v,v.JSC$6632_context_.yieldAllIterator_["throw"],E,v.JSC$6632_context_.JSC$6627_next_):(UzE(v.JSC$6632_context_,E),E=kJ(v));return E};
this.return=function(E){return KFL(v,E)};
this[Symbol.iterator]=function(){return this}};
_.tEE=function(v,E){E=new dzG(new qiE(E));u9&&v.prototype&&u9(E,v.prototype);return E};
I9X=function(v){function E(f){return v.next(f)}
function n(f){return v.throw(f)}
return new Promise(function(f,x){function y(Q){Q.done?f(Q.value):Promise.resolve(Q.value).then(E,n).then(y,x)}
y(v.next())})};
_.X=function(v){return I9X(new dzG(new qiE(v)))};
$ns=function(v){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return v};
this.next=function(E){return Promise.resolve(v.next(E))};
this["throw"]=function(E){return new Promise(function(n,f){var x=v["throw"];x!==void 0?n(x.call(v,E)):(n=v["return"],n!==void 0&&n.call(v),f(new TypeError("i")))})};
v["return"]!==void 0&&(this["return"]=function(E){return Promise.resolve(v["return"](E))})};
_.rV=function(){for(var v=Number(this),E=[],n=v;n<arguments.length;n++)E[n-v]=arguments[n];return E};
_.BDE=function(v){return v};
NI("globalThis",function(v){return v||_.hK});
NI("Reflect",function(v){return v?v:{}});
NI("Reflect.construct",function(){return l9F});
NI("Reflect.setPrototypeOf",function(v){return v?v:u9?function(E,n){try{return u9(E,n),!0}catch(f){return!1}}:null});
NI("Promise",function(v){function E(){this.batch_=null}
function n(Q){return Q instanceof x?Q:new x(function(e){e(Q)})}
if(v&&(typeof _.hK.PromiseRejectionEvent!=="undefined"||!_.hK.Promise||_.hK.Promise.toString().indexOf("[native code]")===-1))return v;E.prototype.asyncExecute=function(Q){if(this.batch_==null){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(Q)};
var f=_.hK.setTimeout;E.prototype.asyncExecuteFunction=function(Q){f(Q,0)};
E.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Q=this.batch_;this.batch_=[];for(var e=0;e<Q.length;++e){var F=Q[e];Q[e]=null;try{F()}catch(b){this.asyncThrow_(b)}}}this.batch_=null};
E.prototype.asyncThrow_=function(Q){this.asyncExecuteFunction(function(){throw Q;})};
var x=function(Q){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{Q(e.resolve,e.reject)}catch(F){e.reject(F)}};
x.prototype.createResolveAndReject_=function(){function Q(b){return function(l){F||(F=!0,b.call(e,l))}}
var e=this,F=!1;return{resolve:Q(this.resolveTo_),reject:Q(this.JSC$6648_reject_)}};
x.prototype.resolveTo_=function(Q){if(Q===this)this.JSC$6648_reject_(new TypeError("j"));else if(Q instanceof x)this.settleSameAsPromise_(Q);else{a:switch(typeof Q){case "object":var e=Q!=null;break a;case "function":e=!0;break a;default:e=!1}e?this.resolveToNonPromiseObj_(Q):this.fulfill_(Q)}};
x.prototype.resolveToNonPromiseObj_=function(Q){var e=void 0;try{e=Q.then}catch(F){this.JSC$6648_reject_(F);return}typeof e=="function"?this.settleSameAsThenable_(e,Q):this.fulfill_(Q)};
x.prototype.JSC$6648_reject_=function(Q){this.settle_(2,Q)};
x.prototype.fulfill_=function(Q){this.settle_(1,Q)};
x.prototype.settle_=function(Q,e){if(this.state_!=0)throw Error("k`"+Q+"`"+e+"`"+this.state_);this.state_=Q;this.result_=e;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
x.prototype.scheduleUnhandledRejectionCheck_=function(){var Q=this;f(function(){if(Q.notifyUnhandledRejection_()){var e=_.hK.console;typeof e!=="undefined"&&e.error(Q.result_)}},1)};
x.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Q=_.hK.CustomEvent,e=_.hK.Event,F=_.hK.dispatchEvent;if(typeof F==="undefined")return!0;typeof Q==="function"?Q=new Q("unhandledrejection",{cancelable:!0}):typeof e==="function"?Q=new e("unhandledrejection",{cancelable:!0}):(Q=_.hK.document.createEvent("CustomEvent"),Q.initCustomEvent("unhandledrejection",!1,!0,Q));Q.promise=this;Q.reason=this.result_;return F(Q)};
x.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Q=0;Q<this.onSettledCallbacks_.length;++Q)y.asyncExecute(this.onSettledCallbacks_[Q]);this.onSettledCallbacks_=null}};
var y=new E;x.prototype.settleSameAsPromise_=function(Q){var e=this.createResolveAndReject_();Q.callWhenSettled_(e.resolve,e.reject)};
x.prototype.settleSameAsThenable_=function(Q,e){var F=this.createResolveAndReject_();try{Q.call(e,F.resolve,F.reject)}catch(b){F.reject(b)}};
x.prototype.then=function(Q,e){function F(a,M){return typeof a=="function"?function(U){try{b(a(U))}catch(d){l(d)}}:M}
var b,l,r=new x(function(a,M){b=a;l=M});
this.callWhenSettled_(F(Q,b),F(e,l));return r};
x.prototype.catch=function(Q){return this.then(void 0,Q)};
x.prototype.callWhenSettled_=function(Q,e){function F(){switch(b.state_){case 1:Q(b.result_);break;case 2:e(b.result_);break;default:throw Error("l`"+b.state_);}}
var b=this;this.onSettledCallbacks_==null?y.asyncExecute(F):this.onSettledCallbacks_.push(F);this.isRejectionHandled_=!0};
x.resolve=n;x.reject=function(Q){return new x(function(e,F){F(Q)})};
x.race=function(Q){return new x(function(e,F){for(var b=_.p(Q),l=b.next();!l.done;l=b.next())n(l.value).callWhenSettled_(e,F)})};
x.all=function(Q){var e=_.p(Q),F=e.next();return F.done?n([]):new x(function(b,l){function r(U){return function(d){a[U]=d;M--;M==0&&b(a)}}
var a=[],M=0;do a.push(void 0),M++,n(F.value).callWhenSettled_(r(a.length-1),l),F=e.next();while(!F.done)})};
return x});
var W_=function(v,E,n){if(v==null)throw new TypeError("m`"+n);if(E instanceof RegExp)throw new TypeError("n`"+n);return v+""};
NI("String.prototype.startsWith",function(v){return v?v:function(E,n){var f=W_(this,E,"startsWith"),x=f.length,y=E.length;n=Math.max(0,Math.min(n|0,f.length));for(var Q=0;Q<y&&n<x;)if(f[n++]!=E[Q++])return!1;return Q>=y}});
NI("Object.setPrototypeOf",function(v){return v||u9});
NI("Symbol.dispose",function(v){return v?v:Symbol("o")});
NI("SuppressedError",function(v){function E(n,f,x){if(!(this instanceof E))return new E(n,f,x);x=Error(x);"stack"in x&&(this.stack=x.stack);this.message=x.message;this.error=n;this.suppressed=f}
if(v)return v;_.S(E,Error);E.prototype.name="SuppressedError";return E});
var YiE=function(v,E,n){v instanceof String&&(v=String(v));for(var f=v.length,x=0;x<f;x++){var y=v[x];if(E.call(n,y,x,v))return{i:x,v:y}}return{i:-1,v:void 0}};
NI("Array.prototype.find",function(v){return v?v:function(E,n){return YiE(this,E,n).v}});
NI("WeakMap",function(v){function E(){}
function n(F){var b=typeof F;return b==="object"&&F!==null||b==="function"}
function f(F){if(!Oy(F,y)){var b=new E;FFF(F,y,{value:b})}}
function x(F){var b=Object[F];b&&(Object[F]=function(l){if(l instanceof E)return l;Object.isExtensible(l)&&f(l);return b(l)})}
if(function(){if(!v||!Object.seal)return!1;try{var F=Object.seal({}),b=Object.seal({}),l=new v([[F,2],[b,3]]);if(l.get(F)!=2||l.get(b)!=3)return!1;l.delete(F);l.set(b,4);return!l.has(F)&&l.get(b)==4}catch(r){return!1}}())return v;
var y="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var Q=0,e=function(F){this.JSC$6655_id_=(Q+=Math.random()+1).toString();if(F){F=_.p(F);for(var b;!(b=F.next()).done;)b=b.value,this.set(b[0],b[1])}};
e.prototype.set=function(F,b){if(!n(F))throw Error("p");f(F);if(!Oy(F,y))throw Error("q`"+F);F[y][this.JSC$6655_id_]=b;return this};
e.prototype.get=function(F){return n(F)&&Oy(F,y)?F[y][this.JSC$6655_id_]:void 0};
e.prototype.has=function(F){return n(F)&&Oy(F,y)&&Oy(F[y],this.JSC$6655_id_)};
e.prototype.delete=function(F){return n(F)&&Oy(F,y)&&Oy(F[y],this.JSC$6655_id_)?delete F[y][this.JSC$6655_id_]:!1};
return e});
NI("Map",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),F=new v(_.p([[e,"s"]]));if(F.get(e)!="s"||F.size!=1||F.get({x:4})||F.set({x:4},"t")!=F||F.size!=2)return!1;var b=F.entries(),l=b.next();if(l.done||l.value[0]!=e||l.value[1]!="s")return!1;l=b.next();return l.done||l.value[0].x!=4||l.value[1]!="t"||!b.next().done?!1:!0}catch(r){return!1}}())return v;
var E=new WeakMap,n=function(e){this[0]={};this[1]=y();this.size=0;if(e){e=_.p(e);for(var F;!(F=e.next()).done;)F=F.value,this.set(F[0],F[1])}};
n.prototype.set=function(e,F){e=e===0?0:e;var b=f(this,e);b.list||(b.list=this[0][b.id]=[]);b.entry?b.entry.value=F:(b.entry={next:this[1],previous:this[1].previous,head:this[1],key:e,value:F},b.list.push(b.entry),this[1].previous.next=b.entry,this[1].previous=b.entry,this.size++);return this};
n.prototype.delete=function(e){e=f(this,e);return e.entry&&e.list?(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,!0):!1};
n.prototype.clear=function(){this[0]={};this[1]=this[1].previous=y();this.size=0};
n.prototype.has=function(e){return!!f(this,e).entry};
n.prototype.get=function(e){return(e=f(this,e).entry)&&e.value};
n.prototype.entries=function(){return x(this,function(e){return[e.key,e.value]})};
n.prototype.keys=function(){return x(this,function(e){return e.key})};
n.prototype.values=function(){return x(this,function(e){return e.value})};
n.prototype.forEach=function(e,F){for(var b=this.entries(),l;!(l=b.next()).done;)l=l.value,e.call(F,l[1],l[0],this)};
n.prototype[Symbol.iterator]=n.prototype.entries;var f=function(e,F){var b=F&&typeof F;b=="object"||b=="function"?E.has(F)?b=E.get(F):(b=""+ ++Q,E.set(F,b)):b="p_"+F;var l=e[0][b];if(l&&Oy(e[0],b))for(e=0;e<l.length;e++){var r=l[e];if(F!==F&&r.key!==r.key||F===r.key)return{id:b,list:l,index:e,entry:r}}return{id:b,list:l,index:-1,entry:void 0}},x=function(e,F){var b=e[1];
return w3F(function(){if(b){for(;b.head!=e[1];)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:F(b)};b=null}return{done:!0,value:void 0}})},y=function(){var e={};
return e.previous=e.next=e.head=e},Q=0;
return n});
NI("Set",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var n=Object.seal({x:4}),f=new v(_.p([n]));if(!f.has(n)||f.size!=1||f.add(n)!=f||f.size!=1||f.add({x:4})!=f||f.size!=2)return!1;var x=f.entries(),y=x.next();if(y.done||y.value[0]!=n||y.value[1]!=n)return!1;y=x.next();return y.done||y.value[0]==n||y.value[0].x!=4||y.value[1]!=y.value[0]?!1:x.next().done}catch(Q){return!1}}())return v;
var E=function(n){this.JSC$6669_map_=new Map;if(n){n=_.p(n);for(var f;!(f=n.next()).done;)this.add(f.value)}this.size=this.JSC$6669_map_.size};
E.prototype.add=function(n){n=n===0?0:n;this.JSC$6669_map_.set(n,n);this.size=this.JSC$6669_map_.size;return this};
E.prototype.delete=function(n){n=this.JSC$6669_map_.delete(n);this.size=this.JSC$6669_map_.size;return n};
E.prototype.clear=function(){this.JSC$6669_map_.clear();this.size=0};
E.prototype.has=function(n){return this.JSC$6669_map_.has(n)};
E.prototype.entries=function(){return this.JSC$6669_map_.entries()};
E.prototype.values=function(){return this.JSC$6669_map_.values()};
E.prototype.keys=E.prototype.values;E.prototype[Symbol.iterator]=E.prototype.values;E.prototype.forEach=function(n,f){var x=this;this.JSC$6669_map_.forEach(function(y){return n.call(f,y,y,x)})};
return E});
NI("Math.log2",function(v){return v?v:function(E){return Math.log(E)/Math.LN2}});
NI("Object.values",function(v){return v?v:function(E){var n=[],f;for(f in E)Oy(E,f)&&n.push(E[f]);return n}});
NI("Object.is",function(v){return v?v:function(E,n){return E===n?E!==0||1/E===1/n:E!==E&&n!==n}});
NI("Array.prototype.includes",function(v){return v?v:function(E,n){var f=this;f instanceof String&&(f=String(f));var x=f.length;n=n||0;for(n<0&&(n=Math.max(n+x,0));n<x;n++){var y=f[n];if(y===E||Object.is(y,E))return!0}return!1}});
NI("String.prototype.includes",function(v){return v?v:function(E,n){return W_(this,E,"includes").indexOf(E,n||0)!==-1}});
NI("Array.from",function(v){return v?v:function(E,n,f){n=n!=null?n:function(e){return e};
var x=[],y=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(typeof y=="function"){E=y.call(E);for(var Q=0;!(y=E.next()).done;)x.push(n.call(f,y.value,Q++))}else for(y=E.length,Q=0;Q<y;Q++)x.push(n.call(f,E[Q],Q));return x}});
NI("Object.entries",function(v){return v?v:function(E){var n=[],f;for(f in E)Oy(E,f)&&n.push([f,E[f]]);return n}});
NI("Number.isFinite",function(v){return v?v:function(E){return typeof E!=="number"?!1:!isNaN(E)&&E!==Infinity&&E!==-Infinity}});
NI("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
NI("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
NI("Number.isInteger",function(v){return v?v:function(E){return Number.isFinite(E)?E===Math.floor(E):!1}});
NI("Number.isSafeInteger",function(v){return v?v:function(E){return Number.isInteger(E)&&Math.abs(E)<=Number.MAX_SAFE_INTEGER}});
NI("String.prototype.endsWith",function(v){return v?v:function(E,n){var f=W_(this,E,"endsWith");n===void 0&&(n=f.length);n=Math.max(0,Math.min(n|0,f.length));for(var x=E.length;x>0&&n>0;)if(f[--n]!=E[--x])return!1;return x<=0}});
var hIE=function(v,E){v instanceof String&&(v+="");var n=0,f=!1,x={next:function(){if(!f&&n<v.length){var y=n++;return{value:E(y,v[y]),done:!1}}f=!0;return{done:!0,value:void 0}}};
x[Symbol.iterator]=function(){return x};
return x};
NI("Array.prototype.entries",function(v){return v?v:function(){return hIE(this,function(E,n){return[E,n]})}});
NI("Math.imul",function(v){return v?v:function(E,n){E=Number(E);n=Number(n);var f=E&65535,x=n&65535;return f*x+((E>>>16&65535)*x+f*(n>>>16&65535)<<16>>>0)|0}});
NI("Math.trunc",function(v){return v?v:function(E){E=Number(E);if(isNaN(E)||E===Infinity||E===-Infinity||E===0)return E;var n=Math.floor(Math.abs(E));return E<0?-n:n}});
NI("Number.isNaN",function(v){return v?v:function(E){return typeof E==="number"&&isNaN(E)}});
NI("Array.prototype.keys",function(v){return v?v:function(){return hIE(this,function(E){return E})}});
NI("Array.prototype.values",function(v){return v?v:function(){return hIE(this,function(E,n){return n})}});
NI("Array.prototype.fill",function(v){return v?v:function(E,n,f){var x=this.length||0;n<0&&(n=Math.max(0,x+n));if(f==null||f>x)f=x;f=Number(f);f<0&&(f=Math.max(0,x+f));for(n=Number(n||0);n<f;n++)this[n]=E;return this}});
var $J=function(v){return v?v:Array.prototype.fill};
NI("Int8Array.prototype.fill",$J);NI("Uint8Array.prototype.fill",$J);NI("Uint8ClampedArray.prototype.fill",$J);NI("Int16Array.prototype.fill",$J);NI("Uint16Array.prototype.fill",$J);NI("Int32Array.prototype.fill",$J);NI("Uint32Array.prototype.fill",$J);NI("Float32Array.prototype.fill",$J);NI("Float64Array.prototype.fill",$J);
NI("Object.fromEntries",function(v){return v?v:function(E){var n={};if(!(Symbol.iterator in E))throw new TypeError("r`"+E);E=E[Symbol.iterator].call(E);for(var f=E.next();!f.done;f=E.next()){f=f.value;if(Object(f)!==f)throw new TypeError("s");n[f[0]]=f[1]}return n}});
NI("String.prototype.replaceAll",function(v){return v?v:function(E,n){if(E instanceof RegExp&&!E.global)throw new TypeError("t");return E instanceof RegExp?this.replace(E,n):this.replace(new RegExp(String(E).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),n)}});
NI("Object.getOwnPropertySymbols",function(v){return v?v:function(){return[]}});
NI("String.prototype.repeat",function(v){return v?v:function(E){var n=W_(this,null,"repeat");if(E<0||E>1342177279)throw new RangeError("u");E|=0;for(var f="";E;)if(E&1&&(f+=n),E>>>=1)n+=n;return f}});
NI("Array.prototype.findIndex",function(v){return v?v:function(E,n){return YiE(this,E,n).i}});
NI("Array.prototype.flatMap",function(v){return v?v:function(E,n){var f=[];Array.prototype.forEach.call(this,function(x,y){x=E.call(n,x,y,this);Array.isArray(x)?f.push.apply(f,x):f.push(x)});
return f}});
NI("String.prototype.codePointAt",function(v){return v?v:function(E){var n=W_(this,null,"codePointAt"),f=n.length;E=Number(E)||0;if(E>=0&&E<f){E|=0;var x=n.charCodeAt(E);if(x<55296||x>56319||E+1===f)return x;E=n.charCodeAt(E+1);return E<56320||E>57343?x:(x-55296)*1024+E+9216}}});
NI("String.fromCodePoint",function(v){return v?v:function(E){for(var n="",f=0;f<arguments.length;f++){var x=Number(arguments[f]);if(x<0||x>1114111||x!==Math.floor(x))throw new RangeError("v`"+x);x<=65535?n+=String.fromCharCode(x):(x-=65536,n+=String.fromCharCode(x>>>10&1023|55296),n+=String.fromCharCode(x&1023|56320))}return n}});
NI("String.prototype.padStart",function(v){return v?v:function(E,n){var f=W_(this,null,"padStart");E-=f.length;n=n!==void 0?String(n):" ";return(E>0&&n?n.repeat(Math.ceil(E/n.length)).substring(0,E):"")+f}});
NI("Promise.prototype.finally",function(v){return v?v:function(E){return this.then(function(n){return Promise.resolve(E()).then(function(){return n})},function(n){return Promise.resolve(E()).then(function(){throw n;
})})}});
NI("Object.hasOwn",function(v){return v?v:function(E,n){return Object.prototype.hasOwnProperty.call(E,n)}});
var AnE=function(v){v=Math.trunc(v)||0;v<0&&(v+=this.length);if(!(v<0||v>=this.length))return this[v]};
NI("Array.prototype.at",function(v){return v?v:AnE});
var Le=function(v){return v?v:AnE};
NI("Int8Array.prototype.at",Le);NI("Uint8Array.prototype.at",Le);NI("Uint8ClampedArray.prototype.at",Le);NI("Int16Array.prototype.at",Le);NI("Uint16Array.prototype.at",Le);NI("Int32Array.prototype.at",Le);NI("Uint32Array.prototype.at",Le);NI("Float32Array.prototype.at",Le);NI("Float64Array.prototype.at",Le);NI("String.prototype.at",function(v){return v?v:AnE});
NI("Math.sign",function(v){return v?v:function(E){E=Number(E);return E===0||isNaN(E)?E:E>0?1:-1}});
NI("Array.prototype.flat",function(v){return v?v:function(E){E=E===void 0?1:E;var n=[];Array.prototype.forEach.call(this,function(f){Array.isArray(f)&&E>0?(f=Array.prototype.flat.call(f,E-1),n.push.apply(n,f)):n.push(f)});
return n}});
NI("String.raw",function(v){return v?v:function(E,n){if(E==null)throw new TypeError("w");for(var f=E.raw,x=f.length,y="",Q=0;Q<x;++Q)y+=f[Q],Q+1<x&&Q+1<arguments.length&&(y+=String(arguments[Q+1]));return y}});
NI("Reflect.ownKeys",function(v){return v?v:function(E){var n=[],f=Object.getOwnPropertyNames(E);E=Object.getOwnPropertySymbols(E);for(var x=0;x<f.length;x++)(f[x].substring(0,14)=="jscomp_symbol_"?E:n).push(f[x]);return n.concat(E)}});
NI("Object.getOwnPropertyDescriptors",function(v){return v?v:function(E){for(var n={},f=Reflect.ownKeys(E),x=0;x<f.length;x++)n[f[x]]=Object.getOwnPropertyDescriptor(E,f[x]);return n}});
NI("WeakSet",function(v){if(function(){if(!v||!Object.seal)return!1;try{var n=Object.seal({}),f=Object.seal({}),x=new v([n]);if(!x.has(n)||x.has(f))return!1;x.delete(n);x.add(f);return!x.has(n)&&x.has(f)}catch(y){return!1}}())return v;
var E=function(n){this.JSC$6676_map_=new WeakMap;if(n){n=_.p(n);for(var f;!(f=n.next()).done;)this.add(f.value)}};
E.prototype.add=function(n){this.JSC$6676_map_.set(n,!0);return this};
E.prototype.has=function(n){return this.JSC$6676_map_.has(n)};
E.prototype.delete=function(n){return this.JSC$6676_map_.delete(n)};
return E});
NI("Promise.allSettled",function(v){function E(f){return{status:"fulfilled",value:f}}
function n(f){return{status:"rejected",reason:f}}
return v?v:function(f){var x=this;f=Array.from(f,function(y){return x.resolve(y).then(E,n)});
return x.all(f)}});
NI("Number.parseInt",function(v){return v||parseInt});
_._DumpException=window._DumpException||function(v){throw v;};
window._DumpException=_._DumpException;var VT$,GY,TY,i9,DzA,Hus,gky,Nss,Wb,u99;VT$=VT$||{};_.n1=this||self;_.Vc=function(v,E,n){v=v.split(".");n=n||_.n1;for(var f;v.length&&(f=v.shift());)v.length||E===void 0?n[f]&&n[f]!==Object.prototype[f]?n=n[f]:n=n[f]={}:n[f]=E};
GY=function(v){var E=_.JM("WIZ_global_data.oxN3nb");v=E&&E[v];return v!=null?v:!1};
TY=_.n1._F_toggles||[];i9=function(){};
i9.get=function(){return null};
_.JM=function(v,E){v=v.split(".");E=E||_.n1;for(var n=0;n<v.length;n++)if(E=E[v[n]],E==null)return null;return E};
_.zY=function(v){v.instance_=void 0;v.getInstance=function(){return v.instance_?v.instance_:v.instance_=new v}};
_.eM=function(v){var E=typeof v;return E!="object"?E:v?Array.isArray(v)?"array":E:"null"};
_.E1=function(v){var E=_.eM(v);return E=="array"||E=="object"&&typeof v.length=="number"};
_.oF=function(v){var E=typeof v;return E=="object"&&v!=null||E=="function"};
_.xw=function(v){return Object.prototype.hasOwnProperty.call(v,DzA)&&v[DzA]||(v[DzA]=++Hus)};
DzA="closure_uid_"+(Math.random()*1E9>>>0);Hus=0;gky=function(v,E,n){return v.call.apply(v.bind,arguments)};
Nss=function(v,E,n){if(!v)throw Error();if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);return function(){var x=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(x,f);return v.apply(E,x)}}return function(){return v.apply(E,arguments)}};
_.XV=function(v,E,n){_.XV=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?gky:Nss;return _.XV.apply(null,arguments)};
_.vR=function(v,E){var n=Array.prototype.slice.call(arguments,1);return function(){var f=n.slice();f.push.apply(f,arguments);return v.apply(this,f)}};
_.Rr=function(){return Date.now()};
Wb=function(v){return v};
_.tf=function(v,E){function n(){}
n.prototype=E.prototype;v.superClass_=E.prototype;v.prototype=new n;v.prototype.constructor=v;v.base=function(f,x,y){for(var Q=Array(arguments.length-2),e=2;e<arguments.length;e++)Q[e-2]=arguments[e];return E.prototype[x].apply(f,Q)}};
u99=function(v){return v};var Krs,hPE;_.k=function(v,E,n,f){var x=arguments.length,y=x<3?E:f===null?f=Object.getOwnPropertyDescriptor(E,n):f,Q;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")y=Reflect.decorate(v,E,n,f);else for(var e=v.length-1;e>=0;e--)if(Q=v[e])y=(x<3?Q(y):x>3?Q(E,n,y):Q(E,n))||y;return x>3&&y&&Object.defineProperty(E,n,y),y};
_.W=function(v,E){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(v,E)};
Krs=function(v,E){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("x");if(n===void 0){if(!Symbol.dispose)throw new TypeError("z");var n=E[Symbol.dispose]}if(typeof n!=="function")throw new TypeError("A");v.stack.push({value:E,dispose:n,async:!1})}return E};
hPE=function(v){function E(y){v.error=v.hasError?new SuppressedError(y,v.error,"An error was suppressed during disposal."):y;v.hasError=!0}
function n(){for(;f=v.stack.pop();)try{if(!f.async&&x===1)return x=0,v.stack.push(f),Promise.resolve().then(n);if(f.dispose){var y=f.dispose.call(f.value);if(f.async)return x|=2,Promise.resolve(y).then(n,function(Q){E(Q);return n()})}else x|=1}catch(Q){E(Q)}if(x===1)return v.hasError?Promise.reject(v.error):Promise.resolve();
if(v.hasError)throw v.error;}
var f,x=0;n()};_.tf(_.vI,Error);_.vI.prototype.name="CustomError";var jLE;var OuL=void 0,kfQ,WFX=typeof TextDecoder!=="undefined",oXN,nX$=typeof String.prototype.isWellFormed==="function",EXN=typeof TextEncoder!=="undefined";var $zX;_.pT=function(v){for(var E=[],n=0,f=0;f<v.length;f++){var x=v.charCodeAt(f);x<128?E[n++]=x:(x<2048?E[n++]=x>>6|192:((x&64512)==55296&&f+1<v.length&&(v.charCodeAt(f+1)&64512)==56320?(x=65536+((x&1023)<<10)+(v.charCodeAt(++f)&1023),E[n++]=x>>18|240,E[n++]=x>>12&63|128):E[n++]=x>>12|224,E[n++]=x>>6&63|128),E[n++]=x&63|128)}return E};
$zX=function(v){for(var E=[],n=0,f=0;n<v.length;){var x=v[n++];if(x<128)E[f++]=String.fromCharCode(x);else if(x>191&&x<224){var y=v[n++];E[f++]=String.fromCharCode((x&31)<<6|y&63)}else if(x>239&&x<365){y=v[n++];var Q=v[n++],e=v[n++];x=((x&7)<<18|(y&63)<<12|(Q&63)<<6|e&63)-65536;E[f++]=String.fromCharCode(55296+(x>>10));E[f++]=String.fromCharCode(56320+(x&1023))}else y=v[n++],Q=v[n++],E[f++]=String.fromCharCode((x&15)<<12|(y&63)<<6|Q&63)}return E.join("")};var wL=String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},LFF=/&/g,Gf9=/</g,Ts1=/>/g,ius=/"/g,zIF=/'/g,RIy=/\x00/g,tTQ=/[\x00&<>"']/;var B_=!!(TY[0]>>15&1),Bs1=!!(TY[0]>>16&1),vN1=!!(TY[0]&2),ENE=!!(TY[0]&4),nNX=!!(TY[0]&32),oNF=!!(TY[0]&512);var sQ=B_?Bs1:GY(610401301),fxN=B_?vN1:GY(513659523),xfX=B_?ENE:GY(568333945),u3E=B_?nNX:GY(1331761403),crN=B_?oNF:GY(103340015);var PI,yrN=_.n1.navigator;PI=yrN?yrN.userAgentData||null:null;var KZ;_.OQ=function(v,E){return Array.prototype.indexOf.call(v,E,void 0)};
_.I5=function(v,E,n){Array.prototype.forEach.call(v,E,n)};
_.v2=function(v,E,n){return Array.prototype.filter.call(v,E,n)};
_.rA=function(v,E,n){return Array.prototype.map.call(v,E,n)};
KZ=function(v,E,n){return Array.prototype.some.call(v,E,n)};
_.eGE=function(v,E,n){return Array.prototype.every.call(v,E,n)};var Ea=function(v){Ea[" "](v);return v};
Ea[" "]=function(){};
var wVI=function(v,E){try{return Ea(v[E]),!0}catch(n){}return!1},hxQ=function(v,E,n,f){f=f?f(E):E;
return Object.prototype.hasOwnProperty.call(v,f)?v[f]:v[f]=n(E)};var pHL,hO,Qoy,XHQ,FV9,mfX,bLX,wH$,bFE,lxE,TU9,rrI,PLL,MyE,Sty,UfI;_.IPX=function(){return _.n1.navigator||null};
pHL=UQ();_.n9=cGy();hO=C1("Edge");Qoy=hO||_.n9;_.oG=C1("Gecko")&&!(_.mX(_.lE(),"WebKit")&&!C1("Edge"))&&!(C1("Trident")||C1("MSIE"))&&!C1("Edge");_.f9=_.mX(_.lE(),"WebKit")&&!C1("Edge");XHQ=_.f9&&C1("Mobile");_.ejQ=_.wIA();FV9=_.b1s();mfX=(hG()?PI.platform==="Linux":C1("Linux"))||_.lA1();bLX=_.FXX();wH$=mFL();bFE=C1("iPad");lxE=C1("iPod");_.sos=_.VE();TU9=_.mX(_.lE(),"KaiOS");rrI=function(){var v=_.n1.document;return v?v.documentMode:void 0};
a:{var axE="",ZF1=function(){var v=_.lE();if(_.oG)return/rv:([^\);]+)(\)|;)/.exec(v);if(hO)return/Edge\/([\d\.]+)/.exec(v);if(_.n9)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v);if(_.f9)return/WebKit\/(\S+)/.exec(v);if(pHL)return/(?:Version)[ \/]?(\S+)/.exec(v)}();
ZF1&&(axE=ZF1?ZF1[1]:"");if(_.n9){var CLF=rrI();if(CLF!=null&&CLF>parseFloat(axE)){PLL=String(CLF);break a}}PLL=axE}MyE=PLL;Sty={};_.x8=function(v){return hxQ(Sty,v,function(){return _.bE(MyE,v)>=0})};
if(_.n1.document&&_.n9){var qts=rrI();UfI=qts?qts:parseInt(MyE,10)||void 0}else UfI=void 0;_.JrQ=UfI;var YLE,hlG,KVE;_.c2=dL();YLE=mFL()||C1("iPod");hlG=C1("iPad");KVE=_.pIX();_.yH=I$();_.aP=_.YX()&&!_.VE();var dfX,p9,TVN,aQX,YtL,IxX;dfX={};p9=null;TVN=_.oG||_.f9||typeof _.n1.btoa=="function";_.z3=function(v,E){E===void 0&&(E=0);IxX();E=dfX[E];for(var n=Array(Math.floor(v.length/3)),f=E[64]||"",x=0,y=0;x<v.length-2;x+=3){var Q=v[x],e=v[x+1],F=v[x+2],b=E[Q>>2];Q=E[(Q&3)<<4|e>>4];e=E[(e&15)<<2|F>>6];F=E[F&63];n[y++]=b+Q+e+F}b=0;F=f;switch(v.length-x){case 2:b=v[x+1],F=E[(b&15)<<2]||f;case 1:v=v[x],n[y]=E[v>>2]+E[(v&3)<<4|b>>4]+F+f}return n.join("")};
aQX=function(v){var E="";YtL(v,function(n){E+=String.fromCharCode(n)});
return E};
_.ff9=function(v){var E=[];YtL(v,function(n){E.push(n)});
return E};
_.w1=function(v){var E=v.length,n=E*3/4;n%3?n=Math.floor(n):_.FN("=.",v[E-1])&&(n=_.FN("=.",v[E-2])?n-2:n-1);var f=new Uint8Array(n),x=0;YtL(v,function(y){f[x++]=y});
return x!==n?f.subarray(0,x):f};
YtL=function(v,E){function n(F){for(;f<v.length;){var b=v.charAt(f++),l=p9[b];if(l!=null)return l;if(!_.XN(b))throw Error("E`"+b);}return F}
IxX();for(var f=0;;){var x=n(-1),y=n(0),Q=n(64),e=n(64);if(e===64&&x===-1)break;E(x<<2|y>>4);Q!=64&&(E(y<<4&240|Q>>2),e!=64&&E(Q<<6&192|e))}};
IxX=function(){if(!p9){p9={};for(var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),E=["+/=","+/","-_=","-_.","-_"],n=0;n<5;n++){var f=v.concat(E[n].split(""));dfX[n]=f;for(var x=0;x<f.length;x++){var y=f[x];p9[y]===void 0&&(p9[y]=x)}}}};var DFE=typeof Uint8Array!=="undefined",qQE=!_.n9&&typeof btoa==="function",JGE=/[-_.]/g,SQy={"-":"+",_:"/",".":"="},Ni={};var g1,Ars;g1=function(v,E){if(E!==Ni)throw Error("G");this.JSC$6706_value_=v;if(v!=null&&v.length===0)throw Error("F");};
_.uX=function(){return hj1||(hj1=new g1(null,Ni))};
Ars=function(v){return new Uint8Array(KW(v)||0)};
g1.prototype.isEmpty=function(){return this.JSC$6706_value_==null};
g1.prototype.sizeBytes=function(){var v=KW(this);return v?v.length:0};
var KW=function(v){if(Ni!==Ni)throw Error("G");var E=v.JSC$6706_value_;E=E==null||DFE&&E!=null&&E instanceof Uint8Array?E:typeof E==="string"?KXI(E):null;return E==null?E:v.JSC$6706_value_=E},hj1;var IAN=void 0;var U1=typeof Symbol==="function"&&typeof Symbol()==="symbol",Vy9=So("jas",void 0,!0),Ox=So(void 0,"0di"),St=So(void 0,"1oa"),$p=So(void 0,Symbol()),Izs=So(void 0,"0ub"),h4E=So(void 0,"0ubs"),DPA=So(void 0,"0ubsb"),GSQ=So(void 0,"0actk"),uC=So("m_m","messagePrototypeMarker",!0),jFy=So(void 0,"vps"),J6L=So();var hyG,YQE,et,DfX;hyG={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};YQE=Object.defineProperties;_.J6=U1?Vy9:"internalArrayState";DfX=[];Yw(DfX,7);et=Object.freeze(DfX);var jM={},Dz={},HFI=function(v,E,n){this.iterable=v;this.mapper=E;this.thisArg=n};
HFI.prototype.next=function(){var v=this.iterable.next();v.done||(v.value=this.mapper.call(this.thisArg,v.value));return v};
HFI.prototype[Symbol.iterator]=function(){return this};
var gNL=Object.freeze({}),kw={};_.Nbs=GS(function(v){return v!==null&&v!==void 0});var j$E=GS(function(v){return typeof v==="number"}),uNs=GS(function(v){return typeof v==="string"}),O1G=GS(function(v){return typeof v==="boolean"}),uIN=GS(function(v){return v!=null&&typeof v==="object"&&typeof v.then==="function"}),cMA=GS(function(v){return typeof v==="function"}),FxA=GS(function(v){return!!v&&(typeof v==="object"||typeof v==="function")});var TS=typeof _.n1.BigInt==="function"&&typeof _.n1.BigInt(0)==="bigint";var D1=GS(function(v){return TS?v>=joG&&v<=OF$:v[0]==="-"?ksF(v,kAL):ksF(v,WVL)}),kAL=Number.MIN_SAFE_INTEGER.toString(),joG=TS?BigInt(Number.MIN_SAFE_INTEGER):void 0,WVL=Number.MAX_SAFE_INTEGER.toString(),OF$=TS?BigInt(Number.MAX_SAFE_INTEGER):void 0;var $fG=typeof Uint8Array.prototype.slice==="function",zS=0,RF=0,LW;var qP,IO,bC,hR,zyA;qP=typeof BigInt==="function"?BigInt.asIntN:void 0;_.AR=typeof BigInt==="function"?BigInt.asUintN:void 0;IO=Number.isSafeInteger;bC=Number.isFinite;hR=Math.trunc;zyA=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Oly={};var UiQ={},LVN=function(){try{var v=function(){return l9F(Map,[],this.constructor)};
_.S(v,Map);Ea(new v);return!1}catch(E){return!0}}(),QH=function(){this.JSC$6734_map_=new Map};
_.c=QH.prototype;_.c.get=function(v){return this.JSC$6734_map_.get(v)};
_.c.set=function(v,E){this.JSC$6734_map_.set(v,E);this.size=this.JSC$6734_map_.size;return this};
_.c.delete=function(v){v=this.JSC$6734_map_.delete(v);this.size=this.JSC$6734_map_.size;return v};
_.c.clear=function(){this.JSC$6734_map_.clear();this.size=this.JSC$6734_map_.size};
_.c.has=function(v){return this.JSC$6734_map_.has(v)};
_.c.entries=function(){return this.JSC$6734_map_.entries()};
_.c.keys=function(){return this.JSC$6734_map_.keys()};
_.c.values=function(){return this.JSC$6734_map_.values()};
_.c.forEach=function(v,E){return this.JSC$6734_map_.forEach(v,E)};
QH.prototype[Symbol.iterator]=function(){return this.entries()};
var RO=function(){if(LVN)return Object.setPrototypeOf(QH.prototype,Map.prototype),Object.defineProperties(QH.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),QH;var v=function(){return l9F(Map,[],this.constructor)};
_.S(v,Map);return v}(),kp=function(v,E,n,f){n=n===void 0?az$:n;
f=f===void 0?az$:f;var x=RO.call(this)||this;x.arrayState=v[_.J6]|0;x.valueCtor=E;x.keyToApi=n;x.valueToApi=x.valueCtor?CXN:f;for(var y=0;y<v.length;y++){var Q=v[y],e=n(Q[0],!1,!0),F=Q[1];E?F===void 0&&(F=null):F=f(Q[1],!1,!0,void 0,void 0,x.arrayState);RO.prototype.set.call(x,e,F)}return x};
_.S(kp,RO);var GAX=function(v){if(v.arrayState&2)throw Error("K");};
_.c=kp.prototype;_.c.clear=function(){GAX(this);RO.prototype.clear.call(this)};
_.c.delete=function(v){GAX(this);return RO.prototype.delete.call(this,this.keyToApi(v,!0,!1))};
_.c.entries=function(){if(this.valueCtor){var v=RO.prototype.keys.call(this);v=new HFI(v,Moy,this)}else v=RO.prototype.entries.call(this);return v};
_.c.values=function(){if(this.valueCtor){var v=RO.prototype.keys.call(this);v=new HFI(v,kp.prototype.get,this)}else v=RO.prototype.values.call(this);return v};
_.c.forEach=function(v,E){this.valueCtor?RO.prototype.forEach.call(this,function(n,f,x){v.call(E,x.get(f),f,x)}):RO.prototype.forEach.call(this,v,E)};
_.c.set=function(v,E){GAX(this);v=this.keyToApi(v,!0,!1);return v==null?this:E==null?(RO.prototype.delete.call(this,v),this):RO.prototype.set.call(this,v,this.valueToApi(E,!0,!0,this.valueCtor,!1,this.arrayState))};
_.c.has=function(v){return RO.prototype.has.call(this,this.keyToApi(v,!1,!1))};
_.c.get=function(v){v=this.keyToApi(v,!1,!1);var E=RO.prototype.get.call(this,v);if(E!==void 0){var n=this.valueCtor;return n?(n=this.valueToApi(E,!1,!0,n,this.callToMutableOnAccess,this.arrayState),n!==E&&RO.prototype.set.call(this,v,n),n):E}};
kp.prototype[Symbol.iterator]=function(){return this.entries()};
kp.prototype.toJSON=void 0;var S1y;var DiE=function(){},G3=function(v,E){for(var n in v)!isNaN(n)&&E(v,+n,v[n])},Hl$=function(v){var E=new DiE;
G3(v,function(n,f,x){E[f]=xp(x)});
E.reviveUnknownFields=v.reviveUnknownFields;return E},KgE={reviveIntoImmutable:!0};var VoX;var kSE,WgX;var TbF,sm,RY,n3,iF9,sa,vP,zjA,Rj9,Z2,tyX,Mr,qr,Jm;TbF=_.iX(0);_.XB={};_.ef=function(v,E,n,f,x){E=sm(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,n,x);if(E!==null||f&&v.noLegacyNull!==Dz)return E};
sm=function(v,E,n,f){if(E===-1)return null;var x=E+(n?0:-1),y=v.length-1;if(!(y<1+(n?0:-1))){if(x>=y){var Q=v[y];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){n=Q[E];var e=!0}else if(x===y)n=Q;else return}else n=v[x];if(f&&n!=null){f=f(n);if(f==null)return f;if(!Object.is(f,n))return e?Q[E]=f:v[x]=f,f}return n}};
_.km=function(v,E,n,f){yj(v);var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Qj(x,x[_.J6]|0,E,n,f);return v};
_.FB=function(v,E,n){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Um(v,v[_.J6]|0,E,n)!==void 0};
_.mk=function(v,E,n,f){var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Um(x,x[_.J6]|0,E,n3(v,f,n))!==void 0};
_.WV=function(v){return v===gNL?2:4};
_.wO=function(v,E){v=_.ef(v,E,void 0,void 0,vpE);return v==null?_.uX():v};
RY=function(v,E,n,f){yj(v);var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=x[_.J6]|0;if(f==null){var Q=npX(x);if(op9(Q,x,y,n)===E)Q.set(n,0);else return v}else y=f1X(x,y,n,E);Qj(x,y,E,f);return v};
_.bN=function(v,E,n,f){var x=v[_.J6]|0,y=WU(x);x=f1X(v,x,n,E,y);Qj(v,x,E,f,y)};
n3=function(v,E,n){return _.lN(v,E)===n?n:-1};
_.lN=function(v,E){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return op9(npX(v),v,void 0,E,void 0)};
iF9=function(v,E,n){var f=v[_.J6]|0,x=WU(f),y=sm(v,n,x);if(y!=null&&y[uC]===jM){if(!HU(y))return cz(y),y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Q=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(y)&&(Q=y);if(Q){var e=Q[_.J6]|0;e&2&&(Q=nW(Q,e))}Q=Em(Q,E,!0);Q!==y&&Qj(v,f,n,Q,x);return Q};
_.j5=function(v,E,n,f){var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=x[_.J6]|0;E=Um(x,y,E,n,f);if(E==null)return E;y=x[_.J6]|0;if(!HU(v,y)){var Q=ZlG(E);Q!==E&&(cz(v)&&(x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=x[_.J6]|0),E=Q,y=Qj(x,y,n,E,f),pW(x,y))}return E};
_.kr=function(v,E,n,f){var x=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xPX(v,x,x[_.J6]|0,E,n,f,!1,!0)};
_.Bz=function(v,E,n,f){n=cRs(n);_.km(v,E,n,f);n&&!HU(n)&&pW(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
_.v5=function(v,E,n,f){f=cRs(f);RY(v,E,n,f);f&&!HU(f)&&pW(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
sa=function(v,E,n){yj(v);var f=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=f[_.J6]|0;if(n==null)return Qj(f,x,E),v;for(var y=n===et?7:n[_.J6]|0,Q=y,e=br(y),F=e||Object.isFrozen(n),b=!0,l=!0,r=0;r<n.length;r++){var a=n[r];e||(a=HU(a),b&&(b=!a),l&&(l=a))}e||(y=b?13:5,y=l?y&-4097:y|4096);F&&y===Q||(n=xp(n),Q=0,y=FL(y,x));y!==Q&&Yw(n,y);x=Qj(f,x,E,n);2&y||!(4096&y||16&y)||pW(f,x);return v};
vP=function(v,E,n,f){pby(v,E,n,f);return v};
zjA=function(v,E,n){pby(v,E,rO,void 0,n,1,!0);return v};
_.P2=function(v,E,n){v=_.ef(v,E,void 0,n);E=typeof v;v=v==null?v:E==="bigint"?_.iX((0,_.AR)(64,v)):_.lC(v)?E==="string"?_.e4Q(v):_.QFQ(v):void 0;return v};
_.aG=function(v,E){var n=n===void 0?!1:n;var f;return(f=_.i1G(_.ef(v,E)))!=null?f:n};
_.$r=function(v,E,n){n=n===void 0?0:n;var f;return(f=_.MP(_.ef(v,E)))!=null?f:n};
Rj9=function(v,E){var n=n===void 0?0:n;v=_.SM(_.ef(v,E));return v!=null?v:n};
Z2=function(v,E,n){n=n===void 0?TbF:n;var f;return(f=_.wUy(_.ef(v,E)))!=null?f:n};
tyX=function(v){var E=E===void 0?TbF:E;var n;return(n=_.P2(v,23))!=null?n:E};
Mr=function(v,E){var n=n===void 0?0:n;var f;return(f=_.ef(v,E,void 0,void 0,_.Xd))!=null?f:n};
_.Sf=function(v,E,n,f){n=n===void 0?"":n;var x;return(x=_.NP(_.ef(v,E,f)))!=null?x:n};
_.Ua=function(v,E){var n=n===void 0?0:n;var f;return(f=_.aO(_.ef(v,E)))!=null?f:n};
qr=function(v,E){var n=n===void 0?"0":n;v=miA(_.ef(v,E),!0);return v!=null?v:n};
Jm=function(v,E,n){return _.Sf(v,n3(v,n,E))};
_.K9=function(v,E,n,f){return _.j5(v,E,n3(v,f,n),void 0)};
_.nT=function(v,E){return _.NP(_.ef(v,E,void 0,_.XB))};
_.iU=function(v,E,n){return _.km(v,E,TLQ(n))};
_.FY=function(v,E,n){return _.Pz(v,E,TLQ(n),!1)};
_.dO=function(v,E,n){return _.km(v,E,_.Z1(n))};
_.f3=function(v,E,n){return _.km(v,E,d_(n))};
_.ps=function(v,E,n){return _.km(v,E,g_(n))};
_.O_=function(v,E,n,f){return _.Pz(v,E,g_(n),"",f)};
_.OH=function(v,E,n){return _.km(v,E,n==null?n:_.Pb(n))};
_.IG=function(v,E,n){return _.Pz(v,E,n==null?n:_.Pb(n),0)};var qn=function(v,E,n){this.buffer=v;if(n&&!E)throw Error();this.JSC$6746_isImmutable=E};var BbN=function(v,E,n,f){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6749_start_=0;this.init(v,E,n,f)},Y8,EG$,nGX,fFF,JRA,vG9;
_.c=BbN.prototype;_.c.init=function(v,E,n,f){var x=f===void 0?{}:f;f=x.aliasBytesFields===void 0?!1:x.aliasBytesFields;x=x.treatNewDataAsImmutable===void 0?!1:x.treatNewDataAsImmutable;this.aliasBytesFields=f;this.treatNewDataAsImmutable=x;v&&(v=QOE(v,this.treatNewDataAsImmutable),this.bytes_=v.buffer,this.bytesAreImmutable_=v.JSC$6746_isImmutable,this.JSC$6749_start_=E||0,this.end_=n!==void 0?this.JSC$6749_start_+n:this.bytes_.length,this.cursor_=this.JSC$6749_start_)};
_.c.free=function(){this.clear();vG9.length<100&&vG9.push(this)};
_.c.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6749_start_=0;this.aliasBytesFields=!1};
_.c.reset=function(){this.cursor_=this.JSC$6749_start_};
_.c.atEnd=function(){return this.cursor_==this.end_};
_.hm=function(v,E){var n=0,f=0,x=0,y=v.bytes_,Q=v.cursor_;do{var e=y[Q++];n|=(e&127)<<x;x+=7}while(x<32&&e&128);x>32&&(f|=(e&127)>>4);for(x=3;x<32&&e&128;x+=7)e=y[Q++],f|=(e&127)<<x;Y8(v,Q);if(e<128)return E(n>>>0,f>>>0);throw Error("X");};
Y8=function(v,E){v.cursor_=E;if(E>v.end_)throw Error("Y`"+E+"`"+v.end_);};
_.Am=function(v){var E=v.bytes_,n=v.cursor_,f=E[n++],x=f&127;if(f&128&&(f=E[n++],x|=(f&127)<<7,f&128&&(f=E[n++],x|=(f&127)<<14,f&128&&(f=E[n++],x|=(f&127)<<21,f&128&&(f=E[n++],x|=f<<28,f&128&&E[n++]&128&&E[n++]&128&&E[n++]&128&&E[n++]&128&&E[n++]&128)))))throw Error("X");Y8(v,n);return x};
_.VH=function(v){var E=v.bytes_,n=v.cursor_,f=E[n],x=E[n+1],y=E[n+2];E=E[n+3];Y8(v,v.cursor_+4);return(f<<0|x<<8|y<<16|E<<24)>>>0};
EG$=function(v){var E=_.VH(v);v=_.VH(v);return LXL(E,v)};
nGX=function(v){var E=_.VH(v),n=_.VH(v);v=(n>>31)*2+1;var f=n>>>20&2047;E=4294967296*(n&1048575)+E;return f==2047?E?NaN:v*Infinity:f==0?v*4.9E-324*E:v*Math.pow(2,f-1075)*(E+4503599627370496)};
_.oGQ=function(v){for(var E=0,n=v.cursor_,f=n+10,x=v.bytes_;n<f;){var y=x[n++];E|=y;if((y&128)===0)return Y8(v,n),!!(E&127)}throw Error("X");};
fFF=function(v,E){if(E<0)throw Error("Z`"+E);var n=v.cursor_,f=n+E;if(f>v.end_)throw Error("Y`"+(v.end_-n)+"`"+E);v.cursor_=f;return n};
JRA=function(v,E){if(E==0)return _.uX();var n=fFF(v,E);v.aliasBytesFields&&v.bytesAreImmutable_?n=v.bytes_.subarray(n,n+E):(v=v.bytes_,E=n+E,n=n===E?new Uint8Array(0):$fG?v.slice(n,E):new Uint8Array(v.subarray(n,E)));return n.length==0?_.uX():new g1(n,Ni)};
vG9=[];var c0s=function(v,E,n,f){if(vG9.length){var x=vG9.pop();x.init(v,E,n,f);v=x}else v=new BbN(v,E,n,f);this.decoder_=v;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;xKA(this,f)},xKA=function(v,E){E=E===void 0?{}:E;
v.discardUnknownFields=E.discardUnknownFields===void 0?!1:E.discardUnknownFields},I1G=function(v,E,n,f){if(y0N.length){var x=y0N.pop();
xKA(x,f);x.decoder_.init(v,E,n,f);return x}return new c0s(v,E,n,f)},UPI,Hz,pxF,y0N;
c0s.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;y0N.length<100&&y0N.push(this)};
c0s.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
UPI=function(v){if(v.decoder_.atEnd())return!1;v.fieldCursor_=v.decoder_.cursor_;var E=_.Am(v.decoder_)>>>0,n=E>>>3;E&=7;if(!(E>=0&&E<=5))throw Error("T`"+E+"`"+v.fieldCursor_);if(n<1)throw Error("U`"+n+"`"+v.fieldCursor_);v.nextField_=n;v.nextWireType_=E;return!0};
Hz=function(v){switch(v.nextWireType_){case 0:v.nextWireType_!=0?Hz(v):_.oGQ(v.decoder_);break;case 1:v=v.decoder_;Y8(v,v.cursor_+8);break;case 2:if(v.nextWireType_!=2)Hz(v);else{var E=_.Am(v.decoder_)>>>0;v=v.decoder_;Y8(v,v.cursor_+E)}break;case 5:v=v.decoder_;Y8(v,v.cursor_+4);break;case 3:E=v.nextField_;do{if(!UPI(v))throw Error("V");if(v.nextWireType_==4){if(v.nextField_!=E)throw Error("W");break}Hz(v)}while(1);break;default:throw Error("T`"+v.nextWireType_+"`"+v.fieldCursor_);}};
pxF=function(v,E,n){var f=v.decoder_.end_,x=_.Am(v.decoder_)>>>0,y=v.decoder_.cursor_+x,Q=y-f;Q<=0&&(v.decoder_.end_=y,n(E,v,void 0,void 0,void 0),Q=y-v.decoder_.cursor_);if(Q)throw Error("S`"+x+"`"+(x-Q));v.decoder_.cursor_=y;v.decoder_.end_=f};
_.Q7X=function(v){var E=_.Am(v.decoder_)>>>0;v=v.decoder_;var n=fFF(v,E);v=v.bytes_;if(WFX){var f=v,x;(x=kfQ)||(x=kfQ=new TextDecoder("utf-8",{fatal:!0}));E=n+E;f=n===0&&E===f.length?f:f.subarray(n,E);try{var y=x.decode(f)}catch(b){if(OuL===void 0){try{x.decode(new Uint8Array([128]))}catch(l){}try{x.decode(new Uint8Array([97])),OuL=!0}catch(l){OuL=!1}}!OuL&&(kfQ=void 0);throw b;}}else{y=n;E=y+E;n=[];for(var Q=null,e,F;y<E;)e=v[y++],e<128?n.push(e):e<224?y>=E?EQ():(F=v[y++],e<194||(F&192)!==128?(y--,
EQ()):n.push((e&31)<<6|F&63)):e<240?y>=E-1?EQ():(F=v[y++],(F&192)!==128||e===224&&F<160||e===237&&F>=160||((x=v[y++])&192)!==128?(y--,EQ()):n.push((e&15)<<12|(F&63)<<6|x&63)):e<=244?y>=E-2?EQ():(F=v[y++],(F&192)!==128||(e<<28)+(F-144)>>30!==0||((x=v[y++])&192)!==128||((f=v[y++])&192)!==128?(y--,EQ()):(e=(e&7)<<18|(F&63)<<12|(x&63)<<6|f&63,e-=65536,n.push((e>>10&1023)+55296,(e&1023)+56320))):EQ(),n.length>=8192&&(Q=vXE(Q,n),n.length=0);y=vXE(Q,n)}return y};
_.Xx1=function(v){var E=_.Am(v.decoder_)>>>0;return JRA(v.decoder_,E)};
_.e3L=function(v,E,n){var f=_.Am(v.decoder_)>>>0;for(f=v.decoder_.cursor_+f;v.decoder_.cursor_<f;)n.push(E(v.decoder_))};
y0N=[];_.Vj=function(v,E,n){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,E,n)};
_.Vj.prototype.toJSON=function(){return tR(this)};
_.Vj.prototype.serialize=function(v){return JSON.stringify(tR(this,v))};
var obE=function(v,E){if(E==null||E=="")return new v;E=JSON.parse(E);if(!Array.isArray(E))throw Error("$");return new v(V9G(E))};
_.Vj.prototype.getExtension=function(v){Y19(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v.fieldIndex);di9(this,v.fieldIndex);return v.ctor?v.isRepeated?v.getExtensionFn(this,v.ctor,v.fieldIndex,_.WV(),v.JSC$6759_hasMessageId):v.getExtensionFn(this,v.ctor,v.fieldIndex,v.JSC$6759_hasMessageId):v.isRepeated?v.getExtensionFn(this,v.fieldIndex,_.WV(),v.JSC$6759_hasMessageId):v.getExtensionFn(this,v.fieldIndex,v.defaultValue,v.JSC$6759_hasMessageId)};
_.Vj.prototype.clone=function(){var v=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=v[_.J6]|0;return xb(this,v,E)?fW(this,v,!0):new this.constructor(nW(v,E,!1))};
_.Vj.prototype[uC]=jM;_.Vj.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var FvE=function(v,E){this.JSC$6761_lo=v>>>0;this.JSC$6761_hi=E>>>0},wxI=function(v){if(!v)return mKy||(mKy=new FvE(0,0));
if(!/^\d+$/.test(v))return null;f0(v);return new FvE(zS,RF)},mKy,O0G=function(v,E){this.JSC$6763_lo=v>>>0;
this.JSC$6763_hi=E>>>0},udI=function(v){if(!v)return bD$||(bD$=new O0G(0,0));
if(!/^-?\d+$/.test(v))return null;f0(v);return new O0G(zS,RF)},bD$;var lFE=function(){this.JSC$6765_buffer_=[]},jOG,s7L;
lFE.prototype.length=function(){return this.JSC$6765_buffer_.length};
lFE.prototype.end=function(){var v=this.JSC$6765_buffer_;this.JSC$6765_buffer_=[];return v};
jOG=function(v,E,n){for(;n>0||E>127;)v.JSC$6765_buffer_.push(E&127|128),E=(E>>>7|n<<25)>>>0,n>>>=7;v.JSC$6765_buffer_.push(E)};
s7L=function(v,E){for(;E>127;)v.JSC$6765_buffer_.push(E&127|128),E>>>=7;v.JSC$6765_buffer_.push(E)};
_.k3L=function(v,E){if(E>=0)s7L(v,E);else{for(var n=0;n<9;n++)v.JSC$6765_buffer_.push(E&127|128),E>>=7;v.JSC$6765_buffer_.push(1)}};
_.GZ=function(v,E){v.JSC$6765_buffer_.push(E>>>0&255);v.JSC$6765_buffer_.push(E>>>8&255);v.JSC$6765_buffer_.push(E>>>16&255);v.JSC$6765_buffer_.push(E>>>24&255)};var r0X,jt,$PL,T_$;r0X=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new lFE};
jt=function(v,E){E.length!==0&&(v.blocks_.push(E),v.totalLength_+=E.length)};
_.mPX=function(v,E){_.Wz(v,E,2);E=v.encoder_.end();jt(v,E);E.push(v.totalLength_);return E};
_.wbX=function(v,E){var n=E.pop();for(n=v.totalLength_+v.encoder_.length()-n;n>127;)E.push(n&127|128),n>>>=7,v.totalLength_++;E.push(n);v.totalLength_++};
_.Wz=function(v,E,n){s7L(v.encoder_,E*8+n)};
$PL=function(v,E,n){if(n!=null){switch(typeof n){case "string":wxI(n)}_.Wz(v,E,1);switch(typeof n){case "number":v=v.encoder_;WXN(n);_.GZ(v,zS);_.GZ(v,RF);break;case "bigint":n=BigInt.asUintN(64,n);n=new FvE(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));v=v.encoder_;E=n.JSC$6761_hi;_.GZ(v,n.JSC$6761_lo);_.GZ(v,E);break;default:n=wxI(n),v=v.encoder_,E=n.JSC$6761_hi,_.GZ(v,n.JSC$6761_lo),_.GZ(v,E)}}};
T_$=function(v,E,n){_.Wz(v,E,2);s7L(v.encoder_,n.length);jt(v,v.encoder_.end());jt(v,n)};var XbN,ZDy,MlN;XbN=_.IK();_.PKX=_.IK();_.aFs=_.IK();ZDy=_.IK();_.D2=_.IK();_.CK9=_.IK();MlN=_.IK();_.SuE=_.IK();_.UKE=_.IK();var Yb=function(v,E,n){this.$$binaryReaderFn=v;this.$$binaryWriterFn=E;v=Wb(XbN);this.$$isMsg=!!v&&n===v||!1},rRG=eKy(function(v,E,n,f,x){if(v.nextWireType_!==2)return!1;
pxF(v,iF9(E,f,n),x);return!0},b0E),PCX=eKy(function(v,E,n,f,x){if(v.nextWireType_!==2)return!1;
pxF(v,iF9(E,f,n),x);return!0},b0E),Nn=Symbol(),DL=Symbol(),SxF=Symbol(),hKL=Symbol(),KU$=Symbol(),l1X,sOy;var B_$,quE,J0$,KvE,dKs,IFQ,YuN,h3E,A0E,Vl9,DKE,gGL,NXN,j7E,ODE;B_$=function(v,E){var n=new r0X;ARy(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n,Aj(Nn,g2,ur,E));jt(n,n.encoder_.end());v=new Uint8Array(n.totalLength_);E=n.blocks_;for(var f=E.length,x=0,y=0;y<f;y++){var Q=E[y];v.set(Q,x);x+=Q.length}n.blocks_=[v];return v};
quE=_.Om(function(v,E,n){if(v.nextWireType_!==1)return!1;_.kb(E,n,nGX(v.decoder_));return!0},N_N,MlN);
J0$=_.Om(function(v,E,n,f){if(v.nextWireType_!==1)return!1;_.bN(E,n,f,nGX(v.decoder_));return!0},N_N,MlN);
KvE=_.Om(function(v,E,n,f){if(v.nextWireType_!==5)return!1;var x=_.VH(v.decoder_);v=(x>>31)*2+1;var y=x>>>23&255;x&=8388607;_.bN(E,n,f,y==255?x?NaN:v*Infinity:y==0?v*1.401298464324817E-45*x:v*Math.pow(2,y-150)*(x+8388608));return!0},function(v,E,n){E=_.Xd(E);
E!=null&&(_.Wz(v,n,5),v=v.encoder_,n=LW||(LW=new DataView(new ArrayBuffer(8))),n.setFloat32(0,+E,!0),RF=0,zS=n.getUint32(0,!0),_.GZ(v,zS))},_.IK());
_.H2=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;_.kb(E,n,_.hm(v.decoder_,vb));return!0},_.TZ,_.D2);
dKs=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;v=_.hm(v.decoder_,vb);_.kb(E,n,v===0?void 0:v);return!0},_.TZ,_.D2);
IFQ=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.hm(v.decoder_,vb));return!0},_.TZ,_.D2);
_.gO=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;_.kb(E,n,_.Am(v.decoder_));return!0},WUI,ZDy);
YuN=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;v=_.Am(v.decoder_);_.kb(E,n,v===0?void 0:v);return!0},WUI,ZDy);
h3E=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.Am(v.decoder_));return!0},WUI,ZDy);
A0E=_.Om(function(v,E,n){if(v.nextWireType_!==1)return!1;_.kb(E,n,EG$(v.decoder_));return!0},_.LUL,_.CK9);
Vl9=_.gpQ(function(v,E,n){if(v.nextWireType_!==1&&v.nextWireType_!==2)return!1;E=_.CW(E,E[_.J6]|0,n);v.nextWireType_==2?_.e3L(v,EG$,E):E.push(EG$(v.decoder_));return!0},function(v,E,n){E=_.H0G(lzs,E,!1);
if(E!=null)for(var f=0;f<E.length;f++)$PL(v,n,E[f])},_.CK9);
_.Nr=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;_.kb(E,n,_.oGQ(v.decoder_));return!0},_.G3$,_.PKX);
DKE=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.oGQ(v.decoder_));return!0},_.G3$,_.PKX);
_.uN=_.Om(function(v,E,n){if(v.nextWireType_!==2)return!1;_.kb(E,n,_.Q7X(v));return!0},_.i0s,_.aFs);
_.HDN=_.Om(function(v,E,n,f){if(v.nextWireType_!==2)return!1;_.bN(E,n,f,_.Q7X(v));return!0},_.i0s,_.aFs);
gGL=_.gpQ(function(v,E,n){if(v.nextWireType_!==2)return!1;v=_.Q7X(v);_.CW(E,E[_.J6]|0,n).push(v);return!0},function(v,E,n){E=_.H0G(_.NP,E,!0);
if(E!=null)for(var f=0;f<E.length;f++){var x=v,y=n,Q=E[f];Q!=null&&T_$(x,y,fA1(Q))}},_.aFs);
NXN=void 0;NXN=NXN===void 0?XbN:NXN;_.Oa=new Yb(function(v,E,n,f,x){if(v.nextWireType_!==2)return!1;f=Em(void 0,f,!0);_.CW(E,E[_.J6]|0,n).push(f);pxF(v,f,x);return!0},function(v,E,n,f,x){if(Array.isArray(E))for(var y=0;y<E.length;y++)zKs(v,E[y],n,f,x)},NXN);
_.k8=eKy(function(v,E,n,f,x,y){if(v.nextWireType_!==2)return!1;var Q=E[_.J6]|0;f1X(E,Q,y,n,WU(Q));E=iF9(E,f,n);pxF(v,E,x);return!0},zKs);
_.uiE=_.Om(function(v,E,n){if(v.nextWireType_!==2)return!1;_.kb(E,n,_.Xx1(v));return!0},_.RKQ,_.SuE);
j7E=_.Om(function(v,E,n,f){if(v.nextWireType_!==2)return!1;_.bN(E,n,f,_.Xx1(v));return!0},_.RKQ,_.SuE);
ODE=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.Am(v.decoder_)>>>0);return!0},function(v,E,n){E=_.SM(E);
E!=null&&E!=null&&(_.Wz(v,n,0),s7L(v.encoder_,E))},_.IK());
_.W2=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;_.kb(E,n,_.Am(v.decoder_));return!0},_.tMN,_.UKE);var $KX=function(){var v=kpF,E=WvL;this.fieldIndex=175237375;this.ctor=E;this.isRepeated=0;this.getExtensionFn=_.j5;this.defaultValue=void 0;this.JSC$6759_hasMessageId=v.messageId!=null?kw:void 0};
$KX.prototype.register=function(){Ea(this)};var Lvy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Lvy,_.Vj);var Gps=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Gps,_.Vj);var cjE=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cjE,_.Vj);var TXy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(TXy,_.Vj);var iDX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(iDX,_.Vj);var z31=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(z31,_.Vj);var R3s=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(R3s,_.Vj);R3s.prototype.getData=function(){return _.wO(this,2)};var tlA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(tlA,_.Vj);var BX1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(BX1,_.Vj);BX1.prototype.getStyle=function(){return _.j5(this,Lvy,1)};var tj=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(tj,_.Vj);tj.prototype.getPayloadCase=function(){return _.lN(this,Ew)};
tj.prototype.getStyle=function(){return _.K9(this,BX1,6,Ew)};
var vXP=function(){var v=new tj,E=new iDX;return _.v5(v,7,Ew,E)},EX1=function(){var v=new tj,E=new z31;
return _.v5(v,8,Ew,E)},Ew=[1,
2,3,4,5,6,7,8];var nXF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(nXF,_.Vj);var oX1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(oX1,_.Vj);var fAl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(fAl,_.Vj);var xFX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(xFX,_.Vj);var cG4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cG4,_.Vj);var yGF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(yGF,_.Vj);var pIw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(pIw,_.Vj);var Q$w=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Q$w,_.Vj);Q$w.prototype.getData=function(){return _.wO(this,2)};var XIU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(XIU,_.Vj);var xnE=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(xnE,_.Vj);xnE.prototype.getPayloadCase=function(){return _.lN(this,$8)};
var $8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var L9=function(v,E){v=Error.call(this,v);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=E===void 0?2:E};
_.S(L9,Error);var eyP=Promise;var FXw=function(v){this.channelPromise=v};
FXw.prototype.send=function(v,E,n){this.channelPromise.then(function(f){f.send(v,E,n)})};var mF1=function(v,E){this.data=v;this.channel=E};
mF1.prototype.reply=function(v,E,n){this.channel.send(v,E,n)};var wIz=function(v){this.JSC$6837_port_=v};
wIz.prototype.send=function(v,E,n){n=n===void 0?[]:n;var f=new MessageChannel;b1S(f.port1,E);this.JSC$6837_port_.postMessage(v,[f.port2].concat(n))};
var lAl=function(v,E){b1S(v,E);return new wIz(v)},b1S=function(v,E){E&&(v.onmessage=function(n){E(new mF1(n.data,lAl(n.ports[0])))})};var s$w=function(v){this.verifier_=v},rGw=function(v){var E=Object.create(null);
(typeof v==="string"?[v]:v).forEach(function(n){if(n==="null")throw Error("ba");E[n]=!0});
return function(n){return E[n]===!0}};_.PEl=function(){if(!_.n1.addEventListener||!Object.defineProperty)return!1;var v=!1,E=Object.defineProperty({},"passive",{get:function(){v=!0}});
try{var n=function(){};
_.n1.addEventListener("test",n,E);_.n1.removeEventListener("test",n,E)}catch(f){}return v}();var aA1;_.Gj=function(v){var E=v.destination;var n=v.iframe;var f=v.origin;var x=v.channelName===void 0?"ZNWN1d":v.channelName;var y=v.onMessage===void 0?void 0:v.onMessage;v=v.onEstablished===void 0?void 0:v.onEstablished;return aA1({destination:E,getSource:function(){return n.contentWindow},
originVerifier:f instanceof s$w?f:typeof f==="function"?new s$w(f):new s$w(rGw(f)),channelName:x,onMessage:y,onEstablished:v})};
aA1=function(v){var E=v.destination;var n=v.getSource;var f=v.originVerifier;var x=v.token===void 0?void 0:v.token;var y=v.channelName;var Q=v.onMessage===void 0?void 0:v.onMessage;var e=v.onEstablished===void 0?void 0:v.onEstablished;return new FXw(new eyP(function(F,b){var l=function(r){r.source&&r.source===n()&&f.verifier_(r.origin)&&(r.data.n||r.data)===y&&(E.removeEventListener("message",l,!1),x&&r.data.t!==x?b(Error("ca`"+y+"`"+x+"`"+r.data.t)):(F(lAl(r.ports[0],Q)),e&&e(r)))};
E.addEventListener("message",l,!1)}))};var Z1P=function(v){try{v()}catch(E){o$(E)}};var M9S=function(v){var E=this;var n=v.getMessageType;var f=v.onUnregisteredMessage===void 0?function(){}:v.onUnregisteredMessage;
var x=v.onBeforeRegisteredMessage===void 0?function(){}:v.onBeforeRegisteredMessage;
v=v.onAfterRegisteredMessage===void 0?function(){}:v.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=n;this.onUnregisteredMessage_=f;this.onBeforeRegisteredMessage_=x;this.onAfterRegisteredMessage_=v;this.onMessage=function(y){return CE4(E,y)}};
M9S.prototype.register=function(v,E){this.registry_.set(v,E);return this};
var CE4=function(v,E){var n=v.getMessageType_(E.data),f=v.registry_.get(n);f?(Z1P(function(){return v.onBeforeRegisteredMessage_(E,n)}),Z1P(function(){return f(E)}),Z1P(function(){return v.onAfterRegisteredMessage_(E,n)})):Z1P(function(){return v.onUnregisteredMessage_(E,n)})};var SQ4=function(v){this.JSC$6854_channel_=v},qQP,JGX;
SQ4.prototype.send=function(v,E,n){this.JSC$6854_channel_.send(tR(v),E,n)};
_.UF1=function(v,E){return function(n){var f=new v(n.data);return E(new mF1(f,n.channel))}};
qQP=function(v){return function(E){return v(new mF1(E.data,new SQ4(E.channel)))}};
JGX=function(v,E){return qQP(_.UF1(v,E))};var KXU=function(v,E,n,f){this.registry=v;this.delegate=E;this.receiveMessageConstructor=n;this.createInitMessage=f;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},fLy=function(v){var E=new M9S({getMessageType:v.getPayloadCase});
return new KXU(E,new SQ4(_.Gj({iframe:v.child,destination:window,origin:v.origin,channelName:v.channelName,onMessage:JGX(v.receiveMessageConstructor,E.onMessage)})),v.receiveMessageConstructor,v.createInitMessage)},dFP=function(v,E){v.createInitMessage=E};
KXU.prototype.send=function(v){if(!this.initialised)throw new L9("Attempted to send a message before initialisation.");this.delegate.send(v)};
var IA1=function(v,E){return _.X(function(n){if(!v.initialised)throw new L9("Attempted to send a message before initialisation.");return n.return(new Promise(function(f){v.delegate.send(E,JGX(v.receiveMessageConstructor,f))}))})};
KXU.prototype.init=function(){var v=this;return _.X(function(E){if(v.initialised)throw new L9("Attempted to initialise twice. The SDK can only be initialised once.");if(v.createInitMessage!==void 0){var n=v.delegate,f=n.send,x=v.createInitMessage;var y=new Gps;var Q=[].concat(_.s8(v.features));y=_.r2(y,1,Q,_.Pb);f.call(n,x.call(v,y))}v.initialised=!0;_.yQ(E)})};
var Tj=function(v,E){if(v.initialised)throw new L9('Attempted to set up API "'+E+'" after initialisation. All APIs must be set up before initialising the SDK.');v.features.add(E);return v.registry};
_.hK.Object.defineProperties(KXU.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var YQP=function(v){this.channel=v;this.registered=!1};
YQP.prototype.update=function(v){if(this.channel.isInitialised){if(!this.registered)throw new L9("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var E=new tj;var n=new TXy;n=_.iU(n,1,v);E=_.v5(E,2,Ew,n);this.channel.send(E)}else this.register();this.JSC$6868_audioEnabled=v};
YQP.prototype.register=function(){Tj(this.channel,1);this.registered=!0};
YQP.prototype.isAudioEnabled=function(){return this.JSC$6868_audioEnabled};var hy6=function(v){this.channel=v};
_.c=hy6.prototype;_.c.onFirstFrameReady=function(v){Tj(this.channel,2).register(11,function(E){E=_.K9(E.data,nXF,11,$8);if(!E)throw new L9("Unexpectedly nonexistent GameFirstFrameReadyEvent");v(_.Sf(E,1))})};
_.c.onReady=function(v){Tj(this.channel,2).register(4,function(E){E=_.K9(E.data,fAl,4,$8);if(!E)throw new L9("Unexpectedly nonexistent GameReadyEvent");v(_.Sf(E,1))})};
_.c.onLevelComplete=function(v){Tj(this.channel,2).register(5,function(E){E=_.K9(E.data,xFX,5,$8);if(!E)throw new L9("Unexpectedly nonexistent LevelCompleteEvent");v(_.Sf(E,1),_.$r(E,2))})};
_.c.onGameOver=function(v){Tj(this.channel,2).register(6,function(E){E=_.K9(E.data,oX1,6,$8);if(!E)throw new L9("Unexpectedly nonexistent GameOverEvent");v(_.Sf(E,1))})};
_.c.pause=function(){var v=this;if(!this.channel.isInitialised)return Tj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new L9("Using unregistered Game Feature: pause.");var E=vXP();return new Promise(function(n){return _.X(function(f){if(f.nextAddress==1)return _.m(f,IA1(v.channel,E),2);n();_.yQ(f)})})};
_.c.resume=function(){var v=this;if(!this.channel.isInitialised)return Tj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new L9("Using unregistered Game Feature: resume.");var E=EX1();return new Promise(function(n){return _.X(function(f){if(f.nextAddress==1)return _.m(f,IA1(v.channel,E),2);n();_.yQ(f)})})};var AG1=function(v){this.channel=v};
AG1.prototype.onReady=function(v){Tj(this.channel,5).register(8,function(E){if(!_.K9(E.data,cG4,8,$8))throw new L9("Unexpectedly nonexistent PageReadyEvent");v()})};var V96=function(v){this.channel=v};
V96.prototype.onChange=function(v){Tj(this.channel,3).register(7,function(E){E=_.K9(E.data,yGF,7,$8);if(!E)throw new L9("Unexpectedly nonexistent ScoreEvent");v(_.Sf(E,1),_.$r(E,2))})};var DFX={load:function(){throw new L9("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new L9("Storage used, but storage.onSave() listener not set!");}},H1F=function(v){this.channel=v;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},gXo=function(v){Tj(v.channel,4).register(2,DFX.load).register(3,DFX.save);
v.initialSetupDone=!0};
H1F.prototype.onLoad=function(v){this.initialSetupDone||gXo(this);this.loadRegistered||(this.loadRegistered=!0,Tj(this.channel,4).register(2,function(E){var n,f,x;return _.X(function(y){if(y.nextAddress==1){n=_.K9(E.data,pIw,2,$8);if(!n)throw new L9("Unexpectedly nonexistent StorageLoad");f=_.Sf(n,1);return _.m(y,v(f),2)}x=y.yieldResult;var Q=E.reply,e=new tj;var F=new R3s;F=_.ps(F,1,f);F=_.km(F,2,_.jo(x,!1));e=_.v5(e,3,Ew,F);Q.call(E,e);_.yQ(y)})}))};
H1F.prototype.onSave=function(v){this.initialSetupDone||gXo(this);this.saveRegistered||(this.saveRegistered=!0,Tj(this.channel,4).register(3,function(E){var n,f,x;return _.X(function(y){if(y.nextAddress==1){n=_.K9(E.data,Q$w,3,$8);if(!n)throw new L9("Unexpectedly nonexistent StorageSave");f=_.Sf(n,1);x=Ars(n.getData());return _.m(y,v(f,x),2)}var Q=E.reply,e=new tj;var F=new tlA;F=_.ps(F,1,f);e=_.v5(e,4,Ew,F);Q.call(E,e);_.yQ(y)})}))};var NLl=function(v){this.channel=v};
NLl.prototype.update=function(v){if(!this.channel.features.has(6))throw new L9("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var E=new tj,n=new BX1;v=_.Bz(n,1,v);E=_.v5(E,6,Ew,v);this.channel.send(E)};
NLl.prototype.register=function(){Tj(this.channel,6)};var uNS=function(v){this.channel=v;this.userActivityLoggingIntervalMs=0};
uNS.prototype.onUserActivity=function(v,E){this.userActivityLoggingIntervalMs=E;Tj(this.channel,7).register(9,function(n){if(!_.K9(n.data,XIU,9,$8))throw new L9("Unexpectedly nonexistent ClickEvent");v()})};var j$X=function(v){var E=this;this.channel=v;this.init=this.channel.init.bind(this.channel);this.page=new AG1(this.channel);this.game=new hy6(this.channel);this.audio=new YQP(this.channel);this.score=new V96(this.channel);this.storage=new H1F(this.channel);this.style=new NLl(this.channel);this.userActivity=new uNS(this.channel);dFP(this.channel,function(n){var f=new cjE;n=_.Bz(f,1,n);n=_.dO(n,3,E.userActivity.userActivityLoggingIntervalMs);f=E.audio.isAudioEnabled();f!==void 0&&_.iU(n,2,f);f=new tj;
return _.v5(f,5,Ew,n)})};var O16=function(){this.timedFunctionContext=0};
O16.prototype.timeExecution=function(v,E){var n=this;return function(){var f=_.rV.apply(0,arguments);n.timedFunctionContext=v;return E.apply(null,_.s8(f))}};var ksi=function(){var v={};this.priorityTasks=(v[3]=[],v[2]=[],v[1]=[],v);this.isFlushing=!1},Eh=function(v,E,n){var f=WX1(v,n);
v.priorityTasks[n].push(E);f&&v.priorityTasks[n].length===1&&v.flush()},WX1=function(v,E){return Object.keys(v.priorityTasks).map(function(n){return Number(n)}).filter(function(n){return!isNaN(n)&&n>E}).every(function(n){return v.priorityTasks[n].length===0})};
ksi.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(v){return v.length>0});)$Fw(this,3),$Fw(this,2),$Fw(this,1)}catch(v){throw Object.values(this.priorityTasks).forEach(function(E){return void E.splice(0,E.length)}),v;
}finally{this.isFlushing=!1}}};
var $Fw=function(v,E){for(;WX1(v,E)&&v.priorityTasks[E].length>0;)v.priorityTasks[E][0](),v.priorityTasks[E].shift()};
_.hK.Object.defineProperties(ksi.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(v){return v.length>0})}}});var F99={};var LX1=globalThis.trustedTypes,pzN=LX1,XzN;var oC=function(v){this.privateDoNotAccessOrElseWrappedResourceUrl=v};
oC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Gso=_.jU([""]),TL1=Zu1(["\x00"],["\\0"]),i16=Zu1(["\n"],["\\n"]),zyz=Zu1(["\x00"],["\\u0000"]);yv(function(v){return v(Gso)})||yv(function(v){return v(TL1)})||yv(function(v){return v(i16)})||yv(function(v){return v(zyz)});var wV;_.pc=function(v,E){this.privateDoNotAccessOrElseWrappedUrl=E};
_.pc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Ry6=Qv("about:blank");wV=Qv("about:invalid#zClosurez");var mnN=function(v){this.isValid=v},t91=new mnN(function(v){return/^[^:]*([/?#]|$)/.test(v)}),BLU=F_("data"),vw4=F_("http"),EwS=F_("https"),nw1=F_("ftp"),owP=F_("mailto"),fzF=F_("intent"),xi4=F_("vnd.youtube"),wzL=[BLU,
vw4,EwS,owP,nw1,t91],bWI=nc(function(){return typeof URL==="function"}),c6U=["data:",
"http:","https:","mailto:","ftp:"],sKG=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ma=function(v){this.privateDoNotAccessOrElseWrappedHtml=v};
Ma.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var dXy=nc(function(){return new Ma(LX1?LX1.emptyHTML:"")});var y6U={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"},JA=function(v,E){var n=Error.call(this,v+" cannot be used with intent "+y6U[E]);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.type=v;this.intent=E;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.S(JA,Error);_.IC=function(v){this.privateDoNotAccessOrElseWrappedScript=v};
_.IC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ZWX=function(v){this.privateDoNotAccessOrElseWrappedAttributePrefix=v};
ZWX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Crs="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var IaX=function(v){var E=_.JM("window.location.href");v==null&&(v='Unknown Error of type "null/undefined"');if(typeof v==="string")return{message:v,name:"Unknown error",lineNumber:"Not available",fileName:E,stack:"Not available"};var n=!1;try{var f=v.lineNumber||v.line||"Not available"}catch(Q){f="Not available",n=!0}try{var x=v.fileName||v.filename||v.sourceURL||_.n1.$googDebugFname||E}catch(Q){x="Not available",n=!0}E=pUP(v);if(!(!n&&v.lineNumber&&v.fileName&&v.stack&&v.message&&v.name)){n=v.message;
if(n==null){if(v.constructor&&v.constructor instanceof Function){if(v.constructor.name)n=v.constructor.name;else if(n=v.constructor,iN[n])n=iN[n];else{n=String(n);if(!iN[n]){var y=/function\s+([^\(]+)/m.exec(n);iN[n]=y?y[1]:"[Anonymous]"}n=iN[n]}n='Unknown Error of type "'+n+'"'}else n="Unknown Error of unknown type";typeof v.toString==="function"&&Object.prototype.toString!==v.toString&&(n+=": "+v.toString())}return{message:n,name:v.name||"UnknownError",lineNumber:f,fileName:x,stack:E||"Not available"}}return{message:v.message,
name:v.name,lineNumber:v.lineNumber,fileName:v.fileName,stack:E}},pUP=function(v,E){E||(E={});
E[QF1(v)]=!0;var n=v.stack||"",f=v.cause;f&&!E[QF1(f)]&&(n+="\nCaused by: ",f.stack&&f.stack.indexOf(f.toString())==0||(n+=typeof f==="string"?f:f.message+"\n"),n+=pUP(f,E));v=v.errors;if(Array.isArray(v)){f=1;var x;for(x=0;x<v.length&&!(f>4);x++)E[QF1(v[x])]||(n+="\nInner error "+f++ +": ",v[x].stack&&v[x].stack.indexOf(v[x].toString())==0||(n+=typeof v[x]==="string"?v[x]:v[x].message+"\n"),n+=pUP(v[x],E));x<v.length&&(n+="\n... "+(v.length-x)+" more inner errors")}return n},QF1=function(v){var E=
"";
typeof v.toString==="function"&&(E=""+v);return E+v.stack},iN={};var XUg,u5,k_,FgS,miz,e41,UV,MA,blU;XUg=function(v,E){for(var n=v.split("%s"),f="",x=Array.prototype.slice.call(arguments,1);x.length&&n.length>1;)f+=n.shift()+x.shift();return f+n.join("%s")};
_.dB=function(v){return encodeURIComponent(String(v))};
u5=function(v){return decodeURIComponent(v.replace(/\+/g," "))};
k_=function(v){tTQ.test(v)&&(v.indexOf("&")!=-1&&(v=v.replace(LFF,"&amp;")),v.indexOf("<")!=-1&&(v=v.replace(Gf9,"&lt;")),v.indexOf(">")!=-1&&(v=v.replace(Ts1,"&gt;")),v.indexOf('"')!=-1&&(v=v.replace(ius,"&quot;")),v.indexOf("'")!=-1&&(v=v.replace(zIF,"&#39;")),v.indexOf("\x00")!=-1&&(v=v.replace(RIy,"&#0;")));return v};
FgS=function(v){var E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var n=_.n1.document.createElement("div");return v.replace(e41,function(f,x){var y=E[f];if(y)return y;x.charAt(0)=="#"&&(x=Number("0"+x.slice(1)),isNaN(x)||(y=String.fromCharCode(x)));y||(_.Dd(n,Sc(f+" ")),y=n.firstChild.nodeValue.slice(0,-1));return E[f]=y})};
miz=function(v){return v.replace(/&([^;]+);/g,function(E,n){switch(n){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return n.charAt(0)!="#"||(n=Number("0"+n.slice(1)),isNaN(n))?E:String.fromCharCode(n)}})};
e41=/&([^;\s<&]+);?/g;_.EDE=function(v){return String(v).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.wU4=String.prototype.repeat?function(v,E){return v.repeat(E)}:function(v,E){return Array(E+1).join(v)};
_.zj=function(v,E){if(!Number.isFinite(v))return String(v);v=String(v);var n=v.indexOf(".");n===-1&&(n=v.length);var f=v[0]==="-"?"-":"";f&&(v=v.substring(1));return f+(0,_.wU4)("0",Math.max(0,E-n))+v};
UV=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Rr()).toString(36)};
MA=function(v){for(var E=0,n=0;n<v.length;++n)E=31*E+v.charCodeAt(n)>>>0;return E};
_.BZ=function(v){return String(v).replace(/\-([a-z])/g,function(E,n){return n.toUpperCase()})};
_.tK=function(v){return String(v).replace(/([A-Z])/g,"-$1").toLowerCase()};
blU=function(v){return v.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(E,n,f){return n+f.toUpperCase()})};var lzS=function(){this.names=new Map};
lzS.prototype.getName=function(v){var E=this.names.get(v);if(E)return E;var n;E=(n=v.description)!=null?n:UV();this.names.set(v,E);return E};var sF4=function(v){var E=Error.call(this,v?v.length+" errors occurred during unsubscription:\n"+v.map(function(n,f){return f+1+") "+n.toString()}).join("\n  "):"");
this.message=E.message;"stack"in E&&(this.stack=E.stack);this.errors=v;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.S(sF4,Error);var W5=function(v){this.initialTeardown=v;this.closed=!1;this._teardowns=this._parentage=null};
_.c=W5.prototype;
_.c.unsubscribe=function(){if(!this.closed){this.closed=!0;var v=this._parentage;if(Array.isArray(v))for(var E=_.p(v),n=E.next();!n.done;n=E.next())n.value.remove(this);else v==null||v.remove(this);E=this.initialTeardown;if(kR(E))try{E()}catch(y){var f=y instanceof sF4?y.errors:[y]}var x=this._teardowns;if(x)for(this._teardowns=null,E=_.p(x),n=E.next();!n.done;n=E.next()){n=n.value;try{kR(n)?n():n.unsubscribe()}catch(y){n=void 0,f=(n=f)!=null?n:[],y instanceof sF4?f=[].concat(_.s8(f),_.s8(y.errors)):
f.push(y)}}if(f)throw new sF4(f);}};
_.c.add=function(v){if(v&&v!==this)if(this.closed)kR(v)?v():v.unsubscribe();else{if(v instanceof W5){if(v.closed||v._hasParent(this))return;v._addParent(this)}var E;(this._teardowns=(E=this._teardowns)!=null?E:[]).push(v)}};
_.c._hasParent=function(v){var E=this._parentage;return E===v||Array.isArray(E)&&E.includes(v)};
_.c._addParent=function(v){var E=this._parentage;this._parentage=Array.isArray(E)?(E.push(v),E):E?[E,v]:v};
_.c._removeParent=function(v){var E=this._parentage;E===v?this._parentage=null:Array.isArray(E)&&Ow(E,v)};
_.c.remove=function(v){var E=this._teardowns;E&&Ow(E,v);v instanceof W5&&v._removeParent(this)};
var r61=new W5;r61.closed=!0;W5.JSC$6964_EMPTY=r61;var qmE=function(){setTimeout.apply(null,_.s8(_.rV.apply(0,arguments)))};var RG=function(v){W5.call(this);this.JSC$6969_isStopped=!1;this.destination=v instanceof RG?v:new tm(!v||kR(v)?{next:v!=null?v:void 0}:v);UnN(v)&&v.add(this)};
_.S(RG,W5);RG.JSC$6964_EMPTY=W5.JSC$6964_EMPTY;RG.create=function(v,E,n){return new B2(v,E,n)};
_.c=RG.prototype;_.c.next=function(v){this.JSC$6969_isStopped||this._next(v)};
_.c.error=function(v){this.JSC$6969_isStopped||(this.JSC$6969_isStopped=!0,this._error(v))};
_.c.complete=function(){this.JSC$6969_isStopped||(this.JSC$6969_isStopped=!0,this._complete())};
_.c.unsubscribe=function(){this.closed||(this.JSC$6969_isStopped=!0,W5.prototype.unsubscribe.call(this))};
_.c._next=function(v){this.destination.next(v)};
_.c._error=function(v){this.destination.error(v);this.unsubscribe()};
_.c._complete=function(){this.destination.complete();this.unsubscribe()};
var tm=function(v){this.partialObserver=v};
tm.prototype.next=function(v){var E=this.partialObserver;if(E.next)try{E.next(v)}catch(n){Lc(n)}};
tm.prototype.error=function(v){var E=this.partialObserver;if(E.error)try{E.error(v)}catch(n){Lc(n)}else Lc(v)};
tm.prototype.complete=function(){var v=this.partialObserver;if(v.complete)try{v.complete()}catch(E){Lc(E)}};
var B2=function(v,E,n){RG.call(this);var f;kR(v)||!v?f={next:v!=null?v:void 0,error:E!=null?E:void 0,complete:n!=null?n:void 0}:f=v;this.destination=new tm(f)};
_.S(B2,RG);B2.JSC$6964_EMPTY=RG.JSC$6964_EMPTY;B2.create=RG.create;var RC=typeof Symbol==="function"&&Symbol.observable||"@@observable";var iW=function(v){v&&(this._subscribe=v)};
_.c=iW.prototype;_.c.lift=function(v){var E=new iW;E.source=this;E.operator=v;return E};
_.c.subscribe=function(v,E,n){v=v&&v instanceof RG||v&&kR(v.next)&&kR(v.error)&&kR(v.complete)&&UnN(v)?v:new B2(v,E,n);E=this.operator;n=this.source;v.add(E?E.call(v,n):n?this._subscribe(v):this._trySubscribe(v));return v};
_.c._trySubscribe=function(v){try{return this._subscribe(v)}catch(E){v.error(E)}};
_.c.forEach=function(v,E){var n=this;E=K9L(E);return new E(function(f,x){var y=n.subscribe(function(Q){try{v(Q)}catch(e){x(e),y==null||y.unsubscribe()}},x,f)})};
_.c._subscribe=function(v){var E;return(E=this.source)==null?void 0:E.subscribe(v)};
iW.prototype[RC]=function(){return this};
iW.prototype.pipe=function(){var v=_.rV.apply(0,arguments);return v.length?JjX(v)(this):this};
iW.create=function(v){return new iW(v)};var PX1=function(){var v=Error.call(this,"object unsubscribed");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.S(PX1,Error);var te=function(){this.observers=[];this.hasError=this.JSC$6985_isStopped=this.closed=!1;this.thrownError=null};
_.S(te,iW);_.c=te.prototype;_.c.lift=function(v){var E=new vM(this,this);E.operator=v;return E};
_.c._throwIfClosed=function(){if(this.closed)throw new PX1;};
_.c.next=function(v){this._throwIfClosed();if(!this.JSC$6985_isStopped){var E=this.observers.slice();E=_.p(E);for(var n=E.next();!n.done;n=E.next())n.value.next(v)}};
_.c.error=function(v){this._throwIfClosed();if(!this.JSC$6985_isStopped){this.hasError=this.JSC$6985_isStopped=!0;this.thrownError=v;for(var E=this.observers;E.length;)E.shift().error(v)}};
_.c.complete=function(){this._throwIfClosed();if(!this.JSC$6985_isStopped){this.JSC$6985_isStopped=!0;for(var v=this.observers;v.length;)v.shift().complete()}};
_.c.unsubscribe=function(){this.JSC$6985_isStopped=this.closed=!0;this.observers=null};
_.c._trySubscribe=function(v){this._throwIfClosed();return iW.prototype._trySubscribe.call(this,v)};
_.c._subscribe=function(v){this._throwIfClosed();this._checkFinalizedStatuses(v);return this._innerSubscribe(v)};
_.c._innerSubscribe=function(v){var E=this,n=this.JSC$6985_isStopped,f=this.observers;return this.hasError||n?W5.JSC$6964_EMPTY:(f.push(v),new W5(function(){return Ow(E.observers,v)}))};
_.c._checkFinalizedStatuses=function(v){var E=this.thrownError,n=this.JSC$6985_isStopped;this.hasError?v.error(E):n&&v.complete()};
te.create=function(v,E){return new vM(v,E)};
var vM=function(v,E){te.call(this);this.destination=v;this.source=E};
_.S(vM,te);vM.create=te.create;vM.prototype.next=function(v){var E,n;(E=this.destination)==null||(n=E.next)==null||n.call(E,v)};
vM.prototype.error=function(v){var E,n;(E=this.destination)==null||(n=E.error)==null||n.call(E,v)};
vM.prototype.complete=function(){var v,E;(v=this.destination)==null||(E=v.complete)==null||E.call(v)};
vM.prototype._subscribe=function(v){var E,n;return(n=(E=this.source)==null?void 0:E.subscribe(v))!=null?n:W5.JSC$6964_EMPTY};var Ks=function(v){te.call(this);this._value=v};
_.S(Ks,te);Ks.create=te.create;Ks.prototype._subscribe=function(v){var E=te.prototype._subscribe.call(this,v);!E.closed&&v.next(this._value);return E};
Ks.prototype.getValue=function(){var v=this.thrownError,E=this._value;if(this.hasError)throw v;this._throwIfClosed();return E};
Ks.prototype.next=function(v){te.prototype.next.call(this,this._value=v)};
_.hK.Object.defineProperties(Ks.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Mg=new iW(function(v){return v.complete()});var zd=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var HW1=function(v){return v&&typeof v.length==="number"&&typeof v!=="function"};var azF={now:function(){return(azF.delegate||Date).now()},
delegate:void 0};var u_=function(v,E,n){v=v===void 0?Infinity:v;E=E===void 0?Infinity:E;n=n===void 0?azF:n;te.call(this);this.JSC$7007_bufferSize=v;this.windowTime=E;this.timestampProvider=n;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=E===Infinity;this.JSC$7007_bufferSize=Math.max(1,v);this.windowTime=Math.max(1,E)};
_.S(u_,te);u_.create=te.create;u_.prototype.next=function(v){var E=this.buffer,n=this.infiniteTimeWindow,f=this.timestampProvider,x=this.windowTime;this.JSC$6985_isStopped||(E.push(v),!n&&E.push(f.now()+x));Zl6(this);te.prototype.next.call(this,v)};
u_.prototype._subscribe=function(v){this._throwIfClosed();Zl6(this);for(var E=this._innerSubscribe(v),n=this.infiniteTimeWindow,f=this.buffer.slice(),x=0;x<f.length&&!v.closed;x+=n?1:2)v.next(f[x]);this._checkFinalizedStatuses(v);return E};
var Zl6=function(v){var E=v.JSC$7007_bufferSize,n=v.timestampProvider,f=v.buffer;v=v.infiniteTimeWindow;var x=(v?1:2)*E;E<Infinity&&x<f.length&&f.splice(0,f.length-x);if(!v){E=n.now();n=0;for(v=1;v<f.length&&f[v]<=E;v+=2)n=v;n&&f.splice(0,n+1)}};var Mo4=function(v,E){E=E===void 0?CX1:E;this.schedulerActionCtor=v;this.now=E};
Mo4.prototype.schedule=function(v,E,n){E=E===void 0?0:E;return(new this.schedulerActionCtor(this,v)).schedule(n,E)};
var CX1=azF.now;var JAQ=function(){var v=Error.call(this,"no elements in sequence");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.S(JAQ,Error);var wY=function(v,E,n,f,x){RG.call(this,v);this.onUnsubscribe=x;E&&(this._next=function(y){try{E(y)}catch(Q){this.destination.error(Q)}});
n&&(this._error=function(y){try{n(y)}catch(Q){this.destination.error(Q)}this.unsubscribe()});
f&&(this._complete=function(){try{f()}catch(y){this.destination.error(y)}this.unsubscribe()})};
_.S(wY,RG);wY.JSC$6964_EMPTY=RG.JSC$6964_EMPTY;wY.create=RG.create;wY.prototype.unsubscribe=function(){var v;this.closed||(v=this.onUnsubscribe)!=null&&v.call(this);RG.prototype.unsubscribe.call(this)};var HW=function(v,E){this.source=v;this.subjectFactory=E;this._subject=null;this._refCount=0;this._connection=null};
_.S(HW,iW);HW.create=iW.create;HW.prototype._subscribe=function(v){return S14(this).subscribe(v)};
var S14=function(v){var E=v._subject;if(!E||E.JSC$6985_isStopped)v._subject=v.subjectFactory();return v._subject};
HW.prototype._teardown=function(){this._refCount=0;var v=this._connection;this._subject=this._connection=null;v==null||v.unsubscribe()};
HW.prototype.connect=function(){var v=this,E=this._connection;if(!E){E=this._connection=new W5;var n=S14(this);E.add(this.source.subscribe(new wY(n,void 0,function(f){v._teardown();n.error(f)},function(){v._teardown();
n.complete()},function(){return v._teardown()})));
E.closed&&(this._connection=null,E=W5.JSC$6964_EMPTY)}return E};var iWX=Array.isArray;var R_y=Array.isArray,Ui1=Object,ttQ=Ui1.getPrototypeOf,B2E=Ui1.prototype,vRQ=Ui1.keys;var PW=function(v,E,n){RG.call(this,v);this._next=E;this.shouldComplete=n};
_.S(PW,RG);PW.JSC$6964_EMPTY=RG.JSC$6964_EMPTY;PW.create=RG.create;PW.prototype._complete=function(){this.shouldComplete()?RG.prototype._complete.call(this):this.unsubscribe()};var p5Q=["addListener","removeListener"],yAA=["addEventListener","removeEventListener"],X5N=["on","off"];var EP=function(){W5.call(this)};
_.S(EP,W5);EP.JSC$6964_EMPTY=W5.JSC$6964_EMPTY;EP.prototype.schedule=function(){return this};var q1o=function(v,E){return setInterval.apply(null,[v,E].concat(_.s8(_.rV.apply(2,arguments))))};var no=function(v,E){W5.call(this);this.scheduler=v;this.work=E;this.pending=!1};
_.S(no,EP);no.JSC$6964_EMPTY=EP.JSC$6964_EMPTY;no.prototype.schedule=function(v,E){E=E===void 0?0:E;if(this.closed)return this;this.state=v;v=this.id;var n=this.scheduler;v!=null&&(this.id=J61(this,v,E));this.pending=!0;this.delay=E;this.id=this.id||this.requestAsyncId(n,this.id,E);return this};
no.prototype.requestAsyncId=function(v,E,n){n=n===void 0?0:n;return q1o(v.flush.bind(v,this),n)};
var J61=function(v,E,n){n=n===void 0?0:n;if(n!=null&&v.delay===n&&v.pending===!1)return E;clearInterval(E)};
no.prototype.execute=function(v,E){if(this.closed)return Error("la");this.pending=!1;if(v=this._execute(v,E))return v;this.pending===!1&&this.id!=null&&(this.id=J61(this,this.id,null))};
no.prototype._execute=function(v){var E=!1;try{this.work(v)}catch(f){E=!0;var n=!!f&&f||Error(f)}if(E)return this.unsubscribe(),n};
no.prototype.unsubscribe=function(){if(!this.closed){var v=this.id,E=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Ow(E,this);v!=null&&(this.id=J61(this,v,null));this.delay=null;EP.prototype.unsubscribe.call(this)}};var KgX=function(v,E){E=E===void 0?CX1:E;Mo4.call(this,v,E);this.actions=[];this.active=!1;this.scheduled=void 0};
_.S(KgX,Mo4);KgX.prototype.flush=function(v){var E=this.actions;if(this.active)E.push(v);else{var n;this.active=!0;do if(n=v.execute(v.state,v.delay))break;while(v=E.shift());this.active=!1;if(n){for(;v=E.shift();)v.unsubscribe();throw n;}}};var wA=new iW($R);var eZ1=Array.isArray;var oy=function(v,E){no.call(this,v,E);this.scheduler=v;this.work=E};
_.S(oy,no);oy.JSC$6964_EMPTY=no.JSC$6964_EMPTY;oy.prototype.schedule=function(v,E){E=E===void 0?0:E;if(E>0)return no.prototype.schedule.call(this,v,E);this.delay=E;this.state=v;this.scheduler.flush(this);return this};
oy.prototype.execute=function(v,E){return E>0||this.closed?no.prototype.execute.call(this,v,E):this._execute(v,E)};
oy.prototype.requestAsyncId=function(v,E,n){n=n===void 0?0:n;return n!=null&&n>0||n==null&&this.delay>0?no.prototype.requestAsyncId.call(this,v,E,n):v.flush(this)};var dio=function(){KgX.apply(this,arguments)};
_.S(dio,KgX);var GZE=new dio(oy);var IzS=function(){this.performanceMonitor=new O16;this.queue=new ksi;this.internalSymbol=Symbol();this.debugNames=new lzS};
IzS.prototype.getOnBackgrounded=function(){return wA};
_.hK.Object.defineProperties(IzS.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var fo=function(v,E){E=Error.call(this,E?v+": "+E:String(v));this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=v;this.__proto__=fo.prototype;this.name=String(v)};
_.S(fo,Error);var bU=function(v){fo.call(this,1E3,'sfr:"'+v+'"');this.measurementStrategyFailureReason=v;this.__proto__=bU.prototype};
_.S(bU,fo);var lU=function(){fo.call(this,1003);this.__proto__=lU.prototype};
_.S(lU,fo);var xD=function(){fo.call(this,1009);this.__proto__=xD.prototype};
_.S(xD,fo);var Y1o=function(){fo.call(this,1011);this.__proto__=Y1o.prototype};
_.S(Y1o,fo);var h4P=function(){fo.call(this,1007);this.__proto__=lU.prototype};
_.S(h4P,fo);var Q4=function(v){fo.call(this,1004,String(v));this.inputObservableIndex=v;this.__proto__=Q4.prototype};
_.S(Q4,fo);var NYX=function(v){fo.call(this,1010,v);this.__proto__=Xb.prototype};
_.S(NYX,fo);var Xb=function(v){fo.call(this,1005,v);this.__proto__=Xb.prototype};
_.S(Xb,fo);var A6P=function(v){var E=_.rV.apply(1,arguments),n=this;this.orderedFactories=[];this.orderedFactories.push(v);E.forEach(function(f){n.orderedFactories.push(f)})};
A6P.prototype.isSupported=function(v){return this.orderedFactories.some(function(E){return E.isSupported(v)})};
A6P.prototype.makeBeacon=function(v,E){for(var n=0;n<this.orderedFactories.length;n++)if(this.orderedFactories[n].isSupported(E))return this.orderedFactories[n].makeBeacon(v,E);throw new xD;};var JJA=Symbol("ma"),Vog=Symbol("na"),Je=function(v,E){this.value=v;this.timeline=E},qg=function(v,E){if(E.timeline!==v.timeline)throw new h4P;
return v.value-E.value};
_.c=Je.prototype;_.c.equals=function(v){return qg(this,v)===0};
_.c.maximum=function(v){if(v.timeline!==this.timeline)throw new h4P;return this.value>=v.value?this:v};
_.c.round=function(){return new Je(Math.round(this.value),this.timeline)};
_.c.add=function(v){return new Je(this.value+v,this.timeline)};
_.c.toString=function(){return String(this.value)};var cM=function(v,E){this.context=v;this.JSC$7092_pinger=E};
cM.prototype.isSupported=function(v){return this.JSC$7092_pinger.isSupported(v)};
cM.prototype.makeBeacon=function(v,E){if(!this.isSupported(E))throw new xD;return new yS(this.context,this.JSC$7092_pinger,E!=null?E:void 0,v)};
var yS=function(v,E,n,f){var x=this;this.JSC$7098_pinger=E;this.properties=n;this.url=f;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var y;this.method=(y=n==null?void 0:n.beaconMethod)!=null?y:"GET";this.backgroundedSubscription=v.getOnBackgrounded().subscribe(function(){x.sendNow()})};
yS.prototype.deactivate=function(){this.internalIsPending=!1};
yS.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7098_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var v,E;this.JSC$7098_pinger.pingWithHeadersAndBody((v=this.properties)!=null?v:{},this.customHeaders,(E=this.body)!=null?E:"",this.url)}else this.JSC$7098_pinger.ping(this.url);this.internalIsPending=!1}catch(n){}else this.internalIsPending=!1};
yS.prototype.setHeader=function(v){this.customHeaders.set(v,void 0)};
_.hK.Object.defineProperties(yS.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var HlF=function(){for(var v=_.p(_.rV.apply(0,arguments)),E=v.next();!E.done;E=v.next())if(E=E.value,E.available()){this.timeProvider=E;return}this.timeProvider=new DiX};
_.c=HlF.prototype;_.c.available=function(){return this.timeProvider.available()};
_.c.now=function(){return this.timeProvider.now()};
_.c.setTimeout=function(v,E){return this.timeProvider.setTimeout(v,E)};
_.c.clearTimeout=function(v){this.timeProvider.clearTimeout(v)};
_.c.interval=function(v,E){var n=this.intervalObservable(v).subscribe(E);return function(){return void n.unsubscribe()}};
_.c.intervalObservable=function(v){return this.timeProvider.intervalObservable(v)};
_.hK.Object.defineProperties(HlF.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var DiX=function(){this.timeline=Symbol()};
_.c=DiX.prototype;_.c.available=function(){return!1};
_.c.now=function(){return new Je(0,this.timeline)};
_.c.setTimeout=function(){return 0};
_.c.clearTimeout=function(){};
_.c.interval=function(){return function(){}};
_.c.intervalObservable=function(){return wA};var po=function(v,E){this.intrinsicFunctionNamespace=v;this.performanceMonitor=E};
_.c=po.prototype;_.c.setTimeout=function(v,E){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,v),E)};
_.c.clearTimeout=function(v){this.intrinsicFunctionNamespace.clearTimeout(v)};
_.c.interval=function(v,E){var n=this.intervalObservable(v).subscribe(E);return function(){return void n.unsubscribe()}};
_.c.intervalObservable=function(v){var E=this;return new iW(function(n){var f=0,x=E.intrinsicFunctionNamespace.setInterval(function(){n.next(f++)},v);
return function(){E.intrinsicFunctionNamespace.clearInterval(x)}})};
_.c.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var gwo=function(v,E){po.call(this,v,E);this.timeline=Vog};
_.S(gwo,po);gwo.prototype.now=function(){return new Je(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
gwo.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&po.prototype.available.call(this)};var N1S=function(v,E){po.call(this,v,E);this.timeline=JJA};
_.S(N1S,po);N1S.prototype.now=function(){return new Je(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
N1S.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&po.prototype.available.call(this)};var jF4=function(v){this.context=v;if(u11===void 0)a:{var E,n,f=(E=v.global)==null?void 0:(n=E.document)==null?void 0:n.createElement("meta");if(f)try{f.httpEquiv="origin-trial";f.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";v.global.document.head.append(f);u11=f;break a}catch(x){}u11=void 0}},
u11;
jF4.prototype.isSupported=function(v){return ZcL(this.context)!==void 0&&!(v==null||!v.endOfSession)&&!QS(this.context)&&!(v==null?0:v.attributionEnabled)&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
jF4.prototype.makeBeacon=function(v,E){if(!this.isSupported(E))throw new xD;return new XT(this.context,v,E)};
var XT=function(v,E,n){this.context=v;this.properties=n;this.JSC$7125_urlWithoutToken=E;var f;this.beaconMethod=(f=n==null?void 0:n.beaconMethod)!=null?f:"GET";v=ZcL(this.context);if(v===void 0)throw Error();this.fetchLater=v;Ol4(this,kSP(this))},Ol4=function(v,E){v.beaconResult&&v.beaconResult.activated||(v.beaconAbort=new AbortController,v.beaconResult=v.fetchLater(E,{method:v.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:v.beaconAbort.signal,activateAfter:96E4}))},kSP=function(v){v=v.JSC$7125_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"flapi=1"};
XT.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
XT.prototype.sendNow=function(){};
XT.prototype.setHeader=function(){};
_.hK.Object.defineProperties(XT.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7125_urlWithoutToken},
set:function(v){this.JSC$7125_urlWithoutToken=v;v=kSP(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Ol4(this,v)}},
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 Wgw=function(v){this.context=v};
Wgw.prototype.isSupported=function(){return!QS(this.context)&&!!this.context.global.fetch};
Wgw.prototype.ping=function(){var v=this;return S8.apply(null,_.s8(_.rV.apply(0,arguments).map(function(E){return B5(v.context.global.fetch(E,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(l_(function(n){return n.status===200}))}))).pipe(K_X(function(E){return E}),IdX())};
Wgw.prototype.pingWithHeadersAndBody=function(v,E,n){for(var f=_.rV.apply(3,arguments),x=this,y=new Headers,Q=_.p(E.entries()),e=Q.next();!e.done;e=Q.next()){var F=_.p(e.value);e=F.next().value;F=F.next().value;y.set(e,F)}var b,l=(b=v.keepAlive)!=null?b:!1;S8.apply(null,_.s8(f.map(function(r){return B5(x.context.global.fetch(r,Object.assign({},{method:String(v.beaconMethod),cache:"no-cache"},l?{keepalive:!0}:{},{mode:"no-cors",headers:y,body:n}))).pipe(l_(function(a){return a.status===200}))}))).pipe(K_X(function(r){return r}),
IdX())};var $iX,$ks;_.er=function(){};
_.NF=function(v){return v};
$iX=function(v){var E=E||0;return function(){return v.apply(this,Array.prototype.slice.call(arguments,0,E))}};
_.FT=function(v){var E=!1,n;return function(){E||(n=v(),E=!0);return n}};
_.me=function(v,E){var n=0;return function(f){_.n1.clearTimeout(n);var x=arguments;n=_.n1.setTimeout(function(){v.apply(void 0,x)},E)}};
$ks=function(v,E){var n=0,f=!1,x=[],y=function(){n=0;f&&(f=!1,Q())},Q=function(){n=_.n1.setTimeout(y,E);
var e=x;x=[];v.apply(void 0,e)};
return function(e){x=arguments;n?f=!0:Q()}};var GS1=function(){return sQ&&PI?PI.mobile:!Lg1()&&(C1("iPod")||C1("iPhone")||C1("Android")||C1("IEMobile"))},Lg1=function(){return sQ&&PI?!PI.mobile&&(C1("iPad")||C1("Android")||C1("Silk")):C1("iPad")||C1("Android")&&!C1("Mobile")||C1("Silk")};var T1U;_.sh={};T1U="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.sh.add=function(v,E,n){if(v!==null&&E in v)throw Error("pa`"+E);v[E]=n};
_.sh.clear=function(v){for(var E in v)delete v[E]};
_.sh.clone=function(v){var E={},n;for(n in v)E[n]=v[n];return E};
_.sh.contains=function(v,E){return AAX(v,E)};
_.sh.containsKey=function(v,E){return v!==null&&E in v};
_.sh.containsValue=AAX;_.sh.create=Hc1;_.sh.createImmutableView=function(v){var E=v;Object.isFrozen&&!Object.isFrozen(v)&&(E=Object.create(v),Object.freeze(E));return E};
_.sh.createSet=gRs;_.sh.equals=function(v,E){for(var n in v)if(!(n in E)||v[n]!==E[n])return!1;for(var f in E)if(!(f in v))return!1;return!0};
_.sh.every=function(v,E,n){for(var f in v)if(!E.call(n,v[f],f,v))return!1;return!0};
_.sh.extend=function(v,E){for(var n,f,x=1;x<arguments.length;x++){f=arguments[x];for(n in f)v[n]=f[n];for(var y=0;y<T1U.length;y++)n=T1U[y],Object.prototype.hasOwnProperty.call(f,n)&&(v[n]=f[n])}};
_.sh.filter=function(v,E,n){var f={},x;for(x in v)E.call(n,v[x],x,v)&&(f[x]=v[x]);return f};
_.sh.findKey=VcA;_.sh.findValue=function(v,E,n){return(E=VcA(v,E,n))&&v[E]};
_.sh.forEach=function(v,E,n){for(var f in v)E.call(n,v[f],f,v)};
_.sh.get=function(v,E,n){return v!==null&&E in v?v[E]:n};
_.sh.getAllPropertyNames=function(v,E,n){if(!v)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return hZL(v);for(var f={};v&&(v!==Object.prototype||E)&&(v!==Function.prototype||n);){for(var x=Object.getOwnPropertyNames(v),y=0;y<x.length;y++)f[x[y]]=!0;v=Object.getPrototypeOf(v)}return hZL(f)};
_.sh.getAnyKey=function(v){for(var E in v)return E};
_.sh.getAnyValue=function(v){for(var E in v)return v[E]};
_.sh.getCount=function(v){var E=0,n;for(n in v)E++;return E};
_.sh.getKeys=hZL;_.sh.getSuperClass=function(v){return(v=Object.getPrototypeOf(v.prototype))&&v.constructor};
_.sh.getValueByKeys=function(v,E){var n=_.E1(E),f=n?E:arguments;for(n=n?0:1;n<f.length;n++){if(v==null)return;v=v[f[n]]}return v};
_.sh.getValues=function(v){var E=[],n=0,f;for(f in v)E[n++]=v[f];return E};
_.sh.isEmpty=function(v){for(var E in v)return!1;return!0};
_.sh.isImmutableView=function(v){return!!Object.isFrozen&&Object.isFrozen(v)};
_.sh.map=function(v,E,n){var f={},x;for(x in v)f[x]=E.call(n,v[x],x,v);return f};
_.sh.remove=function(v,E){var n;(n=E in v)&&delete v[E];return n};
_.sh.set=function(v,E,n){v[E]=n};
_.sh.setIfUndefined=function(v,E,n){return E in v?v[E]:v[E]=n};
_.sh.setWithReturnValueIfNotSet=function(v,E,n){if(E in v)return v[E];n=n();return v[E]=n};
_.sh.some=function(v,E,n){for(var f in v)if(E.call(n,v[f],f,v))return!0;return!1};
_.sh.transpose=function(v){var E={},n;for(n in v)E[v[n]]=n;return E};
_.sh.unsafeClone=DaL;var wx=function(v,E,n,f,x){this.allowedElements=v;this.elementPolicies=E;this.allowedGlobalAttributes=n;this.globalAttributePolicies=f;this.globallyAllowedAttributePrefixes=x},il6=function(v,E,n){n=v.elementPolicies.get(n);
return(n==null?0:n.has(E))?n.get(E):v.allowedGlobalAttributes.has(E)?{policyAction:1}:(n=v.globalAttributePolicies.get(E))?n:v.globallyAllowedAttributePrefixes&&[].concat(_.s8(v.globallyAllowedAttributePrefixes)).some(function(f){return E.indexOf(f)===0})?{policyAction:1}:{policyAction:0}};var z41="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(" "),
R4i=[["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}]])]],toU="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(" "),
B1w=[["dir",{policyAction:3,conditions:nc(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:nc(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:nc(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:nc(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],vpP=new wx(new Set(z41),new Map(R4i),new Set(toU),new Map(B1w)),Ep4=new wx(new Set(z41.concat(["BUTTON",
"INPUT"])),new Map(R4i),new Set(nc(function(){return toU.concat(["class","id","name"])})),new Map(nc(function(){return B1w.concat([["style",
{policyAction:1}]])})));var npw,opo,xPw;npw=function(v,E,n,f){this.JSC$7185_sanitizerTable=v;this.styleElementSanitizer=E;this.styleAttributeSanitizer=n;this.JSC$7185_resourceUrlPolicy=f;this.changes=[]};
_.f1g=function(v,E){var n=document.implementation.createHTMLDocument("");v=opo(v,E,n);n=n.body;n.appendChild(v);n=(new XMLSerializer).serializeToString(n);n=n.slice(n.indexOf(">")+1,n.lastIndexOf("</"));return Sc(n)};
opo=function(v,E,n){E=u_1(E,n);E=document.createTreeWalker(E,5,function(e){if(e.nodeType===3)e=1;else if(Ocs(e))if(e=jCN(e),e===null)e=2;else{var F=v.JSC$7185_sanitizerTable;e=e!=="FORM"&&(F.allowedElements.has(e)||F.elementPolicies.has(e))?1:2}else e=2;return e});
for(var f=E.nextNode(),x=n.createDocumentFragment(),y=x;f!==null;){var Q=void 0;if(f.nodeType===3)v.styleElementSanitizer&&y.nodeName==="STYLE"?(f=v.styleElementSanitizer(f.data),Q=v.createTextNode(f)):Q=v.createTextNode(f.data);else if(Ocs(f))Q=xPw(v,f,n);else throw Error("da");y.appendChild(Q);if(f=E.firstChild())y=Q;else for(;!(f=E.nextSibling())&&(f=E.parentNode());)y=y.parentNode}return x};
npw.prototype.createTextNode=function(v){return document.createTextNode(v)};
xPw=function(v,E,n){var f,x=jCN(E);n=n.createElement(x);E=E.attributes;for(var y=_.p(E),Q=y.next();!Q.done;Q=y.next()){var e=Q.value;Q=e.name;e=e.value;var F=il6(v.JSC$7185_sanitizerTable,Q,x);a:{if(f=F.conditions){f=_.p(f);for(var b=f.next();!b.done;b=f.next()){var l=_.p(b.value);b=l.next().value;l=l.next().value;var r=void 0;if((b=(r=E.getNamedItem(b))==null?void 0:r.value)&&!l.has(b)){f=!1;break a}}}f=!0}if(f)switch(F.policyAction){case 1:T6(n,Q,e);break;case 2:F=_.lLN(e);e=F!==void 0&&c6U.indexOf(F.toLowerCase())!==
-1?e:"about:invalid#zClosurez";T6(n,Q,e);break;case 3:T6(n,Q,e.toLowerCase());break;case 4:v.styleAttributeSanitizer?(e=v.styleAttributeSanitizer(e),T6(n,Q,e)):T6(n,Q,e);break;case 5:v.JSC$7185_resourceUrlPolicy?(F={type:2,attributeName:Q,elementName:x},e=NVA(e),(e=v.JSC$7185_resourceUrlPolicy(e,F))&&T6(n,Q,e.toString())):T6(n,Q,e);break;case 6:if(v.JSC$7185_resourceUrlPolicy){F={type:2,attributeName:Q,elementName:x};f=[];e=_.p(e.split(","));for(b=e.next();!b.done;b=e.next())l=_.p(b.value.trim().split(/\s+/,
2)),b=l.next().value,l=l.next().value,f.push({url:b,descriptor:l});e={parts:[]};f=_.p(f);for(b=f.next();!b.done;b=f.next())b=b.value,l=NVA(b.url),(l=v.JSC$7185_resourceUrlPolicy(l,F))&&e.parts.push({url:l.toString(),descriptor:b.descriptor});T6(n,Q,kd9(e))}else T6(n,Q,e)}}return n};
_.cRS=nc(function(){return new npw(vpP)});
_.yRz=nc(function(){return new npw(Ep4)});var pb4=function(){this.calledBuild=!1;this.JSC$7197_sanitizerTable=vpP},QOX=function(){pb4.apply(this,arguments)};
_.S(QOX,pb4);QOX.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new npw(this.JSC$7197_sanitizerTable,void 0,void 0,this.JSC$7197_resourceUrlPolicy)};var Xb1=/[^#]*/;var pvF=function(v){try{return!!v&&v.location.href!=null&&wVI(v,"foo")}catch(E){return!1}},FUP=function(v){var E=eK4;
if(E)for(var n in E)Object.prototype.hasOwnProperty.call(E,n)&&v(E[n],n,E)},mPw=function(){var v=[];
FUP(function(E){v.push(E)});
return v},eK4={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"},wbg=_.FT(function(){return mPw()}),l1w=function(){var v=b0X("IFRAME"),
E={};
_.I5(wbg(),function(n){v.sandbox&&v.sandbox.supports&&v.sandbox.supports(n)&&(E[n]=!0)});
return E},b0X=function(v,E){E=E===void 0?document:E;
return E.createElement(String(v).toLowerCase())};var by;_.Jf=function(v,E,n){return Math.min(Math.max(v,E),n)};
by=function(v,E,n){return v+n*(E-v)};_.PV=function(v,E){this.x=v!==void 0?v:0;this.y=E!==void 0?E:0};
_.c=_.PV.prototype;_.c.clone=function(){return new _.PV(this.x,this.y)};
_.c.equals=function(v){return v instanceof _.PV&&(this==v?!0:this&&v?this.x==v.x&&this.y==v.y:!1)};
_.c.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.c.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.c.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.c.translate=function(v,E){v instanceof _.PV?(this.x+=v.x,this.y+=v.y):(this.x+=Number(v),typeof E==="number"&&(this.y+=E));return this};
_.c.scale=function(v,E){this.x*=v;this.y*=typeof E==="number"?E:v;return this};_.fs=function(v,E){this.width=v;this.height=E};
_.c=_.fs.prototype;_.c.clone=function(){return new _.fs(this.width,this.height)};
_.c.area=function(){return this.width*this.height};
_.c.aspectRatio=function(){return this.width/this.height};
_.c.isEmpty=function(){return!this.area()};
_.c.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.c.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.c.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.c.scale=function(v,E){this.width*=v;this.height*=typeof E==="number"?E:v;return this};var rt=function(v,E){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=v===AZI&&E||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=sO4};
rt.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var rR6=function(v){return v instanceof rt&&v.constructor===rt&&v.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===sO4?v.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},sO4={},AZI={};
new rt(AZI,"");var y4,xE,sP,PCw,CC4,Z01,ai,Sxi,qx1,UPU,Zb,JRz,VMX,AR4,hK1,DPz,H06,gp1,N_1,tkA,udU,O06,k31,jO6,ly;y4=function(v){return v?new ly(_.ZJ(v)):jLE||(jLE=new ly)};
_.Dg=function(v,E){return typeof E==="string"?v.getElementById(E):E};
xE=function(v,E){return(E||document).getElementsByTagName(String(v))};
_.a1o=function(v){return PCw("yt-formatted-string","paper-input-input",v)};
sP=function(v,E,n,f){v=f||v;return(E=E&&E!="*"?String(E).toUpperCase():"")||n?v.querySelectorAll(E+(n?"."+n:"")):v.getElementsByTagName("*")};
PCw=function(v,E,n){var f=document,x=v&&v!="*"?String(v).toUpperCase():"";return x||E?(n||f).querySelector(x+(E?"."+E:"")):sP(f,v,E,n)[0]||null};
CC4=function(v,E){_.sh.forEach(E,function(n,f){f=="style"?v.style.cssText=n:f=="class"?v.className=n:f=="for"?v.htmlFor=n:Z01.hasOwnProperty(f)?v.setAttribute(Z01[f],n):_.cI(f,"aria-")||_.cI(f,"data-")?v.setAttribute(f,n):v[f]=n})};
Z01={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"};_.xr=function(v){v=(v||window).document;v=v.compatMode=="CSS1Compat"?v.documentElement:v.body;return new _.fs(v.clientWidth,v.clientHeight)};
_.MM1=function(v){var E=_.rx(v);v=v.defaultView;return new _.PV(v.pageXOffset||E.scrollLeft,v.pageYOffset||E.scrollTop)};
_.rx=function(v){return v.scrollingElement?v.scrollingElement:_.f9||v.compatMode!="CSS1Compat"?v.body||v.documentElement:v.documentElement};
ai=function(v){return v?v.defaultView:window};
_.PM=function(v,E,n){return Sxi(document,arguments)};
Sxi=function(v,E){var n=E[1],f=UPU(v,String(E[0]));n&&(typeof n==="string"?f.className=n:Array.isArray(n)?f.className=n.join(" "):CC4(f,n));E.length>2&&qx1(v,f,E,2);return f};
qx1=function(v,E,n,f){function x(e){e&&E.appendChild(typeof e==="string"?v.createTextNode(e):e)}
for(;f<n.length;f++){var y=n[f];if(!_.E1(y)||_.oF(y)&&y.nodeType>0)x(y);else{a:{if(y&&typeof y.length=="number"){if(_.oF(y)){var Q=typeof y.item=="function"||typeof y.item=="string";break a}if(typeof y==="function"){Q=typeof y.item=="function";break a}}Q=!1}_.I5(Q?_.tG(y):y,x)}}};
_.oc=function(v){return UPU(document,v)};
UPU=function(v,E){E=String(E);v.contentType==="application/xhtml+xml"&&(E=E.toLowerCase());return v.createElement(E)};
_.ay=function(){return document.createTextNode("\n")};
Zb=function(v){if(v.nodeType!=1)return!1;switch(v.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};
JRz=function(v,E){qx1(_.ZJ(v),v,arguments,1)};
_.Co=function(v){for(var E;E=v.firstChild;)v.removeChild(E)};
_.Mm=function(v,E){E.parentNode&&E.parentNode.insertBefore(v,E)};
_.Sr=function(v,E){E.parentNode&&E.parentNode.insertBefore(v,E.nextSibling)};
_.fT=function(v){return v&&v.parentNode?v.parentNode.removeChild(v):null};
_.KUF=function(v,E){var n=E.parentNode;n&&n.replaceChild(v,E)};
_.dPX=function(v){var E,n=v.parentNode;if(n&&n.nodeType!=11)if(v.removeNode)v.removeNode(!1);else{for(;E=v.firstChild;)n.insertBefore(E,v);_.fT(v)}};
_.UP=function(v){return v.children!=void 0?v.children:Array.prototype.filter.call(v.childNodes,function(E){return E.nodeType==1})};
_.Yx1=function(v){return v.nextElementSibling!==void 0?v.nextElementSibling:_.I16(v.nextSibling,!0)};
_.I16=function(v,E){for(;v&&v.nodeType!=1;)v=E?v.nextSibling:v.previousSibling;return v};
_.YH=function(v){return _.oF(v)&&v.nodeType==1};
_.ME=function(v,E){if(!v||!E)return!1;if(v.contains&&E.nodeType==1)return v==E||v.contains(E);if(typeof v.compareDocumentPosition!="undefined")return v==E||!!(v.compareDocumentPosition(E)&16);for(;E&&v!=E;)E=E.parentNode;return E==v};
VMX=function(v,E){if(v==E)return 0;if(v.compareDocumentPosition)return v.compareDocumentPosition(E)&2?1:-1;if("sourceIndex"in v||v.parentNode&&"sourceIndex"in v.parentNode){var n=v.nodeType==1,f=E.nodeType==1;if(n&&f)return v.sourceIndex-E.sourceIndex;var x=v.parentNode,y=E.parentNode;return x==y?hK1(v,E):!n&&_.ME(x,E)?-1*AR4(v,E):!f&&_.ME(y,v)?AR4(E,v):(n?v.sourceIndex:x.sourceIndex)-(f?E.sourceIndex:y.sourceIndex)}f=_.ZJ(v);n=f.createRange();n.selectNode(v);n.collapse(!0);v=f.createRange();v.selectNode(E);
v.collapse(!0);return n.compareBoundaryPoints(_.n1.Range.START_TO_END,v)};
AR4=function(v,E){var n=v.parentNode;if(n==E)return-1;for(;E.parentNode!=n;)E=E.parentNode;return hK1(E,v)};
hK1=function(v,E){for(;E=E.previousSibling;)if(E==v)return-1;return 1};
DPz=function(v){var E,n=arguments.length;if(!n)return null;if(n==1)return arguments[0];var f=[],x=Infinity;for(E=0;E<n;E++){for(var y=[],Q=arguments[E];Q;)y.unshift(Q),Q=Q.parentNode;f.push(y);x=Math.min(x,y.length)}y=null;for(E=0;E<x;E++){Q=f[0][E];for(var e=1;e<n;e++)if(Q!=f[e][E])return y;y=Q}return y};
_.ZJ=function(v){return v.nodeType==9?v:v.ownerDocument||v.document};
H06=function(v){return v.contentDocument||v.contentWindow.document};
_.qm=function(v,E){if("textContent"in v)v.textContent=E;else if(v.nodeType==3)v.data=String(E);else if(v.firstChild&&v.firstChild.nodeType==3){for(;v.lastChild!=v.firstChild;)v.removeChild(v.lastChild);v.firstChild.data=String(E)}else _.Co(v),v.appendChild(_.ZJ(v).createTextNode(String(E)))};
gp1={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};N_1={IMG:" ",BR:"\n"};tkA=function(v){var E;v.tagName=="A"&&v.hasAttribute("href")||v.tagName=="INPUT"||v.tagName=="TEXTAREA"||v.tagName=="SELECT"||v.tagName=="BUTTON"?E=!v.disabled&&(!v.hasAttribute("tabindex")||udU(v)):E=v.hasAttribute("tabindex")&&udU(v);return E};
udU=function(v){v=v.tabIndex;return typeof v==="number"&&v>=0&&v<32768};
O06=function(v){var E=[];jO6(v,E,!0);v=E.join("");v=v.replace(/ \xAD /g," ").replace(/\xAD/g,"");v=v.replace(/\u200B/g,"");v=v.replace(/ +/g," ");v!=" "&&(v=v.replace(/^\s*/,""));return v};
k31=function(v){var E=[];jO6(v,E,!1);return E.join("")};
jO6=function(v,E,n){if(!(v.nodeName in gp1))if(v.nodeType==3)n?E.push(String(v.nodeValue).replace(/(\r\n|\r|\n)/g,"")):E.push(v.nodeValue);else if(v.nodeName in N_1)E.push(N_1[v.nodeName]);else for(v=v.firstChild;v;)jO6(v,E,n),v=v.nextSibling};
_.WUU=function(v,E,n){if(!E&&!n)return null;var f=E?String(E).toUpperCase():null;return _.Ss(v,function(x){return(!f||x.nodeName==f)&&(!n||typeof x.className==="string"&&_.L1(x.className.split(/\s+/),n))},!0)};
_.Ss=function(v,E,n){v&&!n&&(v=v.parentNode);for(n=0;v;){if(E(v))return v;v=v.parentNode;n++}return null};
ly=function(v){this.JSC$7222_document_=v||_.n1.document||document};
_.c=ly.prototype;_.c.getElement=function(v){return _.Dg(this.JSC$7222_document_,v)};
_.c.$=ly.prototype.getElement;_.c.getElementsByTagName=function(v,E){return(E||this.JSC$7222_document_).getElementsByTagName(String(v))};
_.c.getElementsByTagNameAndClass=function(v,E,n){return sP(this.JSC$7222_document_,v,E,n)};
_.c.$$=ly.prototype.getElementsByTagNameAndClass;_.c.setProperties=CC4;_.c.JSC$7224_createDom=function(v,E,n){return Sxi(this.JSC$7222_document_,arguments)};
_.c.createElement=function(v){return UPU(this.JSC$7222_document_,v)};
_.c.createTextNode=function(v){return this.JSC$7222_document_.createTextNode(String(v))};
_.c.getWindow=function(){return this.JSC$7222_document_.defaultView};
var cV=function(v){return _.MM1(v.JSC$7222_document_)};
_.c=ly.prototype;_.c.appendChild=function(v,E){v.appendChild(E)};
_.c.append=JRz;_.c.canHaveChildren=Zb;_.c.removeNode=_.fT;_.c.getChildren=_.UP;_.c.contains=_.ME;_.c=Rl.prototype;_.c.getWidth=function(){return this.right-this.left};
_.c.getHeight=function(){return this.bottom-this.top};
_.c.clone=function(){return new Rl(this.top,this.right,this.bottom,this.left)};
_.c.contains=function(v){return this&&v?v instanceof Rl?v.left>=this.left&&v.right<=this.right&&v.top>=this.top&&v.bottom<=this.bottom:v.x>=this.left&&v.x<=this.right&&v.y>=this.top&&v.y<=this.bottom:!1};
_.c.expand=function(v,E,n,f){_.oF(v)?(this.top-=v.top,this.right+=v.right,this.bottom+=v.bottom,this.left-=v.left):(this.top-=v,this.right+=Number(E),this.bottom+=Number(n),this.left-=Number(f));return this};
_.c.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};
_.c.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};
_.c.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};
_.c.translate=function(v,E){v instanceof _.PV?(this.left+=v.x,this.right+=v.x,this.top+=v.y,this.bottom+=v.y):(this.left+=v,this.right+=v,typeof E==="number"&&(this.top+=E,this.bottom+=E));return this};
_.c.scale=function(v,E){E=typeof E==="number"?E:v;this.left*=v;this.right*=v;this.top*=E;this.bottom*=E;return this};var JP=function(v,E,n,f){this.left=v;this.top=E;this.width=n;this.height=f};
_.c=JP.prototype;_.c.clone=function(){return new JP(this.left,this.top,this.width,this.height)};
_.c.boundingRect=function(v){var E=Math.max(this.left+this.width,v.left+v.width),n=Math.max(this.top+this.height,v.top+v.height);this.left=Math.min(this.left,v.left);this.top=Math.min(this.top,v.top);this.width=E-this.left;this.height=n-this.top};
_.c.contains=function(v){return v instanceof _.PV?v.x>=this.left&&v.x<=this.left+this.width&&v.y>=this.top&&v.y<=this.top+this.height:this.left<=v.left&&this.left+this.width>=v.left+v.width&&this.top<=v.top&&this.top+this.height>=v.top+v.height};
_.c.distance=function(v){var E=v.x<this.left?this.left-v.x:Math.max(v.x-(this.left+this.width),0);v=v.y<this.top?this.top-v.y:Math.max(v.y-(this.top+this.height),0);return Math.sqrt(E*E+v*v)};
_.c.getSize=function(){return new _.fs(this.width,this.height)};
_.c.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};
_.c.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};
_.c.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};
_.c.translate=function(v,E){v instanceof _.PV?(this.left+=v.x,this.top+=v.y):(this.left+=v,typeof E==="number"&&(this.top+=E));return this};
_.c.scale=function(v,E){E=typeof E==="number"?E:v;this.left*=v;this.width*=v;this.top*=E;this.height*=E;return this};var LU1,Iy,bs1,dx,zKS,i0S,RK1,GYA,tM1,vb6;_.Ko=function(v,E,n){if(typeof E==="string")(E=_.$P1(v,E))&&(v.style[E]=n);else for(var f in E){n=v;var x=E[f],y=_.$P1(n,f);y&&(n.style[y]=x)}};
LU1={};_.$P1=function(v,E){var n=LU1[E];if(!n){var f=_.BZ(E);n=f;v.style[f]===void 0&&(f=(_.f9?"Webkit":_.oG?"Moz":null)+blU(f),v.style[f]!==void 0&&(n=f));LU1[E]=n}return n};
_.XH=function(v,E){var n=_.ZJ(v);return n.defaultView&&n.defaultView.getComputedStyle&&(v=n.defaultView.getComputedStyle(v,null))?v[E]||v.getPropertyValue(E)||"":""};
_.CT=function(v,E){return _.XH(v,E)||(v.currentStyle?v.currentStyle[E]:null)||v.style&&v.style[E]};
_.G3F=function(v){return _.CT(v,"position")};
Iy=function(v,E,n){if(E instanceof _.PV){var f=E.x;E=E.y}else f=E,E=n;v.style.left=dx(f,!1);v.style.top=dx(E,!1)};
bs1=function(v){try{return v.getBoundingClientRect()}catch(E){return{left:0,top:0,right:0,bottom:0}}};
_.M0=function(v){var E=_.ZJ(v),n=new _.PV(0,0);if(v==(E?_.ZJ(E):document).documentElement)return n;v=bs1(v);E=cV(y4(E));n.x=v.left+E.x;n.y=v.top+E.y;return n};
_.T_F=function(v,E,n){if(E instanceof _.fs)n=E.height,E=E.width;else if(n==void 0)throw Error("sa");v.style.width=dx(E,!0);v.style.height=dx(n,!0)};
dx=function(v,E){typeof v=="number"&&(v=(E?Math.round(v):v)+"px");return v};
zKS=function(v){return i0S(v)};
i0S=function(v){var E=RK1;if(_.CT(v,"display")!="none")return E(v);var n=v.style,f=n.display,x=n.visibility,y=n.position;n.visibility="hidden";n.position="absolute";n.display="inline";v=E(v);n.display=f;n.position=y;n.visibility=x;return v};
RK1=function(v){var E=v.offsetWidth,n=v.offsetHeight,f=_.f9&&!E&&!n;return(E===void 0||f)&&v.getBoundingClientRect?(v=bs1(v),new _.fs(v.right-v.left,v.bottom-v.top)):new _.fs(E,n)};
GYA=function(v){var E=_.M0(v);v=i0S(v);return new JP(E.x,E.y,v.width,v.height)};
tM1=function(v,E){v=v.style;"opacity"in v?v.opacity=E:"MozOpacity"in v?v.MozOpacity=E:"filter"in v&&(v.filter=E===""?"":"alpha(opacity="+Number(E)*100+")")};
_.dC=function(v,E){v.style.display=E?"":"none"};
_.B_F=function(v){return"rtl"==_.CT(v,"direction")};
vb6=function(v){var E=_.XH(v,"marginLeft"),n=_.XH(v,"marginRight"),f=_.XH(v,"marginTop");v=_.XH(v,"marginBottom");return new Rl(parseFloat(f),parseFloat(n),parseFloat(v),parseFloat(E))};
_.Ebw=function(v){var E=_.XH(v,"borderLeftWidth"),n=_.XH(v,"borderRightWidth"),f=_.XH(v,"borderTopWidth");v=_.XH(v,"borderBottomWidth");return new Rl(parseFloat(f),parseFloat(n),parseFloat(v),parseFloat(E))};var YD=function(v){this.context=v};
YD.prototype.isSupported=function(v){return(v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="POST"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive)?!1:!QS(this.context)};
YD.prototype.ping=function(){var v=this;return Xt(_.rV.apply(0,arguments).map(function(E){try{var n=v.context.global,f=!1;f=f===void 0?!1:f;n.google_image_requests||(n.google_image_requests=[]);var x=b0X("IMG",n.document);f&&(x.attributionSrc="");x.src=E;n.google_image_requests.push(x);return!0}catch(y){return!1}}).every(function(E){return E}))};
YD.prototype.pingWithHeadersAndBody=function(v,E,n){this.ping.apply(this,_.s8(_.rV.apply(3,arguments)))};var nbX=function(v){this.context=v};
nbX.prototype.isSupported=function(v){return obX&&!QS(this.context)&&$aL(this.context)!==void 0&&!(v==null?0:v.attributionEnabled)&&(v==null?void 0:v.beaconMethod)!=="POST"&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
nbX.prototype.makeBeacon=function(v,E){if(!this.isSupported(E))throw new xD;return new hP(this.context,v)};
var obX=!1,hP=function(v,E){this.context=v;this.JSC$7243_urlWithoutToken=E;v=$aL(this.context);if(v===void 0)throw Error();this.wrappedBeacon=new v(fL4(this),{})},fL4=function(v){v=v.JSC$7243_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"pbapi=1"};
hP.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
hP.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
hP.prototype.setHeader=function(){};
_.hK.Object.defineProperties(hP.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7243_urlWithoutToken},
set:function(v){this.JSC$7243_urlWithoutToken=v;this.wrappedBeacon.setURL(fL4(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(v){if(v!=="GET")throw new xD;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var xnP=function(v){this.context=v};
xnP.prototype.isSupported=function(v){if((v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="GET"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive))return!1;var E;return!QS(this.context)&&((E=this.context.global.navigator)==null?void 0:E.sendBeacon)!==void 0};
xnP.prototype.ping=function(){var v=this;return Xt(_.rV.apply(0,arguments).map(function(E){var n;return(n=v.context.global.navigator)==null?void 0:n.sendBeacon(E)}).every(function(E){return E}))};
xnP.prototype.pingWithHeadersAndBody=function(v,E,n){this.ping.apply(this,_.s8(_.rV.apply(3,arguments)))};var ns=function(v){this.value=v},DJ=function(v,E){return Xt(v.value).pipe(vV(E))},gA=new ns(!1),J7F=new ns(!0);var Uh=function(v){this.value=v;this.releasedSubject=new te};
Uh.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.hK.Object.defineProperties(Uh.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7256_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var fqQ=["FRAME","IMG","IFRAME"],tcG=/^[01](px)?$/,ohs=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},nh9=function(){var v=new ohs;
v.crossDomainLoadedDefault=!0;v.pendingImagesBlockLoad=!0;return v};var cjX=function(v,E){var n=eqA(v);if(n)if(n.onCreativeLoad)n.onCreativeLoad(E);else{var f=E?[E]:[],x=function(y){for(var Q=0;Q<f.length;++Q)try{f[Q](1,y)}catch(e){}f={push:function(e){e(1,y)}}};
n.onCreativeLoad=function(y){f.push(y)};
n.setAttribute("data-creative-load-listener","");n.addEventListener("creativeLoad",function(y){x(y.detail)});
_.n1.addEventListener("message",function(y){XWE(n,x,y)})}};var AP=function(v,E){var n=this;this.global=v;this.parentContext=E;this.JSC$7267_onVisibilityChange=this.document?S8(Xt(!0),CI(this.document,"visibilitychange")).pipe(KI(this.parentContext.performanceMonitor,748),l_(function(){return n.getVisibilityState()}),VQ()):Xt("visible");
this.document?CI(this.document,"DOMContentLoaded").pipe(KI(this.parentContext.performanceMonitor,739),Ae(1)):Xt(zZE("DOMContentLoaded"))},qVI=function(v){return v.document!==null&&v.document.visibilityState!==void 0};
AP.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
AP.prototype.querySelector=function(v){return this.document?this.document.querySelector(v):null};
AP.prototype.querySelectorAll=function(v){return this.document?_.tG(this.document.querySelectorAll(v)):[]};
AP.prototype.elementFromPoint=function(v,E){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;v=this.document.elementFromPoint(v,E);return v===null?null:new Uh(v)};
var bTQ=function(v,E,n){n=n===void 0?!1:n;if(E.ref===void 0||!v.document)return Xt(E).pipe(KI(v.parentContext.performanceMonitor,749));var f=new u_(1),x=function(){f.next(E)};
n||cjX(E.ref,x);xgI(E.ref,x);return f.pipe(KI(v.parentContext.performanceMonitor,749),Ae(1))};
_.hK.Object.defineProperties(AP.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return wVI(this.global,"document")?this.global.document||null:null}}});var FZA=_.jU(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),mgN=_.jU(["./reach_worklet.js"]),wWE=_.jU(["./reach_worklet.js"]),yjP=_.jU(["./reach_worklet.html"]),pz1=_.jU(["./reach_worklet.js"]),QKX=_.jU(["./reach_worklet.js"]);_.i_(yjP);_.i_(pz1);_.i_(QKX);var dA={left:0,top:0,width:0,height:0};var Xz1,e_1,F9o,mn1,gB,bWU,lL1,sK6,aLg,ZWg,CrS;Xz1=function(v,E,n,f,x,y,Q){var e="";v&&(e+=v+":");n&&(e+="//",E&&(e+=E+"@"),e+=n,f&&(e+=":"+f));x&&(e+=x);y&&(e+="?"+y);Q&&(e+="#"+Q);return e};
e_1=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.DU=function(v){return v.match(e_1)};
_.ZR=function(v,E){return v?E?decodeURI(v):decodeURIComponent(v):v};
F9o=function(v){v=_.DU(v)[1]||null;!v&&_.n1.self&&_.n1.self.location&&(v=_.n1.self.location.protocol.slice(0,-1));return v?v.toLowerCase():""};
_.HG=function(v){return _.ZR(_.DU(v)[3]||null,!0)};
_.R5=function(v){return _.ZR(_.DU(v)[5]||null,!0)};
_.Y09=function(v){var E=v.indexOf("#");return E<0?null:v.slice(E+1)};
mn1=function(v){v=_.DU(v);return Xz1(v[1],v[2],v[3],v[4])};
_.wz1=function(v){v=_.DU(v);return Xz1(v[1],null,v[3],v[4])};
_.SK=function(v){v=_.DU(v);return Xz1(null,null,null,null,v[5],v[6],v[7])};
_.hQ=function(v){var E=v.indexOf("#");return E<0?v:v.slice(0,E)};
gB=function(v,E){v=_.DU(v);E=_.DU(E);return v[3]==E[3]&&v[1]==E[1]&&v[4]==E[4]};
bWU=function(v,E){if(v){v=v.split("&");for(var n=0;n<v.length;n++){var f=v[n].indexOf("="),x=null;if(f>=0){var y=v[n].substring(0,f);x=v[n].substring(f+1)}else y=v[n];E(y,x?u5(x):"")}}};
lL1=function(v){var E=v.indexOf("#");E<0&&(E=v.length);var n=v.indexOf("?");if(n<0||n>E){n=E;var f=""}else f=v.substring(n+1,E);return[v.slice(0,n),f,v.slice(E)]};
sK6=function(v,E){return E?v?v+"&"+E:E:v};
_.rjP=function(v,E){if(!E)return v;v=lL1(v);v[1]=sK6(v[1],E);return v[0]+(v[1]?"?"+v[1]:"")+v[2]};
_.Pr6=function(v,E,n){if(Array.isArray(E))for(var f=0;f<E.length;f++)_.Pr6(v,String(E[f]),n);else E!=null&&n.push(v+(E===""?"":"="+_.dB(E)))};
_.BG=function(v){var E=[],n;for(n in v)_.Pr6(n,v[n],E);return E.join("&")};
_.V1=function(v,E){E=_.BG(E);return _.rjP(v,E)};
_.VS=function(v,E,n){n=n!=null?"="+_.dB(n):"";return _.rjP(v,E+n)};
aLg=function(v,E,n,f){for(var x=n.length;(E=v.indexOf(n,E))>=0&&E<f;){var y=v.charCodeAt(E-1);if(y==38||y==63)if(y=v.charCodeAt(E+x),!y||y==61||y==38||y==35)return E;E+=x+1}return-1};
ZWg=/#|$/;_.SC=function(v,E){var n=v.search(ZWg),f=aLg(v,0,E,n);if(f<0)return null;var x=v.indexOf("&",f);if(x<0||x>n)x=n;f+=E.length+1;return u5(v.slice(f,x!==-1?x:0))};
CrS=/[?&]($|#)/;_.VT=function(v,E){for(var n=v.search(ZWg),f=0,x,y=[];(x=aLg(v,f,E,n))>=0;)y.push(v.substring(f,x)),f=Math.min(v.indexOf("&",x)+1||n,n);y.push(v.slice(f));return y.join("").replace(CrS,"$1")};
_.PP=function(v,E,n){return _.VS(_.VT(v,E),E,n)};
_.Mtz=function(v){var E=lL1(window.location.href),n=E[1],f=[];n&&n.split("&").forEach(function(x){var y=x.indexOf("=");y=y>=0?x.slice(0,y):x;v.hasOwnProperty(y)||f.push(x)});
E[1]=sK6(f.join("&"),_.BG(v));return E[0]+(E[1]?"?"+E[1]:"")+E[2]};var V8X=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(V8X,_.Vj);V8X.prototype.getVersion=function(){return _.Sf(this,2)};var Ae1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Ae1,_.Vj);var JeA=function(v,E){return _.ps(v,2,E)},hqN=function(v,E){return _.ps(v,3,E)};
Ae1.prototype.getModel=function(){return _.Sf(this,4)};
var dgQ=function(v,E){return _.ps(v,4,E)},q8$=function(v,E){return _.ps(v,5,E)},Y8X=function(v,E){return _.ps(v,9,E)},UgX=function(v,E){return sa(v,10,E)},S8F=function(v,E){return _.iU(v,11,E)},KZQ=function(v,E){return _.ps(v,1,E)},IqE=function(v,E){return _.iU(v,7,E)};var C_A="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var HV=function(v,E,n,f){v=v===void 0?window:v;E=E===void 0?null:E;n=n===void 0?new O16:n;f=f===void 0?bI9():f;IzS.call(this);var x=this;this.global=v;this.debugChannel=E;this.performanceMonitor=n;this.onPageHide=Zq(function(){return CI(x.global,"pagehide")}).pipe(KI(this.performanceMonitor,941));
this.onLoad=Zq(function(){return CI(x.global,"load")}).pipe(KI(this.performanceMonitor,738),Ae(1));
this.onResize=Zq(function(){return CI(x.global,"resize")}).pipe(KI(this.performanceMonitor,741));
this.onMessage=Zq(function(){return CI(x.global,"message")}).pipe(KI(this.performanceMonitor,740));
this.document=new AP(this.global,this);this.timeProvider=new HlF(new N1S(this.intrinsicFunctionNamespace,this.performanceMonitor),new gwo(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new A6P(new jF4(this),new nbX(this),new cM(this,new Wgw(this)),new cM(this,new xnP(this)),new cM(this,new YD(this)))};
_.S(HV,IzS);var QS=function(v){var E=v.global;return!!v.global.HTMLFencedFrameElement&&!!E.fence&&typeof E.fence.reportEvent==="function"};
_.c=HV.prototype;_.c.reportFencedFrameEvent=function(v){QS(this)&&this.global.fence.reportEvent(v)};
_.c.getOnBackgrounded=function(){return this.onPageHide.pipe(KI(this.performanceMonitor,942),vV(this.queue),l_(function(){}))};
_.c.postMessage=function(v,E,n){n=n===void 0?[]:n;this.global.postMessage(v,E,n)};
_.c.getWidth=function(){return pvF(this.global)?this.global.width:0};
_.c.getHeight=function(){return pvF(this.global)?this.global.height:0};
_.c.isMobile=function(){return Lg1()||GS1()};
var q0=function(v,E){try{var n=P_G(E,v.global,v.isMobile());return{left:n.left,top:n.top,width:n.getWidth(),height:n.getHeight()}}catch(f){return dA}};
HV.prototype.validate=function(){var v=this.beaconFactory.isSupported()||QS(this);return this.global&&this.timeProvider.available()&&v};
var GdI=function(v){return(v=HIX(v.global))?B5(v):null};
_.hK.Object.defineProperties(HV.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(v){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!pvF(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}}});_.Sm4=!_.n9&&!_.YX();var Kz$=function(v){return v};var IBF=function(v){return v.pipe(U8(function(E){var n=E.endOfSessionReason;var f;return((f=E.viewable)==null?void 0:f.extrapolateToNow().value)||n!=void 0}),Ae(1),Il())};var k6Q=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},WZy=function(v){var E=v.sequenceNumber.toString(10).padStart(2,"0");
E=""+v.startTime+E;v.sequenceNumber<99&&v.sequenceNumber++;return E};var UEQ=Td($h(function(v){return v.endOfSessionReason===void 0}),l_(function(v){return Object.assign({},v,{timestamps:ml(v)})}),U8(function(v){var E=v.viewable;
v=v.timestamps;var n;return(n=E==null?void 0:E.extrapolateUsingTimestampMap(v).value)!=null?n:!1}),l_(function(v){var E=v.beaconFactory;
var n=v.timestampedExposureHistory;var f=v.timeOnScreen;var x=v.binaryContext;v=v.timestamps;if(E===void 0||n===void 0||f===void 0||x===void 0)return!1;if(f.extrapolateUsingTimestampMap(v).value.every(function(y){return y>=0}))return!0;
n=n.map(function(y){return y.timestamp+":"+y.value}).join(",");
f=$g$({bin:x,tos:f},v);E.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+f+("&eh="+n)).sendNow();return!0}),$h(function(v){return!v}),Il());var G6X=function(v){return{id:v.pingId,mcvt:v.maxConsecutiveViewTime,p:v.creativePosition,asp:v.adSpeedPosition,tm:v.totalMeasurementTime,tu:v.totalUnviewedTime,mtos:v.maxTimeOnScreen,tos:v.timeOnScreen,v:v.binaryVersion,bin:v.binaryContext,avms:v.measurementStrategy,bs:v.browserSize,mc:v.maximumExposure,"if":v.crossDomainIframeState,vu:v.delayedImpressionJsState,app:v.inApp,mse:v.mraidError,mtop:v.mraidSituation,itpl:v.injectedTemplateId,adk:v.adKey,exk:v.awbidKey,rs:v.requestSource,la:v.isLargeAd,
cr:v.isContentRecommendationAd,uach:v.userAgentClientHints,vs:v.viewState,r:v.reasonCode,pay:v.hasCpmavUrl,co:v.clientPingOrderCounter,rst:v.adRenderStartTime,rpt:v.adRenderPeriodTime,isd:v.initialScrollDepth,lsd:v.loadedScrollDepth,context:v.errorContext,msg:v.errorMessage,stack:v.errorStack,name:v.errorName,ec:v.hasElementChanged,sfr:v.strategyFailureReasons,met:v.creativeSearchResult,wmsd:v.webMeasurementStartDiagnostic,pv:v.pageVisible,epv:v.eosPageVisible,pbe:v.inStatefulBeaconExperiment,fle:v.inFetchLaterBeaconExperiment,
vae:v.inViewableAttributionExperiment,spb:v.supportsPendingBeacon,sfl:v.supportsFetchLater,ffslot:v.isFencedFrameSlotTurtlex,reach:v.sharedStorageReachMode,io2:v.v2VisibilityBitVector,rxdbg:v.rxDebugger,omida:v.omidAppId,omidp:v.omidPartner,omidpv:v.omidPartnerVersion,omidor:v.omidOcclusionReasons,omidv:v.omidVersion,omids:v.omidSessionType,omidam:v.omidAccessMode,omidct:v.omidCreativeType,omidia:v.omidInApp,omiddc:v.omidDeviceCategory,omidlat:v.omidLastActivity,omiddit:v.omidDeviceIdleTime,qid:v.errorEscapedQueryId}};var dEX=function(v){var E=[];return v.pipe(l_(function(n){var f=n.beaconFactory,x=n.fetchBeaconFactory,y=n.timeOnScreen,Q=n.timeOnScreenUrlPrefixes,e=n.payloadMapper,F=n.timeOnScreenPingId,b=n.timeOnScreenReason,l=n.urlSerializer,r=n.viewable,a=n.hasImpressionFired,M=n.inStatefulBeaconExperiment,U=n.supportsPendingBeacon,d=n.supportsFetchLater,Y=n.turtlexReportEventData;if(!n.geometryMeasurable||!a||n.maxTimeOnScreen===void 0||y===void 0||Q===void 0||e===void 0||F===void 0||l===void 0||f===void 0)return!1;
if(n.isTurtlex){if(b===void 0)return!1;Q=n.reportFencedFrameEvent;if(!Q)return!1;Q({eventType:"active-view-time-on-screen",eventData:Y!=null?Y:"",destination:["buyer"]});return!0}if(!(M||d||b))return!1;Y=ml(n);var V;r=(V=r==null?void 0:r.extrapolateUsingTimestampMap(Y).value)!=null?V:!1;V=l(Object.assign({},n,{pingId:F,viewState:r?4:3,reasonCode:b!=null?b:"u",payloadMapper:e,urlPrefixes:Q}),Y);if(M){for(;E.length>Q.length;)n=void 0,(n=E.shift())==null||n.deactivate();V.forEach(function(T,L){L>=E.length?
E.push(f.makeBeacon(T)):E[L].url=T});
return U&&x&&b!==void 0?(V.forEach(function(T){x.makeBeacon(T).sendNow()}),!0):b!==void 0}if(U&&x&&b!==void 0)return V.forEach(function(T){x.makeBeacon(T).sendNow()}),!0;
if(d&&x){for(;E.length>Q.length;)U=void 0,(U=E.shift())==null||U.deactivate();var O=l(Object.assign({},n,{pingId:F,viewState:r?4:3,reasonCode:b!=null?b:"u",payloadMapper:e,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),Y)[0];V.forEach(function(T,L){L>=E.length?E.push(f.makeBeacon(O,{endOfSession:!0})):E[L].url=O});
return b!==void 0?(V.forEach(function(T){x.makeBeacon(T).sendNow()}),!0):b!==void 0}return b!==void 0?(V.forEach(function(T){f.makeBeacon(T).sendNow()}),!0):!1}),$h(function(n){return!n}),Il())};var YVX=Td(U8(function(v){return v.immediateUrlPrefixes!==void 0&&v.payloadMapper!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),U8(function(v){return ErG(v)!==null}),BYF(function(v){return v.activeViewUnmeasurableEvent},function(v){return v.emit}),l_(function(v){if(v.isTurtlex){var E=v.reportFencedFrameEvent;
if(E){var n;E({eventType:"active-view-unmeasurable",eventData:(n=v.turtlexReportEventData)!=null?n:"",destination:["buyer"]})}}else{n=void 0;var f=ErG(v);if(f==="x"){var x,y=(x=v.geometricMeasurementErrors)!=null?x:v.contextValidationErrors;y&&(E=y.stack,n=y.message)}v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:2,reasonCode:f,errorMessage:n,errorStack:E}),ml(v)).forEach(function(Q){v.beaconFactory.makeBeacon(Q).sendNow()})}}),
Ae(1),Il());var nr$=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var SVA=Td(U8(function(v){return v.payloadMapper!==void 0&&v.immediateUrlPrefixes!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),l_(function(v){return Object.assign({},v,{timestamps:ml(v)})}),U8(function(v){var E=v.viewable;
var n=v.hasImpressionFired;v=v.timestamps;var f;return!!n&&((f=E==null?void 0:E.extrapolateUsingTimestampMap(v).value)!=null?f:!1)}),BYF(function(v){return v.activeViewViewableEvent},function(v){return v.emit}),l_(function(v){var E=v.beaconFactory,n=v.turtlexReportEventData;
if(v.isTurtlex){var f=v.reportFencedFrameEvent;if(!f)return!1;f({eventType:"active-view-viewable",eventData:n!=null?n:"",destination:["buyer"]});return!0}n=v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:4,reasonCode:"v"}),v.timestamps);(f=v.cpmavUrls)&&f.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(f,v).forEach(function(x){E.makeBeacon(x).sendNow()});
(f=v.viewableRelayUrls)&&f.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(f,v).forEach(function(x){E.makeBeacon(x).sendNow()});
n.forEach(function(x){E.makeBeacon(x,{attributionEnabled:v.isViewableAttributionEnabled}).sendNow()});
return!0}),$h(function(v){return!v}),Il());var G79=l_(function(v){return[v.value.topWindowViewportExternalGeometry.width,v.value.topWindowViewportExternalGeometry.height]});var JJ=function(v,E){this.callback=v;this.options=E;this.intersectionObserverV2=this.intersectionObserverV1=null},d0s=function(v,E){E?v.intersectionObserverV2||(E=Object.assign({},v.options,{delay:100,
trackVisibility:!0}),v.intersectionObserverV2=new IntersectionObserver(v.callback,E)):v.intersectionObserverV1||(v.intersectionObserverV1=new IntersectionObserver(v.callback,v.options))},Un1=function(v,E){v=E?v.intersectionObserverV2:v.intersectionObserverV1;
if(!v)throw new Y1o;return v};
JJ.prototype.observe=function(v,E){Un1(this,v).observe(E)};
JJ.prototype.unobserve=function(v,E){Un1(this,v).unobserve(E)};
JJ.prototype.disconnect=function(v){Un1(this,v).disconnect()};
JJ.prototype.takeRecords=function(v){return Un1(this,v).takeRecords()};var siL={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:dA,topWindowViewportExternalGeometry:dA,measurementRequests:new te,elementGeometrySourceName:"ns",elementGeometry:dA,intersectionGeometry:dA,viewportLocalAppOffset:{x:0,y:0}};var qmP=function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.elementGeometry.width*v.elementGeometry.height)},D0L=Ii(Td(l_(function(v){var E;
return(E=v.exposureOverride)!=null?E:qmP(v)}),l_(function(v){return isFinite(v)?v:0}))),k7L=Ii(Td(l_(function(v){var E;
return(E=v.exposureOverride)!=null?E:qmP(v)}),l_(function(v){return isFinite(v)?v:-1})));var Db=function(v,E){this.a=v;this.b=E;if(v.clock.timeline!==E.clock.timeline)throw Error();};
Db.prototype.equivalentTo=function(v){return v instanceof Db?this.a.equivalentTo(v.a)&&this.b.equivalentTo(v.b):!1};
Db.prototype.extrapolateToTime=function(v){var E=this.a.extrapolateToTime(v).value,n=this.b.extrapolateToTime(v).value;return{timestamp:v,value:[E,n]}};
_.hK.Object.defineProperties(Db.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 v=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),E=this.a.lastMeasurement.timestamp.equals(v)?this.a.lastMeasurement.value:this.a.extrapolateToTime(v).value,n=this.b.lastMeasurement.timestamp.equals(v)?this.b.lastMeasurement.value:this.b.extrapolateToTime(v).value;return{timestamp:v,value:[E,n]}}}});var HM=function(v,E){this.input=v;this.mapFunction=E;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
HM.prototype.equivalentTo=function(v){return v instanceof HM?this.input.equivalentTo(v.input)&&this.mapFunction===v.mapFunction:!1};
HM.prototype.extrapolateToTime=function(v){v=this.input.extrapolateToTime(v);return{timestamp:v.timestamp,value:this.mapFunction(v.value)}};
_.hK.Object.defineProperties(HM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var gx=function(){};
gx.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
gx.prototype.extrapolateUsingTimestampMap=function(v){var E=this.clock.timeline,n,f=(n=v.get(E))!=null?n:this.clock.now();v.set(E,f);return this.extrapolateToTime(f)};
gx.prototype.map=function(v){return new Jjw(this,v)};
gx.prototype.joinWith=function(v){return new K91(this,v)};
var K91=function(){Db.apply(this,arguments);this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap};
_.S(K91,Db);var Jjw=function(){HM.apply(this,arguments);this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap};
_.S(Jjw,HM);var hJ=function(v,E){this.lastMeasurement=E;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap;this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.clock=v};
hJ.prototype.equivalentTo=function(v){return v.active};
hJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.hK.Object.defineProperties(hJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var LlX=l_(function(v){if(v.value.viewportGeometrySourceName==="omid"){if(v.value.elementGeometrySourceName==="nio")return"omio";if(v.value.elementGeometrySourceName==="geo")return"omgeo"}return v.value.elementGeometrySourceName==="geo"||v.value.elementGeometrySourceName==="nio"?v.value.viewportGeometrySourceName:v.value.elementGeometrySourceName});var hpX=Td(U8(function(v){return!isNaN(v)}),O8(function(v,E){return isNaN(v)?E:Math.min(v,E)},NaN),VQ());var HsN=Ii(Td(l_(function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.exposedViewportLocalGeometry.width*v.exposedViewportLocalGeometry.height)}),l_(function(v){return isFinite(v)?Math.min(1,v):0})));var $0s=Td(Ii(l_(function(v){v=v.exposureOverride?v.elementGeometry.width*v.elementGeometry.height*v.exposureOverride/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height):v.intersectionGeometry.width*v.intersectionGeometry.height/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height);return isFinite(v)?v:0})));var zpG=function(v,E){var n=this;this.timeProvider=v;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=E.pipe(VQ()).subscribe(function(f){tsy(n);n.measurementRequestObserver=f})},BA9=function(v,E){tsy(v);
v.lastMeasurementRequest=v.timeProvider.setTimeout(function(){var n;return void((n=v.measurementRequestObserver)==null?void 0:n.next())},E)},tsy=function(v){v.lastMeasurementRequest!==null&&v.timeProvider.clearTimeout(v.lastMeasurementRequest);
v.lastMeasurementRequest=null};
zpG.prototype.dispose=function(){tsy(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var dng=function(){};var ZT9=function(v,E){this.context=v;this.strategies=E};
_.S(ZT9,dng);ZT9.prototype.buildGeometrySource=function(v,E){var n=this.strategies.map(function(y){return y.buildGeometrySource(v,E)}),f=fB9(n.map(function(y){return y.geometrySource})),x=f.capturedErrors.pipe(ILi());
return{geometrySource:f.chain.pipe(vV(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:x,strategyErrors:f.capturedErrors}].concat(_.s8(n.map(function(y){return y.additionalOutputs}))))}};
var ILi=function(){return O8(function(v,E){E instanceof bU?v.push(E.measurementStrategyFailureReason):v.push(-1);return v},[])};var MCs=function(v,E){this.context=v;this.poller=E};
_.S(MCs,dng);MCs.prototype.buildGeometrySource=function(v,E){var n=xEQ(y7G(this.context,this.poller),rJs(this.context,E.requestSource));return{geometrySource:oEG(v.measurableCreative.pipe(n),E.inApp),additionalOutputs:{}}};var CYG=function(v,E,n){n=n===void 0?Sh9(v,E):n;this.context=v;this.intersectionObserverStrategy=n};
_.S(CYG,dng);CYG.prototype.buildGeometrySource=function(v,E){var n=this.intersectionObserverStrategy(E.useV2);return{geometrySource:oEG(v.measurableCreative.pipe(n,U0I(this.context)),E.inApp),additionalOutputs:{}}};var YmF=function(v,E,n){var f=f===void 0?Symbol():f;this.element=v;this.immediateUrls=E;this.timeOnScreenUrls=n;this.symbol=f};var isI=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),mEQ=Object.freeze([1,.75,isI.exposureThreshold,isI.largeAdExposureThreshold,0]);var T09=function(v){var E=E===void 0?36E5:E;var n=n===void 0?!0:n;this.creatives=new te;this.elementsToUnregister=new te;this.elementMap=new Map;var f=new HV(window,null);f.beaconFactory=new cM(f,new YD(f));aBX(f,this.creatives,this.elementsToUnregister,v,E,n).subscribe()},zXN=function(v,E,n,f){if(!v.elementMap.has(E)){var x=new Uh(E);
v.elementMap.set(E,x);v.creatives.next(new YmF(x,n,f))}},i$X=function(v,E){v.elementsToUnregister.next(E);
var n=v.elementMap.get(E);n!==void 0&&(n.release(),v.elementMap.delete(E))};var JVQ=htG("adurl"),qnG=htG("ae"),UQF=htG("dsh"),SnE=function(v){var E=v.url;v=v.uaDataValues;this.JSC$7372_url_=E;this.uaDataValues_=v;this.suid_=(new Date).getTime()-17040672E5},Ko9=function(v){v=v.uaDataValues_;
if(!v)return"";var E=N0("uap",v.platform)+N0("uapv",v.platformVersion)+N0("uafv",v.uaFullVersion)+N0("uaa",v.architecture)+N0("uam",v.model)+N0("uab",v.bitness);v.fullVersionList&&(E+="&uafvl="+encodeURIComponent(v.fullVersionList.map(function(n){return encodeURIComponent(n.brand)+";"+encodeURIComponent(n.version)}).join("|")));
v.wow64!=null&&(E+="&uaw="+Number(v.wow64));return E.slice(1)};var Nm=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Nm,_.Vj);Nm.prototype.getId=function(){return _.Sf(this,1)};
Nm.prototype.setId=function(v){return _.O_(this,1,v)};var uy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(uy,_.Vj);uy.prototype.getSeconds=function(){return Z2(this,1)};
uy.prototype.setSeconds=function(v){return _.Pz(this,1,d_(v),"0")};_.YC=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(_.YC,_.Vj);_.YC.prototype.getSeconds=function(){return Z2(this,1)};
_.YC.prototype.setSeconds=function(v){return _.Pz(this,1,d_(v),"0")};
_.h_X=function(v){var E=Number(qr(v,1));v=_.$r(v,2);return new Date(E*1E3+v/1E6)};var jr=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(jr,_.Vj);jr.prototype.getUrl=function(){return _.Sf(this,1)};
jr.prototype.setUrl=function(v){return _.O_(this,1,v)};
jr.prototype.getHeight=function(){return _.$r(this,2)};
jr.prototype.getWidth=function(){return _.$r(this,3)};var OP=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(OP,_.Vj);OP.prototype.getAspectRatio=function(){return Mr(this,1)};
OP.prototype.setAspectRatio=function(v){return _.Pz(this,1,_.Q6(v),0)};
OP.prototype.getDuration=function(){return _.j5(this,uy,2)};var Aj4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Aj4,_.Vj);var Vti=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Vti,_.Vj);var Dn4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Dn4,_.Vj);var HWl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(HWl,_.Vj);var gbo=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(gbo,_.Vj);var N2g=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(N2g,_.Vj);var uLw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(uLw,_.Vj);var jKz=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(jKz,_.Vj);var OWl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(OWl,_.Vj);var kD=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kD,_.Vj);var WM=[2,4,5,6,7];var kZP=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kZP,_.Vj);var rO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(rO,_.Vj);_.c=rO.prototype;_.c.getId=function(){return _.j5(this,Nm,1)};
_.c.setId=function(v){return _.Bz(this,1,v)};
_.c.getName=function(){return _.Sf(this,2)};
_.c.setDescription=function(v){return _.O_(this,3,v)};
_.c.getUrl=function(){return _.Sf(this,8)};
_.c.setUrl=function(v){return _.O_(this,8,v)};
var $D=function(v){return _.kr(v,jr,10,_.WV())};
rO.prototype.getOwner=function(v){var E=_.m9(this,40,_.NP,3,!0);O1(E,v);return E[v]};
rO.prototype.getVersion=function(){return Z2(this,45)};
var Lo=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Lo,_.Vj);_.W9U=[0,dKs,YuN];_.$nS=[0,dKs,YuN];var L9X=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(L9X,_.Vj);var GN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(GN,_.Vj);GN.prototype.getStatus=function(){return _.Ua(this,1)};
GN.prototype.removeItem=function(v){return zjA(this,2,v)};var GZX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(GZX,_.Vj);GZX.prototype.getName=function(){return _.Sf(this,8)};var TN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(TN,_.Vj);TN.prototype.getCommand=function(){return _.Ua(this,1)};
TN.prototype.getSource=function(){return _.j5(this,GZX,2)};
TN.prototype.setVisible=function(v){return _.FY(this,5,v)};
TN.prototype.removeItem=function(v){return zjA(this,7,v)};var T21=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(T21,_.Vj);T21.prototype.getCommand=function(){return _.Ua(this,1)};
T21.prototype.removeItem=function(v){return zjA(this,4,v)};
var iWg=_.RK(T21);var iy=function(v,E,n){n=n===void 0?Error():n;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=v;E+=":";n instanceof Error?(this.message=E+n.message,this.stack=n.stack||""):(this.message=E+String(n),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(iy,Error);_.QK=function(){this.JSC$7430_disposed_=this.JSC$7430_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.QK.prototype.JSC$7430_disposed_=!1;_.QK.prototype.isDisposed=function(){return this.JSC$7430_disposed_};
_.QK.prototype.dispose=function(){this.JSC$7430_disposed_||(this.JSC$7430_disposed_=!0,this.disposeInternal())};
_.QK.prototype[Symbol.dispose]=function(){this.dispose()};
_.BV=function(v,E){v.addOnDisposeCallback(_.vR(_.uU,E))};
_.QK.prototype.addOnDisposeCallback=function(v,E){this.JSC$7430_disposed_?E!==void 0?v.call(E):v():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),E&&(v=v.bind(E)),this.onDisposeCallbacks_.push(v))};
_.QK.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var zN=function(v){_.QK.call(this);this.wpc=v};
_.S(zN,_.QK);zN.prototype.e7L=function(){return this.wpc.f()};
zN.prototype.krY=function(v){return this.wpc.c(v)};
zN.prototype.pI=function(v){return this.wpc.m(NC1(v))};
zN.prototype.zV=function(v){return this.wpc.mws(NC1(v))};
var Oh=function(v){_.QK.call(this);var E=this;this.vY=v;this.mDi="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.isY=void 0;this.dGl=this.vY.p;this.mYo=this.kTL.bind(this);this.addOnDisposeCallback(function(){return void z_l(E)})};
_.S(Oh,_.QK);var R_4=function(v){var E;return _.X(function(n){if(n.nextAddress==1){if(!v.vY.wpc)throw new iy(30,"NWA");return v.xSI?n.return(v.xSI):_.m(n,v.vY.wpc(),2)}E=n.yieldResult;v.xSI=new zN(E);return n.return(v.xSI)})};
Oh.prototype.snapshot=function(v){return this.vY.s(Object.assign({},v.wO&&{c:v.wO},v.amu&&{s:v.amu},v.fJw!==void 0&&{p:v.fJw}))};
Oh.prototype.kTL=function(v){this.vY.e(v)};
Oh.prototype.dBp=function(v,E){return this.vY.c(v,E,!1)};
var z_l=function(v){v.isY!==void 0&&(v.mDi.forEach(function(E){var n;(n=v.isY)==null||n.removeEventListener(E,v.mYo)}),v.isY=void 0)};
Oh.prototype.t6K=function(){return this.vY.l()};var tt1,Ry=function(){_.QK.apply(this,arguments);this.sPa=1;this[tt1]=this.dispose};
_.S(Ry,_.QK);Ry.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.sPa++;return this};
Ry.prototype.dispose=function(){--this.sPa||_.QK.prototype.dispose.call(this)};
tt1=Symbol.dispose;var yvX=function(v){this.ieG=v;v.addNewEventMetric("/client_streamz/bg/frs",_.T7("mk"))};
yvX.prototype.record=function(v,E){this.ieG.record("/client_streamz/bg/frs",v,E)};
var eC9=function(v){this.kTy=v;v.addNewEventMetric("/client_streamz/bg/wrl",_.T7("mn"),G7("ac"),G7("sc"),_.T7("rk"),_.T7("mk"))};
eC9.prototype.record=function(v,E,n,f,x,y){this.kTy.record("/client_streamz/bg/wrl",v,E,n,f,x,y)};
var Q0X=function(v){this.uUG=v;v.addNewCounter("/client_streamz/bg/ec",_.T7("en"),_.T7("mk"))};
Q0X.prototype.increment=function(v,E){this.uUG.JSC$7679_incrementCounter("/client_streamz/bg/ec",v,E)};
var XfX=function(v){this.lru=v;v.addNewEventMetric("/client_streamz/bg/el",_.T7("en"),_.T7("mk"))};
XfX.prototype.record=function(v,E,n){this.lru.record("/client_streamz/bg/el",v,E,n)};
var pf$=function(v){this.arA=v;v.addNewCounter("/client_streamz/bg/cec",G7("ec"),_.T7("mk"))};
pf$.prototype.increment=function(v,E){this.arA.JSC$7679_incrementCounter("/client_streamz/bg/cec",v,E)};
var FAQ=function(v){this.qVb=v;v.addNewCounter("/client_streamz/bg/po/csc",G7("cs"),_.T7("mk"))};
FAQ.prototype.increment=function(v,E){this.qVb.JSC$7679_incrementCounter("/client_streamz/bg/po/csc",v,E)};
var mBs=function(v){this.y1i=v;v.addNewCounter("/client_streamz/bg/po/ctav",_.T7("av"),_.T7("mk"))};
mBs.prototype.increment=function(v,E){this.y1i.JSC$7679_incrementCounter("/client_streamz/bg/po/ctav",v,E)};
var wfX=function(v){this.pAx=v;v.addNewCounter("/client_streamz/bg/po/cwsc",_.T7("su"),_.T7("mk"))};
wfX.prototype.increment=function(v,E){this.pAx.JSC$7679_incrementCounter("/client_streamz/bg/po/cwsc",v,E)};var Ca9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Ca9,_.Vj);var Zp1=function(v,E){return _.r2(v,3,E,RyG)};var B2P=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(B2P,_.Vj);var vR1=[1,2,3];var ERg=[0,vR1,_.HDN,h3E,DKE];var nRl=[0,_.Oa,[0,quE,_.H2]];var oRl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(oRl,_.Vj);var fdS=[1,2,3];var xa6=[0,fdS,IFQ,J0$,_.k8,nRl];var cAo=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cAo,_.Vj);var yAz=[0,_.Oa,ERg,xa6];var p51=[0,[1,2,3],_.k8,[0,_.uN,-1,_.Nr],_.k8,[0,_.uN,-1,_.gO,_.Nr],_.k8,[0,_.uN]];var QCi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(QCi,_.Vj);QCi.prototype.JSC$7499_serializeBinary=vbG([0,_.uN,p51,gGL,_.Oa,yAz,A0E,Vl9]);var X51=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(X51,_.Vj);var mao=function(v){var E=new QCi;E=_.ps(E,1,v.JSC$7615_metricName);var n=eZl(v);E=_.r2(E,3,n,_.Hb);n=[];for(var f=[],x=_.p(v.cellMap.keys()),y=x.next();!y.done;y=x.next())f.push(y.value.split(","));for(x=0;x<f.length;x++){y=f[x];for(var Q=v.cellType,e=v.getCells(y)||[],F=[],b=0;b<e.length;b++){var l=e[b],r=l&&l.cellValue;l=new oRl;switch(Q){case 3:r=Number(r);Number.isFinite(r)&&RY(l,1,fdS,d_(r));break;case 2:RY(l,2,fdS,_.Q6(Number(r)))}F.push(l)}Q=F;for(e=0;e<Q.length;e++){F=Q[e];b=new cAo;F=_.Bz(b,
2,F);b=[];l=F_o(v);for(r=0;r<l.length;r++){var a=l[r],M=y[r],U=new B2P;switch(a){case 3:RY(U,1,vR1,g_(String(M)));break;case 2:a=Number(M);Number.isFinite(a)&&RY(U,2,vR1,_.Z1(a));break;case 1:RY(U,3,vR1,TLQ(M==="true"))}b.push(U)}sa(F,1,b);n.push(F)}}sa(E,4,n);return E};var w5g=function(v){if(!v)return"";if(/^about:(?:blank|srcdoc)$/.test(v))return window.origin||"";v.indexOf("blob:")===0&&(v=v.substring(5));v=v.split("#")[0].split("?")[0];v=v.toLowerCase();v.indexOf("//")==0&&(v=window.location.protocol+v);/^[\w\-]*:\/\//.test(v)||(v=window.location.href);var E=v.substring(v.indexOf("://")+3),n=E.indexOf("/");n!=-1&&(E=E.substring(0,n));n=v.substring(0,v.indexOf("://"));if(!n)throw Error("ua`"+v);if(n!=="http"&&n!=="https"&&n!=="chrome-extension"&&n!=="moz-extension"&&
n!=="file"&&n!=="android-app"&&n!=="chrome-search"&&n!=="chrome-untrusted"&&n!=="chrome"&&n!=="app"&&n!=="devtools")throw Error("va`"+n);v="";var f=E.indexOf(":");if(f!=-1){var x=E.substring(f+1);E=E.substring(0,f);if(n==="http"&&x!=="80"||n==="https"&&x!=="443")v=":"+x}return n+"://"+E+v};var ldS=function(v,E,n){var f=String(_.n1.location.href);return f&&v&&E?[E,bcg(w5g(f),v,n||null)].join(" "):null},bcg=function(v,E,n){var f=[],x=[];
if((Array.isArray(n)?2:1)==1)return x=[E,v],_.I5(f,function(e){x.push(e)}),sC1(x.join(" "));
var y=[],Q=[];_.I5(n,function(e){Q.push(e.key);y.push(e.value)});
n=Math.floor((new Date).getTime()/1E3);x=y.length==0?[n,E,v]:[y.join(":"),n,E,v];_.I5(f,function(e){x.push(e)});
v=sC1(x.join(" "));v=[n,v];Q.length==0||v.push(Q.join(""));return v.join("_")},sC1=function(v){var E=Gc$();
E.update(v);return E.digestString().toLowerCase()};var tP=function(v){this.JSC$7510_document_=v||{cookie:""}},rAS;
_.c=tP.prototype;_.c.isEnabled=function(){if(!_.n1.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};
_.c.set=function(v,E,n){var f=!1;if(typeof n==="object"){var x=n.sameSite;f=n.secure||!1;var y=n.domain||void 0;var Q=n.path||void 0;var e=n.maxAge}if(/[;=\s]/.test(v))throw Error("wa`"+v);if(/[;\r\n]/.test(E))throw Error("xa`"+E);e===void 0&&(e=-1);n=y?";domain="+y:"";Q=Q?";path="+Q:"";f=f?";secure":"";e=e<0?"":e==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+e*1E3)).toUTCString();this.JSC$7510_document_.cookie=v+"="+E+n+Q+e+f+(x!=null?";samesite="+x:"")};
_.c.get=function(v,E){for(var n=v+"=",f=(this.JSC$7510_document_.cookie||"").split(";"),x=0,y;x<f.length;x++){y=wL(f[x]);if(y.lastIndexOf(n,0)==0)return y.slice(n.length);if(y==v)return""}return E};
_.c.remove=function(v,E,n){var f=this.containsKey(v);this.set(v,"",{maxAge:0,path:E,domain:n});return f};
_.c.getKeys=function(){return rAS(this).keys};
_.c.getValues=function(){return rAS(this).values};
_.c.isEmpty=function(){return!this.JSC$7510_document_.cookie};
_.c.getCount=function(){return this.JSC$7510_document_.cookie?(this.JSC$7510_document_.cookie||"").split(";").length:0};
_.c.containsKey=function(v){return this.get(v)!==void 0};
_.c.containsValue=function(v){for(var E=rAS(this).values,n=0;n<E.length;n++)if(E[n]==v)return!0;return!1};
_.c.clear=function(){for(var v=rAS(this).keys,E=v.length-1;E>=0;E--)this.remove(v[E])};
rAS=function(v){v=(v.JSC$7510_document_.cookie||"").split(";");for(var E=[],n=[],f,x,y=0;y<v.length;y++)x=wL(v[y]),f=x.indexOf("="),f==-1?(E.push(""),n.push(x)):(E.push(x.substring(0,f)),n.push(x.substring(f+1)));return{keys:E,values:n}};
_.nE=new tP(typeof document=="undefined"?null:document);var wly=function(){var v=_.n1.__SAPISID||_.n1.__APISID||_.n1.__3PSAPISID||_.n1.__1PSAPISID||_.n1.__OVERRIDE_SID;if(v)return!0;typeof document!=="undefined"&&(v=new tP(document),v=v.get("SAPISID")||v.get("APISID")||v.get("__Secure-3PAPISID")||v.get("__Secure-1PAPISID"));return!!v},PWz=function(v,E,n,f){(v=_.n1[v])||typeof document==="undefined"||(v=(new tP(document)).get(E));
return v?ldS(v,n,f):null},vyy=function(v){var E=w5g(_.n1==null?void 0:_.n1.location.href),n=[];
if(wly()){E=E.indexOf("https:")==0||E.indexOf("chrome-extension:")==0||E.indexOf("chrome-untrusted://new-tab-page")==0||E.indexOf("moz-extension:")==0;var f=E?_.n1.__SAPISID:_.n1.__APISID;f||typeof document==="undefined"||(f=new tP(document),f=f.get(E?"SAPISID":"APISID")||f.get("__Secure-3PAPISID"));(f=f?ldS(f,E?"SAPISIDHASH":"APISIDHASH",v):null)&&n.push(f);E&&((E=PWz("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",v))&&n.push(E),(v=PWz("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",v))&&n.push(v))}return n.length==
0?null:n.join(" ")};var adz=function(){this.minSize=1024};
adz.prototype.compress=function(v){var E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return E=new CompressionStream("gzip"),n=(new Response(E.readable)).arrayBuffer(),f=E.writable.getWriter(),_.m(y,f.write((new TextEncoder).encode(v)),2);case 2:return _.m(y,f.close(),3);case 3:return x=Uint8Array,_.m(y,n,4);case 4:return y.return(new x(y.yieldResult))}})};
adz.prototype.isSupported=function(v){return v<this.minSize?!1:typeof CompressionStream!=="undefined"};var Zc1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Zc1,_.Vj);var BM=function(v,E){this.intervalMs=v;this.callback=E;this.enabled=!1;this.nowFn=function(){return _.Rr()};
this.lastTimeMs=this.nowFn()};
BM.prototype.setInterval=function(v){this.intervalMs=v;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
BM.prototype.start=function(){var v=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){v.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
BM.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
BM.prototype.tick=function(){var v=this;if(this.enabled){var E=Math.max(this.nowFn()-this.lastTimeMs,0);E<this.intervalMs*.8?this.timer=setTimeout(function(){v.tick()},this.intervalMs-E):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var CW6=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(CW6,_.Vj);var McF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(McF,_.Vj);var Sw1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Sw1,_.Vj);Sw1.prototype.getTransmissionType=function(){return _.Ua(this,1)};var RtN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(RtN,_.Vj);RtN.prototype.getVersion=function(){return _.Sf(this,2)};var vF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(vF,_.Vj);var ztE=function(v){sa(tCN,1,v)};
vF.prototype.getModel=function(){return _.Sf(this,6)};
var Ua1=_.RK(vF);var qwl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(qwl,_.Vj);var TCL=["platform","platformVersion","architecture","model","uaFullVersion"],tCN=new vF,iTE=null;var JA1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(JA1,_.Vj);var K_w=function(v){return _.OH(v,1,1)};var dal=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,4)};
_.S(dal,_.Vj);_.Eo=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,36)};
_.S(_.Eo,_.Vj);_.Eo.prototype.getExperimentIds=function(){return _.j5(this,Zc1,16)};var Idw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,19)};
_.S(Idw,_.Vj);Idw.prototype.setLogSource=function(v){return _.OH(this,2,v)};
Idw.prototype.setScheduler=function(v){return _.OH(this,10,v)};var hZ1=function(v,E){this.isServiceWorkerScope=E=E===void 0?!1:E;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Idw;Number.isInteger(v)&&this.logRequest.setLogSource(v);E||(this.locale=document.documentElement.getAttribute("lang"));Ywi(this,new JA1)};
hZ1.prototype.setLogSource=function(v){this.logRequest.setLogSource(v);return this};
var Ywi=function(v,E){_.Bz(v.logRequest,1,E);_.Ua(E,1)||K_w(E);v.isServiceWorkerScope||(E=ny(v),_.Sf(E,5)||_.ps(E,5,v.locale));v.uach&&(E=ny(v),_.j5(E,vF,9)||_.Bz(E,9,v.uach))},AAg=function(v,E){v.transmissionType=E},Vcz=function(v){var E=E===void 0?TCL:E;
var n=v.isServiceWorkerScope?void 0:ai();n?BCA(n,E).then(function(f){v.uach=Ua1(f!=null?f:"[]");f=ny(v);_.Bz(f,9,v.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},ny=function(v){v=_.j5(v.logRequest,JA1,1);
var E=_.j5(v,qwl,11);E||(E=new qwl,_.Bz(v,11,E));return E};
hZ1.prototype.build=function(v,E,n,f,x,y){E=E===void 0?0:E;n=n===void 0?0:n;f=f===void 0?null:f;x=x===void 0?0:x;y=y===void 0?0:y;if(!this.isServiceWorkerScope){var Q=ny(this);var e=new Sw1;e=_.OH(e,1,this.transmissionType);e=_.iU(e,2,this.isFinal);n=_.dO(e,3,n>0?n:void 0);n=_.dO(n,4,x>0?x:void 0);n=_.dO(n,5,y>0?y:void 0);x=n.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=x[_.J6]|0;n=HU(n,y)?n:xb(n,x,y)?fW(n,x):new n.constructor(nW(x,y,!0));_.Bz(Q,10,n)}Q=this.logRequest.clone();n=Date.now().toString();
Q=_.km(Q,4,d_(n));v=v.slice();v=sa(Q,3,v);f&&(Q=new CW6,f=_.dO(Q,13,f),Q=new McF,f=_.Bz(Q,2,f),Q=new dal,f=_.Bz(Q,1,f),f=_.OH(f,2,9),_.Bz(v,18,f));E&&_.f3(v,14,E);return v};z7.prototype.currBackoffCount_=0;z7.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
z7.prototype.getValue=function(){return this.currValue_};
var Da1=function(v){v.currBaseValue_=Math.min(v.maxValue_,v.currBaseValue_*v.backoffFactor_);v.currValue_=Math.min(v.maxValue_,v.currBaseValue_+(v.randomFactor_?Math.round(v.randomFactor_*(Math.random()-.5)*2*v.currBaseValue_):0));v.currBackoffCount_++};var kpF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,8)};
_.S(kpF,_.Vj);var Hcl=_.RK(kpF);var WvL=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(WvL,_.Vj);var oW;oW=new $KX;var fy=function(v){_.QK.call(this);var E=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7588_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$7588_sendBeaconApiEnabled=!1;this.logSource=v.logSource;this.getAuthHeaderValue=
v.getAuthHeaderValue||function(){};
this.logRequestBuilder=new hZ1(v.logSource,v.isServiceWorkerScope);this.network=v.network||null;this.productID=v.productID||null;this.clearcutUrl=v.urlOverride||null;this.sessionIndex=v.sessionIndex||null;this.disableAutomaticFlush=v.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!v.disableWithCredentials;this.isServiceWorkerScope=v.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!ai()&&!!ai().navigator&&ai().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(gRS())).searchParams&&!!(new URL(gRS())).searchParams.set;var n=K_w(new JA1);Ywi(this.logRequestBuilder,n);this.flushBackoff=new z7(1E4,3E5,.1);v=NVz(this,v.backgroundJobDeferrer);this.JSC$7588_flushTimer=new BM(this.flushBackoff.getValue(),v);this.backupTimer=new BM(6E5,v);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){u_l(E);
var f;(f=E.metalogService)==null||f.flush()}}),document.addEventListener("pagehide",function(){u_l(E);
var f;(f=E.metalogService)==null||f.flush()}))};
_.S(fy,_.QK);var NVz=function(v,E){return v.isBrowserSupported?E?function(){E().then(function(){v.flush()})}:function(){v.flush()}:function(){}};
fy.prototype.disposeInternal=function(){u_l(this);this.JSC$7588_flushTimer.stop();this.backupTimer.stop();_.QK.prototype.disposeInternal.call(this)};
var jC1=function(v){v.clearcutUrl||(v.clearcutUrl=gRS());try{return(new URL(v.clearcutUrl)).toString()}catch(E){return(new URL(v.clearcutUrl,ai().location.origin)).toString()}};
fy.prototype.dispatch=function(v){if(v instanceof _.Eo)this.log(v);else try{var E=new _.Eo,n=v.serialize();var f=_.ps(E,8,n);this.log(f)}catch(x){x2(this,4,1)}};
var x2=function(v,E,n){v.metalogService&&v.metalogService.increment(E,n)};
fy.prototype.log=function(v){x2(this,2,1);if(this.isBrowserSupported){v=v.clone();var E=this.sequencePosition++;v=_.f3(v,21,E);this.componentId&&_.ps(v,26,this.componentId);E=v;if(miA(_.ef(E,1))==null){var n=Date.now();n=Number.isFinite(n)?n.toString():"0";_.km(E,1,d_(n))}_.Fgs(_.ef(E,15))!=null||_.f3(E,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(n=this.experimentIds.clone(),_.Bz(E,16,n));x2(this,1,1);E=this.pendingEvents.length-1E3+1;E>0&&(this.pendingEvents.splice(0,E),this.numLogsDroppedSinceLastFlush+=
E,x2(this,3,E));this.pendingEvents.push(v);this.disableAutomaticFlush||this.JSC$7588_flushTimer.enabled||this.JSC$7588_flushTimer.start()}};
fy.prototype.flush=function(v,E){var n=this;if(this.pendingEvents.length===0)v&&v();else if(this.JSC$7588_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,OcS(this);else{var f=Date.now();if(this.noFlushUntilMs>f&&this.startWaitingMs<f)E&&E("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?AAg(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var x=this.pendingEvents.length,
y=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Q=this.getAuthHeaderValue();if(Q&&this.lastFailedAuth===Q)E&&E("stale-auth-token");else{this.pendingEvents=[];this.JSC$7588_flushTimer.enabled&&this.JSC$7588_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;f=y.serialize();var e;this.JSC$7588_compressor&&this.JSC$7588_compressor.isSupported(f.length)&&
(e=this.JSC$7588_compressor.compress(f));var F=kdo(this,f,Q),b=function(a){n.flushBackoff.reset();n.JSC$7588_flushTimer.setInterval(n.flushBackoff.getValue());if(a){var M=null;try{var U=JSON.stringify(JSON.parse(a.replace(")]}'\n","")));M=Hcl(U)}catch(d){}M&&(a=Number(Z2(M,1,_.iX("-1"))),a>0&&(n.startWaitingMs=Date.now(),n.noFlushUntilMs=n.startWaitingMs+a),Y19(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,oW.fieldIndex),di9(M,oW.fieldIndex),M=oW.ctor?oW.getExtensionFn(M,oW.ctor,oW.fieldIndex,
oW.JSC$6759_hasMessageId):oW.getExtensionFn(M,oW.fieldIndex,null,oW.JSC$6759_hasMessageId),M=M===null?void 0:M)&&(M=_.$r(M,1,-1),M!==-1&&(n.flushBackoff=new z7(M<1?1:M,3E5,.1),n.JSC$7588_flushTimer.setInterval(n.flushBackoff.getValue())))}v&&v();n.numRetriesSinceLastSuccessfulFlush=0},l=function(a,M){var U=_.kr(y,_.Eo,3,_.WV());
var d=Number(Z2(y,14));Da1(n.flushBackoff);n.JSC$7588_flushTimer.setInterval(n.flushBackoff.getValue());a===401&&Q&&(n.lastFailedAuth=Q);d&&(n.numLogsDroppedSinceLastFlush+=d);M===void 0&&(M=n.isRetryable(a));M&&(n.pendingEvents=U.concat(n.pendingEvents),n.disableAutomaticFlush||n.JSC$7588_flushTimer.enabled||n.JSC$7588_flushTimer.start());x2(n,7,1);E&&E("net-send-failed",a);++n.numRetriesSinceLastSuccessfulFlush},r=function(){n.network&&n.network.send(F,b,l)};
e?e.then(function(a){x2(n,5,x);F.requestHeaders["Content-Encoding"]="gzip";F.requestHeaders["Content-Type"]="application/binary";F.body=a;F.bodyType=2;r()},function(){x2(n,6,x);
r()}):r()}}}};
var kdo=function(v,E,n){n=n===void 0?null:n;var f=f===void 0?v.withCredentials:f;var x={},y=new URL(jC1(v));n&&(x.Authorization=n);v.sessionIndex&&(x["X-Goog-AuthUser"]=v.sessionIndex,y.searchParams.set("authuser",v.sessionIndex));v.pageId&&(Object.defineProperty(x,"X-Goog-PageId",{value:v.pageId}),y.searchParams.set("pageId",v.pageId));return{url:y.toString(),body:E,bodyType:1,requestHeaders:x,requestType:"POST",withCredentials:f,timeoutMillis:v.timeoutMillis}},u_l=function(v){v.logRequestBuilder.isFinal=
!0;
v.flush();v.logRequestBuilder.isFinal=!1},OcS=function(v){W_F(v,function(E,n){E=new URL(E);
E.searchParams.set("format","json");var f=!1;try{f=ai().navigator.sendBeacon(E.toString(),n.serialize())}catch(x){}f||(v.isSendBeaconSupported=!1);return f})},W_F=function(v,E){if(v.pendingEvents.length!==0){var n=new URL(jC1(v));
n.searchParams.delete("format");var f=v.getAuthHeaderValue();f&&n.searchParams.set("auth",f);n.searchParams.set("authuser",v.sessionIndex||"0");for(f=0;f<10&&v.pendingEvents.length;++f){var x=v.pendingEvents.slice(0,32),y=v.logRequestBuilder.build(x,v.numLogsDroppedSinceLastFlush,v.numRetriesSinceLastSuccessfulFlush,v.productID,v.persistedLogRecoveredCount,v.persistedLogExpiredCount);if(!E(n.toString(),y)){++v.numRetriesSinceLastSuccessfulFlush;break}v.numLogsDroppedSinceLastFlush=0;v.numRetriesSinceLastSuccessfulFlush=
0;v.persistedLogRecoveredCount=0;v.persistedLogExpiredCount=0;v.pendingEvents=v.pendingEvents.slice(x.length)}v.JSC$7588_flushTimer.enabled&&v.JSC$7588_flushTimer.stop()}};
fy.prototype.isRetryable=function(v){return 500<=v&&v<600||v===401||v===0};
var gRS=function(){return"https://play.google.com/log?format=json&hasfast=true"};var $a1=function(){this.abortSupported=typeof AbortController!=="undefined"};
$a1.prototype.send=function(v,E,n){var f=this,x,y,Q,e,F,b,l,r,a,M;return _.X(function(U){switch(U.nextAddress){case 1:return y=(x=f.abortSupported?new AbortController:void 0)?setTimeout(function(){x.abort()},v.timeoutMillis):void 0,_.vW(U,2,3),Q=Object.assign({},{method:v.requestType,
headers:Object.assign({},v.requestHeaders)},v.body&&{body:v.body},v.withCredentials&&{credentials:"include"},{signal:v.timeoutMillis&&x?x.signal:null}),_.m(U,fetch(v.url,Q),5);case 5:e=U.yieldResult;if(e.status!==200){(F=n)==null||F(e.status);U.jumpTo(3);break}if((b=E)==null){U.jumpTo(7);break}return _.m(U,e.text(),8);case 8:b(U.yieldResult);case 7:case 3:_.nI(U);clearTimeout(y);_.xh(U,0);break;case 2:l=_.cW(U);switch((r=l)==null?void 0:r.name){case "AbortError":(a=n)==null||a(408);break;default:(M=
n)==null||M(400)}U.jumpTo(3)}})};
$a1.prototype.getTransmissionType=function(){return 4};_.tJ=function(v,E){E=E===void 0?"0":E;_.QK.call(this);this.logSource=v;this.sessionIndex=E;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7606_clearExperimentIds=this.productID=null;this.JSC$7606_sendBeaconApiEnabled=!1;this.pageId=null};
_.S(_.tJ,_.QK);var rvN=function(v,E){v.buildLabel=E;return v},s0L=function(v,E){v.network=E;
return v},aYE=function(v,E){v.JSC$7606_clearExperimentIds=E},lYN=function(v){v.JSC$7606_sendBeaconApiEnabled=!0;
return v};
_.tJ.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.tJ.prototype.build=function(){this.network||(this.network=new $a1);var v=new fy({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:vyy,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.BV(this,v);if(this.buildLabel){var E=this.buildLabel,n=ny(v.logRequestBuilder);
_.ps(n,7,E)}v.JSC$7588_compressor=new adz;this.componentId&&(v.componentId=this.componentId);this.productID&&(v.productID=this.productID);this.pageId&&(v.pageId=this.pageId);this.JSC$7606_clearExperimentIds&&((n=this.JSC$7606_clearExperimentIds)?(v.experimentIds||(v.experimentIds=new Zc1),E=v.experimentIds,n=n.serialize(),_.ps(E,4,n)):v.experimentIds&&_.km(v.experimentIds,4));this.JSC$7606_sendBeaconApiEnabled&&(v.JSC$7588_sendBeaconApiEnabled=v.isSendBeaconSupported);Vcz(v.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(v);return v};var MaQ=function(v,E,n,f,x,y,Q){v=v===void 0?-1:v;E=E===void 0?"":E;n=n===void 0?"":n;f=f===void 0?!1:f;x=x===void 0?"":x;_.QK.call(this);this.logSource=v;this.componentId=E;y?E=y:(v=new _.tJ(v,"0"),v.componentId=E,_.BV(this,v),n!==""&&(v.destinationUrl=n),f&&(v.serviceWorkerScopeEnabled=!0),x&&rvN(v,x),Q&&s0L(v,Q),E=v.build());this.JSC$7610_transport=E};
_.S(MaQ,_.QK);MaQ.prototype.flush=function(v){v=v||[];if(v.length){for(var E=new X51,n=[],f=0;f<v.length;f++){var x=v[f],y=mao(x);n.push(y);x.clear()}sa(E,1,n);this.JSC$7610_transport.dispatch(E);this.JSC$7610_transport.flush()}};var L_i=function(v){this.cellValue=v};var cF=function(v,E,n){this.JSC$7615_metricName=v;this.cellType=E;this.fields=n||[];this.cellMap=new Map},F_o=function(v){return v.fields.map(function(E){return E.fieldType})},eZl=function(v){return v.fields.map(function(E){return E.fieldName})};
_.c=cF.prototype;_.c.addCell=function(v){var E=_.rV.apply(1,arguments),n=this.getCells(E);n?n.push(new L_i(v)):this.JSC$7615_setCell(v,E)};
_.c.JSC$7615_setCell=function(v){var E=this.JSC$7615_getKey(_.rV.apply(1,arguments));this.cellMap.set(E,[new L_i(v)])};
_.c.getCells=function(){var v=this.JSC$7615_getKey(_.rV.apply(0,arguments));return this.cellMap.has(v)?this.cellMap.get(v):void 0};
_.c.getCell=function(){var v=this.getCells(_.rV.apply(0,arguments));return v&&v.length?v[0]:void 0};
_.c.clear=function(){this.cellMap.clear()};
_.c.JSC$7615_getKey=function(){var v=_.rV.apply(0,arguments);return v?v.join(","):"key"};var GdU=function(v,E){cF.call(this,v,3,E)};
_.S(GdU,cF);GdU.prototype.JSC$7618_incrementCounterBy=function(v){var E=_.rV.apply(1,arguments),n=0,f=this.getCell(E);f&&(n=f.cellValue);this.JSC$7615_setCell(n+v,E)};var TV1=function(v,E){cF.call(this,v,2,E)};
_.S(TV1,cF);TV1.prototype.record=function(v){this.addCell(v,_.rV.apply(1,arguments))};_.yu=function(v){this.id=v};
_.yu.prototype.toString=function(){return this.id};_.py=function(v,E){this.type=v instanceof _.yu?String(v):v;this.currentTarget=this.target=E;this.defaultPrevented=this.propagationStopped_=!1};
_.py.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.py.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Qu=function(v,E){_.py.call(this,v?v.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;v&&this.init(v,E)};
_.tf(_.Qu,_.py);
_.Qu.prototype.init=function(v,E){var n=this.type=v.type,f=v.changedTouches&&v.changedTouches.length?v.changedTouches[0]:null;this.target=v.target||v.srcElement;this.currentTarget=E;E=v.relatedTarget;E||(n=="mouseover"?E=v.fromElement:n=="mouseout"&&(E=v.toElement));this.relatedTarget=E;f?(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0):(this.offsetX=_.f9||v.offsetX!==void 0?v.offsetX:v.layerX,
this.offsetY=_.f9||v.offsetY!==void 0?v.offsetY:v.layerY,this.clientX=v.clientX!==void 0?v.clientX:v.pageX,this.clientY=v.clientY!==void 0?v.clientY:v.pageY,this.screenX=v.screenX||0,this.screenY=v.screenY||0);this.button=v.button;this.keyCode=v.keyCode||0;this.key=v.key||"";this.charCode=v.charCode||(n=="keypress"?v.keyCode:0);this.ctrlKey=v.ctrlKey;this.altKey=v.altKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pointerId=v.pointerId||0;this.pointerType=v.pointerType;this.state=v.state;
this.timeStamp=v.timeStamp;this.event_=v;v.defaultPrevented&&_.Qu.superClass_.preventDefault.call(this)};
_.Qu.prototype.stopPropagation=function(){_.Qu.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Qu.prototype.preventDefault=function(){_.Qu.superClass_.preventDefault.call(this);var v=this.event_;v.preventDefault?v.preventDefault():v.returnValue=!1};var ic1="closure_listenable_"+(Math.random()*1E6|0),XX=function(v){return!(!v||!v[ic1])};var zZP=0;var RZ1=function(v,E,n,f,x){this.listener=v;this.proxy=null;this.src=E;this.type=n;this.capture=!!f;this.handler=x;this.key=++zZP;this.removed=this.callOnce=!1},tc6=function(v){v.removed=!0;
v.listener=null;v.proxy=null;v.src=null;v.handler=null};Ri.prototype.add=function(v,E,n,f,x){var y=v.toString();v=this.listeners[y];v||(v=this.listeners[y]=[],this.typeCount_++);var Q=BVo(v,E,f,x);Q>-1?(E=v[Q],n||(E.callOnce=!1)):(E=new RZ1(E,this.src,y,!!f,x),E.callOnce=n,v.push(E));return E};
Ri.prototype.remove=function(v,E,n,f){v=v.toString();if(!(v in this.listeners))return!1;var x=this.listeners[v];E=BVo(x,E,n,f);return E>-1?(tc6(x[E]),_.Ts(x,E),x.length==0&&(delete this.listeners[v],this.typeCount_--),!0):!1};
var vhS=function(v,E){var n=E.type;if(!(n in v.listeners))return!1;var f=_.zs(v.listeners[n],E);f&&(tc6(E),v.listeners[n].length==0&&(delete v.listeners[n],v.typeCount_--));return f};
Ri.prototype.removeAll=function(v){v=v&&v.toString();var E=0,n;for(n in this.listeners)if(!v||n==v){for(var f=this.listeners[n],x=0;x<f.length;x++)++E,tc6(f[x]);delete this.listeners[n];this.typeCount_--}return E};
Ri.prototype.getListener=function(v,E,n,f){v=this.listeners[v.toString()];var x=-1;v&&(x=BVo(v,E,n,f));return x>-1?v[x]:null};
Ri.prototype.hasListener=function(v,E){var n=v!==void 0,f=n?v.toString():"",x=E!==void 0;return _.sh.some(this.listeners,function(y){for(var Q=0;Q<y.length;++Q)if(!(n&&y[Q].type!=f||x&&y[Q].capture!=E))return!0;return!1})};
var BVo=function(v,E,n,f){for(var x=0;x<v.length;++x){var y=v[x];if(!y.removed&&y.listener==E&&y.capture==!!n&&y.handler==f)return x}return-1};var Eh4,nho,ohS,xgU,ceS,zl,RU,Ql1,ye6,pW4,eP,XWP,fq1;Eh4="closure_lm_"+(Math.random()*1E6|0);nho={};ohS=0;_.v8=function(v,E,n,f,x){if(f&&f.once)return zl(v,E,n,f,x);if(Array.isArray(E)){for(var y=0;y<E.length;y++)_.v8(v,E[y],n,f,x);return null}n=fq1(n);return XX(v)?v.listen(E,n,_.oF(f)?!!f.capture:!!f,x):xgU(v,E,n,!1,f,x)};
xgU=function(v,E,n,f,x,y){if(!E)throw Error("za");var Q=_.oF(x)?!!x.capture:!!x,e=eP(v);e||(v[Eh4]=e=new Ri(v));n=e.add(E,n,f,Q,y);if(n.proxy)return n;f=ceS();n.proxy=f;f.src=v;f.listener=n;if(v.addEventListener)_.PEl||(x=Q),x===void 0&&(x=!1),v.addEventListener(E.toString(),f,x);else if(v.attachEvent)v.attachEvent(ye6(E.toString()),f);else if(v.addListener&&v.removeListener)v.addListener(f);else throw Error("Aa");ohS++;return n};
ceS=function(){var v=pW4,E=function(n){return v.call(E.src,E.listener,n)};
return E};
zl=function(v,E,n,f,x){if(Array.isArray(E)){for(var y=0;y<E.length;y++)zl(v,E[y],n,f,x);return null}n=fq1(n);return XX(v)?v.listenOnce(E,n,_.oF(f)?!!f.capture:!!f,x):xgU(v,E,n,!0,f,x)};
_.FX=function(v,E,n,f,x){if(Array.isArray(E))for(var y=0;y<E.length;y++)_.FX(v,E[y],n,f,x);else f=_.oF(f)?!!f.capture:!!f,n=fq1(n),XX(v)?v.unlisten(E,n,f,x):v&&(v=eP(v))&&(E=v.getListener(E,n,f,x))&&RU(E)};
RU=function(v){if(typeof v==="number"||!v||v.removed)return!1;var E=v.src;if(XX(E))return vhS(E.eventTargetListeners_,v);var n=v.type,f=v.proxy;E.removeEventListener?E.removeEventListener(n,f,v.capture):E.detachEvent?E.detachEvent(ye6(n),f):E.addListener&&E.removeListener&&E.removeListener(f);ohS--;(n=eP(E))?(vhS(n,v),n.typeCount_==0&&(n.src=null,E[Eh4]=null)):tc6(v);return!0};
Ql1=function(v,E,n,f,x){n=fq1(n);f=!!f;return XX(v)?v.getListener(E,n,f,x):v?(v=eP(v))?v.getListener(E,n,f,x):null:null};
ye6=function(v){return v in nho?nho[v]:nho[v]="on"+v};
pW4=function(v,E){if(v.removed)v=!0;else{E=new _.Qu(E,this);var n=v.listener,f=v.handler||v.src;v.callOnce&&RU(v);v=n.call(f,E)}return v};
eP=function(v){v=v[Eh4];return v instanceof Ri?v:null};
XWP="__closure_events_fn_"+(Math.random()*1E9>>>0);fq1=function(v){if(typeof v==="function")return v;v[XWP]||(v[XWP]=function(E){return v.handleEvent(E)});
return v[XWP]};_.mP=function(){_.QK.call(this);this.eventTargetListeners_=new Ri(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.tf(_.mP,_.QK);_.mP.prototype[ic1]=!0;_.c=_.mP.prototype;_.c.setParentEventTarget=function(v){this.parentEventTarget_=v};
_.c.addEventListener=function(v,E,n,f){_.v8(this,v,E,n,f)};
_.c.removeEventListener=function(v,E,n,f){_.FX(this,v,E,n,f)};
_.c.dispatchEvent=function(v){var E,n=this.parentEventTarget_;if(n)for(E=[];n;n=n.parentEventTarget_)E.push(n);n=this.actualEventTarget_;var f=v.type||v;if(typeof v==="string")v=new _.py(v,n);else if(v instanceof _.py)v.target=v.target||n;else{var x=v;v=new _.py(f,n);_.sh.extend(v,x)}x=!0;var y;if(E)for(y=E.length-1;!v.propagationStopped_&&y>=0;y--){var Q=v.currentTarget=E[y];x=eqz(Q,f,!0,v)&&x}v.propagationStopped_||(Q=v.currentTarget=n,x=eqz(Q,f,!0,v)&&x,v.propagationStopped_||(x=eqz(Q,f,!1,v)&&
x));if(E)for(y=0;!v.propagationStopped_&&y<E.length;y++)Q=v.currentTarget=E[y],x=eqz(Q,f,!1,v)&&x;return x};
_.c.disposeInternal=function(){_.mP.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.c.listen=function(v,E,n,f){return this.eventTargetListeners_.add(String(v),E,!1,n,f)};
_.c.listenOnce=function(v,E,n,f){return this.eventTargetListeners_.add(String(v),E,!0,n,f)};
_.c.unlisten=function(v,E,n,f){return this.eventTargetListeners_.remove(String(v),E,n,f)};
_.c.removeAllListeners=function(v){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(v):0};
var eqz=function(v,E,n,f){E=v.eventTargetListeners_.listeners[String(E)];if(!E)return!0;E=E.concat();for(var x=!0,y=0;y<E.length;++y){var Q=E[y];if(Q&&!Q.removed&&Q.capture==n){var e=Q.listener,F=Q.handler||Q.src;Q.callOnce&&vhS(v.eventTargetListeners_,Q);x=e.call(F,f)!==!1&&x}}return x&&!f.defaultPrevented};
_.mP.prototype.getListener=function(v,E,n,f){return this.eventTargetListeners_.getListener(String(v),E,n,f)};
_.mP.prototype.hasListener=function(v,E){return this.eventTargetListeners_.hasListener(v!==void 0?String(v):void 0,E)};var wk=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(v){return v&&AsyncContext.Snapshot.wrap(v)}:function(v){return v};var FZz=function(v,E){this.create_=v;this.reset_=E;this.occupants_=0;this.JSC$7650_head_=null};
FZz.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var v=this.JSC$7650_head_;this.JSC$7650_head_=v.next;v.next=null}else v=this.create_();return v};
FZz.prototype.put=function(v){this.reset_(v);this.occupants_<100&&(this.occupants_++,v.next=this.JSC$7650_head_,this.JSC$7650_head_=v)};var mg1=function(){this.workTail_=this.workHead_=null};
mg1.prototype.add=function(v,E){var n=E7$.get();n.set(v,E);this.workTail_?this.workTail_.next=n:this.workHead_=n;this.workTail_=n};
mg1.prototype.remove=function(){var v=null;this.workHead_&&(v=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),v.next=null);return v};
var E7$=new FZz(function(){return new wWP},function(v){return v.reset()}),wWP=function(){this.next=this.scope=this.fn=null};
wWP.prototype.set=function(v,E){this.fn=v;this.scope=E;this.next=null};
wWP.prototype.reset=function(){this.next=this.scope=this.fn=null};var bIo,n7X,v79,lql;n7X=!1;v79=new mg1;_.bg=function(v,E){bIo||lql();n7X||(bIo(),n7X=!0);v79.add(v,E)};
lql=function(){var v=Promise.resolve(void 0);bIo=function(){v.then(o7N)}};var slw=function(v){v.prototype.$goog_Thenable=!0},reg=function(v){if(!v)return!1;
try{return!!v.$goog_Thenable}catch(E){return!1}};var P_6,aqw,ZIU,M81,S8i,Ugw,dg1,hq1,HIg,V8g,aPG;_.z2=function(v,E){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(v!=_.er)try{var n=this;v.call(E,function(f){n.resolve_(2,f)},function(f){n.resolve_(3,f)})}catch(f){this.resolve_(3,f)}};
P_6=function(){this.next=this.context=this.JSC$7661_onRejected=this.JSC$7661_onFulfilled=this.child=null;this.always=!1};
P_6.prototype.reset=function(){this.context=this.JSC$7661_onRejected=this.JSC$7661_onFulfilled=this.child=null;this.always=!1};
aqw=new FZz(function(){return new P_6},function(v){v.reset()});
ZIU=function(v,E,n){var f=aqw.get();f.JSC$7661_onFulfilled=v;f.JSC$7661_onRejected=E;f.context=n;return f};
_.Gn=function(v){if(v instanceof _.z2)return v;var E=new _.z2(_.er);E.resolve_(2,v);return E};
_.nR=function(v){return new _.z2(function(E,n){n(v)})};
M81=function(v,E,n){C_z(v,E,n,null)||_.bg(_.vR(E,v))};
_.lg=function(v){return new _.z2(function(E,n){var f=v.length,x=[];if(f)for(var y=function(b,l){f--;x[b]=l;f==0&&E(x)},Q=function(b){n(b)},e,F=0;F<v.length;F++)e=v[F],M81(e,_.vR(y,F),Q);
else E(x)})};
S8i=function(v){return new _.z2(function(E){var n=v.length,f=[];if(n)for(var x=function(e,F,b){n--;f[e]=F?{fulfilled:!0,value:b}:{fulfilled:!1,reason:b};n==0&&E(f)},y,Q=0;Q<v.length;Q++)y=v[Q],M81(y,_.vR(x,Q,!0),_.vR(x,Q,!1));
else E(f)})};
Ugw=function(v){return new _.z2(function(E,n){var f=v.length,x=[];if(f)for(var y=function(b){E(b)},Q=function(b,l){f--;
x[b]=l;f==0&&n(x)},e,F=0;F<v.length;F++)e=v[F],M81(e,y,_.vR(Q,F));
else E(void 0)})};
_.Sw=function(){var v,E,n=new _.z2(function(f,x){v=f;E=x});
return new q8F(n,v,E)};
_.z2.prototype.then=function(v,E,n){return Jez(this,wk(typeof v==="function"?v:null),wk(typeof E==="function"?E:null),n)};
slw(_.z2);dg1=function(v,E,n,f){KZ1(v,ZIU(E||_.er,n||null,f))};
_.so=function(v,E){E=wk(E);E=ZIU(E,E);E.always=!0;KZ1(v,E);return v};
_.z2.prototype.finally=function(v){var E=this;v=wk(v);return new Promise(function(n,f){dg1(E,function(x){v();n(x)},function(x){v();
f(x)})})};
_.z2.prototype.thenCatch=function(v,E){return Jez(this,null,wk(v),E)};
_.z2.prototype.catch=_.z2.prototype.thenCatch;_.z2.prototype.cancel=function(v){if(this.state_==0){var E=new _.Hj(v);_.bg(function(){IqP(this,E)},this)}};
var IqP=function(v,E){if(v.state_==0)if(v.parent_){var n=v.parent_;if(n.callbackEntries_){for(var f=0,x=null,y=null,Q=n.callbackEntries_;Q&&(Q.always||(f++,Q.child==v&&(x=Q),!(x&&f>1)));Q=Q.next)x||(y=Q);x&&(n.state_==0&&f==1?IqP(n,E):(y?(f=y,f.next==n.callbackEntriesTail_&&(n.callbackEntriesTail_=f),f.next=f.next.next):Y8w(n),hq1(n,x,3,E)))}v.parent_=null}else v.resolve_(3,E)},KZ1=function(v,E){v.callbackEntries_||v.state_!=2&&v.state_!=3||Ael(v);
v.callbackEntriesTail_?v.callbackEntriesTail_.next=E:v.callbackEntries_=E;v.callbackEntriesTail_=E},Jez=function(v,E,n,f){var x=ZIU(null,null,null);
x.child=new _.z2(function(y,Q){x.JSC$7661_onFulfilled=E?function(e){try{var F=E.call(f,e);y(F)}catch(b){Q(b)}}:y;
x.JSC$7661_onRejected=n?function(e){try{var F=n.call(f,e);F===void 0&&e instanceof _.Hj?Q(e):y(F)}catch(b){Q(b)}}:Q});
x.child.parent_=v;KZ1(v,x);return x.child};
_.z2.prototype.unblockAndFulfill_=function(v){this.state_=0;this.resolve_(2,v)};
_.z2.prototype.unblockAndReject_=function(v){this.state_=0;this.resolve_(3,v)};
_.z2.prototype.resolve_=function(v,E){this.state_==0&&(this===E&&(v=3,E=new TypeError("Ba")),this.state_=1,C_z(E,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=E,this.state_=v,this.parent_=null,Ael(this),v!=3||E instanceof _.Hj||V8g(this,E)))};
var C_z=function(v,E,n,f){if(v instanceof _.z2)return dg1(v,E,n,f),!0;if(reg(v))return v.then(E,n,f),!0;if(_.oF(v))try{var x=v.then;if(typeof x==="function")return DgF(v,x,E,n,f),!0}catch(y){return n.call(f,y),!0}return!1},DgF=function(v,E,n,f,x){var y=!1,Q=function(F){y||(y=!0,n.call(x,F))},e=function(F){y||(y=!0,f.call(x,F))};
try{E.call(v,Q,e)}catch(F){e(F)}},Ael=function(v){v.executing_||(v.executing_=!0,_.bg(v.executeCallbacks_,v))},Y8w=function(v){var E=null;
v.callbackEntries_&&(E=v.callbackEntries_,v.callbackEntries_=E.next,E.next=null);v.callbackEntries_||(v.callbackEntriesTail_=null);return E};
_.z2.prototype.executeCallbacks_=function(){for(var v;v=Y8w(this);)hq1(this,v,this.state_,this.result_);this.executing_=!1};
hq1=function(v,E,n,f){if(n==3&&E.JSC$7661_onRejected&&!E.always)for(;v&&v.hadUnhandledRejection_;v=v.parent_)v.hadUnhandledRejection_=!1;if(E.child)E.child.parent_=null,HIg(E,n,f);else try{E.always?E.JSC$7661_onFulfilled.call(E.context):HIg(E,n,f)}catch(x){aPG.call(null,x)}aqw.put(E)};
HIg=function(v,E,n){E==2?v.JSC$7661_onFulfilled.call(v.context,n):v.JSC$7661_onRejected&&v.JSC$7661_onRejected.call(v.context,n)};
V8g=function(v,E){v.hadUnhandledRejection_=!0;_.bg(function(){v.hadUnhandledRejection_&&aPG.call(null,E)})};
aPG=o$;_.Hj=function(v){_.vI.call(this,v)};
_.tf(_.Hj,_.vI);_.Hj.prototype.name="cancel";var q8F=function(v,E,n){this.promise=v;this.resolve=E;this.reject=n};var rk;_.NO=function(v,E){_.mP.call(this);this.JSC$7673_interval_=v||1;this.timerObject_=E||_.n1;this.boundTick_=(0,_.XV)(this.tick_,this);this.last_=_.Rr()};
_.tf(_.NO,_.mP);_.c=_.NO.prototype;_.c.enabled=!1;_.c.JSC$7675_timer_=null;_.c.setInterval=function(v){this.JSC$7673_interval_=v;this.JSC$7675_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7675_timer_&&this.stop()};
_.c.tick_=function(){if(this.enabled){var v=_.Rr()-this.last_;v>0&&v<this.JSC$7673_interval_*.8?this.JSC$7675_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7673_interval_-v):(this.JSC$7675_timer_&&(this.timerObject_.clearTimeout(this.JSC$7675_timer_),this.JSC$7675_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.c.start=function(){this.enabled=!0;this.JSC$7675_timer_||(this.JSC$7675_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7673_interval_),this.last_=_.Rr())};
_.c.stop=function(){this.enabled=!1;this.JSC$7675_timer_&&(this.timerObject_.clearTimeout(this.JSC$7675_timer_),this.JSC$7675_timer_=null)};
_.c.disposeInternal=function(){_.NO.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
rk=function(v,E,n){if(typeof v==="function")n&&(v=(0,_.XV)(v,n));else if(v&&typeof v.handleEvent=="function")v=(0,_.XV)(v.handleEvent,v);else throw Error("Ca");return Number(E)>2147483647?-1:_.n1.setTimeout(v,E||0)};
_.ghU=function(v){var E=null;return(new _.z2(function(n,f){E=rk(function(){n(void 0)},v);
E==-1&&f(Error("Da"))})).thenCatch(function(n){_.n1.clearTimeout(E);
throw n;})};var vv=function(v){_.QK.call(this);this.streamzLogger=v;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7679_flushTimer=new _.NO(this.flushInterval);this.JSC$7679_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.BV(this,this.JSC$7679_flushTimer)};
_.S(vv,_.QK);vv.prototype.sendIsolatedPayload=function(v){this.shouldSendIsolatedPayload=v;this.invocationLimit=1};
var NYw=function(v){v.JSC$7679_flushTimer.enabled||v.JSC$7679_flushTimer.start();v.invocationCount++;v.invocationCount>=v.invocationLimit&&v.snapshotAndFlush()};
vv.prototype.snapshotAndFlush=function(){var v=this.metricMap.values();v=[].concat(_.s8(v)).filter(function(E){return E.cellMap.size});
v.length&&this.streamzLogger.flush(v,this.shouldSendIsolatedPayload);utw(v);this.invocationCount=0;this.JSC$7679_flushTimer.enabled&&this.JSC$7679_flushTimer.stop()};
vv.prototype.addNewCounter=function(v){var E=_.rV.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new GdU(v,E))};
vv.prototype.addNewEventMetric=function(v){var E=_.rV.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new TV1(v,E))};
var jll=function(v,E){return v.disabledMetrics.has(E)?void 0:v.metricMap.get(E)};
vv.prototype.JSC$7679_incrementCounter=function(v){this.JSC$7679_incrementCounterBy(v,1,_.rV.apply(1,arguments))};
vv.prototype.JSC$7679_incrementCounterBy=function(v,E){var n=_.rV.apply(2,arguments),f=jll(this,v);f&&f instanceof GdU&&(f.JSC$7618_incrementCounterBy(E,n),NYw(this))};
vv.prototype.record=function(v,E){var n=_.rV.apply(2,arguments),f=jll(this,v);f&&f instanceof TV1&&(f.record(E,n),NYw(this))};
var utw=function(v){for(var E=0;E<v.length;E++)v[E].clear()};_.PF=function(v,E,n){n=n===void 0?{}:n;E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=v;this.metadata=n;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.PF,Error);_.PF.prototype.toString=function(){var v="RpcError("+(xBN(this.code)||String(this.code))+")";this.message&&(v+=": "+this.message);return v};_.OIP=_.n1.JSON.parse;_.aW=_.n1.JSON.stringify;_.eK=_.n1.JSON.parse;_.k61=function(v){switch(v){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 WZ4=function(v){switch(v){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var $gF,LZS=function(){};
_.tf(LZS,_.cvN);LZS.prototype.createInstance=function(){return new XMLHttpRequest};
$gF=new LZS;_.Zr=function(v){_.mP.call(this);this.headers=new Map;this.JSC$7688_xmlHttpFactory_=v||null;this.JSC$7688_active_=!1;this.JSC$7688_xhr_=null;this.JSC$7688_lastUri_="";this.JSC$7688_lastErrorCode_=0;this.JSC$7688_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7688_timeoutId_=null;this.responseType_="";this.JSC$7688_withCredentials_=!1};
_.tf(_.Zr,_.mP);var G6w=/^https?$/i,TY6=["POST","PUT"],iIl=[],sWs=function(v,E,n,f,x,y,Q){var e=new _.Zr;iIl.push(e);E&&e.listen("complete",E);e.listenOnce("ready",e.cleanupSend_);y&&(e.timeoutInterval_=Math.max(0,y));Q&&(e.JSC$7688_withCredentials_=Q);e.send(v,n,f,x)};
_.Zr.prototype.cleanupSend_=function(){this.dispose();_.zs(iIl,this)};
_.Zr.prototype.send=function(v,E,n,f){if(this.JSC$7688_xhr_)throw Error("Ea`"+this.JSC$7688_lastUri_+"`"+v);E=E?E.toUpperCase():"GET";this.JSC$7688_lastUri_=v;this.JSC$7688_lastError_="";this.JSC$7688_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7688_active_=!0;this.JSC$7688_xhr_=this.createXhr();this.JSC$7688_xhr_.onreadystatechange=wk((0,_.XV)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7688_xhr_.open(E,String(v),!0),this.inOpen_=!1}catch(Q){zq1(this,Q);return}v=n||"";n=new Map(this.headers);
if(f)if(Object.getPrototypeOf(f)===Object.prototype)for(var x in f)n.set(x,f[x]);else if(typeof f.keys==="function"&&typeof f.get==="function"){x=_.p(f.keys());for(var y=x.next();!y.done;y=x.next())y=y.value,n.set(y,f.get(y))}else throw Error("Fa`"+String(f));f=Array.from(n.keys()).find(function(Q){return"content-type"==Q.toLowerCase()});
x=_.n1.FormData&&v instanceof _.n1.FormData;!_.L1(TY6,E)||f||x||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");E=_.p(n);for(f=E.next();!f.done;f=E.next())n=_.p(f.value),f=n.next().value,n=n.next().value,this.JSC$7688_xhr_.setRequestHeader(f,n);this.responseType_&&(this.JSC$7688_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7688_xhr_&&this.JSC$7688_xhr_.withCredentials!==this.JSC$7688_withCredentials_&&(this.JSC$7688_xhr_.withCredentials=this.JSC$7688_withCredentials_);
try{this.JSC$7688_timeoutId_&&(clearTimeout(this.JSC$7688_timeoutId_),this.JSC$7688_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7688_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7688_xhr_.send(v),this.inSend_=!1}catch(Q){zq1(this,Q)}};
_.Zr.prototype.createXhr=function(){return this.JSC$7688_xmlHttpFactory_?this.JSC$7688_xmlHttpFactory_.createInstance():$gF.createInstance()};
_.Zr.prototype.timeout_=function(){typeof VT$!="undefined"&&this.JSC$7688_xhr_&&(this.JSC$7688_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7688_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var zq1=function(v,E){v.JSC$7688_active_=!1;v.JSC$7688_xhr_&&(v.inAbort_=!0,v.JSC$7688_xhr_.abort(),v.inAbort_=!1);v.JSC$7688_lastError_=E;v.JSC$7688_lastErrorCode_=5;Rqw(v);t81(v)},Rqw=function(v){v.errorDispatched_||(v.errorDispatched_=!0,v.dispatchEvent("complete"),v.dispatchEvent("error"))};
_.Zr.prototype.abort=function(v){this.JSC$7688_xhr_&&this.JSC$7688_active_&&(this.JSC$7688_active_=!1,this.inAbort_=!0,this.JSC$7688_xhr_.abort(),this.inAbort_=!1,this.JSC$7688_lastErrorCode_=v||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),t81(this))};
_.Zr.prototype.disposeInternal=function(){this.JSC$7688_xhr_&&(this.JSC$7688_active_&&(this.JSC$7688_active_=!1,this.inAbort_=!0,this.JSC$7688_xhr_.abort(),this.inAbort_=!1),t81(this,!0));_.Zr.superClass_.disposeInternal.call(this)};
_.Zr.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)BYi(this);else this.onReadyStateChangeEntryPoint_()};
_.Zr.prototype.onReadyStateChangeEntryPoint_=function(){BYi(this)};
var BYi=function(v){if(v.JSC$7688_active_&&typeof VT$!="undefined")if(v.inSend_&&_.Cy(v)==4)setTimeout(v.onReadyStateChange_.bind(v),0);else if(v.dispatchEvent("readystatechange"),v.isComplete()){v.JSC$7688_active_=!1;try{if(v.isSuccess())v.dispatchEvent("complete"),v.dispatchEvent("success");else{v.JSC$7688_lastErrorCode_=6;try{var E=_.Cy(v)>2?v.JSC$7688_xhr_.statusText:""}catch(n){E=""}v.JSC$7688_lastError_=E+" ["+v.getStatus()+"]";Rqw(v)}}finally{t81(v)}}},t81=function(v,E){if(v.JSC$7688_xhr_){v.JSC$7688_timeoutId_&&
(clearTimeout(v.JSC$7688_timeoutId_),v.JSC$7688_timeoutId_=null);
var n=v.JSC$7688_xhr_;v.JSC$7688_xhr_=null;E||v.dispatchEvent("ready");try{n.onreadystatechange=null}catch(f){}}};
_.Zr.prototype.isActive=function(){return!!this.JSC$7688_xhr_};
_.Zr.prototype.isComplete=function(){return _.Cy(this)==4};
_.Zr.prototype.isSuccess=function(){var v=this.getStatus(),E;if(!(E=WZ4(v))){if(v=v===0)v=F9o(String(this.JSC$7688_lastUri_)),v=!G6w.test(v);E=v}return E};
_.Cy=function(v){return v.JSC$7688_xhr_?v.JSC$7688_xhr_.readyState:0};
_.c=_.Zr.prototype;_.c.getStatus=function(){try{return _.Cy(this)>2?this.JSC$7688_xhr_.status:-1}catch(v){return-1}};
_.c.getResponseText=function(){try{return this.JSC$7688_xhr_?this.JSC$7688_xhr_.responseText:""}catch(v){return""}};
_.c.getResponse=function(){try{if(!this.JSC$7688_xhr_)return null;if("response"in this.JSC$7688_xhr_)return this.JSC$7688_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7688_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7688_xhr_)return this.JSC$7688_xhr_.mozResponseArrayBuffer}return null}catch(v){return null}};
_.c.getAllResponseHeaders=function(){return this.JSC$7688_xhr_&&_.Cy(this)>=2?this.JSC$7688_xhr_.getAllResponseHeaders()||"":""};
_.c.getLastError=function(){return typeof this.JSC$7688_lastError_==="string"?this.JSC$7688_lastError_:String(this.JSC$7688_lastError_)};var PaE=function(){};
PaE.prototype.send=function(v,E,n){E=E===void 0?function(){}:E;
n=n===void 0?function(){}:n;
sWs(v.url,function(f){f=f.target;f.isSuccess()?E(f.getResponseText()):n(f.getStatus())},v.requestType,v.body,v.requestHeaders,v.timeoutMillis,v.withCredentials)};
PaE.prototype.getTransmissionType=function(){return 1};var vrg=function(v,E){this.logger=v;this.event=E;this.startTime=EV()};
vrg.prototype.done=function(){this.logger.rP(this.event,EV()-this.startTime)};
var M9=function(){Ry.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.S(M9,Ry);var SP=function(v,E,n){var f=EV();E=E();v.rP(n,EV()-f);return E},UBs=function(){M9.apply(this,arguments)};
_.S(UBs,M9);_.c=UBs.prototype;_.c.aPw=function(){};
_.c.zg=function(){};
_.c.rP=function(){};
_.c.logError=function(){};
_.c.hF=function(){};
_.c.kdI=function(){};
_.c.exJ=function(){};
_.c.i7K=function(){};
_.c.dkl=function(){};
var Er6=function(v){M9.call(this);var E=this;this.logger=v;this.TEST_ONLY={rl8:function(){return E.logger},
getExperimentIds:function(){return E.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void E.logger.dispose()})};
_.S(Er6,M9);_.c=Er6.prototype;_.c.update=function(v){this.logger.dispose();this.logger=v};
_.c.zg=function(v){this.logger.zg(v)};
_.c.rP=function(v,E){this.logger.rP(v,E)};
_.c.logError=function(v){this.logger.logError(v)};
_.c.hF=function(){this.logger.hF()};
_.c.kdI=function(v){this.logger.kdI(v)};
_.c.exJ=function(v){this.logger.exJ(v)};
_.c.i7K=function(v){this.logger.i7K(v)};
_.c.dkl=function(v){this.logger.dkl(v)};
_.c.aPw=function(v){this.logger.aPw(v)};
var nrF=function(v,E){_.QK.call(this);var n=this;this.callback=v;this.vfx=E;this.gS5=-E;this.addOnDisposeCallback(function(){return void clearTimeout(n.timer)})};
_.S(nrF,_.QK);var or1=function(v){if(v.timer===void 0){var E=Math.max(0,v.gS5+v.vfx-EV());v.timer=setTimeout(function(){try{v.callback()}finally{v.gS5=EV(),v.timer=void 0}},E)}},fJo=function(v,E){M9.call(this);
this.metrics=v;this.d0=E};
_.S(fJo,M9);_.c=fJo.prototype;_.c.aPw=function(v){this.metrics.n8B.record(v,this.d0)};
_.c.zg=function(v){this.metrics.eventCount.increment(v,this.d0)};
_.c.rP=function(v,E){this.metrics.rdn.record(E,v,this.d0)};
_.c.logError=function(v){this.metrics.errorCount.increment(v,this.d0)};
_.c.kdI=function(v){this.metrics.hHI.increment(v,this.d0)};
_.c.exJ=function(v){this.metrics.qFG.increment(v,this.d0)};
_.c.i7K=function(v){this.metrics.eHa.increment(v,this.d0)};
var qBG=function(v,E){E=E===void 0?[]:E;var n={d0:v.d0||"_",eHp:v.eHp||[],hxK:v.hxK|0,destinationUrl:v.destinationUrl,aQX:v.aQX||function(){},
pbM:v.pbM||function(y,Q){return SBX(y,Q,n.aQX,n.destinationUrl)}},f=n.pbM("49",n.eHp.concat(E));
fJo.call(this,bpy(f),n.d0);var x=this;this.TEST_ONLY={getExperimentIds:function(){return x.options.eHp.concat(x.cbY).sort(function(y,Q){return y-Q})}};
this.options=n;this.service=f;this.cUO=!v.pbM;this.flushDebouncer=new nrF(function(){return void x.service.snapshotAndFlush()},n.hxK);
this.addOnDisposeCallback(function(){x.flushDebouncer.dispose();x.cUO&&x.service.dispose()});
(this.cbY=E.slice()).sort(_.X1)};
_.S(qBG,fJo);qBG.prototype.dkl=function(v){var E=this;v=v.slice();v.sort(_.X1);_.F1(v,this.cbY)||(this.flushDebouncer.dispose(),this.cUO&&this.service.dispose(),this.service=this.options.pbM("49",this.options.eHp.concat(v)),this.flushDebouncer=new nrF(function(){return void E.service.snapshotAndFlush()},this.options.hxK),this.metrics=bpy(this.service),this.cbY=v)};
qBG.prototype.hF=function(){or1(this.flushDebouncer)};var p9E=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(p9E,_.Vj);_.QvG=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(_.QvG,_.Vj);var jh=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,0,jh.messageId)};
_.S(jh,_.Vj);var x0F=_.EbX(jh);jh.messageId="bfkj";var kcN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kcN,_.Vj);var cJU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cJU,_.Vj);var yJg=_.RK(cJU);_.Wy=function(){var v=this;this.promise=new Promise(function(E,n){v.resolve=E;v.reject=n})};_.Uo=function(v){_.QK.call(this);var E=this;this.n4l=Math.floor(Math.random()*200);this.cQp=new cJU;if("challenge"in v&&x0F(v.challenge)){var n=_.Sf(v.challenge,4,void 0,kw);var f=_.Sf(v.challenge,5,void 0,kw);_.Sf(v.challenge,7,void 0,kw)&&(this.cQp=yJg(_.Sf(v.challenge,7,void 0,kw)))}else n=v.program,f=v.globalName;this.addOnDisposeCallback(function(){var U,d,Y;return _.X(function(V){if(V.nextAddress==1)return _.m(V,E.gbI,2);U=V.yieldResult;d=U.is0;(Y=d)==null||Y();_.yQ(V)})});
this.logger=$BG(v.n0||{},this.cQp,v.lJ8);_.BV(this,this.logger);var x=new _.Wy;this.gbI=x.promise;this.logger.zg("t");var y=this.logger.share(),Q=new vrg(y,"t"),e=function(U,d,Y,V){if(!E.logger.isDisposed()){var O="k";d?O="h":Y&&(O="u");O!=="k"?V!==0&&(E.logger.zg(O),E.logger.rP(O,U)):E.n4l<=0?(E.logger.zg(O),E.logger.rP(O,U),E.n4l=Math.floor(Math.random()*200)):E.n4l--}},F=function(U,d,Y,V){Promise.resolve().then(function(){Q.done();
y.hF();y.dispose();x.resolve({sEb:U,is0:d,o48:Y,e3n:V})})};
if(!_.n1[f])throw this.logger.logError(25),Error("Ga");if(!_.n1[f].a)throw this.logger.logError(26),Error("Ha");try{var b=_.n1[f].a;f=[];for(var l=[],r=Wzs(this.cQp),a=0;a<r.length;a++)f.push(r[a]),l.push(1);var M=$E1(this.cQp);for(r=0;r<M.length;r++)f.push(M[r]),l.push(2);this.oCB=_.p(b(n,F,!0,v.wyi,e,[f,l],_.Sf(this.cQp,5))).next().value;this.dGl=x.promise.then(function(){})}catch(U){throw this.logger.logError(28),U;
}};
_.S(_.Uo,_.QK);_.Uo.prototype.snapshot=function(v){if(this.isDisposed())throw Error("Ia");this.logger.zg("n");var E=this.logger.share();return this.gbI.then(function(n){var f=n.sEb;return new Promise(function(x){var y=new vrg(E,"n");f(function(Q){y.done();E.aPw(Q.length);E.hF();E.dispose();x(Q)},[v.wO,
v.amu,v.k4u,v.fJw])})})};
_.pV4=function(v,E){if(v.isDisposed())throw Error("Ia");v.logger.zg("n");var n=SP(v.logger,function(){return v.oCB([E.wO,E.amu,E.k4u,E.fJw])},"n");
v.logger.aPw(n.length);v.logger.hF();return n};
_.Uo.prototype.kTL=function(v){this.gbI.then(function(E){var n;(n=E.o48)==null||n(v)})};
_.Uo.prototype.dBp=function(v,E){return this.gbI.then(function(n){var f;return(f=n.e3n)==null?void 0:f(v,E,!1)})};
_.Uo.prototype.t6K=function(){return this.logger.share()};var Qiw=function(){this.ha5={};this.sva=null},XVz=function(){Qiw.instance||(Qiw.instance=new Qiw);
return Qiw.instance},FlX=function(v,E){return epU(v,_.j5(E,p9E,1,kw),_.j5(E,_.QvG,2,kw),_.Sf(E,3,void 0,kw))},epU=function(v,E,n,f){if(!E&&!n)return Promise.resolve();
if(!f)return ipL(E,n);var x;(x=v.ha5)[f]||(x[f]=new Promise(function(y,Q){ipL(E,n).then(function(){v.sva=f;y()},function(e){delete v.ha5[f];
Q(e)})}));
return v.ha5[f]};var m04=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(m04,_.Vj);var wVU=function(v,E){return _.O_(v,1,E)},bsl=function(v,E){return _.O_(v,2,E)};var q9=function(v){_.QK.call(this);var E=this;this.options=v;this.dNp=new _.Wy;this.dGl=this.dNp.promise;this.ktI=new _.Wy;this.iKw=1;this.urR=new _.Wy;this.cmL=[];this.bh9=v.bh9||function(){};
this.logger=new Er6($BG(v.n0||{}));lJw(this,v.xF,v.yHn,v.bCb,v.qzP,Object.assign({},si1,v.dFR||{}));this.addOnDisposeCallback(function(){return void rJS(E)})};
_.S(q9,_.QK);q9.prototype.snapshot=function(v){var E=this;return _.X(function(n){switch(n.nextAddress){case 1:if(E.isDisposed())throw Error("Ia");if(E.gP||E.pU5){n.jumpTo(2);break}return _.m(n,E.ktI.promise,2);case 2:if(!E.gP){n.jumpTo(4);break}return _.m(n,E.gP.snapshot(v),5);case 5:return n.return(n.yieldResult);case 4:throw E.pU5;}})};
var PU6=function(v){var E;return _.X(function(n){if(v.isDisposed())throw Error("Ia");(E=v.a9)!=null&&(E.endTimeMs=0,E.resolver(1));return _.m(n,v.urR.promise,0)})},rJS=function(v){v.pU5=Error("Ka");
v.ktI.resolve();LzF(v.dNp.promise);v.dNp.reject(Error("Ka"));v.logger.dispose();Promise.all(v.cmL).then(function(){var n;return _.X(function(f){(n=v.gP)==null||n.dispose();v.gP=void 0;_.yQ(f)})});
v.cmL=[];var E;(E=v.a9)!=null&&(E.endTimeMs=0,E.resolver(1));LzF(v.urR.promise);v.urR.reject(Error("Ka"))};
q9.prototype.kTL=function(v){var E,n;(E=this.gP)==null||(n=E.kTL)==null||n.call(E,v)};
q9.prototype.dBp=function(v,E){var n,f,x;return(x=(n=this.gP)==null?void 0:(f=n.dBp)==null?void 0:f.call(n,v,E))!=null?x:Promise.resolve()};
var aJ1=function(v,E){var n=v.bh9;v.bh9=function(){n();E()}},Zs1=function(v,E){v.isDisposed()||(v.gP=E,v.logger.update(E.t6K()),v.ktI.resolve(),v.dNp.resolve(void 0),v.bh9())};
q9.prototype.handleError=function(v){if(!this.isDisposed()){this.pU5=v;this.ktI.resolve();var E,n;(n=(E=this.options).tto)==null||n.call(E,v)}};
var CUw=function(v,E){E&&(Promise.all(v.cmL).then(function(){return void E.dispose()}),v.cmL=[])},J_=function(v,E){v.iKw=E;
var n,f;(f=(n=v.options).nRs)==null||f.call(n,E)},MsF=function(v){v.isDisposed()||(v.urR.resolve(),v.urR=new _.Wy)},lJw=function(v,E,n,f,x,y){f=f===void 0?XVz():f;
x=x===void 0?Promise.resolve(void 0):x;var Q,e,F,b,l,r,a,M,U,d,Y,V;_.X(function(O){switch(O.nextAddress){case 1:return _.m(O,0,3);case 3:e=null;if(!Q){O.jumpTo(6);break}J_(v,7);_.vW(O,7);return _.m(O,cv(Q.snapshot({}),y.g6m,function(){return Promise.resolve("E:CTO")}),9);
case 9:e=O.yieldResult;_.qp(O,6);break;case 7:_.cW(O),e="E:UCE";case 6:F=void 0,b=Q?y.xEo:y.vY7,l=new z7(b,y.fG8,y.g3m,y.zx8),r=1;case 10:if(!(r<=y.maxAttempts)){O.jumpTo(12);break}if(r===1){O.jumpTo(13);break}J_(v,0);v.a9=new Sho(l.getValue(),y.aIb,y.xb7);return _.m(O,v.a9.promise,14);case 14:a=O.yieldResult,v.a9=void 0,a===1?(r=1,l.reset()):Da1(l);case 13:_.vW(O,15);M=void 0;if(n){M=n;O.jumpTo(17);break}J_(v,5);U=f.sva;return _.m(O,cv(U0U(E,U,e),y.fQi,function(){return Promise.reject(Error("La"))}),
18);
case 18:M=O.yieldResult;case 17:return J_(v,3),_.m(O,cv(FlX(f,M),y.bQG,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return J_(v,8),_.m(O,x,20);case 20:return d=new _.Uo({challenge:M,n0:v.options.n0,wyi:v.options.wyi}),_.m(O,cv(d.dGl,y.cOd,function(){return Promise.reject(Error("Na"))}),21);
case 21:F=d;O.jumpTo(12);break;case 15:Y=_.cW(O),v.handleError(Y),MsF(v);case 11:r++;O.jumpTo(10);break;case 12:if(v.isDisposed()){O.jumpTo(5);break}F&&(n=void 0,CUw(v,Q),Q=F,Zs1(v,F),MsF(v));J_(v,2);v.a9=new Sho(y.nXx,y.aIb,y.xb7);return _.m(O,v.a9.promise,22);case 22:v.a9=void 0;if(v.isDisposed()){O.jumpTo(5);break}O.jumpTo(3);break;case 5:(V=Q)==null||V.dispose(),_.yQ(O)}})};
q9.prototype.t6K=function(){return this.logger.share()};
var si1={nXx:432E5,aIb:3E5,xb7:10,g6m:1E4,fQi:3E4,bQG:3E4,cOd:6E4,vY7:1E3,xEo:6E4,fG8:6E5,g3m:.25,zx8:2,maxAttempts:10},Sho=function(v,E,n){var f=this;this.endTimeMs=Date.now()+v;this.promise=new Promise(function(y){f.resolver=y});
var x=function(){var y=f.endTimeMs-Date.now();y<=n?f.resolver(0):setTimeout(x,Math.min(y,E))};
x()};var qhg,ta$=(qhg=Math.imul)!=null?qhg:function(v,E){return v*E|0},yK=[196,
200,224,18],Ky=function(v,E,n){n=n===void 0?[]:n;this.maxItems=v;this.ho=E===void 0?0:E;this.vN=n},JJz=function(v){var E=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!E)return new Ky(v);var n=E.split(",");if(n.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ky(v);E=n.slice(1);E.length===1&&E[0]===""&&(E=[]);n=Number(n[0]);return isNaN(n)||n<0||n>E.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ky(v)):new Ky(v,n,E)};
Ky.prototype.serialize=function(){return String(this.ho)+","+this.vN.join()};
Ky.prototype.insert=function(v,E){var n=void 0;if(this.vN[this.ho]!==v){var f=this.vN.indexOf(v);f!==-1?(this.vN.splice(f,1),f<this.ho&&this.ho--,this.vN.splice(this.ho,0,v)):(n=this.vN[this.ho],this.vN[this.ho]=v)}this.ho=(this.ho+1)%this.maxItems;v=zCQ("iU5q-!O9@$",this.serialize());n&&v&&E(n);return v};
var Kl6=function(v,E){this.logger=E;try{var n=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){n=!1}n&&(this.index=JJz(v))},d0S=function(v,E,n,f,x){var y=v.index?SP(v.logger,function(){return n6N(v.index,v6X(E),n,f,x)},"W"):"u";
v.logger.i7K(y)},IJo=function(v,E,n){var f=_.p(v.index?SP(v.logger,function(){return o6Q(v6X(E),n)},"R"):["u"]),x=f.next().value;
f=f.next().value;v.logger.exJ(x);return f};var Yhi={toString:function(v){var E=[],n=0;v-=-2147483648;E[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(v%52);for(v=Math.floor(v/52);v>0;)E[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(v%62),v=Math.floor(v/62);return E.join("")}};var VsF=function(v){v=hpg(v);for(var E=2654435769,n=2654435769,f=314159265,x=v.length,y=x,Q=0,e=function(){E-=n;E-=f;E^=f>>>13;n-=f;n-=E;n^=E<<8;f-=E;f-=n;f^=n>>>13;E-=n;E-=f;E^=f>>>12;n-=f;n-=E;n^=E<<16;f-=E;f-=n;f^=n>>>5;E-=n;E-=f;E^=f>>>3;n-=f;n-=E;n^=E<<10;f-=E;f-=n;f^=n>>>15};y>=12;y-=12,Q+=12)E+=AJ6(v,Q),n+=AJ6(v,Q+4),f+=AJ6(v,Q+8),e();
f+=x;switch(y){case 11:f+=v[Q+10]<<24;case 10:f+=v[Q+9]<<16;case 9:f+=v[Q+8]<<8;case 8:n+=v[Q+7]<<24;case 7:n+=v[Q+6]<<16;case 6:n+=v[Q+5]<<8;case 5:n+=v[Q+4];case 4:E+=v[Q+3]<<24;case 3:E+=v[Q+2]<<16;case 2:E+=v[Q+1]<<8;case 1:E+=v[Q]}e();return Yhi.toString(f)},hpg=function(v){for(var E=[],n=0;n<v.length;n++)E.push(v.charCodeAt(n));
return E},AJ6=function(v,E){return v[E]+(v[E+1]<<8)+(v[E+2]<<16)+(v[E+3]<<24)};var D01,dk=function(v){_.QK.call(this);this.logger=v;this.kpW=new _.Wy;this[D01]=this.dispose};
_.S(dk,_.QK);var Hs1=function(v,E){var n=setTimeout(function(){v.kpW.resolve()},E);
v.addOnDisposeCallback(function(){return void clearTimeout(n)})};
dk.prototype.zV=function(v,E){var n=this.pI(v);E==null||E(n);return SP(this.logger,function(){return _.z3(n,2)},this.f7J)};
var grF=function(v,E,n,f){return SP(v.logger,function(){return n?v.zV(E,f):v.pI(E,f)},v.xz)};
D01=Symbol.dispose;var NAw=function(v,E,n,f){dk.call(this,v);this.j9l=E;this.t8i=n;this.xz="m";this.f7J="x";this.mHO=0;Hs1(this,f)};
_.S(NAw,dk);NAw.prototype.pI=function(v,E){var n=this;this.logger.zg(this.xz);++this.mHO>=this.t8i&&this.kpW.resolve();var f=v();v=SP(this.logger,function(){return n.j9l(f)},"C");
if(v===void 0)throw new iy(17,"YNJ:Undefined");if(!(v instanceof Uint8Array))throw new iy(18,"ODM:Invalid");E==null||E(v);return v};
var ub6=function(v,E,n){dk.call(this,v);this.zil=E;this.xz="f";this.f7J="z";Hs1(this,n)};
_.S(ub6,dk);ub6.prototype.pI=function(){return this.zil};
var jio=function(v,E,n){dk.call(this,v);this.uNy=E;this.xz="w";this.f7J="z";Hs1(this,n)};
_.S(jio,dk);jio.prototype.pI=function(){var v=this;return SP(this.logger,function(){return _.w1(v.uNy)},"d")};
jio.prototype.zV=function(){return this.uNy};
var Os6=function(v,E){dk.call(this,v);this.error=E;this.xz="e";this.f7J="y"};
_.S(Os6,dk);var k71=function(v,E){var n=(E(v.error.message)+":"+E(v.error.stack)).substring(0,2048);E=n.length+1;n=fUs(n);var f=new Uint8Array(4+n.length);f.set([42,E&127|128,E>>7,v.error.code]);f.set(n,4);return f};
Os6.prototype.pI=function(){if(this.orL)return this.orL;this.orL=k71(this,function(v){return"_"+VsF(v)});
return k71(this,function(v){return v})};
var Wll=function(v,E,n){dk.call(this,v);this.boi=E;this.clientState=n;this.xz="S";this.f7J="q"};
_.S(Wll,dk);Wll.prototype.pI=function(){var v=Math.floor(Date.now()/1E3),E=[Math.random()*255,Math.random()*255],n=E.concat([this.boi&255,this.clientState],[v>>24&255,v>>16&255,v>>8&255,v&255]);v=new Uint8Array(2+n.length);v[0]=34;v[1]=n.length;v.set(n,2);n=v.subarray(2);for(var f=E=E.length;f<n.length;++f)n[f]^=n[f%E];this.logger.kdI(this.clientState);return v};var $0S={jqb:3E4,wU9:2E4},IW=function(v){_.QK.call(this);var E=this;this.uql=new _.Wy;this.q8K=0;this.vz=void 0;this.state=2;this.vY=v.vY;this.xF=v.xF;this.dFR=Object.assign({},$0S,v.dFR||{});this.logger=v.vY.t6K();var n;this.onError=(n=v.onError)!=null?n:function(){};
this.aow=v.aow||!1;if(Llw(v)){var f=this.vY;this.t6x=function(){return PU6(f).catch(function(Q){Q=E.reportError(new iy(E.gG?20:32,"TRG:Disposed",Q));E.vz=Q;var e;(e=E.gG)==null||e.dispose();E.gG=void 0;E.uql.reject(Q)})};
aJ1(f,function(){return void G7o(E)});
f.iKw===2&&G7o(this)}else this.t6x=v.ap4,G7o(this);var x=this.logger.share();x.zg("o");var y=new vrg(x,"o");this.uql.promise.then(function(){y.done();x.hF();x.dispose()},function(){return void x.dispose()});
this.addOnDisposeCallback(function(){E.gG?(E.gG.dispose(),E.gG=void 0):E.vz?E.logger.hF():(E.vz=E.reportError(new iy(32,"TNP:Disposed")),E.logger.hF(),E.uql.reject(E.vz))});
_.BV(this,this.logger)};
_.S(IW,_.QK);IW.prototype.e7L=function(){return this.uql.promise};
var TAz=function(v,E){if(!(E instanceof iy))if(E instanceof _.PF){var n=Error(E.toString());n.stack=E.stack;E=new iy(11,"EBH:Error",n)}else E=new iy(12,"BSO:Unknown",E);return v.reportError(E)},G7o=function(v){var E,n,f,x,y,Q,e,F,b,l,r,a,M,U,d;
return _.X(function(Y){switch(Y.nextAddress){case 1:E=void 0;v.q8K++;n=new _.Wy;v.vY instanceof q9&&v.vY.cmL.push(n.promise);if(!v.aow){Y.jumpTo(2);break}f=new _.Wy;setTimeout(function(){return void f.resolve()});
return _.m(Y,f.promise,2);case 2:return x=v.logger.share(),_.vW(Y,4,5),v.state=5,y={},Q=[],_.m(Y,cv(v.vY.snapshot({wO:y,k4u:Q}),v.dFR.wU9,function(){return Promise.reject(new iy(15,"MDA:Timeout"))}),7);
case 7:e=Y.yieldResult;if(v.isDisposed())throw new iy(v.gG?20:32,"MDA:Disposed");F=Q[0];v.state=6;return _.m(Y,cv(isU(v.xF,e),v.dFR.jqb,function(){return Promise.reject(new iy(10,"BWB:Timeout"))}),8);
case 8:b=Y.yieldResult;if(v.isDisposed())throw new iy(v.gG?20:32,"BWB:Disposed");v.state=7;E=SP(x,function(){var O=zp6(v,b,n,F);O.kpW.promise.then(function(){return void v.t6x()});
return O},"i");
case 5:_.nI(Y);x.dispose();_.xh(Y,6);break;case 4:l=_.cW(Y);(r=E)==null||r.dispose();if(!v.vz){a=TAz(v,l);n.resolve();var V;if(V=v.vY instanceof q9&&v.q8K<2)a:if(l instanceof iy)V=l.code!==32&&l.code!==20&&l.code!==10;else{if(l instanceof _.PF)switch(l.code){case 2:case 13:case 14:case 4:break;default:V=!1;break a}V=!0}if(V)return M=(1+Math.random()*.25)*(v.gG?6E4:1E3),U=setTimeout(function(){return void v.t6x()},M),v.addOnDisposeCallback(function(){return void clearTimeout(U)}),Y.return();
v.vz=a}x.logError(v.gG?13:14);v.uql.reject(v.vz);return Y.return();case 6:v.state=8,v.q8K=0,(d=v.gG)==null||d.dispose(),v.gG=E,v.uql.resolve(),_.yQ(Y)}})},zp6=function(v,E,n,f){var x=Rj9(E,2)*1E3;
if(x<=0)throw new iy(31,"TTM:Invalid");if(_.Sf(E,4))return new jio(v.logger,_.Sf(E,4),x);if(!Rj9(E,3))return new ub6(v.logger,Ars(_.wO(E,1)),x);if(!f)throw new iy(4,"PMD:Undefined");f=f(Ars(_.wO(E,1)));if(!(f instanceof Function))throw new iy(16,"APF:Failed");v.c88=Math.floor((Date.now()+x)/1E3);v=new NAw(v.logger,f,Rj9(E,3),x);v.addOnDisposeCallback(function(){return void n.resolve()});
return v};
IW.prototype.pI=function(v){return Rpo(this,Object.assign({},v),!1)};
IW.prototype.zV=function(v){return Rpo(this,Object.assign({},v),!0)};
IW.prototype.krY=function(v){if(v>150)return!1;try{return this.cache=new Kl6(v,this.logger),!0}catch(E){return this.reportError(new iy(22,"GBJ:init",E)),!1}};
IW.prototype.reportError=function(v){this.logger.logError(v.code);this.onError(v);return v};
var ts4=function(v,E){E=E instanceof iy?E:new iy(5,"TVD:error",E);return v.reportError(E)},Rpo=function(v,E,n){try{if(v.isDisposed())throw new iy(21,"BNT:disposed");
if(!v.gG&&v.vz)throw v.vz;var f,x;return(x=(f=BAo(v,E,n))!=null?f:vE1(v,E,n))!=null?x:EEU(v,E,n)}catch(y){if(!E.fWd)throw ts4(v,y);return nE1(v,n,y)}},BAo=function(v,E,n){var f;
return(f=v.gG)==null?void 0:grF(f,function(){return oE6(v,E)},n,function(x){var y;
if(v.gG instanceof NAw&&((y=E.tT)==null?0:y.cOo))try{var Q;(Q=v.cache)==null||d0S(Q,oE6(v,E),x,E.tT.dTJ,v.c88-120)}catch(e){v.reportError(new iy(24,"ELX:write",e))}})},vE1=function(v,E,n){var f;
if((f=E.tT)!=null&&f.mv5)try{var x,y=(x=v.cache)==null?void 0:IJo(x,oE6(v,E),E.tT.dTJ);return y?n?SP(v.logger,function(){return _.z3(y,2)},"a"):y:void 0}catch(Q){v.reportError(new iy(23,"RXO:read",Q))}},EEU=function(v,E,n){var f={stack:[],
error:void 0,hasError:!1};try{if(!E.vCH)throw new iy(29,"SDF:notready");return grF(Krs(f,new Wll(v.logger,0,v.state)),function(){return oE6(v,E)},n)}catch(x){f.error=x,f.hasError=!0}finally{hPE(f)}},nE1=function(v,E,n){var f={stack:[],
error:void 0,hasError:!1};try{var x=ts4(v,n);return grF(Krs(f,new Os6(v.logger,x)),function(){return[]},E)}catch(y){f.error=y,f.hasError=!0}finally{hPE(f)}},oE6=function(v,E){return E.vsR?E.vsR:E.wO?SP(v.logger,function(){return E.vsR=fUs(E.wO)},"c"):[]},Llw=function(v){return GS(function(E){if(!FxA(E))return!1;
for(var n=_.p(Object.entries(v)),f=n.next();!f.done;f=n.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;if(!(f in E)){if(x.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!x(E[f]))return!1}return!0})}({vY:function(v){return GS(function(E){return E instanceof v})}(q9)},"");var fBo=function(){var v=_.ux();this.JSC$7803_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Ls("cookie_enabled"),Ls("cookie_3p_enabled"),_.T7("browser"))};
fBo.prototype.increment=function(v,E,n){this.JSC$7803_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",v,E,n)};
var qqI=function(){var v=_.ux();this.JSC$7827_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",G7("tick"),Ls("from_st_cookie"))};
qqI.prototype.increment=function(v,E){this.JSC$7827_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",v,E)};
var xE1=function(){var v=_.ux();this.JSC$7833_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.T7("status"))};
xE1.prototype.increment=function(v){this.JSC$7833_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",v)};
var c71=function(){var v=_.ux();this.JSC$7836_streamzService=v;v.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.T7("stage"),Ls("is_using_ytd_player"),Ls("has_expandable_tiles"))};
c71.prototype.increment=function(v,E,n){this.JSC$7836_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",v,E,n)};
var y76=function(){var v=_.ux();this.JSC$7839_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/response_signature",_.T7("check_status"))};
y76.prototype.increment=function(v){this.JSC$7839_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web/response_signature",v)};
var pvi=function(){var v=_.ux();this.JSC$7842_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.T7("sig"),G7("de"))};
pvi.prototype.increment=function(v,E){this.JSC$7842_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web/e_sig_log",v,E)};
var QcS=function(){var v=_.ux();this.JSC$7845_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.T7("sig"),G7("de"))};
QcS.prototype.increment=function(v,E){this.JSC$7845_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web/e_sig_en",v,E)};
_.Xv4=function(){var v=_.ux();this.JSC$7848_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.T7("action"))};
_.Xv4.prototype.increment=function(v){this.JSC$7848_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web/enforcement_intent",v)};var oxN=function(){var v=_.ux();this.JSC$7851_streamzService=v;v.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.T7("tagname"))};
oxN.prototype.increment=function(v){this.JSC$7851_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",v)};var Y2=window;var etw=(new Date).getTime();var Fz1=function(v){this.servicePromise_=v;v.then((0,_.XV)(function(){},this),function(){},this)},mE1=function(v,E,n){v.servicePromise_.then(function(f){var x=f[E];
if(!x)throw Error("Oa`"+E);return x.apply(f,n)})},lB1=function(v,E,n){for(var f=Array(arguments.length-2),x=2;x<arguments.length;x++)f[x-2]=arguments[x];
x=wv1(v,E).then(function(y){return y.apply(null,f)},function(y){y=Error("Pa`"+E+"`"+v,{cause:y});
delete bT1[E];return _.nR(y)});
return new Fz1(x)},bT1={},wv1=function(v,E){var n=bT1[E];
if(n)return n;n=(n=_.JM(E))?_.Gn(n):(new _.z2(function(f,x){var y=(new ly(document)).createElement("SCRIPT");y.async=!0;_.Vv(y,_.xR(rR6(v)));y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||f()};
y.onerror=function(Q){x(Error("Qa`"+E+"`"+v,{cause:Q}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(y)})).then(function(){var f=_.JM(E);
if(!f)throw Error("Ra`"+E+"`"+v);return f});
return bT1[E]=n};var scP={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},PYo=function(){var v=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=xX$(function(){return _.X(function(E){if(E.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?E.return(Promise.resolve()):_.m(E,r71(v),2);v.rsaForList.length>
0&&document.addEventListener("click",v.requestAccessForHelpPanel);_.yQ(E)})});
this.requestAccessForHelpPanel=function(){if(!(v.rsaForPromises.length>0)){for(var E=_.p(v.rsaForList),n=E.next();!n.done;n=E.next()){n=n.value;try{v.rsaForPromises.push(document.requestStorageAccessFor(n))}catch(f){}}Promise.all(v.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){v.reset()})}}};
PYo.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var r71=function(v){var E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:E=_.p(Object.values(scP)),n=E.next();case 2:if(n.done){y.jumpTo(0);break}f=n.value;_.vW(y,5);return _.m(y,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:f}),7);case 7:x=y.yieldResult;x.state!=="granted"&&v.rsaForList.push(f);_.qp(y,3);break;case 5:_.cW(y);y.jumpTo(0);break;case 3:n=E.next(),y.jumpTo(2)}})};(new PYo).initialize();var aBg=function(v){this.JSC$7865_loader_=v};
aBg.prototype.startHelp=function(v){mE1(this.JSC$7865_loader_,"startHelp",arguments)};
aBg.prototype.JSC$7867_loadChatSupport=function(v){mE1(this.JSC$7865_loader_,"loadChatSupport",arguments)};
var CY6=function(v,E){E=E||{};v=lB1(ZTo,"help.service.Lazy.create",v,{apiKey:E.apiKey||E.apiKey,asxUiUri:E.asxUiUri||E.asxUiUri,environment:E.environment||E.environment,flow:E.flow||E.flow,frdProductData:E.frdProductData||E.frdProductData,frdProductDataSerializedJspb:E.frdProductDataSerializedJspb||E.frdProductDataSerializedJspb,helpCenterPath:E.helpCenterPath||E.helpCenterPath,locale:E.locale||E.locale||"en-US".replace(/-/g,"_"),nonce:E.nonce||E.nonce,productData:E.productData||E.productData,receiverUri:E.receiverUri||
E.receiverUri,renderApiUri:E.renderApiUri||E.renderApiUri,theme:E.theme||E.theme,window:E.window||E.window});return new aBg(v)},ZTo=new rt(AZI,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var MCS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(MCS,_.Vj);var SVz=_.RK(MCS);new Uint8Array([]);_.UE1=new function(v,E,n,f){this.configType=v;this.flagName=n;this.defaultValue=f;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 J7i=function(){this.retriever=_.P().resolve(qVU)};yMX(Node);yMX(Element);var KzF=yMX(HTMLElement);yMX(SVGElement);var dEw,IBi,Vu,YVg;dEw=function(v){return typeof v.className=="string"?v.className:v.getAttribute&&v.getAttribute("class")||""};
IBi=function(v){return v.classList?v.classList:dEw(v).match(/\S+/g)||[]};
_.h_=function(v,E){typeof v.className=="string"?v.className=E:v.setAttribute&&v.setAttribute("class",E)};
_.A_=function(v,E){return v.classList?v.classList.contains(E):_.L1(IBi(v),E)};
_.qd=function(v,E){if(v.classList)v.classList.add(E);else if(!_.A_(v,E)){var n=dEw(v);_.h_(v,n+(n.length>0?" "+E:E))}};
Vu=function(v,E){if(v.classList)Array.prototype.forEach.call(E,function(x){_.qd(v,x)});
else{var n={};Array.prototype.forEach.call(IBi(v),function(x){n[x]=!0});
Array.prototype.forEach.call(E,function(x){n[x]=!0});
E="";for(var f in n)E+=E.length>0?" "+f:f;_.h_(v,E)}};
_.Sg=function(v,E){v.classList?v.classList.remove(E):_.A_(v,E)&&_.h_(v,Array.prototype.filter.call(IBi(v),function(n){return n!=E}).join(" "))};
YVg=function(v,E){v.classList?Array.prototype.forEach.call(E,function(n){_.Sg(v,n)}):_.h_(v,Array.prototype.filter.call(IBi(v),function(n){return!_.L1(E,n)}).join(" "))};var ht6=function(v){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=v.document},DEX=function(v,E){A7X(v);
var n=document.createElement("div"),f;(f=E.parentNode)==null||f.insertBefore(n,E);n.tabIndex=0;n.id="fc-focus-trap-pre-div";n=document.createElement("div");var x;(x=E.parentNode)==null||x.insertBefore(n,E.nextSibling);n.tabIndex=0;n.id="fc-focus-trap-post-div";var y=VCw(v,E),Q=VCw(v,E,!0);y&&Q&&(v.focusChangeHandler=function(){var e=v.document.activeElement;if(e)if(_.ME(E,e))v.previouslyFocusedElement=e;else if(e===v.document.activeElement)switch(v.previouslyFocusedElement){case y:Q.focus();v.previouslyFocusedElement=
Q;break;default:y.focus(),v.previouslyFocusedElement=y}},v.document.addEventListener("focus",v.focusChangeHandler,!0),v.document.addEventListener("focusin",v.focusChangeHandler))},A7X=function(v){v.focusChangeHandler&&(document.removeEventListener("focus",v.focusChangeHandler,!0),document.removeEventListener("focusin",v.focusChangeHandler),v.focusChangeHandler=null);
var E;(E=document.getElementById("fc-focus-trap-pre-div"))==null||E.remove();var n;(n=document.getElementById("fc-focus-trap-post-div"))==null||n.remove()},HTU=function(v,E,n,f,x){n=n===void 0?!0:n;
var y;x=(y=x===void 0?null:x)!=null?y:VCw(v,E,f===void 0?!1:f);x!==null&&(x.focus(),n&&DEX(v,E))};
ht6.prototype.disableButton=function(v,E){E=E===void 0?null:E;v.disabled=!0;E&&_.qd(v,E)};
var VCw=function(v,E,n){n=n===void 0?!1:n;if(tkA(E)&&!n)return E;var f=n?[].slice.call(E.children,0).reverse():E.children;f=_.p(f);for(var x=f.next();!x.done;x=f.next())if(x=x.value,KzF(x)&&(x=VCw(v,x,n)))return x;return tkA(E)&&n?E:null};var gE1=function(v){this.originalBodyOverflow="";this.JSC$7893_domHelper=y4(v)};_.tf(_.eC,_.QK);_.c=_.eC.prototype;_.c.JSC$7896_id_=0;_.c.disposeInternal=function(){_.eC.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7894_listener_;delete this.handler_};
_.c.start=function(v){this.stop();this.JSC$7896_id_=rk(this.callback_,v!==void 0?v:this.JSC$7894_interval_)};
_.c.stop=function(){this.isActive()&&_.n1.clearTimeout(this.JSC$7896_id_);this.JSC$7896_id_=0};
_.c.fire=function(){this.stop();this.JSC$7896_doAction_()};
_.c.isActive=function(){return this.JSC$7896_id_!=0};
_.c.JSC$7896_doAction_=function(){this.JSC$7896_id_=0;this.JSC$7894_listener_&&this.JSC$7894_listener_.call(this.handler_)};_.u$=function(v){_.QK.call(this);this.handler_=v;this.JSC$7897_keys_={}};
_.tf(_.u$,_.QK);var NCl=[];_.u$.prototype.listen=function(v,E,n,f){Array.isArray(E)||(E&&(NCl[0]=E.toString()),E=NCl);for(var x=0;x<E.length;x++){var y=_.v8(v,E[x],n||this.handleEvent,f||!1,this.handler_||this);if(!y)break;this.JSC$7897_keys_[y.key]=y}return this};
_.u$.prototype.listenOnce=function(v,E,n,f){return uV1(this,v,E,n,f)};
var uV1=function(v,E,n,f,x,y){if(Array.isArray(n))for(var Q=0;Q<n.length;Q++)uV1(v,E,n[Q],f,x,y);else{E=zl(E,n,f||v.handleEvent,x,y||v.handler_||v);if(!E)return v;v.JSC$7897_keys_[E.key]=E}return v};
_.u$.prototype.unlisten=function(v,E,n,f,x){if(Array.isArray(E))for(var y=0;y<E.length;y++)this.unlisten(v,E[y],n,f,x);else if(v=Ql1(v,E,n||this.handleEvent,_.oF(f)?!!f.capture:!!f,x||this.handler_||this))RU(v),delete this.JSC$7897_keys_[v.key];return this};
_.u$.prototype.removeAll=function(){_.sh.forEach(this.JSC$7897_keys_,function(v,E){this.JSC$7897_keys_.hasOwnProperty(E)&&RU(v)},this);
this.JSC$7897_keys_={}};
_.u$.prototype.disposeInternal=function(){_.u$.superClass_.disposeInternal.call(this);this.removeAll()};
_.u$.prototype.handleEvent=function(){throw Error("Sa");};var Dr=function(){_.QK.call(this);this.services_={}};
_.tf(Dr,_.QK);_.c=Dr.prototype;_.c.logger=null;_.c.connect=function(v){v&&v()};
_.c.isConnected=function(){return!0};
_.c.registerService=function(v,E,n){this.services_[v]={callback:E,objectPayload:!!n}};
_.c.getService=function(v,E){var n=this.services_[v];return n?n:this.defaultService_?{callback:_.vR(this.defaultService_,v),objectPayload:_.oF(E)}:null};
var jc6=function(v,E){if(E&&typeof v==="string")try{return JSON.parse(v)}catch(n){return null}else if(!E&&typeof v!=="string")return(0,_.aW)(v);return v};
Dr.prototype.disposeInternal=function(){Dr.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 HF=function(v,E){this.sequence_=[];this.onCancelFunction_=v;this.defaultScope_=E||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};
HF.prototype.cancel=function(v){if(this.fired_)this.result_ instanceof HF&&this.result_.cancel();else{if(this.parent_){var E=this.parent_;delete this.parent_;v?E.cancel(v):(E.branches_--,E.branches_<=0&&E.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new gk(this))}};
HF.prototype.continue_=function(v,E){this.blocked_=!1;OTS(this,v,E)};
var OTS=function(v,E,n){v.fired_=!0;v.result_=n;v.hadError_=!E;kc1(v)},$El=function(v){if(v.fired_){if(!v.silentlyCanceled_)throw new WzS(v);
v.silentlyCanceled_=!1}};
HF.prototype.callback=function(v){$El(this);OTS(this,!0,v)};
HF.prototype.errback=function(v){$El(this);OTS(this,!1,v)};
var Lzi=function(v,E,n){N9(v,E,null,n)};
HF.prototype.finally=function(v){var E=this;return new Promise(function(n,f){N9(E,function(x){v();n(x)},function(x){v();
f(x)})})};
var N9=function(v,E,n,f){var x=v.fired_;x||(E===n?E=n=wk(E):(E=wk(E),n=wk(n)));v.sequence_.push([E,n,f]);x&&kc1(v)};
HF.prototype.then=function(v,E,n){var f,x,y=new _.z2(function(Q,e){x=Q;f=e});
N9(this,x,function(Q){Q instanceof gk?y.cancel():f(Q);return GcF},this);
return y.then(v,E,n)};
slw(HF);var TC1=function(v,E){E instanceof HF?Lzi(v,(0,_.XV)(E.branch,E)):Lzi(v,function(){return E})};
HF.prototype.branch=function(v){var E=new HF;N9(this,E.callback,E.errback,E);v&&(E.parent_=this,this.branches_++);return E};
HF.prototype.isError=function(v){return v instanceof Error};
var iTX=function(v){return KZ(v.sequence_,function(E){return typeof E[1]==="function"})},GcF={},kc1=function(v){if(v.unhandledErrorId_&&v.fired_&&iTX(v)){var E=v.unhandledErrorId_,n=ztX[E];
n&&(_.n1.clearTimeout(n.JSC$7914_id_),delete ztX[E]);v.unhandledErrorId_=0}v.parent_&&(v.parent_.branches_--,delete v.parent_);E=v.result_;for(var f=n=!1;v.sequence_.length&&!v.blocked_;){var x=v.sequence_.shift(),y=x[0],Q=x[1];x=x[2];if(y=v.hadError_?Q:y)try{var e=y.call(x||v.defaultScope_,E);e===GcF&&(e=void 0);e!==void 0&&(v.hadError_=v.hadError_&&(e==E||v.isError(e)),v.result_=E=e);if(reg(E)||typeof _.n1.Promise==="function"&&E instanceof _.n1.Promise)f=!0,v.blocked_=!0}catch(F){E=F,v.hadError_=
!0,iTX(v)||(n=!0)}}v.result_=E;f&&(e=(0,_.XV)(v.continue_,v,!0),f=(0,_.XV)(v.continue_,v,!1),E instanceof HF?(N9(E,e,f),E.blocking_=!0):E.then(e,f));n&&(E=new Rt1(E),ztX[E.JSC$7914_id_]=E,v.unhandledErrorId_=E.JSC$7914_id_)},WzS=function(){_.vI.call(this)};
_.tf(WzS,_.vI);WzS.prototype.message="Deferred has already fired";WzS.prototype.name="AlreadyCalledError";var gk=function(){_.vI.call(this)};
_.tf(gk,_.vI);gk.prototype.message="Deferred was canceled";gk.prototype.name="CanceledError";var Rt1=function(v){this.JSC$7914_id_=_.n1.setTimeout((0,_.XV)(this.throwError,this),0);this.JSC$7914_error_=v};
Rt1.prototype.throwError=function(){delete ztX[this.JSC$7914_id_];throw this.JSC$7914_error_;};
var ztX={};var tC1={1:"NativeMessagingTransport"},BCz=["pu","lru","pru","lpu","ppu"],E7F=function(){for(var v=10,E=v7o,n=E.length,f="";v-- >0;)f+=E.charAt(Math.floor(Math.random()*n));return f},v7o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var ug=function(v){_.QK.call(this);this.JSC$7917_domHelper_=v||y4()};
_.tf(ug,_.QK);ug.prototype.transportType=0;ug.prototype.getWindow=function(){return this.JSC$7917_domHelper_.getWindow()};
ug.prototype.getName=function(){return tC1[String(this.transportType)]||""};var jP=function(v,E,n,f,x){ug.call(this,n);this.JSC$7920_channel_=v;this.protocolVersion_=x||2;this.peerHostname_=E||"*";this.JSC$7920_eventHandler_=new _.u$(this);this.maybeAttemptToConnectTimer_=new _.NO(100,this.getWindow());this.oneSidedHandshake_=!!f;this.setupAckReceived_=new HF;this.setupAckSent_=new HF;this.JSC$7920_connected_=new HF;this.endpointId_=E7F();this.peerEndpointId_=null;this.oneSidedHandshake_?n7g(this.JSC$7920_channel_)==1?TC1(this.JSC$7920_connected_,this.setupAckReceived_):
TC1(this.JSC$7920_connected_,this.setupAckSent_):(TC1(this.JSC$7920_connected_,this.setupAckReceived_),this.protocolVersion_==2&&TC1(this.JSC$7920_connected_,this.setupAckSent_));Lzi(this.JSC$7920_connected_,this.notifyConnected_,this);this.JSC$7920_connected_.callback(!0);this.JSC$7920_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.tf(jP,ug);jP.prototype.peerProtocolVersion_=null;jP.prototype.initialized_=!1;jP.prototype.transportType=1;var o71={};jP.prototype.sendTimerId_=0;
var cv1=function(v){var E=v.event_.data;if(typeof E!=="string")return!1;var n=E.indexOf("|"),f=E.indexOf(":");if(n==-1||f==-1)return!1;var x=E.substring(0,n);n=E.substring(n+1,f);E=E.substring(f+1);if(f=Oo[x])return f.xpcDeliver(n,E,v.event_.origin),!0;f=fY1(E)[0];for(var y in Oo){var Q=Oo[y];if(n7g(Q)==1&&!Q.isConnected()&&n=="tp"&&(f=="SETUP"||f=="SETUP_NTPV2")&&xB1(Q,v.event_.origin))return delete Oo[Q.name],Q.name=x,Oo[x]=Q,Q.xpcDeliver(n,E),!0}return!1},yvg=function(v){v.protocolVersion_!=2||
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||v.send("tp","SETUP_NTPV2,"+v.endpointId_);
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||v.send("tp","SETUP")},pfF=function(v,E){if(v.protocolVersion_!=2||v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||E!=2){if(v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||E!=1)return;
v.send("tp","SETUP_ACK")}else v.send("tp","SETUP_ACK_NTPV2");v.setupAckSent_.fired_||v.setupAckSent_.callback(!0)},Q0g=function(v,E){E>v.peerProtocolVersion_&&(v.peerProtocolVersion_=E);
v.peerProtocolVersion_==1&&(v.setupAckSent_.fired_||v.oneSidedHandshake_||v.setupAckSent_.callback(!0),v.peerEndpointId_=null)};
_.c=jP.prototype;_.c.connect=function(){var v=this.getWindow(),E=_.xw(v),n=o71[E];typeof n!=="number"&&(n=0);n==0&&_.v8(v.postMessage?v:v.document,"message",cv1,!1,jP);o71[E]=n+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.c.maybeAttemptToConnect_=function(){var v=n7g(this.JSC$7920_channel_)==0;this.oneSidedHandshake_&&v||this.JSC$7920_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),yvg(this))};
_.c.send=function(v,E){var n=this.JSC$7920_channel_.peerWindowObject_;n&&(this.send=function(f,x){var y=this,Q=this.JSC$7920_channel_.name;this.sendTimerId_=rk(function(){y.sendTimerId_=0;try{var e=n.postMessage?n:n.document;e.postMessage&&e.postMessage(Q+"|"+f+":"+x,y.peerHostname_)}catch(F){}},0)},this.send(v,E))};
_.c.notifyConnected_=function(){var v=this.JSC$7920_channel_,E=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;v.isConnected()||v.connectionDelay_&&v.connectionDelay_.isActive()||(v.state_=2,_.uU(v.connectionDelay_),E!==void 0?(v.connectionDelay_=new _.eC(v.connectCb_,E),v.connectionDelay_.start()):(v.connectionDelay_=null,v.connectCb_()))};
_.c.disposeInternal=function(){if(this.initialized_){var v=this.getWindow(),E=_.xw(v),n=o71[E];o71[E]=n-1;n==1&&_.FX(v.postMessage?v:v.document,"message",cv1,!1,jP)}this.sendTimerId_&&(_.n1.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.uU(this.JSC$7920_eventHandler_);delete this.JSC$7920_eventHandler_;_.uU(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7920_connected_.cancel();delete this.JSC$7920_connected_;delete this.send;jP.superClass_.disposeInternal.call(this)};
var fY1=function(v){v=v.split(",");v[1]=v[1]||null;return v};_.k2=function(v){if(v.getValues&&typeof v.getValues=="function")return v.getValues();if(typeof Map!=="undefined"&&v instanceof Map||typeof Set!=="undefined"&&v instanceof Set)return Array.from(v.values());if(typeof v==="string")return v.split("");if(_.E1(v)){for(var E=[],n=v.length,f=0;f<n;f++)E.push(v[f]);return E}return _.sh.getValues(v)};
_.Xfg=function(v){if(v.getKeys&&typeof v.getKeys=="function")return v.getKeys();if(!v.getValues||typeof v.getValues!="function"){if(typeof Map!=="undefined"&&v instanceof Map)return Array.from(v.keys());if(!(typeof Set!=="undefined"&&v instanceof Set)){if(_.E1(v)||typeof v==="string"){var E=[];v=v.length;for(var n=0;n<v;n++)E.push(n);return E}return _.sh.getKeys(v)}}};
_.eCo=function(v,E,n){if(v.forEach&&typeof v.forEach=="function")v.forEach(E,n);else if(_.E1(v)||typeof v==="string")Array.prototype.forEach.call(v,E,n);else for(var f=_.Xfg(v),x=_.k2(v),y=x.length,Q=0;Q<y;Q++)E.call(n,x[Q],f&&f[Q],v)};var DjX,zu,t_,rv1,FA1,wfw,mBS,s01,bp4;
_.IT=function(v,E){this.JSC$7925_domain_=this.userInfo_=this.scheme_="";this.JSC$7925_port_=null;this.fragment_=this.JSC$7925_path_="";this.JSC$7925_ignoreCase_=!1;var n;v instanceof _.IT?(this.JSC$7925_ignoreCase_=E!==void 0?E:v.JSC$7925_ignoreCase_,_.WF(this,v.scheme_),this.userInfo_=v.userInfo_,_.$2(this,v.JSC$7925_domain_),_.Ly(this,v.JSC$7925_port_),_.Gu(this,v.getPath()),_.Tu(this,v.JSC$7925_queryData_.clone()),_.ig(this,v.fragment_)):v&&(n=_.DU(String(v)))?(this.JSC$7925_ignoreCase_=!!E,_.WF(this,
n[1]||"",!0),this.userInfo_=zu(n[2]||""),_.$2(this,n[3]||"",!0),_.Ly(this,n[4]),_.Gu(this,n[5]||"",!0),_.Tu(this,n[6]||"",!0),_.ig(this,n[7]||"",!0)):(this.JSC$7925_ignoreCase_=!!E,this.JSC$7925_queryData_=new _.RW(null,this.JSC$7925_ignoreCase_))};
_.IT.prototype.toString=function(){var v=[],E=this.scheme_;E&&v.push(t_(E,FA1,!0),":");var n=this.JSC$7925_domain_;if(n||E=="file")v.push("//"),(E=this.userInfo_)&&v.push(t_(E,FA1,!0),"@"),v.push(_.dB(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.JSC$7925_port_,n!=null&&v.push(":",String(n));if(n=this.getPath())this.JSC$7925_domain_&&n.charAt(0)!="/"&&v.push("/"),v.push(t_(n,n.charAt(0)=="/"?mBS:wfw,!0));(n=this.JSC$7925_queryData_.toString())&&v.push("?",n);(n=this.fragment_)&&v.push("#",t_(n,
bp4));return v.join("")};
_.IT.prototype.resolve=function(v){var E=this.clone(),n=!!v.scheme_;n?_.WF(E,v.scheme_):n=!!v.userInfo_;n?E.userInfo_=v.userInfo_:n=!!v.JSC$7925_domain_;n?_.$2(E,v.JSC$7925_domain_):n=v.JSC$7925_port_!=null;var f=v.getPath();if(n)_.Ly(E,v.JSC$7925_port_);else if(n=!!v.JSC$7925_path_){if(f.charAt(0)!="/")if(this.JSC$7925_domain_&&!this.JSC$7925_path_)f="/"+f;else{var x=E.getPath().lastIndexOf("/");x!=-1&&(f=E.getPath().slice(0,x+1)+f)}x=f;if(x==".."||x==".")f="";else if(_.FN(x,"./")||_.FN(x,"/.")){f=
_.cI(x,"/");x=x.split("/");for(var y=[],Q=0;Q<x.length;){var e=x[Q++];e=="."?f&&Q==x.length&&y.push(""):e==".."?((y.length>1||y.length==1&&y[0]!="")&&y.pop(),f&&Q==x.length&&y.push("")):(y.push(e),f=!0)}f=y.join("/")}else f=x}n?_.Gu(E,f):n=v.JSC$7925_queryData_.toString()!=="";n?_.Tu(E,v.JSC$7925_queryData_.clone()):n=!!v.fragment_;n&&_.ig(E,v.fragment_);return E};
_.IT.prototype.clone=function(){return new _.IT(this)};
_.WF=function(v,E,n){v.scheme_=n?zu(E,!0):E;v.scheme_&&(v.scheme_=v.scheme_.replace(/:$/,""));return v};
_.$2=function(v,E,n){v.JSC$7925_domain_=n?zu(E,!0):E;return v};
_.Ly=function(v,E){if(E){E=Number(E);if(isNaN(E)||E<0)throw Error("Ta`"+E);v.JSC$7925_port_=E}else v.JSC$7925_port_=null;return v};
_.IT.prototype.getPath=function(){return this.JSC$7925_path_};
_.Gu=function(v,E,n){v.JSC$7925_path_=n?zu(E,!0):E;return v};
_.Tu=function(v,E,n){E instanceof _.RW?(v.JSC$7925_queryData_=E,lY1(v.JSC$7925_queryData_,v.JSC$7925_ignoreCase_)):(n||(E=t_(E,s01)),v.JSC$7925_queryData_=new _.RW(E,v.JSC$7925_ignoreCase_));return v};
_.KT=function(v,E,n){v.JSC$7925_queryData_.set(E,n);return v};
_.J7=function(v,E){return v.JSC$7925_queryData_.get(E)};
_.ig=function(v,E,n){v.fragment_=n?zu(E):E;return v};
_.BF=function(v){_.KT(v,"zx",UV());return v};
_.qE=function(v,E){return v instanceof _.IT?v.clone():new _.IT(v,E)};
DjX=function(v,E){v instanceof _.IT||(v=_.qE(v));E instanceof _.IT||(E=_.qE(E));return v.resolve(E)};
zu=function(v,E){return v?E?decodeURI(v.replace(/%25/g,"%2525")):decodeURIComponent(v):""};
t_=function(v,E,n){return typeof v==="string"?(v=encodeURI(v).replace(E,rv1),n&&(v=v.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),v):null};
rv1=function(v){v=v.charCodeAt(0);return"%"+(v>>4&15).toString(16)+(v&15).toString(16)};
FA1=/[#\/\?@]/g;wfw=/[#\?:]/g;mBS=/[#\?]/g;s01=/[#\?@]/g;bp4=/#/g;_.RW=function(v,E){this.count_=this.keyMap_=null;this.encodedQuery_=v||null;this.JSC$7926_ignoreCase_=!!E};
_.vl=function(v){v.keyMap_||(v.keyMap_=new Map,v.count_=0,v.encodedQuery_&&bWU(v.encodedQuery_,function(E,n){v.add(u5(E),n)}))};
_.c=_.RW.prototype;_.c.getCount=function(){_.vl(this);return this.count_};
_.c.add=function(v,E){_.vl(this);this.encodedQuery_=null;v=E6(this,v);var n=this.keyMap_.get(v);n||this.keyMap_.set(v,n=[]);n.push(E);this.count_+=1;return this};
_.c.remove=function(v){_.vl(this);v=E6(this,v);return this.keyMap_.has(v)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(v).length,this.keyMap_.delete(v)):!1};
_.c.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.c.isEmpty=function(){_.vl(this);return this.count_==0};
_.c.containsKey=function(v){_.vl(this);v=E6(this,v);return this.keyMap_.has(v)};
_.c.containsValue=function(v){var E=this.getValues();return _.L1(E,v)};
_.c.forEach=function(v,E){_.vl(this);this.keyMap_.forEach(function(n,f){n.forEach(function(x){v.call(E,x,f,this)},this)},this)};
_.c.getKeys=function(){_.vl(this);for(var v=Array.from(this.keyMap_.values()),E=Array.from(this.keyMap_.keys()),n=[],f=0;f<E.length;f++)for(var x=v[f],y=0;y<x.length;y++)n.push(E[f]);return n};
_.c.getValues=function(v){_.vl(this);var E=[];if(typeof v==="string")this.containsKey(v)&&(E=E.concat(this.keyMap_.get(E6(this,v))));else{v=Array.from(this.keyMap_.values());for(var n=0;n<v.length;n++)E=E.concat(v[n])}return E};
_.c.set=function(v,E){_.vl(this);this.encodedQuery_=null;v=E6(this,v);this.containsKey(v)&&(this.count_-=this.keyMap_.get(v).length);this.keyMap_.set(v,[E]);this.count_+=1;return this};
_.c.get=function(v,E){if(!v)return E;v=this.getValues(v);return v.length>0?String(v[0]):E};
_.PaX=function(v,E,n){v.remove(E);n.length>0&&(v.encodedQuery_=null,v.keyMap_.set(E6(v,E),_.tG(n)),v.count_+=n.length)};
_.RW.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var v=[],E=Array.from(this.keyMap_.keys()),n=0;n<E.length;n++){var f=E[n],x=_.dB(f);f=this.getValues(f);for(var y=0;y<f.length;y++){var Q=x;f[y]!==""&&(Q+="="+_.dB(f[y]));v.push(Q)}}return this.encodedQuery_=v.join("&")};
_.RW.prototype.clone=function(){var v=new _.RW;v.encodedQuery_=this.encodedQuery_;this.keyMap_&&(v.keyMap_=new Map(this.keyMap_),v.count_=this.count_);return v};
var E6=function(v,E){E=String(E);v.JSC$7926_ignoreCase_&&(E=E.toLowerCase());return E},lY1=function(v,E){E&&!v.JSC$7926_ignoreCase_&&(_.vl(v),v.encodedQuery_=null,v.keyMap_.forEach(function(n,f){var x=f.toLowerCase();
f!=x&&(this.remove(f),_.PaX(this,x,n))},v));
v.JSC$7926_ignoreCase_=E};
_.RW.prototype.extend=function(v){for(var E=0;E<arguments.length;E++)_.eCo(arguments[E],function(n,f){this.add(f,n)},this)};var nL=function(v,E){Dr.call(this);for(var n=0,f;f=BCz[n];n++)if(f in v&&!/^https?:\/\//.test(v[f]))throw Error("Va`"+v[f]+"`"+f);this.cfg_=v;this.name=this.cfg_.cn||E7F();this.JSC$7921_domHelper_=E||y4();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.u$(this);v.lpu=v.lpu||mn1(this.JSC$7921_domHelper_.getWindow().location.href)+"/robots.txt";v.ppu=v.ppu||mn1(v.pu||"")+"/robots.txt";Oo[this.name]=this;Ql1(window,"unload",aYX)||zl(window,"unload",aYX)};
_.tf(nL,Dr);var Zpl=RegExp("^%*tp$"),Cao=RegExp("^%+tp$");_.c=nL.prototype;_.c.connectionDelay_=null;_.c.peerWindowDeferred_=null;_.c.transport_=null;_.c.state_=1;_.c.isConnected=function(){return this.state_==2};
_.c.peerWindowObject_=null;_.c.iframeElement_=null;_.c.connect=function(v){this.connectCb_=v||_.er;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Lzi(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.c.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7921_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var v=this.iframeElement_.contentWindow;v||(v=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=v}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$7921_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new jP(this,this.cfg_.ph,this.JSC$7921_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()()};
_.c.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.uU(this.transport_);this.connectCb_=this.transport_=null;_.uU(this.connectionDelay_);this.connectionDelay_=null};
_.c.send=function(v,E){if(this.isConnected()){try{var n=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(x){n=!1}if(n){_.oF(E)&&(E=(0,_.aW)(E));n=this.transport_;var f=n.send;Zpl.test(v)&&(v="%"+v);v=v.replace(/[%:|]/g,encodeURIComponent);f.call(n,v,E)}else this.close()}};
_.c.xpcDeliver=function(v,E,n){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.XV)(this.xpcDeliver,this,v,E,n));else if(xB1(this,n)&&!this.isDisposed()&&this.state_!=3)if(v&&v!="tp")this.isConnected()&&(v=v.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),v=Cao.test(v)?v.substring(1):v,v=this.getService(v,E))&&(E=jc6(E,v.objectPayload),E!=null&&v.callback(E));else switch(v=this.transport_,n=fY1(E),E=n[1],n[0]){case "SETUP_ACK":Q0g(v,1);v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":v.protocolVersion_==2&&(Q0g(v,2),v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0));break;case "SETUP":Q0g(v,1);pfF(v,1);break;case "SETUP_NTPV2":v.protocolVersion_==2&&(n=v.peerProtocolVersion_,Q0g(v,2),pfF(v,2),n!=1&&v.peerEndpointId_==null||v.peerEndpointId_==E||yvg(v),v.peerEndpointId_=E)}};
var n7g=function(v){var E=v.cfg_.role;return typeof E==="number"?E:window.parent==v.peerWindowObject_?1:0},xB1=function(v,E){var n=v.cfg_.ph;
return _.XN(E==null?"":String(E))||_.XN(n==null?"":String(n))||E==v.cfg_.ph};
nL.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Oo[this.name];_.uU(this.peerLoadHandler_);delete this.peerLoadHandler_;nL.superClass_.disposeInternal.call(this)};
var aYX=function(){for(var v in Oo)_.uU(Oo[v])},Oo={};var SBw=function(v,E){this.JSC$7935_win=v;this.allowAdsHttpEndpoint=E;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7935_domHelper=y4(v);this.scrollManager=new gE1(v);this.accessibilityManager=new ht6(v);Ma1(this)},Ma1=function(v){var E=function(){v.allowAdsPopup&&v.allowAdsPopup.style.setProperty("display","none","important");
v.wallElement.style.setProperty("display","","important");A7X(v.accessibilityManager);HTU(v.accessibilityManager,v.wallElement.querySelector(".fc-dialog-container"),!1,!1,v.wallElement.querySelector(".fc-button-whitelist"));var x=v.scrollManager;x.JSC$7893_domHelper.JSC$7222_document_.body.style.overflow=x.originalBodyOverflow};
v.allowAdsPopup=v.JSC$7935_domHelper.JSC$7224_createDom("DIV",{"class":"fc-whitelist-root"});v.allowAdsPopup.style.setProperty("display","none","important");v.JSC$7935_domHelper.appendChild(v.JSC$7935_domHelper.JSC$7222_document_.body,v.allowAdsPopup);var n=v.JSC$7935_domHelper.JSC$7224_createDom("DIV",{"class":"fc-dialog-overlay"});v.JSC$7935_domHelper.appendChild(v.allowAdsPopup,n);var f=v.JSC$7935_domHelper.JSC$7224_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:E});v.JSC$7935_domHelper.appendChild(v.allowAdsPopup,
f);n=v.JSC$7935_domHelper.JSC$7224_createDom("IFRAME");n.className="fc-whitelist-dialog";n.frameBorder="0";n.id="fc-whitelist-iframe";n.tabIndex="0";_.qa(n,v.allowAdsHttpEndpoint);v.JSC$7935_domHelper.appendChild(f,n);f={};f.pu=_.c5(v.allowAdsHttpEndpoint).toString();f.tp=1;f.cn="fc-whitelist-channel";f.ifrid=n.id;f.osh=!0;v.allowAdsCrossPageChannel=new nL(f);v.allowAdsCrossPageChannel.registerService("close",E);v.allowAdsCrossPageChannel.registerService("refresh",function(){v.JSC$7935_win.location.reload()});
v.allowAdsCrossPageChannel.registerService("resize",function(x){if(x){var y=v.allowAdsPopup.querySelector(".fc-whitelist-dialog");x.width&&y.style.setProperty("width",x.width,"important");x.height&&y.style.setProperty("height",x.height,"important")}},!0);
v.allowAdsCrossPageChannel.connect()};
SBw.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7935_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var o_=window,fL=document,UBS=o_.location,qB6=function(){},JvU=/\[native code\]/,xY=function(v,E,n){return v[E]=v[E]||n},KAi=function(v){v=v.sort();
for(var E=[],n=void 0,f=0;f<v.length;f++){var x=v[f];x!=n&&E.push(x);n=x}return E},cl=function(){var v;
if((v=Object.create)&&JvU.test(v))v=v(null);else{v={};for(var E in v)v[E]=void 0}return v},yd=xY(o_,"gapi",{});var pL={};pL=xY(o_,"___jsl",cl());xY(pL,"I",0);xY(pL,"hel",10);var dB1=function(){var v=UBS.href;if(pL.dpo)var E=pL.h;else{E=pL.h;var n=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),f=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(v=v&&(n.exec(v)||f.exec(v)))try{E=decodeURIComponent(v[2])}catch(x){}}return E},IY6=function(v){var E=xY(pL,"PQ",[]);
pL.PQ=[];var n=E.length;if(n===0)v();else for(var f=0,x=function(){++f===n&&v()},y=0;y<n;y++)E[y](x)},YBi=function(v){return xY(xY(pL,"H",cl()),v,cl())};var Qd=function(v){this.JSC$7937_obj_=v};
Qd.prototype.value=function(){return this.JSC$7937_obj_};
Qd.prototype.getWidth=function(){return this.JSC$7937_obj_.width};
Qd.prototype.getHeight=function(){return this.JSC$7937_obj_.height};
Qd.prototype.getStyle=function(){return this.JSC$7937_obj_.style};var hCX=function(v){this.JSC$7940_obj_=v||{}};
_.c=hCX.prototype;_.c.value=function(){return this.JSC$7940_obj_};
_.c.setUrl=function(v){this.JSC$7940_obj_.url=v;return this};
_.c.getUrl=function(){return this.JSC$7940_obj_.url};
_.c.getStyle=function(){return this.JSC$7940_obj_.style};
_.c.setId=function(v){this.JSC$7940_obj_.id=v;return this};
_.c.getId=function(){return this.JSC$7940_obj_.id};
_.c.getContext=function(){return this.JSC$7940_obj_.context};
var AvP=function(v){v.JSC$7940_obj_.attributes=v.JSC$7940_obj_.attributes||{};return new Qd(v.JSC$7940_obj_.attributes)};var VaX=function(){hCX.apply(this,arguments)};
_.S(VaX,hCX);var DBi=xY(pL,"perf",cl());xY(DBi,"g",cl());var Hp6=xY(DBi,"i",cl());xY(DBi,"r",[]);cl();cl();var NFo=function(v,E,n){E&&E.length>0&&(E=g7X(E),n&&n.length>0&&(E+="___"+g7X(n)),E.length>28&&(E=E.substr(0,28)+(E.length-28)),n=E,E=xY(Hp6,"_p",cl()),xY(E,n,cl())[v]=(new Date).getTime(),E=DBi.r,typeof E==="function"?E(v,"_p",n):E.push([v,"_p",n]))},g7X=function(v){return v.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var upw=cl(),j0X=[],XS=function(v){throw Error("Ya`"+v);};
j0X.push(["jsl",function(v){for(var E in v)if(Object.prototype.hasOwnProperty.call(v,E)){var n=v[E];typeof n=="object"?pL[E]=xY(pL,E,[]).concat(n):xY(pL,E,n)}if(E=v.u)v=xY(pL,"us",[]),v.push(E),(E=/^https:(.*)$/.exec(E))&&v.push("http:"+E[1])}]);
var Opi=/^(\/[a-zA-Z0-9_\-]+)+$/,krU=[/\/amp\//,/\/amp$/,/^\/amp$/],WAS=/^[a-zA-Z0-9\-_\.,!]+$/,$B6=/^gapi\.loaded_[0-9]+$/,LAU=/^[a-zA-Z0-9,._-]+$/,zC1=function(v,E,n,f,x){var y=v.split(";"),Q=y.shift(),e=upw[Q],F=null;e?F=e(y,E,n,f):XS("no hint processor for: "+Q);F||XS("failed to generate load url");E=F;n=E.match(Grz);(f=E.match(TF1))&&f.length===1&&ip1.test(E)&&n&&n.length===1||XS("failed sanity: "+v);try{v="?";if(x&&x.length>0){pl(x);var b=x.join(",");F=F+"?le="+b;v="&"}if(pL.rol){var l=pL.ol;
l&&l.length&&(F=""+F+v+"ol="+l.length)}}catch(r){}return F},BFl=function(v,E,n,f){v=RCo(v);
$B6.test(n)||XS("invalid_callback");E=taF(E);f=f&&f.length?taF(f):null;var x=function(y){return encodeURIComponent(y).replace(/%2C/g,",")};
return[encodeURIComponent(v.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",x(v.version),"/m=",x(E),f?"/exm="+x(f):"","/rt=j/sv=1/d=1/ed=1",v.activeMods?"/am="+x(v.activeMods):"",v.resourceSig?"/rs="+x(v.resourceSig):"",v.zcms?"/t="+x(v.zcms):"","/cb=",x(n)].join("")},RCo=function(v){v.charAt(0)!=="/"&&XS("relative path");
for(var E=v.substring(1).split("/"),n=[];E.length;){v=E.shift();if(!v.length||v.indexOf(".")==0)XS("empty/relative directory");else if(v.indexOf("=")>0){E.unshift(v);break}n.push(v)}v={};for(var f=0,x=E.length;f<x;++f){var y=E[f].split("="),Q=decodeURIComponent(y[0]),e=decodeURIComponent(y[1]);y.length==2&&Q&&e&&(v[Q]=v[Q]||e)}E="/"+n.join("/");Opi.test(E)||XS("invalid_prefix");n=0;for(f=krU.length;n<f;++n)krU[n].test(E)&&XS("invalid_prefix");n=v6g(v,"k",!0);f=v6g(v,"am");x=v6g(v,"rs");v=v6g(v,"t");
return{pathPrefix:E,version:n,activeMods:f,resourceSig:x,zcms:v}},taF=function(v){for(var E=[],n=0,f=v.length;n<f;++n){var x=v[n].replace(/\./g,"_").replace(/-/g,"_");
LAU.test(x)&&E.push(x)}return E.join(",")},v6g=function(v,E,n){v=v[E];
!v&&n&&XS("missing: "+E);if(v){if(WAS.test(v))return v;XS("invalid: "+E)}return null},ip1=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,TF1=/\/cb=/g,Grz=/\/\//g;
upw.m=function(v,E,n,f){(v=v[0])||XS("missing_hint");return"https://apis.google.com"+BFl(v,E,n,f)};
var E66=decodeURI("%73cript"),n61=/^[-+_0-9\/A-Za-z]+={0,2}$/,o61=function(v,E){for(var n=[],f=0;f<v.length;++f){var x=v[f],y;if(y=x){a:{for(y=0;y<E.length;y++)if(E[y]===x)break a;y=-1}y=y<0}y&&n.push(x)}return n},fUS=function(){var v=pL.nonce;
return v!==void 0?v&&v===String(v)&&v.match(n61)?v:pL.nonce=null:fL.querySelector?(v=fL.querySelector("script[nonce]"))?(v=v.nonce||v.getAttribute("nonce")||"",v&&v===String(v)&&v.match(n61)?pL.nonce=v:pL.nonce=null):null:null},yMg=function(v){if(fL.readyState!="loading")xXF(v);
else{var E=fUS(),n="";E!==null&&(n=' nonce="'+E+'"');v="<"+E66+' src="'+encodeURI(v)+'"'+n+"></"+E66+">";fL.write(cMz?cMz.createHTML(v):v)}},xXF=function(v){var E=fL.createElement(E66);
E.setAttribute("src",cMz?cMz.createScriptURL(v):v);v=fUS();v!==null&&E.setAttribute("nonce",v);E.async="true";(v=fL.getElementsByTagName(E66)[0])?v.parentNode.insertBefore(E,v):(fL.head||fL.body||fL.documentElement).appendChild(E)},Q51=function(v,E,n){pGz(function(){var f=E===dB1()?xY(yd,"_",cl()):cl();
f=xY(YBi(E),"_",f);v(f)},n)},K29=function(v,E){var n=E||{};
typeof E=="function"&&(n={},n.callback=E);var f=(E=n)&&E._c;if(f)for(var x=0;x<j0X.length;x++){var y=j0X[x][0],Q=j0X[x][1];Q&&Object.prototype.hasOwnProperty.call(f,y)&&Q(f[y],v,E)}E=[];v?E=v.split(":"):n.features&&(E=n.features);if(!(v=n.h)&&(v=dB1(),!v))throw Error("Za");XGo(E||[],n,v)},XGo=function(v,E,n){v=KAi(v)||[];
var f=E.callback,x=E.config,y=E.timeout,Q=E.ontimeout,e=E.onerror,F=void 0;typeof e=="function"&&(F=e);var b=null,l=!1;if(y&&!Q||!y&&Q)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";e=xY(YBi(n),"r",[]).sort();var r=xY(YBi(n),"L",[]).sort(),a=pL.le||[],M=[].concat(e),U=function(T,L){if(l)return 0;o_.clearTimeout(b);r.push.apply(r,d);var xX=((yd||{}).config||{}).update;xX?xX(x):x&&xY(pL,"cu",[]).push(x);if(L){NFo("me0",T,M);try{Q51(L,n,F)}finally{NFo("me1",T,M)}}return 1};
y>0&&(b=o_.setTimeout(function(){l=!0;Q()},y));
var d=o61(v,r);if(d.length){d=o61(v,e);var Y=xY(pL,"CP",[]),V=Y.length;Y[V]=function(T){if(!T)return 0;NFo("ml1",d,M);var L=function(t){Y[V]=null;U(d,T)&&IY6(function(){f&&f();t()})},xX=function(){var t=Y[V+1];
t&&t()};
V>0&&Y[V-1]?Y[V]=function(){L(xX)}:L(xX)};
if(d.length){var O="loaded_"+pL.I++;yd[O]=function(T){Y[V](T);yd[O]=null};
v=zC1(n,d,"gapi."+O,e,a);e.push.apply(e,d);NFo("ml0",d,M);E.sync||o_.___gapisync?yMg(v):xXF(v)}else Y[V](qB6)}else U(d)&&f&&f()},exX;
var FM1=null,mXS=_.n1.trustedTypes;if(mXS&&mXS.createPolicy){try{FM1=mXS.createPolicy("goog#gapi",{createHTML:u99,createScript:u99,createScriptURL:u99})}catch(v){_.n1.console&&_.n1.console.error(v.message)}exX=FM1}else exX=FM1;var cMz=exX,pGz=function(v,E){if(pL.hee&&pL.hel>0)try{return v()}catch(n){E&&E(n),pL.hel--,K29("debug_error",function(){try{window.___jsl.hefn(n)}catch(f){throw n;}})}else try{return v()}catch(n){throw E&&E(n),n;
}},wGz=yd.load;
wGz&&xY(pL,"ol",[]).push(wGz);yd.load=function(v,E){return pGz(function(){return K29(v,E)})};var FMQ;var bk6=function(v,E){this.serviceId_=v;this.moduleId_=E||null};
bk6.prototype.toString=function(){return this.serviceId_};
bk6.prototype.getModuleId=function(){return this.moduleId_};var FtN=new bk6("MpJwZc","MpJwZc");var wZ$=new _.yu("a"),mO1=function(v,E,n){_.py.call(this,v,E);this.node=E;this.kind=n};
_.S(mO1,_.py);var lU1=function(){this.JSC$7953_keys_={};this.urlPrefix_="";this.JSC$7953_queryData_={}};
lU1.prototype.toString=function(){var v=this.urlPrefix_+s5o(this),E=_.BG(this.JSC$7953_queryData_),n="";E!=""&&(n="?"+E);return v+n};
var rMz=function(v){v=FS(v,"md");return!!v&&v!=="0"},s5o=function(v){var E=[],n=(0,_.XV)(function(f){this.JSC$7953_keys_[f]!==void 0&&E.push(f+"="+this.JSC$7953_keys_[f])},v);
rMz(v)?(n("md"),n("k"),n("ck"),n("am"),n("rs"),n("gssmodulesetproto"),n("slk"),n("dti")):(n("sdch"),n("k"),n("ck"),n("am"),n("rt"),"d"in v.JSC$7953_keys_||m2(v,"d","0"),n("d"),n("exm"),n("excm"),(v.JSC$7953_keys_.excm||v.JSC$7953_keys_.exm)&&E.push("ed=1"),n("im"),n("dg"),n("sm"),FS(v,"br")!="1"&&FS(v,"br")!="0"||n("br"),n("br-d"),FS(v,"rb")=="1"&&n("rb"),FS(v,"zs")!=="0"&&n("zs"),P5X(v)!==""&&n("wt"),n("gssmodulesetproto"),n("ujg"),n("sp"),n("rs"),n("cb"),n("ee"),n("slk"),n("dti"),n("m"));return E.join("/")},
FS=function(v,E){return v.JSC$7953_keys_[E]?v.JSC$7953_keys_[E]:null},m2=function(v,E,n){n?v.JSC$7953_keys_[E]=n:delete v.JSC$7953_keys_[E]},aU4=function(v,E){v.urlPrefix_=E},ZkS=function(v,E){E&&E.length>0?(E.sort(),m2(v,"exm",E.join(","))):m2(v,"exm",null)},C51=function(v,E){E&&E.length>0?(E.sort(),m2(v,"excm",E.join(","))):m2(v,"excm",null)},MpF=function(v){return(v=FS(v,"m"))?v.split(","):[]},P5X=function(v){switch(FS(v,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},SOw=function(v,E){var n=Object.keys(E).filter(function(f){return!!Object.keys(E[f]).length}).map(function(f){var x=Object.keys(E[f]);
x.length>1&&x.sort();return f+":"+x.join(",")});
n.sort();m2(v,"ee",n.join(";"))},omy=function(v){var E=FS(v,"ee");
if(!E)return{};v={};E=_.p(E.split(";"));for(var n=E.next();!n.done;n=E.next()){var f=_.p(n.value.split(":"));n=f.next().value;f=f.next().value;v[n]={};f=_.p(f.split(","));for(var x=f.next();!x.done;x=f.next())v[n][x.value]=!0}return v},UXU=function(v){delete v.JSC$7953_keys_.m;
delete v.JSC$7953_keys_.exm;delete v.JSC$7953_keys_.ed};
lU1.prototype.clone=function(){if(crN){var v=new lU1;v.JSC$7953_keys_=Object.assign({},this.JSC$7953_keys_);v.urlPrefix_=this.urlPrefix_;v.JSC$7953_queryData_=Object.assign({},this.JSC$7953_queryData_);return v}return NE(this.toString())};
var NE=function(v,E){E=E===void 0?!0:E;var n=qOi(v),f=new lU1,x=_.DU(n)[5];_.sh.forEach(JMw,function(Q){var e=x.match("/"+Q+"=([^/]+)");e&&m2(f,Q,e[1])});
var y="";y=v.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";aU4(f,v.substr(0,v.indexOf(y)+y.length));if(!E)return f;(v=_.DU(n)[6]||null)&&bWU(v,function(Q,e){f.JSC$7953_queryData_[Q]=e});
return f},vmG=function(v){v=_.R5(qOi(v));
return v===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(v)?/\/k=/.test(v):!1},qOi=function(v){return v.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?v.substr(65):v},JMw={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},KM1=RegExp("^loaded_(g|h)?[_\\d]+$");_.w$=function(v){this.JSC$7965_id_=v;this.opts={}};
_.w$.prototype.JSC$7967_setLabel=function(v){this.label_=v||void 0;return this};
_.w$.prototype.addUploadMetadata=function(v,E){var n=this.opts.data||{};n[v]=E;this.opts.data=n;return this};
var dX4=function(v){var E=_.sh.filter(v.opts,function(n){return n!==null});
E=_.sh.isEmpty(E)?null:E;v=[v.JSC$7965_id_,v.label_,E];E=rGX(v);return v=v.slice(0,E+1)};
_.w$.prototype.toString=function(){var v=dX4(this);return"("+_.rA(v,function(E){return JSON.stringify(E)}).join(",")+")"};
_.w$.prototype.getId=function(){return this.JSC$7965_id_};
_.w$.prototype.getOptions=function(){return _.sh.clone(this.opts)};var bw=function(){_.w$.call(this,"image-search")};
_.S(bw,_.w$);bw.prototype.setSize=function(v){this.opts.imgsz=v;return this};
bw.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
bw.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};var lw=function(){_.w$.call(this,"maps")};
_.S(lw,_.w$);lw.prototype.setZoom=function(v){this.opts.zoom=v;return this};
lw.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
lw.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};_.s6=function(){_.w$.call(this,"photos")};
_.S(_.s6,_.w$);_.s6.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
_.s6.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};var r$=function(){_.w$.call(this,"url")};
_.S(r$,_.w$);var IU1=function(){var v=new r$;v.opts.type="video";v.opts.site="youtube.com";return v};
r$.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
r$.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};var Pl=function(){_.w$.call(this,"video-search")};
_.S(Pl,_.w$);var YOX=function(){var v=new Pl;v.opts.site="youtube.com";return v};
Pl.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
Pl.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};var hx1=function(){_.w$.call(this,"web")};
_.S(hx1,_.w$);hx1.prototype.JSC$7967_setLabel=function(v){_.w$.prototype.JSC$7967_setLabel.call(this,v);return this};
hx1.prototype.addUploadMetadata=function(v,E){_.w$.prototype.addUploadMetadata.call(this,v,E);return this};var a_=function(){this.items_=[];this.opts={}},AMX=function(v){switch(v){case "image-search":return new bw;
case "maps":return new lw;case "photos":return new _.s6;case "url":return new r$;case "video-search":return new Pl;case "web":return new hx1}return new _.w$(v)};
a_.prototype.addView=function(v){this.items_.push(typeof v==="string"?AMX(v):v);return this};
var VpF=function(v){return"("+_.rA(v.items_,function(E){return E.toString()}).join(",")+")"};
a_.prototype.toString=function(){return VpF(this)};
a_.prototype.getViews=function(v,E){E=E===void 0?[]:E;for(var n=this.items_,f=0;f<n.length;f++){var x=n[f];x instanceof a_?x.getViews(v,E):x.getId()==v&&E.push(x)}return E};
a_.prototype.getOptions=function(){return _.sh.clone(this.opts)};var ac=function(v){this.basePickerUrl_=v||"https://docs.google.com/picker";this.nav_=new a_};
ac.prototype.nav_=null;ac.prototype.addView=function(v){this.nav_.addView(v);return this};
ac.prototype.getBaseUrl=function(){return this.basePickerUrl_};
ac.prototype.getViews=function(v){return this.nav_.getViews(v)};
_.DXw=function(v,E){v.callback_=E;return v};var HkF=new Map;HkF.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");HkF.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");HkF.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var g6o=new Set;g6o.add("application/vnd.google-apps.kix");g6o.add("application/vnd.google-apps.ritz");g6o.add("application/vnd.google-apps.punch");var zxg=function(v,E,n){var f=n&&_.Sf(n,1);n=NB1(n);var x=v[0].getId();switch(_.Ua(x,2)){case 13:return uoU(v,E,f,n);case 3:return j5i(v,E,f,n);case 10:return Oko(v,E,f,n);case 27:return Oko(v,E,f,n);case 12:return ka6(v,E);case 2:return WMU(v,E,f,n);case 5:return $Xz(v,E,f,n);case 9:return LM1(v,E,f,n);case 6:return Gao(v,E,f,n);case 25:return TBX(v,E,f,n);case 1:return _.FB(v[0],Aj4,26)?ikU(v,E,f,n):Oko(v,E,f,n);default:return{}}},Gao=function(v,E,n,f){v=v.map(function(x){return{id:x.getId().getId(),
serviceId:"youtube",name:x.getName(),description:_.Sf(x,3),type:Z6(x),lastEditedUtc:_.h_X(_.j5(x,_.YC,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:_.Sf(x,13),thumbnails:CL($D(x))}});
return{action:E,docs:v,viewToken:f,view:n||"youtube",v2Translated:!0}},WMU=function(v,E,n,f){var x=v.map(function(y){var Q=y.getId().getId(),e=_.Sf(y,7),F=y.getName(),b=Z6(y),l=_.h_X(_.j5(y,_.YC,12)).getTime(),r=y.getUrl(),a=Number(tyX(y)),M=_.Sf(y,3),U=_.Sf(y,11),d=CL($D(y));
var Y=_.j5(y,Lo,21);Y=_.aG(Y,1);var V=_.j5(y,Lo,21);V=_.Sf(V,10);var O=_.Sf(y,13);var T=_.j5(y,Lo,21);T=_.aG(T,9);var L=_.j5(y,Lo,21);L=_.Sf(L,11);Q={id:Q,serviceId:"docs",mimeType:e,name:F,type:b,lastEditedUtc:l,url:r,sizeBytes:a,description:M,iconUrl:U,thumbnails:d,isShared:Y,downloadUrl:V,embedUrl:O,copyable:T,resourceKey:L};e=_.j5(y,Lo,21);_.aG(e,12)&&(Q.uploadState="success",Q.isNew=!0);e=_.j5(y,Lo,21);_.FB(e,OP,3)&&(y=_.j5(y,Lo,21),y=_.j5(y,OP,3),_.FB(y,uy,2)&&(e=rC(y.getDuration().getSeconds()),
F=y.getDuration(),F=_.$r(F,2),Q.duration=e+F/1E9),Q.aspectRatio=y.getAspectRatio());return Q});
return{action:E,docs:x,viewToken:f,view:n||"all",extraUserInputs:RxP(v),v2Translated:!0}},$Xz=function(v,E,n,f){v=v.map(function(x){var y=_.j5(x,kZP,15);
y=_.j5(y,jr,1);vP(x,10,jr,y);return{id:x.getId().getId(),serviceId:"web",mimeType:_.Sf(x,7),name:x.getName(),type:Z6(x),url:x.getUrl(),description:_.Sf(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(x))}});
return{action:E,docs:v,viewToken:f,view:n||"image-search",v2Translated:!0}},LM1=function(v,E,n,f){v=v.map(function(x){return{serviceId:"url",
name:$D(x)[0].getUrl().split("/").pop(),type:Z6(x),mimeType:_.Sf(x,7),url:x.getUrl(),description:_.Sf(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(x))}});
return{action:E,docs:v,viewToken:f,view:n||"url",v2Translated:!0}},ikU=function(v,E,n,f){v=v.map(function(x){return{id:x.getId().getId(),
serviceId:"picasa",name:x.getName(),type:Z6(x),description:_.Sf(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(x))}});
return{action:E,docs:v,viewToken:f,view:n||"webcam",v2Translated:!0}},Oko=function(v,E,n,f){return{action:E,
docs:v.map(tpS),viewToken:f,view:BBl(n||"upload",v),extraUserInputs:RxP(v),v2Translated:!0}},BBl=function(v,E){return E.some(function(n){var f;
return((f=_.j5(n,kD,30))==null?void 0:_.Ua(f,3))===9})?v+"/gmailphotos":v},j5i=function(v,E,n,f){var x=v.map(function(y){var Q={id:y.getId().getId(),
serviceId:"picasa",mimeType:_.Sf(y,7),name:y.getName(),type:Z6(y),lastEditedUtc:_.h_X(_.j5(y,_.YC,12)).getTime(),url:y.getUrl(),sizeBytes:Number(tyX(y)),description:_.Sf(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(y)),mediaKey:y.getId().getId(),parentId:_.Sf(y,4)},e,F=(e=_.j5(y,HWl,18))==null?void 0:_.j5(e,Dn4,3);F&&(Q.latitude=Mr(F,1),Q.longitude=Mr(F,2));var b;y=(b=_.j5(y,HWl,18))==null?void 0:Z2(b,6);b=y!=null?rC(y):void 0;b&&(Q.version=
b);return Q});
return{action:E,docs:x,viewToken:f,view:n||"photos",extraUserInputs:RxP(v),v2Translated:!0}},uoU=function(v,E,n,f){v=v.map(function(x){return{id:x.getId().getId(),
serviceId:"et",name:$D(x)[0].getUrl().split("/").pop(),description:_.Sf(x,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(x),"etjpg")}});
return{action:E,docs:v,viewToken:f,view:n||"et",v2Translated:!0}},TBX=function(v,E,n,f){v=v.map(function(x){var y=x.getId().getId(),Q=f["2"];
return{id:y,serviceId:Q.type!=="gmail_themes"&&Q.parent==="6226252643674576769"?"picasa":"static_themes",name:x.getName(),mimeType:_.Sf(x,7),type:Z6(x),description:_.Sf(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:x.getUrl(),thumbnails:CL($D(x))}});
return{action:E,docs:v,viewToken:f,view:n||"photos",v2Translated:!0}},ka6=function(v,E){v=v.map(function(n){var f=_.j5(n,Vti,27);
f=_.m9(f,1,_.NP,_.WV())[0];return{id:n.getId().getId(),serviceId:"contacts",mimeType:_.Sf(n,7),name:n.getName(),description:_.Sf(n,3),url:"mailto:"+f,thumbnail:[{url:_.Sf(n,11)}],email:f}});
return{action:E,docs:v,view:"contacts",v2Translated:!0}},NB1=function(v){if(!v)return{};
var E=_.Sf(v,3);E=E&&JSON.parse(E)||{};return{0:_.Sf(v,1),1:_.Sf(v,2),2:E}},CL=function(v,E){E=E===void 0?"":E;
if(!v.length)return null;E=="etjpg"&&(v=v.filter(function(n){return n.getUrl().includes("w1200-h300")}));
return v.map(function(n){return{url:n.getUrl(),height:n.getHeight(),width:n.getWidth(),type:E}})},RxP=function(v){return{isAttachment:v.some(function(E){return _.aG(E,31)})}},tpS=function(v){var E,n={id:(E=v.getId())==null?void 0:E.getId(),
serviceId:vm6(v),mimeType:_.Sf(v,7),name:v.getName(),type:Z6(v),sizeBytes:Number(tyX(v)),description:_.Sf(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:CL($D(v)),isNew:!0};if(E=_.j5(v,kD,30)){n.dataUrl=_.Sf(E,1)||null;a:{var f=_.j5(v,kD,30);switch(_.Ua(f,3)){case 9:f=_.K9(f,jKz,2,WM);f={remoteRefs:f&&_.Sf(f,1)};break a;case 10:case 15:f=_.K9(f,uLw,4,WM);var x=$D(v);f={photo_id:f&&_.Sf(f,1),media_key:v.getId().getId(),media_type:_.Ua(v,6)===1?1:2,image_url:x&&
x[0].getUrl(),width:x&&String(x[0].getWidth()),height:x&&String(x[0].getHeight())};break a}f=null}n.uploadMetadata=f;n.uploadId=_.Sf(E,9)||null;n.uploadState=EmX(E)||null}(f=E&&_.K9(E,uLw,4,WM))&&(n.id=_.Sf(f,1));(f=E&&_.K9(E,OWl,5,WM))&&(n.contentId=_.Sf(f,1));(f=E&&_.K9(E,gbo,7,WM))&&(n.contentId=_.Sf(f,1));(f=E&&_.K9(E,N2g,6,WM))&&(n.contentId=_.Sf(f,1));(E==null?void 0:_.Ua(E,3))===1&&(n.mediaKey=v.getId().getId());return n},vm6=function(v){var E;
switch(((E=_.j5(v,kD,30))==null?void 0:_.Ua(E,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},Z6=function(v){switch(_.Ua(v,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 _.Sf(v,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},EmX=function(v){switch(v==null?void 0:_.Ua(v,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 xp1,nm1,om4,fuw;_.MT=function(v,E){var n=E||{};E=n.document||document;var f=_.c5(v).toString(),x=(new ly(E)).createElement("SCRIPT"),y={script_:x,timeout_:void 0},Q=new HF(nm1,y),e=null,F=n.timeout!=null?n.timeout:5E3;F>0&&(e=window.setTimeout(function(){om4(x,!0);Q.errback(new fuw(1,"Timeout reached for loading script "+f))},F),y.timeout_=e);
x.onload=x.onreadystatechange=function(){x.readyState&&x.readyState!="loaded"&&x.readyState!="complete"||(om4(x,n.cleanupWhenDone||!1,e),Q.callback(null))};
x.onerror=function(){om4(x,!0,e);Q.errback(new fuw(0,"Error while loading script "+f))};
y=n.attributes||{};_.sh.extend(y,{type:"text/javascript",charset:"UTF-8"});CC4(x,y);_.Vv(x,v);xp1(E).appendChild(x);return Q};
xp1=function(v){var E=xE("HEAD",v);return E&&E.length!==0?E[0]:v.documentElement};
nm1=function(){if(this&&this.script_){var v=this.script_;v&&v.tagName=="SCRIPT"&&om4(v,!0,this.timeout_)}};
om4=function(v,E,n){n!=null&&_.n1.clearTimeout(n);v.onload=function(){};
v.onerror=function(){};
v.onreadystatechange=function(){};
E&&window.setTimeout(function(){_.fT(v)},0)};
fuw=function(v,E){var n="Jsloader error (code #"+v+")";E&&(n+=": "+E);_.vI.call(this,n);this.code=v};
_.tf(fuw,_.vI);var cO1=_.jU(["https://apis.google.com/js/api.js"]),yOU=_.i_(cO1),e5F=function(v,E){var n=!1,f=pAl(v,E).then(function(y){n=!0;return y}),x=_.ghU(5E3).then(function(){return n?pAl(v,E):QPg(E).then(function(y){return XA4(y,v)})});
return Ugw([f,x])},pAl=function(v,E){return Fxz(E).then(function(n){return XA4(n,v)})},XA4=function(v,E){var n=_.cI(E,"gapi.")?E.slice(5):E;
return v[n]?_.Gn(v[n]):new _.z2(function(f,x){var y=rk(function(){x(Error("bb"))},3E4);
v.load(E,{callback:function(){_.n1.clearTimeout(y);f(v[n])},
onerror:function(Q){_.n1.clearTimeout(y);x(Q)}})})},Fxz=function(v){return v.gapi&&v.gapi.load?_.Gn(v.gapi):QPg(v)},QPg=function(v){return _.MT(yOU,{document:v.document}).then(function(){return v.gapi})},mpP=function(){};
mpP.prototype.load=function(v,E){E=E===void 0?window:E;var n=Date.now();return e5F(v,E).then(function(f){var x=Date.now();return{library:f,loadStartMs:n,loadEndMs:x}},function(f){throw f instanceof Error?f:Error(String(f));
})};var UXI=function(){_.QK.call(this);this.gapiLoader_=new mpP;this.origin_=null;this.gapiPickerIframeResolver_=_.Sw();this.gapiIframesResolver_=_.Sw();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.S(UXI,_.QK);var wAi=function(v,E){var n=_.JM("gapi.iframes",E);return n?(v=Date.now(),_.Gn({library:n,loadStartMs:v,loadEndMs:v})):v.gapiLoader_.load("gapi.iframes",E)},bEz=function(v,E,n,f,x,y){var Q=!1;
Q=Q===void 0?!1:Q;wAi(v,ai(E.ownerDocument)).then(function(e){var F=e.library;v.gapiIframesResolver_.resolve(F);e=v.gapiPickerIframeResolver_;var b=e.resolve,l=Q;l=l===void 0?!1:l;var r={};r["host-message-handler"]=n;v.hostMessageHandlerInternal_=r;var a=_.qE(f);a=_.qE(a);a=_.Ly(_.$2(_.WF(new _.IT,a.scheme_),a.JSC$7925_domain_),a.JSC$7925_port_).toString();v.origin_=a;a=(new VaX).setUrl(f);a.JSC$7940_obj_.where=E;a.JSC$7940_obj_.allowPost=l;a.JSC$7940_obj_.messageHandlers=r;l=_.JM("makeWhiteListIframesFilter",
F)([v.origin_]);a.JSC$7940_obj_.messageHandlersFilter=l;x!=null&&a.setId(x);y!=null&&(a.JSC$7940_obj_.rpctoken=y);l=AvP(a);l.JSC$7937_obj_.style={display:"block","min-width":"100%",width:"1px"};l.JSC$7937_obj_.height="100%";AvP(a).value().allow="camera 'src' "+v.origin_;F=F.getContext().openChild(a.value());b.call(e,F)},function(e){v.gapiIframesResolver_.reject(e);
v.gapiPickerIframeResolver_.reject(e)});
return v.gapiPickerIframeResolver_.promise},luz=function(v,E){return _.lg([v.gapiIframesResolver_.promise,
v.gapiPickerIframeResolver_.promise]).then(function(n){var f=_.p(n);n=f.next().value;return(f=f.next().value)?f.send("picker-message-handler",E,void 0,_.JM("makeWhiteListIframesFilter",n)([v.origin_])):_.nR(Error("cb"))})};
UXI.prototype.disposeInternal=function(){sPw(this);_.QK.prototype.disposeInternal.call(this)};
var sPw=function(v){v.gapiPickerIframeResolver_.promise.then(function(E){E&&(E.unregister("host-message-handler"),delete v.hostMessageHandlerInternal_["host-message-handler"])})};var rO1=function(){this.nextId=0};var auo=function(v,E){switch(v.action){case "select-contacts":v=Pq1(v.contacts);break;case "visibility":v=v.visible;var n=new TN;v=_.IG(n,1,7).setVisible(v);n={};n["iframe-command"]=v.serialize();v=n;break;default:v=null}return v?luz(E,v):_.Gn()},Pq1=function(v){if(!v||v.length==0)return null;
var E=new TN;_.IG(E,1,11);var n=new rO1;v.forEach(function(f){if(f.email){var x=new rO;x=_.O_(x,2,f.name?f.name:f.email);var y=new Vti;f=_.yRA(y,1,_.Hb,f.email,_.NP);f=_.Bz(x,27,f);x=f.setId;y=(new Nm).setId(":"+(n.nextId++).toString(36));y=_.IG(y,2,12);f=x.call(f,y)}else f=null;f&&vP(E,7,rO,f)});
v={};v["iframe-command"]=E.serialize();return v};_.ZEz=function(){if(FV9){var v=/Windows NT ([0-9.]+)/;return(v=v.exec(_.lE()))?v[1]:"0"}return _.ejQ?(v=/1[0|1][_.][0-9_.]+/,(v=v.exec(_.lE()))?v[0].replace(/_/g,"."):"10"):bLX?(v=/Android\s+([^\);]+)(\)|;)/,(v=v.exec(_.lE()))?v[1]:""):wH$||bFE||lxE?(v=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(v=v.exec(_.lE()))?v[1].replace(/_/g,"."):""):""}();var S0;S0=function(v){return(v=v.exec(_.lE()))?v[1]:""};
_.Cq1=function(){if(_.c2)return S0(/Firefox\/([0-9.]+)/);if(_.n9||hO||pHL)return MyE;if(_.yH){if(_.VE()||_.wIA()){var v=S0(/CriOS\/([0-9.]+)/);if(v)return v}return S0(/Chrome\/([0-9.]+)/)}if(_.aP&&!_.VE())return S0(/Version\/([0-9.]+)/);if(YLE||hlG){if(v=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.lE()))return v[1]+"."+v[2]}else if(KVE)return(v=S0(/Android\s+([0-9.]+)/))?v:S0(/Version\/([0-9.]+)/);return""}();var M5i=function(){};
_.zY(M5i);M5i.prototype.nextId_=0;_.ZE=function(v){return":"+(v.nextId_++).toString(36)};var U6=function(v){_.mP.call(this);this.JSC$8035_dom_=v||y4();this.JSC$8035_id_=null;this.inDocument_=!1;this.JSC$8035_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.tf(U6,_.mP);U6.prototype.idGenerator_=M5i.getInstance();U6.prototype.getId=function(){return this.JSC$8035_id_||(this.JSC$8035_id_=_.ZE(this.idGenerator_))};
U6.prototype.setId=function(v){this.parent_&&this.parent_.childIndex_&&(_.sh.remove(this.parent_.childIndex_,this.JSC$8035_id_),_.sh.add(this.parent_.childIndex_,v,this));this.JSC$8035_id_=v};
U6.prototype.getElement=function(){return this.JSC$8035_element_};
var qT=function(v){v.googUiComponentHandler_||(v.googUiComponentHandler_=new _.u$(v));return v.googUiComponentHandler_},SHi=function(v,E){if(v==E)throw Error("db");
var n;if(n=E&&v.parent_&&v.JSC$8035_id_){n=v.parent_;var f=v.JSC$8035_id_;n=n.childIndex_&&f?_.sh.get(n.childIndex_,f)||null:null}if(n&&v.parent_!=E)throw Error("db");v.parent_=E;U6.superClass_.setParentEventTarget.call(v,E)};
U6.prototype.setParentEventTarget=function(v){if(this.parent_&&this.parent_!=v)throw Error("eb");U6.superClass_.setParentEventTarget.call(this,v)};
U6.prototype.JSC$8037_createDom=function(){this.JSC$8035_element_=this.JSC$8035_dom_.createElement("DIV")};
U6.prototype.render=function(v){UpU(this,v)};
var UpU=function(v,E,n){if(v.inDocument_)throw Error("fb");v.JSC$8035_element_||v.JSC$8037_createDom();E?E.insertBefore(v.JSC$8035_element_,n||null):v.JSC$8035_dom_.JSC$7222_document_.body.appendChild(v.JSC$8035_element_);v.parent_&&!v.parent_.inDocument_||v.enterDocument()};
_.c=U6.prototype;_.c.decorate=function(v){if(this.inDocument_)throw Error("fb");if(v&&this.canDecorate(v)){this.wasDecorated_=!0;var E=_.ZJ(v);this.JSC$8035_dom_&&this.JSC$8035_dom_.JSC$7222_document_==E||(this.JSC$8035_dom_=y4(v));this.decorateInternal(v);this.enterDocument()}else throw Error("gb");};
_.c.canDecorate=function(){return!0};
_.c.decorateInternal=function(v){this.JSC$8035_element_=v};
_.c.enterDocument=function(){this.inDocument_=!0;qHz(this,function(v){!v.inDocument_&&v.getElement()&&v.enterDocument()})};
_.c.exitDocument=function(){qHz(this,function(v){v.inDocument_&&v.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.c.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);qHz(this,function(v){v.dispose()});
!this.wasDecorated_&&this.JSC$8035_element_&&_.fT(this.JSC$8035_element_);this.parent_=this.model_=this.JSC$8035_element_=this.childIndex_=this.children_=null;U6.superClass_.disposeInternal.call(this)};
_.c.getModel=function(){return this.model_};
_.c.addChild=function(v,E){var n=this.children_?this.children_.length:0;if(v.inDocument_&&(E||!this.inDocument_))throw Error("fb");if(n<0||n>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);v.parent_==this?(_.sh.set(this.childIndex_,v.getId(),v),_.zs(this.children_,v)):_.sh.add(this.childIndex_,v.getId(),v);SHi(v,this);_.aAQ(this.children_,n,0,v);v.inDocument_&&this.inDocument_&&v.parent_==this?(E=this.getContentElement(),
(E.childNodes[n]||null)!=v.getElement()&&(v.getElement().parentElement==E&&E.removeChild(v.getElement()),n=E.childNodes[n]||null,E.insertBefore(v.getElement(),n))):E?(this.JSC$8035_element_||this.JSC$8037_createDom(),n=this.children_?this.children_[n+1]||null:null,UpU(v,this.getContentElement(),n?n.JSC$8035_element_:null)):this.inDocument_&&!v.inDocument_&&v.JSC$8035_element_&&v.JSC$8035_element_.parentNode&&v.JSC$8035_element_.parentNode.nodeType==1&&v.enterDocument()};
_.c.getContentElement=function(){return this.JSC$8035_element_};
var qHz=function(v,E){v.children_&&v.children_.forEach(E,void 0)};
U6.prototype.removeChild=function(v,E){if(v){var n=typeof v==="string"?v:v.getId();v=this.childIndex_&&n?_.sh.get(this.childIndex_,n)||null:null;n&&v&&(_.sh.remove(this.childIndex_,n),_.zs(this.children_,v),E&&(v.exitDocument(),v.JSC$8035_element_&&_.fT(v.JSC$8035_element_)),SHi(v,null))}if(!v)throw Error("ib");return v};_.tf(lUL,bkG);_.tf(s59,bkG);var JO1;var Kxo=function(v,E){E?v.setAttribute("role",E):v.removeAttribute("role")},Jt=function(v,E,n){Array.isArray(n)&&(n=n.join(" "));
var f="aria-"+E;n===""||n==void 0?(JO1||(n={},JO1=(n.atomic=!1,n.autocomplete="none",n.dropeffect="none",n.haspopup=!1,n.live="off",n.multiline=!1,n.multiselectable=!1,n.orientation="vertical",n.readonly=!1,n.relevant="additions text",n.required=!1,n.sort="none",n.busy=!1,n.disabled=!1,n.hidden=!1,n.invalid="false",n)),n=JO1,E in n?v.setAttribute(f,n[E]):v.removeAttribute(f)):v.setAttribute(f,n)};var dpP;_.KL=function(v,E,n){_.mP.call(this);this.target=v;this.handle=E||v;this.limits=n||new JP(NaN,NaN,NaN,NaN);this.JSC$8040_document_=_.ZJ(v);this.JSC$8040_eventHandler_=new _.u$(this);_.BV(this,this.JSC$8040_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;_.v8(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=dpP};
_.tf(_.KL,_.mP);dpP=_.n1.document&&_.n1.document.documentElement&&!!_.n1.document.documentElement.setCapture&&!!_.n1.document.releaseCapture;_.IuF=function(v,E){v.hysteresisDistanceSquared_=Math.pow(E,2)};
_.c=_.KL.prototype;_.c.setEnabled=function(v){this.enabled_=v};
_.c.disposeInternal=function(){_.KL.superClass_.disposeInternal.call(this);_.FX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8040_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8040_document_.releaseCapture();this.handle=this.target=null};
_.c.startDrag=function(v){var E=v.type=="mousedown";if(!this.enabled_||this.dragging_||E&&(v.event_.button!=0||_.ejQ&&v.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new d$("start",this,v.clientX,v.clientY,v)))this.dragging_=!0,E&&v.preventDefault();else return;else E&&v.preventDefault();E=this.JSC$8040_document_;var n=E.documentElement,f=!this.useSetCapture_;this.JSC$8040_eventHandler_.listen(E,["touchmove","mousemove"],this.handleMove_,
{capture:f,passive:!1});this.JSC$8040_eventHandler_.listen(E,["touchend","mouseup"],this.endDrag,f);this.useSetCapture_?(n.setCapture(!1),this.JSC$8040_eventHandler_.listen(n,"losecapture",this.endDrag)):this.JSC$8040_eventHandler_.listen(ai(E),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8040_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,f);this.clientX=this.startX=v.clientX;this.clientY=this.startY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=cV(y4(this.JSC$8040_document_))}};
_.c.endDrag=function(v,E){this.JSC$8040_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8040_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new d$("end",this,v.clientX,v.clientY,v,YHi(this,this.deltaX),h5P(this,this.deltaY),E||v.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.c.handleMove_=function(v){if(this.enabled_){var E=v.clientX-this.clientX,n=v.clientY-this.clientY;this.clientX=v.clientX;this.clientY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;if(!this.dragging_){var f=this.startX-this.clientX,x=this.startY-this.clientY;if(f*f+x*x>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new d$("start",this,v.clientX,v.clientY,v)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(v);return}}n=AO4(this,E,n);E=n.x;n=n.y;this.dragging_&&this.dispatchEvent(new d$("beforedrag",
this,v.clientX,v.clientY,v,E,n))&&(V51(this,v,E,n),v.preventDefault())}};
var AO4=function(v,E,n){var f=cV(y4(v.JSC$8040_document_));E+=f.x-v.pageScroll.x;n+=f.y-v.pageScroll.y;v.pageScroll=f;v.deltaX+=E;v.deltaY+=n;return new _.PV(YHi(v,v.deltaX),h5P(v,v.deltaY))};
_.KL.prototype.onScroll_=function(v){var E=AO4(this,0,0);v.clientX=this.clientX;v.clientY=this.clientY;V51(this,v,E.x,E.y)};
var V51=function(v,E,n,f){v.target.style.left=n+"px";v.target.style.top=f+"px";v.dispatchEvent(new d$("drag",v,E.clientX,E.clientY,E,n,f))},YHi=function(v,E){var n=v.limits;
v=isNaN(n.left)?null:n.left;n=isNaN(n.width)?0:n.width;return Math.min(v!=null?v+n:Infinity,Math.max(v!=null?v:-Infinity,E))},h5P=function(v,E){var n=v.limits;
v=isNaN(n.top)?null:n.top;n=isNaN(n.height)?0:n.height;return Math.min(v!=null?v+n:Infinity,Math.max(v!=null?v:-Infinity,E))};
_.KL.prototype.isDragging=function(){return this.dragging_};
var d$=function(v,E,n,f,x,y,Q){_.py.call(this,v);this.clientX=n;this.clientY=f;this.browserEvent=x;this.left=y!==void 0?y:E.deltaX;this.top=Q!==void 0?Q:E.deltaY};
_.tf(d$,_.py);var I_=function(v){this.JSC$8047_map_=new Map;var E=arguments.length;if(E>1){if(E%2)throw Error("oa");for(var n=0;n<E;n+=2)this.set(arguments[n],arguments[n+1])}else v&&this.addAll(v)};
_.c=I_.prototype;_.c.getCount=function(){return this.JSC$8047_map_.size};
_.c.getValues=function(){return Array.from(this.JSC$8047_map_.values())};
_.c.getKeys=function(){return Array.from(this.JSC$8047_map_.keys())};
_.c.containsKey=function(v){return this.JSC$8047_map_.has(v)};
_.c.containsValue=function(v){return this.getValues().some(function(E){return E==v})};
_.c.equals=function(v,E){var n=this;E=E===void 0?function(f,x){return f===x}:E;
return this===v?!0:this.JSC$8047_map_.size!=v.getCount()?!1:this.getKeys().every(function(f){return E(n.JSC$8047_map_.get(f),v.get(f))})};
_.c.isEmpty=function(){return this.JSC$8047_map_.size==0};
_.c.clear=function(){this.JSC$8047_map_.clear()};
_.c.remove=function(v){return this.JSC$8047_map_.delete(v)};
_.c.get=function(v,E){return this.JSC$8047_map_.has(v)?this.JSC$8047_map_.get(v):E};
_.c.set=function(v,E){this.JSC$8047_map_.set(v,E);return this};
_.c.addAll=function(v){if(v instanceof I_){v=_.p(v.JSC$8047_map_);for(var E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;this.JSC$8047_map_.set(E,n)}}else if(v)for(v=_.p(Object.entries(v)),E=v.next();!E.done;E=v.next())n=_.p(E.value),E=n.next().value,n=n.next().value,this.JSC$8047_map_.set(E,n)};
_.c.forEach=function(v,E){var n=this;E=E===void 0?this:E;this.JSC$8047_map_.forEach(function(f,x){return v.call(E,f,x,n)})};
_.c.clone=function(){return new I_(this)};(function(){for(var v=["ms","moz","webkit","o"],E,n=0;E=v[n]&&!_.n1.requestAnimationFrame;++n)_.n1.requestAnimationFrame=_.n1[E+"RequestAnimationFrame"],_.n1.cancelAnimationFrame=_.n1[E+"CancelAnimationFrame"]||_.n1[E+"CancelRequestAnimationFrame"];if(!_.n1.requestAnimationFrame){var f=0;_.n1.requestAnimationFrame=function(x){var y=(new Date).getTime(),Q=Math.max(0,16-(y-f));f=y+Q;return _.n1.setTimeout(function(){x(y+Q)},Q)};
_.n1.cancelAnimationFrame||(_.n1.cancelAnimationFrame=function(x){clearTimeout(x)})}})();
var DpS=[[],[]],HEP=0,gmw=!1,Ndg=0,jPF=function(v,E){var n=Ndg++,f={measureTask:{id:n,fn:v.measure,context:E},mutateTask:{id:n,fn:v.mutate,context:E},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(f.args||(f.args=[]),f.args.length=0,f.args.push.apply(f.args,arguments),f.args.push(f.state)):f.args&&f.args.length!=0?(f.args[0]=f.state,f.args.length=1):f.args=[f.state];f.isScheduled||(f.isScheduled=!0,DpS[HEP].push(f));gmw||(gmw=!0,window.requestAnimationFrame(u7l))}},u7l=
function(){gmw=!1;
var v=DpS[HEP],E=v.length;HEP=(HEP+1)%2;for(var n,f=0;f<E;++f){n=v[f];var x=n.measureTask;n.isScheduled=!1;x.fn&&x.fn.apply(x.context,n.args)}for(f=0;f<E;++f)n=v[f],x=n.mutateTask,n.isScheduled=!1,x.fn&&x.fn.apply(x.context,n.args),n.state={};v.length=0};var OE1=_.jU(["about:blank"]),kTS=_.jU(["javascript:undefined"]),Wx1=_.i_(OE1);_.c5(Wx1);var $pX=_.i_(kTS);_.c5($pX);var YY=function(v){_.mP.call(this);this.JSC$8053_element_=v;this.listenKeyIn_=_.v8(this.JSC$8053_element_,"focus",this,!0);this.listenKeyOut_=_.v8(this.JSC$8053_element_,"blur",this,!0)};
_.tf(YY,_.mP);YY.prototype.handleEvent=function(v){var E=new _.Qu(v.event_);E.type=v.type=="focusin"||v.type=="focus"?"focusin":"focusout";this.dispatchEvent(E)};
YY.prototype.disposeInternal=function(){YY.superClass_.disposeInternal.call(this);RU(this.listenKeyIn_);RU(this.listenKeyOut_);delete this.JSC$8053_element_};var Lxi=function(v,E){this.JSC$8056_element_=v;this.JSC$8056_dom_=E};var ht=function(v,E){U6.call(this,E);this.useIframeMask_=!!v;this.lastFocus_=null;this.resizeBackgroundTask_=jPF({mutate:this.resizeBackground_},this);jPF({mutate:this.updateModalAndBackground_},this)};
_.tf(ht,U6);_.c=ht.prototype;_.c.focusHandler_=null;_.c.visible_=!1;_.c.bgEl_=null;_.c.bgIframeEl_=null;_.c.tabCatcherElement_=null;_.c.backwardTabWrapInProgress_=!1;_.c.getCssClass=function(){return"goog-modalpopup"};
_.c.getBackgroundElement=function(){return this.bgEl_};
_.c.JSC$8037_createDom=function(){ht.superClass_.JSC$8037_createDom.call(this);var v=this.getElement(),E=wL(this.getCssClass()).split(" ");Vu(v,E);v.tabIndex=0;_.dC(v,!1);GTg(this);TdP(this)};
var GTg=function(v){if(v.useIframeMask_&&!v.bgIframeEl_){var E=v.JSC$8035_dom_.JSC$7224_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.qa(E,Wx1);v.bgIframeEl_=E;v.bgIframeEl_.className=v.getCssClass()+"-bg";_.dC(v.bgIframeEl_,!1);tM1(v.bgIframeEl_,0)}v.bgEl_||(v.bgEl_=v.JSC$8035_dom_.JSC$7224_createDom("DIV",v.getCssClass()+"-bg"),_.dC(v.bgEl_,!1))},TdP=function(v){v.tabCatcherElement_||(v.tabCatcherElement_=v.JSC$8035_dom_.createElement("SPAN"),_.dC(v.tabCatcherElement_,
!1),v.tabCatcherElement_.tabIndex=0,v.tabCatcherElement_.style.position="absolute")};
_.c=ht.prototype;_.c.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.c.canDecorate=function(v){return!!v&&v.tagName=="DIV"};
_.c.decorateInternal=function(v){ht.superClass_.decorateInternal.call(this,v);v=wL(this.getCssClass()).split(" ");Vu(this.getElement(),v);GTg(this);TdP(this);this.getElement().tabIndex=0;_.dC(this.getElement(),!1)};
_.c.enterDocument=function(){this.bgIframeEl_&&_.Mm(this.bgIframeEl_,this.getElement());_.Mm(this.bgEl_,this.getElement());ht.superClass_.enterDocument.call(this);_.Sr(this.tabCatcherElement_,this.getElement());this.focusHandler_=new YY(this.JSC$8035_dom_.JSC$7222_document_);qT(this).listen(this.focusHandler_,"focusin",this.onFocus);iEF(this,!1)};
_.c.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.uU(this.focusHandler_);ht.superClass_.exitDocument.call(this);_.fT(this.bgIframeEl_);_.fT(this.bgEl_);_.fT(this.tabCatcherElement_)};
_.c.setVisible=function(v){if(v!=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_&&iEF(this,v),v){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8035_dom_.JSC$7222_document_.activeElement}catch(x){}this.updateModalAndBackground_();qT(this).listen(this.JSC$8035_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8035_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);z5w(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)zl(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){qT(this).unlisten(this.JSC$8035_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8035_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)zl(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var E=this.JSC$8035_dom_,n=E.JSC$7222_document_.body,f=E.JSC$7222_document_.activeElement||n;if(!this.lastFocus_||this.lastFocus_==n){this.lastFocus_=null;break a}(f==n||E.contains(this.getElement(),f))&&this.lastFocus_.focus()}catch(x){}this.lastFocus_=
null}}};
var iEF=function(v,E){v.modalAriaVisibilityHelper_||(v.modalAriaVisibilityHelper_=new Lxi(v.JSC$8035_element_,v.JSC$8035_dom_));v=v.modalAriaVisibilityHelper_;if(E){v.hiddenElements_||(v.hiddenElements_=[]);E=v.JSC$8056_dom_.getChildren(v.JSC$8056_dom_.JSC$7222_document_.body);for(var n=0;n<E.length;n++){var f=E[n],x;if(x=f!=v.JSC$8056_element_)x=f.getAttribute("aria-hidden"),x=!(x==null||x==void 0?0:String(x));x&&(Jt(f,"hidden",!0),v.hiddenElements_.push(f))}}else if(v.hiddenElements_){for(E=0;E<
v.hiddenElements_.length;E++)v.hiddenElements_[E].removeAttribute("aria-hidden");v.hiddenElements_=null}};
ht.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var z5w=function(v,E){v.bgIframeEl_&&_.dC(v.bgIframeEl_,E);v.bgEl_&&_.dC(v.bgEl_,E);_.dC(v.getElement(),E);_.dC(v.tabCatcherElement_,E)};
_.c=ht.prototype;_.c.onShow=function(){this.dispatchEvent("show")};
_.c.onHide=function(){z5w(this,!1);this.dispatchEvent("hide")};
_.c.isVisible=function(){return this.visible_};
_.c.focus=function(){this.focusElement_()};
_.c.resizeBackground_=function(){this.bgIframeEl_&&_.dC(this.bgIframeEl_,!1);this.bgEl_&&_.dC(this.bgEl_,!1);var v=this.JSC$8035_dom_.JSC$7222_document_;var E=_.xr(ai(this.JSC$8035_dom_.JSC$7222_document_)||window);var n=Math.max(E.width,Math.max(v.body.scrollWidth,v.documentElement.scrollWidth));v=Math.max(E.height,Math.max(v.body.scrollHeight,v.documentElement.scrollHeight));this.bgIframeEl_&&(_.dC(this.bgIframeEl_,!0),_.T_F(this.bgIframeEl_,n,v));this.bgEl_&&(_.dC(this.bgEl_,!0),_.T_F(this.bgEl_,
n,v))};
_.c.reposition=function(){var v;if(_.G3F(this.getElement())=="fixed")var E=v=0;else E=cV(this.JSC$8035_dom_),v=E.x,E=E.y;var n=zKS(this.getElement());var f=_.xr(ai(this.JSC$8035_dom_.JSC$7222_document_)||window);v=Math.max(v+f.width/2-n.width/2,0);E=Math.max(E+f.height/2-n.height/2,0);Iy(this.getElement(),v,E);Iy(this.tabCatcherElement_,v,E)};
_.c.onFocus=function(v){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():v.target==this.tabCatcherElement_&&rk(this.focusElement_,0,this)};
_.c.focusElement_=function(){try{this.getElement().focus()}catch(v){}};
_.c.disposeInternal=function(){_.uU(this.popupShowTransition_);this.popupShowTransition_=null;_.uU(this.popupHideTransition_);this.popupHideTransition_=null;_.uU(this.bgShowTransition_);this.bgShowTransition_=null;_.uU(this.bgHideTransition_);this.bgHideTransition_=null;ht.superClass_.disposeInternal.call(this)};var Pv=function(v,E,n){ht.call(this,E,n);this.JSC$8066_class_=v||"modal-dialog";this.buttons_=(new At).addButton(R5P,!0).addButton(t5i,!1,!0)};
_.tf(Pv,ht);_.c=Pv.prototype;_.c.escapeToCancel_=!0;_.c.hasTitleCloseButton_=!0;_.c.modal_=!0;_.c.draggable_=!0;_.c.backgroundElementOpacity_=.5;_.c.title_="";_.c.JSC$8068_dragger_=null;_.c.JSC$8068_disposeOnHide_=!1;_.c.titleEl_=null;_.c.titleTextEl_=null;_.c.titleTextId_=null;_.c.titleCloseEl_=null;_.c.contentEl_=null;_.c.buttonEl_=null;_.c.getCssClass=function(){return this.JSC$8066_class_};
_.c.setTitle=function(v){this.title_=v;this.titleTextEl_&&_.qm(this.titleTextEl_,v)};
_.c.getTitle=function(){return this.title_};
_.c.getContent=function(){return""};
_.c.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Bdl=function(v){v.getElement()||v.render();return v.getElement()};
Pv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Pv.superClass_.getBackgroundElement.call(this)};
var vHS=function(v,E){v.backgroundElementOpacity_=E;v.getElement()&&(E=v.getBackgroundElement())&&tM1(E,v.backgroundElementOpacity_)};
Pv.prototype.setDraggable=function(v){this.draggable_=v;EH1(this,v&&this.inDocument_)};
Pv.prototype.JSC$8068_handleDrag=function(){};
var EH1=function(v,E){var n=wL(v.JSC$8066_class_+"-title-draggable").split(" ");v.getElement()&&(E?Vu(v.titleEl_,n):YVg(v.titleEl_,n));E&&!v.JSC$8068_dragger_?(E=new _.KL(v.getElement(),v.titleEl_),v.JSC$8068_dragger_=E,Vu(v.titleEl_,n),_.v8(v.JSC$8068_dragger_,"start",v.setDraggerLimits_,!1,v),_.v8(v.JSC$8068_dragger_,"drag",v.JSC$8068_handleDrag,!1,v)):!E&&v.JSC$8068_dragger_&&(v.JSC$8068_dragger_.dispose(),v.JSC$8068_dragger_=null)};
_.c=Pv.prototype;
_.c.JSC$8037_createDom=function(){Pv.superClass_.JSC$8037_createDom.call(this);var v=this.getElement(),E=this.JSC$8035_dom_;this.titleTextId_=this.getId();var n=this.getId()+".contentEl";this.titleEl_=E.JSC$7224_createDom("DIV",this.JSC$8066_class_+"-title",this.titleTextEl_=E.JSC$7224_createDom("SPAN",{className:this.JSC$8066_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=E.JSC$7224_createDom("SPAN",this.JSC$8066_class_+"-title-close"));JRz(v,this.titleEl_,this.contentEl_=
E.JSC$7224_createDom("DIV",{className:this.JSC$8066_class_+"-content",id:n}),this.buttonEl_=E.JSC$7224_createDom("DIV",this.JSC$8066_class_+"-buttons"));Kxo(this.titleTextEl_,"heading");Kxo(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Jt(this.titleCloseEl_,"label","Close");Kxo(v,"dialog");Jt(v,"labelledby",this.titleTextId_||"");_.dC(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(v=this.buttons_,v.JSC$8069_element_=this.buttonEl_,v.render());_.dC(this.buttonEl_,!!this.buttons_);
vHS(this,this.backgroundElementOpacity_)};
_.c.decorateInternal=function(v){Pv.superClass_.decorateInternal.call(this,v);v=this.getElement();var E=this.JSC$8066_class_+"-content";this.contentEl_=sP(document,null,E,v)[0];this.contentEl_||(this.contentEl_=this.JSC$8035_dom_.JSC$7224_createDom("DIV",E),v.appendChild(this.contentEl_));E=this.JSC$8066_class_+"-title";var n=this.JSC$8066_class_+"-title-text",f=this.JSC$8066_class_+"-title-close";(this.titleEl_=sP(document,null,E,v)[0])?(this.titleTextEl_=sP(document,null,n,this.titleEl_)[0],this.titleCloseEl_=
sP(document,null,f,this.titleEl_)[0]):(this.titleEl_=this.JSC$8035_dom_.JSC$7224_createDom("DIV",E),v.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=O06(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.PM("SPAN",{className:n,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Jt(v,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8035_dom_.JSC$7224_createDom("SPAN",
f),this.titleEl_.appendChild(this.titleCloseEl_));_.dC(this.titleCloseEl_,this.hasTitleCloseButton_);E=this.JSC$8066_class_+"-buttons";(this.buttonEl_=sP(document,null,E,v)[0])?(this.buttons_=new At(this.JSC$8035_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8035_dom_.JSC$7224_createDom("DIV",E),v.appendChild(this.buttonEl_),this.buttons_&&(v=this.buttons_,v.JSC$8069_element_=this.buttonEl_,v.render()),_.dC(this.buttonEl_,!!this.buttons_));vHS(this,this.backgroundElementOpacity_)};
_.c.enterDocument=function(){Pv.superClass_.enterDocument.call(this);qT(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);qT(this).listen(this.buttonEl_,"click",this.onButtonClick_);EH1(this,this.draggable_);qT(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var v=this.getElement();Kxo(v,"dialog");this.titleTextEl_.id!==""&&Jt(v,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){v=this.JSC$8035_dom_;
var E=this.getBackgroundElement();v.removeNode(this.bgIframeEl_);v.removeNode(E)}this.isVisible()&&iEF(this,!1)}};
_.c.exitDocument=function(){this.isVisible()&&this.setVisible(!1);EH1(this,!1);Pv.superClass_.exitDocument.call(this)};
_.c.setVisible=function(v){v!=this.isVisible()&&(this.inDocument_||this.render(),Pv.superClass_.setVisible.call(this,v))};
_.c.onShow=function(){Pv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.c.onHide=function(){Pv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8068_disposeOnHide_&&this.dispose()};
_.c.setDraggerLimits_=function(){var v=this.JSC$8035_dom_.JSC$7222_document_,E=_.xr(ai(v)||window),n=Math.max(v.body.scrollWidth,E.width);v=Math.max(v.body.scrollHeight,E.height);var f=zKS(this.getElement());_.G3F(this.getElement())=="fixed"?this.JSC$8068_dragger_.limits=new JP(0,0,Math.max(0,E.width-f.width),Math.max(0,E.height-f.height)):this.JSC$8068_dragger_.limits=new JP(0,0,n-f.width,v-f.height)};
_.c.onTitleCloseClick_=function(){nHX(this)};
var nHX=function(v){if(v.hasTitleCloseButton_){var E=v.buttons_,n=E&&E.cancelButton_;n?(E=E.get(n),v.dispatchEvent(new Vd(n,E))&&v.setVisible(!1)):v.setVisible(!1)}},oHU=function(v){v.hasTitleCloseButton_=!1;
v.titleCloseEl_&&_.dC(v.titleCloseEl_,v.hasTitleCloseButton_)};
Pv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Pv.superClass_.disposeInternal.call(this)};
Pv.prototype.onButtonClick_=function(v){a:{for(v=v.target;v!=null&&v!=this.buttonEl_;){if(v.tagName=="BUTTON")break a;v=v.parentNode}v=null}if(v&&!v.disabled){v=v.name;var E=this.buttons_.get(v);this.dispatchEvent(new Vd(v,E))&&this.setVisible(!1)}};
Pv.prototype.onKey_=function(v){var E=!1,n=!1,f=this.buttons_,x=v.target;if(v.type=="keydown")if(this.escapeToCancel_&&v.keyCode==27){var y=f&&f.cancelButton_;x=x.tagName=="SELECT"&&!x.disabled;y&&!x?(n=!0,E=f.get(y),E=this.dispatchEvent(new Vd(y,E))):x||(E=!0)}else{if(v.keyCode==9&&v.shiftKey&&x==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(l){}rk(this.resetBackwardTabWrap_,0,this)}}else if(v.keyCode==13){if(x.tagName=="BUTTON"&&!x.disabled)y=x.name;
else if(x==this.titleCloseEl_)nHX(this);else if(f){var Q=f.defaultButton_,e;if(e=Q)a:{e=xE("BUTTON",f.JSC$8069_element_);for(var F,b=0;F=e[b];b++)if(F.name==Q||F.id==Q){e=F;break a}e=null}x=(x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="A")&&!x.disabled;!e||e.disabled||x||(y=Q)}y&&f&&(n=!0,E=this.dispatchEvent(new Vd(y,String(f.get(y)))))}else x!=this.titleCloseEl_||v.keyCode!=32&&v.key!=" "||nHX(this);if(E||n)v.stopPropagation(),v.preventDefault();E&&this.setVisible(!1)};
var Vd=function(v,E){this.type="dialogselect";this.key=v;this.caption=E};
_.tf(Vd,_.py);var At=function(v){I_.call(this);v||y4();this.cancelButton_=this.JSC$8069_element_=this.defaultButton_=null};
_.tf(At,I_);_.c=At.prototype;_.c.clear=function(){I_.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.c.set=function(v,E,n,f){I_.prototype.set.call(this,v,E);n&&(this.defaultButton_=v);f&&(this.cancelButton_=v);return this};
_.c.addButton=function(v,E,n){return this.set(v.key,v.caption,E,n)};
_.c.render=function(){if(this.JSC$8069_element_){_.Dd(this.JSC$8069_element_,dXy);var v=y4(this.JSC$8069_element_);this.forEach(function(E,n){E=v.JSC$7224_createDom("BUTTON",{name:n},E);n==this.defaultButton_&&(E.className="goog-buttonset-default");this.JSC$8069_element_.appendChild(E)},this)}};
_.c.decorate=function(v){if(v&&v.nodeType==1){this.JSC$8069_element_=v;v=xE("BUTTON",this.JSC$8069_element_);for(var E,n,f,x=0;E=v[x];x++)if(n=E.name||E.id,f=O06(E)||E.value,n){var y=x==0;this.set(n,f,y,E.name=="cancel");y&&_.qd(E,"goog-buttonset-default")}}};
_.c.getElement=function(){return this.JSC$8069_element_};
var R5P={key:"ok",caption:"OK"},t5i={key:"cancel",caption:"Cancel"},f$1={key:"yes",caption:"Yes"},x1o={key:"no",caption:"No"},cs1={key:"save",caption:"Save"},ysX={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new At).addButton(R5P,!0,!0),(new At).addButton(R5P,!0).addButton(t5i,!1,!0),(new At).addButton(f$1,!0).addButton(x1o,!1,!0),(new At).addButton(f$1).addButton(x1o,!0).addButton(t5i,!1,!0),(new At).addButton(ysX).addButton(cs1).addButton(t5i,!0,!0));_.tf(rMA,Pv);_.tf(P5E,ac);var p7w=_.jU(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),QY4=_.jU(["//apis.google.com/js/rpc.js"]),KMQ=_.i_(p7w),JMX=_.i_(QY4),Zks=null;var ZB=function(v,E){_.mP.call(this);this.JSC$8078_element_=v;v=_.YH(this.JSC$8078_element_)?this.JSC$8078_element_:this.JSC$8078_element_?this.JSC$8078_element_.body:null;this.isRtl_=!!v&&_.B_F(v);this.listenKey_=_.v8(this.JSC$8078_element_,_.oG?"DOMMouseScroll":"mousewheel",this,E)};
_.tf(ZB,_.mP);ZB.prototype.handleEvent=function(v){var E=0,n=0,f=v.event_;f.type=="mousewheel"?(v=X7g(-f.wheelDelta),f.wheelDeltaX!==void 0?(E=X7g(-f.wheelDeltaX),n=X7g(-f.wheelDeltaY)):n=v):(v=f.detail,v>100?v=3:v<-100&&(v=-3),f.axis!==void 0&&f.axis===f.HORIZONTAL_AXIS?E=v:n=v);typeof this.maxDeltaX_==="number"&&(E=_.Jf(E,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(n=_.Jf(n,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(E=-E);E=new eRU(v,f,E,n);this.dispatchEvent(E)};
var X7g=function(v){return _.f9&&(_.ejQ||mfX)&&v%40!=0?v:v/40};
ZB.prototype.disposeInternal=function(){ZB.superClass_.disposeInternal.call(this);RU(this.listenKey_);this.listenKey_=null};
var eRU=function(v,E,n,f){_.Qu.call(this,E);this.type="mousewheel";this.detail=v;this.deltaX=n;this.deltaY=f};
_.tf(eRU,_.Qu);_.v_=function(v){var E="instance_";if(v.instance_&&v.hasOwnProperty(E))return v.instance_;E=new v;return v.instance_=E};var qOF;var FiP=_.jU(["https://about:blank"]),m1o=_.jU(['javascript:""']),w71=_.jU(["about:blank"]);_.tf(Ic,rMA);_.c=Ic.prototype;_.c.JSC$8086_url_="";_.c.JSC$8086_iframe_=null;_.c.iframeLoaded_=!1;_.c.loadedFired_=!1;_.c.callback_=function(){};
_.c.enterDocument=function(){Ic.superClass_.enterDocument.call(this);SOX(this.getBackgroundElement(),qT(this))};
_.c.render=function(v){var E=this;Ic.superClass_.render.call(this,v);this.useGapi_?wAi(this.iframeManager_,window).then(function(){return bZ1(E)}).then(null,function(){E.callback_({action:"error"})}):l$o(this)};
var bZ1=function(v){var E=v.JSC$8035_dom_.JSC$7224_createDom("div",["picker-dialog-content","picker-frame"]);_.dC(E,!1);v.getContentElement().appendChild(E);return bEz(v.iframeManager_,E,function(n){var f=iWg(n["iframe-command"]);switch(f.getCommand()){case 1:n=v.callback_;f=_.j5(f,GN,2);var x="";switch(f.getStatus()){case 2:x="cancel";break;case 1:x="picked";break;case 3:x="error"}var y=_.kr(f,rO,2,_.WV(gNL));f=y.length===0?{action:x}:zxg(y,x,_.j5(f,L9X,7));n.call(v,f);v.setVisible(!1);break;case 4:oHU(v);
v.callback_({action:"loaded"});break;case 7:case 8:n=v.callback_;a:{x=f.getCommand();y=_.j5(f,GN,2);switch(x){case 7:x="uploadScheduled";break;case 8:x="uploadStateChange";break;default:f={};break a}f=_.kr(y,rO,2,_.WV(gNL));if(f.length===0)f={action:x};else{var Q=_.j5(y,L9X,7);y=Q&&_.Sf(Q,1);Q=NB1(Q);f=Oko(f,x,y,Q)}}n.call(v,f)}},v.JSC$8086_url_,v.targetId_,v.rpcToken_).then(function(n){v.JSC$8086_iframe_=n.getIframeEl();
sYo(v);_.dC(v.JSC$8086_iframe_.parentElement,!0);_.qd(v.getElement(),"picker-dialog");rs1(v);return n})},l$o=function(v){v.JSC$8086_iframe_=v.JSC$8035_dom_.JSC$7224_createDom("IFRAME",{id:v.targetId_,
name:v.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.qa(v.JSC$8086_iframe_,P6g(v));_.qd(v.getElement(),"picker-dialog");v.getContentElement().appendChild(v.JSC$8086_iframe_);qT(v).listen(v.JSC$8086_iframe_,"load",function(){return void sYo(v)});
v.JSC$8086_iframe_.src=v.JSC$8086_url_;rs1(v)},ZZ1=function(v){a$i(v,(0,_.XV)(function(E){E.setAuthToken(this.targetId_,this.rpcToken_)},v))},rs1=function(v){var E=_.J7(_.qE(v.JSC$8086_url_),"title");
E&&v.setTitle(E)},P6g=function(v){return _.eyE("Internet Explorer")>=7&&_.cI(v.JSC$8086_url_,"https")?_.i_(FiP):_.n9?_.i_(m1o):_.i_(w71)},sYo=function(v){ZZ1(v);
v.iframeLoaded_=!0;v.JSC$8086_iframe_.tabIndex=0;v.isVisible()&&v.focus()};
Ic.prototype.handleKeydown_=function(v){v.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),v.stopPropagation(),v.preventDefault())};
var a$i=function(v,E){var n=v.JSC$8084_gadgetsDomHelper_;C5L(function(){E(n.getWindow().gadgets.rpc)},n)};
Ic.prototype.setUrl=function(v){v=_.KT(new _.IT(v),"rpcService",this.targetId_);_.KT(v,"rpctoken",this.rpcToken_);_.ig(v,"rpctoken="+this.rpcToken_);_.WF(v,"https");this.JSC$8086_url_=v.toString();this.JSC$8086_iframe_&&(this.JSC$8086_iframe_.src=this.JSC$8086_url_)};
var C6o=function(v,E){v.callback_=E;a$i(v,(0,_.XV)(function(n){n.register(this.targetId_,(0,_.XV)(this.handlePickerAction_,this))},v))};
Ic.prototype.handlePickerAction_=function(v){var E=v.action;E=="loaded"&&(this.loadedFired_=!0,MDP(this,new s59(this.isVisible())),SUF(this),oHU(this),qT(this).unlisten(this.JSC$8035_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8086_iframe_.tabIndex=0);E!="picked"&&E!="cancel"||this.setVisible(!1);this.callback_(v)};
var SUF=function(v){v.JSC$8086_appId_&&MDP(v,new lUL(v.JSC$8086_appId_,window.location.protocol+"//"+window.location.host))};
Ic.prototype.setRelayUrl=function(v){a$i(this,(0,_.XV)(function(E){E.setRelayUrl(this.targetId_,v)},this))};
var MDP=function(v,E){v.useGapi_&&auo(E,v.iframeManager_).then(null,function(){v.callback_({action:"error"})});
a$i(v,(0,_.XV)(function(n){n.call(this.targetId_,"picker",null,E)},v))};
Ic.prototype.resizePicker_=function(){var v=ai(this.JSC$8035_dom_.JSC$7222_document_)||window;if(_.J7(_.qE(this.JSC$8086_url_),"ignoreLimits")=="true")v=new _.fs(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.J7(_.qE(this.JSC$8086_url_),"shadeDialog")=="true"){var E=Bdl(this);E=vb6(E);var n=_.xr(v);v=n.width-80;n=n.height-40;E&&(v-=E.left?E.left:0,v-=E.right?E.right:0,n-=E.top?E.top:0,n-=E.bottom?E.bottom:0);v=new _.fs(v>0?v:0,n>0?n:0)}else(E=this.preferredDialogWidth_)?(E=Math.max(320,
Math.min(1051,E)),(n=this.preferredDialogHeight_)||(n=_.xr(v).height*.85),n=Math.max(480,Math.min(650,n))):(E=_.xr(v),n=E.width*.618,n=n<E.height?Math.round(Math.max(480,Math.min(650,n*.85))):Math.round(Math.max(480,Math.min(650,E.height*.85))),E=Math.round(n/.618)),v=_.xr(v),E=Math.min(E,Math.max(v.width,320)),n=Math.min(n,Math.max(v.height,480)),v=new _.fs(E,n);_.T_F(this.getContentElement(),v);this.reposition()};
Ic.prototype.reposition=function(){if(_.J7(_.qE(this.JSC$8086_url_),"shadeDialog")=="true"){var v=zKS(this.getElement()),E=_.xr(this.JSC$8035_dom_.getWindow());v=Math.floor(E.width/2-v.width/2);E=Bdl(this);if(E=vb6(E)){var n=E.left?E.left:0;n+=E.right?E.right:0;v=Math.floor(v-n/2)}v=v>0?v:0;E=cV(this.JSC$8035_dom_).y;Iy(this.getElement(),v,E)}else Ic.superClass_.reposition.call(this)};
Ic.prototype.setVisible=function(v){if(v!=this.isVisible()&&this.autoSizeDialog_){var E=this.JSC$8035_dom_.getWindow();v?(this.resizePicker_(),qT(this).listen(E,"resize",this.resizePicker_),this.iframeLoaded_||qT(this).listen(E,"keydown",this.handleKeydown_)):(qT(this).unlisten(E,"resize",this.resizePicker_),this.iframeLoaded_||qT(this).unlisten(E,"keydown",this.handleKeydown_))}Ic.superClass_.setVisible.call(this,v);MDP(this,new s59(v))};
Ic.prototype.focus=function(){Ic.superClass_.focus.call(this);if(this.JSC$8086_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8086_iframe_.focus()}catch(v){}};var En=function(v,E){E=E===void 0?Ic:E;ac.call(this,v);this.pickerConstructor=E;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(v=window.location.origin)||(v=window.location.protocol+"//"+window.location.host);v&&this.urlParamMap_.set("origin",v);this.postProcessors_=[]};
_.S(En,P5E);En.prototype.JSC$8091_disposeOnHide_=!1;
En.prototype.build=function(){this.JSC$7992_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7992_appId_);this.getRelayUrl()||this.setRelayUrl(_.Gu(_.ig(_.Tu(_.qE(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var v=new this.pickerConstructor(U1i(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);v.JSC$8068_disposeOnHide_=this.JSC$8091_disposeOnHide_;
v.JSC$8086_appId_=this.JSC$7992_appId_;v.loadedFired_&&SUF(v);C6o(v,this.callback_);return v};
var qUX=function(v){v.urlParamMap_.set("multiselectEnabled","true");return v};
En.prototype.getHeight=function(){return this.dialogHeight_};
En.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
En.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
En.prototype.getWidth=function(){return this.dialogWidth_};
var JsP=function(v){v.JSC$8091_disposeOnHide_=void 0;return v};
En.prototype.setRelayUrl=function(v){this.urlParamMap_.set("parent",v);return this};
var KiP=function(v,E){v.urlParamMap_.set("selectButtonLabel",E);return v};
En.prototype.setSize=function(v,E){this.dialogWidth_=v;this.dialogHeight_=E;return this};
En.prototype.setTitle=function(v){this.urlParamMap_.set("title",v);return this};
var U1i=function(v){v.postProcessors_.length&&v.urlParamMap_.set("pp",JSON.stringify(v.postProcessors_));v.urlParamMap_.set("nav",VpF(v.nav_));var E=new _.IT(v.getBaseUrl());v.urlParamMap_.forEach(function(n,f){_.KT(E,f,n)});
return E};var YUP=function(v,E){v.name!==void 0?(this.name=v.name,this.code=d1w[v.name]):(this.code=v=v.code,this.name=I$1(v));_.vI.call(this,XUg("%s %s",this.name,E))};
_.tf(YUP,_.vI);var I$1=function(v){var E=_.sh.findKey(d1w,function(n){return v==n});
if(E===void 0)throw Error("lb`"+v);return E},D6={},d1w=(D6.AbortError=3,D6.EncodingError=5,D6.InvalidModificationError=9,D6.InvalidStateError=7,D6.NotFoundError=1,D6.NotReadableError=4,D6.NoModificationAllowedError=6,D6.PathExistsError=12,D6.QuotaExceededError=10,D6.SecurityError=2,D6.SyntaxError=8,D6.TypeMismatchError=11,D6);var hRP=function(v,E){_.py.call(this,v.type,E);this.event_=v};
_.tf(hRP,_.py);var Aso=function(v,E,n){n===void 0&&(n=v.size);return v.slice?v.slice(E,n):null};var YOE=new WeakMap,IUQ=function(v,E){v=[v];for(var n=E.length-1;n>=0;--n)v.push(typeof E[n],E[n]);return v.join("\v")};_.AME(function(){if(!_.n1.Blob)return!1;var v=new Uint8Array(100);try{var E=new Blob([v])}catch(n){return!1}return E.size!=100?!1:!0});
var VD4=_.AME(function(){if(!_.n1.Blob)return!1;var v=new Uint8Array(100);try{var E=new Blob([v])}catch(n){return!1}return Aso(E,0,1)===null?!1:!0});_.n1.U3bHHf!=null||(_.n1.U3bHHf=0);_.n1.U3bHHf++;var DXX={};var VK=void 0;var g69=Symbol("tb");var zxX=Hv("WizInjectionContext_Dispatcher");var $XA=Hv("WizInjectionContext_RootElement");var Ga9=Hv("WizInjectionContext_AppContext"),LMQ=Hv("WizInjectionContext_ModelRootElement"),TBE=Hv("WizInjectionContext_RendererData"),ikI=Hv("WizInjectionContext_InjectingConstructor"),WMI=Hv("WizInjectionContext_AsyncDeps"),RxE={};var nmN=!1;var D1l=Symbol("xb"),z5X=Symbol("yb"),vHs=Symbol("zb"),t5F=Symbol("Ab"),ysE=GS(function(v){return FxA(v)&&D1l in v});var cOQ={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:fxN,enableLazyTsx:xfX,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var uY=Object.assign({},{attributes:{},handleError:function(v){throw v;}},cOQ);var mpE=Symbol("Bb"),Hl={},XAy=(Hl[mpE]=!0,Hl.debugName="[component]",Hl.getComponentStack=function(){for(var v=[],E=this;E;)wAF(E)&&v.push(E.debugName),E=E.parent;return v},Hl.registerSignal=function(){},Hl.registerEffect=function(){},Hl);var jC=null,kE=!1,au9=1,Tc=Symbol("Cb"),np={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 g$=Symbol("Db"),NT=Symbol("Eb"),Gc=Symbol("Fb"),Kx9=Object.assign({},np,{value:g$,dirty:!0,error:null,equal:bEA,kind:"computed",producerMustRecompute:function(v){return v.value===g$||v.value===NT},
producerRecomputeValue:function(v){if(v.value===NT)throw Error("da");var E=v.value;v.value=NT;var n=UpI(v),f=!1;try{var x=v.computation();OV(null);f=E!==g$&&E!==Gc&&x!==Gc&&v.equal(E,x)}catch(y){x=Gc,v.error=y}finally{qHA(v,n)}f?v.value=E:(v.value=x,v.version++)}});var AOy=function(){throw Error();};var Dps=null,Iu$=Object.assign({},np,{equal:bEA,value:void 0,kind:"signal"});Object.assign({},np,{value:g$,dirty:!0,error:null,equal:bEA,kind:"linkedSignal",producerMustRecompute:function(v){return v.value===g$||v.value===NT},
producerRecomputeValue:function(v){if(v.value===NT)throw Error("da");var E=v.value;v.value=NT;var n=UpI(v);try{var f=v.source();var x=v.computation(f,E===g$||E===Gc?void 0:{source:v.sourceValue,value:E});v.sourceValue=f}catch(y){x=Gc,v.error=y}finally{qHA(v,n)}E!==g$&&x!==Gc&&v.equal(E,x)?v.value=E:(v.value=x,v.version++)}});Object.assign({},np,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(v){v.schedule!==null&&v.schedule(v.ref)},
hasRun:!1,cleanupFn:function(){}});var gmX=Symbol("Gb"),Bv=Symbol("Hb");var vf=Array.isArray;var GTX;var HZ1={},iE$=LxF(Object.assign({},{consumerAllowSignalWrites:!0},HZ1)),vG=LxF(Object.assign({},{consumerAllowSignalWrites:!0},HZ1));var x7=0,uw=function(){this.queue=new Set};
uw.prototype.remove=function(v){this.queue.delete(v)};
uw.prototype.clear=function(){this.queue.clear()};
var gHl=function(){uw.apply(this,arguments)};
_.S(gHl,uw);gHl.prototype.schedule=function(v){this.queue.add(v)};
gHl.prototype.flush=function(){if(this.queue.size)for(var v=_.p(this.queue),E=v.next();!E.done;E=v.next()){E=E.value;this.queue.delete(E);try{E.run()}catch(n){Nhz(n)}}};
var uOw=new gHl,j0=function(){uw.apply(this,arguments)};
_.S(j0,uw);var jYz=function(){j0.apply(this,arguments)};
_.S(jYz,j0);jYz.prototype.schedule=function(v){v.hasRun?this.queue.add(v):v.run()};
jYz.prototype.flush=function(){if(this.queue.size){var v=this.queue;this.queue=new Set;p7X(v)}};
var R5E=new jYz,OZP=function(){j0.apply(this,arguments)};
_.S(OZP,j0);OZP.prototype.schedule=function(v){var E=this;return _.X(function(n){if(n.nextAddress==1)return v.hasRun?n.jumpTo(2):_.m(n,Promise.resolve(),3);if(n.nextAddress!=2)return v.run(),n.return();E.queue.add(v);_.yQ(n)})};
OZP.prototype.flush=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1){if(!v.queue.size)return n.return();E=v.queue;v.queue=new Set;return _.m(n,Promise.resolve(),2)}p7X(E);_.yQ(n)})};
var EHN=new OZP,k21=function(){j0.apply(this,arguments)};
_.S(k21,j0);k21.prototype.schedule=function(v){this.queue.add(v)};
k21.prototype.flush=function(){this.queue.size&&p7X(this.queue)};
var Bd1=new k21,x19=[R5E,uOw,Bd1,EHN],WiU=[R5E,Bd1,EHN],oHI=[];Dps=function(){csL();for(var v=_.p(oHI),E=v.next();!E.done;E=v.next())E=E.value,E()};
var Nhz=o$;var yh=Symbol("Mb");var cf=null,m19,w7L=null,bZQ;var O6={},$1F=Object.assign({},np,(O6[D1l]=!0,O6.effectType=z5X,O6.isResettableContext=!0,O6.producerNode=void 0,O6.hasRun=!1,O6.effectFn=null,O6.consumerIsAlwaysLive=!0,O6.consumerAllowSignalWrites=!0,O6.consumerMarkedDirty=nHE,O6.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(kE)throw Error("Nb");this.dirty=!1;if(!this.hasRun||ZEA(this)){this.hasRun=!0;kaG(this);var v=DB(this),E=UpI(this);pA1("effectRun",this.debugName);try{Qh(this.effectFn,{stack:this.componentStack})}finally{QPX("effectRun",
this.debugName),qHA(this,E),DB(v)}}}},O6.componentStack=void 0,O6.debugName="[effect]",O6[Symbol.dispose]=function(){luA(this);
if(LT(this))for(var v=0;v<this.producerNode.length;v++)sPX(this.producerNode[v],this.producerIndexOfThis[v]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);v=_.p(WiU);for(var E=v.next();!E.done;E=v.next())E.value.remove(this);Ok9(this)},O6));var sY9=Object.assign({},$1F,{effectType:vHs});var rsQ=Object.assign({},$1F,{effectType:z5X});var P6X=Symbol("Ob");var E$y=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Hf=Symbol("Pb");var tv=function(){},fk=function(v){this.props=v;
this.__unmounted=!1};
fk.prototype.didPatch=function(){};
fk.prototype.didMount=function(){};
fk.prototype.didUnmount=function(){};
fk.prototype.didUpdate=function(){};var C69={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},ZZL={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}]}},GjA={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},U1F=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],SU$={"*":{async:1,dir:0,loading:2,target:3}};var Lio=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,kY={},JsE=(kY[1]=null,kY[2]=function(v,E){return E instanceof Ma?Uw(E):wV.toString()},kY[3]=function(v,E){return X_(E)?_.ec(E):Lio.test(String(E))?String(E):wV.toString()},kY[4]=function(v,E){return E instanceof oC?_.c5(E):wV.toString()},kY[5]=function(v,E){return String(E)},kY[7]=null,kY[8]=null,kY[10]=null,kY);var bhA=Symbol("Sb");var eJN=function(v){var E=G2z,n=v,f="",x="",y=1;v<0&&(v=-v);if(v===Infinity)v=(Infinity*Math.sign(n)).toString();else{for(var Q=0;Q<Th6.length;Q++){var e=Th6[Q];y=E[e];if(v>=y||y<=1&&v>.1*y){f=e;break}}f?(f+="B",x=" "):y=1;v=Math.round(n/y*10)/10+x+f}return v},Th6="Y Z E P T G M K  m u n".split(" "),G2z={"":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};_.iZX=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 $7={};RegExp.prototype.hasOwnProperty("sticky");var f4X=function(v){v=String(v);for(var E=function(f,x,y){for(var Q=Math.min(x.length-y,f.length),e=0;e<Q;e++){var F=x[y+e];if(f[e]!==("A"<=F&&F<="Z"?F.toLowerCase():F))return!1}return!0},n=0;(n=v.indexOf("<",n))!=-1;){if(E("\x3c/script",v,n)||E("\x3c!--",v,n))return"zSoyz";
n+=1}return v};var a0={default:"__default"};var VDy=Object.prototype.hasOwnProperty;I$Q.prototype=Object.create(null);var Vs=gH1();var Y7=null;var iZE=function(v){this.created=[];this.deleted=[];this.node=v};var zRX=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var v=this,E=v;v;)E=v,v=v.parentNode;return E};var uOX=function(v,E){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=v;this.key=E;this.text=void 0};var Sa=null,UB=null,Cp=null,Jv=null,$1$=[],WiI=OZE,dF=[],I0=[],wiX=function(v){return RRL(function(E,n,f){Cp=UB=E;UB=null;n(f);k2Q(null);UB=Cp;Cp=Cp.parentNode;return E},v)}(),mqX=function(v){return RRL(function(E,n,f){var x={nextSibling:E};
UB=x;n(f);Cp&&k2Q(E.nextSibling);return x===UB?null:UB},v)}();var hv=[],BhN=0;var Av=new I$Q;var fR=new I$Q;var zRw=gH1(),o$9=zRw[a0.default],xwX=zRw.style,n$y=["focusin","focusout"];var uus=function(){},KbQ=function(){},$wE=function(){},O3y=function(){};var DY=Symbol("Zb");var Fbs,e0$=XPG;var ia=Symbol("$b");var MQQ={};var Wby=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(" ")),
k1G=new Set(["a","font","script","style","title"]);var EO={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var nk=null,o5=function(v,E){fk.call(this,v);var n=this;this.functionComponent=E;this.hooks=[];this.hookCounter=0;this.disposeEffects=wF(function(f){n.effectContext=f;_.Fp(function(){h0I(n,n.el)})},uY.alwaysTrackContexts||!!VK)};
_.S(o5,fk);o5.prototype.render=function(v){var E=nk;nk=this;this.hookCounter=0;var n=OV(vG),f=DB(this.effectContext);try{return pA1("render",this.componentName),this.functionComponent(v)}finally{QPX("render",this.componentName),DB(f),OV(n),nk=E}};
_.hK.Object.defineProperties(o5.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return X7X(this.functionComponent)}}});var LbQ=Symbol("nc"),g$X=function(v,E,n){this.kind=v;this.props=E;this.children=n};
_.S(g$X,tv);g$X.prototype.render=function(){return H3$(this.kind,this.props,this.children)};
g$X.prototype.getChildren=function(){return this.children};var TtG=[];AOy=function(v){throw Error("sb`"+v.debugName);};
(function(){var v=Y7;Y7=function(E){v==null||v(E);i3I(E)}})();var RR1=void 0,tD4={},Bh1=new WeakMap,z0F={getComponent:function(v){if(v.hasAttribute("ng-version"))return tD4;if(!v.__wizComponent)return null;v=v.__wizComponent;Bh1.set(v.propsAndState,v);return v.propsAndState},
getDirectiveMetadata:function(v){if(v===tD4)return{framework:"wiz",name:"<Root>",props:{}};v=Bh1.get(v);if(!v)throw Error("oc");return{framework:"wiz",name:v.name,props:Object.fromEntries(Object.keys(v.props).map(function(E){return[E,E]}))}},
"\u0275setProfiler":function(v){var E;(E=RR1)==null||E();RR1=f$L(function(){v(2)})},
isSignal:function(v){return typeof v==="function"&&v[Tc]!==void 0}};var tQG={nonNullableCondIsNull:function(){return Error("sc")}};_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var fmE=function(){this.map=new Map};
fmE.prototype.push=function(v,E){var n=this.map;n.has(v)&&(this.multi||(this.multi=new Map),this.multi.set(E,n.get(v)));n.set(v,E)};
fmE.prototype.pop=function(v){var E=this.map,n=E.get(v),f;n!==void 0&&((f=this.multi)==null?0:f.has(n))?(E.set(v,this.multi.get(n)),this.multi.delete(n)):E.delete(v);return n};var QSE={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(v){return Error("uc`"+v)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(v,E){return Error("yc`"+v+"`"+E)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(v){return Error("zc`"+v)},
USE_ELEMENT_NOT_ASSIGNED:function(v){return Error("Ac`"+String(v))}};Fbs=Nty;var lm9=Symbol("Bc");I4X({beforeRender:function(v){var E=DB(v.effectContext);try{var n;((n=v.__syncEffects)==null?0:n.length)&&rKL(v.__syncEffects)}finally{DB(E)}},
didPatch:function(v){var E=DB(v.effectContext);try{var n;((n=v.__syncEffects)==null?0:n.length)&&rKL(v.__syncEffects)}finally{DB(E)}},
didUnmount:function(v){var E;((E=v.hooks)==null?0:E.length)&&v.hooks.forEach(sSQ)}});var v$1,E$4,n$4;v$1=_.n1.window;_.ZU=(v$1==null?void 0:(E$4=v$1.yt)==null?void 0:E$4.config_)||(v$1==null?void 0:(n$4=v$1.ytcfg)==null?void 0:n$4.data_)||{};_.Vc("yt.config_",_.ZU);var o$o={},C$Q=[];_.yc=function(v){var E=_.rV.apply(1,arguments);var n=Error.call(this,v);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.args=[].concat(_.s8(E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.yc,Error);var JtE=function(v,E,n){this.actionName=v;this.optionalAction=E===void 0?!1:E;this.args=n===void 0?null:n;this.returnValue=[]};_.z=function(v){this.name=v};_.Z4=new _.z("signalAction");var AKL=/^[\w.]*$/,JKE={q:!0,search_query:!0},q2$=String(UOG);var Wl;Wl=Symbol("Cc");_.$Y=function(v){this.name=v};
_.$Y.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var V$E=function(v){this.key=v},g0N=function(v){this.deferredKey=v},HVE=function(){var v=this;
this.providers=new Map;this.JSC$8306_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(v.providers)}}};
HVE.prototype.addProvider=function(v){this.providers.set(v.provide,v);var E=this.JSC$8306_deferred.get(v.provide);if(E)try{E.resolver(this.resolve(v.provide))}catch(n){E.rejector(n)}};
HVE.prototype.resolve=function(v){return v instanceof g0N?f4w(this,v):v instanceof V$E?xww(this,v.key,[],!0):xww(this,v,[])};
var f4w=function(v,E){E=E.deferredKey;if(v.JSC$8306_deferred.has(E))return v.JSC$8306_deferred.get(E).promise;var n={};n.promise=new Promise(function(f,x){n.resolver=f;n.rejector=x});
v.JSC$8306_deferred.set(E,n);return n.promise},xww=function(v,E,n,f){f=f===void 0?!1:f;
if(n.indexOf(E)>-1)throw Error("Dc`"+E);if(v.cachedValues.has(E))return v.cachedValues.get(E);if(!v.providers.has(E)){if(f)return;throw Error("Ec`"+E);}f=v.providers.get(E);n.push(E);if(f.useValue!==void 0)var x=f.useValue;else if(f.useFactory)x=f[Wl]?coU(v,f[Wl],n):[],x=f.useFactory.apply(f,_.s8(x));else if(f.useClass){x=f.useClass;var y=x[Wl]?coU(v,x[Wl],n):[];x=new (Function.prototype.bind.apply(x,[null].concat(_.s8(y))))}else throw Error("Fc`"+E);n.pop();f.skipCache||v.cachedValues.set(E,x);return x},
coU=function(v,E,n){return E?E.map(function(f){return f instanceof V$E?xww(v,f.key,n,!0):xww(v,f,n)}):[]};var DOF;var SQ=new _.$Y("ENDPOINT_HANDLER_TOKEN");_.Us=new _.z("urlEndpoint");var yol=function(){this.data=[];this.cachedPackedInt52=-1};
yol.prototype.set=function(v,E){E=E===void 0?!0:E;0<=v&&v<52&&Number.isInteger(v)&&this.data[v]!==E&&(this.data[v]=E,this.cachedPackedInt52=-1)};
yol.prototype.get=function(v){return!!this.data[v]};
var pPP=function(v){v.cachedPackedInt52===-1&&(v.cachedPackedInt52=v.data.reduce(function(E,n,f){return E+(n?Math.pow(2,f):0)},0));
return v.cachedPackedInt52};var t$s=function(v){var E=Qgi;v=v===void 0?_.JM("yt.ads.biscotti.lastId_")||"":v;var n=Object,f=n.assign,x={};x.dt=etw;x.flash="0";a:{try{var y=E.JSC$8312_win_.top.location.href}catch(MF){y=2;break a}y=y?y===E.doc_.location.href?0:1:2}x=(x.frm=y,x);try{x.u_tz=-(new Date).getTimezoneOffset();var Q=Q===void 0?Y2:Q;try{var e=Q.history.length}catch(MF){e=0}x.u_his=e;var F;x.u_h=(F=Y2.screen)==null?void 0:F.height;var b;x.u_w=(b=Y2.screen)==null?void 0:b.width;var l;x.u_ah=(l=Y2.screen)==null?void 0:l.availHeight;
var r;x.u_aw=(r=Y2.screen)==null?void 0:r.availWidth;var a;x.u_cd=(a=Y2.screen)==null?void 0:a.colorDepth}catch(MF){}e=E.JSC$8312_win_;try{var M=e.screenX;var U=e.screenY}catch(MF){}try{var d=e.outerWidth;var Y=e.outerHeight}catch(MF){}try{var V=e.innerWidth;var O=e.innerHeight}catch(MF){}try{var T=e.screenLeft;var L=e.screenTop}catch(MF){}try{V=e.innerWidth,O=e.innerHeight}catch(MF){}try{var xX=e.screen.availWidth;var t=e.screen.availTop}catch(MF){}M=[T,L,M,U,xX,t,d,Y,V,O];U=reX(!1,E.JSC$8312_win_.top);
d={};var QE=QE===void 0?_.n1:QE;Y=new yol;"SVGElement"in QE&&"createElementNS"in QE.document&&Y.set(0);V=l1w();V["allow-top-navigation-by-user-activation"]&&Y.set(1);V["allow-popups-to-escape-sandbox"]&&Y.set(2);QE.crypto&&QE.crypto.subtle&&Y.set(3);"TextDecoder"in QE&&"TextEncoder"in QE&&Y.set(4);QE=pPP(Y);E=(d.bc=QE,d.bih=U.height,d.biw=U.width,d.brdim=M.join(),d.vis=Qcs(E.doc_),d.wgl=!!Y2.WebGLRenderingContext,d);n=f.call(n,x,E);n.ca_type="image";v&&(n.bid=v);return n},Qgi=new function(){var v=
window.document;
this.JSC$8312_win_=window;this.doc_=v};
_.Vc("yt.ads_.signals_.getAdSignalsString",function(v){return KtE(t$s(v))});_.Rr();navigator.userAgent.indexOf(" (CrKey ");var kqy="XMLHttpRequest"in _.n1?function(){return new XMLHttpRequest}:null;var XP6="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),e0F=[].concat(_.s8(XP6),["client_dev_set_cookie"]);var Rf$={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"},LtQ="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(_.s8(XP6)),yQA=!1,T6A=_.B6N,flE=zfG;var hYI=[{messageFn:function(v){return"Cannot read property '"+v.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(v){return"Cannot call '"+v.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(v){return v.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var FbS={messageWeights:[],callbackWeights:[{callback:elE,weight:500}]};var mw1=function(){this.callbackWeights=[];this.messageWeights=[]},wPz,YZA=function(){if(!wPz){var v=wPz=new mw1;
v.messageWeights.length=0;v.callbackWeights.length=0;PtX(v,FbS)}return wPz},PtX=function(v,E){E.messageWeights&&v.messageWeights.push.apply(v.messageWeights,E.messageWeights);
E.callbackWeights&&v.callbackWeights.push.apply(v.callbackWeights,E.callbackWeights)};_.tf(_.vA,_.QK);_.vA.prototype.subscribe=function(v,E,n){var f=this.topics_[v];f||(f=this.topics_[v]=[]);var x=this.JSC$8336_key_;this.subscriptions_[x]=v;this.subscriptions_[x+1]=E;this.subscriptions_[x+2]=n;this.JSC$8336_key_=x+3;f.push(x);return x};
var b34=function(v){var E=HRL,n=!1,f=E.subscribe("handleError",function(x){n||(n=!0,this.unsubscribeByKey(f),v.apply(void 0,arguments))},E)};
_.vA.prototype.unsubscribe=function(v,E,n){if(v=this.topics_[v]){var f=this.subscriptions_;if(v=v.find(function(x){return f[x+1]==E&&f[x+2]==n}))return this.unsubscribeByKey(v)}return!1};
_.vA.prototype.unsubscribeByKey=function(v){var E=this.subscriptions_[v];if(E){var n=this.topics_[E];this.publishDepth_!=0?(this.pendingKeys_.push(v),this.subscriptions_[v+1]=function(){}):(n&&_.zs(n,v),delete this.subscriptions_[v],delete this.subscriptions_[v+1],delete this.subscriptions_[v+2])}return!!E};
_.vA.prototype.publish=function(v,E){var n=this.topics_[v];if(n){var f=Array(arguments.length-1),x=arguments.length,y;for(y=1;y<x;y++)f[y-1]=arguments[y];if(this.async_)for(y=0;y<n.length;y++)x=n[y],l4P(this.subscriptions_[x+1],this.subscriptions_[x+2],f);else{this.publishDepth_++;try{for(y=0,x=n.length;y<x&&!this.isDisposed();y++){var Q=n[y];this.subscriptions_[Q+1].apply(this.subscriptions_[Q+2],f)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;n=this.pendingKeys_.pop();)this.unsubscribeByKey(n)}}return y!=
0}return!1};
var l4P=function(v,E,n){_.bg(function(){v.apply(E,n)})};
_.vA.prototype.clear=function(v){if(v){var E=this.topics_[v];E&&(E.forEach(this.unsubscribeByKey,this),delete this.topics_[v])}else this.subscriptions_.length=0,this.topics_={}};
_.vA.prototype.getCount=function(v){if(v){var E=this.topics_[v];return E?E.length:0}v=0;for(E in this.topics_)v+=this.getCount(E);return v};
_.vA.prototype.disposeInternal=function(){_.vA.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var HRL=new _.vA;var WA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(WA,_.Vj);WA.prototype.getColdHashData=function(){return _.Sf(this,3)};
WA.prototype.getHotHashData=function(){return _.Sf(this,5)};
WA.prototype.setHotHashData=function(v){return _.ps(this,5,v)};var UxE=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(UxE,_.Vj);var nzs=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(nzs,_.Vj);_.c=nzs.prototype;_.c.getDeviceId=function(){return _.Sf(this,6)};
_.c.getExperimentIds=function(v){var E=_.m9(this,9,_.MP,3,!0);O1(E,v);return E[v]};
_.c.getPlayerType=function(){return _.Ua(this,36)};
_.c.setHomeGroupInfo=function(v){return _.Bz(this,81,v)};
_.c.clearLocationPlayabilityToken=function(){return _.km(this,89)};var B7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(B7,_.Vj);B7.prototype.setKey=function(v){return _.ps(this,1,v)};
B7.prototype.getValue=function(){return Jm(this,2,faG)};
var faG=[2,3,4,5,6];var sg1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(sg1,_.Vj);sg1.prototype.setTrackingParams=function(v){return _.km(this,1,_.jo(v,!1))};var ozy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(ozy,_.Vj);var K59=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(K59,_.Vj);K59.prototype.getExperimentIds=function(v){var E=_.m9(this,5,_.SM,3,!0);O1(E,v);return E[v]};var og=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(og,_.Vj);og.prototype.getToken=function(){return _.nT(this,2)};
og.prototype.setToken=function(v){return _.ps(this,2,v)};var Es=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Es,_.Vj);Es.prototype.setSafetyMode=function(v){return _.OH(this,5,v)};var ts=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(ts,_.Vj);ts.prototype.setClient=function(v){return _.Bz(this,1,v)};var Jcs={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 qfX;_.sn=function(){var v=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.n1.addEventListener("beforeinstallprompt",function(E){E.preventDefault();v.deferredInstallPrompt=E});
_.n1.addEventListener("appinstalled",function(){v.appInstalledEventFired=!0},{once:!0})};
qfX=function(){if(!_.n1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.n1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.n1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.n1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.n1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(v){return"WEB_DISPLAY_MODE_UNKNOWN"}};var YfG=function(){this.syncHeaders=!0},hHX=function(v){var E={},n=[];
"USER_SESSION_ID"in _.ZU&&n.push({key:"u",value:_.MX("USER_SESSION_ID")});if(n=vyy(n))E.Authorization=n,n=v=v==null?void 0:v.sessionIndex,n===void 0&&(n=Number(_.MX("SESSION_INDEX",0)),n=isNaN(n)?0:n),_.Z("voice_search_auth_header_removal")||(E["X-Goog-AuthUser"]=n.toString()),"INNERTUBE_HOST_OVERRIDE"in _.ZU||(E["X-Origin"]=window.location.origin),v===void 0&&"DELEGATED_SESSION_ID"in _.ZU&&(E["X-Goog-PageId"]=_.MX("DELEGATED_SESSION_ID"));return E};var ro1={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var LL=_.JM("ytglobal.prefsUserPrefsPrefs_")||{},Piz;_.Vc("ytglobal.prefsUserPrefsPrefs_",LL);_.G0=function(){this.cookieName=_.MX("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.MX("ALT_PREF_COOKIE_DOMAIN","youtube.com");var v=_.nE.get(this.cookieName,void 0);v&&this.parse(v)};
_.Ef=function(){Piz||(Piz=new _.G0);return Piz};
_.G0.prototype.get=function(v,E){a4P(v);Z36(v);v=LL[v]!==void 0?LL[v].toString():null;return v!=null?v:E?E:""};
_.G0.prototype.set=function(v,E){a4P(v);Z36(v);if(E==null)throw Error("Ic");LL[v]=E.toString()};
_.G0.prototype.getFlag=function(v){return!!((CiS("f"+(Math.floor(v/31)+1))||0)&1<<v%31)};
_.nH=function(v,E,n){v="f"+(Math.floor(E/31)+1);E=1<<E%31;var f=CiS(v)||0;f=n?f|E:f&~E;f===0?delete LL[v]:(n=f.toString(16),LL[v]=n.toString())};
_.G0.prototype.remove=function(v){a4P(v);Z36(v);delete LL[v]};
_.G0.prototype.save=function(){var v=!0;_.Z("web_secure_pref_cookie_killswitch")&&(v=!1);_.oP(this.cookieName,this.dump(),63072E3,this.cookieDomain,v)};
_.G0.prototype.clear=function(){_.sh.clear(LL)};
_.G0.prototype.dump=function(){var v=[],E;for(E in LL)LL.hasOwnProperty(E)&&v.push(E+"="+encodeURIComponent(String(LL[E])));return v.join("&")};
var Z36=function(v){if(/^f([1-9][0-9]*)$/.test(v))throw Error("Jc`"+v);},a4P=function(v){if(!/^\w+$/.test(v))throw Error("Kc`"+v);
},CiS=function(v){v=LL[v]!==void 0?LL[v].toString():null;
return v!=null&&/^[A-Fa-f0-9]+$/.test(v)?parseInt(v,16):null};
_.G0.prototype.parse=function(v){v=decodeURIComponent(v).split("&");for(var E=0;E<v.length;E++){var n=v[E].split("="),f=n[0];(n=n[1])&&(LL[f]=n.toString())}};var alE={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"},dxF={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},IIs={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},CcN={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Da;_.T0=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.cP=function(v,E,n){return v.addJob(E,0,n)};
_.T0.prototype.addLowPriorityJob=function(v,E){return this.addJob(v,1,E)};
_.xa=function(v,E,n){return v.addJob(E,2,n)};
_.Fw=function(v,E,n){return v.addJob(E,3,n)};
_.H8=function(v,E,n){return v.addJob(E,4,n)};
Da=function(v){var E=_.JM("yt.scheduler.instance.addImmediateJob");E?E(v):v()};
_.T0.prototype.debounce=function(v,E,n){var f=this,x=0,y=function(){x&&f.cancelJob(x);x=f.addJob(v,E,n);f.cancelDebouncedJobMap.set(y,x)};
return y};
_.T0.prototype.cancelThrottle=function(v){(v=this.cancelThrottledJobMap.get(v))&&v()};var iw=function(){_.T0.apply(this,arguments)};
_.S(iw,_.T0);_.Ce=function(){iw.instance||(iw.instance=new iw);return iw.instance};
iw.prototype.addJob=function(v,E,n){n!==void 0&&Number.isNaN(Number(n))&&(n=void 0);var f=_.JM("yt.scheduler.instance.addJob");return f?f(v,E,n):n===void 0?(v(),NaN):_.Ta(v,n||0)};
iw.prototype.cancelJob=function(v){if(v===void 0||!Number.isNaN(Number(v))){var E=_.JM("yt.scheduler.instance.cancelJob");E?E(v):_.za(v)}};
iw.prototype.start=function(){var v=_.JM("yt.scheduler.instance.start");v&&v()};
iw.prototype.pause=function(){var v=_.JM("yt.scheduler.instance.pause");v&&v()};
_.wh=_.Ce();_.pE.prototype.set=function(v,E){E===void 0?this.mechanism.remove(v):this.mechanism.set(v,(0,_.aW)(E))};
_.pE.prototype.get=function(v){try{var E=this.mechanism.get(v)}catch(n){return}if(E!==null)try{return JSON.parse(E)}catch(n){throw"Storage: Invalid value was encountered";}};
_.pE.prototype.remove=function(v){this.mechanism.remove(v)};var z0=function(v){this.mechanism=v};
_.tf(z0,_.pE);var MQ1=function(v){this.data=v},SsU=function(v){return v===void 0||v instanceof MQ1?v:new MQ1(v)};
z0.prototype.set=function(v,E){z0.superClass_.set.call(this,v,SsU(E))};
z0.prototype.getWrapper=function(v){v=z0.superClass_.get.call(this,v);if(v===void 0||v instanceof Object)return v;throw"Storage: Invalid value was encountered";};
z0.prototype.get=function(v){if(v=this.getWrapper(v)){if(v=v.data,v===void 0)throw"Storage: Invalid value was encountered";}else v=void 0;return v};_.tf(Qc,z0);_.UwS=function(v){var E=v.creation;v=v.expiration;return!!v&&v<_.Rr()||!!E&&E>_.Rr()};
Qc.prototype.set=function(v,E,n){if(E=SsU(E)){if(n){if(n<_.Rr()){Qc.prototype.remove.call(this,v);return}E.expiration=n}E.creation=_.Rr()}Qc.superClass_.set.call(this,v,E)};
Qc.prototype.getWrapper=function(v,E){var n=Qc.superClass_.getWrapper.call(this,v);if(n)if(!E&&_.UwS(n))Qc.prototype.remove.call(this,v);else return n};var R_=function(){};
R_.prototype.next=function(){return tt};
var tt={done:!0,value:void 0},Bl=function(v){return{value:v,done:!1}};
R_.prototype.__iterator__=function(){return this};
_.qso=function(v){if(v instanceof R_)return v;if(typeof v.__iterator__=="function")return v.__iterator__(!1);if(_.E1(v)){var E=0,n=new R_;n.next=function(){for(;;){if(E>=v.length)return tt;if(E in v)return Bl(v[E++]);E++}};
return n}throw Error("Lc");};var Joz=function(v){if(v instanceof vN||v instanceof EM||v instanceof nz)return v;if(typeof v.next=="function")return new vN(function(){return v});
if(typeof v[Symbol.iterator]=="function")return new vN(function(){return v[Symbol.iterator]()});
if(typeof v.__iterator__=="function")return new vN(function(){return v.__iterator__()});
throw Error("Mc");},vN=function(v){this.func_=v};
vN.prototype.__iterator__=function(){return new EM(this.func_())};
vN.prototype[Symbol.iterator]=function(){return new nz(this.func_())};
vN.prototype.toEs6=function(){return new nz(this.func_())};
var EM=function(v){this.JSC$8420_iter_=v};
_.S(EM,R_);EM.prototype.next=function(){return this.JSC$8420_iter_.next()};
EM.prototype[Symbol.iterator]=function(){return new nz(this.JSC$8420_iter_)};
EM.prototype.toEs6=function(){return new nz(this.JSC$8420_iter_)};
var nz=function(v){vN.call(this,function(){return v});
this.JSC$8423_iter_=v};
_.S(nz,vN);nz.prototype.next=function(){return this.JSC$8423_iter_.next()};var Kb1=function(){};var o9=function(){};
_.tf(o9,Kb1);o9.prototype.getCount=function(){for(var v=0,E=_.p(this),n=E.next();!n.done;n=E.next())v++;return v};
o9.prototype[Symbol.iterator]=function(){return Joz(this.__iterator__(!0)).toEs6()};
o9.prototype.clear=function(){var v=Array.from(this);v=_.p(v);for(var E=v.next();!E.done;E=v.next())this.remove(E.value)};_.tf(X7,o9);_.c=X7.prototype;_.c.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var v=this.storage_;if(v)try{v.setItem("__sak","1");v.removeItem("__sak");var E=!0}catch(n){E=n instanceof DOMException&&(n.name==="QuotaExceededError"||n.code===22||n.code===1014||n.name==="NS_ERROR_DOM_QUOTA_REACHED")&&v&&v.length!==0}else E=!1;this.cachedIsStorageAvailable_=E}return this.cachedIsStorageAvailable_};
_.c.set=function(v,E){fz(this);try{this.storage_.setItem(v,E)}catch(n){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.c.get=function(v){fz(this);v=this.storage_.getItem(v);if(typeof v!=="string"&&v!==null)throw"Storage mechanism: Invalid value was encountered";return v};
_.c.remove=function(v){fz(this);this.storage_.removeItem(v)};
_.c.getCount=function(){fz(this);return this.storage_.length};
_.c.__iterator__=function(v){fz(this);var E=0,n=this.storage_,f=new R_;f.next=function(){if(E>=n.length)return tt;var x=n.key(E++);if(v)return Bl(x);x=n.getItem(x);if(typeof x!=="string")throw"Storage mechanism: Invalid value was encountered";return Bl(x)};
return f};
_.c.clear=function(){fz(this);this.storage_.clear()};
_.c.key=function(v){fz(this);return this.storage_.key(v)};
var fz=function(v){if(v.storage_==null)throw Error("Nc");v.isAvailable()||o$(Error("Nc"))};_.tf(SLE,X7);_.tf(UAN,X7);_.tf(e5,o9);e5.prototype.set=function(v,E){this.mechanism_.set(this.JSC$8438_prefix_+v,E)};
e5.prototype.get=function(v){return this.mechanism_.get(this.JSC$8438_prefix_+v)};
e5.prototype.remove=function(v){this.mechanism_.remove(this.JSC$8438_prefix_+v)};
e5.prototype.__iterator__=function(v){var E=this.mechanism_[Symbol.iterator](),n=this,f=new R_;f.next=function(){var x=E.next();if(x.done)return x;for(x=x.value;x.slice(0,n.JSC$8438_prefix_.length)!=n.JSC$8438_prefix_;){x=E.next();if(x.done)return x;x=x.value}return Bl(v?x.slice(n.JSC$8438_prefix_.length):n.mechanism_.get(x))};
return f};_.P7=function(v){this.expiringStorage_=(v=_.qLQ(v))?new Qc(v):null;this.JSC$8442_domain_=document.domain||window.location.hostname};
_.P7.prototype.set=function(v,E,n,f){n=n||31104E3;this.remove(v);if(this.expiringStorage_)try{this.expiringStorage_.set(v,E,Date.now()+n*1E3);return}catch(y){}var x="";if(f)try{x=escape((0,_.aW)(E))}catch(y){return}else x=escape(E);_.oP(v,x,n,this.JSC$8442_domain_)};
_.P7.prototype.get=function(v,E){var n=void 0,f=!this.expiringStorage_;if(!f)try{n=this.expiringStorage_.get(v)}catch(x){f=!0}if(f&&(n=_.nE.get(v,void 0))&&(n=unescape(n),E))try{n=JSON.parse(n)}catch(x){this.remove(v),n=void 0}return n};
_.P7.prototype.remove=function(v){this.expiringStorage_&&this.expiringStorage_.remove(v);_.sTs(v,"/",this.JSC$8442_domain_)};
_.P7.prototype.getCreationTime=function(v){return this.expiringStorage_&&(v=(this.expiringStorage_.getWrapper(v)||{}).creation,typeof v==="number")?v:null};var KuE=function(){var v;return function(){v||(v=new _.P7("ytidb"));return v}}();var IlE;_.mx=[];IlE=!1;var zlL=YLE||hlG;var xe={},dwl=(xe.AUTH_INVALID="No user identifier specified.",xe.EXPLICIT_ABORT="Transaction was explicitly aborted.",xe.IDB_NOT_SUPPORTED="IndexedDB is not supported.",xe.MISSING_INDEX="Index not created.",xe.MISSING_OBJECT_STORES="Object stores not created.",xe.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",xe.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",xe.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",xe.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",xe.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",xe.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",xe.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",xe),cN={},I4g=(cN.AUTH_INVALID="ERROR",cN.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",cN.EXPLICIT_ABORT="IGNORED",
cN.IDB_NOT_SUPPORTED="ERROR",cN.MISSING_INDEX="WARNING",cN.MISSING_OBJECT_STORES="ERROR",cN.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",cN.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",cN.QUOTA_EXCEEDED="WARNING",cN.QUOTA_MAYBE_EXCEEDED="WARNING",cN.UNKNOWN_ABORT="WARNING",cN.INCOMPATIBLE_DB_VERSION="WARNING",cN),yz={},Ys4=(yz.AUTH_INVALID=!1,yz.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,yz.EXPLICIT_ABORT=!1,yz.IDB_NOT_SUPPORTED=!1,yz.MISSING_INDEX=!1,yz.MISSING_OBJECT_STORES=!1,yz.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,yz.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,yz.QUOTA_EXCEEDED=!1,yz.QUOTA_MAYBE_EXCEEDED=!0,yz.UNKNOWN_ABORT=!0,yz.INCOMPATIBLE_DB_VERSION=!1,yz),PA=function(v,E,n,f,x){E=E===void 0?{}:E;n=n===void 0?dwl[v]:n;f=f===void 0?I4g[v]:f;x=x===void 0?Ys4[v]:x;_.yc.call(this,n,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:v},E));this.type=v;this.message=n;this.level=f;this.retryable=x;Object.setPrototypeOf(this,PA.prototype)};
_.S(PA,_.yc);var h0U=function(v,E){PA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:E,foundObjectStores:v},dwl.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,h0U.prototype)};
_.S(h0U,PA);var VKL=function(v,E){var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.index=v;this.objectStore=E;Object.setPrototypeOf(this,VKL.prototype)};
_.S(VKL,Error);var DAA=["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 Mp=function(v){this.executor=v},CE=function(v){var E=this;
this.state={status:"PENDING"};this.JSC$8470_onFulfilled=[];this.JSC$8470_onRejected=[];v=v.executor;var n=function(x){if(E.state.status==="PENDING"){E.state={status:"FULFILLED",value:x};x=_.p(E.JSC$8470_onFulfilled);for(var y=x.next();!y.done;y=x.next())y=y.value,y()}},f=function(x){if(E.state.status==="PENDING"){E.state={status:"REJECTED",
reason:x};x=_.p(E.JSC$8470_onRejected);for(var y=x.next();!y.done;y=x.next())y=y.value,y()}};
try{v(n,f)}catch(x){f(x)}};
CE.all=function(v){return new CE(new Mp(function(E,n){var f=[],x=v.length;x===0&&E(f);for(var y={i$jscomp$504:0};y.i$jscomp$504<v.length;y={i$jscomp$504:y.i$jscomp$504},++y.i$jscomp$504)CE.resolve(v[y.i$jscomp$504]).then(function(Q){return function(e){f[Q.i$jscomp$504]=e;x--;x===0&&E(f)}}(y)).catch(function(Q){n(Q)})}))};
CE.resolve=function(v){return new CE(new Mp(function(E,n){v instanceof CE?v.then(E,n):E(v)}))};
CE.reject=function(v){return new CE(new Mp(function(E,n){n(v)}))};
CE.prototype.then=function(v,E){var n=this,f=v!=null?v:NM9,x=E!=null?E:gZL;return new CE(new Mp(function(y,Q){n.state.status==="PENDING"?(n.JSC$8470_onFulfilled.push(function(){Aol(n,n,f,y,Q)}),n.JSC$8470_onRejected.push(function(){VQU(n,n,x,y,Q)})):n.state.status==="FULFILLED"?Aol(n,n,f,y,Q):n.state.status==="REJECTED"&&VQU(n,n,x,y,Q)}))};
CE.prototype.catch=function(v){return this.then(void 0,v)};
var Aol=function(v,E,n,f,x){try{if(v.state.status!=="FULFILLED")throw Error("Qc");var y=n(v.state.value);y instanceof CE?Dwo(v,E,y,f,x):f(y)}catch(Q){x(Q)}},VQU=function(v,E,n,f,x){try{if(v.state.status!=="REJECTED")throw Error("Rc");
var y=n(v.state.reason);y instanceof CE?Dwo(v,E,y,f,x):f(y)}catch(Q){x(Q)}},Dwo=function(v,E,n,f,x){E===n?x(new TypeError("Sc")):n.then(function(y){y instanceof CE?Dwo(v,E,y,f,x):f(y)},function(y){x(y)})};var pz;pz=window;_.gd=pz.ytcsi&&pz.ytcsi.now?pz.ytcsi.now:pz.performance&&pz.performance.timing&&pz.performance.now&&pz.performance.timing.navigationStart?function(){return pz.performance.timing.navigationStart+pz.performance.now()}:function(){return(new Date).getTime()};var UH=function(v,E){this.JSC$8482_wrapped=v;this.options=E;this.transactionCount=0;this.startedMs=Math.round((0,_.gd)());this.hasUnknownAbortedTransaction=!1},Nt4,uuS,e2,k16;
UH.prototype.add=function(v,E,n){return _.dd(this,[v],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(v).add(E,n)})};
UH.prototype.clear=function(v){return _.dd(this,[v],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(v).clear()})};
UH.prototype.close=function(){this.JSC$8482_wrapped.close();var v;((v=this.options)==null?0:v.closed)&&this.options.closed()};
UH.prototype.count=function(v,E){return _.dd(this,[v],{mode:"readonly",enableRetries:!0},function(n){return n.objectStore(v).count(E)})};
var Z$=function(v,E,n){v=v.JSC$8482_wrapped.createObjectStore(E,n);return new Qz(v)};
UH.prototype.delete=function(v,E){return _.dd(this,[v],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore(v).delete(E)})};
var H3F=function(v,E){return _.dd(v,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore("ResponseStore").index("byInterface").delete(E)})};
UH.prototype.get=function(v,E){return _.dd(this,[v],{mode:"readonly",enableRetries:!0},function(n){return n.objectStore(v).get(E)})};
UH.prototype.getAll=function(v,E,n){return _.dd(this,[v],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(v).getAll(E,n)})};
UH.prototype.put=function(v,E,n){return _.dd(this,[v],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(v).put(E,n)})};
UH.prototype.objectStoreNames=function(){return Array.from(this.JSC$8482_wrapped.objectStoreNames)};
_.dd=function(v,E,n,f){var x,y,Q,e,F,b,l,r,a,M,U,d;return _.X(function(Y){switch(Y.nextAddress){case 1:var V={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof n==="string"?V.mode=n:Object.assign(V,n);x=V;v.transactionCount++;y=x.enableRetries?3:1;Q=0;case 2:if(e){Y.jumpTo(4);break}Q++;F=Math.round((0,_.gd)());_.vW(Y,5);b=v.JSC$8482_wrapped.transaction(E,x.mode);V=new knL(b);V=g$g(V,f);return _.m(Y,V,7);case 7:return l=Y.yieldResult,r=Math.round((0,_.gd)()),Nt4(v,F,r,Q,void 0,
E.join(),x),Y.return(l);case 5:a=_.cW(Y);M=Math.round((0,_.gd)());U=HG1(a,v.JSC$8482_wrapped.name,E.join(),v.JSC$8482_wrapped.version);if((d=U instanceof PA&&!U.retryable)||Q>=y)Nt4(v,F,M,Q,U,E.join(),x),e=U;Y.jumpTo(2);break;case 4:return Y.return(Promise.reject(e))}})};
Nt4=function(v,E,n,f,x,y,Q){E=n-E;x?(x instanceof PA&&(x.type==="QUOTA_EXCEEDED"||x.type==="QUOTA_MAYBE_EXCEEDED")&&bq("QUOTA_EXCEEDED",{dbName:sH(v.JSC$8482_wrapped.name),objectStoreNames:y,transactionCount:v.transactionCount,transactionMode:Q.mode}),x instanceof PA&&x.type==="UNKNOWN_ABORT"&&(n-=v.startedMs,n<0&&n>=2147483648&&(n=0),bq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:y,transactionDuration:E,transactionCount:v.transactionCount,dbDuration:n}),v.hasUnknownAbortedTransaction=!0),
uuS(v,!1,f,y,E,Q.tag),_.wd(x)):uuS(v,!0,f,y,E,Q.tag)};
uuS=function(v,E,n,f,x,y){bq("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:v.hasUnknownAbortedTransaction,duration:x,isSuccessful:E,tryCount:n,tag:y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":y})};
UH.prototype.getVersion=function(){return this.JSC$8482_wrapped.version};
UH.prototype.getName=function(){return this.JSC$8482_wrapped.name};
var Qz=function(v){this.JSC$8497_wrapped=v};
Qz.prototype.add=function(v,E){return S5(this.JSC$8497_wrapped.add(v,E))};
Qz.prototype.autoIncrement=function(){return this.JSC$8497_wrapped.autoIncrement};
Qz.prototype.clear=function(){return S5(this.JSC$8497_wrapped.clear()).then(function(){})};
var CZ=function(v,E,n){v.JSC$8497_wrapped.createIndex(E,n,{unique:!1})};
Qz.prototype.count=function(v){return S5(this.JSC$8497_wrapped.count(v))};
var jg1=function(v,E){return Ym(v,{query:E},function(n){return n.delete().then(function(){return n.continue()})}).then(function(){})};
Qz.prototype.delete=function(v){return v instanceof IDBKeyRange?jg1(this,v):S5(this.JSC$8497_wrapped.delete(v))};
Qz.prototype.get=function(v){return S5(this.JSC$8497_wrapped.get(v))};
Qz.prototype.getAll=function(v,E){return"getAll"in IDBObjectStore.prototype?S5(this.JSC$8497_wrapped.getAll(v,E)):O34(this,v,E)};
var O34=function(v,E,n){var f=[];return Ym(v,{query:E},function(x){if(!(n!==void 0&&f.length>=n))return f.push(x.getValue()),x.continue()}).then(function(){return f})};
Qz.prototype.index=function(v){try{return new X6(this.JSC$8497_wrapped.index(v))}catch(E){if(E instanceof Error&&E.name==="NotFoundError")throw new VKL(v,this.JSC$8497_wrapped.name);throw E;}};
Qz.prototype.getName=function(){return this.JSC$8497_wrapped.name};
Qz.prototype.keyPath=function(){return this.JSC$8497_wrapped.keyPath};
Qz.prototype.put=function(v,E){return S5(this.JSC$8497_wrapped.put(v,E))};
var Ym=function(v,E,n){v=v.JSC$8497_wrapped.openCursor(E.query,E.direction);return k16(v).then(function(f){return OGE(f,n)})},knL=function(v){var E=this;
this.JSC$8505_wrapped=v;this.objectStoreCache=new Map;this.JSC$8505_aborted=!1;this.done=new Promise(function(n,f){E.JSC$8505_wrapped.addEventListener("complete",function(){n()});
E.JSC$8505_wrapped.addEventListener("error",function(x){x.currentTarget===x.target&&f(E.JSC$8505_wrapped.error)});
E.JSC$8505_wrapped.addEventListener("abort",function(){var x=E.JSC$8505_wrapped.error;if(x)f(x);else if(!E.JSC$8505_aborted){x=PA;for(var y=E.JSC$8505_wrapped.objectStoreNames,Q=[],e=0;e<y.length;e++){var F=y.item(e);if(F===null)throw Error("Tc");Q.push(F)}x=new x("UNKNOWN_ABORT",{objectStoreNames:Q.join(),dbName:E.JSC$8505_wrapped.db.name,mode:E.JSC$8505_wrapped.mode});f(x)}})})},g$g=function(v,E){var n=new Promise(function(f,x){try{E(v).then(function(y){f(y)}).catch(x)}catch(y){x(y),v.abort()}});
return Promise.all([n,v.done]).then(function(f){return _.p(f).next().value})};
knL.prototype.abort=function(){this.JSC$8505_wrapped.abort();this.JSC$8505_aborted=!0;throw new PA("EXPLICIT_ABORT");};
knL.prototype.objectStore=function(v){v=this.JSC$8505_wrapped.objectStore(v);var E=this.objectStoreCache.get(v);E||(E=new Qz(v),this.objectStoreCache.set(v,E));return E};
var X6=function(v){this.JSC$8507_wrapped=v};
X6.prototype.count=function(v){return S5(this.JSC$8507_wrapped.count(v))};
X6.prototype.delete=function(v){return _.Np(this,{query:v},function(E){return E.delete().then(function(){return E.continue()})})};
X6.prototype.get=function(v){return S5(this.JSC$8507_wrapped.get(v))};
X6.prototype.getAll=function(v,E){return"getAll"in IDBIndex.prototype?S5(this.JSC$8507_wrapped.getAll(v,E)):Wb4(this,v,E)};
var Wb4=function(v,E,n){var f=[];return _.Np(v,{query:E},function(x){if(!(n!==void 0&&f.length>=n))return f.push(x.getValue()),x.continue()}).then(function(){return f})};
X6.prototype.keyPath=function(){return this.JSC$8507_wrapped.keyPath};
X6.prototype.unique=function(){return this.JSC$8507_wrapped.unique};
_.Np=function(v,E,n){v=v.JSC$8507_wrapped.openCursor(E.query===void 0?null:E.query,E.direction===void 0?"next":E.direction);return k16(v).then(function(f){return OGE(f,n)})};
e2=function(v,E){this.request=v;this.cursor=E};
k16=function(v){return S5(v).then(function(E){return E?new e2(v,E):null})};
e2.prototype.continue=function(v){this.cursor.continue(v);return k16(this.request)};
e2.prototype.delete=function(){return S5(this.cursor.delete()).then(function(){})};
e2.prototype.getValue=function(){return this.cursor.value};
e2.prototype.update=function(v){return S5(this.cursor.update(v))};var F6=function(v,E){this.name=v;this.options=E;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},$wP;
F6.prototype.openDb=function(v,E,n){n=n===void 0?{}:n;return $A1(v,E,n)};
F6.prototype.delete=function(v){v=v===void 0?{}:v;return _.JO(this.name,v)};
$wP=function(v,E){return new PA("INCOMPATIBLE_DB_VERSION",{dbName:v.name,oldVersion:v.options.version,newVersion:E})};
_.KE=function(v,E){if(!E)throw Zu("openWithToken",sH(v.name));return v.open()};
F6.prototype.open=function(){var v=this;if(!this.isCompatible)throw $wP(this);if(this.connectionPromise)return this.connectionPromise;var E,n=function(){v.connectionPromise===E&&(v.connectionPromise=void 0)},f={blocking:function(y){y.close()},
closed:n,terminated:n,upgrade:this.options.upgrade},x=function(){var y,Q,e,F,b,l,r,a,M,U;return _.X(function(d){switch(d.nextAddress){case 1:return Q=(y=Error().stack)!=null?y:"",_.vW(d,2),_.m(d,v.openDb(v.name,v.options.version,f),4);case 4:for(var Y=e=d.yieldResult,V=v.options,O=[],T=_.p(Object.keys(V.objectStores)),L=T.next();!L.done;L=T.next()){L=L.value;var xX=V.objectStores[L],t=xX.removedAtVersion===void 0?Number.MAX_VALUE:xX.removedAtVersion;!(Y.JSC$8482_wrapped.version>=xX.addedAtVersion)||
Y.JSC$8482_wrapped.version>=t||Y.JSC$8482_wrapped.objectStoreNames.contains(L)||O.push(L)}F=O;if(F.length===0){d.jumpTo(5);break}b=Object.keys(v.options.objectStores);l=e.objectStoreNames();if(v.timesReopenedToFixMissingObjectStore<_.WG("ytidb_reopen_db_retries",0))return v.timesReopenedToFixMissingObjectStore++,e.close(),_.wd(new PA("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:b,foundObjectStores:l})),d.return(x());if(!(v.timesDeletedToFixMissingObjectStore<_.WG("ytidb_remake_db_retries",
1))){d.jumpTo(6);break}v.timesDeletedToFixMissingObjectStore++;return _.m(d,v.delete(),7);case 7:return _.wd(new PA("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:b,foundObjectStores:l})),d.return(x());case 6:throw new h0U(l,b);case 5:return d.return(e);case 2:r=_.cW(d);if(r instanceof DOMException?r.name!=="VersionError":"DOMError"in self&&r instanceof DOMError?r.name!=="VersionError":!(r instanceof Object&&"message"in r)||r.message!=="An attempt was made to open a database using a lower version than the existing version."){d.jumpTo(8);
break}return _.m(d,v.openDb(v.name,void 0,Object.assign({},f,{upgrade:void 0})),9);case 9:a=d.yieldResult;M=a.getVersion();if(v.options.version!==void 0&&M>v.options.version+1)throw a.close(),v.isCompatible=!1,$wP(v,M);return d.return(a);case 8:throw n(),r instanceof Error&&!_.Z("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+Q.substring(Q.indexOf("\n")+1)),HG1(r,v.name,"",(U=v.options.version)!=null?U:-1);}})};
return this.connectionPromise=E=x()};var LuA=new F6("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(v,E){E(1)&&Z$(v,"databases",{keyPath:"actualName"})}});var BMI,RlG=new function(){}(new function(){});new _.Wy;var Lb1=function(v,E){F6.call(this,v,E);this.options=E;lq(v)};
_.S(Lb1,F6);var QQG=function(v,E){var n;return function(){n||(n=new Lb1(v,E));return n}};
Lb1.prototype.openDb=function(v,E,n){n=n===void 0?{}:n;return(this.options.shared?fI1:osG)(v,E,Object.assign({},n))};
Lb1.prototype.delete=function(v){v=v===void 0?{}:v;return(this.options.shared?pR1:xxE)(this.name,v)};var G1g={},XRX=HA("ytGcfConfig",{objectStores:(G1g.coldConfigStore={addedAtVersion:1},G1g.hotConfigStore={addedAtVersion:1},G1g),shared:!1,upgrade:function(v,E){E(1)&&(CZ(Z$(v,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),CZ(Z$(v,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Tt6=function(){_.QK.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var v=_.JM("yt.gcf.config.hotUpdateCallbacks");v?(this.localHotConfigJobQueue=[].concat(_.s8(v)),this.sharedHotConfigJobQueue=v):(this.sharedHotConfigJobQueue=[],_.Vc("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.S(Tt6,_.QK);Tt6.prototype.disposeInternal=function(){for(var v=_.p(this.localHotConfigJobQueue),E=v.next();!E.done;E=v.next()){var n=this.sharedHotConfigJobQueue;E=n.indexOf(E.value);E>=0&&n.splice(E,1)}this.localHotConfigJobQueue.length=0;_.QK.prototype.disposeInternal.call(this)};var ys=function(){var v=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Tt6;this.TEST_ONLY={initializeConfigDb:function(){v.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return v.coldGlobalConfigGroup},
setHotConfigGroup:function(E){i3U(v,E)},
setHotHashData:function(E){v.setHotHashData(E)},
setColdConfigGroup:function(E){z0i(v,E)},
getColdHashData:function(){return v.coldHashData},
getHotHashData:function(){return v.hotHashData},
getHotConfigGroup:function(){return v.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return R0i()},
getExportedHotConfigGroup:function(){return mj()},
getExportedColdHashData:function(){return _.JM("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.JM("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){tQ6(v)},
resetInstance:function(){v.setHotHashData(void 0);Bti(v);delete ys.instance},
setDebounceTimer:function(E){v.debounceTimer=E},
getDebounceTimer:function(){return v.debounceTimer}}},v0z=function(){if(!ys.instance){var v=new ys;
ys.instance=v}return ys.instance},o06=function(v){var E;
_.X(function(n){if(n.nextAddress==1)return _.Z("start_client_gcf")||_.Z("delete_gcf_config_db")?_.Z("start_client_gcf")?_.m(n,_.Du(),3):n.jumpTo(2):n.return();n.nextAddress!=2&&((E=n.yieldResult)&&_.cA()&&!_.Z("delete_gcf_config_db")?(v.isConfigDbInitialized=!0,tQ6(v)):(E01(v),n0X(v)));return _.Z("delete_gcf_config_db")?_.m(n,lIs(),0):n.jumpTo(0)})},aaE=function(){var v;
return(v=mj())!=null?v:_.MX("RAW_HOT_CONFIG_GROUP")},fmX=function(v){var E,n,f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:if(v.hotGlobalConfigGroup)return e.return(mj());if(!v.isConfigDbInitialized)return E=Zu("getHotConfig IDB not initialized"),_.Kk(E),e.return(Promise.reject(E));n=AO();f=_.MX("TIME_CREATED_MS");if(!n){x=Zu("getHotConfig token error");_.Kk(x);e.jumpTo(2);break}return _.m(e,bHG(n),3);case 3:if((y=e.yieldResult)&&y.timestamp>f)return i3U(v,y.config),v.setHotHashData(y.hashData),e.return(mj());case 2:n0X(v);if(!(n&&v.hotGlobalConfigGroup&&v.hotHashData)){e.jumpTo(4);
break}return _.m(e,F5G(v.hotGlobalConfigGroup,v.hotHashData,n,f),4);case 4:return v.hotGlobalConfigGroup?e.return(mj()):(Q=new _.yc("Config not available in ytConfig"),_.Kk(Q),e.return(Promise.reject(Q)))}})},cK4=function(v){var E,n,f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:if(v.coldGlobalConfigGroup)return e.return(R0i());if(!v.isConfigDbInitialized)return E=Zu("getColdConfig IDB not initialized"),_.Kk(E),e.return(Promise.reject(E));n=AO();f=_.MX("TIME_CREATED_MS");if(!n){x=Zu("getColdConfig");_.Kk(x);e.jumpTo(2);break}return _.m(e,wRy(n),3);case 3:if((y=e.yieldResult)&&y.timestamp>f)return z0i(v,y.config),xO6(v,y.configData),Bti(v,y.hashData),e.return(R0i());case 2:E01(v);if(!(n&&v.coldGlobalConfigGroup&&v.coldHashData&&
v.configData)){e.jumpTo(4);break}return _.m(e,mxE(v.coldGlobalConfigGroup,v.coldHashData,v.configData,n,f),4);case 4:return v.coldGlobalConfigGroup?e.return(R0i()):(Q=new _.yc("Config not available in ytConfig"),_.Kk(Q),e.return(Promise.reject(Q)))}})},tQ6=function(v){if(!v.hotGlobalConfigGroup||!v.coldGlobalConfigGroup){if(!AO()){var E=Zu("scheduleGetConfigs");
_.Kk(E)}v.initJob||(v.initJob=_.wh.addLowPriorityJob(function(){return _.X(function(n){switch(n.nextAddress){case 1:return _.vW(n,2),_.m(n,fmX(v),4);case 4:_.qp(n,3);break;case 2:_.cW(n);case 3:return _.vW(n,5),_.m(n,cK4(v),7);case 7:_.qp(n,6);break;case 5:_.cW(n);case 6:v.initJob&&(v.initJob=0),_.yQ(n)}})},100))}},bRQ=function(v,E,n){var f,x,y;
return _.X(function(Q){switch(Q.nextAddress){case 1:if(!_.Z("start_client_gcf")){Q.jumpTo(0);break}n&&i3U(v,n);v.setHotHashData(E);f=AO();if(!f){Q.jumpTo(3);break}if(n){Q.jumpTo(4);break}return _.m(Q,bHG(f),5);case 5:x=Q.yieldResult,n=(y=x)==null?void 0:y.config;case 4:return _.m(Q,F5G(n,E,f),3);case 3:if(n)for(var e=n,F=_.p(v.configUpdateService.sharedHotConfigJobQueue),b=F.next();!b.done;b=F.next())b=b.value,b(e);_.yQ(Q)}})},laX=function(v,E,n){var f,x,y,Q;
return _.X(function(e){if(e.nextAddress==1){if(!_.Z("start_client_gcf"))return e.jumpTo(0);Bti(v,E);return(f=AO())?n?e.jumpTo(4):_.m(e,wRy(f),5):e.jumpTo(0)}e.nextAddress!=4&&(x=e.yieldResult,n=(y=x)==null?void 0:y.config);if(!n)return e.jumpTo(0);Q=n.configData;return _.m(e,mxE(n,E,Q,f),0)})},V7X=function(){var v=v0z(),E=(0,_.gd)()-v.debounceTimer;
if(!(v.debounceTimer!==0&&E<_.WG("send_config_hash_timer"))){E=_.JM("yt.gcf.config.coldConfigData");var n=_.JM("yt.gcf.config.hotHashData"),f=_.JM("yt.gcf.config.coldHashData");E&&n&&f&&(v.debounceTimer=(0,_.gd)());return{coldConfigData:E,hotHashData:n,coldHashData:f}}},E01=function(v){z0i(v,_.MX("RAW_COLD_CONFIG_GROUP"));
Bti(v,_.MX("SERIALIZED_COLD_HASH_DATA"));var E;xO6(v,(E=v.coldGlobalConfigGroup)==null?void 0:E.configData)},n0X=function(v){i3U(v,_.MX("RAW_HOT_CONFIG_GROUP"));
v.setHotHashData(_.MX("SERIALIZED_HOT_HASH_DATA"))},i3U=function(v,E){v.hotGlobalConfigGroup=E;
_.Vc("yt.gcf.config.hotConfigGroup",v.hotGlobalConfigGroup||null)},z0i=function(v,E){v.coldGlobalConfigGroup=E;
_.Vc("yt.gcf.config.coldConfigGroup",v.coldGlobalConfigGroup||null)};
ys.prototype.setHotHashData=function(v){this.hotHashData=v;_.Vc("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Bti=function(v,E){v.coldHashData=E;_.Vc("yt.gcf.config.coldHashData",v.coldHashData||null)},xO6=function(v,E){v.configData=E;
_.Vc("yt.gcf.config.coldConfigData",v.configData||null)},mj=function(){return _.JM("yt.gcf.config.hotConfigGroup")},R0i=function(){return _.JM("yt.gcf.config.coldConfigGroup")};var iq={},yKF=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";iq.assign=function(v){for(var E=Array.prototype.slice.call(arguments,1);E.length;){var n=E.shift();if(n){if(typeof n!=="object")throw new TypeError("Wc`"+n);for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&(v[f]=n[f])}}return v};
iq.shrinkBuf=function(v,E){if(v.length===E)return v;if(v.subarray)return v.subarray(0,E);v.length=E;return v};
var pZ1={arraySet:function(v,E,n,f,x){if(E.subarray&&v.subarray)v.set(E.subarray(n,n+f),x);else for(var y=0;y<f;y++)v[x+y]=E[n+y]},
flattenChunks:function(v){var E,n;var f=n=0;for(E=v.length;f<E;f++)n+=v[f].length;var x=new Uint8Array(n);f=n=0;for(E=v.length;f<E;f++){var y=v[f];x.set(y,n);n+=y.length}return x}},QSX={arraySet:function(v,E,n,f,x){for(var y=0;y<f;y++)v[x+y]=E[n+y]},
flattenChunks:function(v){return[].concat.apply([],v)}};
iq.setTyped=function(){yKF?(iq.Buf8=Uint8Array,iq.Buf16=Uint16Array,iq.Buf32=Int32Array,iq.assign(iq,pZ1)):(iq.Buf8=Array,iq.Buf16=Array,iq.Buf32=Array,iq.assign(iq,QSX))};
iq.setTyped();var XZX=!0;try{new Uint8Array(1)}catch(v){XZX=!1}
var bCF=function(v){var E,n,f=v.length,x=0;for(E=0;E<f;E++){var y=v.charCodeAt(E);if((y&64512)===55296&&E+1<f){var Q=v.charCodeAt(E+1);(Q&64512)===56320&&(y=65536+(y-55296<<10)+(Q-56320),E++)}x+=y<128?1:y<2048?2:y<65536?3:4}var e=new iq.Buf8(x);for(E=n=0;n<x;E++)y=v.charCodeAt(E),(y&64512)===55296&&E+1<f&&(Q=v.charCodeAt(E+1),(Q&64512)===56320&&(y=65536+(y-55296<<10)+(Q-56320),E++)),y<128?e[n++]=y:(y<2048?e[n++]=192|y>>>6:(y<65536?e[n++]=224|y>>>12:(e[n++]=240|y>>>18,e[n++]=128|y>>>12&63),e[n++]=
128|y>>>6&63),e[n++]=128|y&63);return e};var ntX={};ntX=function(v,E,n,f){var x=v&65535|0;v=v>>>16&65535|0;for(var y;n!==0;){y=n>2E3?2E3:n;n-=y;do x=x+E[f++]|0,v=v+x|0;while(--y);x%=65521;v%=65521}return x|v<<16|0};for(var pZ={},wl,ef6=[],Ft1=0;Ft1<256;Ft1++){wl=Ft1;for(var mOl=0;mOl<8;mOl++)wl=wl&1?3988292384^wl>>>1:wl>>>1;ef6[Ft1]=wl}pZ=function(v,E,n,f){n=f+n;for(v^=-1;f<n;f++)v=v>>>8^ef6[(v^E[f])&255];return v^-1};var BA={};BA={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 $xN=[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],Gx1=[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],wyN=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vt$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oY=Array(576);$m(oY);var fZ=Array(60);$m(fZ);var RP=Array(512);$m(RP);var zT=Array(256);$m(zT);var L5X=Array(29);$m(L5X);var Tj$=Array(30);$m(Tj$);var eoA,FWI,mDN,Xy9=!1;var mi;
mi=[new FO(0,0,0,0,function(v,E){var n=65535;for(n>v.pending_buf_size-5&&(n=v.pending_buf_size-5);;){if(v.lookahead<=1){XO(v);if(v.lookahead===0&&E===0)return 1;if(v.lookahead===0)break}v.strstart+=v.lookahead;v.lookahead=0;var f=v.block_start+n;if(v.strstart===0||v.strstart>=f)if(v.lookahead=v.strstart-f,v.strstart=f,xH(v,!1),v.strm.avail_out===0)return 1;if(v.strstart-v.block_start>=v.w_size-262&&(xH(v,!1),v.strm.avail_out===0))return 1}v.insert=0;if(E===4)return xH(v,!0),v.strm.avail_out===0?3:
4;v.strstart>v.block_start&&xH(v,!1);return 1}),
new FO(4,4,8,4,ot1),new FO(4,5,16,8,ot1),new FO(4,6,32,32,ot1),new FO(4,4,16,16,eD),new FO(8,16,32,32,eD),new FO(8,16,128,128,eD),new FO(8,32,128,256,eD),new FO(32,128,258,1024,eD),new FO(32,258,258,4096,eD)];var QbQ={};QbQ=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 lGQ=Object.prototype.toString;
py1.prototype.push=function(v,E){var n=this.strm,f=this.options.chunkSize;if(this.ended)return!1;var x=E===~~E?E:E===!0?4:0;typeof v==="string"?n.input=bCF(v):lGQ.call(v)==="[object ArrayBuffer]"?n.input=new Uint8Array(v):n.input=v;n.next_in=0;n.avail_in=n.input.length;do{n.avail_out===0&&(n.output=new iq.Buf8(f),n.next_out=0,n.avail_out=f);v=yCN(n,x);if(v!==1&&v!==0)return wZF(this,v),this.ended=!0,!1;if(n.avail_out===0||n.avail_in===0&&(x===4||x===2))if(this.options.to==="string"){var y=iq.shrinkBuf(n.output,
n.next_out);E=y;y=y.length;if(y<65537&&(E.subarray&&XZX||!E.subarray))E=String.fromCharCode.apply(null,iq.shrinkBuf(E,y));else{for(var Q="",e=0;e<y;e++)Q+=String.fromCharCode(E[e]);E=Q}this.chunks.push(E)}else E=iq.shrinkBuf(n.output,n.next_out),this.chunks.push(E)}while((n.avail_in>0||n.avail_out===0)&&v!==1);if(x===4)return(n=this.strm)&&n.state?(f=n.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?v=v7(n,-2):(n.state=null,v=f===113?v7(n,-3):0)):v=-2,wZF(this,v),this.ended=
!0,v===0;x===2&&(wZF(this,0),n.avail_out=0);return!0};
var wZF=function(v,E){E===0&&(v.result=v.options.to==="string"?v.chunks.join(""):iq.flattenChunks(v.chunks));v.chunks=[];v.err=E;v.msg=v.strm.msg};var bVi=typeof TextEncoder!=="undefined"?new TextEncoder:null,LWX=bVi?function(v){return bVi.encode(v)}:function(v){v=_.pT(v);
for(var E=new Uint8Array(v.length),n=0;n<E.length;n++)E[n]=v[n];return E};var CFI={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},SMX={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var bF=function(v,E){this.version=v;this.args=E};
bF.prototype.serialize=function(){return{version:this.version,args:this.args}};var ZCQ=function(v,E){this.topic=v;this.dataClass=E};
ZCQ.prototype.toString=function(){return this.topic};var lmo=_.JM("ytPubsub2Pubsub2Instance")||new _.vA;_.vA.prototype.subscribe=_.vA.prototype.subscribe;_.vA.prototype.unsubscribeByKey=_.vA.prototype.unsubscribeByKey;_.vA.prototype.publish=_.vA.prototype.publish;_.vA.prototype.clear=_.vA.prototype.clear;_.Vc("ytPubsub2Pubsub2Instance",lmo);var aGA=_.JM("ytPubsub2Pubsub2SubscribedKeys")||{};_.Vc("ytPubsub2Pubsub2SubscribedKeys",aGA);var MNF=_.JM("ytPubsub2Pubsub2TopicToKeys")||{};_.Vc("ytPubsub2Pubsub2TopicToKeys",MNF);
var Cxy=_.JM("ytPubsub2Pubsub2IsAsync")||{};_.Vc("ytPubsub2Pubsub2IsAsync",Cxy);_.Vc("ytPubsub2Pubsub2SkipSubKey",null);var AC9=void 0,YbX=void 0;var OCy=_.WG("max_body_size_to_compress",5E5),keE=_.WG("min_body_size_to_compress",500),l6=!0,iCL=0,sU=0,TGN=_.WG("compression_performance_threshold_lr",250),zo9=_.WG("slow_compressions_before_abandon_count",4),HCX=!1,gtE=new Map,$DA=1,WWL=!0;_.tf(rh,BGy);rh.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 sS1=function(v,E,n){n||(n=0);var f=v.W_;if(typeof E==="string")for(var x=0;x<16;x++)f[x]=E.charCodeAt(n)<<24|E.charCodeAt(n+1)<<16|E.charCodeAt(n+2)<<8|E.charCodeAt(n+3),n+=4;else for(x=0;x<16;x++)f[x]=E[n]<<24|E[n+1]<<16|E[n+2]<<8|E[n+3],n+=4;for(E=16;E<80;E++)n=f[E-3]^f[E-8]^f[E-14]^f[E-16],f[E]=(n<<1|n>>>31)&4294967295;E=v.chain_[0];n=v.chain_[1];x=v.chain_[2];for(var y=v.chain_[3],Q=v.chain_[4],e,F,b=0;b<80;b++)b<40?b<20?(e=y^n&(x^y),F=1518500249):(e=n^x^y,F=1859775393):b<60?(e=n&x|y&(n|x),
F=2400959708):(e=n^x^y,F=3395469782),e=(E<<5|E>>>27)+e+Q+F+f[b]&4294967295,Q=y,y=x,x=(n<<30|n>>>2)&4294967295,n=E,E=e;v.chain_[0]=v.chain_[0]+E&4294967295;v.chain_[1]=v.chain_[1]+n&4294967295;v.chain_[2]=v.chain_[2]+x&4294967295;v.chain_[3]=v.chain_[3]+y&4294967295;v.chain_[4]=v.chain_[4]+Q&4294967295};
rh.prototype.update=function(v,E){if(v!=null){E===void 0&&(E=v.length);for(var n=E-this.blockSize,f=0,x=this.buf_,y=this.inbuf_;f<E;){if(y==0)for(;f<=n;)sS1(this,v,f),f+=this.blockSize;if(typeof v==="string")for(;f<E;){if(x[y]=v.charCodeAt(f),++y,++f,y==this.blockSize){sS1(this,x);y=0;break}}else for(;f<E;)if(x[y]=v[f],++y,++f,y==this.blockSize){sS1(this,x);y=0;break}}this.inbuf_=y;this.total_+=E}};
rh.prototype.digest=function(){var v=[],E=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=E&255,E/=256;sS1(this,this.buf_);for(n=E=0;n<5;n++)for(var f=24;f>=0;f-=8)v[E]=this.chain_[n]>>f&255,++E;return v};var nyQ;var sM=function(v){var E=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(l){E.databaseToken=l},
triggerThrottle:function(){E.throttledSend()},
cancelThrottle:function(){E.cancelThrottledSend()},
immediateSend:function(l){return _.X(function(r){return _.m(r,E.immediateSend(l),0)})},
requestWithinAgeLimit:function(l,r){return E.requestWithinAgeLimit(l,r)},
retryQueuedRequests:function(){E.retryQueuedRequests()}};
var n;this.throttleTimeout=(n=v.throttleTimeout)!=null?n:100;var f;this.retryMaxAttempts=(f=v.retryMaxAttempts)!=null?f:1;var x;this.requestAgeLimitMs=(x=v.requestAgeLimitMs)!=null?x:2592E6;var y;this.queuedRequestAgeLimitMs=(y=v.queuedRequestAgeLimitMs)!=null?y:12E4;var Q;this.retryDelayMs=(Q=v.retryDelayMs)!=null?Q:5E3;var e;this.databaseToken=(e=v.databaseToken)!=null?e:void 0;this.enableCleaning=!!v.enableCleaning;var F;this.cleaningRate=(F=v.cleaningRate)!=null?F:.1;var b;this.potentialEsfErrorLimit=
(b=v.potentialEsfErrorLimit)!=null?b:10;v.handleError&&(this.handleError=v.handleError);v.handleWarning&&(this.handleWarning=v.handleWarning);v.disableYtIdbTransactions&&(this.disableYtIdbTransactions=v.disableYtIdbTransactions);v.bypassDbTokenDependency&&(this.bypassDbTokenDependency=v.bypassDbTokenDependency);this.getBooleanFlag=v.getBooleanFlag;this.jobManager=v.jobManager;this.logsStore=v.logsStore;this.networkManager=v.networkManager;this.sendFn=v.sendFn;this.onlineEvent=v.onlineEvent;this.offlineEvent=
v.offlineEvent;lF(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&rK1(this)},rK1=function(v){lF(v)&&!v.disableYtIdbTransactions&&(v.initialized=!0,v.enableCleaning&&Math.random()<=v.cleaningRate&&v.logsStore.cleanLogsStore(v.databaseToken),v.retryQueuedRequests(),v.networkManager.isNetworkAvailable()&&v.throttledSend(),v.networkManager.listen(v.onlineEvent,v.throttledSend.bind(v)),v.networkManager.listen(v.offlineEvent,v.cancelThrottledSend.bind(v)))};
_.c=sM.prototype;_.c.writeThenSend=function(v,E){var n=this;E=E===void 0?{}:E;if(lF(this)&&this.initialized){var f={url:v,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(f,this.databaseToken).then(function(x){f.id=x;n.networkManager.isNetworkAvailable()&&n.immediateSend(f)}).catch(function(x){n.immediateSend(f);
P$F(n,x)})}else this.sendFn(v,E)};
_.c.sendThenWrite=function(v,E,n){var f=this;E=E===void 0?{}:E;if(lF(this)&&this.initialized){var x={url:v,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(x.skipRetry=n);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!x.skipRetry){if(!x.skipRetry){var y=E.onError?E.onError:function(){};
E.onError=function(Q,e){return _.X(function(F){if(F.nextAddress==1)return _.m(F,f.logsStore.set(x,f.databaseToken).catch(function(b){P$F(f,b)}),2);
y(Q,e);_.yQ(F)})}}this.sendFn(v,E,x.skipRetry)}else this.logsStore.set(x,this.databaseToken).catch(function(Q){f.sendFn(v,E,x.skipRetry);
P$F(f,Q)})}else this.sendFn(v,E,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&n)};
_.c.sendAndWrite=function(v,E){var n=this;E=E===void 0?{}:E;if(lF(this)&&this.initialized){var f={url:v,options:E,timestamp:this.now(),status:"NEW",sendCount:0},x=!1,y=E.onSuccess?E.onSuccess:function(){};
f.options.onSuccess=function(Q,e){f.id!==void 0?n.logsStore.deleteRequest(f.id,n.databaseToken):x=!0;n.networkManager.networkStatusHint&&n.getBooleanFlag&&n.getBooleanFlag("vss_network_hint")&&n.networkManager.networkStatusHint(!0);y(Q,e)};
this.sendFn(f.url,f.options,void 0,!0);this.logsStore.set(f,this.databaseToken).then(function(Q){f.id=Q;x&&n.logsStore.deleteRequest(f.id,n.databaseToken)}).catch(function(Q){P$F(n,Q)})}else this.sendFn(v,E,void 0,!0)};
_.c.throttledSend=function(){var v=this;if(!lF(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.logsStore.getMostRecentByStatus("NEW",v.databaseToken),2);if(n.nextAddress!=3)return E=n.yieldResult,E?_.m(n,v.immediateSend(E),3):(v.cancelThrottledSend(),n.return());v.intervalJob&&(v.intervalJob=0,v.throttledSend());_.yQ(n)})},this.throttleTimeout))};
_.c.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.c.immediateSend=function(v){var E=this,n;return _.X(function(f){switch(f.nextAddress){case 1:if(!lF(E))throw Error("$c");if(v.id===void 0){f.jumpTo(2);break}return _.m(f,E.logsStore.markAsQueued(v.id,E.databaseToken),3);case 3:(n=f.yieldResult)||E.handleWarning(Error("ad"));case 2:if(E.requestWithinAgeLimit(v,E.requestAgeLimitMs)){f.jumpTo(4);break}E.handleWarning(Error("bd"));if(v.id===void 0){f.jumpTo(5);break}return _.m(f,E.logsStore.deleteRequest(v.id,E.databaseToken),5);case 5:return f.return();
case 4:v.skipRetry||(v=am1(E,v));if(!v){f.jumpTo(0);break}if(!v.skipRetry||v.id===void 0){f.jumpTo(8);break}return _.m(f,E.logsStore.deleteRequest(v.id,E.databaseToken),8);case 8:E.sendFn(v.url,v.options,!!v.skipRetry),_.yQ(f)}})};
var am1=function(v,E){if(!lF(v))throw Error("cd");var n=E.options.onError?E.options.onError:function(){};
E.options.onError=function(x,y){var Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:Q=yV1(y);(e=ppX(y))&&v.getBooleanFlag&&v.getBooleanFlag("web_enable_error_204")&&v.handleError(Error("dd"),E.url,y);if(!(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&Q||v.getBooleanFlag&&!v.getBooleanFlag("nwl_consider_error_code")&&v.potentialEsfErrorCounter<=v.potentialEsfErrorLimit)){l.jumpTo(2);break}if(!v.networkManager.sendNetworkCheckRequest){l.jumpTo(3);break}return _.m(l,v.networkManager.sendNetworkCheckRequest(),
3);case 3:if(v.networkManager.isNetworkAvailable()){l.jumpTo(2);break}n(x,y);if(!v.getBooleanFlag||!v.getBooleanFlag("nwl_consider_error_code")||((F=E)==null?void 0:F.id)===void 0){l.jumpTo(6);break}return _.m(l,v.logsStore.resetRequest(E.id,v.databaseToken,!1),6);case 6:return l.return();case 2:if(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&!Q&&v.potentialEsfErrorCounter>v.potentialEsfErrorLimit)return l.return();v.potentialEsfErrorCounter++;if(((b=E)==null?void 0:b.id)===void 0){l.jumpTo(8);
break}return E.sendCount<v.retryMaxAttempts?_.m(l,v.logsStore.resetRequest(E.id,v.databaseToken,!0,e?!1:void 0),12):_.m(l,v.logsStore.deleteRequest(E.id,v.databaseToken),8);case 12:v.jobManager.addLowPriorityJob(function(){v.networkManager.isNetworkAvailable()&&v.throttledSend()},v.retryDelayMs);
case 8:n(x,y),_.yQ(l)}})};
var f=E.options.onSuccess?E.options.onSuccess:function(){};
E.options.onSuccess=function(x,y){var Q;return _.X(function(e){if(e.nextAddress==1)return((Q=E)==null?void 0:Q.id)===void 0?e.jumpTo(2):_.m(e,v.logsStore.deleteRequest(E.id,v.databaseToken),2);v.networkManager.networkStatusHint&&v.getBooleanFlag&&v.getBooleanFlag("vss_network_hint")&&v.networkManager.networkStatusHint(!0);f(x,y);_.yQ(e)})};
return E};
sM.prototype.requestWithinAgeLimit=function(v,E){v=v.timestamp;return this.now()-v>=E?!1:!0};
sM.prototype.retryQueuedRequests=function(){var v=this;if(!lF(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(E){E&&!v.requestWithinAgeLimit(E,v.queuedRequestAgeLimitMs)?v.jobManager.addLowPriorityJob(function(){return _.X(function(n){if(n.nextAddress==1)return E.id===void 0?n.jumpTo(2):_.m(n,v.logsStore.resetRequest(E.id,v.databaseToken),2);v.retryQueuedRequests();_.yQ(n)})}):v.networkManager.isNetworkAvailable()&&v.throttledSend()})};
var P$F=function(v,E){v.writeError&&!v.networkManager.isNetworkAvailable()?v.writeError(E):v.handleError(E)},lF=function(v){return!!v.databaseToken||v.bypassDbTokenDependency};var Qks;var Pj9={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 ZV6={},PoN=HA("ServiceWorkerLogsDatabase",{objectStores:(ZV6.SWHealthLog={addedAtVersion:1},ZV6),shared:!0,upgrade:function(v,E){E(1)&&CZ(Z$(v,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var I_Q={},dQI=0;var VkQ;var rl=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Js=function(){if(!rl.instance){var v=_.JM("yt.networkRequestMonitor.instance")||new rl;
_.Vc("yt.networkRequestMonitor.instance",v);rl.instance=v}return rl.instance};
rl.prototype.requestComplete=function(v,E){E&&(this.anyRequestHasSucceeded=!0);v=this.removeParams(v);this.requestMap.get(v)||this.requestMap.set(v,E)};
rl.prototype.isEndpointCFR=function(v){v=this.removeParams(v);return(v=this.requestMap.get(v))?!1:v===!1&&this.anyRequestHasSucceeded?!0:null};
rl.prototype.removeParams=function(v){return v.split("?")[0]};
rl.prototype.removeParams=rl.prototype.removeParams;rl.prototype.isEndpointCFR=rl.prototype.isEndpointCFR;rl.prototype.requestComplete=rl.prototype.requestComplete;rl.getInstance=Js;var PN=function(v){_.mP.call(this);var E=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=v!=null?v:{addLowPriorityJob:function(x,y){return setTimeout(x,y)},
cancelJob:function(x){clearTimeout(x)}};
var n,f;this.isOnline=(f=(n=window.navigator)==null?void 0:n.onLine)!=null?f:!0;this.onNavigatorChange=function(){return _.X(function(x){return _.m(x,C$1(E),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||M$U(this)};
_.S(PN,_.mP);PN.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete PN.instance};
PN.prototype.isNetworkAvailable=function(){return this.isOnline};
var M$U=function(v){v.pollingJob=v.jobManager.addLowPriorityJob(function(){var E;return _.X(function(n){if(n.nextAddress==1)return v.isOnline?((E=window.navigator)==null?0:E.onLine)?n.jumpTo(3):_.m(n,C$1(v),3):_.m(n,C$1(v),3);M$U(v);_.yQ(n)})},3E4)},C$1=function(v,E){return v.networkRequestPromise?v.networkRequestPromise:v.networkRequestPromise=new Promise(function(n){var f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:return f=window.AbortController?new window.AbortController:void 0,y=(x=f)==null?void 0:x.signal,Q=!1,_.vW(e,2,3),f&&(v.abortTimeoutKey=v.jobManager.addLowPriorityJob(function(){f.abort()},E||2E4)),_.m(e,fetch("/generate_204",{method:"HEAD",
signal:y}),5);case 5:Q=!0;case 3:_.nI(e);v.networkRequestPromise=void 0;v.abortTimeoutKey&&(v.jobManager.cancelJob(v.abortTimeoutKey),v.abortTimeoutKey=0);Q!==v.isOnline&&(v.isOnline=Q,v.isOnline?v.dispatchEvent("networkstatus-online"):v.dispatchEvent("networkstatus-offline"));n(Q);_.xh(e,0);break;case 2:_.cW(e),Q=!1,e.jumpTo(3)}})})};var a9=function(){_.mP.call(this);var v=this;this.shouldFlushErrors=!1;PN.instance||(PN.instance=new PN(_.wh));this.sharedNetworkStatusManager=PN.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(v.shouldFlushErrors&&_.Z("offline_error_handling")){var E=DQy().get("errors",!0);if(E){for(var n in E)if(E[n]){var f=new _.yc(n,"sent via offline_errors");f.name=E[n].name;f.stack=E[n].stack;f.level=E[n].level;_.UO(f)}DQy().set("errors",{},2592E3,!0)}}})};
_.S(a9,_.mP);var S2S=function(){if(!a9.instance){var v=_.JM("yt.networkStatusManager.instance")||new a9;_.Vc("yt.networkStatusManager.instance",v);a9.instance=v}return a9.instance};
_.c=a9.prototype;_.c.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.c.networkStatusHint=function(v){this.sharedNetworkStatusManager.isOnline=v};
_.c.getWindowStatus=function(){var v=window.navigator.onLine;return v===void 0?!0:v};
_.c.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.c.listen=function(v,E){return this.sharedNetworkStatusManager.listen(v,E)};
_.c.sendNetworkCheckRequest=function(v){v=C$1(this.sharedNetworkStatusManager,v);v.then(function(E){_.Z("use_cfr_monitor")&&Js().requestComplete("generate_204",E)});
return v};
a9.prototype.sendNetworkCheckRequest=a9.prototype.sendNetworkCheckRequest;a9.prototype.listen=a9.prototype.listen;a9.prototype.enableErrorFlushing=a9.prototype.enableErrorFlushing;a9.prototype.getWindowStatus=a9.prototype.getWindowStatus;a9.prototype.networkStatusHint=a9.prototype.networkStatusHint;a9.prototype.isNetworkAvailable=a9.prototype.isNetworkAvailable;a9.getInstance=S2S;_.q1=function(v){v=v===void 0?{}:v;_.mP.call(this);var E=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=S2S();var n=_.JM("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);n&&(v.rateLimit?(this.rateLimit=v.rateLimit,n("networkstatus-online",function(){UO6(E,"publicytnetworkstatus-online")}),n("networkstatus-offline",function(){UO6(E,"publicytnetworkstatus-offline")})):(n("networkstatus-online",function(){E.dispatchEvent("publicytnetworkstatus-online")}),n("networkstatus-offline",
function(){E.dispatchEvent("publicytnetworkstatus-offline")})))};
_.S(_.q1,_.mP);_.q1.prototype.isNetworkAvailable=function(){var v=_.JM("yt.networkStatusManager.instance.isNetworkAvailable");return v?v.bind(this.nsmInstance)():!0};
_.q1.prototype.networkStatusHint=function(v){var E=_.JM("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);E&&E(v)};
_.q1.prototype.sendNetworkCheckRequest=function(v){var E=this,n;return _.X(function(f){n=_.JM("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(E.nsmInstance);return _.Z("skip_network_check_if_cfr")&&Js().isEndpointCFR("generate_204")?f.return(new Promise(function(x){var y;E.networkStatusHint(((y=window.navigator)==null?void 0:y.onLine)||!0);x(E.isNetworkAvailable())})):n?f.return(n(v)):f.return(!0)})};
var UO6=function(v,E){v.rateLimit?v.lastJobTime?(_.wh.cancelJob(v.schedulerJob),v.schedulerJob=_.wh.addLowPriorityJob(function(){v.lastPublicSignalSent!==E&&(v.dispatchEvent(E),v.lastPublicSignalSent=E,v.lastJobTime=(0,_.gd)())},v.rateLimit-((0,_.gd)()-v.lastJobTime))):(v.dispatchEvent(E),v.lastPublicSignalSent=E,v.lastJobTime=(0,_.gd)()):v.dispatchEvent(E)};var jkN,ZX=function(){sM.call(this,{logsStore:{cleanLogsStore:skQ,deleteRequest:l_I,getMostRecentByStatus:mQX,markAsQueued:wpA,resetRequest:b2G,set:FoE},networkManager:_.O21(),handleError:function(v,E,n){var f,x=n==null?void 0:(f=n.error)==null?void 0:f.code;if(x===400||x===415){var y;v=new _.yc(v.message,E,n==null?void 0:(y=n.error)==null?void 0:y.code);_.Kk(v,void 0,void 0,void 0,!0)}else _.UO(v)},
handleWarning:_.Kk,sendFn:NnG,now:_.gd,writeError:H2L,jobManager:_.Ce(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.WG("potential_esf_error_limit",10),getBooleanFlag:_.Z,disableYtIdbTransactions:!(_.cA()&&_.kwQ())});this.initializationPromise=new _.Wy;_.Z("networkless_immediately_drop_all_requests")&&rVQ();pR1("LogsDatabaseV2")};
_.S(ZX,sM);_.JKP=function(){var v=_.JM("yt.networklessRequestController.instance");v||(v=new ZX,_.Vc("yt.networklessRequestController.instance",v),_.Z("networkless_logging")&&_.Du().then(function(E){v.databaseToken=E;rK1(v);v.initializationPromise.resolve();v.enableCleaning&&Math.random()<=v.cleaningRate&&v.databaseToken&&Z2Q(v.databaseToken);_.Z("networkless_immediately_drop_sw_health_store")&&q2F(v)}));
return v};
ZX.prototype.writeThenSend=function(v,E){E||(E={});E=uJL(v,E);_.cA()||(this.initialized=!1);sM.prototype.writeThenSend.call(this,v,E)};
ZX.prototype.sendThenWrite=function(v,E,n){E||(E={});E=uJL(v,E);_.cA()||(this.initialized=!1);sM.prototype.sendThenWrite.call(this,v,E,n)};
ZX.prototype.sendAndWrite=function(v,E){E||(E={});E=uJL(v,E);_.cA()||(this.initialized=!1);sM.prototype.sendAndWrite.call(this,v,E)};
ZX.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var q2F=function(v){var E;_.X(function(n){if(!v.databaseToken)throw E=Zu("clearSWHealthLogsDb"),E;return n.return(CoG(v.databaseToken).catch(function(f){v.handleError(f)}))})};_.$QE=!1;_.WoN=_.n1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.$QE};_.Vc("ytNetworklessLoggingInitializationOptions",_.WoN);var Xu=function(v){var E=this;this.config_=null;v?this.config_=v:sQy()&&(this.config_=_.uq());_.cP(_.wh,function(){cVL(E)},5E3)};
Xu.prototype.isReady=function(){!this.config_&&sQy()&&(this.config_=_.uq());return!!this.config_};
var xQQ=function(v,E,n,f){!_.MX("VISITOR_DATA")&&E!=="visitor_id"&&Math.random()<.01&&_.Kk(new _.yc("Missing VISITOR_DATA when sending innertube request.",E,n,f));if(!v.isReady()){var x=new _.yc("innertube xhrclient not ready",E,n,f);_.UO(x);throw x;}var y={headers:f.headers||{},method:"POST",postParams:n,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()},
onFetchTimeout:f.onTimeout,onSuccess:function(r,a){if(f.onSuccess)f.onSuccess(a)},
onFetchSuccess:function(r){if(f.onSuccess)f.onSuccess(r)},
onError:function(r,a){if(f.onError)f.onError(a)},
onFetchError:function(r){if(f.onError)f.onError(r)},
timeout:f.timeout,withCredentials:!0,compress:f.compress};y.headers["Content-Type"]||(y.headers["Content-Type"]="application/json");var Q="";(x=v.config_.innertubeHostOverride)&&(Q=x);var e=v.config_.innertubeUseThirdPartyAuth||!1,F=_.AcI(e,Q,f);Object.assign(y.headers,F);y.headers.Authorization&&!Q&&e&&(y.headers["x-origin"]=window.location.origin);var b=_.AM(Q+("/youtubei/"+v.config_.innertubeApiVersion+"/"+E),{alt:"json"}),l=function(r){r=r===void 0?!1:r;var a;if(f.retry&&Q!="www.youtube-nocookie.com"&&
(r||_.Z("skip_ls_gel_retry")||y.headers["Content-Type"]!=="application/json"||(a=oyN(E,n,F,e)),a)){var M=y.onSuccess,U=y.onFetchSuccess;y.onSuccess=function(V,O){f_E(a);M(V,O)};
n.onFetchSuccess=function(V,O){f_E(a);U(V,O)}}try{if(r&&f.retry&&!f.networklessOptions.bypassNetworkless)y.method="POST",f.networklessOptions.writeThenSend?_.JKP().writeThenSend(b,y):_.JKP().sendAndWrite(b,y);
else if(f.compress){var d=!f.networklessOptions.writeThenSend;if(y.postBody){var Y=y.postBody;typeof Y!=="string"&&(Y=JSON.stringify(y.postBody));GeX(b,Y,y,_.tM,d)}else GeX(b,JSON.stringify(y.postParams),y,vZy,d)}else _.Z("web_all_payloads_via_jspb")?_.tM(b,y):vZy(b,y)}catch(V){if(V.name==="InvalidAccessError")a&&(f_E(a),a=0),_.Kk(Error("fd"));else throw V;}a&&_.cP(_.wh,function(){cVL(v)},5E3)};
_.LoX()?vsE().then(function(r){l(r)}):l(!1)};var t0X=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(t0X,_.Vj);var KtX=0,TnF=_.f9?"webkit":_.oG?"moz":_.n9?"ms":pHL?"o":"";_.Vc("ytDomDomGetNextId",_.JM("ytDomDomGetNextId")||function(){return++KtX});var dOP={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},As=function(v){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(v=
v||window.event){this.event=v;for(var E in v)E in dOP||(this[E]=v[E]);this.scale=v.scale;this.rotation=v.rotation;var n=v.target||v.srcElement;n&&n.nodeType==3&&(n=n.parentNode);this.target=n;var f=v.relatedTarget;if(f)try{f=f.nodeName?f:null}catch(x){f=null}else this.type=="mouseover"?f=v.fromElement:this.type=="mouseout"&&(f=v.toElement);this.relatedTarget=f;this.clientX=v.clientX!=void 0?v.clientX:v.pageX;this.clientY=v.clientY!=void 0?v.clientY:v.pageY;this.keyCode=v.keyCode?v.keyCode:v.which;
this.charCode=v.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=v.altKey;this.ctrlKey=v.ctrlKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pageX_=v.pageX;this.pageY_=v.pageY}}catch(x){}},Imi=function(v){if(document.body&&document.documentElement){var E=document.body.scrollTop+document.documentElement.scrollTop;
v.pageX_=v.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);v.pageY_=v.clientY+E}};
As.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
As.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
As.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hs=_.n1.ytEventsEventsListeners||{};_.Vc("ytEventsEventsListeners",hs);var viL=_.n1.ytEventsEventsCounter||{count:0};_.Vc("ytEventsEventsCounter",viL);var EiI=_.FT(function(){var v=!1;try{var E=Object.defineProperty({},"capture",{get:function(){v=!0}});
window.addEventListener("test",null,E)}catch(n){}return v});_.tf(D$,_.QK);D$.prototype.onMouseMove_=function(v){v.pageX_===void 0&&Imi(v);var E=v.pageX_;v.pageY_===void 0&&Imi(v);this.position_=new _.PV(E,v.pageY_)};
D$.prototype.checkPosition_=function(){if(this.position_){var v=(0,_.gd)();if(this.previousTime_!=0){var E=this.previousPosition_,n=this.position_,f=E.x-n.x;E=E.y-n.y;f=Math.sqrt(f*f+E*E)/(v-this.previousTime_);this.cycles_[this.index_]=Math.abs((f-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(n=E=0;n<4;n++)E+=this.cycles_[n]||0;E>=3&&this.callback_();this.previousVelocity_=f}this.previousTime_=v;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
D$.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.ni1(this.mouseListenerKey_)};var cxy={};var w8$=new _.z("rawColdConfigGroup");var mdQ=new _.z("rawHotConfigGroup");var Y2g=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Y2g,_.Vj);var RkI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(RkI,_.Vj);var x$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v,500)};
_.S(x$,_.Vj);x$.prototype.getPayloadCase=function(){return _.lN(this,hfF)};
x$.prototype.getContext=function(){return _.j5(this,RkI,33)};
var hfF=[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 yZN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(yZN,_.Vj);var H5E=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(H5E,_.Vj);H5E.prototype.setVideoId=function(v){return RY(this,1,gi1,g_(v))};
H5E.prototype.getPlaylistId=function(){return _.nT(this,n3(this,gi1,2))};
var gi1=[1,2];var EzG=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(EzG,_.Vj);EzG.prototype.getContext=function(){return _.j5(this,ts,1)};
EzG.prototype.getTier=function(){return _.Ua(this,7)};var AK1,u6,jD;AK1=_.n1.ytPubsubPubsubInstance||new _.vA;u6=_.n1.ytPubsubPubsubSubscribedKeys||{};jD=_.n1.ytPubsubPubsubTopicToKeys||{};_.yxN=_.n1.ytPubsubPubsubIsSynchronous||{};_.vA.prototype.subscribe=_.vA.prototype.subscribe;_.vA.prototype.unsubscribeByKey=_.vA.prototype.unsubscribeByKey;_.vA.prototype.publish=_.vA.prototype.publish;_.vA.prototype.clear=_.vA.prototype.clear;_.Vc("ytPubsubPubsubInstance",AK1);_.Vc("ytPubsubPubsubTopicToKeys",jD);_.Vc("ytPubsubPubsubIsSynchronous",_.yxN);
_.Vc("ytPubsubPubsubSubscribedKeys",u6);var $H=window;var Cz=_.Z("web_enable_lifecycle_monitoring")&&F$E()!==0,V$P=_.Z("web_enable_lifecycle_monitoring");var HVX=function(v){var E=this;var n=n===void 0?0:n;var f=f===void 0?_.Ce():f;this.JSC$8704_defaultPriority=n;this.scheduler=f;this.completedResolver=new _.Wy;this.scheduledPayloads=v;for(v={i$jscomp$528:0};v.i$jscomp$528<this.scheduledPayloads.length;v={payload$jscomp$18:void 0,i$jscomp$528:v.i$jscomp$528},v.i$jscomp$528++)v.payload$jscomp$18=this.scheduledPayloads[v.i$jscomp$528],n=function(x){return function(){x.payload$jscomp$18.job();E.scheduledPayloads[x.i$jscomp$528].processed=!0;E.scheduledPayloads.every(function(y){return y.processed===
!0})&&E.completedResolver.resolve()}}(v),f=this.scheduler.addJob(n,DOi(this,v.payload$jscomp$18)),this.scheduledPayloads[v.i$jscomp$528]=Object.assign({},v.payload$jscomp$18,{job:n,
jobId:f})};
HVX.prototype.flushJobs=function(){var v=this,E=Array.from(this.scheduledPayloads.keys()).sort(function(f,x){return DOi(v,v.scheduledPayloads[x])-DOi(v,v.scheduledPayloads[f])});
E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=this.scheduledPayloads[n.value],n.jobId===void 0||n.processed||(this.scheduler.cancelJob(n.jobId),this.scheduler.addJob(n.job,10))};
HVX.prototype.cancel=function(){for(var v=_.p(this.scheduledPayloads),E=v.next();!E.done;E=v.next())E=E.value,E.jobId===void 0||E.processed||this.scheduler.cancelJob(E.jobId),E.processed=!0;this.completedResolver.resolve()};
var DOi=function(v,E){var n;return(n=E.priority)!=null?n:v.JSC$8704_defaultPriority};var M_=function(v){this.state=v;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Cz&&mu$(this.state)};
M_.prototype.install=function(v){this.plugins.push(v);return this};
M_.prototype.uninstall=function(){var v=this;_.rV.apply(0,arguments).forEach(function(E){E=v.plugins.indexOf(E);E>-1&&v.plugins.splice(E,1)})};
M_.prototype.transition=function(v,E){var n=this;Cz&&wEy(this.state);var f=this.transitions.find(function(y){return Array.isArray(y.from)?y.from.find(function(Q){return Q===n.state&&y.to===v}):y.from===n.state&&y.to===v});
if(f){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);g01(this,v,E);this.state=v;Cz&&mu$(this.state);f=f.action.bind(this);var x=this.plugins.filter(function(y){return y[v]}).map(function(y){return y[v]});
f(N61(this,x),E)}else throw Error("gd`"+this.state+"`"+v);};
var N61=function(v,E){var n=E.filter(function(x){return ucF(v,x)===10}),f=E.filter(function(x){return ucF(v,x)!==10});
return v.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var x=_.rV.apply(0,arguments);return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.runImmediateJobsAsync.apply(v,[n].concat(_.s8(x))),2);v.setJobSetWithScheduledJobs.apply(v,[f].concat(_.s8(x)));_.yQ(y)})}:function(){var x=_.rV.apply(0,arguments);
v.runImmediateJobsSync.apply(v,[n].concat(_.s8(x)));v.setJobSetWithScheduledJobs.apply(v,[f].concat(_.s8(x)))}};
M_.prototype.runImmediateJobsSync=function(v){var E=_.rV.apply(1,arguments);_.Ce();for(var n=_.p(v),f=n.next(),x={};!f.done;x={lifecycle$jscomp$2:void 0},f=n.next())x.lifecycle$jscomp$2=f.value,Da(function(y){return function(){jSU(y.lifecycle$jscomp$2.name);ljN(function(){return y.lifecycle$jscomp$2.callback.apply(y.lifecycle$jscomp$2,_.s8(E))});
S2(y.lifecycle$jscomp$2.name)}}(x))};
M_.prototype.runImmediateJobsAsync=function(v){var E=_.rV.apply(1,arguments),n,f,x,y;return _.X(function(Q){Q.nextAddress==1&&(_.Ce(),n=_.p(v),f=n.next(),x={});if(Q.nextAddress!=3){if(f.done)return Q.jumpTo(0);x.lifecycle$jscomp$3=f.value;x.asyncJobCompletion=void 0;y=function(e){return function(){jSU(e.lifecycle$jscomp$3.name);var F=ljN(function(){return e.lifecycle$jscomp$3.callback.apply(e.lifecycle$jscomp$3,_.s8(E))});
uIN(F)?e.asyncJobCompletion=_.Z("web_lifecycle_error_handling_killswitch")?F.then(function(){S2(e.lifecycle$jscomp$3.name)}):F.then(function(){S2(e.lifecycle$jscomp$3.name)},function(b){b51(b);
S2(e.lifecycle$jscomp$3.name)}):S2(e.lifecycle$jscomp$3.name)}}(x);
Da(y);return x.asyncJobCompletion?_.m(Q,x.asyncJobCompletion,3):Q.jumpTo(3)}x={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};f=n.next();return Q.jumpTo(2)})};
M_.prototype.setJobSetWithScheduledJobs=function(v){var E=_.rV.apply(1,arguments),n=this,f=v.map(function(x){return{job:function(){jSU(x.name);ljN(function(){return x.callback.apply(x,_.s8(E))});
S2(x.name)},
priority:ucF(n,x)}});
f.length&&(this.jobSet=new HVX(f))};
var ucF=function(v,E){var n,f;return(f=(n=v.overridePriority)!=null?n:E.priority)!=null?f:0},jSU=function(v){Cz&&v&&mu$(v)},S2=function(v){Cz&&v&&wEy(v)},g01=function(v,E,n){V$P&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+v.constructor.name+"] '"+v.state+"' to '"+E+"'"),console.log("with message: ",n),console.groupEnd())};
_.hK.Object.defineProperties(M_.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var OVX=function(v){M_.call(this,v===void 0?"none":v);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(){}}]},kq4;
_.S(OVX,M_);OVX.prototype.runApplicationNavigationBegin=function(v,E){var n=this;this.navigationTimer=_.cP(_.wh,function(){n.currentState==="application_navigating"&&n.transition("none")},5E3);
v(E==null?void 0:E.event)};
OVX.prototype.runApplicationNavigationEnd=function(v,E){this.navigationTimer&&(_.wh.cancelJob(this.navigationTimer),this.navigationTimer=null);v(E==null?void 0:E.event)};
_.FGE=function(){kq4||(kq4=new OVX);return kq4};var eYF=[];_.Vc("yt.logging.transport.getScrapedGelPayloads",function(){return eYF});var LZ=function(){var v=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return v.totalEntries}}};
LZ.prototype.storePayload=function(v,E){v=sUX(v);this.store[v]?this.store[v].push(E):(this.memoizedKeySequences={},this.store[v]=[E]);this.totalEntries++;_.Z("more_accurate_gel_parser")&&(E=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(E));return v};
LZ.prototype.smartExtractMatchingEntries=function(v){if(!v.keys.length)return[];for(var E=Wt1(this,v.keys.splice(0,1)[0]),n=[],f=0;f<E.length;f++)this.store[E[f]]&&v.sizeLimit&&(this.store[E[f]].length<=v.sizeLimit?(n.push.apply(n,_.s8(this.store[E[f]])),delete this.store[E[f]]):n.push.apply(n,_.s8(this.store[E[f]].splice(0,v.sizeLimit))));this.totalEntries-=n.length;(v==null?0:v.sizeLimit)&&n.length<(v==null?void 0:v.sizeLimit)&&(v.sizeLimit-=n.length,n.push.apply(n,_.s8(this.smartExtractMatchingEntries(v))));
return n};
LZ.prototype.extractMatchingEntries=function(v){v=Wt1(this,v);for(var E=[],n=0;n<v.length;n++)this.store[v[n]]&&(E.push.apply(E,_.s8(this.store[v[n]])),delete this.store[v[n]]);this.totalEntries-=E.length;return E};
LZ.prototype.getSequenceCount=function(v){v=Wt1(this,v);for(var E=0,n=0;n<v.length;n++){var f=void 0;E+=((f=this.store[v[n]])==null?void 0:f.length)||0}return E};
var Wt1=function(v,E){var n=sUX(E);if(v.memoizedKeySequences[n])return v.memoizedKeySequences[n];var f=Object.keys(v.store)||[];if(f.length<=1&&sUX(E)===f[0])return f;for(var x=[],y=0;y<f.length;y++){var Q=f[y].split("/");if($OU(E.auth,Q[0])){var e=E.isJspb;$OU(e===void 0?"undefined":e?"true":"false",Q[1])&&$OU(E.cttAuthInfo,Q[2])&&(e=E.tier,e=e===void 0?"undefined":JSON.stringify(e),$OU(e,Q[3])&&x.push(f[y]))}}return v.memoizedKeySequences[n]=x},$OU=function(v,E){return v===void 0||v==="undefined"?
!0:v===E};
LZ.prototype.getSequenceCount=LZ.prototype.getSequenceCount;LZ.prototype.extractMatchingEntries=LZ.prototype.extractMatchingEntries;LZ.prototype.smartExtractMatchingEntries=LZ.prototype.smartExtractMatchingEntries;LZ.prototype.storePayload=LZ.prototype.storePayload;var Gl1,$uN,TqI,i6,Lt1,rZN,sjX,W$E,kls,YeG,L$X,QjI,uyF;Gl1=_.WG("initial_gel_batch_timeout",2E3);$uN=_.WG("gel_queue_timeout_max_ms",6E4);TqI=_.WG("gel_min_batch_size",5);i6=void 0;Lt1=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
rZN=new Lt1;sjX=new Lt1;W$E=new Lt1;kls=new Lt1;L$X=!0;QjI=1;_.p8Q=new Map;uyF=_.n1.ytLoggingTransportTokensToCttTargetIds_||{};_.Vc("ytLoggingTransportTokensToCttTargetIds_",uyF);var Nq$=_.n1.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Vc("ytLoggingTransportTokensToJspbCttTargetIds_",Nq$);var T2={};var p3=_.n1.ytLoggingGelSequenceIdObj_||{};_.Vc("ytLoggingGelSequenceIdObj_",p3);var CjX=[];var VgF=new Set,JZL=0,NJG=0,gzy=0,ddX=[],KG1=[],u$L=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var BJ1=function(){};
BJ1.prototype.getUrl=function(v,E){E=E===void 0?!1:E;return v.hasOwnProperty("shareEndpoint")?null:_.WGG(v,null,E)};
var X6y=function(v,E,n){v={endpoint:E,actions:[]};n=(n.path?n.path[0]:n.target).icon||"";E=n.indexOf(":");E>0&&(n=n.substr(E+1));n&&v.actions.push(n);return v};var zYG=/Command$/,iRI=/Endpoint$/,LGA=new Map;var Gq4,T6z;Gq4=1;_.qw=function(){this.actionRoutingMap=new Map};
_.qw.prototype.triggerAction=function(v){var E=new JtE(v,!1,_.rV.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.qw.prototype.triggerOptionalAction=function(v){var E=new JtE(v,!0,_.rV.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.UM=function(v,E,n){E.forEach(function(f){var x=TJs(f);x&&v.triggerOptionalAction(x,f,n,void 0)})};
_.qw.prototype.handleAction=function(v){var E=this.actionRoutingMap.get(v.actionName);E&&T6z(v,E);v.optionalAction||v.returnValue.length!==0||(v=new _.yc("Unhandled action",v.actionName),_.Kk(v))};
T6z=function(v,E){E.forEach(function(n){var f=null;n?f=n.apply(null,v.args):(n=Error("hd"),n.params=v.actionName,_.UO(n));v.returnValue.push(f)})};
_.Jo=function(v,E,n){n||(n=Gq4++);for(var f=_.p(Object.keys(E)),x=f.next();!x.done;x=f.next()){x=x.value;var y=v.actionRoutingMap.get(x);y||(y=new Map,v.actionRoutingMap.set(x,y));v.registerActionHandler(n,x,E[x],y)}return n};
_.qw.prototype.registerActionHandler=function(v,E,n,f){f.set(v,_.qX(n))};
_.K3=function(v,E,n){E=_.p(Object.keys(E));for(var f=E.next();!f.done;f=E.next())(f=v.actionRoutingMap.get(f.value))&&f.delete(n)};
_.zY(_.qw);var n_E=function(v,E){var n=_.qw.getInstance();_.l5(function(){var f={},x=_.Jo(n,(f[v]=E,f));_.Fp(function(){var y={};_.K3(n,(y[v]="",y),x)})})};var cqE=function(v,E){_.l5(function(){var n=v.value;n?(n.addEventListener("yt-service-request-sent",E,void 0),_.Fp(function(){n?n.removeEventListener("yt-service-request-sent",E,void 0):yqA(v)})):yqA(v)})};Fbs=Nty;var agX=new Set(["For","If","Match","Watch"]),iVw={},zf6=(iVw[a0.default]=function(){return coI},iVw.style=function(){return coI},iVw),RfF;
for(RfF in zf6)uY.attributes[RfF]=zf6[RfF](uY.attributes[RfF]);var HP=new _.$Y("VISIBILITY_OBSERVER");var IgA={retrieve:function(v){return this.id.\u0275prov.token===v.\u0275prov.token?this.contextValue:this?NBN(this,this.id):g69}};var t$S=function(v,E,n){if(v!==ho)return!1;v=wiX(document.createElement("div"),function(){var f=NB(!1);try{n[0]()}finally{NB(f)}});
v=Array.from(v.childNodes);v.length===1&&(v=v[0]);return v};var B61=function(v){v=v.clone();UXU(v);m2(v,"dg",null);m2(v,"d","0");ZkS(v,null);C51(v,null);m2(v,"ichc","0");return v},vZ4=!0,EZP=function(v,E,n){var f=n===void 0?{}:n;
n=f.cssRowKey===void 0?void 0:f.cssRowKey;var x=f.combinedSignature===void 0?void 0:f.combinedSignature;var y=f.extraEdges===void 0?void 0:f.extraEdges;f=f.callback===void 0?void 0:f.callback;m2(v,"m",E.join(","));y&&SOw(v,y);n&&(m2(v,"ck",n),x?m2(v,"rs",x):vZ4&&(vZ4=!1));if(f){if(f!=null&&!KM1.test(f))throw Error("ab`"+f);m2(v,"cb",f)}v=v.toString();_.cI(v,"/")&&(v=mn1(document.location.href)+v);return _.xR(v)};var oZ1=function(v){return nZ1(v).then(function(E){return JSON.parse(E.responseText)})},nZ1=function(v){var E={},n=E.xmlHttpFactory?E.xmlHttpFactory.createInstance():$gF.createInstance();
return(new _.z2(function(f,x){var y;try{n.open("GET",v,!0)}catch(F){x(new q_("Error opening XHR: "+F.message,v,n))}n.onreadystatechange=function(){if(n.readyState==4){_.n1.clearTimeout(y);var F;!(F=WZ4(n.status))&&(F=n.status===0)&&(F=F9o(v),F=!(F=="http"||F=="https"||F==""));F?f(n):x(new flP(n.status,v,n))}};
n.onerror=function(){x(new q_("Network error",v,n))};
if(E.headers)for(var Q in E.headers){var e=E.headers[Q];e!=null&&n.setRequestHeader(Q,e)}E.withCredentials&&(n.withCredentials=E.withCredentials);E.responseType&&(n.responseType=E.responseType);E.mimeType&&n.overrideMimeType(E.mimeType);E.timeoutMs>0&&(y=_.n1.setTimeout(function(){n.onreadystatechange=function(){};
n.abort();x(new xA6(v,n))},E.timeoutMs));
try{n.send(null)}catch(F){n.onreadystatechange=function(){},_.n1.clearTimeout(y),x(new q_("Error sending XHR: "+F.message,v,n))}})).thenCatch(function(f){f instanceof _.Hj&&n.abort();
throw f;})},q_=function(v,E,n){_.vI.call(this,v+", url="+E);
this.url=E;this.xhr=n};
_.tf(q_,_.vI);q_.prototype.name="XhrError";var flP=function(v,E,n){q_.call(this,"Request Failed, status="+v,E,n);this.status=v};
_.tf(flP,q_);flP.prototype.name="XhrHttpError";var xA6=function(v,E){q_.call(this,"Request timed out",v,E)};
_.tf(xA6,q_);xA6.prototype.name="XhrTimeoutError";i9=i9||{};var JS=function(){_.QK.call(this)};
_.tf(JS,_.QK);JS.prototype.initialize=function(){};var cQ1=function(v,E){this.fn_=v;this.handler_=E};
cQ1.prototype.execute=function(v){this.fn_&&(this.fn_.call(this.handler_||null,v),this.fn_=this.handler_=null)};
cQ1.prototype.abort=function(){this.handler_=this.fn_=null};var Kz=function(v,E){_.QK.call(this);this.deps_=v;this.JSC$8831_id_=E;this.onloadCallbacks_=[];this.JSC$8831_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.tf(Kz,_.QK);Kz.prototype.moduleConstructor_=JS;Kz.prototype.module_=null;Kz.prototype.getId=function(){return this.JSC$8831_id_};
Kz.prototype.registerCallback=function(v,E){return yQz(this.onloadCallbacks_,v,E)};
var pql=function(v,E){yQz(v.JSC$8831_onErrorCallbacks_,E)},yQz=function(v,E,n){E=new cQ1(E,n);
v.push(E);return E};
Kz.prototype.isLoaded=function(){return!!this.module_};
Kz.prototype.onLoad=function(v){var E=new this.moduleConstructor_;E.initialize(v());this.module_=E;E=(E=QT1(this.earlyOnloadCallbacks_,v()))||QT1(this.onloadCallbacks_,v());E||(this.JSC$8831_onErrorCallbacks_.length=0);return E};
Kz.prototype.onError=function(v){(v=QT1(this.JSC$8831_onErrorCallbacks_,v))&&o$(Error("nd`"+v));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var QT1=function(v,E){for(var n=[],f=0;f<v.length;f++)try{v[f].execute(E)}catch(x){o$(x),n.push(x)}v.length=0;return n.length?n:null};
Kz.prototype.disposeInternal=function(){Kz.superClass_.disposeInternal.call(this);_.uU(this.module_)};var Xqw,ll1,wqX,bGF,Fu4,mAg,ZGU,Pc1,alX;
_.I9=function(v,E,n,f,x){f=f===void 0?!1:f;x=x===void 0?!1:x;var y=y===void 0?!0:y;this.scsReferenceUrl_=NE(_.c5(v).toString(),y);this.cssRowKey_=E;this.combinedSignature_=n;this.useNegativeLoading_=f;this.requestedModuleMap_={};this.JSC$8834_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(v=FS(this.scsReferenceUrl_,"excm"))?v.split(","):[];this.shouldScanForCss_=x;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;fuX();this.logger=null;_.dl(this,MpF(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Xqw=function(v,E){if(E.href||E.getAttribute("data-href"))if(E=E.href||E.getAttribute("data-href"),vmG(E)&&!NE(E).urlPrefix_.endsWith("_/js/")){E=MpF(NE(E));E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,v.loadedCssModuleList_.includes(n)||v.loadedCssModuleList_.push(n)}};
_.I9.prototype.JSC$8836_loadModules=function(v,E,n){var f=n===void 0?{}:n;n=f.extraEdges;var x=f.onError;var y=f.onSuccess;f=f.forceReload;this.JSC$8834_moduleInfoMap_=E;if(!v)throw Error("od");if(this.shouldScanForCss_){E=_.p(document.getElementsByTagName("style"));for(var Q=E.next();!Q.done;Q=E.next())Xqw(this,Q.value);E=_.p(document.getElementsByTagName("link"));for(Q=E.next();!Q.done;Q=E.next())Xqw(this,Q.value)}elP(this,Fu4(this,v),n,x,y,f)};
var elP=function(v,E,n,f,x,y){f=f===void 0?function(){}:f;
x=x===void 0?function(){}:x;
y=y===void 0?!1:y;mAg(v,E,function(Q,e,F){F=F===void 0?e:F;v.enableFallbackFetch&&y?v.loadWithFetch(Q,e,f,x,F):v.load(Q,e,f,x,F,n)},n)||f(-1)};
_.I9.prototype.loadWithFetch=function(){_.X(function(){throw Error("pd");})};
_.I9.prototype.maybeSetAdditionalFields=function(){};
ll1=function(v,E,n){if(v.useNegativeLoading_){var f=v.scsReferenceUrl_;v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,extraEdges:n,requestedModuleIds:wqX(v),requestedCssModuleIds:bGF(v)};var x=v===void 0?{}:v;v=x.requestedModuleIds===void 0?[]:x.requestedModuleIds;n=x.requestedCssModuleIds===void 0?[]:x.requestedCssModuleIds;var y=x.cssRowKey===void 0?void 0:x.cssRowKey;var Q=x.combinedSignature===void 0?void 0:x.combinedSignature;var e=x.extraEdges===void 0?void 0:x.extraEdges;
x=x.callback===void 0?void 0:x.callback;f=B61(f);m2(f,"d","1");ZkS(f,v);C51(f,n);E=EZP(f,E,{cssRowKey:y,combinedSignature:Q,extraEdges:e,callback:x})}else f=v.scsReferenceUrl_,v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,requestedModuleIds:wqX(v),requestedCssModuleIds:bGF(v)},e=v===void 0?{}:v,v=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds,n=e.cssRowKey===void 0?void 0:e.cssRowKey,y=e.combinedSignature===void 0?void 0:e.combinedSignature,Q=e.extraEdges===void 0?
void 0:e.extraEdges,e=e.callback===void 0?void 0:e.callback,f=B61(f),C51(f,v),E=EZP(f,E,{cssRowKey:n,combinedSignature:y,extraEdges:Q,callback:e});return E};
_.dl=function(v,E){for(var n=!1,f=[],x=0;x<E.length;++x){var y=E[x];v.requestedModuleMap_[y]||(v.requestedModuleMap_[y]=!0,v.requestedModuleList_.push(y),n=!0,f.push(y))}n&&(v.requestedModuleListSorted_=!1)};
_.Ye=function(v,E){for(var n=[],f=0;f<E.length;++f){var x=E[f];v.requestedModuleMap_[x]&&(delete v.requestedModuleMap_[x],_.zs(v.requestedModuleList_,x),n.push(x))}};
_.I9.prototype.load=function(v,E,n,f,x){x=x===void 0?E:x;_.c5(v);var y=this.useCors_,Q=this.corsMode_,e=this.fetchPriority,F=_.oc("SCRIPT");_.Vv(F,v);y&&(F.crossOrigin=Q);F.async=!1;e&&F.setAttribute("fetchpriority",e);_.dl(this,E);_.sTS(this,v,F,E,n,f,x)};
_.sTS=function(v,E,n,f,x,y,Q){Q=Q===void 0?f:Q;v.lastScript_=n;v.insertPos.insertBefore(n,v.insertPos.firstChild);_.rQo(n,f,function(){n.parentElement.removeChild(n);v.lastScript_==n&&(v.lastScript_=null);var e=new Set;f.map(function(b){return e.add(b)});
for(var F in v.JSC$8834_moduleInfoMap_)v.JSC$8834_moduleInfoMap_[F].isLoaded()&&e.add(F);Array.from(e);y()},function(e){n.parentElement.removeChild(n);
v.lastScript_==n&&(v.lastScript_=null);_.Ye(v,e);v.pendingModuleGraphUpdate_?v.pendingModuleGraphUpdate_.then(function(){x(-1,E)}):x(-1,E)},Q)};
_.rQo=function(v,E,n,f,x){x=x===void 0?E:x;var y=E.length,Q=function(){y=0;v.onload=null;v.onerror=null;e=function(){}},e=function(){Q();
var b=x.filter(function(l){return!bY().getModuleInfo(l).isLoaded()});
b.length!==0?f(b,"Response was successful but was missing module(s) "+b+"."):n()},F=function(){y--;
y==0&&e()};
E.forEach(function(b){b=bY().getModuleInfo(b);b.isLoaded()?F():(yQz(b.earlyOnloadCallbacks_,F),pql(b,F))});
v.onload=function(){return e()};
v.onerror=function(){Q();f(E)}};
wqX=function(v){v.requestedModuleListSorted_||(v.requestedModuleListSorted_=!0,v.requestedModuleList_.sort());return v.requestedModuleList_};
bGF=function(v){v=v.loadedCssModuleList_;v.sort();return v};
Fu4=function(v,E){return E.filter(function(n){return!v.requestedModuleMap_[n]})};
mAg=function(v,E,n,f){if(v.pendingModuleGraphUpdate_)return v.pendingModuleGraphUpdate_.then(function(){mAg(v,E,n,f)}),!0;
if(!v.useNegativeLoading_){var x=[],y=Object.assign({},v.requestedModuleMap_);Pc1(v,E,function(l){x.push(l.getId())},f,function(l){return!l.isLoaded()},y);
E=x}for(y=0;y<E.length;){for(var Q=E.length-y,e=y==0?E:E.slice(y,E.length),F=ll1(v,e,f),b=_.c5(F).toString();b.length>v.urlMaxLength;)if(Q>1)Q-=Math.ceil((b.length-v.urlMaxLength)/6),Q=Math.max(Q,1),e=E.slice(y,y+Q),F=ll1(v,e,f),b=_.c5(F).toString();else return v.useNegativeLoading_?(v.useNegativeLoading_=!1,v.pendingModuleGraphUpdate_=alX(v).then(function(l){ZGU(v,l,f)}),mAg(v,E.slice(y),n,f)):!1;
y+=Q;v.useNegativeLoading_?n(F,e):n(F,e,y===E.length?E:[])}return!0};
ZGU=function(v,E,n){bY().setAllModuleInfoString((E||{}).moduleGraph);Pc1(v,wqX(v),function(f){_.dl(v,[f.getId()])},n);
v.pendingModuleGraphUpdate_=null};
Pc1=function(v,E,n,f,x,y){y=y===void 0?{}:y;var Q=bY();E=_.p(E);for(var e=E.next();!e.done;e=E.next()){e=e.value;var F=Q.getModuleInfo(e);if(!(y[e]||x&&!x(F))){y[e]=!0;var b=F.deps_||[];if(f){var l=[];f[e]&&(l=Object.keys(f[e]));b=b.concat(l)}Pc1(v,b,n,f,x,y);n(F)}}};
alX=function(v){v=v.scsReferenceUrl_.clone();UXU(v);m2(v,"dg",null);m2(v,"md","1");return oZ1(v.toString())};var AqA=new Uint8Array(123);var Cc1=[];var MKP=function(){this.JSC$7947_loader_=null};
_.c=MKP.prototype;_.c.setBatchModeEnabled=function(){};
_.c.setAllModuleInfoString=function(){};
_.c.addExtraEdge=function(){throw Error("qd");};
_.c.removeExtraEdge=function(){throw Error("rd");};
_.c.getModuleContext=function(){return null};
_.c.isActive=function(){return!1};
_.c.isUserActive=function(){return!1};
_.c.registerCallback=function(){};var hS=function(v,E,n,f,x){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.name="ModuleLoadFailure";this.type=v;this.status=E;this.requestedModuleIds=n;this.url=f;this.cause=x;this.message=this.toString()};
_.S(hS,Error);hS.prototype.toString=function(){return SLP(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var SLP=function(v){switch(v.type){case hS.JSC$8846_Type.UNAUTHORIZED:return"Unauthorized";case hS.JSC$8846_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case hS.JSC$8846_Type.TIMEOUT:return"Timed out";case hS.JSC$8846_Type.OLD_CODE_GONE:return"Out of date module id";case hS.JSC$8846_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+v.type}};
i9.ModuleLoadFailure=hS;i9.ModuleLoadFailure.JSC$8846_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var AS=function(){this.moduleIds_=this.JSC$7947_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8849_extraEdges_={};this.JSC$8849_callbackMap_={};this.JSC$8849_currentlyLoadingModule_=this.baseModuleInfo_=new Kz([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new HF;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.tf(AS,MKP);var UA1=function(v,E){_.vI.call(this,"Error loading "+v+": "+E)};
_.tf(UA1,_.vI);AS.prototype.setBatchModeEnabled=function(v){this.batchModeEnabled_=v};
AS.prototype.setAllModuleInfoString=function(v,E){if(!(this instanceof AS))this.setAllModuleInfoString(v,E);else if(typeof v==="string"){if(v.startsWith("d$")){v=v.substring(2);for(var n=[],f=0,x=v.indexOf("/"),y=0,Q=!1,e=0;;){var F=Q?v.substring(y):v.substring(y,x);if(F.length===0)f++,y="sy"+f.toString(36),F=[];else{var b=F.indexOf(":");if(b<0)y=F,F=[];else if(b===F.length-1)y=F.substring(0,b),F=Array(n[e-1]);else{y=F.substring(0,b);F=F.substring(b+1).split(",");b=e;for(var l=0;l<F.length;l++)b-=
F[l].length===0?1:Number(F[l]),F[l]=n[b]}b=0;if(y.length===0)b=1;else if(y.charAt(0)==="+"||y.charAt(0)==="-")b=Number(y);b!==0&&(f+=b,y="sy"+f.toString(36))}n.push(y);qL1(this,y,F);if(Q)break;y=x+1;x=v.indexOf("/",y);x===-1&&(Q=!0);e++}this.moduleIds_=n}else if(v.startsWith("p$"))JQz(this,v);else{v=v.split("/");n=[];for(f=0;f<v.length;f++){e=v[f].split(":");x=e[0];Q=[];if(e[1])for(Q=e[1].split(","),e=0;e<Q.length;e++)Q[e]=n[parseInt(Q[e],36)];n.push(x);qL1(this,x,Q)}this.moduleIds_=n}E&&E.length?
(_.nl(this.loadingModuleIds_,E),this.lastInitialModuleId_=_.DA(E)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8849_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8849_currentlyLoadingModule_=null,(E=this.baseModuleInfo_.onLoad((0,_.XV)(this.getModuleContext,this)))&&E.length&&KuP(this,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.INIT_ERROR,void 0,void 0,void 0,E[0])),Vz(this))}};
var JQz=function(v,E){var n=E.substring(2);for(E=0;E<64;E++)AqA["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(E)]=E;var f={buf:n,pos:0};ui(f);var x=ui(f),y=ui(f)+1;E=Array(x);var Q=Array(x),e=Array(x);y=Array(y);var F=0,b=0,l=f.pos,r=f.buf.indexOf("|",f.pos);f.pos=r+1;for(r=0;r<x;r++){var a=ui(f),M=a&2,U=a&1;a>>>=2;U?(F+=a>>>1^-(a&1),a="sy"+F.toString(36)):(U=l,l+=a,a=n.substring(U,l));E[r]=a;M&&(y[b++]=a)}y[b]="";f.pos++;b=x&-2;n=x&1;for(F=0;F<b;F+=2)l=Vwy(f),e[F]=
l&7,e[F+1]=l>>>3&7;n&&(n=Vwy(f),e[b]=n&7);f.pos++;for(b=0;b<x;b++)e[b]===7&&(e[b]=ui(f));f.pos++;for(n=b=0;n<x;n++){F=e[n];l=F===0?Cc1:Array(F);Q[n]=l;r=b;for(M=0;M<F;M++)r-=ui(f),l[M]=y[r];y[b]===E[n]&&b++}for(f=0;f<E.length;f++)qL1(v,E[f],Q[f]);v.moduleIds_=E};
_.c=AS.prototype;_.c.getModuleInfo=function(v){return this.moduleInfoMap[v]};
_.c.addExtraEdge=function(v,E){var n=this.getModuleInfo(v);n&&n.isLoaded()?this.load(E):(this.JSC$8849_extraEdges_[v]||(this.JSC$8849_extraEdges_[v]={}),this.JSC$8849_extraEdges_[v][E]=!0)};
_.c.removeExtraEdge=function(v,E){if(this.JSC$8849_extraEdges_[v]){delete this.JSC$8849_extraEdges_[v][E];for(var n in this.JSC$8849_extraEdges_[v])return;delete this.JSC$8849_extraEdges_[v]}};
_.c.isActive=function(){return this.loadingModuleIds_.length>0};
_.c.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Vz=function(v){var E=v.lastActive_,n=v.isActive();n!=E&&(v.executeCallbacks_(n?"active":"idle"),v.lastActive_=n);E=v.isUserActive();E!=v.userLastActive_&&(v.executeCallbacks_(E?"userActive":"userIdle"),v.userLastActive_=E)},qL1=function(v,E,n){v.moduleInfoMap[E]?(v=v.moduleInfoMap[E].deps_,v!=n&&v.splice.apply(v,[0,
v.length].concat(_.s8(n)))):v.moduleInfoMap[E]=new Kz(n,E)},IlP=function(v,E,n){var f=[];
pl(E,f);E=[];for(var x={},y=0;y<f.length;y++){var Q=f[y],e=v.getModuleInfo(Q);if(!e)throw Error("sd`"+Q);var F=new HF;x[Q]=F;e.isLoaded()?F.callback(null):(dA1(v,Q,e,!!n,F),v.isModuleLoading(Q)||E.push(Q))}E.length>0&&(v.loadingModuleIds_.length===0?v.loadModules_(E):(v.requestedModuleIdsQueue_.push(E),Vz(v)));return x},dA1=function(v,E,n,f,x){n.registerCallback(x.callback,x);
pql(n,function(y){x.errback(new UA1(E,y))});
v.isModuleLoading(E)?f&&(YLP(v,E),Vz(v)):f&&YLP(v,E)};
AS.prototype.loadModules_=function(v,E,n){var f=this;E||(this.consecutiveFailures_=0);var x=hl6(this,v);this.loadingModuleIds_=x;this.requestedLoadingModuleIds_=this.batchModeEnabled_?v:_.tG(x);Vz(this);if(x.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,x);if(Object.keys(this.JSC$8849_extraEdges_).length>0&&!this.JSC$7947_loader_.supportsExtraEdges)throw Error("td");v=(0,_.XV)(this.JSC$7947_loader_.JSC$8836_loadModules,this.JSC$7947_loader_,_.tG(x),this.moduleInfoMap,{extraEdges:this.JSC$8849_extraEdges_,
forceReload:!!n,onError:function(y,Q){var e=f.requestedLoadingModuleIds_;y=y!=null?y:void 0;f.consecutiveFailures_++;var F=_.tG(x);f.requestedLoadingModuleIds_=e;x.forEach(_.vR(_.zs,f.requestedModuleIds_),f);y==401?(KuP(f,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.UNAUTHORIZED,y)),f.requestedModuleIdsQueue_.length=0):y==410?(AQ6(f,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.OLD_CODE_GONE,y)),VK1(f)):f.consecutiveFailures_>=3?(AQ6(f,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.CONSECUTIVE_FAILURES,
y,F,Q)),VK1(f)):f.loadModules_(f.requestedLoadingModuleIds_,!0,y==8001||!1)},
onTimeout:(0,_.XV)(this.handleLoadTimeout_,this)});(E=Math.pow(this.consecutiveFailures_,2)*5E3)?_.n1.setTimeout(v,E):v()}};
var hl6=function(v,E){E=E.filter(function(x){return v.moduleInfoMap[x].isLoaded()?(_.n1.setTimeout(function(){return Error("ud`"+x)},0),!1):!0});
for(var n=[],f=0;f<E.length;f++)n=n.concat(DAz(v,E[f]));pl(n);return!v.batchModeEnabled_&&n.length>1?(E=n.shift(),v.requestedModuleIdsQueue_=n.map(function(x){return[x]}).concat(v.requestedModuleIdsQueue_),[E]):n},DAz=function(v,E){var n=_.sh.createSet(v.requestedModuleIds_),f=[];
n[E]||f.push(E);E=[E];for(var x=0;x<E.length;x++)for(var y=v.getModuleInfo(E[x]).deps_,Q=y.length-1;Q>=0;Q--){var e=y[Q];v.getModuleInfo(e).isLoaded()||n[e]||(f.push(e),E.push(e))}f.reverse();pl(f);return f};
AS.prototype.JSC$8844_setLoaded=function(){if(this.JSC$8849_currentlyLoadingModule_){var v=this.JSC$8849_currentlyLoadingModule_.getId(),E=[];if(this.JSC$8849_extraEdges_[v]){for(var n=_.p(Object.keys(this.JSC$8849_extraEdges_[v])),f=n.next();!f.done;f=n.next()){f=f.value;var x=this.getModuleInfo(f);x&&!x.isLoaded()&&(this.removeExtraEdge(v,f),E.push(f))}this.loadMultiple(E)}this.isDisposed()||((E=this.moduleInfoMap[v].onLoad((0,_.XV)(this.getModuleContext,this)))&&E.length&&KuP(this,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.INIT_ERROR,
void 0,void 0,void 0,E[0])),_.zs(this.userInitiatedLoadingModuleIds_,v),_.zs(this.loadingModuleIds_,v),this.loadingModuleIds_.length===0&&VK1(this),this.lastInitialModuleId_&&v==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Vz(this),this.JSC$8849_currentlyLoadingModule_=null)}};
AS.prototype.isModuleLoading=function(v){if(_.L1(this.loadingModuleIds_,v))return!0;for(var E=0;E<this.requestedModuleIdsQueue_.length;E++)if(_.L1(this.requestedModuleIdsQueue_[E],v))return!0;return!1};
AS.prototype.load=function(v,E){return IlP(this,[v],E)[v]};
AS.prototype.loadMultiple=function(v){return IlP(this,v)};
var YLP=function(v,E){_.L1(v.userInitiatedLoadingModuleIds_,E)||v.userInitiatedLoadingModuleIds_.push(E)};
AS.prototype.beforeLoadModuleCode=function(v){var E=this;this.JSC$8849_currentlyLoadingModule_&&this.JSC$8849_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8844_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[v]&&HGl(this,this.moduleInfoMap[v].deps_||[],function(n){n.module_=new JS;_.zs(E.loadingModuleIds_,n.getId())},function(n){return!n.isLoaded()});
this.JSC$8849_currentlyLoadingModule_=this.getModuleInfo(v)};
AS.prototype.handleLoadTimeout_=function(){AQ6(this,new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.TIMEOUT));VK1(this)};
var AQ6=function(v,E){v.requestedLoadingModuleIds_.length>1?v.requestedModuleIdsQueue_=v.requestedLoadingModuleIds_.map(function(n){return[n]}).concat(v.requestedModuleIdsQueue_):KuP(v,E)},KuP=function(v,E){var n=v.requestedLoadingModuleIds_;
v.loadingModuleIds_.length=0;for(var f=[],x=0;x<v.requestedModuleIdsQueue_.length;x++){var y=v.requestedModuleIdsQueue_[x].filter(function(F){var b=DAz(this,F);return KZ(n,function(l){return _.L1(b,l)})},v);
_.nl(f,y)}for(x=0;x<n.length;x++)_.Gs(f,n[x]);for(x=0;x<f.length;x++){for(y=0;y<v.requestedModuleIdsQueue_.length;y++)_.zs(v.requestedModuleIdsQueue_[y],f[x]);_.zs(v.userInitiatedLoadingModuleIds_,f[x])}if(x=v.JSC$8849_callbackMap_.error)for(y=0;y<x.length;y++)for(var Q=x[y],e=0;e<f.length;e++)Q("error",f[e],E);for(f=0;f<n.length;f++)if(v.moduleInfoMap[n[f]])v.moduleInfoMap[n[f]].onError(E);v.requestedLoadingModuleIds_.length=0;Vz(v)},VK1=function(v){for(;v.requestedModuleIdsQueue_.length;){var E=
v.requestedModuleIdsQueue_.shift().filter(function(n){return!this.getModuleInfo(n).isLoaded()},v);
if(E.length>0){v.loadModules_(E);return}}Vz(v)};
AS.prototype.registerCallback=function(v,E){Array.isArray(v)||(v=[v]);for(var n=0;n<v.length;n++){var f=v[n],x=E,y=this.JSC$8849_callbackMap_;y[f]||(y[f]=[]);y[f].push(x)}};
AS.prototype.executeCallbacks_=function(v){for(var E=this.JSC$8849_callbackMap_[v],n=0;E&&n<E.length;n++)E[n](v)};
var HGl=function(v,E,n,f,x){f=f===void 0?function(){return!0}:f;
x=x===void 0?{}:x;E=_.p(E);for(var y=E.next();!y.done;y=E.next()){y=y.value;var Q=v.getModuleInfo(y);!x[y]&&f(Q)&&(x[y]=!0,HGl(v,Q.deps_||[],n,f,x),n(Q))}};
AS.prototype.dispose=function(){_.js(_.sh.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8849_callbackMap_={};this.isDisposed_=!0};
AS.prototype.isDisposed=function(){return this.isDisposed_};
_.wC=function(){return new AS};var gZ1=[5E3,2E4],NMo=function(){this.JSC$7947_loader_=null;this.JSC$8857_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8857_queue_=[];this.JSC$8857_extraEdges_=Object.create(null);this.JSC$8857_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.S(NMo,MKP);_.c=NMo.prototype;_.c.setAllModuleInfoString=function(){this.JSC$8857_currentlyLoadingModule_&&this.JSC$8857_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8844_setLoaded()};
_.c.getModuleInfo=function(v){var E=this.JSC$8857_moduleInfoMap_[v];E||(E=new Kz([],v),this.JSC$8857_moduleInfoMap_[v]=E);return E};
_.c.addExtraEdge=function(v,E){this.getModuleInfo(v).isLoaded()?this.load(E):(this.JSC$8857_extraEdges_[v]||(this.JSC$8857_extraEdges_[v]={}),this.JSC$8857_extraEdges_[v][E]=!0)};
_.c.removeExtraEdge=function(v,E){if(this.JSC$8857_extraEdges_[v]){delete this.JSC$8857_extraEdges_[v][E];for(var n in this.JSC$8857_extraEdges_[v])return;delete this.JSC$8857_extraEdges_[v]}};
_.c.isModuleLoading=function(v){return!!this.loadingModules_[v]};
_.c.load=function(v){uYX(this,[v]);return jTg(this,v)};
_.c.loadMultiple=function(v){var E=this,n=Object.create(null),f=[];v.forEach(function(x){n[x]||(n[x]=jTg(E,x),f.push(x))});
uYX(this,f);return n};
_.c.beforeLoadModuleCode=function(v){var E;((E=this.JSC$8857_currentlyLoadingModule_)==null?void 0:E.getId())==="synthetic_module_overhead"&&this.JSC$8844_setLoaded();var n,f;OGX(this,(f=(n=this.JSC$8857_moduleInfoMap_[v])==null?void 0:n.deps_)!=null?f:[],function(x){x.module_=new JS},function(x){return!x.isLoaded()});
this.JSC$8857_currentlyLoadingModule_=this.getModuleInfo(v)};
_.c.JSC$8844_setLoaded=function(){if(this.JSC$8857_currentlyLoadingModule_){var v=this.JSC$8857_currentlyLoadingModule_.getId(),E=[];if(this.JSC$8857_extraEdges_[v]){for(var n=_.p(Object.keys(this.JSC$8857_extraEdges_[v])),f=n.next();!f.done;f=n.next())f=f.value,this.getModuleInfo(f).isLoaded()||(this.removeExtraEdge(v,f),E.push(f));this.loadMultiple(E)}this.JSC$8857_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8857_currentlyLoadingModule_=null;(!this.isModuleLoading(v)&&/^sy[0-9a-z]{0,4}$/.test(v)||v==="synthetic_module_overhead")&&delete this.JSC$8857_moduleInfoMap_[v];this.unsetModulesAsLoading(v)}};
_.c.setModulesAsLoading=function(){var v=this;_.rV.apply(0,arguments).forEach(function(E){v.loadingModules_[E]=!0})};
_.c.unsetModulesAsLoading=function(){var v=this;_.rV.apply(0,arguments).forEach(function(E){delete v.loadingModules_[E]})};
var jTg=function(v,E){return new _.z2(function(n,f){var x=v.getModuleInfo(E);x.isLoaded()?n(null):(x.registerCallback(function(){n(null)}),pql(x,function(y){var Q="Error loading "+E+": "+y;
y instanceof i9.ModuleLoadFailure&&y.url&&(Q=Q+", requested url: "+y.url.toString());f(Error(Q))}))})},uYX=function(v,E){E=E.filter(function(n){return!v.isModuleLoading(n)&&!v.getModuleInfo(n).isLoaded()});
E.length>0&&(v.setModulesAsLoading.apply(v,_.s8(E)),v.JSC$8857_queue_.push(E),kn1(v))},kn1=function(v){for(var E={};v.activeLoads_<Infinity&&v.JSC$8857_queue_.length>0;E={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})E.ids$jscomp$36=v.JSC$8857_queue_.shift().filter(function(n){return!v.getModuleInfo(n).isLoaded()}),E.ids$jscomp$36.length>0&&(v.activeLoads_++,E.finishLoad=function(n){return function(){v.activeLoads_--;
kn1(v);n.finishLoad=function(){}}}(E),_.lg(E.ids$jscomp$36.map(function(n){return jTg(v,n)})).then(function(n){return function(){(0,n.finishLoad)()}}(E)),E.attempt$jscomp$6=0,E.load$jscomp$1=function(n){return function(){if(Object.keys(v.JSC$8857_extraEdges_).length>0&&!v.JSC$7947_loader_.supportsExtraEdges)throw Error("td");
v.JSC$7947_loader_.JSC$8836_loadModules(n.ids$jscomp$36,v.JSC$8857_moduleInfoMap_,{extraEdges:v.JSC$8857_extraEdges_,onError:function(f,x){var y=gZ1[n.attempt$jscomp$6++];y!==void 0?setTimeout(function(){(0,n.load$jscomp$1)()},y):(v.unsetModulesAsLoading.apply(v,_.s8(n.ids$jscomp$36)),(0,n.finishLoad)(),n.ids$jscomp$36.forEach(function(Q){Q=v.getModuleInfo(Q);
if(!Q.isLoaded())Q.onError(new i9.ModuleLoadFailure(i9.ModuleLoadFailure.JSC$8846_Type.CONSECUTIVE_FAILURES,f,n.ids$jscomp$36,x))}))}})}}(E),(0,E.load$jscomp$1)())},OGX=function(v,E,n,f,x){f=f===void 0?function(){return!0}:f;
x=x===void 0?{}:x;E=_.p(E);for(var y=E.next();!y.done;y=E.next()){y=y.value;var Q=v.getModuleInfo(y);!x[y]&&f(Q)&&(x[y]=!0,OGX(v,Q.deps_||[],n,f,x),n(Q))}};var WuU=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var HhQ=Symbol("wd");window.JSCompiler_renameProperty=function(v){return v};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $Al=!WuU||HTMLElement.es5Shimmed||_.n1.Reflect===void 0||_.n1.customElements===void 0||_.n1.customElements.polyfillWrapFlushCallback||!1,Luz,wdA=function(){var v=HTMLElement;if($Al)return v;if(Luz!==void 0)return Luz;var E=_.n1.Reflect,n=function(){return E.construct(v,[],this.constructor)};
n.prototype=v.prototype;n.prototype.constructor=n;n.es5Shimmed=!0;Object.setPrototypeOf(n,v);return Luz=n},Gn1=!1;$Al||Gn1||(Gn1=!0,_.n1.HTMLElement=wdA());/*

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 OhL=/(url\()([^)]*)(\))/g,um1=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,jX$,jQ;var PZ=!window.ShadyDOM||!window.ShadyDOM.inUse,TMF=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),iGP=!window.customElements.polyfillWrapFlushCallback,zl1;if(zl1=PZ&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Rl6=new CSSStyleSheet;Rl6.replaceSync("");var tK4=document.createElement("div");tK4.attachShadow({mode:"open"});tK4.shadowRoot.adoptedStyleSheets=[Rl6];zl1=tK4.shadowRoot.adoptedStyleSheets[0]===Rl6}catch(v){zl1=!1}
var BMU=zl1,vsP=window.Polymer&&window.Polymer.rootPath||WcL(document.baseURI||window.location.href),E2=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,BQQ=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,MO=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,EsU=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,r6=window.Polymer&&window.Polymer.legacyOptimizations||!1,CV=window.Polymer&&window.Polymer.legacyWarnings||!1,nsS=window.Polymer&&window.Polymer.syncInitialRender||
!1,oS=window.Polymer&&window.Polymer.legacyUndefined||!1,os6=window.Polymer&&window.Polymer.orderedComputed||!1,DX=window.Polymer&&window.Polymer.removeNestedTemplates||!1,HN=window.Polymer&&window.Polymer.fastDomIf||!1,gl=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fIl=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,xxP=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var N_={},ccU={},x0=function(){return HTMLElement.apply(this,arguments)||this};
_.S(x0,HTMLElement);x0.import=function(v,E){return v?(v=N_[v]||ccU[v.toLowerCase()])&&E?v.querySelector(E):v:null};
x0.prototype.attributeChangedCallback=function(v,E,n){E!==n&&this.register()};
x0.prototype.register=function(v){if(v=v||this.id){if(MO&&(N_[v]||ccU[v.toLowerCase()])!==void 0)throw N_[v]=ccU[v.toLowerCase()]=null,Error("xd`"+v);this.id=v;N_[v]=ccU[v.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.hK.Object.defineProperties(x0.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var v=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;v=_.Os(this.getAttribute("assetpath")||"",v.baseURI);this.__assetpath=WcL(v)}return this.__assetpath}}});
_.hK.Object.defineProperties(x0,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
x0["import"]=x0.import;x0.prototype.modules=N_;customElements.define("dom-module",x0);var ycw=0,Lc1=0,k$=[],pRl=0,$q9=!1,QQ6=document.createTextNode(""),XRg,l$;(new window.MutationObserver(Gy1)).observe(QQ6,{characterData:!0});_.uF={after:function(v){return{run:function(E){return window.setTimeout(E,v)},
cancel:function(E){window.clearTimeout(E)}}},
run:function(v,E){return window.setTimeout(v,E)},
cancel:function(v){window.clearTimeout(v)}};
_.EZ={run:function(v){return window.requestAnimationFrame(v)},
cancel:function(v){window.cancelAnimationFrame(v)}};
XRg={run:function(v){return window.requestIdleCallback?window.requestIdleCallback(v):window.setTimeout(v,16)},
cancel:function(v){window.cancelIdleCallback?window.cancelIdleCallback(v):window.clearTimeout(v)}};
l$={run:function(v){$q9||($q9=!0,QQ6.textContent=pRl++);k$.push(v);return ycw++},
cancel:function(v){var E=v-Lc1;if(E>=0){if(!k$[E])throw Error("yd`"+v);k$[E]=null}}};var eH1=0,j2=function(v){var E=v.__mixinApplications;E||(E=new WeakMap,v.__mixinApplications=E);var n=eH1++;return function(f){var x=f.__mixinSet;if(x&&x[n])return f;var y=E,Q=y.get(f);Q||(Q=v(f),y.set(f,Q),f=Object.create(Q.__mixinSet||x||null),f[n]=!0,Q.__mixinSet=f);return Q}};_.vZ=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(v){return ShadyDOM.patch(v)}:function(v){return v};var F56=j2(function(v){var E=function(){var n=v.call(this)||this;n.__dataEnabled=!1;n.__dataReady=!1;n.__dataInvalid=!1;n.__data={};n.__dataPending=null;n.__dataOld=null;n.__dataInstanceProps=null;n.__dataCounter=0;n.__serializing=!1;n._initializeProperties();return n};
_.S(E,v);E.createProperties=function(n){var f=this.prototype,x;for(x in n)x in f||f._createPropertyAccessor(x)};
E.attributeNameForProperty=function(n){return n.toLowerCase()};
E.typeForProperty=function(){};
E.prototype._createPropertyAccessor=function(n,f){this._addPropertyToAttributeMap(n);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[n]||(this.__dataHasAccessor[n]=!0,this._definePropertyAccessor(n,f))};
E.prototype._addPropertyToAttributeMap=function(n){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var f=this.__dataAttributes[n];f||(f=this.constructor.attributeNameForProperty(n),this.__dataAttributes[f]=n);return f};
E.prototype._definePropertyAccessor=function(n,f){Object.defineProperty(this,n,{get:function(){return this.__data[n]},
set:f?function(){}:function(x){this._setPendingProperty(n,x,!0)&&this._invalidateProperties()}})};
E.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
E.prototype._initializeProperties=function(){for(var n in this.__dataHasAccessor)this.hasOwnProperty(n)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[n]=this[n],delete this[n])};
E.prototype._initializeInstanceProperties=function(n){Object.assign(this,n)};
E.prototype._setProperty=function(n,f){this._setPendingProperty(n,f)&&this._invalidateProperties()};
E.prototype._getProperty=function(n){return this.__data[n]};
E.prototype._setPendingProperty=function(n,f){var x=this.__data[n],y=this._shouldPropertyChange(n,f,x);y&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||n in this.__dataOld||(this.__dataOld[n]=x),this.__data[n]=f,this.__dataPending[n]=f);return y};
E.prototype._isPropertyPending=function(n){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(n))};
E.prototype._invalidateProperties=function(){var n=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,l$.run(function(){n.__dataInvalid&&(n.__dataInvalid=!1,n._flushProperties())}))};
E.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
E.prototype._flushProperties=function(){this.__dataCounter++;var n=this.__data,f=this.__dataPending,x=this.__dataOld;this._shouldPropertiesChange(n,f,x)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(n,f,x));this.__dataCounter--};
E.prototype._shouldPropertiesChange=function(n,f){return!!f};
E.prototype._propertiesChanged=function(){};
E.prototype._shouldPropertyChange=function(n,f,x){return x!==f&&(x===x||f===f)};
E.prototype.attributeChangedCallback=function(n,f,x,y){f!==x&&this._attributeToProperty(n,x);v.prototype.attributeChangedCallback&&v.prototype.attributeChangedCallback.call(this,n,f,x,y)};
E.prototype._attributeToProperty=function(n,f,x){if(!this.__serializing){var y=this.__dataAttributes;n=y&&y[n]||n;this[n]=this._deserializeValue(f,x||this.constructor.typeForProperty(n))}};
E.prototype._propertyToAttribute=function(n,f,x){this.__serializing=!0;x=arguments.length<3?this[n]:x;this._valueToNodeAttribute(this,x,f||this.constructor.attributeNameForProperty(n));this.__serializing=!1};
E.prototype._valueToNodeAttribute=function(n,f,x){f=this._serializeValue(f);if(x==="class"||x==="name"||x==="slot")n=(0,_.vZ)(n);f===void 0?n.removeAttribute(x):n.setAttribute(x,f===""&&window.trustedTypes?window.trustedTypes.emptyScript:f)};
E.prototype._serializeValue=function(n){switch(typeof n){case "boolean":return n?"":void 0;default:return n!=null?n.toString():void 0}};
E.prototype._deserializeValue=function(n,f){switch(f){case Boolean:return n!==null;case Number:return Number(n);default:return n}};
return E});var mxP=0,TWX=[];var wR4=j2(function(v){function E(y){y=Object.getPrototypeOf(y);return y.prototype instanceof x?y:null}
function n(y){if(!y.hasOwnProperty("__ownProperties")){var Q=null;if(y.hasOwnProperty("properties")){var e=y.properties;if(e){Q={};for(var F in e){var b=e[F];Q[F]=typeof b==="function"?{type:b}:b}}}y.__ownProperties=Q}return y.__ownProperties}
var f=F56(v),x=function(){return f.apply(this,arguments)||this};
_.S(x,f);x.finalize=function(){if(!this.hasOwnProperty("__finalized")){var y=E(this);y&&y.finalize();this.__finalized=!0;this._finalizeClass()}};
x._finalizeClass=function(){var y=n(this);y&&this.createProperties(y)};
x.typeForProperty=function(y){return(y=this._properties[y])&&y.type};
x.prototype._initializeProperties=function(){mxP++;this.constructor.finalize();f.prototype._initializeProperties.call(this)};
x.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this._enableProperties()};
x.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this)};
_.hK.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var y=this;if(!this.hasOwnProperty("__observedAttributes")){ih$(this.prototype);var Q=this._properties;this.__observedAttributes=Q?Object.keys(Q).map(function(e){return y.prototype._addPropertyToAttributeMap(e)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var y=E(this);this.__properties=Object.assign({},y&&y._properties,n(this))}return this.__properties}}});
return x});var zSX={},RS$=/-[a-z]/g,twy=/([A-Z])/g;for(var bH6={},lIS=HTMLElement.prototype;lIS;){for(var sQ4=Object.getOwnPropertyNames(lIS),rcw=0;rcw<sQ4.length;rcw++)bH6[sQ4[rcw]]=!0;lIS=Object.getPrototypeOf(lIS)}var Pnz=window.trustedTypes?function(v){return trustedTypes.isHTML(v)||trustedTypes.isScript(v)||trustedTypes.isScriptURL(v)}:function(){return!1},aIU=j2(function(v){var E=F56(v);
v=function(){return E.apply(this,arguments)||this};
_.S(v,E);v.createPropertiesForAttributes=function(){for(var n=this.observedAttributes,f=0;f<n.length;f++)this.prototype._createPropertyAccessor(WP(n[f]))};
v.attributeNameForProperty=function(n){return $$(n)};
v.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);E.prototype._initializeProperties.call(this)};
v.prototype._initializeProtoProperties=function(n){for(var f in n)this._setProperty(f,n[f])};
v.prototype._ensureAttribute=function(n,f){this.hasAttribute(n)||this._valueToNodeAttribute(this,f,n)};
v.prototype._serializeValue=function(n){switch(typeof n){case "object":if(n instanceof Date)return n.toString();if(n){if(Pnz(n))return n;try{return JSON.stringify(n)}catch(f){return""}}default:return E.prototype._serializeValue.call(this,n)}};
v.prototype._deserializeValue=function(n,f){switch(f){case Object:try{var x=JSON.parse(n)}catch(y){x=n}break;case Array:try{x=JSON.parse(n)}catch(y){x=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+n)}break;case Date:x=isNaN(n)?String(n):Number(n);x=new Date(x);break;default:x=E.prototype._deserializeValue.call(this,n,f)}return x};
v.prototype._definePropertyAccessor=function(n,f){if(!bH6[n]){var x=this[n];x!==void 0&&(this.__data?this._setPendingProperty(n,x):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[n]=x))}E.prototype._definePropertyAccessor.call(this,n,f)};
v.prototype._hasAccessor=function(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]};
v.prototype._isPropertyPending=function(n){return!!(this.__dataPending&&n in this.__dataPending)};
return v});var ZHS={"dom-if":!0,"dom-repeat":!0},Cni=!1,M7l=!1,SfP=function(){var v=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(E){return E}});
return function(E,n,f){n=n.getAttribute(f);v&&f.startsWith("on-")?E.setAttribute(f,v.createScript(n,f)):E.setAttribute(f,n)}}(),UxP=j2(function(v){var E=function(){return v.apply(this,arguments)||this};
_.S(E,v);E._parseTemplate=function(n,f){if(!n._templateInfo){var x=n._templateInfo={};x.nodeInfoList=[];x.nestedTemplate=!!f;x.stripWhiteSpace=f&&f.stripWhiteSpace||n.hasAttribute&&n.hasAttribute("strip-whitespace");this._parseTemplateContent(n,x,{parent:null})}return n._templateInfo};
E._parseTemplateContent=function(n,f,x){return this._parseTemplateNode(n.content,f,x)};
E._parseTemplateNode=function(n,f,x){var y=!1;n.localName!="template"||n.hasAttribute("preserve-content")?n.localName==="slot"&&(f.hasInsertionPoint=!0):y=this._parseTemplateNestedTemplate(n,f,x)||y;if(!Cni){Cni=!0;var Q=document.createElement("textarea");Q.placeholder="a";M7l=Q.placeholder===Q.textContent}M7l&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null);n.firstChild&&this._parseTemplateChildNodes(n,f,x);n.hasAttributes&&n.hasAttributes()&&(y=this._parseTemplateNodeAttributes(n,
f,x)||y);return y||x.noted};
E._parseTemplateChildNodes=function(n,f,x){if(n.localName!=="script"&&n.localName!=="style")for(var y=n.firstChild,Q=0,e;y;y=e){if(y.localName=="template"){var F=y.getAttribute("is");if(F&&ZHS[F])for(e=y,e.removeAttribute("is"),y=e.ownerDocument.createElement(F),e.parentNode.replaceChild(y,e),y.appendChild(e);e.attributes.length;)F=e.attributes[0].name,SfP(y,e,F),e.removeAttribute(F)}e=y.nextSibling;if(y.nodeType===Node.TEXT_NODE){for(F=e;F&&F.nodeType===Node.TEXT_NODE;)y.textContent+=F.textContent,
e=F.nextSibling,n.removeChild(F),F=e;if(f.stripWhiteSpace&&!y.textContent.trim()){n.removeChild(y);continue}}F={parentIndex:Q,parentInfo:x};this._parseTemplateNode(y,f,F)&&(F.infoIndex=f.nodeInfoList.push(F)-1);y.parentNode&&Q++}};
E._parseTemplateNestedTemplate=function(n,f,x){f=this._parseTemplate(n,f);(f.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content);x.templateInfo=f;return!0};
E._parseTemplateNodeAttributes=function(n,f,x){for(var y=!1,Q=Array.from(n.attributes),e=Q.length-1,F;F=Q[e];e--)y=this._parseTemplateNodeAttribute(n,f,x,F.name,F.value)||y;return y};
E._parseTemplateNodeAttribute=function(n,f,x,y,Q){return y.slice(0,3)==="on-"?(n.removeAttribute(y),x.events=x.events||[],x.events.push({name:y.slice(3),value:Q}),!0):y==="id"?(x.id=Q,!0):!1};
E._contentForTemplate=function(n){var f=n._templateInfo;return f&&f.content||n.content};
E.prototype._stampTemplate=function(n,f){n&&!n.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(n);f=f||this.constructor._parseTemplate(n);var x=f.nodeInfoList;n=document.importNode(f.content||n.content,!0);n.__noInsertionPoint=!f.hasInsertionPoint;var y=n.nodeList=Array(x.length);n.$={};for(var Q=0,e=x.length,F=void 0;Q<e&&(F=x[Q]);Q++){var b=y[Q]=BWE(n,F);F.id&&(n.$[F.id]=b);var l=b,r=F,a=f;r.templateInfo&&(l._templateInfo=r.templateInfo,l._parentTemplateInfo=
a);if(F.events&&F.events.length)for(l=0,r=F.events,a=void 0;l<r.length&&(a=r[l]);l++)this._addMethodEventListenerToNode(b,a.name,a.value,this)}return n};
E.prototype._addMethodEventListenerToNode=function(n,f,x,y){x=vaX(y||n,x);this._addEventListenerToNode(n,f,x);return x};
E.prototype._addEventListenerToNode=function(n,f,x){n.addEventListener(f,x)};
E.prototype._removeEventListenerFromNode=function(n,f,x){n.removeEventListener(f,x)};
return E});var to=0,nV=[],qfg={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},JcS=/[A-Z]/,K5o=function(v,E,n,f,x){var y=x?G1(v):v;if(E=E[y])for(y=0;y<E.length;y++){var Q=E[y];if(Q.info.lastRun!==to&&(!x||cFI(v,Q.trigger))){Q.info.lastRun=to;Q=Q.info;for(var e=n,F=f,b=0,l=e.length-1,r=-1;b<=l;){var a=b+l>>1,M=F.get(e[a].methodInfo)-F.get(Q.methodInfo);if(M<0)b=a+1;else if(M>0)l=a-1;else{r=a;break}}r<
0&&(r=l+1);e.splice(r,0,Q)}}},Z79=[],dxi=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"),ke=j2(function(v){var E=UxP(aIU(v));
v=function(){var n=E.call(this)||this;n.__isPropertyEffectsClient=!0;return n};
_.S(v,E);v.prototype._initializeProperties=function(){E.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};
v.prototype._registerHost=function(){if(OM.length){var n=OM[OM.length-1];n._enqueueClient(this);this.__dataHost=n}};
v.prototype._initializeProtoProperties=function(n){this.__data=Object.create(n);this.__dataPending=Object.create(n);this.__dataOld={}};
v.prototype._initializeInstanceProperties=function(n){var f=this.__readOnly,x;for(x in n)f&&f[x]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[x]=this.__dataPending[x]=n[x])};
v.prototype._addPropertyEffect=function(n,f,x){this._createPropertyAccessor(n,f=="__readOnly");var y=xly(this,f,!0)[n];y||(y=this[f][n]=[]);y.push(x)};
v.prototype._removePropertyEffect=function(n,f,x){n=xly(this,f,!0)[n];x=n.indexOf(x);x>=0&&n.splice(x,1)};
v.prototype._hasPropertyEffect=function(n,f){f=this[f];return!(!f||!f[n])};
v.prototype._hasReadOnlyEffect=function(n){return this._hasPropertyEffect(n,"__readOnly")};
v.prototype._hasNotifyEffect=function(n){return this._hasPropertyEffect(n,"__notifyEffects")};
v.prototype._hasReflectEffect=function(n){return this._hasPropertyEffect(n,"__reflectEffects")};
v.prototype._hasComputedEffect=function(n){return this._hasPropertyEffect(n,"__computeEffects")};
v.prototype._setPendingPropertyOrPath=function(n,f,x,y){if(y||G1(Array.isArray(n)?n[0]:n)!==n){if(!y&&(y=Rg(this,n),n=fkQ(this,n,f),!n||!E.prototype._shouldPropertyChange.call(this,n,f,y)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(n,f,x)){if(x=this.__dataLinkedPaths)for(var Q in x)y=x[Q],T1(Q,n)?(y=ii(Q,y,n),this._setPendingPropertyOrPath(y,f,!0,!0)):T1(y,n)&&(y=ii(y,Q,n),this._setPendingPropertyOrPath(y,f,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,
f,x);this[n]=f}return!1};
v.prototype._setUnmanagedPropertyToNode=function(n,f,x){if(x!==n[f]||typeof x=="object")f==="className"&&(n=(0,_.vZ)(n)),n[f]=x};
v.prototype._setPendingProperty=function(n,f,x){var y=this.__dataHasPaths&&L3(n);if(this._shouldPropertyChange(n,f,(y?this.__dataTemp:this.__data)[n])){this.__dataPending||(this.__dataPending={},this.__dataOld={});n in this.__dataOld||(this.__dataOld[n]=this.__data[n]);y?this.__dataTemp[n]=f:this.__data[n]=f;this.__dataPending[n]=f;if(y||this.__notifyEffects&&this.__notifyEffects[n])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=x;return!0}return!1};
v.prototype._setProperty=function(n,f){this._setPendingProperty(n,f,!0)&&this._invalidateProperties()};
v.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
v.prototype._enqueueClient=function(n){this.__dataPendingClients=this.__dataPendingClients||[];n!==this&&this.__dataPendingClients.push(n)};
v.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
v.prototype.__enableOrFlushClients=function(){var n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(var f=0;f<n.length;f++){var x=n[f];x.__dataEnabled?x.__dataPending&&x._flushProperties():x._enableProperties()}}};
v.prototype._readyClients=function(){this.__enableOrFlushClients()};
v.prototype.setProperties=function(n,f){for(var x in n)!f&&this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,n[x],!0);this._invalidateProperties()};
v.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
v.prototype._propertiesChanged=function(n,f,x){n=this.__dataHasPaths;this.__dataHasPaths=!1;var y;if(y=this.__computeEffects)if(os6){to++;var Q=FIA(this),e=[],F;for(F in f)K5o(F,y,e,Q,n);for(;F=e.shift();)wTE(this,"",f,x,F)&&K5o(F.methodInfo,y,e,Q,n);Object.assign(x,this.__dataOld);Object.assign(f,this.__dataPending);this.__dataPending=null}else for(Q=f;BP(this,y,Q,x,n);)Object.assign(x,this.__dataOld),Object.assign(f,this.__dataPending),Q=this.__dataPending,this.__dataPending=null;y=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(f,x,n);this._flushClients();BP(this,this.__reflectEffects,f,x,n);BP(this,this.__observeEffects,f,x,n);if(y){Q=this.__notifyEffects;e=to++;for(var b in y)if(y[b]){if(F=Q){var l=Q;F=e;var r=b,a=f,M=x,U=n,d=!1,Y=U?G1(r):r;if(l=l[Y]){Y=0;for(var V=l.length,O=void 0;Y<V&&(O=l[Y]);Y++)O.info&&O.info.lastRun===F||U&&!cFI(r,O.trigger)||(O.info&&(O.info.lastRun=F),O.fn(this,r,a,M,O.info,U,void 0),d=!0)}F=d}if(F)var T=!0;else{if(F=n)F=b,r=f,a=G1(F),a!==
F?(a=$$(a)+"-changed",pTN(this,a,r[F],F),F=!0):F=!1;F&&(T=!0)}}var L;T&&(L=this.__dataHost)&&L._invalidateProperties&&L._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
v.prototype._propagatePropertyChanges=function(n,f,x){this.__propagateEffects&&BP(this,this.__propagateEffects,n,f,x);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,f,x)};
v.prototype._runEffectsForTemplate=function(n,f,x,y){var Q=this,e=function(F,b){BP(Q,n.propertyEffects,F,x,b,n.nodeList);for(var l=n.firstChild;l;l=l.nextSibling)Q._runEffectsForTemplate(l,F,x,b)};
n.runEffects?n.runEffects(e,f,y):e(f,y)};
v.prototype.linkPaths=function(n,f){n=z1(n);f=z1(f);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[n]=f};
v.prototype.unlinkPaths=function(n){n=z1(n);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]};
v.prototype.notifySplices=function(n,f){var x={path:""};n=Rg(this,n,x);Ul$(this,n,x.path,f)};
v.prototype.get=function(n,f){return Rg(f||this,n)};
v.prototype.set=function(n,f,x){x?fkQ(x,n,f):this.__readOnly&&this.__readOnly[n]||this._setPendingPropertyOrPath(n,f,!0)&&this._invalidateProperties()};
v.prototype.push=function(n){var f=_.rV.apply(1,arguments),x={path:""},y=Rg(this,n,x),Q=y.length,e=y.push.apply(y,_.s8(f));f.length&&fV(this,y,x.path,Q,f.length,[]);return e};
v.prototype.pop=function(n){var f={path:""};n=Rg(this,n,f);var x=!!n.length,y=n.pop();x&&fV(this,n,f.path,n.length,0,[y]);return y};
v.prototype.splice=function(n,f,x){var y=_.rV.apply(3,arguments),Q={path:""},e=Rg(this,n,Q);f<0?f=e.length-Math.floor(-f):f&&(f=Math.floor(f));var F=arguments.length===2?e.splice(f):e.splice.apply(e,[f,x].concat(_.s8(y)));(y.length||F.length)&&fV(this,e,Q.path,f,y.length,F);return F};
v.prototype.shift=function(n){var f={path:""};n=Rg(this,n,f);var x=!!n.length,y=n.shift();x&&fV(this,n,f.path,0,0,[y]);return y};
v.prototype.unshift=function(n){var f=_.rV.apply(1,arguments),x={path:""},y=Rg(this,n,x),Q=y.unshift.apply(y,_.s8(f));f.length&&fV(this,y,x.path,0,f.length,[]);return Q};
v.prototype.notifyPath=function(n,f){if(arguments.length==1){var x={path:""};f=Rg(this,n,x);x=x.path}else x=Array.isArray(n)?z1(n):n;this._setPendingPropertyOrPath(x,f,!0,!0)&&this._invalidateProperties()};
v.prototype._createReadOnlyProperty=function(n,f){this._addPropertyEffect(n,"__readOnly");f&&(this["_set"+(n[0].toUpperCase()+n.substring(1))]=function(x){this._setProperty(n,x)})};
v.prototype._createPropertyObserver=function(n,f,x){var y={property:n,method:f,dynamicFn:!!x};this._addPropertyEffect(n,"__observeEffects",{fn:yFI,info:y,trigger:{name:n}});x&&this._addPropertyEffect(f,"__observeEffects",{fn:yFI,info:y,trigger:{name:f}})};
v.prototype._createMethodObserver=function(n,f){var x=MSy(n);if(!x)throw Error("zd`"+n);PSX(this,x,"__observeEffects",mlF,null,f)};
v.prototype._createNotifyingProperty=function(n){this._addPropertyEffect(n,"__notifyEffects",{fn:QuE,info:{eventName:$$(n)+"-changed",property:n}})};
v.prototype._createReflectedProperty=function(n){var f=this.constructor.attributeNameForProperty(n);f[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+f+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,"__reflectEffects",{fn:XTX,info:{attrName:f}})};
v.prototype._createComputedProperty=function(n,f,x){var y=MSy(f);if(!y)throw Error("Ad`"+f);f=PSX(this,y,"__computeEffects",wTE,n,x);xly(this,"__computeInfo")[n]=f};
v.prototype._marshalArgs=function(n,f,x){for(var y=this.__data,Q=[],e=0,F=n.length;e<F;e++){var b=n[e],l=b.name,r=b.structured,a=b.wildcard,M=b.value;b.literal||(a?(b=T1(l,f),r=SII(y,x,b?f:l),M={path:b?f:l,value:r,base:b?Rg(y,l):r}):M=r?SII(y,x,l):y[l]);if(oS&&!this._overrideLegacyUndefined&&M===void 0&&n.length>1)return nV;Q[e]=M}return Q};
v.addPropertyEffect=function(n,f,x){this.prototype._addPropertyEffect(n,f,x)};
v.createPropertyObserver=function(n,f,x){this.prototype._createPropertyObserver(n,f,x)};
v.createMethodObserver=function(n,f){this.prototype._createMethodObserver(n,f)};
v.createNotifyingProperty=function(n){this.prototype._createNotifyingProperty(n)};
v.createReadOnlyProperty=function(n,f){this.prototype._createReadOnlyProperty(n,f)};
v.createReflectedProperty=function(n){this.prototype._createReflectedProperty(n)};
v.createComputedProperty=function(n,f,x){this.prototype._createComputedProperty(n,f,x)};
v.bindTemplate=function(n){return this.prototype._bindTemplate(n)};
v.prototype._bindTemplate=function(n,f){var x=this.constructor._parseTemplate(n),y=this.__preBoundTemplateInfo==x;if(!y)for(var Q in x.propertyEffects)this._createPropertyAccessor(Q);f?(x=Object.create(x),x.wasPreBound=y,this.__templateInfo?(n=n._parentTemplateInfo||this.__templateInfo,f=n.lastChild,x.parent=n,n.lastChild=x,(x.previousSibling=f)?f.nextSibling=x:n.firstChild=x):this.__templateInfo=x):this.__preBoundTemplateInfo=x;return x};
v._addTemplatePropertyEffect=function(n,f,x){(n.hostProps=n.hostProps||{})[f]=!0;n=n.propertyEffects=n.propertyEffects||{};(n[f]=n[f]||[]).push(x)};
v.prototype._stampTemplate=function(n,f){f=f||this._bindTemplate(n,!0);OM.push(this);n=E.prototype._stampTemplate.call(this,n,f);OM.pop();f.nodeList=n.nodeList;if(!f.wasPreBound)for(var x=f.childNodes=[],y=n.firstChild;y;y=y.nextSibling)x.push(y);n.templateInfo=f;x=f.nodeList;y=f.nodeInfoList;if(y.length)for(var Q=0;Q<y.length;Q++){var e=x[Q],F=y[Q].bindings;if(F)for(var b=0;b<F.length;b++){var l=F[b],r=e,a=l;if(a.isCompound){for(var M=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),U=a.parts,
d=Array(U.length),Y=0;Y<U.length;Y++)d[Y]=U[Y].literal;U=a.target;M[U]=d;a.literal&&a.kind=="property"&&(U==="className"&&(r=(0,_.vZ)(r)),r[U]=a.literal)}rF1(e,this,l)}e.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(f,this.__data,null,!1),this._flushClients());return n};
v.prototype._removeBoundDom=function(n){n=n.templateInfo;var f=n.previousSibling,x=n.nextSibling,y=n.parent;f?f.nextSibling=x:y&&(y.firstChild=x);x?x.previousSibling=f:y&&(y.lastChild=f);n.nextSibling=n.previousSibling=null;n=n.childNodes;for(f=0;f<n.length;f++)x=n[f],(0,_.vZ)((0,_.vZ)(x).parentNode).removeChild(x)};
v._parseTemplateNode=function(n,f,x){var y=E._parseTemplateNode.call(this,n,f,x);if(n.nodeType===Node.TEXT_NODE){var Q=this._parseBindings(n.textContent,f);Q&&(n.textContent=akL(Q)||" ",su$(this,f,x,"text","textContent",Q),y=!0)}return y};
v._parseTemplateNodeAttribute=function(n,f,x,y,Q){var e=this._parseBindings(Q,f);if(e){Q=y;var F="property";JcS.test(y)?F="attribute":y[y.length-1]=="$"&&(y=y.slice(0,-1),F="attribute");var b=akL(e);b&&F=="attribute"&&(y=="class"&&n.hasAttribute("class")&&(b+=" "+n.getAttribute(y)),n.setAttribute(y,b));F=="attribute"&&Q=="disable-upgrade$"&&n.setAttribute(y,"");n.localName==="input"&&Q==="value"&&n.setAttribute(Q,"");n.removeAttribute(Q);F==="property"&&(y=WP(y));su$(this,f,x,F,y,e,b);return!0}return E._parseTemplateNodeAttribute.call(this,
n,f,x,y,Q)};
v._parseTemplateNestedTemplate=function(n,f,x){var y=E._parseTemplateNestedTemplate.call(this,n,f,x),Q=n.parentNode,e=x.templateInfo,F=Q.localName==="dom-if",b=Q.localName==="dom-repeat";DX&&(F||b)&&(Q.removeChild(n),x=x.parentInfo,x.templateInfo=e,x.noted=!0,y=!1);n=e.hostProps;if(HN&&F)n&&(f.hostProps=Object.assign(f.hostProps||{},n),DX||(x.parentInfo.noted=!0));else for(var l in n)su$(this,f,x,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return y};
v._parseBindings=function(n,f){for(var x=[],y=0,Q;(Q=dxi.exec(n))!==null;){Q.index>y&&x.push({literal:n.slice(y,Q.index)});y=Q[1][0];var e=!!Q[2];Q=Q[3].trim();var F=!1,b="",l=-1;y=="{"&&(l=Q.indexOf("::"))>0&&(b=Q.substring(l+2),Q=Q.substring(0,l),F=!0);l=MSy(Q);var r=[];if(l){var a=l,M=a.args;a=a.methodName;for(var U=0;U<M.length;U++){var d=M[U];d.literal||r.push(d)}if((M=f.dynamicFns)&&M[a]||l.static)r.push(a),l.dynamicFn=!0}else r.push(Q);x.push({source:Q,mode:y,negate:e,customEvent:F,signature:l,
dependencies:r,event:b});y=dxi.lastIndex}y&&y<n.length&&(n=n.substring(y))&&x.push({literal:n});return x.length?x:null};
v._evaluateBinding=function(n,f,x,y,Q,e){n=f.signature?mlF(n,x,y,Q,f.signature):x!=f.source?Rg(n,f.source):e&&L3(x)?Rg(n,x):n.__data[x];f.negate&&(n=!n);return n};
_.hK.Object.defineProperties(v.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return qfg}}});
return v}),OM=[];var IIS=window.ShadyCSS&&window.ShadyCSS.cssBuild,WN=j2(function(v){function E(f,x,y,Q){if(!IIS){for(var e=x.content.querySelectorAll("style"),F=IkX(x),b=YIA(y),l=x.content.firstElementChild,r=0;r<b.length;r++){var a=b[r];a.textContent=f._processStyleText(a.textContent,Q);x.content.insertBefore(a,l)}for(l=b=0;l<F.length;l++)r=F[l],a=e[b],a!==r?(r=r.cloneNode(!0),a.parentNode.insertBefore(r,a)):b++,r.textContent=f._processStyleText(r.textContent,Q)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(x,
y);if(xxP&&IIS&&BMU&&(x=x.content.querySelectorAll("style"))){var M="";Array.from(x).forEach(function(U){M+=U.textContent;U.parentNode.removeChild(U)});
f._styleSheet=new CSSStyleSheet;f._styleSheet.replaceSync(M)}}
var n=wR4(ke(v));v=function(){return n.call(this)||this};
_.S(v,n);v._finalizeClass=function(){n._finalizeClass.call(this);var f;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(f=this.__ownObservers)&&this.createObservers(f,this._properties);this._prepareTemplate()};
v._prepareTemplate=function(){var f=this.template;f&&(typeof f==="string"?(console.error("template getter must return HTMLTemplateElement"),f=null):r6||(f=f.cloneNode(!0)));this.prototype._template=f};
v.createProperties=function(f){for(var x in f){var y=this.prototype,Q=x,e=f[x],F=f;e.computed&&(e.readOnly=!0);e.computed&&(y._hasReadOnlyEffect(Q)?console.warn("Cannot redefine computed property '"+Q+"'."):y._createComputedProperty(Q,e.computed,F));e.readOnly&&!y._hasReadOnlyEffect(Q)?y._createReadOnlyProperty(Q,!e.computed):e.readOnly===!1&&y._hasReadOnlyEffect(Q)&&console.warn("Cannot make readOnly property '"+Q+"' non-readOnly.");e.reflectToAttribute&&!y._hasReflectEffect(Q)?y._createReflectedProperty(Q):
e.reflectToAttribute===!1&&y._hasReflectEffect(Q)&&console.warn("Cannot make reflected property '"+Q+"' non-reflected.");e.notify&&!y._hasNotifyEffect(Q)?y._createNotifyingProperty(Q):e.notify===!1&&y._hasNotifyEffect(Q)&&console.warn("Cannot make notify property '"+Q+"' non-notify.");e.observer&&y._createPropertyObserver(Q,e.observer,F[e.observer]);y._addPropertyToAttributeMap(Q)}};
v.createObservers=function(f,x){for(var y=this.prototype,Q=0;Q<f.length;Q++)y._createMethodObserver(f[Q],x)};
v.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);n.prototype._initializeProperties.call(this);this.rootPath=vsP;this.importPath=this.constructor.importPath;var f=this.constructor;if(!f.hasOwnProperty("__propertyDefaults")){f.__propertyDefaults=null;var x=f._properties,y;for(y in x){var Q=x[y];"value"in Q&&(f.__propertyDefaults=f.__propertyDefaults||{},f.__propertyDefaults[y]=Q)}}if(f=f.__propertyDefaults)for(var e in f)x=f[e],
this._canApplyPropertyDefault(e)&&(x=typeof x.value=="function"?x.value.call(this):x.value,this._hasAccessor(e)?this._setPendingProperty(e,x,!0):this[e]=x)};
v.prototype._canApplyPropertyDefault=function(f){return!this.hasOwnProperty(f)};
v._processStyleText=function(f,x){return ky9(f,x)};
v._finalizeTemplate=function(f){var x=this.prototype._template;if(x&&!x.__polymerFinalized){x.__polymerFinalized=!0;var y=this.importPath;y=y?_.Os(y):"";E(this,x,f,y);this.prototype._bindTemplate(x)}};
v.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);n.prototype.connectedCallback.call(this)};
v.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);n.prototype.ready.call(this)};
v.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));n.prototype._readyClients.call(this)};
v.prototype._attachDom=function(f){var x=(0,_.vZ)(this);if(x.attachShadow)return f?(x.shadowRoot||(x.attachShadow({mode:"open",shadyUpgradeFragment:f}),x.shadowRoot.appendChild(f),this.constructor._styleSheet&&(x.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),nsS&&window.ShadyDOM&&window.ShadyDOM.flushInitial(x.shadowRoot),x.shadowRoot):null;throw Error("Cd");};
v.prototype.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,f)};
v.prototype.resolveUrl=function(f,x){!x&&this.importPath&&(x=_.Os(this.importPath));return _.Os(f,x)};
v._parseTemplateContent=function(f,x,y){x.dynamicFns=x.dynamicFns||this._properties;return n._parseTemplateContent.call(this,f,x,y)};
v._addTemplatePropertyEffect=function(f,x,y){!CV||x in this._properties||y.info.part.signature&&y.info.part.signature.static||y.info.part.hostProp||f.nestedTemplate||console.warn("Property '"+x+"' used in template but not declared in 'properties'; attribute will not be observed.");return n._addTemplatePropertyEffect.call(this,f,x,y)};
_.hK.Object.defineProperties(v,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var f=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof f==="function"&&(f=f());if(f===void 0){if(f=this.hasOwnProperty("is")){f=this.is;var x=null;if(f&&(!MO||EsU)&&(x=x0.import(f,"template"),MO&&!x))throw Error("Bd`"+f);f=x}f=f||Object.getPrototypeOf(this.prototype).constructor.template}this._template=f}return this._template},
set:function(f){this._template=f}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var f=this.importMeta;f?this._importPath=WcL(f.url):this._importPath=(f=x0.import(this.is))&&f.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return v});var Yf6=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(v){return v}}),NQG=function(v,E){hHg(v,E);
this.value=E.reduce(function(n,f,x){return n+uwy(f)+v[x+1]},v[0]).toString()},hHg;
NQG.prototype.toString=function(){return this.value};
_.AcU=function(v){var E=_.rV.apply(1,arguments);hHg(v,E);var n=document.createElement("template");E=E.reduce(function(f,x,y){if(x instanceof HTMLTemplateElement)x=x.innerHTML;else if(x instanceof NQG)x=uwy(x);else throw Error("Ed`"+x);return f+x+v[y+1]},v[0]);
Yf6&&(E=Yf6.createHTML(E));n.innerHTML=E;return n};
hHg=function(v,E){if(!Array.isArray(v)||!Array.isArray(v.raw)||E.length!==v.length-1)throw new TypeError("Fd");};var $e=WN(HTMLElement);var V7g=j2(function(v){var E=WN(v);v=function(){var n=E.call(this)||this;n.__lastItems=null;n.__lastMulti=null;n.__selectedMap=null;return n};
_.S(v,E);v.prototype.__updateSelection=function(n,f){var x=f.path;x=="items"?(f=f.base||[],x=this.__lastItems,n!==this.__lastMulti&&this.clearSelection(),x&&(x=gaX(f,x),this.__applySplices(x)),this.__lastItems=f,this.__lastMulti=n):f.path=="items.splices"?this.__applySplices(f.value.indexSplices):(n=x.slice(6),f=parseInt(n,10),n.indexOf(".")<0&&n==f&&this.__deselectChangedIdx(f))};
v.prototype.__applySplices=function(n){for(var f=this,x=this.__selectedMap,y={},Q=0;Q<n.length;y={s$jscomp$108:void 0},Q++){y.s$jscomp$108=n[Q];x.forEach(function(l){return function(r,a){r<l.s$jscomp$108.index||(r>=l.s$jscomp$108.index+l.s$jscomp$108.removed.length?x.set(a,r+l.s$jscomp$108.addedCount-l.s$jscomp$108.removed.length):x.set(a,-1))}}(y));
for(var e=0;e<y.s$jscomp$108.addedCount;e++){var F=y.s$jscomp$108.index+e;x.has(this.items[F])&&x.set(this.items[F],F)}}this.__updateLinks();var b=0;x.forEach(function(l,r){l<0?(f.multi?f.splice("selected",b,1):f.selected=f.selectedItem=null,x.delete(r)):b++})};
v.prototype.__updateLinks=function(){var n=this;this.__dataLinkedPaths={};if(this.multi){var f=0;this.__selectedMap.forEach(function(x){x>=0&&n.linkPaths("items."+x,"selected."+f++)})}else this.__selectedMap.forEach(function(x){n.linkPaths("selected","items."+x);
n.linkPaths("selectedItem","items."+x)})};
v.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
v.prototype.isSelected=function(n){return this.__selectedMap.has(n)};
v.prototype.isIndexSelected=function(n){return this.isSelected(this.items[n])};
v.prototype.__deselectChangedIdx=function(n){var f=this,x=this.__selectedIndexForItemIndex(n);if(x>=0){var y=0;this.__selectedMap.forEach(function(Q,e){x==y++&&f.deselect(e)})}};
v.prototype.__selectedIndexForItemIndex=function(n){if(n=this.__dataLinkedPaths["items."+n])return parseInt(n.slice(9),10)};
v.prototype.deselect=function(n){var f=this.__selectedMap.get(n);if(f>=0){this.__selectedMap.delete(n);var x;this.multi&&(x=this.__selectedIndexForItemIndex(f));this.__updateLinks();this.multi?this.splice("selected",x,1):this.selected=this.selectedItem=null}};
v.prototype.deselectIndex=function(n){this.deselect(this.items[n])};
v.prototype.select=function(n){this.selectIndex(this.items.indexOf(n))};
v.prototype.selectIndex=function(n){var f=this.items[n];this.isSelected(f)?this.toggle&&this.deselectIndex(n):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(f,n),this.__updateLinks(),this.multi?this.push("selected",f):this.selected=this.selectedItem=f)};
_.hK.Object.defineProperties(v,{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 v}),Dxg=V7g($e),Lz=function(){return Dxg.apply(this,arguments)||this};
_.S(Lz,Dxg);_.hK.Object.defineProperties(Lz,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Lz.is,Lz);var HHS=window.Polymer;window.Polymer=function(v){return window.Polymer._polymerFn(v)};
HHS&&Object.assign(Polymer,HHS);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:ky9,resolveUrl:_.Os,pathFromUrl:WcL};Polymer.DomModule=x0;Polymer.Async={timeOut:_.uF,animationFrame:_.EZ,idlePeriod:XRg,microTask:l$};Polymer.dedupingMixin=j2;Polymer.wrap=_.vZ;Polymer.PropertiesChanged=F56;Polymer.telemetry={instanceCount:mxP,incrementInstanceCount:function(){mxP++},
registrations:TWX,register:ih$,dumpRegistrations:function(){TWX.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=wR4;Polymer.CaseMap={dashToCamelCase:WP,camelToDashCase:$$};Polymer.PropertyAccessors=aIU;Polymer.TemplateStamp=UxP;Polymer.Path={isPath:L3,root:G1,isAncestor:Ea1,isDescendant:T1,translate:ii,matches:naE,normalize:z1,split:oa1,get:Rg,set:fkQ,isDeep:L3};Polymer.Settings={useShadow:PZ,useNativeCSSProperties:TMF,useNativeCustomElements:iGP,get rootPath(){return vsP},setRootPath:function(v){vsP=v},
get sanitizeDOMValue(){return E2},setSanitizeDOMValue:function(v){E2=v},
get passiveTouchGestures(){return BQQ},setPassiveTouchGestures:function(v){BQQ=v},
get strictTemplatePolicy(){return MO},setStrictTemplatePolicy:function(v){MO=v},
get allowTemplateFromDomModule(){return EsU},setAllowTemplateFromDomModule:function(v){EsU=v},
get legacyOptimizations(){return r6},setLegacyOptimizations:function(v){r6=v},
get syncInitialRender(){return nsS},setSyncInitialRender:function(v){nsS=v},
get legacyUndefined(){return oS},setLegacyUndefined:function(v){oS=v},
get legacyWarnings(){return CV},setLegacyWarnings:function(v){CV=v},
get orderedComputed(){return os6},setOrderedComputed:function(v){os6=v},
get fastDomIf(){return HN},setFastDomIf:function(v){HN=v},
get removeNestedTemplates(){return DX},setRemoveNestedTemplates:function(v){DX=v},
get suppressTemplateNotifications(){return gl},setSuppressTemplateNotifications:gl};Polymer.rootPath!==void 0&&(vsP=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(E2=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(BQQ=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(MO=Polymer.strictTemplatePolicy);EsU=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(r6=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(nsS=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(oS=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(CV=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(os6=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(HN=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(DX=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(gl=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return E2},
set:function(v){E2=v}});Polymer.PropertyEffects=ke;Polymer.StyleGather={stylesFromModules:dlI,stylesFromModule:KIA,stylesFromTemplate:IkX,stylesFromModuleImports:YIA,cssFromModules:AFI,cssFromModule:h6E,cssFromTemplate:VSN,cssFromModuleImports:function(v){return(v=x0.import(v))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):""}};Polymer.ElementMixin=WN;Polymer.updateStyles=function(v){window.ShadyCSS&&window.ShadyCSS.styleDocument(v)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:gaX};Polymer.html=_.AcU;Polymer.htmlLiteral=function(v){return new NQG(v,_.rV.apply(1,arguments))};Polymer.Element=$e;Polymer.ArraySelectorMixin=V7g;Polymer.ArraySelector=Lz;var gsg=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Njl=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,P99=/@media\s(.*)/;var WIy=null,kKE=window.HTMLImports&&window.HTMLImports.whenReady||null,$lE;var uDX=null,G5=null,T5=function(){this.customStyles=[];this.enqueued=!1;LI$(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},jQS=function(v){!v.enqueued&&G5&&(v.enqueued=!0,LI$(G5))};
T5.prototype.addCustomStyle=function(v){v.__seenByShadyCSS||(v.__seenByShadyCSS=!0,this.customStyles.push(v),jQS(this))};
T5.prototype.getStyleForCustomStyle=function(v){if(v.__shadyCSSCachedStyle)return v.__shadyCSSCachedStyle;var E;v.getStyle?E=v.getStyle():E=v;return E};
T5.prototype.processStyles=function(){for(var v=this.customStyles,E=0;E<v.length;E++){var n=v[E];if(!n.__shadyCSSCachedStyle){var f=this.getStyleForCustomStyle(n);f&&(f=f.__appliedElement||f,uDX&&uDX(f),n.__shadyCSSCachedStyle=f)}}return v};
T5.prototype.addCustomStyle=T5.prototype.addCustomStyle;T5.prototype.getStyleForCustomStyle=T5.prototype.getStyleForCustomStyle;T5.prototype.processStyles=T5.prototype.processStyles;Object.defineProperties(T5.prototype,{transformCallback:{get:function(){return uDX},
set:function(v){uDX=v}},
validateCallback:{get:function(){return G5},
set:function(v){var E=!1;G5||(E=!0);G5=v;E&&jQS(this)}}});var TQy=!(window.ShadyDOM&&window.ShadyDOM.inUse),GK1,Y0;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Y0=window.ShadyCSS.cssBuild);var OH1=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?GK1=window.ShadyCSS.nativeCss:window.ShadyCSS?(i7$(window.ShadyCSS),window.ShadyCSS=void 0):i7$(window.WebComponents&&window.WebComponents.flags);var lR$=GK1;var kx1=new T5;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(v,E){kx1.processStyles();juX(v,E)},
styleElement:function(){kx1.processStyles()},
styleDocument:function(v){kx1.processStyles();juX(document.body,v)},
getComputedStyleValue:function(v,E){return O7A(v,E)},
flushCustomStyles:function(){},
nativeCss:lR$,nativeShadow:TQy,cssBuild:Y0,disableRuntime:OH1});window.ShadyCSS.CustomStyleInterface=kx1;var W5z=window.ShadyCSS.CustomStyleInterface,iF=function(){var v=HTMLElement.call(this)||this;v._style=null;W5z.addCustomStyle(v);return v};
_.S(iF,HTMLElement);iF.prototype.getStyle=function(){if(this._style)return this._style;var v=this.querySelector("style");if(!v)return null;this._style=v;var E=v.getAttribute("include");E&&(v.removeAttribute("include"),v.textContent=AFI(E)+v.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
iF.prototype.getStyle=iF.prototype.getStyle;window.customElements.define("custom-style",iF);Polymer.CustomStyle=iF;var z5=function(){this._timer=this._callback=this._asyncModule=null},R9,L5g;
z5.prototype.setConfig=function(v,E){var n=this;this._asyncModule=v;this._callback=E;this._timer=this._asyncModule.run(function(){n._timer=null;R9.delete(n);n._callback()})};
z5.prototype.cancel=function(){this.isActive()&&($x1(this),R9.delete(this))};
var $x1=function(v){v.isActive()&&(v._asyncModule.cancel(v._timer),v._timer=null)};
z5.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
z5.prototype.isActive=function(){return this._timer!=null};
_.tS=function(v,E,n){v instanceof z5?$x1(v):v=new z5;v.setConfig(E,n);return v};
R9=new Set;_.BN=function(v){R9.add(v)};
L5g=function(){var v=!!R9.size;R9.forEach(function(E){try{E.flush()}catch(n){setTimeout(function(){throw n;})}});
return v};var R6E=typeof document.head.style.touchAction==="string",z6Q=["mousedown","mousemove","mouseup","click"],cyI=[0,1,4,2],Gxl;try{Gxl=(new MouseEvent("test",{buttons:1})).buttons===1}catch(v){Gxl=!1}var xoX=Gxl,tSX=!1;(function(){try{var v=Object.defineProperty({},"passive",{get:function(){tSX=!0}});
window.addEventListener("test",null,v);window.removeEventListener("test",null,v)}catch(E){}})();
var ECE=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),nCQ=[],TjF={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},ry$={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},oCX=function(v){var E=v.sourceCapabilities;if(!E||E.firesTouchEvents)if(v.__polymerGesturesHandled={skip:!0},v.type==="click"){E=!1;for(var n=XjE(v),f=0;f<n.length;f++){if(n[f].nodeType===Node.ELEMENT_NODE)if(n[f].localName==="label")nCQ.push(n[f]);
else if(TjF[n[f].localName]){var x=n[f];var y=Array.prototype.slice.call(x.labels||[]);if(!y.length){y=[];try{var Q=x.getRootNode();if(x.id){var e=Q.querySelectorAll("label[for = '"+x.id+"']");for(x=0;x<e.length;x++)y.push(e[x])}}catch(F){}}for(x=0;x<y.length;x++)E=E||nCQ.indexOf(y[x])>-1}if(n[f]===iH6)return}E||(v.preventDefault(),v.stopPropagation())}},iH6=null,vX=null,FHQ=0,mo$=0,eU9=-1,wjy=!1;
document.addEventListener("touchend",function(v){vX||fEX(!0);iH6=XjE(v)[0];vX=_.tS(vX,_.uF.after(2500),function(){fEX();vX=iH6=null})},tSX?{passive:!0}:!1);
var XjE=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(v){return v.composedPath&&v.composedPath()||[]},Fc={},Q2=[];
bU9({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){pV(this.info)},
mousedown:function(v){if(y2(v)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),n=this;pjI(this.info,function(f){y2(f)||(s2("up",E,f),pV(n.info))},function(f){y2(f)&&s2("up",E,f);
pV(n.info)});
s2("down",E,v)}},
touchstart:function(v){s2("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)},
touchend:function(v){s2("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)}});
bU9({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(v){this.moves.length>2&&this.moves.shift();this.moves.push(v)},
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;pV(this.info)},
mousedown:function(v){if(y2(v)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),n=this,f=function(x){var y=x.clientX,Q=x.clientY;lEs(n.info,y,Q)&&(n.info.state=n.info.started?x.type==="mouseup"?"end":"track":"start",n.info.state==="start"&&e$("tap"),n.info.addMove({x:y,y:Q}),y2(x)||(n.info.state="end",pV(n.info)),E&&sVI(n.info,E,x),n.info.started=!0)};
pjI(this.info,f,function(x){n.info.started&&f(x);pV(n.info)});
this.info.x=v.clientX;this.info.y=v.clientY}},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchmove:function(v){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];var n=v.clientX,f=v.clientY;lEs(this.info,n,f)&&(this.info.state==="start"&&e$("tap"),this.info.addMove({x:n,y:f}),sVI(this.info,E,v),this.info.state="track",this.info.started=!0)},
touchend:function(v){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:v.clientX,y:v.clientY}),sVI(this.info,E,v))}});
bU9({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(v){y2(v)&&(this.info.x=v.clientX,this.info.y=v.clientY)},
click:function(v){y2(v)&&PTE(this.info,v)},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchend:function(v){PTE(this.info,v.changedTouches[0],v)}});var zH6=j2(function(v){var E=function(){return v.apply(this,arguments)||this};
_.S(E,v);E.prototype._addEventListenerToNode=function(n,f,x){mt(n,f,x)||v.prototype._addEventListenerToNode.call(this,n,f,x)};
E.prototype._removeEventListenerFromNode=function(n,f,x){w6(n,f,x)||v.prototype._removeEventListenerFromNode.call(this,n,f,x)};
return E});var EG=j2(function(v){var E=function(){return v.apply(this,arguments)||this};
_.S(E,v);E.prototype._shouldPropertyChange=function(n,f,x){return aEQ(this,n,f,x,!0)};
return E}),RH6=j2(function(v){var E=function(){return v.apply(this,arguments)||this};
_.S(E,v);E.prototype._shouldPropertyChange=function(n,f,x){return aEQ(this,n,f,x,this.mutableData)};
_.hK.Object.defineProperties(E,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return E});
EG._mutablePropertyChange=aEQ;var ZUL=!1;var t7g=zH6(RH6(ke(HTMLElement))),nr=function(){var v=t7g.call(this)||this;if(MO)throw Error("Hd");v.root=null;v.$=null;v.__children=null;return v};
_.S(nr,t7g);_.c=nr.prototype;_.c.attributeChangedCallback=function(){this.mutableData=!0};
_.c.connectedCallback=function(){CTQ()||(this.style.display="none");this.render()};
_.c.disconnectedCallback=function(){this.__removeChildren()};
_.c.__insertChildren=function(){(0,_.vZ)((0,_.vZ)(this).parentNode).insertBefore(this.root,this)};
_.c.__removeChildren=function(){if(this.__children)for(var v=0;v<this.__children.length;v++)this.root.appendChild(this.__children[v])};
_.c.render=function(){var v=this;if(!this.__children){var E=E||this.querySelector("template");if(!E){var n=new MutationObserver(function(){if(E=v.querySelector("template"))n.disconnect(),v.render();else throw Error("Id");});
n.observe(this,{childList:!0});return}this.root=this._stampTemplate(E);this.$=this.root.$;this.__children=[];for(var f=this.root.firstChild;f;f=f.nextSibling)this.__children[this.__children.length]=f;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.hK.Object.defineProperties(nr,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",nr);Polymer.Debouncer=z5;Polymer.Gestures={gestures:Fc,recognizers:Q2,deepTargetFind:QVN,addListener:mt,removeListener:w6,register:bU9,setTouchAction:_.b$,prevent:e$,resetMouseCanceller:function(){vX&&vX.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:mt,remove:w6};Polymer.GestureEventListeners=zH6;Polymer.MutableData=EG;Polymer.OptionalMutableData=RH6;Polymer.DomBind=nr;_.o4=function(){do{var v=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var E=L5g()}while(v||E)};var Mh$=null;S_I.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:S_I,writable:!0}});var hUF=ke(S_I),Y_L=EG(hUF),Bjo=ke(function(){}),aS=function(v){var E=Bjo.call(this)||this;
E._configureProperties(v);E.root=E._stampTemplate(E.__dataHost);var n=[];E.children=n;for(var f=E.root.firstChild;f;f=f.nextSibling)n.push(f),f.__templatizeInstance=E;E.__templatizeOwner&&E.__templatizeOwner.__hideTemplateChildren__&&E._showHideChildren(!0);n=E.__templatizeOptions;(v&&n.instanceProps||!n.instanceProps)&&E._enableProperties();return E};
_.S(aS,Bjo);_.c=aS.prototype;_.c._configureProperties=function(v){if(this.__templatizeOptions.forwardHostProp)for(var E in this.__hostProps)this._setPendingProperty(E,this.__dataHost["_host_"+E]);for(var n in v)this._setPendingProperty(n,v[n])};
_.c.forwardHostProp=function(v,E){this._setPendingPropertyOrPath(v,E,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.c._addEventListenerToNode=function(v,E,n){var f=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(v,E,function(y){y.model=f;n(y)});
else{var x=this.__dataHost.__dataHost;x&&x._addEventListenerToNode(v,E,n)}};
_.c._showHideChildren=function(v){q_X(v,this.children)};
_.c._setUnmanagedPropertyToNode=function(v,E,n){v.__hideTemplateChildren__&&v.nodeType==Node.TEXT_NODE&&E=="textContent"?v.__polymerTextContent__=n:Bjo.prototype._setUnmanagedPropertyToNode.call(this,v,E,n)};
_.c.dispatchEvent=function(){return!0};
_.hK.Object.defineProperties(aS.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var v=this.__parentModel;if(!v){var E;v=this;do v=v.__dataHost.__dataHost;while((E=v.__templatizeOptions)&&!E.parentModel);this.__parentModel=v}return v}}});
var KHX=EG(aS);var fr=function(){var v=$e.call(this)||this;v.__renderDebouncer=null;v._lastIf=!1;v.__hideTemplateChildren__=!1;return v};
_.S(fr,$e);_.c=fr.prototype;_.c.__debounceRender=function(){var v=this;this.__renderDebouncer=_.tS(this.__renderDebouncer,l$,function(){return v.__render()});
_.BN(this.__renderDebouncer)};
_.c.disconnectedCallback=function(){$e.prototype.disconnectedCallback.call(this);var v=(0,_.vZ)(this).parentNode;v&&(v.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.vZ)(v).host)||this.__teardownInstance()};
_.c.connectedCallback=function(){$e.prototype.connectedCallback.call(this);CTQ()||(this.style.display="none");this.if&&this.__debounceRender()};
_.c.__ensureTemplate=function(){var v=this;if(!this.__template){var E=this._templateInfo?this:(0,_.vZ)(this).querySelector("template");if(!E){var n=new MutationObserver(function(){if((0,_.vZ)(v).querySelector("template"))n.disconnect(),v.__render();else throw Error("Ld");});
n.observe(this,{childList:!0});return!1}this.__template=E}return!0};
_.c.__ensureInstance=function(){var v=(0,_.vZ)(this).parentNode;if(this.__hasInstance()){var E=this.__getInstanceNodes();if(E&&E.length&&(0,_.vZ)(this).previousSibling!==E[E.length-1])for(var n=0,f=void 0;n<E.length&&(f=E[n]);n++)(0,_.vZ)(v).insertBefore(f,this)}else{if(!v||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(v)}return!0};
_.c.render=function(){_.o4()};
_.c.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();gl&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.c.__hasInstance=function(){};
_.c.__getInstanceNodes=function(){};
_.c.__createAndInsertInstance=function(){};
_.c.__teardownInstance=function(){};
_.c._showHideChildren=function(){};
_.hK.Object.defineProperties(fr,{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:fr.prototype.__debounceRender},restamp:{type:Boolean,observer:fr.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var vtF=function(){var v=fr.call(this)||this;v.__instance=null;v.__syncInfo=null;return v};
_.S(vtF,fr);_.c=vtF.prototype;_.c.__hasInstance=function(){return!!this.__instance};
_.c.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.c.__createAndInsertInstance=function(v){var E=this,n=this.__dataHost||this;if(MO&&!this.__dataHost)throw Error("Jd");var f=n._bindTemplate(this.__template,!0);f.runEffects=function(x,y,Q){var e=E.__syncInfo;if(E.if)e&&(E.__syncInfo=null,E._showHideChildren(),y=Object.assign(e.changedProps,y)),x(y,Q);else if(E.__instance)if(e||(e=E.__syncInfo={runEffects:x,changedProps:{}}),Q)for(var F in y)x=G1(F),e.changedProps[x]=E.__dataHost[x];else Object.assign(e.changedProps,y)};
this.__instance=n._stampTemplate(this.__template,f);(0,_.vZ)(v).insertBefore(this.__instance,this)};
_.c.__syncHostProperties=function(){var v=this.__syncInfo;v&&(this.__syncInfo=null,v.runEffects(v.changedProps,!1))};
_.c.__teardownInstance=function(){var v=this.__dataHost||this;this.__instance&&(v._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.c._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,q_X(v,this.__instance.templateInfo.childNodes));v||this.__syncHostProperties()};
var EtP=function(){var v=fr.call(this)||this;v.__ctor=null;v.__instance=null;v.__invalidProps=null;return v};
_.S(EtP,fr);_.c=EtP.prototype;_.c.__hasInstance=function(){return!!this.__instance};
_.c.__getInstanceNodes=function(){return this.__instance.children};
_.c.__createAndInsertInstance=function(v){this.__ctor||(this.__ctor=Zm(this.__template,this,{mutableData:!0,forwardHostProp:function(E,n){this.__instance&&(this.if?this.__instance.forwardHostProp(E,n):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[G1(E)]=!0))}}));
this.__instance=new this.__ctor;(0,_.vZ)(v).insertBefore(this.__instance.root,this)};
_.c.__teardownInstance=function(){if(this.__instance){var v=this.__instance.children;if(v&&v.length){var E=(0,_.vZ)(v[0]).parentNode;if(E){E=(0,_.vZ)(E);for(var n=0,f=void 0;n<v.length&&(f=v[n]);n++)E.removeChild(f)}}this.__instance=this.__invalidProps=null}};
_.c.__syncHostProperties=function(){var v=this.__invalidProps;if(v){this.__invalidProps=null;for(var E in v)this.__instance._setPendingProperty(E,this.__dataHost[E]);this.__instance._flushProperties()}};
_.c._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,this.__instance._showHideChildren(v));v||this.__syncHostProperties()};
_.xi=HN?vtF:EtP;customElements.define(_.xi.is,_.xi);Polymer.enqueueDebouncer=_.BN;Polymer.flush=_.o4;Polymer.Templatize={templatize:Zm,modelForElement:NNQ};Polymer.TemplateInstanceBase=aS;Polymer.DomIf=_.xi;var ntw=RH6($e),n5=function(){var v=ntw.call(this)||this;v.__instances=[];v.__renderDebouncer=null;v.__itemsIdxToInstIdx={};v.__chunkCount=null;v.__renderStartTime=null;v.__itemsArrayChanged=!1;v.__shouldMeasureChunk=!1;v.__shouldContinueChunking=!1;v.__chunkingId=0;v.__sortFn=null;v.__filterFn=null;v.__observePaths=null;v.__ctor=null;v.__isDetached=!0;v.template=null;return v};
_.S(n5,ntw);_.c=n5.prototype;_.c.disconnectedCallback=function(){ntw.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var v=0;v<this.__instances.length;v++)this.__detachInstance(v);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.c.connectedCallback=function(){ntw.prototype.connectedCallback.call(this);CTQ()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var v=(0,_.vZ)((0,_.vZ)(this).parentNode),E=0;E<this.__instances.length;E++)this.__attachInstance(E,v);this.__chunkingId&&this.__render()}};
_.c.__ensureTemplatized=function(){var v=this;if(!this.__ctor){var E=this.template=this._templateInfo?this:this.querySelector("template");if(!E){var n=new MutationObserver(function(){if(v.querySelector("template"))n.disconnect(),v.__render();else throw Error("Md");});
n.observe(this,{childList:!0});return!1}var f={};f[this.as]=!0;f[this.indexAs]=!0;f[this.itemsIndexAs]=!0;this.__ctor=Zm(E,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:f,forwardHostProp:function(x,y){for(var Q=this.__instances,e=0,F=void 0;e<Q.length&&(F=Q[e]);e++)F.forwardHostProp(x,y)},
notifyInstanceProp:function(x,y,Q){naE(this.as,y)&&(x=x[this.itemsIndexAs],y==this.as&&(this.items[x]=Q),y=ii(this.as,"items."+x,y),this.notifyPath(y,Q))}})}return!0};
_.c.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.c.__functionFromPropertyValue=function(v){if(typeof v==="string"){var E=this.__getMethodHost();return function(){return E[v].apply(E,arguments)}}return v};
_.c.__sortChanged=function(v){this.__sortFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.c.__filterChanged=function(v){this.__filterFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.c.__computeFrameTime=function(v){return Math.ceil(1E3/v)};
_.c.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.c.__handleObservedPaths=function(v){if(this.__sortFn||this.__filterFn)if(!v)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var E=this.__observePaths,n=0;n<E.length;n++)v.indexOf(E[n])===0&&this.__debounceRender(this.__render,this.delay)};
_.c.__itemsChanged=function(v){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(v.path,v.value)||(v.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.c.__debounceRender=function(v,E){E=E===void 0?0:E;this.__renderDebouncer=_.tS(this.__renderDebouncer,E>0?_.uF.after(E):l$,v.bind(this));_.BN(this.__renderDebouncer)};
_.c.render=function(){this.__debounceRender(this.__render);_.o4()};
_.c.__render=function(){var v=this;if(this.__ensureTemplatized()){var E=this.items||[],n=this.__sortAndFilterItems(E),f=this.__calculateLimit(n.length);this.__updateInstances(E,f,n);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){v.__chunkingId=null;v.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);gl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.c.__sortAndFilterItems=function(v){for(var E=this,n=Array(v.length),f=0;f<v.length;f++)n[f]=f;this.__filterFn&&(n=n.filter(function(x,y,Q){return E.__filterFn(v[x],y,Q)}));
this.__sortFn&&n.sort(function(x,y){return E.__sortFn(v[x],v[y])});
return n};
_.c.__calculateLimit=function(v){var E=v,n=this.__instances.length;if(this.initialCount){var f;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(E=Math.min(v,this.initialCount),this.__chunkCount=(f=Math.max(E-n,0))||1):(f=Math.min(Math.max(v-n,0),this.__chunkCount),E=Math.min(n+f,v));this.__shouldMeasureChunk=f===this.__chunkCount;this.__shouldContinueChunking=E<v;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return E};
_.c.__continueChunking=function(){if(this.__shouldMeasureChunk){var v=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/v*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.c.__updateInstances=function(v,E,n){var f=this.__itemsIdxToInstIdx={},x;for(x=0;x<E;x++){var y=this.__instances[x],Q=n[x],e=v[Q];f[Q]=x;y?(y._setPendingProperty(this.as,e),y._setPendingProperty(this.indexAs,x),y._setPendingProperty(this.itemsIndexAs,Q),y._flushProperties()):this.__insertInstance(e,x,Q)}for(v=this.__instances.length-1;v>=x;v--)this.__detachAndRemoveInstance(v)};
_.c.__detachInstance=function(v){v=this.__instances[v];for(var E=(0,_.vZ)(v.root),n=0;n<v.children.length;n++)E.appendChild(v.children[n]);return v};
_.c.__attachInstance=function(v,E){E.insertBefore(this.__instances[v].root,this)};
_.c.__detachAndRemoveInstance=function(v){this.__detachInstance(v);this.__instances.splice(v,1)};
_.c.__stampInstance=function(v,E,n){var f={};f[this.as]=v;f[this.indexAs]=E;f[this.itemsIndexAs]=n;return new this.__ctor(f)};
_.c.__insertInstance=function(v,E,n){v=this.__stampInstance(v,E,n);n=(n=this.__instances[E+1])?n.children[0]:this;(0,_.vZ)((0,_.vZ)(this).parentNode).insertBefore(v.root,n);return this.__instances[E]=v};
_.c._showHideChildren=function(v){for(var E=0;E<this.__instances.length;E++)this.__instances[E]._showHideChildren(v)};
_.c.__handleItemPath=function(v,E){var n=v.slice(6),f=n.indexOf(".");v=f<0?n:n.substring(0,f);if(v==parseInt(v,10)){n=f<0?"":n.substring(f+1);this.__handleObservedPaths(n);if(v=this.__instances[this.__itemsIdxToInstIdx[v]])v._setPendingPropertyOrPath(this.as+(n?"."+n:""),E,!1,!0),v._flushProperties();return!0}};
_.c.itemForElement=function(v){return(v=this.modelForElement(v))&&v[this.as]};
_.c.indexForElement=function(v){return(v=this.modelForElement(v))&&v[this.indexAs]};
_.c.modelForElement=function(v){return NNQ(this.template,v)};
_.hK.Object.defineProperties(n5,{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:n5.prototype.__sortChanged},filter:{type:Function,observer:n5.prototype.__filterChanged},observe:{type:String,observer:n5.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!gl,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.*)"]}}});
n5.prototype._setRenderedItemCount=function(){};
customElements.define(n5.is,n5);Polymer.DomRepeat=n5;var otl=function(v,E){var n=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=v;this.callback=E;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){n._schedule()};
this.connect();this._schedule()},fGg=function(v){var E=(0,_.vZ)(v);
if(S$(v))return E.assignedNodes({flatten:!0});v=[];for(var n=0;n<E.childNodes.length;n++){var f=E.childNodes[n];S$(f)?v.push.apply(v,_.s8((0,_.vZ)(f).assignedNodes({flatten:!0}))):v.push(f)}return v};
_.c=otl.prototype;_.c.connect=function(){var v=this;S$(this._target)?this._listenSlots([this._target]):(0,_.vZ)(this._target).children&&(this._listenSlots((0,_.vZ)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(E){v._processMutations(E)}):(this._nativeChildrenObserver=new MutationObserver(function(E){v._processMutations(E)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.c.disconnect=function(){S$(this._target)?this._unlistenSlots([this._target]):(0,_.vZ)(this._target).children&&(this._unlistenSlots((0,_.vZ)(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};
_.c._schedule=function(){var v=this;this._scheduled||(this._scheduled=!0,l$.run(function(){return v.flush()}))};
_.c._processMutations=function(v){this._processSlotMutations(v);this.flush()};
_.c._processSlotMutations=function(v){if(v)for(var E=0;E<v.length;E++){var n=v[E];n.addedNodes&&this._listenSlots(n.addedNodes);n.removedNodes&&this._unlistenSlots(n.removedNodes)}};
_.c.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 v={target:this._target,addedNodes:[],removedNodes:[]},E=fGg(this._target),n=gaX(E,this._effectiveNodes),f=0,x=void 0;f<n.length&&(x=n[f]);f++)for(var y=0,Q=void 0;y<x.removed.length&&(Q=x.removed[y]);y++)v.removedNodes.push(Q);
f=0;for(x=void 0;f<n.length&&(x=n[f]);f++)for(y=x.index;y<x.index+x.addedCount;y++)v.addedNodes.push(E[y]);this._effectiveNodes=E;E=!1;if(v.addedNodes.length||v.removedNodes.length)E=!0,this.callback.call(this._target,v);return E};
_.c._listenSlots=function(v){for(var E=0;E<v.length;E++){var n=v[E];S$(n)&&n.addEventListener("slotchange",this._boundSchedule)}};
_.c._unlistenSlots=function(v){for(var E=0;E<v.length;E++){var n=v[E];S$(n)&&n.removeEventListener("slotchange",this._boundSchedule)}};var xq=Element.prototype,xDU=xq.matches||xq.matchesSelector||xq.mozMatchesSelector||xq.msMatchesSelector||xq.oMatchesSelector||xq.webkitMatchesSelector,cCg=function(v,E){return xDU.call(v,E)},U2=function(v){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(v);
this.node=v},Xyo;
_.c=U2.prototype;_.c.observeNodes=function(v){return new otl(this.node,v)};
_.c.unobserveNodes=function(v){v.disconnect()};
_.c.notifyObserver=function(){};
_.c.deepContains=function(v){if((0,_.vZ)(this.node).contains(v))return!0;var E=v;for(v=v.ownerDocument;E&&E!==v&&E!==this.node;)E=(0,_.vZ)(E).parentNode||(0,_.vZ)(E).host;return E===this.node};
_.c.getOwnerRoot=function(){return(0,_.vZ)(this.node).getRootNode()};
_.c.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.vZ)(this.node).assignedNodes({flatten:!0}):[]};
_.c.getDestinationInsertionPoints=function(){for(var v=[],E=(0,_.vZ)(this.node).assignedSlot;E;)v.push(E),E=(0,_.vZ)(E).assignedSlot;return v};
_.c.importNode=function(v,E){return(0,_.vZ)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(v,E)};
_.c.getEffectiveChildNodes=function(){return fGg(this.node)};
_.c.queryDistributedElements=function(v){for(var E=this.getEffectiveChildNodes(),n=[],f=0,x=E.length,y=void 0;f<x&&(y=E[f]);f++)y.nodeType===Node.ELEMENT_NODE&&cCg(y,v)&&n.push(y);return n};
_.hK.Object.defineProperties(U2.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var v=this.node;return v._activeElement!==void 0?v._activeElement:v.activeElement}}});
var cX=function(v){this.event=v};
_.hK.Object.defineProperties(cX.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 yC1=U2;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var pyl=window.ShadyDOM.Wrapper,Qb1=function(){return pyl.apply(this,arguments)||this};
_.S(Qb1,pyl);Object.getOwnPropertyNames(U2.prototype).forEach(function(v){v!="activeElement"&&v!="constructor"&&(Qb1.prototype[v]=U2.prototype[v])});
jVA(Qb1.prototype,["classList"]);yC1=Qb1;Object.defineProperties(cX.prototype,{localTarget:{get:function(){var v=this.event.currentTarget;v=v&&_.pG(v).getOwnerRoot();for(var E=this.path,n=0;n<E.length;n++){var f=E[n];if(_.pG(f).getOwnerRoot()===v)return f}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else uHy(),jVA(U2.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),OUN();Xyo=yC1;_.pG=function(v){v=v||document;if(v instanceof yC1)return v;if(v instanceof cX)return v;var E=v.__domApi;E||(v instanceof Event?E=new cX(v):E=new yC1(v),v.__domApi=E);return E};var eoz=/:host\(:dir\((ltr|rtl)\)\)/g,FWU=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,mD1=/:dir\((?:ltr|rtl)\)/,wy1=!(!window.ShadyDOM||!window.ShadyDOM.inUse),JK=[],yl=null,qO="",bCi=j2(function(v){wy1||yl||(qO=document.documentElement.getAttribute("dir"),yl=new MutationObserver(kkQ),yl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var E=aIU(v);v=function(){var n=E.call(this)||this;n.__autoDirOptOut=!1;return n};
_.S(v,E);v._processStyleText=function(n,f){n=E._processStyleText.call(this,n,f);!wy1&&mD1.test(n)&&(n=this._replaceDirInCssText(n),this.__activateDir=!0);return n};
v._replaceDirInCssText=function(n){n=n.replace(eoz,':host([dir="$1"])');return n=n.replace(FWU,':host([dir="$2"]) $1')};
v.prototype.ready=function(){E.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
v.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(yl&&yl.takeRecords().length&&kkQ(),JK.push(this),this.__autoDirOptOut||this.setAttribute("dir",qO))};
v.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var n=JK.indexOf(this);n>-1&&JK.splice(n,1)}};
v.__activateDir=!1;return v});var lG1=function(v){for(;v;){var E=Object.getOwnPropertyDescriptor(v,"observedAttributes");if(E)return E.get;v=Object.getPrototypeOf(v.prototype).constructor}return function(){return[]}};
j2(function(v){var E=WN(v),n=lG1(E);v=function(){return E.call(this)||this};
_.S(v,E);v.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:E.prototype._initializeProperties.call(this)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(f){return E.prototype._canApplyPropertyDefault.call(this,f)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(f))};
v.prototype.attributeChangedCallback=function(f,x,y,Q){f=="disable-upgrade"?this.__isUpgradeDisabled&&y==null&&(E.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.vZ)(this).isConnected&&E.prototype.connectedCallback.call(this)):E.prototype.attributeChangedCallback.call(this,f,x,y,Q)};
v.prototype.connectedCallback=function(){this.__isUpgradeDisabled||E.prototype.connectedCallback.call(this)};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||E.prototype.disconnectedCallback.call(this)};
_.hK.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return n.call(this).concat("disable-upgrade")}}});
return v});var KV=!1,$o1=[],d6=[];var iU1=window.ShadyDOM,zUN=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",thy):document.readyState==="interactive"||document.readyState==="complete"?thy():window.addEventListener("DOMContentLoaded",thy);var EJy=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=""},BNs=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,vJ$=/@import[^;]*;/gim,yf1=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,p_L=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,QrN=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,X_X=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,xII=/^@[^\s]*keyframes/,
fRX=/\s+/g;var ei1={};var w_y=Promise.resolve();var sb1=new Set;var rCg=/;\s*/m,Pxg=/^\s*(initial)|(inherit)\s*$/,aGz=/\s*!important/,ZC1=function(){this._map={}};
ZC1.prototype.set=function(v,E){v=v.trim();this._map[v]={properties:E,dependants:{}}};
ZC1.prototype.get=function(v){v=v.trim();return this._map[v]||null};
var Cx4=null,pr=function(){this._measureElement=this._currentElement=null;this._map=new ZC1};
_.c=pr.prototype;_.c.detectMixin=function(v){v=Njl.test(v)||gsg.test(v);Njl.lastIndex=0;gsg.lastIndex=0;return v};
_.c.transformTemplate=function(v,E){if(v._gatheredStyle===void 0){var n=[];for(var f=v.content.querySelectorAll("style"),x=0;x<f.length;x++){var y=f[x];if(y.hasAttribute("shady-unscoped")){if(!TQy){var Q=y.textContent;if(!sb1.has(Q)){sb1.add(Q);var e=document.createElement("style");e.setAttribute("shady-unscoped","");e.textContent=Q;document.head.appendChild(e)}y.parentNode.removeChild(y)}}else n.push(y.textContent),y.parentNode.removeChild(y)}(n=n.join("").trim())?(f=document.createElement("style"),
f.textContent=n,v.content.insertBefore(f,v.content.firstChild),n=f):n=null;v._gatheredStyle=n}return(v=v._gatheredStyle)?this.JSC$9068_transformStyle(v,E):null};
_.c.JSC$9068_transformStyle=function(v,E){E=E===void 0?"":E;var n=rfE(v);this.transformRules(n,E);v.textContent=srX(n);return n};
_.c.transformCustomStyle=function(v){var E=this,n=rfE(v);aRX(n,function(f){f.selector===":root"&&(f.selector="html");E.transformRule(f)});
v.textContent=srX(n);return n};
_.c.transformRules=function(v,E){var n=this;this._currentElement=E;aRX(v,function(f){n.transformRule(f)});
this._currentElement=null};
_.c.transformRule=function(v){v.cssText=MNi(this,v.parsedCssText,v);v.selector===":root"&&(v.selector=":host > *")};
var MNi=function(v,E,n){E=E.replace(gsg,function(f,x,y,Q){return v._produceCssProperties(f,x,y,Q,n)});
return v._consumeCssProperties(E,n)};
_.c=pr.prototype;_.c._getInitialValueForProperty=function(v){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(v)};
_.c._fallbacksFromPreviousRules=function(v){for(var E=this,n=v;n.parent;)n=n.parent;var f={},x=!1;aRX(n,function(y){(x=x||y===v)||y.selector===v.selector&&Object.assign(f,E._cssTextToMap(y.parsedCssText))});
return f};
_.c._consumeCssProperties=function(v,E){for(var n;n=Njl.exec(v);){var f=n[0],x=n[1];n=n.index;var y=n+f.indexOf("@apply"),Q=n+f.length;f=v.slice(0,y);v=v.slice(Q);y=E?this._fallbacksFromPreviousRules(E):{};Object.assign(y,this._cssTextToMap(f));x=this._atApplyToCssProperties(x,y);v=f+x+v;Njl.lastIndex=n+x.length}return v};
_.c._atApplyToCssProperties=function(v,E){v=v.replace(rCg,"");var n=[],f=this._map.get(v);f||(this._map.set(v,{}),f=this._map.get(v));if(f){this._currentElement&&(f.dependants[this._currentElement]=!0);var x,y=f.properties;for(x in y){var Q=E&&E[x];f=[x,": var(",v,"_-_",x];Q&&f.push(",",Q.replace(aGz,""));f.push(")");aGz.test(y[x])&&f.push(" !important");n.push(f.join(""))}}return n.join("; ")};
_.c._replaceInitialOrInherit=function(v,E){var n=Pxg.exec(E);n&&(E=n[1]?this._getInitialValueForProperty(v):"apply-shim-inherit");return E};
_.c._cssTextToMap=function(v,E){E=E===void 0?!1:E;v=v.split(";");for(var n,f,x={},y=0;y<v.length;y++)if(n=v[y])f=n.split(":"),f.length>1&&(n=f[0].trim(),f=f.slice(1).join(":"),E&&(f=this._replaceInitialOrInherit(n,f)),x[n]=f);return x};
_.c._invalidateMixinEntry=function(v){if(Cx4)for(var E in v.dependants)E!==this._currentElement&&Cx4(E)};
_.c._produceCssProperties=function(v,E,n,f,x){var y=this;n&&ZeQ(n,function(U,d){d&&y._map.get(d)&&(f="@apply "+d+";")});
if(!f)return v;var Q=this._consumeCssProperties(""+f,x);x=v.slice(0,v.indexOf("--"));var e=Q=this._cssTextToMap(Q,!0),F=this._map.get(E),b=F&&F.properties;b?e=Object.assign(Object.create(b),Q):this._map.set(E,e);var l=[],r,a=!1;for(r in e){var M=Q[r];M===void 0&&(M="initial");!b||r in b||(a=!0);l.push(E+"_-_"+r+": "+M)}a&&this._invalidateMixinEntry(F);F&&(F.properties=e);n&&(x=v+";"+x);return x+l.join("; ")+";"};
pr.prototype.detectMixin=pr.prototype.detectMixin;pr.prototype.transformStyle=pr.prototype.JSC$9068_transformStyle;pr.prototype.transformCustomStyle=pr.prototype.transformCustomStyle;pr.prototype.transformRules=pr.prototype.transformRules;pr.prototype.transformRule=pr.prototype.transformRule;pr.prototype.transformTemplate=pr.prototype.transformTemplate;pr.prototype._separator="_-_";Object.defineProperty(pr.prototype,"invalidCallback",{get:function(){return Cx4},
set:function(v){Cx4=v}});var Ql=new pr,Sbz=function(){this.customStyleInterface=null;Ql.invalidCallback=FnI},Xl=function(v){!v.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(v.customStyleInterface=window.ShadyCSS.CustomStyleInterface,v.customStyleInterface.transformCallback=function(E){Ql.transformCustomStyle(E)},v.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){v.customStyleInterface.enqueued&&v.flushCustomStyles()})})};
_.c=Sbz.prototype;_.c.prepareTemplate=function(v,E){Xl(this);C9E(v)===""&&(ei1[E]=v,E=Ql.transformTemplate(v,E),v._styleAst=E)};
_.c.flushCustomStyles=function(){Xl(this);if(this.customStyleInterface){var v=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var E=0;E<v.length;E++){var n=this.customStyleInterface.getStyleForCustomStyle(v[E]);n&&Ql.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}};
_.c.styleSubtree=function(v,E){Xl(this);E&&juX(v,E);if(v.shadowRoot)for(this.styleElement(v),v=v.shadowRoot.children||v.shadowRoot.childNodes,E=0;E<v.length;E++)this.styleSubtree(v[E]);else for(v=v.children||v.childNodes,E=0;E<v.length;E++)this.styleSubtree(v[E])};
_.c.styleElement=function(v){Xl(this);var E=v.localName,n;E?E.indexOf("-")>-1?n=E:n=v.getAttribute&&v.getAttribute("is")||"":n=v.is;E=ei1[n];if(!(E&&C9E(E)!==""||!E||mIs(E))){if(mIs(E)||E._applyShimValidatingVersion!==E._applyShimNextVersion)this.prepareTemplate(E,n),beL(E);if(v=v.shadowRoot)if(v=v.querySelector("style"))v.__cssRules=E._styleAst,v.textContent=srX(E._styleAst)}};
_.c.styleDocument=function(v){Xl(this);this.styleSubtree(document.body,v)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var eu=new Sbz,UDw=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(v,E){eu.flushCustomStyles();eu.prepareTemplate(v,E)},
prepareTemplateStyles:function(v,E,n){window.ShadyCSS.prepareTemplate(v,E,n)},
prepareTemplateDom:function(){},
styleSubtree:function(v,E){eu.flushCustomStyles();eu.styleSubtree(v,E)},
styleElement:function(v){eu.flushCustomStyles();eu.styleElement(v)},
styleDocument:function(v){eu.flushCustomStyles();eu.styleDocument(v)},
getComputedStyleValue:function(v,E){return O7A(v,E)},
flushCustomStyles:function(){eu.flushCustomStyles()},
nativeCss:lR$,nativeShadow:TQy,cssBuild:Y0,disableRuntime:OH1};UDw&&(window.ShadyCSS.CustomStyleInterface=UDw)}window.ShadyCSS.ApplyShim=Ql;var qbF;qbF=window.ShadyCSS;_.Fl=j2(function(v){v=zH6(WN(v));var E=IIS?v:bCi(v),n=lG1(E),f={x:"pan-x",y:"pan-y",none:"none",all:"auto"};v=function(){return E.call(this)||this};
_.S(v,E);v.prototype.created=function(){};
v.prototype.__attributeReaction=function(x,y,Q){(this.__dataAttributes&&this.__dataAttributes[x]||x==="disable-upgrade")&&this.attributeChangedCallback(x,y,Q,null)};
v.prototype.setAttribute=function(x,y){if(fIl&&!this._legacyForceObservedAttributes){var Q=this.getAttribute(x);E.prototype.setAttribute.call(this,x,y);this.__attributeReaction(x,Q,String(y))}else E.prototype.setAttribute.call(this,x,y)};
v.prototype.removeAttribute=function(x){if(fIl&&!this._legacyForceObservedAttributes){var y=this.getAttribute(x);E.prototype.removeAttribute.call(this,x);this.__attributeReaction(x,y,null)}else E.prototype.removeAttribute.call(this,x)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(x){return E.prototype._canApplyPropertyDefault.call(this,x)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(x))};
v.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(E.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
v.prototype.attached=function(){};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(E.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
v.prototype.detached=function(){};
v.prototype.attributeChangedCallback=function(x,y,Q,e){y!==Q&&(x=="disable-upgrade"?this.__isUpgradeDisabled&&Q==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.vZ)(this).isConnected&&this.connectedCallback()):(E.prototype.attributeChangedCallback.call(this,x,y,Q,e),this.attributeChanged(x,y,Q)))};
v.prototype.attributeChanged=function(){};
v.prototype._initializeProperties=function(){if(r6&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var x=Object.getPrototypeOf(this);x.hasOwnProperty("__hasRegisterFinished")||(this._registered(),x.__hasRegisterFinished=!0);E.prototype._initializeProperties.call(this);this.root=this;this.created();fIl&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
v.prototype._takeAttributes=function(){for(var x=this.attributes,y=0,Q=x.length;y<Q;y++){var e=x[y];this.__attributeReaction(e.name,null,e.value)}};
v.prototype._registered=function(){};
v.prototype.ready=function(){this._ensureAttributes();E.prototype.ready.call(this)};
v.prototype._ensureAttributes=function(){};
v.prototype._applyListeners=function(){};
v.prototype.serialize=function(x){return this._serializeValue(x)};
v.prototype.deserialize=function(x,y){return this._deserializeValue(x,y)};
v.prototype.reflectPropertyToAttribute=function(x,y,Q){this._propertyToAttribute(x,y,Q)};
v.prototype.serializeValueToAttribute=function(x,y,Q){this._valueToNodeAttribute(Q||this,x,y)};
v.prototype.extend=function(x,y){if(!x||!y)return x||y;for(var Q=Object.getOwnPropertyNames(y),e=0,F=void 0;e<Q.length&&(F=Q[e]);e++){var b=Object.getOwnPropertyDescriptor(y,F);b&&Object.defineProperty(x,F,b)}return x};
v.prototype.mixin=function(x,y){for(var Q in y)x[Q]=y[Q];return x};
v.prototype.chainObject=function(x,y){x&&y&&x!==y&&(x.__proto__=y);return x};
v.prototype.instanceTemplate=function(x){x=this.constructor._contentForTemplate(x);return document.importNode(x,!0)};
v.prototype.fire=function(x,y,Q){Q=Q||{};y=y===null||y===void 0?{}:y;x=new Event(x,{bubbles:Q.bubbles===void 0?!0:Q.bubbles,cancelable:!!Q.cancelable,composed:Q.composed===void 0?!0:Q.composed});x.detail=y;(0,_.vZ)(Q.node||this).dispatchEvent(x);return x};
v.prototype.listen=function(x,y,Q){x=x||this;var e=this.__boundListeners||(this.__boundListeners=new WeakMap),F=e.get(x);F||(F={},e.set(x,F));e=y+Q;F[e]||(F[e]=this._addMethodEventListenerToNode(x,y,Q,this))};
v.prototype.unlisten=function(x,y,Q){x=x||this;var e=this.__boundListeners&&this.__boundListeners.get(x);Q=y+Q;var F=e&&e[Q];F&&(this._removeEventListenerFromNode(x,y,F),e[Q]=null)};
v.prototype.setScrollDirection=function(x,y){_.b$(y||this,f[x]||"auto")};
v.prototype.$$=function(x){return this.root.querySelector(x)};
v.prototype.distributeContent=function(){var x=_.pG(this);window.ShadyDOM&&x.shadowRoot&&ShadyDOM.flush()};
v.prototype.getEffectiveChildNodes=function(){return _.pG(this).getEffectiveChildNodes()};
v.prototype.queryDistributedElements=function(x){return _.pG(this).queryDistributedElements(x)};
v.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
v.prototype.getEffectiveTextContent=function(){for(var x=this.getEffectiveChildNodes(),y=[],Q=0,e;e=x[Q];Q++)e.nodeType!==Node.COMMENT_NODE&&y.push(e.textContent);return y.join("")};
v.prototype.queryEffectiveChildren=function(x){return(x=this.queryDistributedElements(x))&&x[0]};
v.prototype.queryAllEffectiveChildren=function(x){return this.queryDistributedElements(x)};
v.prototype.getContentChildNodes=function(x){return(x=this.root.querySelector(x||"slot"))?_.pG(x).getDistributedNodes():[]};
v.prototype.getContentChildren=function(x){return this.getContentChildNodes(x).filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
v.prototype.isLightDescendant=function(x){return this!==x&&(0,_.vZ)(this).contains(x)&&(0,_.vZ)(this).getRootNode()===(0,_.vZ)(x).getRootNode()};
v.prototype.isLocalDescendant=function(x){return this.root===(0,_.vZ)(x).getRootNode()};
v.prototype.scopeSubtree=function(x,y){return RUG(x,y===void 0?!1:y)};
v.prototype.getComputedStyleValue=function(x){return qbF.getComputedStyleValue(this,x)};
v.prototype.debounce=function(x,y,Q){this._debouncers=this._debouncers||{};return this._debouncers[x]=_.tS(this._debouncers[x],Q>0?_.uF.after(Q):l$,y.bind(this))};
v.prototype.isDebouncerActive=function(x){this._debouncers=this._debouncers||{};x=this._debouncers[x];return!(!x||!x.isActive())};
v.prototype.flushDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.flush()};
v.prototype.cancelDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.cancel()};
v.prototype.async=function(x,y){return y>0?_.uF.run(x.bind(this),y):~l$.run(x.bind(this))};
v.prototype.cancelAsync=function(x){x<0?l$.cancel(~x):_.uF.cancel(x)};
v.prototype.create=function(x,y){x=document.createElement(x);if(y)if(x.setProperties)x.setProperties(y);else for(var Q in y)x[Q]=y[Q];return x};
v.prototype.elementMatches=function(x,y){return cCg(y||this,x)};
v.prototype.toggleAttribute=function(x,y){var Q=this;arguments.length===3&&(Q=arguments[2]);arguments.length==1&&(y=!Q.hasAttribute(x));if(y)return(0,_.vZ)(Q).setAttribute(x,""),!0;(0,_.vZ)(Q).removeAttribute(x);return!1};
v.prototype.toggleClass=function(x,y,Q){Q=Q||this;arguments.length==1&&(y=!Q.classList.contains(x));y?Q.classList.add(x):Q.classList.remove(x)};
v.prototype.transform=function(x,y){y=y||this;y.style.webkitTransform=x;y.style.transform=x};
v.prototype.translate3d=function(x,y,Q,e){this.transform("translate3d("+x+","+y+","+Q+")",e||this)};
v.prototype.arrayDelete=function(x,y){if(Array.isArray(x)){if(y=x.indexOf(y),y>=0)return x.splice(y,1)}else if(y=Rg(this,x).indexOf(y),y>=0)return this.splice(x,y,1);return null};
v.prototype._logger=function(x,y){Array.isArray(y)&&y.length===1&&Array.isArray(y[0])&&(y=y[0]);switch(x){case "log":case "warn":case "error":console[x].apply(console,_.s8(y))}};
v.prototype._log=function(){this._logger("log",_.rV.apply(0,arguments))};
v.prototype._warn=function(){this._logger("warn",_.rV.apply(0,arguments))};
v.prototype._error=function(){this._logger("error",_.rV.apply(0,arguments))};
v.prototype._logf=function(x){return["[%s::%s]",this.is,x].concat(_.s8(_.rV.apply(1,arguments)))};
_.hK.Object.defineProperties(v.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var x=(0,_.vZ)(this).getRootNode();return x instanceof DocumentFragment?x.host:x}}});
_.hK.Object.defineProperties(v,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return fIl&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],ih$(this.prototype)),this.__observedAttributes):n.call(this).concat("disable-upgrade")}}});
v.prototype.is="";return v});Polymer.FlattenedNodesObserver=otl;Polymer.DomApi=Xyo;Polymer.EventApi=cX;Polymer.dom=_.pG;Polymer.dom.matchesSelector=cCg;Polymer.dom.flush=_.o4;Polymer.dom.addDebouncer=_.BN;Polymer.DirMixin=bCi;Polymer.RenderStatus={beforeNextRender:_.TN$,afterNextRender:_.IS,flush:function(){for(;$o1.length||d6.length;)WHX($o1),WHX(d6);KV=!1}};Polymer.LegacyElementMixin=_.Fl;var JC1;JC1=EG._mutablePropertyChange;var KWo={properties:{mutableData:Boolean},_shouldPropertyChange:function(v,E,n){return JC1(this,v,E,n,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(v,E,n){return JC1(this,v,E,n,!0)}};
Polymer.OptionalMutableDataBehavior=KWo;var MUF={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Kn1={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Jfs=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Kn1),dDS=(0,_.Fl)(HTMLElement),rw$=function(v,E){v||console.warn("Polymer.Class requires `info` argument");E=E?E(dDS):dDS;E=dIE(v,E,v.behaviors);E.is=E.prototype.is=
v.is;return E};Polymer.Class=rw$;Polymer.mixinBehaviors=function(v,E){return dIE({},(0,_.Fl)(E),v)};
Polymer.GenerateClassFromInfo=dIE;_.Ee=function(v){var E=typeof v==="function"?v:_.Ee.Class(v);v._legacyForceObservedAttributes&&(E.prototype._legacyForceObservedAttributes=v._legacyForceObservedAttributes);customElements.define(E.is,E);return E};
_.Ee.Class=rw$;Polymer._polymerFn=_.Ee;var IG1=window.onLegacyPolymerFunctionDefinedCallback;IG1&&IG1();var aK9={templatize:function(v,E){this._templatizerTemplate=v;this.ctor=Zm(v,this,{mutableData:!!E,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(v){return new this.ctor(v)},
modelForElement:function(v){return NNQ(this._templatizerTemplate,v)}};Polymer.Templatizer=aK9;_.m4=(0,_.Fl)(HTMLElement).prototype;Polymer.Base=_.m4;var YyF=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.AK=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(_.AK,PolymerFakeBaseClass);var V2=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(V2,PolymerFakeBaseClass);var hiL=Symbol("Nd"),jrX=[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 Ybw=Ybw||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},hoS;(function(v){function E(L,xX,t){var QE=T.get(L);if(!QE){if(!t)return;QE=new V;T.set(L,QE)}L=QE.get(xX);if(!L){if(!t)return;L=new V;QE.set(xX,L)}return L}
function n(L,xX,t){if(f(L,xX,t))return!0;xX=a(xX);return xX!==null?n(L,xX,t):!1}
function f(L,xX,t){xX=E(xX,t,!1);return xX===void 0?!1:!!xX.has(L)}
function x(L,xX,t){if(f(L,xX,t))return y(L,xX,t);xX=a(xX);if(xX!==null)return x(L,xX,t)}
function y(L,xX,t){xX=E(xX,t,!1);if(xX!==void 0)return xX.get(L)}
function Q(L,xX){var t=e(L,xX);L=a(L);if(L===null)return t;var QE=Q(L,xX);if(QE.length<=0)return t;if(t.length<=0)return QE;xX=new O;L=[];t=_.p(t);for(var MF=t.next();!MF.done;MF=t.next())MF=MF.value,xX.has(MF)||(xX.add(MF),L.push(MF));t=_.p(QE);for(QE=t.next();!QE.done;QE=t.next())QE=QE.value,xX.has(QE)||(xX.add(QE),L.push(QE));return L}
function e(L,xX){L=E(L,xX,!1);var t=[];L&&L.forEach(function(QE,MF){return t.push(MF)});
return t}
function F(L){return L===void 0}
function b(L){return typeof L==="object"?L!==null:typeof L==="function"}
function l(L){return typeof L==="function"}
function r(L){return typeof L==="symbol"?L:String(L)}
function a(L){var xX=Object.getPrototypeOf(L);if(typeof L!=="function"||L===Y||xX!==Y)return xX;var t=Object.getPrototypeOf(L.prototype);if(t==null||t===Object.prototype)return xX;t=t.constructor;return typeof t!=="function"||t===L?xX:t}
function M(){function L(){this._keys=[];this._values=[];this._cache=xX}
var xX={};L.prototype={get size(){return this._keys.length},has:function(t){return t===this._cache?!0:this._find(t)>=0?(this._cache=t,!0):!1},
get:function(t){var QE=this._find(t);if(QE>=0)return this._cache=t,this._values[QE]},
set:function(t,QE){this.delete(t);this._keys.push(t);this._values.push(QE);this._cache=t;return this},
delete:function(t){t=this._find(t);return t>=0?(this._keys.splice(t,1),this._values.splice(t,1),this._cache=xX,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=xX},
forEach:function(t){for(var QE=this.size,MF=0;MF<QE;++MF){var K1=this._keys[MF],JG=this._values[MF];this._cache=K1;t.call(this,JG,K1,this)}},
_find:function(t){for(var QE=this._keys,MF=QE.length,K1=0;K1<MF;++K1)if(QE[K1]===t)return K1;return-1}};
return L}
function U(){function L(){this._map=new V}
L.prototype={get size(){return this._map.length},has:function(xX){return this._map.has(xX)},
add:function(xX){this._map.set(xX,xX);return this},
delete:function(xX){return this._map.delete(xX)},
clear:function(){this._map.clear()},
forEach:function(xX,t){this._map.forEach(xX,t)}};
return L}
function d(){function L(){this._key=t()}
function xX(HI,uE){for(var WI=0;WI<uE;++WI)HI[WI]=Math.random()*255|0}
function t(){do{if(MF)var HI=MF.randomBytes(16);else typeof Uint8Array==="function"?(HI=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(HI):xX(HI,16)):(HI=Array(16),xX(HI,16));HI[6]=HI[6]&79|64;HI[8]=HI[8]&191|128;for(var uE="",WI=0;WI<16;++WI){var bX=HI[WI];if(WI===4||WI===6||WI===8)uE+="-";bX<16&&(uE+="0");uE+=bX.toString(16).toLowerCase()}HI="@@WeakMap@@"+uE}while(K1.call(JG,HI));JG[HI]=!0;return HI}
function QE(HI,uE){if(!K1.call(HI,$X)){if(!uE)return;Object.defineProperty(HI,$X,{value:Object.create(null)})}return HI[$X]}
var MF=typeof global!=="undefined"&&typeof Ybw==="object"&&typeof require==="function"&&require("crypto"),K1=Object.prototype.hasOwnProperty,JG={},$X=t();L.prototype={has:function(HI){return(HI=QE(HI,!1))?this._key in HI:!1},
get:function(HI){if(HI=QE(HI,!1))return HI[this._key]},
set:function(HI,uE){QE(HI,!0)[this._key]=uE;return this},
delete:function(HI){return(HI=QE(HI,!1))&&this._key in HI?delete HI[this._key]:!1},
clear:function(){this._key=t()}};
return L}
var Y=Object.getPrototypeOf(Function),V=typeof Map==="function"?Map:M(),O=typeof Set==="function"?Set:U(),T=new (typeof WeakMap==="function"?WeakMap:d());v.decorate=function(L,xX,t,QE){if(F(QE)){if(F(t)){if(!Array.isArray(L))throw new TypeError;if(!l(xX))throw new TypeError;for(t=L.length-1;t>=0;--t)if(QE=(0,L[t])(xX),!F(QE)){if(!l(QE))throw new TypeError;xX=QE}return xX}if(!Array.isArray(L))throw new TypeError;if(!b(xX))throw new TypeError;t=r(t);for(QE=L.length-1;QE>=0;--QE)(0,L[QE])(xX,t)}else{if(Array.isArray(L))if(b(xX)){if(F(t))throw new TypeError;
if(!b(QE))throw new TypeError;}else throw new TypeError;else throw new TypeError;t=r(t);for(var MF=L.length-1;MF>=0;--MF){var K1=(0,L[MF])(xX,t,QE);if(!F(K1)){if(!b(K1))throw new TypeError;QE=K1}}return QE}};
v.metadata=function(L,xX){return function(t,QE){if(F(QE)){if(!l(t))throw new TypeError;E(t,void 0,!0).set(L,xX)}else{if(!b(t))throw new TypeError;QE=r(QE);E(t,QE,!0).set(L,xX)}}};
v.defineMetadata=function(L,xX){var t;if(b(xX))F(t)||(t=r(t));else throw new TypeError;E(xX,t,!0).set("parameters",L)};
v.hasMetadata=function(L,xX,t){if(b(xX))F(t)||(t=r(t));else throw new TypeError;return n(L,xX,t)};
v.hasOwnMetadata=function(L,xX,t){if(b(xX))F(t)||(t=r(t));else throw new TypeError;return f(L,xX,t)};
v.getMetadata=function(L,xX,t){if(b(xX))F(t)||(t=r(t));else throw new TypeError;return x(L,xX,t)};
v.getOwnMetadata=function(L,xX,t){if(b(xX))F(t)||(t=r(t));else throw new TypeError;return y(L,xX,t)};
v.getMetadataKeys=function(L,xX){if(b(L))F(xX)||(xX=r(xX));else throw new TypeError;return Q(L,xX)};
v.getOwnMetadataKeys=function(L,xX){if(b(L))F(xX)||(xX=r(xX));else throw new TypeError;return e(L,xX)};
v.deleteMetadata=function(L,xX,t){if(b(xX))F(t)||(t=r(t));else throw new TypeError;var QE=E(xX,t,!1);if(!F(QE)){if(!QE.delete(L))return!1;if(QE.size>0)return!0;L=T.get(xX);L.delete(t);if(L.size>0)return!0;T.delete(xX);return!0}};
(function(L){if(typeof L.Reflect!=="undefined"){if(L.Reflect!==v)for(var xX in v)L.Reflect[xX]=v[xX]}else L.Reflect=v})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(hoS||(hoS={}));var Gv9=self;var ACo=[0,_.gO,_.uN,_.gO];var VNU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(VNU,_.Vj);var DDU=_.ir(VNU,[0,_.uiE,_.Oa,ACo,_.uN,_.W2]);_.tf(_.Dm,_.QK);_.c=_.Dm.prototype;_.c.start=function(){this.stop();this.usingListeners_=!1;var v=HCw(this),E=gtP(this);v&&!E&&this.JSC$9111_win_.mozRequestAnimationFrame?(this.JSC$9111_id_=_.v8(this.JSC$9111_win_,"MozBeforePaint",this.callback_),this.JSC$9111_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9111_id_=v&&E?v.call(this.JSC$9111_win_,this.callback_):this.JSC$9111_win_.setTimeout($iX(this.callback_),20)};
_.c.stop=function(){if(this.isActive()){var v=HCw(this),E=gtP(this);v&&!E&&this.JSC$9111_win_.mozRequestAnimationFrame?RU(this.JSC$9111_id_):v&&E?E.call(this.JSC$9111_win_,this.JSC$9111_id_):this.JSC$9111_win_.clearTimeout(this.JSC$9111_id_)}this.JSC$9111_id_=null};
_.c.fire=function(){this.stop();this.JSC$9113_doAction_()};
_.c.isActive=function(){return this.JSC$9111_id_!=null};
_.c.JSC$9113_doAction_=function(){this.usingListeners_&&this.JSC$9111_id_&&RU(this.JSC$9111_id_);this.JSC$9111_id_=null;this.JSC$9111_listener_.call(this.handler_,_.Rr())};
_.c.disposeInternal=function(){this.stop();_.Dm.superClass_.disposeInternal.call(this)};
var HCw=function(v){v=v.JSC$9111_win_;return v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame||null},gtP=function(v){v=v.JSC$9111_win_;
return v.cancelAnimationFrame||v.cancelRequestAnimationFrame||v.webkitCancelRequestAnimationFrame||v.mozCancelRequestAnimationFrame||v.oCancelRequestAnimationFrame||v.msCancelRequestAnimationFrame||null};_.ka=function(v,E,n){_.QK.call(this);this.JSC$9114_listener_=n!=null?v.bind(n):v;this.JSC$9114_interval_=E;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9114_timer_=null};
_.S(_.ka,_.QK);_.c=_.ka.prototype;_.c.fire=function(v){this.args_=arguments;this.JSC$9114_timer_||this.pauseCount_?this.shouldFire_=!0:NG1(this)};
_.c.stop=function(){this.JSC$9114_timer_&&(_.n1.clearTimeout(this.JSC$9114_timer_),this.JSC$9114_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.c.pause=function(){this.pauseCount_++};
_.c.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9114_timer_||(this.shouldFire_=!1,NG1(this))};
_.c.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);this.stop()};
var NG1=function(v){v.JSC$9114_timer_=rk(function(){v.JSC$9114_timer_=null;v.shouldFire_&&!v.pauseCount_&&(v.shouldFire_=!1,NG1(v))},v.JSC$9114_interval_);
var E=v.args_;v.args_=null;v.JSC$9114_listener_.apply(null,E)};var uql=function(v,E){this.childIterator_=v[_.n1.Symbol.iterator]();this.mapFn_=E};
uql.prototype[Symbol.iterator]=function(){return this};
uql.prototype.next=function(){var v=this.childIterator_.next();return{value:v.done?void 0:this.mapFn_.call(void 0,v.value),done:v.done}};
var jbw=function(v,E){return new uql(v,E)};var OC4={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 VWE=function(v){var E=keX(v);if(!E)throw Error("Rd`"+v);return E},keX=function(v){var E={};
v=String(v);var n=v.charAt(0)=="#"?v:"#"+v;if(WW1.test(n))return E.hex=dS1(n),E.type="hex",E;n=Nu$(v);return n.length?(E.hex=XLX(n[0],n[1],n[2]),E.type="rgb",E):OC4&&(v=OC4[v.toLowerCase()])?(E.hex=v,E.type="named",E):null},$Dz=/#(.)(.)(.)/,dS1=function(v){if(!WW1.test(v))throw Error("Td`"+v);
v.length==4&&(v=v.replace($Dz,"#$1$1$2$2$3$3"));return v.toLowerCase()},DGX=function(v){v=dS1(v);
v=parseInt(v.slice(1),16);return[v>>16,v>>8&255,v&255]},XLX=function(v,E,n){v=Number(v);
E=Number(E);n=Number(n);if(v!=(v&255)||E!=(E&255)||n!=(n&255))throw Error("Ud`"+v+"`"+E+"`"+n);E=v<<16|E<<8|n;return v<16?"#"+(16777216|E).toString(16).slice(1):"#"+E.toString(16)},WW1=/^#(?:[0-9a-f]{3}){1,2}$/i,LWw=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Nu$=function(v){var E=v.match(LWw);
if(E){v=Number(E[1]);var n=Number(E[2]);E=Number(E[3]);if(v>=0&&v<=255&&n>=0&&n<=255&&E>=0&&E<=255)return[v,n,E]}return[]};var Gew={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},wN=Gew;wN=Gew;var yi1,TG1,iC1;yi1=function(v,E){switch(E){case 1:return v%4!=0||v%100==0&&v%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
TG1=function(v,E,n,f,x){v=new Date(v,E,n);x=x||0;return v.valueOf()+(((f!==void 0?f:3)-x+7)%7-((v.getDay()+6)%7-x+7)%7)*864E5};
_.wg=function(v,E,n){typeof v==="number"?(this.date=iC1(v,E||0,n||1),zoo(this,n||1)):_.oF(v)?(this.date=iC1(v.getFullYear(),v.getMonth(),v.getDate()),zoo(this,v.getDate())):(this.date=new Date(_.Rr()),v=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),zoo(this,v))};
iC1=function(v,E,n){E=new Date(v,E,n);v>=0&&v<100&&E.setFullYear(E.getFullYear()-1900);return E};
_.c=_.wg.prototype;_.c.firstDayOfWeek_=wN.FIRSTDAYOFWEEK;_.c.firstWeekCutOffDay_=wN.FIRSTWEEKCUTOFFDAY;_.c.clone=function(){var v=new _.wg(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.c.getFullYear=function(){return this.date.getFullYear()};
_.c.getYear=function(){return this.getFullYear()};
_.c.getMonth=function(){return this.date.getMonth()};
_.c.getDate=function(){return this.date.getDate()};
_.c.getTime=function(){return this.date.getTime()};
_.c.getDay=function(){return this.date.getDay()};
_.c.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.c.getUTCMonth=function(){return this.date.getUTCMonth()};
_.c.getUTCDate=function(){return this.date.getUTCDate()};
_.c.getUTCDay=function(){return this.date.getDay()};
_.c.getUTCHours=function(){return this.date.getUTCHours()};
_.c.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.c.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.c.set=function(v){this.date=new Date(v.getFullYear(),v.getMonth(),v.getDate())};
_.c.setFullYear=function(v){this.date.setFullYear(v)};
_.c.setYear=function(v){this.setFullYear(v)};
_.c.setMonth=function(v){this.date.setMonth(v)};
_.c.setDate=function(v){this.date.setDate(v)};
_.c.setTime=function(v){this.date.setTime(v)};
_.c.setUTCFullYear=function(v){this.date.setUTCFullYear(v)};
_.c.setUTCMonth=function(v){this.date.setUTCMonth(v)};
_.c.setUTCDate=function(v){this.date.setUTCDate(v)};
_.c.add=function(v){if(v.years||v.months){var E=this.getMonth()+v.months+v.years*12,n=this.getYear()+Math.floor(E/12);E%=12;E<0&&(E+=12);var f=Math.min(yi1(n,E),this.getDate());this.setDate(1);this.setFullYear(n);this.setMonth(E);this.setDate(f)}v.days&&(n=this.getYear(),E=n>=0&&n<=99?-1900:0,v=new Date((new Date(n,this.getMonth(),this.getDate(),12)).getTime()+v.days*864E5),this.setDate(1),this.setFullYear(v.getFullYear()+E),this.setMonth(v.getMonth()),this.setDate(v.getDate()),zoo(this,v.getDate()))};
_.c.JSC$9127_toIsoString=function(v){var E=this.getFullYear(),n=E<0?"-":E>=1E4?"+":"";return[n+_.zj(Math.abs(E),n?6:4),_.zj(this.getMonth()+1,2),_.zj(this.getDate(),2)].join(v?"-":"")};
_.c.equals=function(v){return!(!v||this.getYear()!=v.getYear()||this.getMonth()!=v.getMonth()||this.getDate()!=v.getDate())};
_.c.toString=function(){return this.JSC$9127_toIsoString()};
var zoo=function(v,E){v.getDate()!=E&&v.date.setUTCHours(v.date.getUTCHours()+(v.getDate()<E?1:-1))};
_.wg.prototype.valueOf=function(){return this.date.valueOf()};var l3=function(v,E,n,f,x){this.reversed=!!E;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!n;v&&b3(this,v,f);this.depth=x!=void 0?x:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.tf(l3,R_);var b3=function(v,E,n,f){if(v.node=E)v.tagType=typeof n==="number"?n:v.node.nodeType!=1?0:v.reversed?-1:1;typeof f==="number"&&(v.depth=f)};
_.c=l3.prototype;_.c.JSC$9142_copyFrom=function(v){this.node=v.node;this.tagType=v.tagType;this.depth=v.depth;this.reversed=v.reversed;this.constrained=v.constrained};
_.c.clone=function(){return new l3(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.c.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return tt;var v=this.node;var E=this.reversed?-1:1;if(this.tagType==E){var n=this.reversed?v.lastChild:v.firstChild;n?b3(this,n):b3(this,v,E*-1)}else(n=this.reversed?v.previousSibling:v.nextSibling)?b3(this,n):b3(this,v.parentNode,E*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(v=this.node)?Bl(v):tt};
_.c.equals=function(v){return v.node==this.node&&(!this.node||v.tagType==this.tagType)};
_.c.splice=function(v){var E=this.node,n=this.reversed?1:-1;this.tagType==n&&(this.tagType=n*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;l3.prototype.next.call(this);this.reversed=!this.reversed;n=_.E1(arguments[0])?arguments[0]:arguments;for(var f=n.length-1;f>=0;f--)_.Sr(n[f],E);_.fT(E)};var Rog=function(){},sG=function(v){for(var E=[],n=v.getTextRangeCount(),f=0;f<n;f++)E.push(v.getTextRange(f));
return E};
Rog.prototype.isReversed=function(){return!1};
Rog.prototype.getWindow=function(){return ai(_.ZJ(this.JSC$9144_getStartNode()))};
var tNP=function(v,E){l3.call(this,v,E,!0)};
_.tf(tNP,l3);var rg=function(v,E,n,f,x){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!x;if(v){this.startNode_=v;this.startOffset_=E;this.endNode_=n;this.endOffset_=f;if(v.nodeType==1&&v.tagName!="BR")if(v=v.childNodes,E=v[E])this.startNode_=E,this.startOffset_=0;else{v.length&&(this.startNode_=_.DA(v));var y=!0}n.nodeType==1&&((this.endNode_=n.childNodes[f])?this.endOffset_=0:this.endNode_=n)}l3.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);y&&this.next()};
_.tf(rg,tNP);_.c=rg.prototype;_.c.JSC$9150_getStartNode=function(){return this.startNode_};
_.c.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)};
_.c.next=function(){return this.isLast()?tt:rg.superClass_.next.call(this)};
_.c.JSC$9142_copyFrom=function(v){this.startNode_=v.startNode_;this.endNode_=v.endNode_;this.startOffset_=v.startOffset_;this.endOffset_=v.endOffset_;this.isReversed_=v.isReversed_;rg.superClass_.JSC$9142_copyFrom.call(this,v)};
_.c.clone=function(){var v=new rg(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);v.JSC$9142_copyFrom(this);return v};var BG4=function(){};
BG4.prototype.__iterator__=function(){return new rg(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var PX=function(v){this.range_=v};
_.tf(PX,BG4);var vy4=function(v){var E=_.ZJ(v).createRange();if(v.nodeType==3)E.setStart(v,0),E.setEnd(v,v.length);else if(Zb(v)||v.nodeType==3){for(var n,f=v;(n=f.firstChild)&&(Zb(n)||n.nodeType==3);)f=n;E.setStart(f,0);for(f=v;(n=f.lastChild)&&(Zb(n)||n.nodeType==3);)f=n;E.setEnd(f,f.nodeType==1?f.childNodes.length:f.length)}else n=v.parentNode,v=Array.prototype.indexOf.call(n.childNodes,v),E.setStart(n,v),E.setEnd(n,v+1);return E},Eyw=function(v,E,n,f){var x=_.ZJ(v).createRange();
x.setStart(v,E);x.setEnd(n,f);return x};
_.c=PX.prototype;_.c.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.c.getContainer=function(){return this.range_.commonAncestorContainer};
_.c.compareBrowserRangeEndpoints=function(v,E,n){return this.range_.compareBoundaryPoints(n==1?E==1?_.n1.Range.START_TO_START:_.n1.Range.START_TO_END:E==1?_.n1.Range.END_TO_START:_.n1.Range.END_TO_END,v)};
_.c.isCollapsed=function(){return this.range_.collapsed};
_.c.select=function(v){this.selectInternal(ai(_.ZJ(this.range_.startContainer)).getSelection(),v)};
_.c.selectInternal=function(v){v.removeAllRanges();v.addRange(this.range_)};
_.c.insertNode=function(v,E){var n=this.range_.cloneRange();n.collapse(E);n.insertNode(v);n.detach();return v};
_.c.collapse=function(v){this.range_.collapse(v)};_.tf(HZ,PX);HZ.prototype.selectInternal=function(v,E){!E||this.isCollapsed()?HZ.superClass_.selectInternal.call(this,v,E):(v.collapse(this.range_.endContainer,this.range_.endOffset),v.extend(this.range_.startContainer,this.range_.startOffset))};_.tf(g6,PX);g6.prototype.compareBrowserRangeEndpoints=function(v,E,n){return g6.superClass_.compareBrowserRangeEndpoints.call(this,v,E,n)};
g6.prototype.selectInternal=function(v,E){E?v.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):v.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ny1=function(v){return _.f9?new g6(v):_.oG?new HZ(v):new PX(v)};var a4=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},oy1;
_.tf(a4,Rog);oy1=function(v,E){var n=new a4;n.browserRangeWrapper_=v;n.isReversed_=!!E;return n};
_.f_X=function(v){v=_.f9?new g6(vy4(v)):_.oG?new HZ(vy4(v)):new PX(vy4(v));return oy1(v)};
_.Ze=function(v,E,n,f){var x=new a4;x.isReversed_=xQ1(v,E,n,f);if(_.YH(v)&&!Zb(v)){var y=v.parentNode;E=Array.prototype.indexOf.call(y.childNodes,v);v=y}_.YH(n)&&!Zb(n)&&(y=n.parentNode,f=Array.prototype.indexOf.call(y.childNodes,n),n=y);x.isReversed_?(x.startNode_=n,x.startOffset_=f,x.endNode_=v,x.endOffset_=E):(x.startNode_=v,x.startOffset_=E,x.endNode_=n,x.endOffset_=f);return x};
_.c=a4.prototype;_.c.clone=function(){var v=new a4;v.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();v.startNode_=this.startNode_;v.startOffset_=this.startOffset_;v.endNode_=this.endNode_;v.endOffset_=this.endOffset_;v.isReversed_=this.isReversed_;return v};
_.c.JSC$9144_getType=function(){return"text"};
_.c.getBrowserRangeObject=function(){return Cr(this).range_};
_.c.getTextRangeCount=function(){return 1};
_.c.getTextRange=function(){return this};
var Cr=function(v){var E;if(!(E=v.browserRangeWrapper_)){E=v.JSC$9144_getStartNode();var n=v.JSC$9144_getStartOffset(),f=v.JSC$9144_getEndNode(),x=v.JSC$9144_getEndOffset();E=_.f9?new g6(Eyw(E,n,f,x)):_.oG?new HZ(Eyw(E,n,f,x)):new PX(Eyw(E,n,f,x));E=v.browserRangeWrapper_=E}return E};
_.c=a4.prototype;_.c.getContainer=function(){return Cr(this).getContainer()};
_.c.JSC$9144_getStartNode=function(){return this.startNode_||(this.startNode_=Cr(this).range_.startContainer)};
_.c.JSC$9144_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Cr(this).range_.startOffset};
_.c.JSC$9144_getEndNode=function(){return this.endNode_||(this.endNode_=Cr(this).range_.endContainer)};
_.c.JSC$9144_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Cr(this).range_.endOffset};
_.c.isReversed=function(){return this.isReversed_};
_.c.JSC$9144_containsRange=function(v,E){if(v.JSC$9144_getType()=="text"){var n=Cr(this);v=Cr(v);E=E&&!v.isCollapsed();v=v.range_;n=E?n.compareBrowserRangeEndpoints(v,0,1)>=0&&n.compareBrowserRangeEndpoints(v,1,0)<=0:n.compareBrowserRangeEndpoints(v,0,0)>=0&&n.compareBrowserRangeEndpoints(v,1,1)<=0}else n=!1;return n};
_.c.isCollapsed=function(){return Cr(this).isCollapsed()};
_.c.JSC$9144_getText=function(){return Cr(this).range_.toString()};
_.c.__iterator__=function(){return new rg(this.JSC$9144_getStartNode(),this.JSC$9144_getStartOffset(),this.JSC$9144_getEndNode(),this.JSC$9144_getEndOffset())};
_.c.select=function(){Cr(this).select(this.isReversed_)};
_.c.JSC$9144_removeContents=function(){var v=Cr(this).range_;v.extractContents();if(v.startContainer.hasChildNodes()&&(v=v.startContainer.childNodes[v.startOffset])){var E=v.previousSibling;k31(v)==""&&_.fT(v);E&&k31(E)==""&&_.fT(E)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.c.insertNode=function(v,E){v=Cr(this).insertNode(v,E);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return v};
_.c.collapse=function(v){v=this.isReversed()?!v:v;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(v);v?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var cV1=function(){};
_.tf(cV1,Rog);cV1.prototype.JSC$9144_containsRange=function(v,E){var n=sG(this);v=sG(v);return(E?KZ:_.eGE)(v,function(f){return KZ(n,function(x){return x.JSC$9144_containsRange(f,E)})})};
cV1.prototype.insertNode=function(v,E){E?_.Mm(v,this.JSC$9144_getStartNode()):_.Sr(v,this.JSC$9144_getEndNode());return v};var yVl,ppg=y4().JSC$7222_document_.documentElement;yVl=ppg.requestFullscreen?"fullscreenchange":ppg.webkitRequestFullscreen?"webkitfullscreenchange":ppg.mozRequestFullScreen?"mozfullscreenchange":ppg.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var QkS=function(){var v=y4().JSC$7222_document_;return!!(v.webkitIsFullScreen||v.mozFullScreen||v.msFullscreenElement||v.fullscreenElement)};var M7=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.tf(M7,cV1);_.c=M7.prototype;_.c.clone=function(){var v=new M7;v.browserRanges_=_.tG(this.browserRanges_);return v};
_.c.JSC$9144_getType=function(){return"mutli"};
_.c.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.c.getTextRangeCount=function(){return this.browserRanges_.length};
_.c.getTextRange=function(v){this.ranges_[v]||(this.ranges_[v]=oy1(ny1(this.browserRanges_[v])));return this.ranges_[v]};
_.c.getContainer=function(){if(!this.container_){for(var v=[],E=this.getTextRangeCount(),n=0;n<E;n++)v.push(this.getTextRange(n).getContainer());this.container_=DPz.apply(null,v)}return this.container_};
var Su=function(v){v.sortedRanges_||(v.sortedRanges_=sG(v),v.sortedRanges_.sort(function(E,n){var f=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();var x=n.JSC$9144_getStartNode();n=n.JSC$9144_getStartOffset();return f==x&&E==n?0:xQ1(f,E,x,n)?1:-1}));
return v.sortedRanges_};
_.c=M7.prototype;_.c.JSC$9144_getStartNode=function(){return Su(this)[0].JSC$9144_getStartNode()};
_.c.JSC$9144_getStartOffset=function(){return Su(this)[0].JSC$9144_getStartOffset()};
_.c.JSC$9144_getEndNode=function(){return _.DA(Su(this)).JSC$9144_getEndNode()};
_.c.JSC$9144_getEndOffset=function(){return _.DA(Su(this)).JSC$9144_getEndOffset()};
_.c.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.c.JSC$9144_getText=function(){return sG(this).map(function(v){return v.JSC$9144_getText()}).join("")};
_.c.__iterator__=function(){return new UG(this)};
_.c.select=function(){var v=this.getWindow().getSelection();v.removeAllRanges();for(var E=this.getTextRangeCount(),n=0;n<E;n++)v.addRange(this.getTextRange(n).getBrowserRangeObject())};
_.c.JSC$9144_removeContents=function(){sG(this).forEach(function(v){v.JSC$9144_removeContents()})};
_.c.collapse=function(v){if(!this.isCollapsed()){var E=v?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;E.collapse(v);this.ranges_=[E];this.sortedRanges_=[E];this.browserRanges_=[E.getBrowserRangeObject()]}};
var UG=function(v){this.iterators_=null;this.currentIdx_=0;v&&(this.iterators_=Su(v).map(function(E){return _.qso(E)}));
l3.call(this,v?this.JSC$9150_getStartNode():null,!1,!0)};
_.tf(UG,tNP);_.c=UG.prototype;_.c.JSC$9150_getStartNode=function(){return this.iterators_[0].JSC$9150_getStartNode()};
_.c.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.c.next=function(){for(;this.currentIdx_<this.iterators_.length;){var v=this.iterators_[this.currentIdx_],E=v.next();if(E.done)this.currentIdx_++;else return b3(this,v.node,v.tagType,v.depth),E}return tt};
_.c.JSC$9142_copyFrom=function(v){this.iterators_=_.tG(v.iterators_);UG.superClass_.JSC$9142_copyFrom.call(this,v)};
_.c.clone=function(){var v=new UG(null);v.JSC$9142_copyFrom(this);return v};var Xp1,xQ1;_.Qe=function(){var v=window.getSelection();return v&&Xp1(v)};
Xp1=function(v){var E=!1;if(v.createRange)try{var n=v.createRange()}catch(x){return null}else if(v.rangeCount){if(v.rangeCount>1){n=new M7;E=v.rangeCount;for(var f=0;f<E;f++)n.browserRanges_.push(v.getRangeAt(f));return n}n=v.getRangeAt(0);E=xQ1(v.anchorNode,v.anchorOffset,v.focusNode,v.focusOffset)}else return null;return oy1(ny1(n),E)};
_.q7=function(v,E){return _.Ze(v,E,v,E)};
_.JT=function(v,E,n,f){return _.Ze(v,E,n,f)};
xQ1=function(v,E,n,f){if(v==n)return f<E;var x;if(v.nodeType==1&&E)if(x=v.childNodes[E])v=x,E=0;else if(_.ME(v,n))return!0;if(n.nodeType==1&&f)if(x=n.childNodes[f])n=x,f=0;else if(_.ME(n,v))return!1;return(VMX(v,n)||E-f)>0};var Kr=function(){_.mP.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.XV)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.XV)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.XV)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.XV)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.XV)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.XV)(this.dispatchProgressEvent_,this)};
_.tf(Kr,_.mP);Kr.prototype.abort=function(){try{this.reader_.abort()}catch(v){throw new YUP(v,"aborting read");}};
Kr.prototype.getError=function(){return this.reader_.error&&new YUP(this.reader_.error,"reading file")};
Kr.prototype.dispatchProgressEvent_=function(v){this.dispatchEvent(new hRP(v,this))};
Kr.prototype.disposeInternal=function(){Kr.superClass_.disposeInternal.call(this);delete this.reader_};
var FoX=function(v){var E=new Kr,n=eVo(E);E.reader_.readAsArrayBuffer(v);return n},mQg=function(v){var E=new Kr,n=eVo(E);
E.reader_.readAsDataURL(v);return n},eVo=function(v){var E=new HF;
v.listen("loadend",_.vR(function(n,f){var x=f.reader_.result,y=f.getError();x==null||y?n.errback(y):n.callback(x);f.dispose()},E,v));
return E};var dg=function(){_.mP.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9184_eventHandler_=new _.u$(this);this.JSC$9184_isInitialized_=!1};
_.tf(dg,_.mP);var wpz=new _.yu("d"),b26=new _.yu("beforedragstart"),l_U=new _.yu("dragstart"),sk1=new _.yu("beforedragmove"),rV1=new _.yu("dragmove"),Po1=new _.yu("beforedragend"),a_P=new _.yu("dragend"),Z21=new _.yu("e");dg.prototype.isDragging=function(){return!!this.JSC$9184_dragger_};
var Co6=function(v,E){E.dlgGrowthDirection_=0;E.dlgDragHoverClass_=void 0;E.dlgDragPermission=0;v.dragLists_.push(E)},Mk4=function(v,E){v.getHandleForDragItem_=E};
dg.prototype.init=function(){if(!this.JSC$9184_isInitialized_){for(var v=this.dragLists_.length,E=0;E<v;E++)for(var n=_.UP(this.dragLists_[E]),f=n.length,x=0;x<f;++x){var y=n[x],Q=this.getHandleForDragItem_(y),e=_.xw(Q);this.dragItemForHandle_[e]=y;this.dragItemHoverClasses_&&(this.JSC$9184_eventHandler_.listen(y,"mouseover",this.handleDragItemMouseover_),this.JSC$9184_eventHandler_.listen(y,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9184_eventHandler_.listen(Q,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9184_eventHandler_.listen(Q,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(y);this.JSC$9184_eventHandler_.listen(Q,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9184_isInitialized_=!0}};
dg.prototype.disposeInternal=function(){this.JSC$9184_eventHandler_.dispose();for(var v=this.dragLists_.length,E=0;E<v;E++){var n=this.dragLists_[E];n.dlgGrowthDirection_=void 0;n.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;SnP(this);dg.superClass_.disposeInternal.call(this)};
var UQi=function(v,E){for(var n=v.dragLists_.length,f=0;f<n;f++){var x=v.dragLists_[f];x.dlgBounds_=GYA(x)}n=v.dragItems_.length;for(f=0;f<n;f++)x=v.dragItems_[f],x!=E&&(x.dlgBounds_=GYA(x))};
_.c=dg.prototype;
_.c.handlePotentialDragStart_=function(v){var E=_.xw(v.currentTarget);E=this.dragItemForHandle_[E];if(E.parentElement.dlgDragPermission!=2){this.currDragItem_=E;a:{E=this.currDragItem_;for(var n=E.cloneNode(!0),f=xE("TEXTAREA",E),x=xE("TEXTAREA",n),y=0;y<f.length;y++)x[y].value=f[y].value;switch(E.tagName){case "TR":E=_.PM("TABLE",null,_.PM("TBODY",null,n));break a;case "TD":case "TH":E=_.PM("TABLE",null,_.PM("TBODY",null,_.PM("TR",null,n)));break a;case "TEXTAREA":n.value=E.value;default:E=n;break a}E=
void 0}this.draggerEl_=E;this.draggerElClasses_&&Vu(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ZJ(this.currDragItem_).body.appendChild(this.draggerEl_);n=_.M0(this.currDragItem_);E=this.draggerEl_;f=_.M0(E);if(n instanceof _.PV){var Q=n.y;n=n.x}Iy(E,E.offsetLeft+(n-f.x),E.offsetTop+(Number(Q)-f.y));this.JSC$9184_dragger_=new _.KL(this.draggerEl_);_.IuF(this.JSC$9184_dragger_,this.hysteresisDistance_);
_.v8(this.JSC$9184_dragger_,"start",this.handleDragStart_,!1,this);_.v8(this.JSC$9184_dragger_,"end",this.handleDragEnd_,!1,this);_.v8(this.JSC$9184_dragger_,"earlycancel",this.JSC$9186_cleanup_,!1,this);this.dispatchEvent(new I4(wpz,this,v,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_));this.JSC$9184_dragger_.startDrag(v)}};
_.c.handleDragStart_=function(v){if(this.dispatchEvent(new I4(b26,this,v.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Yx1(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Vu(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var E=i0S(this.draggerEl_);this.draggerEl_.halfWidth=E.width/2;this.draggerEl_.halfHeight=E.height/2;E=this.draggerEl_.getBoundingClientRect();
var n=v.clientY,f=YHi(this.JSC$9184_dragger_,v.clientX);if(f>E.right){var x=this.currDragItem_.getBoundingClientRect();this.JSC$9184_dragger_.deltaX=f-(f-x.left)/x.width*E.width}n=h5P(this.JSC$9184_dragger_,n);n>E.bottom&&(this.JSC$9184_dragger_.deltaY+=n-E.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";UQi(this,this.currDragItem_);this.currDragItem_.style.display="";_.v8(this.JSC$9184_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new I4(l_U,
this,v.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_))}else v.preventDefault(),this.JSC$9186_cleanup_()};
_.c.handleDragMove_=function(v){var E=_.M0(this.draggerEl_);E=new _.PV(E.x+this.draggerEl_.halfWidth,E.y+this.draggerEl_.halfHeight);a:{var n=null;if(this.currDragItem_.style.display!="none"){n=this.currDragItem_.parentNode;var f=GYA(n);if(qn6(E,f))break a}f=this.dragLists_.length;for(var x=0;x<f;x++){var y=this.dragLists_[x];if(y!=n&&qn6(E,y.dlgBounds_)){n=y;break a}}n=null}if(n){if(n==null)throw Error("Vd");f=0;x=!1;y=void 0;switch(n.dlgGrowthDirection_){case 0:f=E.y;var Q=JV1;var e=Koo;break;case 4:x=
!0;case 2:f=E.x;Q=dQU;e=Koo;break;case 5:x=!0;case 3:f=E.x,Q=I_1,e=Yn4}for(var F=null,b,l=_.UP(n),r=l.length,a=0;a<r;a++){var M=l[a];if(M!=this.currDragItem_){var U=Q(M.dlgBounds_);if(x){var d=hVF(M,E);y===void 0&&(y=d);e(f,U)&&(b==void 0||d<y||d==y&&(e(U,b)||U==b))&&(F=M,b=U);d<y&&(y=d)}else e(f,U)&&(b==void 0||e(U,b))&&(F=M,b=U)}}Q=F!==null&&hVF(F,E)>y?null:F}else Q=null;if(!this.dispatchEvent(new I4(sk1,this,v,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_,E,n,Q)))return!1;if(n&&n.dlgDragPermission!=
1)this.currDragItem_.parentNode==n&&_.Yx1(this.currDragItem_)==Q||n.insertBefore(this.currDragItem_,Q),this.currDragItem_.style.display="",n.dlgDragHoverClass_&&_.qd(n,n.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",e=this.dragLists_.length,b=0;b<e;b++)f=this.dragLists_[b],f.dlgDragHoverClass_&&_.Sg(f,f.dlgDragHoverClass_);n!=this.currHoverList_&&(this.currHoverList_=n,UQi(this,this.currDragItem_));this.dispatchEvent(new I4(rV1,this,v,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_,
E,n,Q));return!1};
_.c.JSC$9186_cleanup_=function(){SnP(this);this.JSC$9184_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var v=this.dragLists_.length,E=0;E<v;E++)this.dragLists_[E].dlgBounds_=null;v=this.dragItems_.length;for(E=0;E<v;E++)this.dragItems_[E].dlgBounds_=null};
_.c.handleDragEnd_=function(v){if(!this.dispatchEvent(new I4(Po1,this,v,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_)))return!1;SnP(this);this.dispatchEvent(new I4(a_P,this,v,this.currDragItem_,this.draggerEl_,this.JSC$9184_dragger_));this.JSC$9186_cleanup_();return!0};
var SnP=function(v){_.uU(v.JSC$9184_dragger_);var E=v.draggerEl_&&v.draggerEl_.parentElement;v.draggerEl_&&_.fT(v.draggerEl_);v.currDragItem_&&v.currDragItem_.style.display=="none"&&(v.origList_.insertBefore(v.currDragItem_,v.origNextItem_),v.currDragItem_.style.display="");v.currDragItemClasses_&&v.currDragItem_?YVg(v.currDragItem_,v.currDragItemClasses_||[]):v.currDragItem_&&(v.currDragItem_.style.visibility="");for(var n=v.dragLists_.length,f=0;f<n;f++){var x=v.dragLists_[f];x.dlgDragHoverClass_&&
_.Sg(x,x.dlgDragHoverClass_)}E&&v.dispatchEvent(new I4(Z21,v,null,v.currDragItem_,v.draggerEl_,v.JSC$9184_dragger_))};
_.c=dg.prototype;_.c.getHandleForDragItem_=function(v){return v};
_.c.handleDragItemMouseover_=function(v){Vu(v.currentTarget,this.dragItemHoverClasses_||[])};
_.c.handleDragItemMouseout_=function(v){YVg(v.currentTarget,this.dragItemHoverClasses_||[])};
_.c.handleDragItemHandleMouseover_=function(v){Vu(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.c.handleDragItemHandleMouseout_=function(v){YVg(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
var qn6=function(v,E){return v.x>E.left&&v.x<E.left+E.width&&v.y>E.top&&v.y<E.top+E.height},hVF=function(v,E){v=v.dlgBounds_;
return Math.abs(E.y-(v.top+(v.height-1)/2))},JV1=function(v){return v.top+v.height-1},dQU=function(v){return v.left+v.width-1},I_1=function(v){return v.left||0},Koo=function(v,E){return v<E},Yn4=function(v,E){return v>E},I4=function(v,E,n,f,x,y){_.py.call(this,v);
this.event=n;this.currDragItem=f;this.draggerEl=x;this.JSC$9188_dragger=y};
_.tf(I4,_.py);_.tf(j$,_.QK);var AVS=new _.PV(0,0);j$.prototype.JSC$9192_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
j$.prototype.JSC$9192_onMouseMove=function(v){var E=this.containerIsActuallyContent_?AVS:cV(y4(this.containerNode_)),n=this.horizontalScrolling_?this.calculateScrollDelta(v.clientX+E.x,this.scrollBounds_.left,this.scrollBounds_.width):0,f=this.calculateScrollDelta(v.clientY+E.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=n;this.scrollDelta_.y=f;!(n=!n&&!f)&&(n=this.constrainScroll_)&&(n=v.clientX+E.x,v=v.clientY+E.y,E=this.containerBounds_,n=!(E.left<=n&&E.left+E.width>=
n&&E.top<=v&&E.top+E.height>=v));n?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
j$.prototype.calculateScrollDelta=function(v,E,n){var f=0;v<E?f=-8:v>E+n&&(f=8);return f};
j$.prototype.disposeInternal=function(){j$.superClass_.disposeInternal.call(this);this.JSC$9190_eventHandler_.dispose();this.scrollTimer_.dispose()};var Vk1={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"}}},Yq=Vk1;Yq=Vk1;var hT={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 DQ4=function(){},MD=function(v){if(typeof v=="number"){var E=new DQ4;
E.standardOffset_=v;var n=v;if(n==0)n="Etc/GMT";else{var f=["Etc/GMT",n<0?"-":"+"];n=Math.abs(n);f.push(Math.floor(n/60)%100);n%=60;n!=0&&f.push(":",_.zj(n,2));n=f.join("")}E.timeZoneId_=n;n=v;n==0?n="UTC":(f=["UTC",n<0?"+":"-"],n=Math.abs(n),f.push(Math.floor(n/60)%100),n%=60,n!=0&&f.push(":",n),n=f.join(""));v=H21(v);E.tzNames_=[n,n];E.tzNamesExt_={STD_LONG_NAME_GMT:v,STD_GENERIC_LOCATION:v};E.transitions_=[];return E}E=new DQ4;E.timeZoneId_=v.id;E.standardOffset_=-v.std_offset;E.tzNames_=v.names;
E.tzNamesExt_=v.names_ext;E.transitions_=v.transitions;return E},H21=function(v){var E=["GMT"];
E.push(v<=0?"+":"-");v=Math.abs(v);E.push(_.zj(Math.floor(v/60)%100,2),":",_.zj(v%60,2));return E.join("")},gyz=function(v,E){E=Date.UTC(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate(),E.getUTCHours(),E.getUTCMinutes())/36E5;
for(var n=0;n<v.transitions_.length&&E>=v.transitions_[n];)n+=2;return n==0?0:v.transitions_[n-1]},Nn6=function(v,E){v=v.standardOffset_-gyz(v,E);
return v===-1440?0:v};var SN=function(v,E){this.patternParts_=[];this.JSC$9203_dateTimeSymbols_=E||wN;typeof v=="number"?uJ1(this,v):jk1(this,v)},O2l=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],AT=function(v){return v.getHours?v.getHours():0},jk1=function(v,E){for(s6X&&(E=E.replace(/\u200f/g,""));E;){for(var n=E,f=0;f<O2l.length;++f){var x=E.match(O2l[f]);
if(x){var y=x[0];E=E.substring(y.length);f==0&&(y=="''"?y="'":(y=y.substring(1,x[1]=="'"?y.length-1:y.length),y=y.replace(/''/g,"'")));v.patternParts_.push({text:y,type:f});break}}if(n===E)throw Error("Wd`"+E);}};
SN.prototype.format=function(v,E){if(!v)throw Error("Xd");var n=E?(v.getTimezoneOffset()-Nn6(E,v))*6E4:0,f=n?new Date(v.getTime()+n):v,x=f;E&&f.getTimezoneOffset()!=v.getTimezoneOffset()&&(f=new Date(f.getTime()+(f.getTimezoneOffset()-v.getTimezoneOffset())*6E4),x=new Date(v.getTime()+(n+(n>0?-864E5:864E5))));n=[];for(var y=0;y<this.patternParts_.length;++y){var Q=this.patternParts_[y].text;1==this.patternParts_[y].type?n.push(kw1(this,Q,v,f,x,E)):n.push(Q)}return n.join("")};
var uJ1=function(v,E){if(E<4)var n=v.JSC$9203_dateTimeSymbols_.DATEFORMATS[E];else if(E<8)n=v.JSC$9203_dateTimeSymbols_.TIMEFORMATS[E-4];else if(E<12)n=v.JSC$9203_dateTimeSymbols_.DATETIMEFORMATS[E-8],n=n.replace("{1}",v.JSC$9203_dateTimeSymbols_.DATEFORMATS[E-8]),n=n.replace("{0}",v.JSC$9203_dateTimeSymbols_.TIMEFORMATS[E-8]);else if(E===12)n=v.JSC$9203_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(E===13)n=v.JSC$9203_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{uJ1(v,10);return}jk1(v,n)},Vl=function(v,E){E=String(E);
v=v.JSC$9203_dateTimeSymbols_||wN;if(v.ZERODIGIT!==void 0&&!lDE){for(var n=[],f=0;f<E.length;f++){var x=E.charCodeAt(f);n.push(48<=x&&x<=57?String.fromCharCode(v.ZERODIGIT+x-48):E.charAt(f))}E=n.join("")}return E},lDE=!1,s6X=!1,$QX=function(v,E,n,f){n=n.getFullYear();
n<=0&&f&&(n=1-n);return Vl(v,Wo1(n,E))},Wo1=function(v,E){E==2&&(v%=100);
v<0&&E++;return _.zj(v,E)},De=function(v){if(!(v.getHours&&v.getSeconds&&v.getMinutes))throw Error("Yd");
},Log=function(v,E){De(E);
E=AT(E);return v.JSC$9203_dateTimeSymbols_.AMPMS[E>=12&&E<24?1:0]},kw1=function(v,E,n,f,x,y){var Q=E.length;
switch(E.charAt(0)){case "G":return n=f.getFullYear()>0?1:0,Q>=4?v.JSC$9203_dateTimeSymbols_.ERANAMES[n]:v.JSC$9203_dateTimeSymbols_.ERAS[n];case "y":return $QX(v,Q,f,!0);case "Y":return n=(new Date(TG1(f.getFullYear(),f.getMonth(),f.getDate(),v.JSC$9203_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$9203_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Q==2&&(n%=100),Vl(v,Wo1(n,Q));case "u":return $QX(v,Q,f,!1);case "M":a:switch(n=f.getMonth(),Q){case 5:Q=v.JSC$9203_dateTimeSymbols_.NARROWMONTHS[n];break a;
case 4:Q=v.JSC$9203_dateTimeSymbols_.MONTHS[n];break a;case 3:Q=v.JSC$9203_dateTimeSymbols_.SHORTMONTHS[n];break a;default:Q=Vl(v,_.zj(n+1,Q))}return Q;case "k":return De(x),Vl(v,_.zj(AT(x)||24,Q));case "S":return Vl(v,(x.getMilliseconds()/1E3).toFixed(Math.min(3,Q)).slice(2)+(Q>3?_.zj(0,Q-3):""));case "E":return n=f.getDay(),Q>=4?v.JSC$9203_dateTimeSymbols_.WEEKDAYS[n]:v.JSC$9203_dateTimeSymbols_.SHORTWEEKDAYS[n];case "a":return Log(v,x);case "b":return Log(v,x);case "B":return Log(v,x);case "h":return De(x),
Vl(v,_.zj(AT(x)%12||12,Q));case "K":return De(x),Vl(v,_.zj(AT(x)%12,Q));case "H":return De(x),Vl(v,_.zj(AT(x),Q));case "c":a:switch(n=f.getDay(),Q){case 5:Q=v.JSC$9203_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[n];break a;case 4:Q=v.JSC$9203_dateTimeSymbols_.STANDALONEWEEKDAYS[n];break a;case 3:Q=v.JSC$9203_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[n];break a;default:Q=Vl(v,_.zj(n,1))}return Q;case "L":a:switch(n=f.getMonth(),Q){case 5:Q=v.JSC$9203_dateTimeSymbols_.STANDALONENARROWMONTHS[n];break a;
case 4:Q=v.JSC$9203_dateTimeSymbols_.STANDALONEMONTHS[n];break a;case 3:Q=v.JSC$9203_dateTimeSymbols_.STANDALONESHORTMONTHS[n];break a;default:Q=Vl(v,_.zj(n+1,Q))}return Q;case "Q":return n=Math.floor(f.getMonth()/3),Q<4?v.JSC$9203_dateTimeSymbols_.SHORTQUARTERS[n]:v.JSC$9203_dateTimeSymbols_.QUARTERS[n];case "d":return Vl(v,_.zj(f.getDate(),Q));case "m":return De(x),Vl(v,_.zj(x.getMinutes?x.getMinutes():0,Q));case "s":return De(x),Vl(v,_.zj(x.getSeconds(),Q));case "v":return(y||MD(n.getTimezoneOffset())).timeZoneId_;
case "V":return v=y||MD(n.getTimezoneOffset()),Q<=2?v.timeZoneId_:gyz(v,n)>0?v.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?v.tzNamesExt_.STD_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return n=TG1(x.getFullYear(),x.getMonth(),x.getDate(),v.JSC$9203_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$9203_dateTimeSymbols_.FIRSTDAYOFWEEK),Vl(v,_.zj(Math.floor(Math.round((n-(new Date((new Date(n)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Q));case "z":return v=y||MD(n.getTimezoneOffset()),Q<4?v.tzNames_[gyz(v,n)>0?2:0]:v.tzNames_[gyz(v,n)>0?3:1];case "Z":return E=y||MD(n.getTimezoneOffset()),Q<4?(Q=-Nn6(E,n),v=[Q<0?"-":"+"],Q=Math.abs(Q),v.push(_.zj(Math.floor(Q/60)%100,2),_.zj(Q%60,2)),Q=v.join("")):Q=Vl(v,H21(Nn6(E,n))),Q;default:return""}};var Gwo=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Tni=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,hdA=function(v){this.patternParts_=[];this.JSC$9212_dateTimeSymbols_=wN;if(typeof v=="number"){v>11&&(v=10);if(v<4)var E=this.JSC$9212_dateTimeSymbols_.DATEFORMATS[v];else v<8?E=this.JSC$9212_dateTimeSymbols_.TIMEFORMATS[v-4]:(E=this.JSC$9212_dateTimeSymbols_.DATETIMEFORMATS[v-8],E=E.replace("{1}",this.JSC$9212_dateTimeSymbols_.DATEFORMATS[v-8]),E=E.replace("{0}",this.JSC$9212_dateTimeSymbols_.TIMEFORMATS[v-
8]));i21(this,E)}else i21(this,v)},i21=function(v,E){for(var n=!1,f="",x=0;x<E.length;x++){var y=E.charAt(x);
if(Gwo.test(y))for(f.length>0&&(v.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f=""),v.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});x<E.length-1&&E.charAt(x+1)==" ";)x++;else if(n)y=="'"?x+1<E.length&&E.charAt(x+1)=="'"?(f+="'",x++):n=!1:f+=y;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(y)>=0){f.length>0&&(v.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f="");for(var Q=E.charAt(x),e=x+1;e<E.length&&E.charAt(e)==Q;)e++;Q=e-x;Q<=0?e=!1:(e="MydhHmsSDkK".indexOf(y),
e=e>0||e==0&&Q<3);v.patternParts_.push({text:y,count:Q,abutStart:!1,numeric:e});x+=Q-1}else y=="'"?x+1<E.length&&E.charAt(x+1)=="'"?(f+="'",x++):n=!0:f+=y}f.length>0&&v.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1});E=!1;for(n=0;n<v.patternParts_.length;n++)v.patternParts_[n].numeric?!E&&n+1<v.patternParts_.length&&v.patternParts_[n+1].numeric&&(E=!0,v.patternParts_[n].abutStart=!0):E=!1};
hdA.prototype.parse=function(v,E,n){var f=!1,x=!1;n&&(f=n.predictive||!1,x=n.validate||!1);if(f)for(n=0;n<this.patternParts_.length;n++){var y=this.patternParts_[n];if(y.count>0&&("abBhHkKm".indexOf(y.text.charAt(0))<0||y.count>2||y.abutStart))throw Error("Zd`"+y.text.charAt(0));}y=new zVi;n=[0];y.dayPeriodIndex=-1;for(var Q=0;Q<this.patternParts_.length&&!(f&&n[0]>=v.length);Q++){if(this.patternParts_[Q].count==0){a:{var e=v;var F=n,b=this.patternParts_[Q],l=f;if(b.text.match(Gwo)!=null){if(b=F[0],
RVg(e,F),F[0]>b){e=!0;break a}}else{if(e.indexOf(b.text,F[0])==F[0]){F[0]+=b.text.length;e=!0;break a}if(l&&b.text.indexOf(e.substring(F[0]))==0){F[0]+=e.length-F[0];e=!0;break a}}e=!1}if(e)continue;return 0}if(this.patternParts_[Q].abutStart){a:{F=v;b=n;l=Q;var r=b[0],a=0;for(e=l;e<this.patternParts_.length;e++){var M=this.patternParts_[e],U=M.count;if(U===0)break;if(e==l&&(U-=a,a++,U==0)){e=0;break a}var d=e>l&&M.numeric,Y=b[0];if(!tkz(this,F,b,M,U,y,!1)||d&&b[0]-Y<U)e=l-1,b[0]=r}e-=l}if(e<=0)return 0;
Q+=e-1}else if(!tkz(this,v,n,this.patternParts_[Q],0,y,f))return 0}a:{v=x;if(E==null)throw Error("$d");y.era!=void 0&&y.year!=void 0&&y.era==0&&y.year>0&&(y.year=-(y.year-1));y.year!=void 0&&E.setFullYear(y.year);f=E.getDate();E.setDate(1);y.month!=void 0&&E.setMonth(y.month);y.day!=void 0?E.setDate(y.day):(x=yi1(E.getFullYear(),E.getMonth()),E.setDate(f>x?x:f));typeof E.setHours==="function"&&(y.hours==void 0&&(y.hours=E.getHours()),y.hours<12&&(y.ampm!=void 0&&y.ampm>0?y.hours+=12:y.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(y.dayPeriodName)||["night1","night2"].includes(y.dayPeriodName)&&y.hours>=6)&&(y.hours+=12)),E.setHours(y.hours));typeof E.setMinutes==="function"&&y.minutes!=void 0&&E.setMinutes(y.minutes);typeof E.setSeconds==="function"&&y.seconds!=void 0&&E.setSeconds(y.seconds);typeof E.setMilliseconds==="function"&&y.milliseconds!=void 0&&E.setMilliseconds(y.milliseconds);if(v&&(y.year&&y.year!=E.getFullYear()||y.month&&y.month!=
E.getMonth()||y.day&&y.day!=E.getDate()||y.hours&&y.hours>=24||y.minutes&&y.minutes>=60||y.seconds&&y.seconds>=60||y.milliseconds&&y.milliseconds>=1E3))E=!1;else{y.tzOffset!=void 0&&E.setTime(E.getTime()+(y.tzOffset-E.getTimezoneOffset())*60*1E3);y.ambiguousYear&&(v=new Date,v.setFullYear(v.getFullYear()-80),E.getTime()<v.getTime()&&E.setFullYear(v.getFullYear()+100));if(y.dayOfWeek!=void 0)if(y.day==void 0)y=(7+y.dayOfWeek-E.getDay())%7,y>3&&(y-=7),v=E.getMonth(),E.setDate(E.getDate()+y),E.getMonth()!=
v&&E.setDate(E.getDate()+(y>0?-7:7));else if(y.dayOfWeek!=E.getDay()){E=!1;break a}E=!0}}return E?n[0]:0};
var tkz=function(v,E,n,f,x,y,Q){RVg(E,n);if(f.numeric&&x>0&&n[0]+x>E.length)return!1;switch(f.text.charAt(0)){case "G":return HX(E,n,[v.JSC$9212_dateTimeSymbols_.ERAS],function(e){return y.era=e}),!0;
case "M":case "L":return Bnw(v,E,n,x,f,y);case "E":return HX(E,n,[v.JSC$9212_dateTimeSymbols_.WEEKDAYS,v.JSC$9212_dateTimeSymbols_.SHORTWEEKDAYS],function(e){return y.dayOfWeek=e});
case "B":case "b":return x=[],v=[[].concat(v.JSC$9212_dateTimeSymbols_.AMPMS)],x.push("isAm"),x.push("isPm"),E=HX(E,n,v,function(e){return y.dayPeriodIndex=e},Q),y.dayPeriodName=x[y.dayPeriodIndex],Q?E:!0;
case "a":return E=HX(E,n,[v.JSC$9212_dateTimeSymbols_.AMPMS],function(e){return y.ampm=e},Q),Q?E:!0;
case "y":return vi1(v,E,n,f,x,y);case "Q":return HX(E,n,[v.JSC$9212_dateTimeSymbols_.QUARTERS,v.JSC$9212_dateTimeSymbols_.SHORTQUARTERS],function(e){y.month=e*3;y.day=1});
case "d":return gg(v,E,n,f,x,function(e){y.day=e}),!0;
case "S":return EiU(v,E,n,x,y);case "h":case "K":case "H":case "k":return E=gg(v,E,n,f,x,function(e){y.hours=f.text.charAt(0)==="h"&&e===12?0:e},Q),Q?E:!0;
case "m":return E=gg(v,E,n,f,x,function(e){y.minutes=e},Q),Q?E:!0;
case "s":return gg(v,E,n,f,x,function(e){y.seconds=e}),!0;
case "z":case "Z":case "v":return nil(v,E,n,y);default:return!1}},vi1=function(v,E,n,f,x,y){var Q=n[0];
x=N7(v,E,n,x);x===null&&(x=N7(v,E,n,0,!0));if(x===null)return!1;x>=0&&n[0]-Q==2&&f.count==2?(v=x,E=(new Date).getFullYear()-80,n=E%100,y.ambiguousYear=v==n,v+=Math.floor(E/100)*100+(v<n?100:0),y.year=v):y.year=x;return!0},Bnw=function(v,E,n,f,x,y){return x.numeric&&gg(v,E,n,x,f,function(Q){y.month=Q-1})?!0:HX(E,n,[v.JSC$9212_dateTimeSymbols_.MONTHS,
v.JSC$9212_dateTimeSymbols_.STANDALONEMONTHS,v.JSC$9212_dateTimeSymbols_.SHORTMONTHS,v.JSC$9212_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Q){y.month=Q})},EiU=function(v,E,n,f,x){var y=n[0];
v=N7(v,E,n,f);if(v===null)return!1;n=n[0]-y;x.milliseconds=n<3?v*Math.pow(10,3-n):Math.round(v/Math.pow(10,n-3));return!0},nil=function(v,E,n,f){E.indexOf("GMT",n[0])==n[0]&&(n[0]+=3);
if(n[0]>=E.length)return f.tzOffset=0,!0;var x=n[0],y=N7(v,E,n,0,!0);if(y===null)return!1;if(n[0]<E.length&&E.charAt(n[0])==":"){var Q=y*60;n[0]++;y=N7(v,E,n,0);if(y===null)return!1;Q+=y}else Q=y,Q=Q<24&&n[0]-x<=3?Q*60:Q%100+Q/100*60;f.tzOffset=-Q;return!0},gg=function(v,E,n,f,x,y,Q){Q=Q||!1;
var e=n[0];v=N7(v,E,n,x);if(v===null)return!1;if(Q&&n[0]-e<f.count){if(n[0]<E.length)return!1;v*=Math.pow(10,f.count-(n[0]-e))}y(v);return!0},HX=function(v,E,n,f,x){x=x||!1;
for(var y,Q=0;Q<n.length;Q++){y=E;for(var e=n[Q],F=x,b=0,l=null,r=v.substring(y[0]).toLowerCase(),a=0;a<e.length;a++){var M=e[a].toLowerCase();if(F&&M.indexOf(r)==0){b=r.length;l=a;break}e[a].length>b&&r.indexOf(M)==0&&(b=e[a].length,l=a)}l!==null&&(y[0]+=b);y=l;if(y!==null)return f(y),!0}return!1},RVg=function(v,E){(v=v.substring(E[0]).match(Tni))&&(E[0]+=v[0].length)},N7=function(v,E,n,f,x){E=f>0?E.substring(0,n[0]+f):E;
x=x||!1;if(v.JSC$9212_dateTimeSymbols_.ZERODIGIT){f=[];for(var y=n[0];y<E.length;y++){var Q=E.charCodeAt(y)-v.JSC$9212_dateTimeSymbols_.ZERODIGIT;f.push(0<=Q&&Q<=9?String.fromCharCode(Q+48):E.charAt(y))}E=f.join("")}else E=E.substring(n[0]);v=E.match(new RegExp("^"+(x?"[+-]?":"")+"\\d+"));if(!v)return null;n[0]+=v[0].length;return parseInt(v[0],10)},zVi=function(){};
zVi.prototype.ambiguousYear=!1;_.oiX={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 fj1={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"},xui=fj1,cx4=fj1;cx4=xui=fj1;var pEF,u3,OG,qW9,ju,yx1;
_.ab=function(v,E,n,f){var x;if(x=E){a:if(E&&E.length===3){for(x=0;x<3;x++){var y=E[x];if(y<"A"||y>"Z"&&y<"a"||y>"z"){x=!1;break a}}x=!0}else x=!1;x=!x}if(x)throw new TypeError("ae");this.intlCurrencyCode_=E?E.toUpperCase():null;this.currencyStyle_=n||0;this.overrideNumberFormatSymbols_=f||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_=u3(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof v==="number")switch(v){case 1:ju(this,u3(this).DECIMAL_PATTERN);break;case 2:ju(this,u3(this).SCIENTIFIC_PATTERN);break;case 3:ju(this,u3(this).PERCENT_PATTERN);break;case 4:v=u3(this).CURRENCY_PATTERN;E=["0"];if(n=
hT[OG(this)]){n=n[0]&7;if(n>0)for(E.push("."),f=0;f<n;f++)E.push("0");v=v.replace(/0.00/g,E.join(""))}ju(this,v);break;case 5:yx1(this,1);break;case 6:yx1(this,2);break;default:throw Error("de");}else ju(this,v)};
pEF=!1;u3=function(v){return v.overrideNumberFormatSymbols_||(pEF?cx4:xui)};
OG=function(v){return v.intlCurrencyCode_||u3(v).DEF_CURRENCY_CODE};
qW9=function(v,E){if(E>308)throw Error("ce`"+E);v.maximumFractionDigits_=E;return v};
ju=function(v,E){var n=[0];v.positivePrefix_=QUU(v,E,n);for(var f=n[0],x=-1,y=0,Q=0,e=0,F=-1,b=E.length,l=!0;n[0]<b&&l;n[0]++)switch(E.charAt(n[0])){case "#":Q>0?e++:y++;F>=0&&x<0&&F++;break;case "0":if(e>0)throw Error("je`"+E);Q++;F>=0&&x<0&&F++;break;case ",":F>0&&v.groupingArray_.push(F);F=0;break;case ".":if(x>=0)throw Error("ke`"+E);x=y+Q+e;break;case "E":if(v.useExponentialNotation_)throw Error("le`"+E);v.useExponentialNotation_=!0;v.minExponentDigits_=0;n[0]+1<b&&E.charAt(n[0]+1)=="+"&&(n[0]++,
v.useSignForPositiveExponent_=!0);for(;n[0]+1<b&&E.charAt(n[0]+1)=="0";)n[0]++,v.minExponentDigits_++;if(y+Q<1||v.minExponentDigits_<1)throw Error("me`"+E);l=!1;break;default:n[0]--,l=!1}Q==0&&y>0&&x>=0&&(Q=x,Q==0&&Q++,e=y-Q,y=Q-1,Q=1);if(x<0&&e>0||x>=0&&(x<y||x>y+Q)||F==0)throw Error("ne`"+E);e=y+Q+e;v.maximumFractionDigits_=x>=0?e-x:0;x>=0&&(v.minimumFractionDigits_=y+Q-x,v.minimumFractionDigits_<0&&(v.minimumFractionDigits_=0));v.minimumIntegerDigits_=(x>=0?x:e)-y;v.useExponentialNotation_&&(v.maximumIntegerDigits_=
y+v.minimumIntegerDigits_,v.maximumFractionDigits_==0&&v.minimumIntegerDigits_==0&&(v.minimumIntegerDigits_=1));v.groupingArray_.push(Math.max(0,F));v.decimalSeparatorAlwaysShown_=x==0||x==e;f=n[0]-f;v.positiveSuffix_=QUU(v,E,n);n[0]<E.length&&E.charAt(n[0])==";"?(n[0]++,v.multiplier_!=1&&(v.negativePercentSignExpected_=!0),v.negativePrefix_=QUU(v,E,n),n[0]+=f,v.negativeSuffix_=QUU(v,E,n)):(v.negativePrefix_+=v.positivePrefix_,v.negativeSuffix_+=v.positiveSuffix_)};
yx1=function(v,E){v.compactStyle_=E;ju(v,u3(v).DECIMAL_PATTERN);v.minimumFractionDigits_=0;qW9(v,2);if(v.minimumFractionDigits_>0)throw Error("be");v.significantDigits_=2};
_.ab.prototype.parse=function(v,E){E=E||[0];if(this.compactStyle_!==0)throw Error("ee");v=v.replace(/ |\u202f/g,"\u00a0");var n=v.indexOf(this.positivePrefix_,E[0])==E[0],f=v.indexOf(this.negativePrefix_,E[0])==E[0];n&&f&&(this.positivePrefix_.length>this.negativePrefix_.length?f=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(n=!1));n?E[0]+=this.positivePrefix_.length:f&&(E[0]+=this.negativePrefix_.length);if(v.indexOf(u3(this).INFINITY,E[0])==E[0]){E[0]+=u3(this).INFINITY.length;var x=
Infinity}else{x=v;var y=!1,Q=!1,e=!1,F=-1,b=1,l=u3(this).DECIMAL_SEP,r=u3(this).GROUP_SEP,a=u3(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");r=r.replace(/\u202f/g,"\u00a0");for(var M="";E[0]<x.length;E[0]++){var U=x.charAt(E[0]),d=XES(this,U);if(d>=0&&d<=9)M+=d,e=!0;else if(U==l.charAt(0)){if(y||Q)break;M+=".";y=!0}else if(U==r.charAt(0)&&("\u00a0"!=r.charAt(0)||E[0]+1<x.length&&XES(this,x.charAt(E[0]+1))>=0)){if(y||Q)break}else if(U==a.charAt(0)){if(Q)break;M+="E";Q=!0;F=E[0]}else if(U==
"+"||U=="-"){if(e&&F!=E[0]-1)break;M+=U}else if(this.multiplier_==1&&U==u3(this).PERCENT.charAt(0)){if(b!=1)break;b=100;if(e){E[0]++;break}}else if(this.multiplier_==1&&U==u3(this).PERMILL.charAt(0)){if(b!=1)break;b=1E3;if(e){E[0]++;break}}else break}this.multiplier_!=1&&(b=this.multiplier_);x=parseFloat(M)/b}if(n){if(v.indexOf(this.positiveSuffix_,E[0])!=E[0])return NaN;E[0]+=this.positiveSuffix_.length}else if(f){if(v.indexOf(this.negativeSuffix_,E[0])!=E[0])return NaN;E[0]+=this.negativeSuffix_.length}return f?
-x:x};
_.ab.prototype.format=function(v){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(v))return u3(this).NAN;var E=[];var n=v;if(this.compactStyle_==0)n=kq;else{n=Math.abs(n);var f=eL1(this,n<=1?0:F$X(n)).divisorBase;n=eL1(this,f+F$X(muF(this,WX(n,-f)).intValue))}v=WX(v,-n.divisorBase);(f=v<0||v==0&&1/v<0)?n.negative_prefix?E.push(n.negative_prefix):(E.push(n.prefix),E.push(this.negativePrefix_)):(E.push(n.prefix),E.push(this.positivePrefix_));if(isFinite(v))if(v*=
f?-1:1,v*=this.multiplier_,this.useExponentialNotation_){var x=v;if(x==0)wE4(this,x,this.minimumIntegerDigits_,E),b5l(this,0,E);else{var y=Math.floor(Math.log(x)/Math.log(10)+2E-15);x=WX(x,-y);var Q=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Q=y%this.maximumIntegerDigits_,Q<0&&(Q=this.maximumIntegerDigits_+Q),x=WX(x,Q),y-=Q,Q=1):this.minimumIntegerDigits_<1?(y++,x=WX(x,-1)):(y-=this.minimumIntegerDigits_-1,x=WX(x,this.minimumIntegerDigits_-
1));wE4(this,x,Q,E);b5l(this,y,E)}}else wE4(this,v,this.minimumIntegerDigits_,E);else E.push(u3(this).INFINITY);f?n.negative_suffix?E.push(n.negative_suffix):(isFinite(v)&&E.push(n.suffix),E.push(this.negativeSuffix_)):(isFinite(v)&&E.push(n.suffix),E.push(this.positiveSuffix_));return E.join("")};
var muF=function(v,E){var n=WX(E,v.maximumFractionDigits_);v.significantDigits_>0&&(n=lj1(n,v.significantDigits_,v.maximumFractionDigits_));n=Math.round(n);if(isFinite(n)){var f=Math.floor(WX(n,-v.maximumFractionDigits_));n=Math.floor(n-WX(f,v.maximumFractionDigits_));if(n<0||n>=WX(1,v.maximumFractionDigits_))f=Math.round(E),n=0}else f=E,n=0;return{intValue:f,fracValue:n}},wE4=function(v,E,n,f){if(v.minimumFractionDigits_>v.maximumFractionDigits_)throw Error("ge");
f||(f=[]);E=muF(v,E);var x=E.intValue,y=E.fracValue,Q=v.minimumFractionDigits_>0||y>0||!1;E=v.minimumFractionDigits_;Q&&(E=v.minimumFractionDigits_);for(var e="",F=x;F>1E20;)e="0"+e,F=Math.round(WX(F,-1));e=F+e;var b=u3(v).DECIMAL_SEP;F=u3(v).ZERO_DIGIT.codePointAt(0);var l=e.length,r=0;if(x>0||n>0){for(x=l;x<n;x++)f.push(String.fromCodePoint(F));if(v.groupingArray_.length>=2)for(n=1;n<v.groupingArray_.length;n++)r+=v.groupingArray_[n];n=l-r;if(n>0){x=v.groupingArray_;r=l=0;for(var a,M=u3(v).GROUP_SEP,
U=e.length,d=0;d<U;d++)if(f.push(String.fromCodePoint(F+Number(e.charAt(d)))),U-d>1)if(a=x[r],d<n){var Y=n-d;(a===1||a>0&&Y%a===1)&&f.push(M)}else r<x.length&&(d===n?r+=1:a===d-n-l+1&&(f.push(M),l+=a,r+=1))}else{n=e;e=v.groupingArray_;x=u3(v).GROUP_SEP;a=n.length;M=[];for(l=e.length-1;l>=0&&a>0;l--){r=e[l];for(U=0;U<r&&a-U-1>=0;U++)M.push(String.fromCodePoint(F+Number(n.charAt(a-U-1))));a-=r;a>0&&M.push(x)}f.push.apply(f,M.reverse())}}else Q||f.push(String.fromCodePoint(F));(v.decimalSeparatorAlwaysShown_||
Q)&&f.push(b);y=String(y);Q=y.split("e+");Q.length==2&&(y=String(lj1(parseFloat(Q[0]),v.significantDigits_,1)),y=y.replace(".",""),y+=(0,_.wU4)("0",parseInt(Q[1],10)-y.length+1));v.maximumFractionDigits_+1>y.length&&(y="1"+(0,_.wU4)("0",v.maximumFractionDigits_-y.length)+y);for(v=y.length;y.charAt(v-1)=="0"&&v>E+1;)v--;for(E=1;E<v;E++)f.push(String.fromCodePoint(F+Number(y.charAt(E))))},b5l=function(v,E,n){n.push(u3(v).EXP_SYMBOL);
E<0?(E=-E,n.push(u3(v).MINUS_SIGN)):v.useSignForPositiveExponent_&&n.push(u3(v).PLUS_SIGN);E=""+E;for(var f=u3(v).ZERO_DIGIT,x=E.length;x<v.minExponentDigits_;x++)n.push(f);v=f.codePointAt(0)-sUg;for(f=0;f<E.length;f++)n.push(String.fromCodePoint(v+E.codePointAt(f)))},XES=function(v,E){E=E.codePointAt(0);
if(48<=E&&E<58)return E-48;v=u3(v).ZERO_DIGIT.codePointAt(0);return v<=E&&E<v+10?E-v:-1},sUg="0".codePointAt(0),QUU=function(v,E,n){for(var f="",x=!1,y=E.length;n[0]<y;n[0]++){var Q=E.charAt(n[0]);
if(Q=="'")n[0]+1<y&&E.charAt(n[0]+1)=="'"?(n[0]++,f+="'"):x=!x;else if(x)f+=Q;else switch(Q){case "#":case "0":case ",":case ".":case ";":return f;case "\u00a4":if(n[0]+1<y&&E.charAt(n[0]+1)=="\u00a4")n[0]++,f+=OG(v);else switch(v.currencyStyle_){case 0:Q=OG(v);f+=Q in hT?hT[Q][1]:Q;break;case 2:Q=OG(v);var e=hT[Q];f+=e?Q==e[1]?Q:Q+" "+e[1]:Q;break;case 1:Q=OG(v),f+=Q in hT?hT[Q][2]:Q}break;case "%":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("he");if(v.negativePercentSignExpected_&&
v.multiplier_!=100)throw Error("ie");v.multiplier_=100;v.negativePercentSignExpected_=!1;f+=u3(v).PERCENT;break;case "\u2030":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("he");if(v.negativePercentSignExpected_&&v.multiplier_!=1E3)throw Error("ie");v.multiplier_=1E3;v.negativePercentSignExpected_=!1;f+=u3(v).PERMILL;break;default:f+=Q}}return f},kq={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},eL1=function(v,E){v=v.compactStyle_==1?Yq.COMPACT_DECIMAL_SHORT_PATTERN:Yq.COMPACT_DECIMAL_LONG_PATTERN;v==null&&(v=Yq.COMPACT_DECIMAL_SHORT_PATTERN);if(E<3)return kq;E=Math.min(14,E);var n=v[WX(1,E)];for(--E;!n&&E>=3;)n=v[WX(1,E)],E--;if(!n)return kq;n=n.other;var f=v="",x=n.indexOf(";");x>=0&&(n=n.substring(0,x),x=n.substring(x+1))&&(f=/([^0]*)(0+)(.*)/.exec(x),v=f[1],f=f[3]);return n&&n!="0"?(n=/([^0]*)(0+)(.*)/.exec(n))?{divisorBase:E+
1-(n[2].length-1),negative_prefix:v,negative_suffix:f,prefix:n[1],suffix:n[3]}:kq:kq},F$X=function(v){if(!isFinite(v))return v>0?v:0;
for(var E=0;(v/=10)>=1;)E++;return E},WX=function(v,E){if(!v||!isFinite(v)||E==0)return v;
v=String(v).split("e");return parseFloat(v[0]+"e"+(parseInt(v[1]||0,10)+E))},rxw=function(v,E){return v&&isFinite(v)?WX(Math.round(WX(v,E)),-E):v},lj1=function(v,E,n){if(!v)return v;
E=E-F$X(v)-1;return E<-n?rxw(v,-n):rxw(v,E)};var Pzg=function(v){return v%10==1&&v%100!=11?"one":v%10==2&&v%100!=12?"two":v%10==3&&v%100!=13?"few":"other"},aj4=Pzg;
aj4=Pzg;var Z5F;Z5F=function(v,E){var n=v|0;if(void 0===E){E=Math;var f=E.min,x=v+"",y=x.indexOf(".");E=f.call(E,y===-1?0:x.length-y-1,3)}f=Math.pow(10,E);v={v:E,f:(v*f|0)%f};return n==1&&v.v==0?"one":"other"};
_.Ub=Z5F;_.Ub=Z5F;var CzU,MIX,Sez,qei,JxS;_.Uu1=function(v){this.JSC$9255_pattern_=v;this.parsedPattern_=this.literals_=this.initialLiterals_=null;v=xui;var E=Yq;if(CzU!==v||MIX!==E)CzU=v,MIX=E,Sez=new _.ab(1);this.numberFormatter_=Sez};
CzU=null;MIX=null;Sez=null;qei=RegExp("'([{}#].*?)'","g");JxS=RegExp("''","g");
_.Uu1.prototype.format=function(v){if(this.JSC$9255_pattern_){this.initialLiterals_=[];var E=K$P(this,this.JSC$9255_pattern_);this.parsedPattern_=duX(this,E);this.JSC$9255_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.tG(this.initialLiterals_),E=[],Ij6(this,this.parsedPattern_,v,!1,E),v=E.join("");this.literals_.length>0;)v=v.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else v="";return v};
var Ij6=function(v,E,n,f,x){for(var y=0;y<E.length;y++)switch(E[y].type){case 4:x.push(E[y].value);break;case 3:var Q=E[y].value;var e=v,F=x,b=n[Q];b===void 0?F.push("Undefined parameter - "+Q):(e.literals_.push(b),F.push(e.buildPlaceholder_(e.literals_)));break;case 2:Q=E[y].value;e=v;F=n;b=f;var l=x,r=Q.argumentIndex;F[r]===void 0?l.push("Undefined parameter - "+r):(r=Q[F[r]],r===void 0&&(r=Q.other),Ij6(e,r,F,b,l));break;case 0:Q=E[y].value;Ye6(v,Q,n,_.Ub,f,x);break;case 1:Q=E[y].value,Ye6(v,Q,
n,aj4,f,x)}},Ye6=function(v,E,n,f,x,y){var Q=E.argumentIndex,e=E.argumentOffset,F=+n[Q];
isNaN(F)?y.push("Undefined or invalid parameter - "+Q):(e=F-e,Q=E[n[Q]],Q===void 0&&(f=f(Math.abs(e)),Q=E[f],Q===void 0&&(Q=E.other)),E=[],Ij6(v,Q,n,x,E),n=E.join(""),x?y.push(n):(v=v.numberFormatter_.format(e),y.push(n.replace(/#/g,v))))},K$P=function(v,E){var n=v.initialLiterals_,f=v.buildPlaceholder_.bind(v);
E=E.replace(JxS,function(){n.push("'");return f(n)});
return E=E.replace(qei,function(x,y){n.push(y);return f(n)})},hLU=function(v){var E=0,n=[],f=[],x=/[{}]/g;
x.lastIndex=0;for(var y;y=x.exec(v);){var Q=y.index;y[0]=="}"?(n.pop(),n.length==0&&(y={type:1},y.value=v.substring(E,Q),f.push(y),E=Q+1)):(n.length==0&&(E=v.substring(E,Q),E!=""&&f.push({type:0,value:E}),E=Q+1),n.push("{"))}v=v.substring(E);v!=""&&f.push({type:0,value:v});return f},Axo=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,VIP=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Du1=/^\s*(\w+)\s*,\s*select\s*,/,duX=function(v,E){var n=[];
E=hLU(E);for(var f=0;f<E.length;f++){var x={};if(0==E[f].type)x.type=4,x.value=E[f].value;else if(1==E[f].type){var y=E[f].value;switch(Axo.test(y)?0:VIP.test(y)?1:Du1.test(y)?2:/^\s*\w+\s*/.test(y)?3:5){case 2:x.type=2;x.value=H5X(v,E[f].value);break;case 0:x.type=0;x.value=gil(v,E[f].value);break;case 1:x.type=1;x.value=NqF(v,E[f].value);break;case 3:x.type=3,x.value=E[f].value}}n.push(x)}return n},H5X=function(v,E){var n="";
E=E.replace(Du1,function(e,F){n=F;return""});
var f={};f.argumentIndex=n;E=hLU(E);for(var x=0;x<E.length;){var y=E[x].value;x++;var Q=void 0;1==E[x].type&&(Q=duX(v,E[x].value));f[y.replace(/\s/g,"")]=Q;x++}return f},gil=function(v,E){var n="",f=0;
E=E.replace(Axo,function(F,b,l){n=b;l&&(f=parseInt(l,10));return""});
var x={};x.argumentIndex=n;x.argumentOffset=f;E=hLU(E);for(var y=0;y<E.length;){var Q=E[y].value;y++;var e=void 0;1==E[y].type&&(e=duX(v,E[y].value));x[Q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=e;y++}return x},NqF=function(v,E){var n="";
E=E.replace(VIP,function(e,F){n=F;return""});
var f={};f.argumentIndex=n;f.argumentOffset=0;E=hLU(E);for(var x=0;x<E.length;){var y=E[x].value;x++;var Q=void 0;1==E[x].type&&(Q=duX(v,E[x].value));f[y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Q;x++}return f};
_.Uu1.prototype.buildPlaceholder_=function(v){return"\ufddf_"+(v.length-1).toString(10)+"_"};var uyi;
uyi={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 aD9=function(){this.rdtfSymbols_=jUo||uyi;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
aD9.prototype.format=function(v,E){a:{E=O5l(this,E);switch(this.style_){case 2:if(E.NARROW!=void 0){E=E.NARROW;break a}case 1:if(E.SHORT!=void 0){E=E.SHORT;break a}default:E=E.LONG;break a}E=void 0}if(!this.alwaysNumeric_&&E&&E.R&&E.R[""+v])v=E.R[""+v];else if(E){var n=Math.abs(v);v=(new _.Uu1("{N,plural,"+(v>0||v==0&&1/v==Infinity?E.F:E.P)+"}")).format({N:n})}else v="";return v};
var O5l=function(v,E){switch(E){default:case 0:return v.rdtfSymbols_.YEAR;case 1:return v.rdtfSymbols_.QUARTER;case 2:return v.rdtfSymbols_.MONTH;case 3:return v.rdtfSymbols_.WEEK;case 4:return v.rdtfSymbols_.DAY;case 5:return v.rdtfSymbols_.HOUR;case 6:return v.rdtfSymbols_.MINUTE;case 7:return v.rdtfSymbols_.SECOND}};var klS=function(v,E,n,f,x,y,Q,e){this.x0=v;this.y0=E;this.x1=n;this.y1=f;this.x2=x;this.y2=y;this.x3=Q;this.y3=e};
klS.prototype.clone=function(){return new klS(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
klS.prototype.equals=function(v){return this.x0==v.x0&&this.y0==v.y0&&this.x1==v.x1&&this.y1==v.y1&&this.x2==v.x2&&this.y2==v.y2&&this.x3==v.x3&&this.y3==v.y3};
var W$P=function(v,E){if(E==0)return v.x0;if(E==1)return v.x3;var n=by(v.x0,v.x1,E),f=by(v.x1,v.x2,E);v=by(v.x2,v.x3,E);n=by(n,f,E);f=by(f,v,E);return by(n,f,E)},$u1=function(v,E){var n=(E-v.x0)/(v.x3-v.x0);
if(n<=0)return 0;if(n>=1)return 1;for(var f=0,x=1,y=0,Q=0;Q<8;Q++){y=W$P(v,n);var e=(W$P(v,n+1E-6)-y)/1E-6;if(Math.abs(y-E)<1E-6)return n;if(Math.abs(e)<1E-6)break;else y<E?f=n:x=n,n-=(y-E)/e}for(Q=0;Math.abs(y-E)>1E-6&&Q<8;Q++)y<E?(f=n,n=(n+x)/2):(x=n,n=(n+f)/2),y=W$P(v,n);return n};var $q=function(){_.mP.call(this);this.JSC$9276_name_="closure_frame"+L$w++;this.iframesForDisposal_=[];Gll[this.JSC$9276_name_]=this},Lr;
_.tf($q,_.mP);var Gll={},L$w=0,TqU=function(v,E){var n=y4(v);_.eCo(E,function(f,x){Array.isArray(f)||(f=[f]);_.I5(f,function(y){y=n.JSC$7224_createDom("INPUT",{type:"hidden",name:x,value:y});v.appendChild(y)})})};
_.c=$q.prototype;_.c.JSC$9278_form_=null;_.c.JSC$9278_iframe_=null;_.c.iframeName_=null;_.c.nextIframeId_=0;_.c.JSC$9278_active_=!1;_.c.complete_=!1;_.c.success_=!1;_.c.lastContent_=null;_.c.JSC$9278_lastErrorCode_=0;_.c.iframeDisposalTimer_=null;
_.c.send=function(v,E,n,f){if(this.JSC$9278_active_)throw Error("oe");v=new _.IT(v);E=E?E.toUpperCase():"GET";n&&_.BF(v);Lr||(Lr=_.PM("FORM"),Lr.acceptCharset="utf-8",n=Lr.style,n.position="absolute",n.visibility="hidden",n.top=n.left="-10px",n.width=n.height="10px",n.overflow="hidden",document.body.appendChild(Lr));this.JSC$9278_form_=Lr;E=="GET"&&TqU(this.JSC$9278_form_,v.JSC$7925_queryData_);f&&TqU(this.JSC$9278_form_,f);n=v.toString();n=pGA(n);f=this.JSC$9278_form_;n=_.Zd(Qv(n));n!==void 0&&(f.action=
n);this.JSC$9278_form_.method=E;i51(this);zLU(this)};
_.c.abort=function(v){if(this.JSC$9278_active_){var E=GQ(this);if(E)if(XX(E))E.removeAllListeners(void 0);else if(E=eP(E)){var n=0,f;for(f in E.listeners)for(var x=E.listeners[f].concat(),y=0;y<x.length;++y)RU(x[y])&&++n}this.success_=this.JSC$9278_active_=this.complete_=!1;this.JSC$9278_lastErrorCode_=v||7;this.dispatchEvent("abort");RLl(this)}};
_.c.disposeInternal=function(){this.JSC$9278_active_&&this.abort();$q.superClass_.disposeInternal.call(this);this.JSC$9278_iframe_&&tIl(this);zLU(this);this.JSC$9278_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9278_form_=null;this.JSC$9278_lastErrorCode_=0;delete Gll[this.JSC$9276_name_]};
_.c.isComplete=function(){return this.complete_};
_.c.isSuccess=function(){return this.success_};
_.c.isActive=function(){return this.JSC$9278_active_};
_.c.getResponseText=function(){return this.lastContent_};
_.c.getLastError=function(){return _.k61(this.JSC$9278_lastErrorCode_)};
var i51=function(v){v.JSC$9278_active_=!0;v.complete_=!1;v.JSC$9278_lastErrorCode_=0;v.iframeName_=v.JSC$9276_name_+"_"+(v.nextIframeId_++).toString(36);v.JSC$9278_iframe_=y4(v.JSC$9278_form_).JSC$7224_createDom("IFRAME",{name:v.iframeName_,id:v.iframeName_});var E=v.JSC$9278_iframe_.style;E.visibility="hidden";E.width=E.height="10px";E.display="none";_.f9?E.marginTop=E.marginLeft="-10px":(E.position="absolute",E.top=E.left="-10px");y4(v.JSC$9278_form_).JSC$7222_document_.body.appendChild(v.JSC$9278_iframe_);
E=v.iframeName_+"_inner";var n=H06(v.JSC$9278_iframe_);if(document.baseURI){var f=k_(E);f='<head><base href="'+k_(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>';f=Sc(f)}else f=k_(E),f=Sc('<body><iframe id="'+f+'" name="'+f+'"></iframe>');n.write(Uw(f));_.v8(n.getElementById(E),"load",v.onIframeLoaded_,!1,v);f=xE("TEXTAREA",v.JSC$9278_form_);for(var x=0,y=f.length;x<y;x++){var Q=f[x].value;k31(f[x])!=Q&&(_.qm(f[x],Q),f[x].value=Q)}f=n.importNode(v.JSC$9278_form_,!0);f.target=
E;f.action=v.JSC$9278_form_.action;n.body.appendChild(f);x=xE("SELECT",v.JSC$9278_form_);y=xE("SELECT",f);Q=0;for(var e=x.length;Q<e;Q++)for(var F=xE("OPTION",x[Q]),b=xE("OPTION",y[Q]),l=0,r=F.length;l<r;l++)b[l].selected=F[l].selected;x=xE("INPUT",v.JSC$9278_form_);y=xE("INPUT",f);Q=0;for(e=x.length;Q<e;Q++)if(x[Q].type=="file"&&x[Q].value!=y[Q].value){v.JSC$9278_form_.target=E;f=v.JSC$9278_form_;break}try{v.errorHandled_=!1,f.submit(),n.close(),_.oG&&setTimeout(v.testForFirefoxSilentError_.bind(v),
250)}catch(a){_.FX(n.getElementById(E),"load",v.onIframeLoaded_,!1,v),n.close(),TQ(v,2)}};
$q.prototype.onIframeLoaded_=function(){_.FX(GQ(this),"load",this.onIframeLoaded_,!1,this);try{var v=this.JSC$9278_iframe_?H06(GQ(this)):null;this.complete_=!0;this.JSC$9278_active_=!1;try{var E=v.body;this.lastContent_=E.textContent||E.innerText}catch(x){var n=1}var f;n||typeof this.errorChecker_!="function"||(f=this.errorChecker_(v))&&(n=4);n?TQ(this,n):(this.success_=!0,this.JSC$9278_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),RLl(this))}catch(x){TQ(this,1)}};
var TQ=function(v,E){v.errorHandled_||(v.success_=!1,v.JSC$9278_active_=!1,v.complete_=!0,v.JSC$9278_lastErrorCode_=E,v.dispatchEvent("complete"),v.dispatchEvent("error"),RLl(v),v.errorHandled_=!0)},RLl=function(v){tIl(v);
zLU(v);v.JSC$9278_form_=null;v.dispatchEvent("ready")},tIl=function(v){var E=v.JSC$9278_iframe_;
E&&(E.onreadystatechange=null,E.onload=null,E.onerror=null,v.iframesForDisposal_.push(E));v.iframeDisposalTimer_&&(clearTimeout(v.iframeDisposalTimer_),v.iframeDisposalTimer_=null);_.oG?v.iframeDisposalTimer_=setTimeout(v.disposeIframes_.bind(v),2E3):v.disposeIframes_();v.JSC$9278_iframe_=null;v.iframeName_=null};
$q.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var v=this.iframesForDisposal_.pop();_.fT(v)}};
var zLU=function(v){v.JSC$9278_form_&&v.JSC$9278_form_==Lr&&_.Co(v.JSC$9278_form_)},GQ=function(v){return v.JSC$9278_iframe_?H06(v.JSC$9278_iframe_).getElementById(v.iframeName_+"_inner"):null};
$q.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9278_active_){var v=this.JSC$9278_iframe_?H06(GQ(this)):null;v&&!wVI(v,"documentUri")?(_.FX(GQ(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?TQ(this,3):TQ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.i3=function(v){return v=="\r"||v=="\n"||v==" "||v=="\t"};var Bq1;_.zQ=function(v){this.errorMessage_=null;this.result_=[];this.JSC$9280_buffer_="";this.stack_=[];this.JSC$9280_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!v||!v.deliverMessageAsRawString)};
Bq1={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};_.zQ.prototype.isInputValid=function(){return this.streamState_!=3};
_.zQ.prototype.done=function(){return this.streamState_===2};
var R4=function(v,E,n){v.streamState_=3;v.errorMessage_="The stream is broken @"+v.JSC$9280_pos_+"/"+n+". With input:\n"+E;throw Error(v.errorMessage_);};
_.zQ.prototype.acceptsBinaryInput=function(){return!1};
_.zQ.prototype.parse=function(v){function E(){for(;a<v.length;)if(_.i3(v[a]))a++,y.JSC$9280_pos_++;else break;return a<b}
function n(){for(var U;;){U=v[a++];if(!U)break;y.JSC$9280_pos_++;switch(y.state_){case F.INIT:U==="{"?y.state_=F.OBJECT_OPEN:U==="["?y.state_=F.ARRAY_OPEN:_.i3(U)||R4(y,v,a);continue;case F.KEY_START:case F.OBJECT_OPEN:if(_.i3(U))continue;if(y.state_===F.KEY_START)Q.push(F.KEY_END);else if(U==="}"){x("{}");y.state_=f();continue}else Q.push(F.OBJECT_END);U==='"'?y.state_=F.STRING:R4(y,v,a);continue;case F.KEY_END:case F.OBJECT_END:if(_.i3(U))continue;U===":"?(y.state_===F.OBJECT_END&&(Q.push(F.OBJECT_END),
y.depth_++),y.state_=F.VALUE):U==="}"?(y.depth_--,x(),y.state_=f()):U===","?(y.state_===F.OBJECT_END&&Q.push(F.OBJECT_END),y.state_=F.KEY_START):R4(y,v,a);continue;case F.ARRAY_OPEN:case F.VALUE:if(_.i3(U))continue;if(y.state_===F.ARRAY_OPEN)if(y.depth_++,y.state_=F.VALUE,U==="]"){y.depth_--;if(y.depth_===0){y.state_=F.ARRAY_END;return}x("[]");y.state_=f();continue}else Q.push(F.ARRAY_END);U==='"'?y.state_=F.STRING:U==="{"?y.state_=F.OBJECT_OPEN:U==="["?y.state_=F.ARRAY_OPEN:U==="t"?y.state_=F.TRUE1:
U==="f"?y.state_=F.FALSE1:U==="n"?y.state_=F.NULL1:U!=="-"&&("0123456789".indexOf(U)!==-1?y.state_=F.NUM_DIGIT:R4(y,v,a));continue;case F.ARRAY_END:if(U===",")Q.push(F.ARRAY_END),y.state_=F.VALUE,y.depth_===1&&(r=a);else if(U==="]"){y.depth_--;if(y.depth_===0)return;x();y.state_=f()}else if(_.i3(U))continue;else R4(y,v,a);continue;case F.STRING:var d=a;a:for(;;){for(;y.unicodeCount_>0;)if(U=v[a++],y.unicodeCount_===4?y.unicodeCount_=0:y.unicodeCount_++,!U)break a;if(U==='"'&&!y.slashed_){y.state_=
f();break}if(U==="\\"&&!y.slashed_&&(y.slashed_=!0,U=v[a++],!U))break;if(y.slashed_)if(y.slashed_=!1,U==="u"&&(y.unicodeCount_=1),U=v[a++])continue;else break;e.lastIndex=a;U=e.exec(v);if(!U){a=v.length+1;break}a=U.index+1;U=v[U.index];if(!U)break}y.JSC$9280_pos_+=a-d;continue;case F.TRUE1:if(!U)continue;U==="r"?y.state_=F.TRUE2:R4(y,v,a);continue;case F.TRUE2:if(!U)continue;U==="u"?y.state_=F.TRUE3:R4(y,v,a);continue;case F.TRUE3:if(!U)continue;U==="e"?y.state_=f():R4(y,v,a);continue;case F.FALSE1:if(!U)continue;
U==="a"?y.state_=F.FALSE2:R4(y,v,a);continue;case F.FALSE2:if(!U)continue;U==="l"?y.state_=F.FALSE3:R4(y,v,a);continue;case F.FALSE3:if(!U)continue;U==="s"?y.state_=F.FALSE4:R4(y,v,a);continue;case F.FALSE4:if(!U)continue;U==="e"?y.state_=f():R4(y,v,a);continue;case F.NULL1:if(!U)continue;U==="u"?y.state_=F.NULL2:R4(y,v,a);continue;case F.NULL2:if(!U)continue;U==="l"?y.state_=F.NULL3:R4(y,v,a);continue;case F.NULL3:if(!U)continue;U==="l"?y.state_=f():R4(y,v,a);continue;case F.NUM_DECIMAL_POINT:U===
"."?y.state_=F.NUM_DIGIT:R4(y,v,a);continue;case F.NUM_DIGIT:if("0123456789.eE+-".indexOf(U)!==-1)continue;else a--,y.JSC$9280_pos_--,y.state_=f();continue;default:R4(y,v,a)}}}
function f(){var U=Q.pop();return U!=null?U:F.VALUE}
function x(U){y.depth_>1||(U||(U=r===-1?y.JSC$9280_buffer_+v.substring(l,a):v.substring(r,a)),y.deliverMessageAsRawString_?y.result_.push(U):y.result_.push(JSON.parse(U)),r=a)}
for(var y=this,Q=y.stack_,e=y.stringInputPattern_,F=Bq1,b=v.length,l=0,r=-1,a=0;a<b;)switch(y.streamState_){case 3:return R4(y,v,a),null;case 2:return E()&&R4(y,v,a),null;case 0:if(E()){var M=v[a++];y.JSC$9280_pos_++;if(M==="["){y.streamState_=1;l=a;y.state_=F.ARRAY_OPEN;continue}else R4(y,v,a)}return null;case 1:return n(),y.depth_===0&&y.state_==F.ARRAY_END?(y.streamState_=2,y.JSC$9280_buffer_=v.substring(a)):y.JSC$9280_buffer_=r===-1?y.JSC$9280_buffer_+v.substring(l):v.substring(r),y.result_.length>
0?(M=y.result_,y.result_=[],M):null}return null};_.tf(_.O2,Qc);k0.prototype.getValue=function(){return this.JSC$9288_value_};
k0.prototype.clone=function(){return new k0(this.JSC$9288_key_,this.JSC$9288_value_)};var tT=function(v){this.nodes_=[];if(v)a:{if(v instanceof tT){var E=v.getKeys();v=v.getValues();if(this.getCount()<=0){for(var n=this.nodes_,f=0;f<E.length;f++)n.push(new k0(E[f],v[f]));break a}}else E=_.sh.getKeys(v),v=_.sh.getValues(v);for(n=0;n<E.length;n++)this.insert(E[n],v[n])}};
_.c=tT.prototype;_.c.insert=function(v,E){var n=this.nodes_;n.push(new k0(v,E));v=n.length-1;E=this.nodes_;for(n=E[v];v>0;){var f=v-1>>1;if(E[f].JSC$9288_key_>n.JSC$9288_key_)E[v]=E[f],v=f;else break}E[v]=n};
_.c.remove=function(){var v=this.nodes_,E=v.length,n=v[0];if(!(E<=0)){if(E==1)v.length=0;else{v[0]=v.pop();v=0;E=this.nodes_;for(var f=E.length,x=E[v];v<f>>1;){var y=v*2+1,Q=v*2+2;y=Q<f&&E[Q].JSC$9288_key_<E[y].JSC$9288_key_?Q:y;if(E[y].JSC$9288_key_>x.JSC$9288_key_)break;E[v]=E[y];v=y}E[v]=x}return n.getValue()}};
_.c.peek=function(){var v=this.nodes_;if(v.length!=0)return v[0].getValue()};
_.c.getValues=function(){for(var v=this.nodes_,E=[],n=v.length,f=0;f<n;f++)E.push(v[f].getValue());return E};
_.c.getKeys=function(){for(var v=this.nodes_,E=[],n=v.length,f=0;f<n;f++)E.push(v[f].JSC$9288_key_);return E};
_.c.containsValue=function(v){return this.nodes_.some(function(E){return E.getValue()==v})};
_.c.containsKey=function(v){return this.nodes_.some(function(E){return E.JSC$9288_key_==v})};
_.c.clone=function(){return new tT(this)};
_.c.getCount=function(){return this.nodes_.length};
_.c.isEmpty=function(){return this.nodes_.length===0};
_.c.clear=function(){this.nodes_.length=0};_.BX=function(v,E){this.JSC$9294_map_={};this.JSC$9294_keys_=[];this.version_=this.size=0;var n=arguments.length;if(n>1){if(n%2)throw Error("oa");for(var f=0;f<n;f+=2)this.set(arguments[f],arguments[f+1])}else v&&this.addAll(v)};
_.c=_.BX.prototype;_.c.getCount=function(){return this.size};
_.c.getValues=function(){vk(this);for(var v=[],E=0;E<this.JSC$9294_keys_.length;E++)v.push(this.JSC$9294_map_[this.JSC$9294_keys_[E]]);return v};
_.c.getKeys=function(){vk(this);return this.JSC$9294_keys_.concat()};
_.c.containsKey=function(v){return this.has(v)};
_.c.has=function(v){return ES(this.JSC$9294_map_,v)};
_.c.containsValue=function(v){for(var E=0;E<this.JSC$9294_keys_.length;E++){var n=this.JSC$9294_keys_[E];if(ES(this.JSC$9294_map_,n)&&this.JSC$9294_map_[n]==v)return!0}return!1};
_.c.equals=function(v,E){if(this===v)return!0;if(this.size!=v.getCount())return!1;E=E||vzX;vk(this);for(var n,f=0;n=this.JSC$9294_keys_[f];f++)if(!E(this.get(n),v.get(n)))return!1;return!0};
var vzX=function(v,E){return v===E};
_.BX.prototype.isEmpty=function(){return this.size==0};
_.BX.prototype.clear=function(){this.JSC$9294_map_={};this.version_=this.size=this.JSC$9294_keys_.length=0};
_.BX.prototype.remove=function(v){return this.delete(v)};
_.BX.prototype.delete=function(v){return ES(this.JSC$9294_map_,v)?(delete this.JSC$9294_map_[v],--this.size,this.version_++,this.JSC$9294_keys_.length>2*this.size&&vk(this),!0):!1};
var vk=function(v){if(v.size!=v.JSC$9294_keys_.length){for(var E=0,n=0;E<v.JSC$9294_keys_.length;){var f=v.JSC$9294_keys_[E];ES(v.JSC$9294_map_,f)&&(v.JSC$9294_keys_[n++]=f);E++}v.JSC$9294_keys_.length=n}if(v.size!=v.JSC$9294_keys_.length){E={};for(f=n=0;n<v.JSC$9294_keys_.length;){var x=v.JSC$9294_keys_[n];ES(E,x)||(v.JSC$9294_keys_[f++]=x,E[x]=1);n++}v.JSC$9294_keys_.length=f}};
_.c=_.BX.prototype;_.c.get=function(v,E){return ES(this.JSC$9294_map_,v)?this.JSC$9294_map_[v]:E};
_.c.set=function(v,E){ES(this.JSC$9294_map_,v)||(this.size+=1,this.JSC$9294_keys_.push(v),this.version_++);this.JSC$9294_map_[v]=E};
_.c.addAll=function(v){if(v instanceof _.BX)for(var E=v.getKeys(),n=0;n<E.length;n++)this.set(E[n],v.get(E[n]));else for(E in v)this.set(E,v[E])};
_.c.forEach=function(v,E){for(var n=this.getKeys(),f=0;f<n.length;f++){var x=n[f],y=this.get(x);v.call(E,y,x,this)}};
_.c.clone=function(){return new _.BX(this)};
_.c.transpose=function(){for(var v=new _.BX,E=0;E<this.JSC$9294_keys_.length;E++){var n=this.JSC$9294_keys_[E];v.set(this.JSC$9294_map_[n],n)}return v};
_.c.keys=function(){return Joz(this.__iterator__(!0)).toEs6()};
_.c.values=function(){return Joz(this.__iterator__(!1)).toEs6()};
_.c.entries=function(){var v=this;return jbw(this.keys(),function(E){return[E,v.get(E)]})};
_.c.__iterator__=function(v){vk(this);var E=0,n=this.version_,f=this,x=new R_;x.next=function(){if(n!=f.version_)throw Error("pe");if(E>=f.JSC$9294_keys_.length)return tt;var y=f.JSC$9294_keys_[E++];return Bl(v?y:f.JSC$9294_map_[y])};
return x};
var ES=function(v,E){return Object.prototype.hasOwnProperty.call(v,E)};var nzS=function(){this.JSC$9297_map_=new _.BX;this.JSC$9297_head_=new Ez6("");this.JSC$9297_head_.next=this.JSC$9297_head_.prev=this.JSC$9297_head_},oz4=function(v,E){if(E=v.JSC$9297_map_.get(E))E.remove(),v.insert_(E);
return E};
_.c=nzS.prototype;_.c.get=function(v,E){return(v=oz4(this,v))?v.value:E};
_.c.set=function(v,E){var n=oz4(this,v);n?n.value=E:(n=new Ez6(v,E),this.JSC$9297_map_.set(v,n),this.insert_(n))};
_.c.peek=function(){return this.JSC$9297_head_.next.value};
_.c.shift=function(){return fa6(this,this.JSC$9297_head_.next)};
_.c.pop=function(){return fa6(this,this.JSC$9297_head_.prev)};
_.c.remove=function(v){return(v=this.JSC$9297_map_.get(v))?(this.removeNode(v),!0):!1};
_.c.removeNode=function(v){v.remove();this.JSC$9297_map_.remove(v.key)};
_.c.getCount=function(){return this.JSC$9297_map_.getCount()};
_.c.isEmpty=function(){return this.JSC$9297_map_.isEmpty()};
_.c.getKeys=function(){return this.map(function(v,E){return E})};
_.c.getValues=function(){return this.map(function(v){return v})};
_.c.contains=function(v){return this.some(function(E){return E==v})};
_.c.containsKey=function(v){return this.JSC$9297_map_.containsKey(v)};
_.c.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9297_head_.prev)};
_.c.forEach=function(v,E){for(var n=this.JSC$9297_head_.next;n!=this.JSC$9297_head_;n=n.next)v.call(E,n.value,n.key,this)};
_.c.map=function(v,E){for(var n=[],f=this.JSC$9297_head_.next;f!=this.JSC$9297_head_;f=f.next)n.push(v.call(E,f.value,f.key,this));return n};
_.c.some=function(v,E){for(var n=this.JSC$9297_head_.next;n!=this.JSC$9297_head_;n=n.next)if(v.call(E,n.value,n.key,this))return!0;return!1};
_.c.every=function(v,E){for(var n=this.JSC$9297_head_.next;n!=this.JSC$9297_head_;n=n.next)if(!v.call(E,n.value,n.key,this))return!1;return!0};
_.c.insert_=function(v){v.next=this.JSC$9297_head_.next;v.prev=this.JSC$9297_head_;this.JSC$9297_head_.next=v;for(v.next.prev=v;this.getCount()>40;)this.removeNode(this.JSC$9297_head_.prev)};
var fa6=function(v,E){v.JSC$9297_head_!=E&&v.removeNode(E);return E.value},Ez6=function(v,E){this.key=v;
this.value=E};
Ez6.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var xd1=function(){tT.apply(this,arguments)};
_.S(xd1,tT);xd1.prototype.enqueue=function(v,E){this.insert(v,E)};var cZg=function(){var v=Error();v.name="SecurityError";throw v;},j3L=function(){return{get opener(){return null},
get closed(){return!0},get location(){cZg()},get document(){cZg()},postMessage:function(){},
close:function(){},
focus:function(){}}};var TwF={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 Ri9={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 yZ1={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(Ri9).join("|");var p81=function(){function v(e){e.substr(-1)!==";"&&(e+=";");return Q(e)}
for(var E=Object.keys(yZ1).sort(zi$),n=Object.keys(Ri9).sort(zi$),f=0,x=0;f<n.length;f++)E[x]===n[f]?(n[f]+=";?",x++):n[f]+=";";var y=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Q=tUN();return function(e){return String(e).replace(y,v)}}();/*

 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 QjU={};var X8w=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"),eYi=/[\\&]/,FGX=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),md1=RegExp('[&<>"]',"g"),w8F=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),bR1=function(v){return v.charCodeAt(0)===92?v.charAt(1):p81(v)},lag=function(v){return eYi.test(v)?v.replace(FGX,bR1):v},sjg=function(v){try{var E,n="";
if(typeof x!=="string"){var f=x;var x=";/?:@&=+$,-_.!~*'()#"}typeof f==="undefined"&&(f=!0);var y,Q=QjU[x];if(Q)var e=Q;else{Q=QjU[x]=[];for(y=0;y<128;y++){var F=String.fromCharCode(y);/^[0-9a-z]$/i.test(F)?Q.push(F):Q.push("%"+("0"+y.toString(16).toUpperCase()).slice(-2))}for(y=0;y<x.length;y++)Q[x.charCodeAt(y)]=x[y];e=Q}var b=0;for(E=v.length;b<E;b++){var l=v.charCodeAt(b);if(f&&l===37&&b+2<E&&/^[0-9a-f]{2}$/i.test(v.slice(b+1,b+3)))n+=v.slice(b,b+3),b+=2;else if(l<128)n+=e[l];else if(l>=55296&&
l<=57343){if(l>=55296&&l<=56319&&b+1<E){var r=v.charCodeAt(b+1);if(r>=56320&&r<=57343){n+=encodeURIComponent(v[b]+v[b+1]);b++;continue}}n+="%EF%BF%BD"}else n+=encodeURIComponent(v[b])}return n}catch(a){return v}},rZ1=function(v){switch(v){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return v}},nM=function(v,E){return md1.test(v)?E?v.replace(w8F,rZ1):v.replace(md1,rZ1):v};/*

 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 o1;if(String.fromCodePoint)o1=function(v){try{return String.fromCodePoint(v)}catch(E){if(E instanceof RangeError)return String.fromCharCode(65533);throw E;}};
else{var Pjo=String.fromCharCode,aaX=Math.floor;o1=function(){var v=[],E=-1,n=arguments.length;if(!n)return"";for(var f="";++E<n;){var x=Number(arguments[E]);if(!isFinite(x)||x<0||x>1114111||aaX(x)!==x)return String.fromCharCode(65533);if(x<=65535)v.push(x);else{x-=65536;var y=(x>>10)+55296;x=x%1024+56320;v.push(y,x)}if(E+1===n||v.length>16384)f+=Pjo.apply(null,v),v.length=0}return f}};var ZRX=function(v){this.root=this.current=v;this.entering=!0};
ZRX.prototype.next=function(){var v=this.current,E=this.entering;if(v===null)return null;a:switch(v._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 n=!0;break a;default:n=!1}E&&n?v._firstChild?(this.current=v._firstChild,this.entering=!0):this.entering=!1:v===this.root?this.current=null:v._next===null?(this.current=
v._parent,this.entering=!1):(this.current=v._next,this.entering=!0);return{entering:E,node:v}};
var Gq=function(v,E){this._type=v;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=E;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};
Gq.prototype.appendChild=function(v){fM(v);v._parent=this;this._lastChild?(this._lastChild._next=v,v._prev=this._lastChild):this._firstChild=v;this._lastChild=v};
var fM=function(v){v._prev?v._prev._next=v._next:v._parent&&(v._parent._firstChild=v._next);v._next?v._next._prev=v._prev:v._parent&&(v._parent._lastChild=v._prev);v._parent=null;v._next=null;v._prev=null},Cjw=function(v,E){fM(E);
E._next=v._next;E._next&&(E._next._prev=E);E._prev=v;v._next=E;E._parent=v._parent;E._next||(E._parent._lastChild=E)};
Gq.prototype.insertBefore=function(v){fM(v);v._prev=this._prev;v._prev&&(v._prev._next=v);v._next=this;this._prev=v;v._parent=this._parent;v._prev||(v._parent._firstChild=v)};
_.hK.Object.defineProperties(Gq.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(v){this._literal=v}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(v){this._destination=v}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(v){this._title=v}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(v){this._info=v}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(v){this._level=v}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(v){this._listData.type=v}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(v){this._listData.tight=v}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(v){this._listData.start=v}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(v){this._onEnter=v}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(v){this._onExit=v}}});var Bw$=/[ \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,
v8I={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 Mg4=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]/),
SZ1=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),UdF=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),qZl=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),JZ1=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),KGl=/`+/,ddg=/^`+/,Iaw=/\.\.\./g,YZz=/--+/g,hYU=/^<([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])?)*)>/,
AZU=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Vgi=/^ *(?:\n *)?/,Ddg=/^[ \t\n\x0b\x0c\x0d]/,HR1=/[ \t\n\x0b\x0c\x0d]+/g,gz4=/^\s/,NJ6=/ *$/,u$1=/^ */,jjX=/^ *(?:\n|$)/,ORo=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),kG1=/^[^\n`\[\]\\!<&*_'"]+/m,xO=function(v){var E=new Gq("text");E._literal=v;return E},ck=function(v){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=v||{}};
ck.prototype.match=function(v){v=v.exec(this.subject.slice(this.pos));if(v===null)return null;this.pos+=v.index+v[0].length;return v[0]};
ck.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var y$=function(v){v.match(Vgi);return!0},WG6=function(v,E,n){var f=0;
var x=v.pos;if(E===39||E===34)f++,v.pos++;else for(;v.peek()===E;)f++,v.pos++;if(f===0)f=null;else{var y=x===0?"\n":v.subject.charAt(x-1);var Q=v.peek();Q=Q===-1?"\n":o1(Q);var e=gz4.test(Q);Q=Mg4.test(Q);var F=gz4.test(y);var b=Mg4.test(y);y=!e&&!(Q&&!F&&!b);e=!F&&!(b&&!e&&!Q);E===95?(F=y&&(!e||b),Q=e&&(!y||Q)):(F=E===39||E===34?y&&!e:y,Q=e);v.pos=x;f={numdelims:f,can_open:F,can_close:Q}}if(!f)return!1;x=f.numdelims;Q=v.pos;v.pos+=x;Q=E===39?"\u2019":E===34?"\u201c":v.subject.slice(Q,v.pos);Q=xO(Q);
n.appendChild(Q);v.delimiters={cc:E,numdelims:x,origdelims:x,node:Q,previous:v.delimiters,next:null,can_open:f.can_open,can_close:f.can_close};v.delimiters.previous!==null&&(v.delimiters.previous.next=v.delimiters);return!0},$dw=function(v,E){E.previous!==null&&(E.previous.next=E.next);
E.next===null?v.delimiters=E.previous:E.next.previous=E.previous},LGz=function(v,E){var n,f,x=[],y=!1;
x[95]=E;x[42]=E;x[39]=E;x[34]=E;for(n=v.delimiters;n!==null&&n.previous!==E;)n=n.previous;for(;n!==null;){var Q=n.cc;if(n.can_close){var e=n.previous;for(f=!1;e!==null&&e!==E&&e!==x[Q];){y=(n.can_open||e.can_close)&&(e.origdelims+n.origdelims)%3===0;if(e.cc===n.cc&&e.can_open&&!y){f=!0;break}e=e.previous}var F=n;if(Q===42||Q===95)if(f){var b=n.numdelims>=2&&e.numdelims>=2?2:1;var l=e.node;var r=n.node;e.numdelims-=b;n.numdelims-=b;l._literal=l._literal.slice(0,l._literal.length-b);r._literal=r._literal.slice(0,
r._literal.length-b);var a=new Gq(b===1?"emph":"strong");for(b=l._next;b&&b!==r;){var M=b._next;fM(b);a.appendChild(b);b=M}Cjw(l,a);b=e;M=n;b.next!==M&&(b.next=M,M.previous=b);e.numdelims===0&&(fM(l),$dw(v,e));n.numdelims===0&&(fM(r),e=n.next,$dw(v,n),n=e)}else n=n.next;else Q===39?(n.node._literal="\u2019",f&&(e.node._literal="\u2018"),n=n.next):Q===34&&(n.node._literal="\u201d",f&&(e.node.literal="\u201c"),n=n.next);f||y||(x[Q]=F.previous,F.can_open||$dw(v,F))}else n=n.next}for(;v.delimiters!==
null&&v.delimiters!==E;)$dw(v,v.delimiters)},GGX=function(v){v=v.match(SZ1);
return v===null?null:lag(v.substr(1,v.length-2))},TJS=function(v){var E=v.match(UdF);
if(E===null){E=v.pos;for(var n=0,f;(f=v.peek())!==-1;)if(f===92)v.pos+=1,v.peek()!==-1&&(v.pos+=1);else if(f===40)v.pos+=1,n+=1;else if(f===41)if(n<1)break;else v.pos+=1,--n;else if(Ddg.exec(o1(f))!==null)break;else v.pos+=1;E=v.subject.substr(E,v.pos-E);return sjg(lag(E))}return sjg(lag(E.substr(1,E.length-2)))},iRU=function(v){v=v.match(ORo);
return v===null||v.length>1001?0:v.length},zY6=function(v,E,n,f){v.brackets!==null&&(v.brackets.bracketAfter=!0);
v.brackets={node:E,previous:v.brackets,previousDelimiter:v.delimiters,index:n,image:f,active:!0}},RY1=function(v,E){var n;
return(n=v.match(kG1))?(v.options.smart?E.appendChild(xO(n.replace(Iaw,"\u2026").replace(YZz,function(f){var x=0,y=0;f.length%3===0?y=f.length/3:f.length%2===0?x=f.length/2:f.length%3===2?(x=1,y=(f.length-2)/3):(x=2,y=(f.length-4)/3);f="";var Q;for(Q=0;Q<y;Q++)f+="\u2014";for(Q=0;Q<x;Q++)f+="\u2013";return f}))):E.appendChild(xO(n)),!0):!1},tg1=function(v,E,n){v.subject=E;
v.pos=0;E=v.pos;var f=iRU(v);if(f===0)return 0;var x=v.subject.substr(0,f);if(v.peek()===58)v.pos++;else return v.pos=E,0;y$(v);f=TJS(v);if(f===null||f.length===0)return v.pos=E,0;var y=v.pos;y$(v);var Q=GGX(v);Q===null&&(Q="",v.pos=y);var e=!0;v.match(jjX)===null&&(Q===""?e=!1:(Q="",v.pos=y,e=v.match(jjX)!==null));if(!e)return v.pos=E,0;x=E8s(x);if(x==="")return v.pos=E,0;n[x]||(n[x]={destination:f,title:Q});return v.pos-E},BJl=function(v,E){var n,f=v.peek();
if(f===-1)return!1;switch(f){case 10:v.pos+=1;if((n=E._lastChild)&&n.type==="text"&&n._literal[n._literal.length-1]===" "){var x=n._literal[n._literal.length-2]===" ";n._literal=n._literal.replace(NJ6,"");E.appendChild(new Gq(x?"linebreak":"softbreak"))}else E.appendChild(new Gq("softbreak"));v.match(u$1);n=!0;break;case 92:n=v.subject;v.pos+=1;v.peek()===10?(v.pos+=1,n=new Gq("linebreak"),E.appendChild(n)):qZl.test(n.charAt(v.pos))?(E.appendChild(xO(n.charAt(v.pos))),v.pos+=1):E.appendChild(xO("\\"));
n=!0;break;case 96:a:if(n=v.match(ddg),n===null)n=!1;else{x=v.pos;for(var y;(y=v.match(KGl))!==null;)if(y===n){y=new Gq("code");y._literal=v.subject.slice(x,v.pos-n.length).trim().replace(HR1," ");E.appendChild(y);n=!0;break a}v.pos=x;E.appendChild(xO(n));n=!0}break;case 42:case 95:n=WG6(v,f,E);break;case 39:case 34:n=v.options.smart&&WG6(v,f,E);break;case 91:n=v.pos;v.pos+=1;x=xO("[");E.appendChild(x);zY6(v,x,n,!1);n=!0;break;case 33:n=v.pos;v.pos+=1;v.peek()===91?(v.pos+=1,x=xO("!["),E.appendChild(x),
zY6(v,x,n+1,!0)):E.appendChild(xO("!"));n=!0;break;case 93:var Q,e=!1,F;v.pos+=1;var b=v.pos;x=v.brackets;if(x===null)E.appendChild(xO("]"));else if(x.active){n=x.image;var l=v.pos;v.peek()===40&&(v.pos++,y$(v)&&(y=TJS(v))!==null&&y$(v)&&(Ddg.test(v.subject.charAt(v.pos-1))&&(Q=GGX(v)),1)&&y$(v)&&v.peek()===41?(v.pos+=1,e=!0):v.pos=l);if(!e){var r=v.pos,a=iRU(v);a>2?F=v.subject.slice(r,r+a):x.bracketAfter||(F=v.subject.slice(x.index,b));a===0&&(v.pos=l);F&&(F=v.refmap[E8s(F)])&&(y=F.destination,Q=
F.title,e=!0)}if(e){b=new Gq(n?"image":"link");b._destination=y;b._title=Q||"";for(y=x.node._next;y;)Q=y._next,fM(y),b.appendChild(y),y=Q;E.appendChild(b);LGz(v,x.previousDelimiter);v.brackets=v.brackets.previous;fM(x.node);if(!n)for(x=v.brackets;x!==null;)x.image||(x.active=!1),x=x.previous}else v.brackets=v.brackets.previous,v.pos=b,E.appendChild(xO("]"))}else E.appendChild(xO("]")),v.brackets=v.brackets.previous;n=!0;break;case 60:(n=v.match(hYU))?(n=n.slice(1,n.length-1),x=new Gq("link"),x._destination=
sjg("mailto:"+n),x._title="",x.appendChild(xO(n)),E.appendChild(x),n=!0):(n=v.match(AZU))?(n=n.slice(1,n.length-1),x=new Gq("link"),x._destination=sjg(n),x._title="",x.appendChild(xO(n)),E.appendChild(x),n=!0):n=!1;n||(n=v.match(X8w),n===null?n=!1:(x=new Gq("html_inline"),x._literal=n,E.appendChild(x),n=!0));break;case 38:(n=v.match(JZ1))?(E.appendChild(xO(p81(n))),n=!0):n=!1;break;default:n=RY1(v,E)}n||(v.pos+=1,E.appendChild(xO(o1(f))));return!0};
ck.prototype.parseInlines=function(v){this.subject=v._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;BJl(this,v););v._string_content=null;LGz(this,null)};
ck.prototype.parse=ck.prototype.parseInlines;var v_z=[/./,/^<(?: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")],E_o=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],n_P=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,o_1=/^[#`~*+_=<>0-9-\|]|\|/,fgU=/[^ \t\f\v\r\n]/,xq6=/^[*+-]/,cqX=/^(\d{1,9})([.)])/,yqz=/^#{1,6}(?:[ \t]+|$)/,piU=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,QXg=/^(?:`{3,}|~{3,})(?= *$)/,Xi6=/^(?:=+|-+)[ \t]*$/,eSP=/\r\n|\n|\r/,o8E=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,f2E=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,FcS={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(v,E){for(v=E._firstChild;v;){if(n8X(v)&&v._next){E._listData.tight=!1;break}for(var n=v._firstChild;n;){if(n8X(n)&&(v._next||n._next)){E._listData.tight=!1;break}n=n._next}v=v._next}},
canContain:function(v){return v==="item"},
acceptsLines:!1},block_quote:{continue:function(v){var E=v.currentLine;if(v.indented||$0(E,v.nextNonspace)!==62)return 1;pM(v);Q$(v,1,!1);WZ($0(E,v.offset))&&Q$(v,1,!0);return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},item:{continue:function(v,E){if(v.blank){if(E._firstChild==null)return 1;pM(v)}else if(v.indent>=E._listData.markerOffset+E._listData.padding)Q$(v,E._listData.markerOffset+E._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(v){return v!=="item"&&!xr1(v)},
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(v,E){var n=v.currentLine,f=v.indent;if(E._isFenced){if((f=f<=3&&n.charAt(v.nextNonspace)===E._fenceChar&&n.slice(v.nextNonspace).match(QXg))&&f[0].length>=E._fenceLength)return v.finalize(E,v.lineNumber),2;for(E=E._fenceOffset;E>0&&WZ($0(n,v.offset));)Q$(v,1,!0),E--}else if(f>=4)Q$(v,4,!0);else if(v.blank)pM(v);else return 1;return 0},
finalize:function(v,E){if(E._isFenced){var n=E._string_content,f=n.indexOf("\n");v=n.slice(0,f);n=n.slice(f+1);E.info=lag(v.trim());E._literal=n}else E._literal=E._string_content.replace(/(\n *)+$/,"\n");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(v,E){return!v.blank||E._htmlBlockType!==6&&E._htmlBlockType!==7?0:1},
finalize:function(v,E){E._literal=E._string_content.replace(/(\n *)+$/,"");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(v){return v.blank?1:0},
finalize:function(v,E){for(var n,f=!1;$0(E._string_content,0)===91&&(n=tg1(v.inlineParser,E._string_content,v.refmap));)E._string_content=E._string_content.slice(n),f=!0;f&&!fgU.test(E._string_content)&&fM(E)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(v){return LV(v.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(v){return v=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(v,E){if(!E._rowIsDelimiter){v=E._isHeader?"th":"td";for(var n=E._parent._tableColumns,f=E._string_content,x=0,y="",Q,e=E._sourcepos[0][0];x<f.length;){switch(f[x]){case "|":Q&&(Q._string_content=y.trim(),y="",Q=null,n--,n<=0&&(x=f.length));break;default:if(!Q){Q=new Gq(v,[[e,x],[e,x]]);var F=E._parent._columnAlignment,b=E._parent._tableColumns-n;F&&b<=F.length&&b>=0&&(Q._alignment=F[b]);E.appendChild(Q)}y+=f[x];Q._sourcepos[1][1]=x}x++}Q&&(Q._string_content=y.trim());E._string_content=
""}},
canContain:function(v){return v!=="row"},
acceptsLines:!1}},mqw=[function(v){if(v.indented||$0(v.currentLine,v.nextNonspace)!==62)return 0;pM(v);Q$(v,1,!1);WZ($0(v.currentLine,v.offset))&&Q$(v,1,!0);Xf(v);v.addChild("block_quote",v.nextNonspace);return 1},
function(v){var E;if(!v.indented&&(E=v.currentLine.slice(v.nextNonspace).match(yqz))){pM(v);Q$(v,E[0].length,!1);Xf(v);var n=v.addChild("heading",v.nextNonspace);n.level=E[0].trim().length;n._string_content=v.currentLine.slice(v.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Q$(v,v.currentLine.length-v.offset);return 2}return 0},
function(v){var E;if(!v.indented&&(E=v.currentLine.slice(v.nextNonspace).match(piU))){var n=E[0].length;Xf(v);var f=v.addChild("code_block",v.nextNonspace);f._isFenced=!0;f._fenceLength=n;f._fenceChar=E[0][0];f._fenceOffset=v.indent;pM(v);Q$(v,n,!1);return 2}return 0},
function(v,E){if(!v.indented&&$0(v.currentLine,v.nextNonspace)===60){var n=v.currentLine.slice(v.nextNonspace),f;for(f=1;f<=7;f++)if(v_z[f].test(n)&&(f<7||E.type!=="paragraph"))return Xf(v),v.addChild("html_block",v.offset)._htmlBlockType=f,2}return 0},
function(v,E){var n;if(!v.indented&&E.type==="paragraph"&&(n=v.currentLine.slice(v.nextNonspace).match(Xi6))){Xf(v);var f=new Gq("heading",E.sourcepos);f.level=n[0][0]==="="?1:2;f._string_content=E._string_content;Cjw(E,f);fM(E);v.tip=f;Q$(v,v.currentLine.length-v.offset,!1);return 2}return 0},
function(v){return!v.indented&&n_P.test(v.currentLine.slice(v.nextNonspace))?(Xf(v),v.addChild("thematic_break",v.nextNonspace),Q$(v,v.currentLine.length-v.offset,!1),2):0},
function(v,E){var n,f;if(!(f=v.indented&&E.type!=="list")){a:{var x=E,y=v.currentLine.slice(v.nextNonspace);f={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:v.indent};if(n=y.match(xq6))f.type="bullet",f.bulletChar=n[0][0];else{if(!(n=y.match(cqX))||x.type==="paragraph"&&n[1]!=="1"){n=null;break a}f.type="ordered";f.start=parseInt(n[1],10);f.delimiter=n[2]}var Q=$0(v.currentLine,v.nextNonspace+n[0].length);if(Q!==-1&&Q!==9&&Q!==32||x.type==="paragraph"&&!v.currentLine.slice(v.nextNonspace+
n[0].length).match(fgU))n=null;else{pM(v);Q$(v,n[0].length,!0);x=v.column;y=v.offset;do Q$(v,1,!0),Q=$0(v.currentLine,v.offset);while(v.column-x<5&&WZ(Q));Q=$0(v.currentLine,v.offset)===-1;var e=v.column-x;e>=5||e<1||Q?(f.padding=n[0].length+1,v.column=x,v.offset=y,WZ($0(v.currentLine,v.offset))&&Q$(v,1,!0)):f.padding=n[0].length+e;n=f}}f=!n}if(f)return 0;Xf(v);(f=v.tip.type!=="list")||(E=E._listData,f=!(E.type===n.type&&E.delimiter===n.delimiter&&E.bulletChar===n.bulletChar));f&&(E=v.addChild("list",
v.nextNonspace),E._listData=n);E=v.addChild("item",v.nextNonspace);E._listData=n;return 1},
function(v){var E;return((E=v.options.shouldParseIndentAsCodeBlock)!=null?E:1)&&v.indented&&v.tip.type!=="paragraph"&&!v.blank?(Q$(v,4,!0),Xf(v),v.addChild("code_block",v.offset),2):0},
function(v,E){var n=LV(v.currentLine),f=LV(v.lookahead);if(n!==0&&f<0&&Math.abs(n)==Math.abs(f)&&!xr1(E.type)){Xf(v);E=v.addChild("table",v.nextNonspace);E._tableRows=1;E._tableColumns=Math.abs(n);n=v.lookahead;if(f2E.test(n)){f=[];for(var x=0,y=!1,Q=0,e=void 0;x<n.length;){var F=Q>=3;switch(n[x]){case "-":Q++;break;case "|":y&&(f.push(e),e=void 0,Q=0);y=!0;break;case ":":e||F||(e="left"),!e&&F&&(e="right"),e==="left"&&F&&(e="center")}x++}n=f}else n=void 0;E._columnAlignment=n;E=v.addChild("row",
v.nextNonspace);E._isHeader=!0;Q$(v,v.currentLine.length-v.offset,!1);E._string_content=v.currentLine;return 1}return 0},
function(v,E){if(E.type=="table"&&LV(v.currentLine)!==0){Xf(v);var n=E;E=v.addChild("row",v.nextNonspace);LV(v.currentLine)<0?E._rowIsDelimiter=!0:n._tableRows+=1;Q$(v,v.currentLine.length-v.offset,!1);E._string_content=v.currentLine;return 2}return 0}],kFQ=function(){var v={shouldParseIndentAsCodeBlock:!1};
v=v===void 0?{}:v;this.lastMatchedContainer=this.doc=cms();this.refmap={};this.lastLineLength=0;this.inlineParser=new ck(v);this.options=v;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=FcS;this.blockStarts=mqw},wiw=function(v){v.partiallyConsumedTab&&(v.offset+=1,v.tip._string_content+=" ".repeat(4-v.column%
4));
v.tip._string_content+=v.currentLine.slice(v.offset)+"\n"};
kFQ.prototype.addChild=function(v,E){for(;!this.blocks[this.tip.type].canContain(v);)this.finalize(this.tip,this.lineNumber-1);v=new Gq(v,[[this.lineNumber,E+1],[0,0]]);v._string_content="";this.tip.appendChild(v);return this.tip=v};
var Xf=function(v){if(!v.allClosed){for(;v.oldtip!==v.lastMatchedContainer;){var E=v.oldtip._parent;v.finalize(v.oldtip,v.lineNumber-1);v.oldtip=E}v.allClosed=!0}},Q$=function(v,E,n){for(var f=v.currentLine,x,y;E>0&&(y=f[v.offset]);)y==="\t"?(x=4-v.column%4,n?(v.partiallyConsumedTab=x>E,x=x>E?E:x,v.column+=x,v.offset+=v.partiallyConsumedTab?0:1,E-=x):(v.partiallyConsumedTab=!1,v.column+=x,v.offset+=1,--E)):(v.partiallyConsumedTab=!1,v.offset+=1,v.column+=1,--E)},pM=function(v){v.offset=v.nextNonspace;
v.column=v.nextNonspaceColumn;v.partiallyConsumedTab=!1},bhz=function(v){for(var E=v.currentLine,n=v.offset,f=v.column,x;(x=E.charAt(n))!=="";)if(x===" ")n++,f++;
else if(x==="\t")n++,f+=4-f%4;else break;v.blank=x==="\n"||x==="\r"||x==="";v.nextNonspace=n;v.nextNonspaceColumn=f;v.indent=v.nextNonspaceColumn-v.column;v.indented=v.indent>=4};
kFQ.prototype.finalize=function(v,E){var n=v._parent;v._open=!1;v.sourcepos[1]=[E,this.lastLineLength];this.blocks[v.type].finalize(this,v);this.tip=n};
kFQ.prototype.parse=function(v){this.tip=this.doc=cms();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!v)return this.doc;this.options.time&&console.time("preparing input");var E=v.split(eSP),n=E.length;v.charCodeAt(v.length-1)===10&&--n;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(v=0;v<n;v++)a:{var f=void 0,x=E[v],y=E[v+1],Q=!0,e=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;x.indexOf("\x00")!==-1&&(x=x.replace(/\0/g,"\ufffd"));this.currentLine=x;for(this.lookahead=y;(f=e._lastChild)&&f._open;){e=f;bhz(this);switch(this.blocks[e.type].continue(this,e)){case 0:break;case 1:Q=!1;break;case 2:this.lastLineLength=x.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Q){e=e._parent;break}}this.allClosed=e===this.oldtip;this.lastMatchedContainer=
e;f=e.type!=="paragraph"&&FcS[e.type].acceptsLines;y=this.blockStarts;for(Q=y.length;!f;){bhz(this);if(!this.indented&&!o_1.test(x.slice(this.nextNonspace))){pM(this);break}for(var F=0;F<Q;){var b=y[F](this,e);if(b===1){e=this.tip;break}else if(b===2){e=this.tip;f=!0;break}else F++}if(F===Q){pM(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Xf(this);this.blank&&e.lastChild&&(e.lastChild._lastLineBlank=!0);f=e.type;y=this.blank&&!(f==="block_quote"||f==="code_block"&&e._isFenced||
f==="item"&&!e._firstChild&&e.sourcepos[0][0]===this.lineNumber);for(Q=e;Q;)Q._lastLineBlank=y,Q=Q._parent;this.blocks[f].acceptsLines?(wiw(this),f==="html_block"&&e._htmlBlockType>=1&&e._htmlBlockType<=5&&E_o[e._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(e,this.lineNumber)):this.offset<x.length&&!this.blank&&(this.addChild("paragraph",this.offset),pM(this),wiw(this))}else wiw(this);this.lastLineLength=x.length}for(;this.tip;)this.finalize(this.tip,n);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");x=new ZRX(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;n=x.next();)E=n.node,v=E.type,n.entering||v!=="paragraph"&&v!=="heading"&&v!=="th"&&v!="td"||this.inlineParser.parse(E);this.options.time&&console.timeEnd("inline parsing");return this.doc};ymF.prototype.render=function(v){v=new ZRX(v);var E;this.buffer="";for(this.lastOut="\n";E=v.next();){var n=E.node.type;if(this[n])this[n](E.node,E.entering)}return this.buffer};
ymF.prototype.out=function(v){eH(this,v)};
var eH=function(v,E){v.buffer+=E;v.lastOut=E};
ymF.prototype.cr=function(){this.lastOut!=="\n"&&eH(this,"\n")};var lgS=/^javascript:|vbscript:|file:|data:/i,sX1=/^data:image\/(?:png|gif|jpeg|webp)/i,rqU=function(v){return lgS.test(v)&&!sX1.test(v)};
Tq.prototype=Object.create(ymF.prototype);_.c=Tq.prototype;_.c.text=function(v){this.out(v.literal)};
_.c.html_inline=function(v){this.options.safe?eH(this,"\x3c!-- raw HTML omitted --\x3e"):eH(this,v.literal)};
_.c.html_block=function(v){this.cr();this.options.safe?eH(this,"\x3c!-- raw HTML omitted --\x3e"):eH(this,v.literal);this.cr()};
_.c.softbreak=function(){eH(this,this.options.softbreak)};
_.c.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.c.link=function(v,E){var n=this.attrs(v);E?(this.options.safe&&rqU(v.destination)||n.push(["href",nM(v.destination,!0)]),v.title&&n.push(["title",nM(v.title,!0)]),this.tag("a",n)):this.tag("/a")};
_.c.image=function(v,E){E?(this.disableTags===0&&(this.options.safe&&rqU(v.destination)?eH(this,'<img src="" alt="'):eH(this,'<img src="'+nM(v.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(v.title&&eH(this,'" title="'+nM(v.title,!0)),eH(this,'" />')))};
_.c.emph=function(v,E){this.tag(E?"em":"/em")};
_.c.strong=function(v,E){this.tag(E?"strong":"/strong")};
_.c.paragraph=function(v,E){var n=v.parent.parent;v=this.attrs(v);n!==null&&n.type==="list"&&n.listTight||(E?(this.cr(),this.tag("p",v)):(this.tag("/p"),this.cr()))};
_.c.heading=function(v,E){var n="h"+v.level;v=this.attrs(v);E?(this.cr(),this.tag(n,v)):(this.tag("/"+n),this.cr())};
_.c.code=function(v){this.tag("code");this.out(v.literal);this.tag("/code")};
_.c.code_block=function(v){var E=v.info?v.info.split(/\s+/):[],n=this.attrs(v);E.length>0&&E[0].length>0&&n.push(["class","language-"+nM(E[0],!0)]);this.cr();this.tag("pre");this.tag("code",n);this.out(v.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.c.thematic_break=function(v){v=this.attrs(v);this.cr();this.tag("hr",v,!0);this.cr()};
_.c.block_quote=function(v,E){v=this.attrs(v);E?(this.cr(),this.tag("blockquote",v)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.c.list=function(v,E){var n=v.listType==="bullet"?"ul":"ol",f=this.attrs(v);E?(v=v.listStart,v!==null&&v!==1&&f.push(["start",v.toString()]),this.cr(),this.tag(n,f)):(this.cr(),this.tag("/"+n));this.cr()};
_.c.item=function(v,E){v=this.attrs(v);E?this.tag("li",v):(this.tag("/li"),this.cr())};
_.c.custom_inline=function(v,E){E&&v.onEnter?eH(this,v.onEnter):!E&&v.onExit&&eH(this,v.onExit)};
_.c.custom_block=function(v,E){this.cr();E&&v.onEnter?eH(this,v.onEnter):!E&&v.onExit&&eH(this,v.onExit);this.cr()};
_.c.table=function(v,E){v=this.attrs(v);E?(this.cr(),this.tag("table",v)):(this.tag("/table"),this.cr())};
_.c.row=function(v,E){v._rowIsDelimiter||(v=this.attrs(v),E?this.tag("tr",v):this.tag("/tr"))};
_.c.td=function(v,E){var n=this.attrs(v);v._alignment&&n.push(["align",v._alignment]);E?this.tag("td",n):this.tag("/td")};
_.c.th=function(v,E){var n=this.attrs(v);v._alignment&&n.push(["align",v._alignment]);E?this.tag("th",n):this.tag("/th")};
_.c.out=function(v){eH(this,nM(v,!1))};
_.c.tag=function(v,E,n){if(!(this.disableTags>0)){this.buffer+="<"+v;if(E&&E.length>0){v=0;for(var f;(f=E[v])!==void 0;)this.buffer+=" "+f[0]+'="'+f[1]+'"',v++}n&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.c.attrs=function(v){var E=[];this.options.sourcepos&&(v=v.sourcepos)&&E.push(["data-sourcepos",String(v[0][0])+":"+String(v[0][1])+"-"+String(v[1][0])+":"+String(v[1][1])]);return E};
Tq.prototype.text=Tq.prototype.text;Tq.prototype.html_inline=Tq.prototype.html_inline;Tq.prototype.html_block=Tq.prototype.html_block;Tq.prototype.softbreak=Tq.prototype.softbreak;Tq.prototype.linebreak=Tq.prototype.linebreak;Tq.prototype.link=Tq.prototype.link;Tq.prototype.image=Tq.prototype.image;Tq.prototype.emph=Tq.prototype.emph;Tq.prototype.strong=Tq.prototype.strong;Tq.prototype.paragraph=Tq.prototype.paragraph;Tq.prototype.heading=Tq.prototype.heading;Tq.prototype.code=Tq.prototype.code;
Tq.prototype.code_block=Tq.prototype.code_block;Tq.prototype.thematic_break=Tq.prototype.thematic_break;Tq.prototype.block_quote=Tq.prototype.block_quote;Tq.prototype.list=Tq.prototype.list;Tq.prototype.item=Tq.prototype.item;Tq.prototype.custom_inline=Tq.prototype.custom_inline;Tq.prototype.custom_block=Tq.prototype.custom_block;Tq.prototype.table=Tq.prototype.table;Tq.prototype.row=Tq.prototype.row;Tq.prototype.td=Tq.prototype.td;Tq.prototype.th=Tq.prototype.th;Tq.prototype.out=Tq.prototype.out;
Tq.prototype.tag=Tq.prototype.tag;Tq.prototype.attrs=Tq.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 PGX,agw,g5N;(function(){function v(I,J){return I<J?-1:I>J?1:I>=J?0:NaN}
function E(I){return function(J,D){return v(I(J),D)}}
function n(){for(var I=0,J=arguments.length,D={},G;I<J;++I){if(!(G=arguments[I]+"")||G in D)throw Error("re`"+G);D[G]=[]}return new f(D)}
function f(I){this._=I}
function x(I,J){return I.trim().split(/^|\s+/).map(function(D){var G="",f1=D.indexOf(".");f1>=0&&(G=D.slice(f1+1),D=D.slice(0,f1));if(D&&!J.hasOwnProperty(D))throw Error("se`"+D);return{type:D,name:G}})}
function y(I,J,D){for(var G=0,f1=I.length;G<f1;++G)if(I[G].name===J){I[G]=QyM;I=I.slice(0,G).concat(I.slice(G+1));break}D!=null&&I.push({name:J,value:D});return I}
function Q(I){var J=I,D=J.indexOf(":");D>=0&&(J=I.slice(0,D))!=="xmlns"&&(I=I.slice(D+1));return Wj.hasOwnProperty(J)?{space:Wj[J],local:I}:I}
function e(I){return function(){var J=this.ownerDocument,D=this.namespaceURI;return D==="http://www.w3.org/1999/xhtml"&&J.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?J.createElement(I):J.createElementNS(D,I)}}
function F(I){return function(){return this.ownerDocument.createElementNS(I.space,I.local)}}
function b(I){I=Q(I);return(I.local?F:e)(I)}
function l(){}
function r(I){return I==null?l:function(){return this.querySelector(I)}}
function a(I){return Array(I.length)}
function M(I,J){this.ownerDocument=I.ownerDocument;this.namespaceURI=I.namespaceURI;this._next=null;this._parent=I;this.__data__=J}
function U(I){return function(){return I}}
function d(I,J,D,G,f1,e9){for(var rL=0,qF,BI=J.length,iE=e9.length;rL<iE;++rL)(qF=J[rL])?(qF.__data__=e9[rL],G[rL]=qF):D[rL]=new M(I,e9[rL]);for(;rL<BI;++rL)if(qF=J[rL])f1[rL]=qF}
function Y(I,J,D,G,f1,e9,rL){var qF,BI,iE={},vU=J.length,mg=e9.length,Ll=Array(vU),w_;for(qF=0;qF<vU;++qF)if(BI=J[qF])Ll[qF]=w_="$"+rL.call(BI,BI.__data__,qF,J),w_ in iE?f1[qF]=BI:iE[w_]=BI;for(qF=0;qF<mg;++qF)w_="$"+rL.call(I,e9[qF],qF,e9),(BI=iE[w_])?(G[qF]=BI,BI.__data__=e9[qF],iE[w_]=null):D[qF]=new M(I,e9[qF]);for(qF=0;qF<vU;++qF)(BI=J[qF])&&iE[Ll[qF]]===BI&&(f1[qF]=BI)}
function V(I,J){return I<J?-1:I>J?1:I>=J?0:NaN}
function O(I){return function(){this.removeAttribute(I)}}
function T(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function L(I,J){return function(){this.setAttribute(I,J)}}
function xX(I,J){return function(){this.setAttributeNS(I.space,I.local,J)}}
function t(I,J){return function(){var D=J.apply(this,arguments);D==null?this.removeAttribute(I):this.setAttribute(I,D)}}
function QE(I,J){return function(){var D=J.apply(this,arguments);D==null?this.removeAttributeNS(I.space,I.local):this.setAttributeNS(I.space,I.local,D)}}
function MF(I){return function(){this.style.removeProperty(I)}}
function K1(I,J,D){return function(){this.style.setProperty(I,J,D)}}
function JG(I,J,D){return function(){var G=J.apply(this,arguments);G==null?this.style.removeProperty(I):this.style.setProperty(I,G,D)}}
function $X(I,J){return I.style.getPropertyValue(J)||(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView).getComputedStyle(I,null).getPropertyValue(J)}
function HI(I){return function(){delete this[I]}}
function uE(I,J){return function(){this[I]=J}}
function WI(I,J){return function(){var D=J.apply(this,arguments);D==null?delete this[I]:this[I]=D}}
function bX(){this.textContent=""}
function n0(I){return function(){this.textContent=I}}
function qi(I){return function(){var J=I.apply(this,arguments);this.textContent=J==null?"":J}}
function fl(){this.innerHTML=""}
function yP(I){return function(){this.innerHTML=I}}
function IF(I){return function(){var J=I.apply(this,arguments);this.innerHTML=J==null?"":J}}
function QP(){return null}
function T3(){var I=this.parentNode;I&&I.removeChild(this)}
function aK(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function yE(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Cl(I,J,D){I=VP(I,J,D);return function(G){var f1=G.relatedTarget;f1&&(f1===this||f1.compareDocumentPosition(this)&8)||I.call(this,G)}}
function VP(I,J,D){return function(){I.call(this,this.__data__,J,D)}}
function JR(I){return I.trim().split(/^|\s+/).map(function(J){var D="",G=J.indexOf(".");G>=0&&(D=J.slice(G+1),J=J.slice(0,G));return{type:J,name:D}})}
function d1(I){return function(){var J=this.__on;if(J){for(var D=0,G=-1,f1=J.length,e9;D<f1;++D)(e9=J[D],I.type&&e9.type!==I.type||e9.name!==I.name)?J[++G]=e9:this.removeEventListener(e9.type,e9.listener,e9.capture);++G?J.length=G:delete this.__on}}}
function $w(I,J,D){var G=tH1.hasOwnProperty(I.type)?Cl:VP;return function(f1,e9,rL){f1=this.__on;var qF;e9=G(J,e9,rL);if(f1){rL=0;for(var BI=f1.length;rL<BI;++rL)if((qF=f1[rL]).type===I.type&&qF.name===I.name){this.removeEventListener(qF.type,qF.listener,qF.capture);this.addEventListener(qF.type,qF.listener=e9,qF.capture=D);qF.value=J;return}}this.addEventListener(I.type,e9,D);qF={type:I.type,name:I.name,value:J,listener:e9,capture:D};f1?f1.push(qF):this.__on=[qF]}}
function y6(I,J,D){var G=I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView,f1=G.CustomEvent;typeof f1==="function"?f1=new f1(J,D):(f1=G.document.createEvent("Event"),D?(f1.initEvent(J,D.bubbles,D.cancelable),f1.detail=D.detail):f1.initEvent(J,!1,!1));I.dispatchEvent(f1)}
function eo(I,J){return function(){return y6(this,I,J)}}
function kX(I,J){return function(){return y6(this,I,J.apply(this,arguments))}}
function lX(I,J){this._groups=I;this._parents=J}
function cb(){return new lX([[document.documentElement]],XMR)}
function Zz(){this._="@"+(++e$C).toString(36)}
function C0(I,J,D){I.prototype=J.prototype=D;D.constructor=I}
function ZL(I,J){I=Object.create(I.prototype);for(var D in J)I[D]=J[D];return I}
function fG(){}
function lr(I){var J;I=(I+"").trim().toLowerCase();return(J=FeC.exec(I))?(J=parseInt(J[1],16),new ep(J>>8&15|J>>4&240,J>>4&15|J&240,(J&15)<<4|J&15,1)):(J=mmM.exec(I))?Ng(parseInt(J[1],16)):(J=wMU.exec(I))?new ep(J[1],J[2],J[3],1):(J=bod.exec(I))?new ep(J[1]*255/100,J[2]*255/100,J[3]*255/100,1):(J=lbU.exec(I))?xZ(J[1],J[2],J[3],J[4]):(J=sy_.exec(I))?xZ(J[1]*255/100,J[2]*255/100,J[3]*255/100,J[4]):(J=rPd.exec(I))?wt(J[1],J[2]/100,J[3]/100,1):(J=PyO.exec(I))?wt(J[1],J[2]/100,J[3]/100,J[4]):B7S.hasOwnProperty(I)?
Ng(B7S[I]):I==="transparent"?new ep(NaN,NaN,NaN,0):null}
function Ng(I){return new ep(I>>16&255,I>>8&255,I&255,1)}
function xZ(I,J,D,G){G<=0&&(I=J=D=NaN);return new ep(I,J,D,G)}
function he(I){I instanceof fG||(I=lr(I));if(!I)return new ep;I=I.rgb();return new ep(I.r,I.g,I.b,I.opacity)}
function mA(I,J,D,G){return arguments.length===1?he(I):new ep(I,J,D,G==null?1:G)}
function ep(I,J,D,G){this.r=+I;this.g=+J;this.b=+D;this.opacity=+G}
function fc(I){I=Math.max(0,Math.min(255,Math.round(I)||0));return(I<16?"0":"")+I.toString(16)}
function wt(I,J,D,G){G<=0?I=J=D=NaN:D<=0||D>=1?I=J=NaN:J<=0&&(I=NaN);return new Wv(I,J,D,G)}
function Cs(I){if(I instanceof Wv)return new Wv(I.h,I.s,I.l,I.opacity);I instanceof fG||(I=lr(I));if(!I)return new Wv;if(I instanceof Wv)return I;I=I.rgb();var J=I.r/255,D=I.g/255,G=I.b/255,f1=Math.min(J,D,G),e9=Math.max(J,D,G),rL=NaN,qF=e9-f1,BI=(e9+f1)/2;qF?(rL=J===e9?(D-G)/qF+(D<G)*6:D===e9?(G-J)/qF+2:(J-D)/qF+4,qF/=BI<.5?e9+f1:2-e9-f1,rL*=60):qF=BI>0&&BI<1?0:rL;return new Wv(rL,qF,BI,I.opacity)}
function Hp(I,J,D,G){return arguments.length===1?Cs(I):new Wv(I,J,D,G==null?1:G)}
function Wv(I,J,D,G){this.h=+I;this.s=+J;this.l=+D;this.opacity=+G}
function e8(I,J,D){return(I<60?J+(D-J)*I/60:I<180?D:I<240?J+(D-J)*(240-I)/60:J)*255}
function Xc(I){if(I instanceof a$)return new a$(I.l,I.a,I.b,I.opacity);if(I instanceof aF){if(isNaN(I.h))return new a$(I.l,0,0,I.opacity);var J=I.h*vVw;return new a$(I.l,Math.cos(J)*I.c,Math.sin(J)*I.c,I.opacity)}I instanceof ep||(I=he(I));var D=oO(I.r),G=oO(I.g),f1=oO(I.b);J=AG(.2225045*D+.7168786*G+.0606169*f1);if(D===G&&G===f1)var e9=D=J;else e9=AG((.4360747*D+.3850649*G+.1430804*f1)/.96422),D=AG((.0139322*D+.0971045*G+.7141733*f1)/.82521);return new a$(116*J-16,500*(e9-J),200*(J-D),I.opacity)}
function a$(I,J,D,G){this.l=+I;this.a=+J;this.b=+D;this.opacity=+G}
function AG(I){return I>abU?Math.pow(I,1/3):I/EVS+nV1}
function j9(I){return I>c1?I*I*I:EVS*(I-nV1)}
function s1(I){return 255*(I<=.0031308?12.92*I:1.055*Math.pow(I,1/2.4)-.055)}
function oO(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}
function Jj(I){if(I instanceof aF)return new aF(I.h,I.c,I.l,I.opacity);I instanceof a$||(I=Xc(I));if(I.a===0&&I.b===0)return new aF(NaN,0,I.l,I.opacity);var J=Math.atan2(I.b,I.a)*oVw;return new aF(J<0?J+360:J,Math.sqrt(I.a*I.a+I.b*I.b),I.l,I.opacity)}
function Fd(I,J,D,G){return arguments.length===1?Jj(I):new aF(I,J,D,G==null?1:G)}
function aF(I,J,D,G){this.h=+I;this.c=+J;this.l=+D;this.opacity=+G}
function r1(I,J,D,G){if(arguments.length===1){var f1=I;if(f1 instanceof mU)f1=new mU(f1.h,f1.s,f1.l,f1.opacity);else{f1 instanceof ep||(f1=he(f1));var e9=f1.g/255,rL=f1.b/255,qF=(fOw*rL+f1.r/255*-1.7884503806-3.5172982438*e9)/(fOw+-1.7884503806-3.5172982438);rL-=qF;var BI=(1.97294*(e9-qF)- -.29227*rL)/-.90649;rL=(e9=Math.sqrt(BI*BI+rL*rL)/(1.97294*qF*(1-qF)))?Math.atan2(BI,rL)*oVw-120:NaN;f1=new mU(rL<0?rL+360:rL,e9,qF,f1.opacity)}}else f1=new mU(I,J,D,G==null?1:G);return f1}
function mU(I,J,D,G){this.h=+I;this.s=+J;this.l=+D;this.opacity=+G}
function Mn(I,J,D,G,f1){var e9=I*I,rL=e9*I;return((1-3*I+3*e9-rL)*J+(4-6*e9+3*rL)*D+(1+3*I+3*e9-3*rL)*G+rL*f1)/6}
function cU(I){return function(){return I}}
function sw(I,J){return function(D){return I+D*J}}
function ua(I,J,D){return I=Math.pow(I,D),J=Math.pow(J,D)-I,D=1/D,function(G){return Math.pow(I+G*J,D)}}
function hj(I,J){var D=J-I;return D?sw(I,D>180||D<-180?D-360*Math.round(D/360):D):cU(isNaN(I)?J:I)}
function $E(I){return(I=+I)===1?V4:function(J,D){return D-J?ua(J,D,I):cU(isNaN(J)?D:J)}}
function V4(I,J){var D=J-I;return D?sw(I,D):cU(isNaN(I)?J:I)}
function pR(I){return function(J){var D=J.length,G=Array(D),f1=Array(D),e9=Array(D),rL;for(rL=0;rL<D;++rL){var qF=mA(J[rL]);G[rL]=qF.r||0;f1[rL]=qF.g||0;e9[rL]=qF.b||0}G=I(G);f1=I(f1);e9=I(e9);qF.opacity=1;return function(BI){qF.r=G(BI);qF.g=f1(BI);qF.b=e9(BI);return qF+""}}}
function es(I,J){return I=+I,J-=I,function(D){return I+J*D}}
function R$(I){return function(){return I}}
function sx(I){return function(J){return I(J)+""}}
function V6(I,J){var D=lTE.lastIndex=s1L.lastIndex=0,G,f1,e9,rL=-1,qF=[],BI=[];I+="";for(J+="";(G=lTE.exec(I))&&(f1=s1L.exec(J));)(e9=f1.index)>D&&(e9=J.slice(D,e9),qF[rL]?qF[rL]+=e9:qF[++rL]=e9),(G=G[0])===(f1=f1[0])?qF[rL]?qF[rL]+=f1:qF[++rL]=f1:(qF[++rL]=null,BI.push({i:rL,x:es(G,f1)})),D=s1L.lastIndex;D<J.length&&(e9=J.slice(D),qF[rL]?qF[rL]+=e9:qF[++rL]=e9);return qF.length<2?BI[0]?sx(BI[0].x):R$(J):(J=BI.length,function(iE){for(var vU=0,mg;vU<J;++vU)qF[(mg=BI[vU]).i]=mg.x(iE);return qF.join("")})}
function d2(I,J,D,G,f1,e9){var rL,qF,BI;if(rL=Math.sqrt(I*I+J*J))I/=rL,J/=rL;if(BI=I*D+J*G)D-=I*BI,G-=J*BI;if(qF=Math.sqrt(D*D+G*G))D/=qF,G/=qF,BI/=qF;I*G<J*D&&(I=-I,J=-J,BI=-BI,rL=-rL);return{translateX:f1,translateY:e9,rotate:Math.atan2(J,I)*xbP,skewX:Math.atan(BI)*xbP,scaleX:rL,scaleY:qF}}
function E8(I,J,D,G){function f1(iE){return iE.length?iE.pop()+" ":""}
function e9(iE,vU,mg,Ll,w_,w2){iE!==mg||vU!==Ll?(w_=w_.push("translate(",null,J,null,D),w2.push({i:w_-4,x:es(iE,mg)},{i:w_-2,x:es(vU,Ll)})):(mg||Ll)&&w_.push("translate("+mg+J+Ll+D)}
function rL(iE,vU,mg,Ll){iE!==vU?(iE-vU>180?vU+=360:vU-iE>180&&(iE+=360),Ll.push({i:mg.push(f1(mg)+"rotate(",null,G)-2,x:es(iE,vU)})):vU&&mg.push(f1(mg)+"rotate("+vU+G)}
function qF(iE,vU,mg,Ll){iE!==vU?Ll.push({i:mg.push(f1(mg)+"skewX(",null,G)-2,x:es(iE,vU)}):vU&&mg.push(f1(mg)+"skewX("+vU+G)}
function BI(iE,vU,mg,Ll,w_,w2){iE!==mg||vU!==Ll?(w_=w_.push(f1(w_)+"scale(",null,",",null,")"),w2.push({i:w_-4,x:es(iE,mg)},{i:w_-2,x:es(vU,Ll)})):mg===1&&Ll===1||w_.push(f1(w_)+"scale("+mg+","+Ll+")")}
return function(iE,vU){var mg=[],Ll=[];iE=I(iE);vU=I(vU);e9(iE.translateX,iE.translateY,vU.translateX,vU.translateY,mg,Ll);rL(iE.rotate,vU.rotate,mg,Ll);qF(iE.skewX,vU.skewX,mg,Ll);BI(iE.scaleX,iE.scaleY,vU.scaleX,vU.scaleY,mg,Ll);iE=vU=null;return function(w_){for(var w2=-1,uW=Ll.length,P5;++w2<uW;)mg[(P5=Ll[w2]).i]=P5.x(w_);return mg.join("")}}}
function oK(I){return function(J,D){var G=I((J=Hp(J)).h,(D=Hp(D)).h),f1=V4(J.s,D.s),e9=V4(J.l,D.l),rL=V4(J.opacity,D.opacity);return function(qF){J.h=G(qF);J.s=f1(qF);J.l=e9(qF);J.opacity=rL(qF);return J+""}}}
function ja(I){return function(J,D){var G=I((J=Fd(J)).h,(D=Fd(D)).h),f1=V4(J.c,D.c),e9=V4(J.l,D.l),rL=V4(J.opacity,D.opacity);return function(qF){J.h=G(qF);J.c=f1(qF);J.l=e9(qF);J.opacity=rL(qF);return J+""}}}
function C9(I){return function G(D){function f1(e9,rL){var qF=I((e9=r1(e9)).h,(rL=r1(rL)).h),BI=V4(e9.s,rL.s),iE=V4(e9.l,rL.l),vU=V4(e9.opacity,rL.opacity);return function(mg){e9.h=qF(mg);e9.s=BI(mg);e9.l=iE(Math.pow(mg,D));e9.opacity=vU(mg);return e9+""}}
D=+D;f1.gamma=G;return f1}(1)}
function Od(){return gv||(c$l(nbE),gv=RE.now()+JvI)}
function nbE(){gv=0}
function aB(){this._call=this._time=this._next=null}
function W4(I,J,D){var G=new aB;G.restart(I,J,D);return G}
function $4(){gv=(KAF=RE.now())+JvI;yF=t5=0;try{Od();++yF;for(var I=dBN,J;I;)(J=gv-I._time)>=0&&I._call.call(null,J),I=I._next;--yF}finally{yF=0;I=dBN;for(var D=Infinity;I;)if(I._call){D>I._time&&(D=I._time);var G=I;I=I._next}else J=I._next,I._next=null,I=G?G._next=J:dBN=J;BO=G;L6(D);gv=0}}
function JFI(){var I=RE.now(),J=I-KAF;J>1E3&&(JvI-=J,KAF=I)}
function L6(I){yF||(t5&&(t5=clearTimeout(t5)),I-gv>24?(I<Infinity&&(t5=setTimeout($4,I-RE.now()-JvI)),v9&&(v9=clearInterval(v9))):(v9||(KAF=RE.now(),v9=setInterval(JFI,1E3)),yF=1,c$l($4)))}
function y$P(I,J,D){var G=new aB;J=J==null?0:+J;G.restart(function(f1){G.stop();I(f1+J)},J,D);
return G}
function r81(I,J,D,G,f1,e9){var rL=I.__transition;if(!rL)I.__transition={};else if(D in rL)return;Zod(I,D,{name:J,index:G,group:f1,on:Cyb,tween:MrP,time:e9.time,delay:e9.delay,duration:e9.duration,ease:e9.ease,timer:null,state:0})}
function PI$(I,J){I=e0(I,J);if(I.state>0)throw Error("te");return I}
function NM(I,J){I=e0(I,J);if(I.state>2)throw Error("ue");return I}
function e0(I,J){I=I.__transition;if(!I||!(I=I[J]))throw Error("ve");return I}
function Zod(I,J,D){function G(BI){var iE,vU;if(D.state!==1)return e9();for(Ll in rL){var mg=rL[Ll];if(mg.name===D.name){if(mg.state===3)return y$P(G);mg.state===4?(mg.state=6,mg.timer.stop(),mg.on.call("interrupt",I,I.__data__,mg.index,mg.group),delete rL[Ll]):+Ll<J&&(mg.state=6,mg.timer.stop(),delete rL[Ll])}}y$P(function(){D.state===3&&(D.state=4,D.timer.restart(f1,D.delay,D.time),f1(BI))});
D.state=2;D.on.call("start",I,I.__data__,D.index,D.group);if(D.state===2){D.state=3;qF=Array(vU=D.tween.length);var Ll=0;for(iE=-1;Ll<vU;++Ll)if(mg=D.tween[Ll].value.call(I,I.__data__,D.index,D.group))qF[++iE]=mg;qF.length=iE+1}}
function f1(BI){BI=BI<D.duration?D.ease.call(null,BI/D.duration):(D.timer.restart(e9),D.state=5,1);for(var iE=-1,vU=qF.length;++iE<vU;)qF[iE].call(null,BI);D.state===5&&(D.on.call("end",I,I.__data__,D.index,D.group),e9())}
function e9(){D.state=6;D.timer.stop();delete rL[J];for(var BI in rL)return;delete I.__transition}
var rL=I.__transition,qF;rL[J]=D;D.timer=W4(function(BI){D.state=1;D.timer.restart(G,D.delay,D.time);D.delay<=BI&&G(BI-D.delay)},0,D.time)}
function SPK(I,J){var D,G;return function(){var f1=NM(this,I),e9=f1.tween;if(e9!==D){G=D=e9;e9=0;for(var rL=G.length;e9<rL;++e9)if(G[e9].name===J){G=G.slice();G.splice(e9,1);break}}f1.tween=G}}
function UmC(I,J,D){var G,f1;if(typeof D!=="function")throw Error();return function(){var e9=NM(this,I),rL=e9.tween;if(rL!==G){f1=(G=rL).slice();rL={name:J,value:D};for(var qF=0,BI=f1.length;qF<BI;++qF)if(f1[qF].name===J){f1[qF]=rL;break}qF===BI&&f1.push(rL)}e9.tween=f1}}
function aTX(I,J,D){var G=I._id;I.each(function(){var f1=NM(this,G);(f1.value||(f1.value={}))[J]=D.apply(this,arguments)});
return function(f1){return e0(f1,G).value[J]}}
function pDP(I,J){var D;return(typeof J==="number"?es:J instanceof lr?Qsg:(D=lr(J))?(J=D,Qsg):V6)(I,J)}
function qPP(I){return function(){this.removeAttribute(I)}}
function JPK(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function KeO(I,J,D){var G,f1;return function(){var e9=this.getAttribute(I);return e9===D?null:e9===G?f1:f1=J(G=e9,D)}}
function dmd(I,J,D){var G,f1;return function(){var e9=this.getAttributeNS(I.space,I.local);return e9===D?null:e9===G?f1:f1=J(G=e9,D)}}
function Ib0(I,J,D){var G,f1,e9;return function(){var rL=D(this);if(rL==null)return void this.removeAttribute(I);var qF=this.getAttribute(I);return qF===rL?null:qF===G&&rL===f1?e9:e9=J(G=qF,f1=rL)}}
function YPK(I,J,D){var G,f1,e9;return function(){var rL=D(this);if(rL==null)return void this.removeAttributeNS(I.space,I.local);var qF=this.getAttributeNS(I.space,I.local);return qF===rL?null:qF===G&&rL===f1?e9:e9=J(G=qF,f1=rL)}}
function h$U(I,J){function D(){var G=this,f1=J.apply(G,arguments);return f1&&function(e9){G.setAttributeNS(I.space,I.local,f1(e9))}}
D._value=J;return D}
function APp(I,J){function D(){var G=this,f1=J.apply(G,arguments);return f1&&function(e9){G.setAttribute(I,f1(e9))}}
D._value=J;return D}
function VrU(I,J){return function(){PI$(this,I).delay=+J.apply(this,arguments)}}
function DmO(I,J){return J=+J,function(){PI$(this,I).delay=J}}
function HoU(I,J){return function(){NM(this,I).duration=+J.apply(this,arguments)}}
function gDC(I,J){return J=+J,function(){NM(this,I).duration=J}}
function NxC(I,J){if(typeof J!=="function")throw Error();return function(){NM(this,I).ease=J}}
function uTR(I){return(I+"").trim().split(/^|\s+/).every(function(J){var D=J.indexOf(".");D>=0&&(J=J.slice(0,D));return!J||J==="start"})}
function jy3(I,J,D){var G,f1,e9=uTR(J)?PI$:NM;return function(){var rL=e9(this,I),qF=rL.on;if(qF!==G)(f1=(G=qF).copy()).on(J,D);rL.on=f1}}
function OoO(I){return function(){var J=this.parentNode,D;for(D in this.__transition)if(+D!==I)return;J&&J.removeChild(this)}}
function kN6(I,J){var D,G,f1;return function(){var e9=$X(this,I),rL=(this.style.removeProperty(I),$X(this,I));return e9===rL?null:e9===D&&rL===G?f1:f1=J(D=e9,G=rL)}}
function We1(I){return function(){this.style.removeProperty(I)}}
function $m1(I,J,D){var G,f1;return function(){var e9=$X(this,I);return e9===D?null:e9===G?f1:f1=J(G=e9,D)}}
function LeM(I,J,D){var G,f1,e9;return function(){var rL=$X(this,I),qF=D(this);qF==null&&(qF=(this.style.removeProperty(I),$X(this,I)));return rL===qF?null:rL===G&&qF===f1?e9:e9=J(G=rL,f1=qF)}}
function GNd(I,J,D){function G(){var f1=this,e9=J.apply(f1,arguments);return e9&&function(rL){f1.style.setProperty(I,e9(rL),D)}}
G._value=J;return G}
function Tx0(I){return function(){this.textContent=I}}
function ioK(I){return function(){var J=I(this);this.textContent=J==null?"":J}}
function XP(I,J,D,G){this._groups=I;this._parents=J;this._name=D;this._id=G}
function ZME(I){return{type:I}}
function CII(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function IYG(){}
function XDi(I,J){var D=new IYG;if(I instanceof IYG)I.each(function(rL,qF){D.set(qF,rL)});
else if(Array.isArray(I)){var G=-1,f1=I.length,e9;if(J==null)for(;++G<f1;)D.set(G,I[G]);else for(;++G<f1;)D.set(J(e9=I[G],G,I),e9)}else if(I)for(G in I)D.set(G,I[G]);return D}
function YBF(){}
function erz(I){return function(J){for(var D={},G=0;G<I.length;G++)D[I[G]]=J[G]||"";return D}}
function z$U(I,J){var D=erz(I);return function(G,f1){return J(D(G),f1,I)}}
function R$O(I){var J=Object.create(null),D=[];I.forEach(function(G){for(var f1 in G)f1 in J||D.push(J[f1]=f1)});
return D}
function FDS(I){function J(rL,qF){function BI(){if(w2)return MHI;if(uW)return uW=!1,mb4;var OU,iY=mg,S7;if(rL.charCodeAt(iY)===34){for(;mg++<vU&&rL.charCodeAt(mg)!==34||rL.charCodeAt(++mg)===34;);(OU=mg)>=vU?w2=!0:(S7=rL.charCodeAt(mg++))===10?uW=!0:S7===13&&(uW=!0,rL.charCodeAt(mg)===10&&++mg);return rL.slice(iY+1,OU-1).replace(/""/g,'"')}for(;mg<vU;){if((S7=rL.charCodeAt(OU=mg++))===10)uW=!0;else if(S7===13)uW=!0,rL.charCodeAt(mg)===10&&++mg;else if(S7!==e9)continue;return rL.slice(iY,OU)}return w2=
!0,rL.slice(iY,vU)}
var iE=[],vU=rL.length,mg=0,Ll=0,w_,w2=vU<=0,uW=!1;rL.charCodeAt(vU-1)===10&&--vU;for(rL.charCodeAt(vU-1)===13&&--vU;(w_=BI())!==MHI;){for(var P5=[];w_!==mb4&&w_!==MHI;)P5.push(w_),w_=BI();qF&&(P5=qF(P5,Ll++))==null||iE.push(P5)}return iE}
function D(rL){return rL.map(G).join(I)}
function G(rL){return rL==null?"":f1.test(rL)?'"'+rL.replace(/"/g,'""')+'"':rL}
var f1=new RegExp('["'+I+"\n\r]"),e9=I.charCodeAt(0);return{parse:function(rL,qF){var BI,iE;rL=J(rL,function(vU,mg){if(BI)return BI(vU,mg-1);iE=vU;BI=qF?z$U(vU,qF):erz(vU)});
rL.columns=iE||[];return rL},
parseRows:J,format:function(rL,qF){qF==null&&(qF=R$O(rL));return[qF.map(G).join(I)].concat(rL.map(function(BI){return qF.map(function(iE){return G(BI[iE])}).join(I)})).join("\n")},
formatRows:function(rL){return rL.map(D).join("\n")}}}
function trO(I){if(!I.ok)throw Error("we`"+I.status+"`"+I.statusText);return I.text()}
function wDi(I){return function(J,D,G){arguments.length===2&&typeof D==="function"&&(G=D,D=void 0);return fetch(J,D).then(trO).then(function(f1){return I(f1,G)})}}
function bgi(I,J,D,G){if(isNaN(J)||isNaN(D))return I;var f1,e9=I._root;G={data:G};var rL=I._x0,qF=I._y0,BI=I._x1,iE=I._y1,vU,mg,Ll,w_,w2;if(!e9)return I._root=G,I;for(;e9.length;)if((Ll=J>=(vU=(rL+BI)/2))?rL=vU:BI=vU,(w_=D>=(mg=(qF+iE)/2))?qF=mg:iE=mg,f1=e9,!(e9=e9[w2=w_<<1|Ll]))return f1[w2]=G,I;var uW=+I._x.call(null,e9.data);var P5=+I._y.call(null,e9.data);if(J===uW&&D===P5)return G.next=e9,f1?f1[w2]=G:I._root=G,I;do f1=f1?f1[w2]=Array(4):I._root=Array(4),(Ll=J>=(vU=(rL+BI)/2))?rL=vU:BI=vU,(w_=
D>=(mg=(qF+iE)/2))?qF=mg:iE=mg;while((w2=w_<<1|Ll)===(Ll=(P5>=mg)<<1|uW>=vU));return f1[Ll]=e9,f1[w2]=G,I}
function oU(I,J,D,G,f1){this.node=I;this.x0=J;this.y0=D;this.x1=G;this.y1=f1}
function BxM(I){return I[0]}
function v2O(I){return I[1]}
function SSN(I,J,D,G,f1,e9){this._x=I;this._y=J;this._x0=D;this._y0=G;this._x1=f1;this._y1=e9;this._root=void 0}
function lO4(I){for(var J={data:I.data},D=J;I=I.next;)D=D.next={data:I.data};return J}
function hCE(I,J){if((J=(I=J?I.toExponential(J-1):I.toExponential()).indexOf("e"))<0)return null;var D=I.slice(0,J);return[D.length>1?D[0]+D.slice(2):D,+I.slice(J+1)]}
function E2M(I){return I=hCE(Math.abs(I)),I?I[1]:NaN}
function n2x(I,J){return function(D,G){for(var f1=D.length,e9=[],rL=0,qF=I[0],BI=0;f1>0&&qF>0;){BI+qF+1>G&&(qF=Math.max(1,G-BI));e9.push(D.substring(f1-=qF,f1+qF));if((BI+=qF+1)>G)break;qF=I[rL=(rL+1)%I.length]}return e9.reverse().join(J)}}
function o26(I){return function(J){return J.replace(/[0-9]/g,function(D){return I[+D]})}}
function UhE(I){return new qSQ(I)}
function qSQ(I){if(!(J=frO.exec(I)))throw Error("xe`"+I);var J;this.fill=J[1]||" ";this.align=J[2]||">";this.sign=J[3]||"-";this.symbol=J[4]||"";this.zero=!!J[5];this.width=J[6]&&+J[6];this.comma=!!J[7];this.precision=J[8]&&+J[8].slice(1);this.trim=!!J[9];this.type=J[10]||""}
function ssF(I,J){J=hCE(I,J);if(!J)return I+"";I=J[0];J=J[1];return J<0?"0."+Array(-J).join("0")+I:I.length>J+1?I.slice(0,J+1)+"."+I.slice(J+1):I+Array(J-I.length+2).join("0")}
function r$X(I){return I}
function x96(I){function J(qF){function BI($b){var QR=S7,Yp=Xw,XL,vz;if(iY==="c")Yp=zc($b)+Yp,$b="";else{$b=+$b;var r_=$b<0;$b=zc(Math.abs($b),P5);if(OU){var Lp=$b.length,C3=1,kH=-1;a:for(;C3<Lp;++C3)switch($b[C3]){case ".":kH=XL=C3;break;case "0":kH===0&&(kH=C3);XL=C3;break;default:if(!+$b[C3])break a;kH>0&&(kH=0)}$b=kH>0?$b.slice(0,kH)+$b.slice(XL+1):$b}r_&&+$b===0&&(r_=!1);QR=(r_?mg==="("?mg:"-":mg==="-"||mg==="("?"":mg)+QR;Yp=(iY==="s"?PMP[8+aOz/3]:"")+Yp+(r_&&mg==="("?")":"");if(Fb)for(r_=-1,
XL=$b.length;++r_<XL;)if(vz=$b.charCodeAt(r_),48>vz||vz>57){Yp=(vz===46?f1+$b.slice(r_+1):$b.slice(r_))+Yp;$b=$b.slice(0,r_);break}}uW&&!w_&&($b=D($b,Infinity));vz=QR.length+$b.length+Yp.length;r_=vz<w2?Array(w2-vz+1).join(iE):"";uW&&w_&&($b=D(r_+$b,r_.length?w2-Yp.length:Infinity),r_="");switch(vU){case "<":$b=QR+$b+Yp+r_;break;case "=":$b=QR+r_+$b+Yp;break;case "^":$b=r_.slice(0,vz=r_.length>>1)+QR+$b+Yp+r_.slice(vz);break;default:$b=r_+QR+$b+Yp}return e9($b)}
qF=UhE(qF);var iE=qF.fill,vU=qF.align,mg=qF.sign,Ll=qF.symbol,w_=qF.zero,w2=qF.width,uW=qF.comma,P5=qF.precision,OU=qF.trim,iY=qF.type;iY==="n"?(uW=!0,iY="g"):Zg4[iY]||(P5==null&&(P5=12),OU=!0,iY="g");if(w_||iE==="0"&&vU==="=")w_=!0,iE="0",vU="=";var S7=Ll==="$"?G[0]:Ll==="#"&&/[boxX]/.test(iY)?"0"+iY.toLowerCase():"",Xw=Ll==="$"?G[1]:/[%p]/.test(iY)?rL:"",zc=Zg4[iY],Fb=/[defgprs%]/.test(iY);P5=P5==null?6:/[gprs]/.test(iY)?Math.max(1,Math.min(21,P5)):Math.max(0,Math.min(20,P5));BI.toString=function(){return qF+
""};
return BI}
var D=I.grouping&&I.thousands?n2x(I.grouping,I.thousands):r$X,G=I.currency,f1=I.decimal,e9=I.numerals?o26(I.numerals):r$X,rL=I.percent||"%";return{format:J,formatPrefix:function(qF,BI){var iE=J((qF=UhE(qF),qF.type="f",qF));qF=Math.max(-8,Math.min(8,Math.floor(E2M(BI)/3)))*3;var vU=Math.pow(10,-qF),mg=PMP[8+qF/3];return function(Ll){return iE(vU*Ll)+mg}}}}
function jf(){this.reset()}
function CMX(I,J,D){var G=I.s=J+D,f1=G-J;I.t=J-(G-f1)+(D-f1)}
function AvE(I){return I>1?$C:I<-1?-$C:Math.asin(I)}
function c_b(){}
function MOi(I){var J=I[0];I=I[1];var D=LU(I);return[D*LU(J),D*Ib(J),Ib(I)]}
function Skl(I,J){return[I[1]*J[2]-I[2]*J[1],I[2]*J[0]-I[0]*J[2],I[0]*J[1]-I[1]*J[0]]}
function Ubg(I){var J=VaE(I[0]*I[0]+I[1]*I[1]+I[2]*I[2]);I[0]/=J;I[1]/=J;I[2]/=J}
function y__(){var I=[],J;return{point:function(D,G){J.push([D,G])},
lineStart:function(){I.push(J=[])},
lineEnd:c_b,rejoin:function(){I.length>1&&I.push(I.pop().concat(I.shift()))},
result:function(){var D=I;I=[];J=null;return D}}}
function DBF(I,J,D,G){this.x=I;this.z=J;this.o=D;this.e=G;this.v=!1;this.n=this.p=null}
function pFR(I,J,D,G,f1){var e9=[],rL=[];I.forEach(function(mg){if(!((Ll=mg.length-1)<=0)){var Ll,w_=mg[0],w2=mg[Ll],uW=w_;if(eG(uW[0]-w2[0])<1E-6&&eG(uW[1]-w2[1])<1E-6){f1.lineStart();for(qF=0;qF<Ll;++qF)f1.point((w_=mg[qF])[0],w_[1]);f1.lineEnd()}else e9.push(Ll=new DBF(w_,mg,null,!0)),rL.push(Ll.o=new DBF(w_,null,Ll,!1)),e9.push(Ll=new DBF(w2,mg,null,!1)),rL.push(Ll.o=new DBF(w2,null,Ll,!0))}});
if(e9.length){rL.sort(J);qk1(e9);qk1(rL);var qF=0;for(I=rL.length;qF<I;++qF)rL[qF].e=D=!D;D=e9[0];for(var BI;;){for(var iE=D,vU=!0;iE.v;)if((iE=iE.n)===D)return;J=iE.z;f1.lineStart();do{iE.v=iE.o.v=!0;if(iE.e){if(vU)for(qF=0,I=J.length;qF<I;++qF)f1.point((BI=J[qF])[0],BI[1]);else G(iE.x,iE.n.x,1,f1);iE=iE.n}else{if(vU)for(J=iE.p.z,qF=J.length-1;qF>=0;--qF)f1.point((BI=J[qF])[0],BI[1]);else G(iE.x,iE.p.x,-1,f1);iE=iE.p}iE=iE.o;J=iE.z;vU=!vU}while(!iE.v);f1.lineEnd()}}}
function qk1(I){if(J=I.length){for(var J,D=0,G=I[0],f1;++D<J;)G.n=f1=I[D],f1.p=G,G=f1;G.n=f1=I[0];f1.p=G}}
function QWK(I){return I.length>1}
function XF0(I,J){return((I=I.x)[0]<0?I[1]-$C-1E-6:$C-I[1])-((J=J.x)[0]<0?J[1]-$C-1E-6:$C-J[1])}
function J8E(){}
function J$o(I){return function(J,D){var G=LU(J),f1=LU(D);G=I(G*f1);return[G*f1*Ib(J),G*Ib(D)]}}
function ET(I){return function(J,D){var G=VaE(J*J+D*D),f1=I(G),e9=Ib(f1);f1=LU(f1);return[KDz(J*e9,G*f1),AvE(G&&D*e9/G)]}}
function eup(I){var J=0,D=I.children,G=D&&D.length;if(G)for(;--G>=0;)J+=D[G].value;else J=1;I.value=J}
function dbg(I,J){var D=new nm(I);I=+I.value&&(D.value=I.value);var G,f1=[D],e9,rL,qF,BI;for(J==null&&(J=FPb);G=f1.pop();)if(I&&(G.value=+G.data.value),(rL=J(G.data))&&(BI=rL.length))for(G.children=Array(BI),qF=BI-1;qF>=0;--qF)f1.push(e9=G.children[qF]=new nm(rL[qF])),e9.parent=G,e9.depth=G.depth+1;return D.eachBefore(m9C)}
function FPb(I){return I.children}
function wFb(I){I.data=I.data.data}
function m9C(I){var J=0;do I.height=J;while((I=I.parent)&&I.height<++J)}
function nm(I){this.data=I;this.depth=this.height=0;this.parent=null}
function rM(I,J,D,G){function f1(e9){return I(e9=new Date(+e9)),e9}
f1.floor=f1;f1.ceil=function(e9){return I(e9=new Date(e9-1)),J(e9,1),I(e9),e9};
f1.round=function(e9){var rL=f1(e9),qF=f1.ceil(e9);return e9-rL<qF-e9?rL:qF};
f1.offset=function(e9,rL){return J(e9=new Date(+e9),rL==null?1:Math.floor(rL)),e9};
f1.range=function(e9,rL,qF){var BI=[],iE;e9=f1.ceil(e9);qF=qF==null?1:Math.floor(qF);if(!(e9<rL&&qF>0))return BI;do BI.push(iE=new Date(+e9)),J(e9,qF),I(e9);while(iE<e9&&e9<rL);return BI};
f1.filter=function(e9){return rM(function(rL){if(rL>=rL)for(;I(rL),!e9(rL);)rL.setTime(rL-1)},function(rL,qF){if(rL>=rL)if(qF<0)for(;++qF<=0;)for(;J(rL,-1),!e9(rL););
else for(;--qF>=0;)for(;J(rL,1),!e9(rL););})};
D&&(f1.count=function(e9,rL){KwQ.setTime(+e9);dhI.setTime(+rL);I(KwQ);I(dhI);return Math.floor(D(KwQ,dhI))},f1.every=function(e9){e9=Math.floor(e9);
return isFinite(e9)&&e9>0?e9>1?f1.filter(G?function(rL){return G(rL)%e9===0}:function(rL){return f1.count(0,rL)%e9===0}):f1:null});
return f1}
function uV(I){return rM(function(J){J.setDate(J.getDate()-(J.getDay()+7-I)%7);J.setHours(0,0,0,0)},function(J,D){J.setDate(J.getDate()+D*7)},function(J,D){return(D-J-(D.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/6048E5})}
function jA(I){return rM(function(J){J.setUTCDate(J.getUTCDate()-(J.getUTCDay()+7-I)%7);J.setUTCHours(0,0,0,0)},function(J,D){J.setUTCDate(J.getUTCDate()+D*7)},function(J,D){return(D-J)/6048E5})}
function byb(I){if(0<=I.y&&I.y<100){var J=new Date(-1,I.m,I.d,I.H,I.M,I.S,I.L);J.setFullYear(I.y);return J}return new Date(I.y,I.m,I.d,I.H,I.M,I.S,I.L)}
function HpG(I){if(0<=I.y&&I.y<100){var J=new Date(Date.UTC(-1,I.m,I.d,I.H,I.M,I.S,I.L));J.setUTCFullYear(I.y);return J}return new Date(Date.UTC(I.y,I.m,I.d,I.H,I.M,I.S,I.L))}
function ov(I){return{y:I,m:0,d:1,H:0,M:0,S:0,L:0}}
function lrp(I){function J(Yp,XL){return function(vz){var r_=[],Lp=-1,C3=0,kH=Yp.length,wB,KM;for(vz instanceof Date||(vz=new Date(+vz));++Lp<kH;)if(Yp.charCodeAt(Lp)===37){r_.push(Yp.slice(C3,Lp));(C3=IO1[wB=Yp.charAt(++Lp)])!=null?wB=Yp.charAt(++Lp):C3=wB==="e"?" ":"0";if(KM=XL[wB])wB=KM(vz,C3);r_.push(wB);C3=Lp+1}r_.push(Yp.slice(C3,Lp));return r_.join("")}}
function D(Yp,XL){return function(vz){var r_=ov(1900);if(G(r_,Yp,vz,0)!=vz.length)return null;if("Q"in r_)return new Date(r_.Q);"p"in r_&&(r_.H=r_.H%12+r_.p*12);if("V"in r_){if(r_.V<1||r_.V>53)return null;"w"in r_||(r_.w=1);if("Z"in r_){vz=HpG(ov(r_.y));var Lp=vz.getUTCDay();vz=Lp>4||Lp===0?IT1.ceil(vz):IT1(vz);vz=Ykg.offset(vz,(r_.V-1)*7);r_.y=vz.getUTCFullYear();r_.m=vz.getUTCMonth();r_.d=vz.getUTCDate()+(r_.w+6)%7}else vz=XL(ov(r_.y)),Lp=vz.getDay(),vz=Lp>4||Lp===0?YSs.ceil(vz):YSs(vz),vz=hrw.offset(vz,
(r_.V-1)*7),r_.y=vz.getFullYear(),r_.m=vz.getMonth(),r_.d=vz.getDate()+(r_.w+6)%7}else if("W"in r_||"U"in r_)"w"in r_||(r_.w="u"in r_?r_.u%7:"W"in r_?1:0),Lp="Z"in r_?HpG(ov(r_.y)).getUTCDay():XL(ov(r_.y)).getDay(),r_.m=0,r_.d="W"in r_?(r_.w+6)%7+r_.W*7-(Lp+5)%7:r_.w+r_.U*7-(Lp+6)%7;return"Z"in r_?(r_.H+=r_.Z/100|0,r_.M+=r_.Z%100,HpG(r_)):XL(r_)}}
function G(Yp,XL,vz,r_){for(var Lp=0,C3=XL.length,kH=vz.length,wB;Lp<C3;){if(r_>=kH)return-1;wB=XL.charCodeAt(Lp++);if(wB===37){if(wB=XL.charAt(Lp++),wB=QR[wB in IO1?XL.charAt(Lp++):wB],!wB||(r_=wB(Yp,vz,r_))<0)return-1}else if(wB!=vz.charCodeAt(r_++))return-1}return r_}
var f1=I.dateTime,e9=I.date,rL=I.time,qF=I.periods,BI=I.days,iE=I.shortDays,vU=I.months,mg=I.shortMonths,Ll=fm(qF),w_=xc(qF),w2=fm(BI),uW=xc(BI),P5=fm(iE),OU=xc(iE),iY=fm(vU),S7=xc(vU),Xw=fm(mg),zc=xc(mg),Fb={a:function(Yp){return iE[Yp.getDay()]},
A:function(Yp){return BI[Yp.getDay()]},
b:function(Yp){return mg[Yp.getMonth()]},
B:function(Yp){return vU[Yp.getMonth()]},
c:null,d:A$i,e:A$i,f:sW3,H:r_6,I:PgC,j:arC,L:VO1,m:ZyU,M:Cg0,p:function(Yp){return qF[+(Yp.getHours()>=12)]},
Q:DbP,s:HgU,S:MPx,u:SoU,U:U9U,V:qop,w:J_p,W:KPx,x:null,X:null,y:d90,Y:Ir3,Z:YoO,"%":gV1},$b={a:function(Yp){return iE[Yp.getUTCDay()]},
A:function(Yp){return BI[Yp.getUTCDay()]},
b:function(Yp){return mg[Yp.getUTCMonth()]},
B:function(Yp){return vU[Yp.getUTCMonth()]},
c:null,d:NRz,e:NRz,f:hux,H:A__,I:VPM,j:D9x,L:u0l,m:HyM,M:g26,p:function(Yp){return qF[+(Yp.getUTCHours()>=12)]},
Q:DbP,s:HgU,S:NkU,u:uX3,U:jWU,V:Oyb,w:kuC,W:WPO,x:null,X:null,y:$96,Y:LPb,Z:Gub,"%":gV1},QR={a:function(Yp,XL,vz){return(XL=P5.exec(XL.slice(vz)))?(Yp.w=OU[XL[0].toLowerCase()],vz+XL[0].length):-1},
A:function(Yp,XL,vz){return(XL=w2.exec(XL.slice(vz)))?(Yp.w=uW[XL[0].toLowerCase()],vz+XL[0].length):-1},
b:function(Yp,XL,vz){return(XL=Xw.exec(XL.slice(vz)))?(Yp.m=zc[XL[0].toLowerCase()],vz+XL[0].length):-1},
B:function(Yp,XL,vz){return(XL=iY.exec(XL.slice(vz)))?(Yp.m=S7[XL[0].toLowerCase()],vz+XL[0].length):-1},
c:function(Yp,XL,vz){return G(Yp,f1,XL,vz)},
d:jsU,e:jsU,f:Tkx,H:Ogw,I:Ogw,j:iyP,L:zuC,m:Ru0,M:tPM,p:function(Yp,XL,vz){return(XL=Ll.exec(XL.slice(vz)))?(Yp.p=w_[XL[0].toLowerCase()],vz+XL[0].length):-1},
Q:Bkx,s:vY6,S:EY1,u:nYO,U:oYK,V:f6d,w:xT_,W:ctb,x:function(Yp,XL,vz){return G(Yp,e9,XL,vz)},
X:function(Yp,XL,vz){return G(Yp,rL,XL,vz)},
y:ytd,Y:plP,Z:Q_1,"%":Xlx};Fb.x=J(e9,Fb);Fb.X=J(rL,Fb);Fb.c=J(f1,Fb);$b.x=J(e9,$b);$b.X=J(rL,$b);$b.c=J(f1,$b);return{format:function(Yp){var XL=J(Yp,Fb);XL.toString=function(){return Yp};
return XL},
parse:function(Yp){var XL=D(Yp,byb);XL.toString=function(){return Yp};
return XL},
utcFormat:function(Yp){var XL=J(Yp,$b);XL.toString=function(){return Yp};
return XL},
utcParse:function(Yp){var XL=D(Yp,HpG);XL.toString=function(){return Yp};
return XL}}}
function Pf(I,J,D){var G=I<0?"-":"";I=(G?-I:I)+"";var f1=I.length;return G+(f1<D?Array(D-f1+1).join(J)+I:I)}
function ek0(I){return I.replace(F2b,"\\$&")}
function fm(I){return new RegExp("^(?:"+I.map(ek0).join("|")+")","i")}
function xc(I){for(var J={},D=-1,G=I.length;++D<G;)J[I[D].toLowerCase()]=D;return J}
function xT_(I,J,D){return(J=Uf.exec(J.slice(D,D+1)))?(I.w=+J[0],D+J[0].length):-1}
function nYO(I,J,D){return(J=Uf.exec(J.slice(D,D+1)))?(I.u=+J[0],D+J[0].length):-1}
function oYK(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.U=+J[0],D+J[0].length):-1}
function f6d(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.V=+J[0],D+J[0].length):-1}
function ctb(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.W=+J[0],D+J[0].length):-1}
function plP(I,J,D){return(J=Uf.exec(J.slice(D,D+4)))?(I.y=+J[0],D+J[0].length):-1}
function ytd(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.y=+J[0]+(+J[0]>68?1900:2E3),D+J[0].length):-1}
function Q_1(I,J,D){return(J=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(J.slice(D,D+6)))?(I.Z=J[1]?0:-(J[2]+(J[3]||"00")),D+J[0].length):-1}
function Ru0(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.m=J[0]-1,D+J[0].length):-1}
function jsU(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.d=+J[0],D+J[0].length):-1}
function iyP(I,J,D){return(J=Uf.exec(J.slice(D,D+3)))?(I.m=0,I.d=+J[0],D+J[0].length):-1}
function Ogw(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.H=+J[0],D+J[0].length):-1}
function tPM(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.M=+J[0],D+J[0].length):-1}
function EY1(I,J,D){return(J=Uf.exec(J.slice(D,D+2)))?(I.S=+J[0],D+J[0].length):-1}
function zuC(I,J,D){return(J=Uf.exec(J.slice(D,D+3)))?(I.L=+J[0],D+J[0].length):-1}
function Tkx(I,J,D){return(J=Uf.exec(J.slice(D,D+6)))?(I.L=Math.floor(J[0]/1E3),D+J[0].length):-1}
function Xlx(I,J,D){return(I=mTO.exec(J.slice(D,D+1)))?D+I[0].length:-1}
function Bkx(I,J,D){return(J=Uf.exec(J.slice(D)))?(I.Q=+J[0],D+J[0].length):-1}
function vY6(I,J,D){return(J=Uf.exec(J.slice(D)))?(I.Q=+J[0]*1E3,D+J[0].length):-1}
function A$i(I,J){return Pf(I.getDate(),J,2)}
function r_6(I,J){return Pf(I.getHours(),J,2)}
function PgC(I,J){return Pf(I.getHours()%12||12,J,2)}
function arC(I,J){return Pf(1+hrw.count(px(I),I),J,3)}
function VO1(I,J){return Pf(I.getMilliseconds(),J,3)}
function sW3(I,J){return VO1(I,J)+"000"}
function ZyU(I,J){return Pf(I.getMonth()+1,J,2)}
function Cg0(I,J){return Pf(I.getMinutes(),J,2)}
function MPx(I,J){return Pf(I.getSeconds(),J,2)}
function SoU(I){I=I.getDay();return I===0?7:I}
function U9U(I,J){return Pf(wlK.count(px(I),I),J,2)}
function qop(I,J){var D=I.getDay();I=D>=4||D===0?hAF(I):hAF.ceil(I);return Pf(hAF.count(px(I),I)+(px(I).getDay()===4),J,2)}
function J_p(I){return I.getDay()}
function KPx(I,J){return Pf(YSs.count(px(I),I),J,2)}
function d90(I,J){return Pf(I.getFullYear()%100,J,2)}
function Ir3(I,J){return Pf(I.getFullYear()%1E4,J,4)}
function YoO(I){I=I.getTimezoneOffset();return(I>0?"-":(I*=-1,"+"))+Pf(I/60|0,"0",2)+Pf(I%60,"0",2)}
function NRz(I,J){return Pf(I.getUTCDate(),J,2)}
function A__(I,J){return Pf(I.getUTCHours(),J,2)}
function VPM(I,J){return Pf(I.getUTCHours()%12||12,J,2)}
function D9x(I,J){return Pf(1+Ykg.count(QF(I),I),J,3)}
function u0l(I,J){return Pf(I.getUTCMilliseconds(),J,3)}
function hux(I,J){return u0l(I,J)+"000"}
function HyM(I,J){return Pf(I.getUTCMonth()+1,J,2)}
function g26(I,J){return Pf(I.getUTCMinutes(),J,2)}
function NkU(I,J){return Pf(I.getUTCSeconds(),J,2)}
function uX3(I){I=I.getUTCDay();return I===0?7:I}
function jWU(I,J){return Pf(bLU.count(QF(I),I),J,2)}
function Oyb(I,J){var D=I.getUTCDay();I=D>=4||D===0?A89(I):A89.ceil(I);return Pf(A89.count(QF(I),I)+(QF(I).getUTCDay()===4),J,2)}
function kuC(I){return I.getUTCDay()}
function WPO(I,J){return Pf(IT1.count(QF(I),I),J,2)}
function $96(I,J){return Pf(I.getUTCFullYear()%100,J,2)}
function LPb(I,J){return Pf(I.getUTCFullYear()%1E4,J,4)}
function Gub(){return"+0000"}
function gV1(){return"%"}
function DbP(I){return+I}
function HgU(I){return Math.floor(+I/1E3)}
function fI(I){for(var J=I.length/6|0,D=Array(J),G=0;G<J;)D[G]="#"+I.slice(G*6,++G*6);return D}
function Gr(I){return l6O(I[I.length-1])}
function g7E(I){var J=I.length;return function(D){return I[Math.max(0,Math.min(J-1,Math.floor(D*J)))]}}
function k4w(I){this._context=I}
function WDF(I){this._curve=I}
function $bU(I,J,D){var G=I._x1-I._x0;J-=I._x1;var f1=(I._y1-I._y0)/(G||J<0&&-0);I=(D-I._y1)/(J||G<0&&-0);return((f1<0?-1:1)+(I<0?-1:1))*Math.min(Math.abs(f1),Math.abs(I),.5*Math.abs((f1*J+I*G)/(G+J)))||0}
function LDU(I,J){var D=I._x1-I._x0;return D?(3*(I._y1-I._y0)/D-J)/2:J}
function VHE(I,J,D){var G=I._x0,f1=I._x1,e9=I._y1,rL=(f1-G)/3;I._context.bezierCurveTo(G+rL,I._y0+rL*J,f1-rL,e9-rL*D,f1,e9)}
function DhE(I){this._context=I}
function G4g(I){this._context=I}
function c9(I,J,D){this.k=I;this.x=J;this.y=D}
(function(I){I.length===1&&(I=E(I));return{left:function(J,D,G,f1){G==null&&(G=0);f1==null&&(f1=J.length);for(;G<f1;){var e9=G+f1>>>1;I(J[e9],D)<0?G=e9+1:f1=e9}return G},
right:function(J,D,G,f1){G==null&&(G=0);f1==null&&(f1=J.length);for(;G<f1;){var e9=G+f1>>>1;I(J[e9],D)>0?f1=e9:G=e9+1}return G}}})(v);
var QyM={value:function(){}};
f.prototype=n.prototype={constructor:f,on:function(I,J){var D=this._,G=x(I+"",D),f1,e9=-1,rL=G.length;if(arguments.length<2)for(;++e9<rL;){var qF;if(qF=f1=(I=G[e9]).type){a:{qF=D[f1];for(var BI=0,iE=qF.length;BI<iE;++BI)if((f1=qF[BI]).name===I.name){f1=f1.value;break a}f1=void 0}qF=f1}if(qF)return f1}else{if(J!=null&&typeof J!=="function")throw Error("ye`"+J);for(;++e9<rL;)if(f1=(I=G[e9]).type)D[f1]=y(D[f1],I.name,J);else if(J==null)for(f1 in D)D[f1]=y(D[f1],I.name,null);return this}},
copy:function(){var I={},J=this._,D;for(D in J)I[D]=J[D].slice();return new f(I)},
call:function(I,J){if((f1=arguments.length-2)>0)for(var D=Array(f1),G=0,f1,e9;G<f1;++G)D[G]=arguments[G+2];if(!this._.hasOwnProperty(I))throw Error("se`"+I);e9=this._[I];G=0;for(f1=e9.length;G<f1;++G)e9[G].value.apply(J,D)},
apply:function(I,J,D){if(!this._.hasOwnProperty(I))throw Error("se`"+I);I=this._[I];for(var G=0,f1=I.length;G<f1;++G)I[G].value.apply(J,D)}};
var Wj={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/"},TRl=function(I){return function(){return this.matches(I)}};
if(typeof document!=="undefined"){var y_=document.documentElement;if(!y_.matches){var s_p=y_.webkitMatchesSelector||y_.msMatchesSelector||y_.mozMatchesSelector||y_.oMatchesSelector;TRl=function(I){return function(){return s_p.call(this,I)}}}}var igl=TRl;
M.prototype={constructor:M,appendChild:function(I){return this._parent.insertBefore(I,this._next)},
insertBefore:function(I,J){return this._parent.insertBefore(I,J)},
querySelector:function(I){return this._parent.querySelector(I)},
querySelectorAll:function(I){return this._parent.querySelectorAll(I)}};
var tH1={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(tH1={mouseenter:"mouseover",mouseleave:"mouseout"}));var XMR=[null];lX.prototype=cb.prototype={constructor:lX,select:function(I){typeof I!=="function"&&(I=r(I));for(var J=this._groups,D=J.length,G=Array(D),f1=0;f1<D;++f1)for(var e9=J[f1],rL=e9.length,qF=G[f1]=Array(rL),BI,iE,vU=0;vU<rL;++vU)(BI=e9[vU])&&(iE=I.call(BI,BI.__data__,vU,e9))&&("__data__"in BI&&(iE.__data__=BI.__data__),qF[vU]=iE);return new lX(G,this._parents)},
filter:function(I){typeof I!=="function"&&(I=igl(I));for(var J=this._groups,D=J.length,G=Array(D),f1=0;f1<D;++f1)for(var e9=J[f1],rL=e9.length,qF=G[f1]=[],BI,iE=0;iE<rL;++iE)(BI=e9[iE])&&I.call(BI,BI.__data__,iE,e9)&&qF.push(BI);return new lX(G,this._parents)},
data:function(I,J){if(!I)return w_=Array(this.size()),iE=-1,this.each(function(iY){w_[++iE]=iY}),w_;
var D=J?Y:d,G=this._parents,f1=this._groups;typeof I!=="function"&&(I=U(I));for(var e9=f1.length,rL=Array(e9),qF=Array(e9),BI=Array(e9),iE=0;iE<e9;++iE){var vU=G[iE],mg=f1[iE],Ll=mg.length,w_=I.call(vU,vU&&vU.__data__,iE,G),w2=w_.length,uW=qF[iE]=Array(w2),P5=rL[iE]=Array(w2);Ll=BI[iE]=Array(Ll);D(vU,mg,uW,P5,Ll,w_,J);mg=vU=0;for(var OU;vU<w2;++vU)if(Ll=uW[vU]){for(vU>=mg&&(mg=vU+1);!(OU=P5[mg])&&++mg<w2;);Ll._next=OU||null}}rL=new lX(rL,G);rL._enter=qF;rL._exit=BI;return rL},
exit:function(){return new lX(this._exit||this._groups.map(a),this._parents)},
merge:function(I){var J=this._groups;I=I._groups;for(var D=J.length,G=Math.min(D,I.length),f1=Array(D),e9=0;e9<G;++e9)for(var rL=J[e9],qF=I[e9],BI=rL.length,iE=f1[e9]=Array(BI),vU,mg=0;mg<BI;++mg)if(vU=rL[mg]||qF[mg])iE[mg]=vU;for(;e9<D;++e9)f1[e9]=J[e9];return new lX(f1,this._parents)},
order:function(){for(var I=this._groups,J=-1,D=I.length;++J<D;)for(var G=I[J],f1=G.length-1,e9=G[f1],rL;--f1>=0;)if(rL=G[f1])e9&&e9!==rL.nextSibling&&e9.parentNode.insertBefore(rL,e9),e9=rL;return this},
sort:function(I){function J(mg,Ll){return mg&&Ll?I(mg.__data__,Ll.__data__):!mg-!Ll}
I||(I=V);for(var D=this._groups,G=D.length,f1=Array(G),e9=0;e9<G;++e9){for(var rL=D[e9],qF=rL.length,BI=f1[e9]=Array(qF),iE,vU=0;vU<qF;++vU)if(iE=rL[vU])BI[vU]=iE;BI.sort(J)}return(new lX(f1,this._parents)).order()},
call:function(){var I=arguments[0];arguments[0]=this;I.apply(null,arguments);return this},
nodes:function(){var I=Array(this.size()),J=-1;this.each(function(){I[++J]=this});
return I},
node:function(){for(var I=this._groups,J=0,D=I.length;J<D;++J)for(var G=I[J],f1=0,e9=G.length;f1<e9;++f1){var rL=G[f1];if(rL)return rL}return null},
size:function(){var I=0;this.each(function(){++I});
return I},
empty:function(){return!this.node()},
each:function(I){for(var J=this._groups,D=0,G=J.length;D<G;++D)for(var f1=J[D],e9=0,rL=f1.length,qF;e9<rL;++e9)(qF=f1[e9])&&I.call(qF,qF.__data__,e9,f1);return this},
attr:function(I,J){var D=Q(I);if(arguments.length<2){var G=this.node();return D.local?G.getAttributeNS(D.space,D.local):G.getAttribute(D)}return this.each((J==null?D.local?T:O:typeof J==="function"?D.local?QE:t:D.local?xX:L)(D,J))},
style:function(I,J,D){return arguments.length>1?this.each((J==null?MF:typeof J==="function"?JG:K1)(I,J,D==null?"":D)):$X(this.node(),I)},
property:function(I,J){return arguments.length>1?this.each((J==null?HI:typeof J==="function"?WI:uE)(I,J)):this.node()[I]},
text:function(I){return arguments.length?this.each(I==null?bX:(typeof I==="function"?qi:n0)(I)):this.node().textContent},
html:function(I){return arguments.length?this.each(I==null?fl:(typeof I==="function"?IF:yP)(I)):this.node().innerHTML},
append:function(I){var J=typeof I==="function"?I:b(I);return this.select(function(){return this.appendChild(J.apply(this,arguments))})},
insert:function(I,J){var D=typeof I==="function"?I:b(I),G=J==null?QP:typeof J==="function"?J:r(J);return this.select(function(){return this.insertBefore(D.apply(this,arguments),G.apply(this,arguments)||null)})},
remove:function(){return this.each(T3)},
clone:function(I){return this.select(I?yE:aK)},
datum:function(I){return arguments.length?this.property("__data__",I):this.node().__data__},
on:function(I,J,D){var G=JR(I+""),f1=G.length,e9;if(arguments.length<2){var rL=this.node().__on;if(rL)for(var qF=0,BI=rL.length,iE;qF<BI;++qF){var vU=0;for(iE=rL[qF];vU<f1;++vU)if((e9=G[vU]).type===iE.type&&e9.name===iE.name)return iE.value}}else{rL=J?$w:d1;D==null&&(D=!1);for(vU=0;vU<f1;++vU)this.each(rL(G[vU],J,D));return this}},
dispatch:function(I,J){return this.each((typeof J==="function"?kX:eo)(I,J))}};
var e$C=0;Zz.prototype=function(){return new Zz}.prototype={constructor:Zz,
get:function(I){for(var J=this._;!(J in I);)if(!(I=I.parentNode))return;return I[J]},
set:function(I,J){return I[this._]=J},
remove:function(I){return this._ in I&&delete I[this._]},
toString:function(){return this._}};
var X3=1/.7,FeC=/^#([0-9a-f]{3})$/,mmM=/^#([0-9a-f]{6})$/,wMU=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),bod=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),lbU=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),sy_=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*\\)$"),
rPd=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),PyO=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*\\)$"),B7S={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};
C0(fG,lr,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
C0(ep,mA,ZL(fG,{brighter:function(I){I=I==null?X3:Math.pow(X3,I);return new ep(this.r*I,this.g*I,this.b*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new ep(this.r*I,this.g*I,this.b*I,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"#"+fc(this.r)+fc(this.g)+fc(this.b)},
toString:function(){var I=this.opacity;I=isNaN(I)?1:Math.max(0,Math.min(1,I));return(I===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))+(I===1?")":", "+I+")")}}));
C0(Wv,Hp,ZL(fG,{brighter:function(I){I=I==null?X3:Math.pow(X3,I);return new Wv(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new Wv(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=this.h%360+(this.h<0)*360,J=this.l,D=J+(J<.5?J:1-J)*(isNaN(I)||isNaN(this.s)?0:this.s);J=2*J-D;return new ep(e8(I>=240?I-240:I+120,J,D),e8(I,J,D),e8(I<120?I+240:I-120,J,D),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 vVw=Math.PI/180,oVw=180/Math.PI,nV1=4/29,c1=6/29,EVS=3*c1*c1,abU=c1*c1*c1;C0(a$,function(I,J,D,G){return arguments.length===1?Xc(I):new a$(I,J,D,G==null?1:G)},ZL(fG,{brighter:function(I){return new a$(this.l+18*(I==null?1:I),this.a,this.b,this.opacity)},
darker:function(I){return new a$(this.l-18*(I==null?1:I),this.a,this.b,this.opacity)},
rgb:function(){var I=(this.l+16)/116,J=isNaN(this.a)?I:I+this.a/500,D=isNaN(this.b)?I:I-this.b/200;J=.96422*j9(J);I=1*j9(I);D=.82521*j9(D);return new ep(s1(3.1338561*J-1.6168667*I-.4906146*D),s1(-.9787684*J+1.9161415*I+.033454*D),s1(.0719453*J-.2289914*I+1.4052427*D),this.opacity)}}));
C0(aF,Fd,ZL(fG,{brighter:function(I){return new aF(this.h,this.c,this.l+18*(I==null?1:I),this.opacity)},
darker:function(I){return new aF(this.h,this.c,this.l-18*(I==null?1:I),this.opacity)},
rgb:function(){return Xc(this).rgb()}}));
var fOw=1.78277*-.29227-.1347134789;C0(mU,r1,ZL(fG,{brighter:function(I){I=I==null?X3:Math.pow(X3,I);return new mU(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new mU(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=isNaN(this.h)?0:(this.h+120)*vVw,J=+this.l,D=isNaN(this.s)?0:this.s*J*(1-J),G=Math.cos(I);I=Math.sin(I);return new ep(255*(J+D*(-.14861*G+1.78277*I)),255*(J+D*(-.29227*G+-.90649*I)),255*(J+1.97294*G*D),this.opacity)}}));
var Qsg=function D(J){function G(e9,rL){var qF=f1((e9=mA(e9)).r,(rL=mA(rL)).r),BI=f1(e9.g,rL.g),iE=f1(e9.b,rL.b),vU=V4(e9.opacity,rL.opacity);return function(mg){e9.r=qF(mg);e9.g=BI(mg);e9.b=iE(mg);e9.opacity=vU(mg);return e9+""}}
var f1=$E(J);G.gamma=D;return G}(1),l6O=pR(function(J){var D=J.length-1;
return function(G){var f1=G<=0?G=0:G>=1?(G=1,D-1):Math.floor(G*D),e9=J[f1],rL=J[f1+1];return Mn((G-f1/D)*D,f1>0?J[f1-1]:2*e9-rL,e9,rL,f1<D-1?J[f1+2]:2*rL-e9)}});
pR(function(J){var D=J.length;return function(G){var f1=Math.floor(((G%=1)<0?++G:G)*D);return Mn((G-f1/D)*D,J[(f1+D-1)%D],J[f1%D],J[(f1+1)%D],J[(f1+2)%D])}});
var lTE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s1L=new RegExp(lTE.source,"g"),xbP=180/Math.PI,HM1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},pm,gO$,zr1,NF9,rtM=E8(function(J){if(J==="none")return HM1;pm||(pm=document.createElement("DIV"),gO$=document.documentElement,zr1=document.defaultView);pm.style.transform=J;J=zr1.getComputedStyle(gO$.appendChild(pm),null).getPropertyValue("transform");gO$.removeChild(pm);J=J.slice(7,-1).split(",");return d2(+J[0],+J[1],+J[2],+J[3],
+J[4],+J[5])},"px, ","px)","deg)"),PwC=E8(function(J){if(J==null)return HM1;
NF9||(NF9=document.createElementNS("http://www.w3.org/2000/svg","g"));NF9.setAttribute("transform",J);if(!(J=NF9.transform.baseVal.consolidate()))return HM1;J=J.matrix;return d2(J.a,J.b,J.c,J.d,J.e,J.f)},", ",")",")");
oK(hj);oK(V4);ja(hj);ja(V4);C9(hj);var N7X=C9(V4),yF=0,t5=0,v9=0,dBN,BO,KAF=0,gv=0,JvI=0,RE=typeof performance==="object"&&performance.now?performance:Date,c$l=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(J){setTimeout(J,17)};
aB.prototype=W4.prototype={constructor:aB,restart:function(J,D,G){if(typeof J!=="function")throw new TypeError("ze");G=(G==null?Od():+G)+(D==null?0:+D);this._next||BO===this||(BO?BO._next=this:dBN=this,BO=this);this._call=J;this._time=G;L6()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,L6())}};
var Cyb=n("start","end","interrupt"),MrP=[],a6x=cb.prototype.constructor,Rr6=0,ej=cb.prototype;XP.prototype=function(J){return cb().transition(J)}.prototype={constructor:XP,
select:function(J){var D=this._name,G=this._id;typeof J!=="function"&&(J=r(J));for(var f1=this._groups,e9=f1.length,rL=Array(e9),qF=0;qF<e9;++qF)for(var BI=f1[qF],iE=BI.length,vU=rL[qF]=Array(iE),mg,Ll,w_=0;w_<iE;++w_)(mg=BI[w_])&&(Ll=J.call(mg,mg.__data__,w_,BI))&&("__data__"in mg&&(Ll.__data__=mg.__data__),vU[w_]=Ll,r81(vU[w_],D,G,w_,vU,e0(mg,G)));return new XP(rL,this._parents,D,G)},
filter:function(J){typeof J!=="function"&&(J=igl(J));for(var D=this._groups,G=D.length,f1=Array(G),e9=0;e9<G;++e9)for(var rL=D[e9],qF=rL.length,BI=f1[e9]=[],iE,vU=0;vU<qF;++vU)(iE=rL[vU])&&J.call(iE,iE.__data__,vU,rL)&&BI.push(iE);return new XP(f1,this._parents,this._name,this._id)},
merge:function(J){if(J._id!==this._id)throw Error();var D=this._groups;J=J._groups;for(var G=D.length,f1=Math.min(G,J.length),e9=Array(G),rL=0;rL<f1;++rL)for(var qF=D[rL],BI=J[rL],iE=qF.length,vU=e9[rL]=Array(iE),mg,Ll=0;Ll<iE;++Ll)if(mg=qF[Ll]||BI[Ll])vU[Ll]=mg;for(;rL<G;++rL)e9[rL]=D[rL];return new XP(e9,this._parents,this._name,this._id)},
selection:function(){return new a6x(this._groups,this._parents)},
transition:function(){for(var J=this._name,D=this._id,G=++Rr6,f1=this._groups,e9=f1.length,rL=0;rL<e9;++rL)for(var qF=f1[rL],BI=qF.length,iE,vU=0;vU<BI;++vU)if(iE=qF[vU]){var mg=e0(iE,D);r81(iE,J,G,vU,qF,{time:mg.time+mg.delay+mg.duration,delay:0,duration:mg.duration,ease:mg.ease})}return new XP(f1,this._parents,J,G)},
call:ej.call,nodes:ej.nodes,node:ej.node,size:ej.size,empty:ej.empty,each:ej.each,on:function(J,D){var G=this._id;return arguments.length<2?e0(this.node(),G).on.on(J):this.each(jy3(G,J,D))},
attr:function(J,D){var G=Q(J),f1=G==="transform"?PwC:pDP;return this.attrTween(J,typeof D==="function"?(G.local?YPK:Ib0)(G,f1,aTX(this,"attr."+J,D)):D==null?(G.local?JPK:qPP)(G):(G.local?dmd:KeO)(G,f1,D+""))},
attrTween:function(J,D){var G="attr."+J;if(arguments.length<2)return(G=this.tween(G))&&G._value;if(D==null)return this.tween(G,null);if(typeof D!=="function")throw Error();var f1=Q(J);return this.tween(G,(f1.local?h$U:APp)(f1,D))},
style:function(J,D,G){var f1=J==="transform"?rtM:pDP;return D==null?this.styleTween(J,kN6(J,f1)).on("end.style."+J,We1(J)):this.styleTween(J,typeof D==="function"?LeM(J,f1,aTX(this,"style."+J,D)):$m1(J,f1,D+""),G)},
styleTween:function(J,D,G){var f1="style."+J;if(arguments.length<2)return(f1=this.tween(f1))&&f1._value;if(D==null)return this.tween(f1,null);if(typeof D!=="function")throw Error();return this.tween(f1,GNd(J,D,G==null?"":G))},
text:function(J){return this.tween("text",typeof J==="function"?ioK(aTX(this,"text",J)):Tx0(J==null?"":J+""))},
remove:function(){return this.on("end.remove",OoO(this._id))},
tween:function(J,D){var G=this._id;if(arguments.length<2){G=e0(this.node(),G).tween;for(var f1=0,e9=G.length,rL;f1<e9;++f1)if((rL=G[f1]).name===J)return rL.value;return null}return this.each((D==null?SPK:UmC)(G,J,D))},
delay:function(J){var D=this._id;return arguments.length?this.each((typeof J==="function"?VrU:DmO)(D,J)):e0(this.node(),D).delay},
duration:function(J){var D=this._id;return arguments.length?this.each((typeof J==="function"?HoU:gDC)(D,J)):e0(this.node(),D).duration},
ease:function(J){var D=this._id;return arguments.length?this.each(NxC(D,J)):e0(this.node(),D).ease}};
var ufy={time:null,delay:0,duration:250,ease:function(J){return((J*=2)<=1?J*J*J:(J-=2)*J*J+2)/2}};
cb.prototype.transition=function(J){var D;if(J instanceof XP){var G=J._id;J=J._name}else G=++Rr6,(D=ufy).time=Od(),J=J==null?null:J+"";for(var f1=this._groups,e9=f1.length,rL=0;rL<e9;++rL)for(var qF=f1[rL],BI=qF.length,iE,vU=0;vU<BI;++vU)if(iE=qF[vU]){var mg=iE,Ll=J,w_=G,w2=vU,uW=qF,P5;if(!(P5=D))a:{P5=void 0;for(var OU=G;!(P5=iE.__transition)||!(P5=P5[OU]);)if(!(iE=iE.parentNode)){P5=(ufy.time=Od(),ufy);break a}}r81(mg,Ll,w_,w2,uW,P5)}return new XP(f1,this._parents,J,G)};
["e","w"].map(ZME);["n","s"].map(ZME);"n e s w nw ne se sw".split(" ").map(ZME);CII.prototype=function(){return new CII}.prototype={constructor:CII,
moveTo:function(J,D){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+D)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(J,D){this._+="L"+(this._x1=+J)+","+(this._y1=+D)},
bezierCurveTo:function(J,D,G,f1,e9,rL){this._+="C"+ +J+","+ +D+","+ +G+","+ +f1+","+(this._x1=+e9)+","+(this._y1=+rL)},
rect:function(J,D,G,f1){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+D)+"h"+ +G+"v"+ +f1+"h"+-G+"Z"},
toString:function(){return this._}};
IYG.prototype=XDi.prototype={constructor:IYG,has:function(J){return" "+J in this},
get:function(J){return this[" "+J]},
set:function(J,D){this[" "+J]=D;return this},
remove:function(J){J=" "+J;return J in this&&delete this[J]},
clear:function(){for(var J in this)J[0]===" "&&delete this[J]},
keys:function(){var J=[],D;for(D in this)D[0]===" "&&J.push(D.slice(1));return J},
values:function(){var J=[],D;for(D in this)D[0]===" "&&J.push(this[D]);return J},
entries:function(){var J=[],D;for(D in this)D[0]===" "&&J.push({key:D.slice(1),value:this[D]});return J},
size:function(){var J=0,D;for(D in this)D[0]===" "&&++J;return J},
empty:function(){for(var J in this)if(J[0]===" ")return!1;return!0},
each:function(J){for(var D in this)D[0]===" "&&J(this[D],D.slice(1),this)}};
var OE=XDi.prototype;YBF.prototype=function(J,D){var G=new YBF;if(J instanceof YBF)J.each(function(rL){G.add(rL)});
else if(J){var f1=-1,e9=J.length;if(D==null)for(;++f1<e9;)G.add(J[f1]);else for(;++f1<e9;)G.add(D(J[f1],f1,J))}return G}.prototype={constructor:YBF,
has:OE.has,add:function(J){this[" "+J]=J;return this},
remove:OE.remove,clear:OE.clear,values:OE.keys,size:OE.size,empty:OE.empty,each:OE.each};var mb4={},MHI={},ZL_=FDS(",").parse,CwM=FDS("\t").parse;wDi(ZL_);wDi(CwM);var f5=function(J,D,G){D=new SSN(D==null?BxM:D,G==null?v2O:G,NaN,NaN,NaN,NaN);return J==null?D:D.addAll(J)}.prototype=SSN.prototype;
f5.copy=function(){var J=new SSN(this._x,this._y,this._x0,this._y0,this._x1,this._y1),D=this._root,G,f1;if(!D)return J;if(!D.length)return J._root=lO4(D),J;for(G=[{source:D,target:J._root=Array(4)}];D=G.pop();)for(var e9=0;e9<4;++e9)if(f1=D.source[e9])f1.length?G.push({source:f1,target:D.target[e9]=Array(4)}):D.target[e9]=lO4(f1);return J};
f5.add=function(J){var D=+this._x.call(null,J),G=+this._y.call(null,J);return bgi(this.cover(D,G),D,G,J)};
f5.addAll=function(J){var D,G,f1=J.length,e9,rL,qF=Array(f1),BI=Array(f1),iE=Infinity,vU=Infinity,mg=-Infinity,Ll=-Infinity;for(G=0;G<f1;++G)isNaN(e9=+this._x.call(null,D=J[G]))||isNaN(rL=+this._y.call(null,D))||(qF[G]=e9,BI[G]=rL,e9<iE&&(iE=e9),e9>mg&&(mg=e9),rL<vU&&(vU=rL),rL>Ll&&(Ll=rL));mg<iE&&(iE=this._x0,mg=this._x1);Ll<vU&&(vU=this._y0,Ll=this._y1);this.cover(iE,vU).cover(mg,Ll);for(G=0;G<f1;++G)bgi(this,qF[G],BI[G],J[G]);return this};
f5.cover=function(J,D){if(isNaN(J=+J)||isNaN(D=+D))return this;var G=this._x0,f1=this._y0,e9=this._x1,rL=this._y1;if(isNaN(G))e9=(G=Math.floor(J))+1,rL=(f1=Math.floor(D))+1;else if(G>J||J>e9||f1>D||D>rL){var qF=e9-G,BI=this._root,iE;switch(iE=(D<(f1+rL)/2)<<1|J<(G+e9)/2){case 0:do{var vU=Array(4);vU[iE]=BI;BI=vU}while(qF*=2,e9=G+qF,rL=f1+qF,J>e9||D>rL);break;case 1:do vU=Array(4),vU[iE]=BI,BI=vU;while(qF*=2,G=e9-qF,rL=f1+qF,G>J||D>rL);break;case 2:do vU=Array(4),vU[iE]=BI,BI=vU;while(qF*=2,e9=G+qF,
f1=rL-qF,J>e9||f1>D);break;case 3:do vU=Array(4),vU[iE]=BI,BI=vU;while(qF*=2,G=e9-qF,f1=rL-qF,G>J||f1>D)}this._root&&this._root.length&&(this._root=BI)}else return this;this._x0=G;this._y0=f1;this._x1=e9;this._y1=rL;return this};
f5.data=function(){var J=[];this.visit(function(D){if(!D.length){do J.push(D.data);while(D=D.next)}});
return J};
f5.extent=function(J){return arguments.length?this.cover(+J[0][0],+J[0][1]).cover(+J[1][0],+J[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
f5.find=function(J,D,G){var f1=this._x0,e9=this._y0,rL,qF,BI,iE,vU=this._x1,mg=this._y1,Ll=[],w_=this._root,w2;w_&&Ll.push(new oU(w_,f1,e9,vU,mg));G==null?G=Infinity:(f1=J-G,e9=D-G,vU=J+G,mg=D+G,G*=G);for(;w2=Ll.pop();)if(!(!(w_=w2.node)||(rL=w2.x0)>vU||(qF=w2.y0)>mg||(BI=w2.x1)<f1||(iE=w2.y1)<e9))if(w_.length){w2=(rL+BI)/2;var uW=(qF+iE)/2;Ll.push(new oU(w_[3],w2,uW,BI,iE),new oU(w_[2],rL,uW,w2,iE),new oU(w_[1],w2,qF,BI,uW),new oU(w_[0],rL,qF,w2,uW));if(w_=(D>=uW)<<1|J>=w2)w2=Ll[Ll.length-1],Ll[Ll.length-
1]=Ll[Ll.length-1-w_],Ll[Ll.length-1-w_]=w2}else if(w2=J-+this._x.call(null,w_.data),uW=D-+this._y.call(null,w_.data),w2=w2*w2+uW*uW,w2<G){var P5=Math.sqrt(G=w2);f1=J-P5;e9=D-P5;vU=J+P5;mg=D+P5;P5=w_.data}return P5};
f5.remove=function(J){if(isNaN(iE=+this._x.call(null,J))||isNaN(vU=+this._y.call(null,J)))return this;var D,G=this._root,f1,e9=this._x0,rL=this._y0,qF=this._x1,BI=this._y1,iE,vU,mg,Ll,w_,w2,uW;if(!G)return this;if(G.length)for(;;){(w_=iE>=(mg=(e9+qF)/2))?e9=mg:qF=mg;(w2=vU>=(Ll=(rL+BI)/2))?rL=Ll:BI=Ll;if(!(D=G,G=G[uW=w2<<1|w_]))return this;if(!G.length)break;if(D[uW+1&3]||D[uW+2&3]||D[uW+3&3]){var P5=D;var OU=uW}}for(;G.data!==J;)if(!(f1=G,G=G.next))return this;(J=G.next)&&delete G.next;if(f1)return J?
f1.next=J:delete f1.next,this;if(!D)return this._root=J,this;J?D[uW]=J:delete D[uW];(G=D[0]||D[1]||D[2]||D[3])&&G===(D[3]||D[2]||D[1]||D[0])&&!G.length&&(P5?P5[OU]=G:this._root=G);return this};
f5.removeAll=function(J){for(var D=0,G=J.length;D<G;++D)this.remove(J[D]);return this};
f5.root=function(){return this._root};
f5.size=function(){var J=0;this.visit(function(D){if(!D.length){do++J;while(D=D.next)}});
return J};
f5.visit=function(J){var D=[],G,f1=this._root,e9,rL,qF,BI,iE;for(f1&&D.push(new oU(f1,this._x0,this._y0,this._x1,this._y1));G=D.pop();)if(!J(f1=G.node,rL=G.x0,qF=G.y0,BI=G.x1,iE=G.y1)&&f1.length){G=(rL+BI)/2;var vU=(qF+iE)/2;(e9=f1[3])&&D.push(new oU(e9,G,vU,BI,iE));(e9=f1[2])&&D.push(new oU(e9,rL,vU,G,iE));(e9=f1[1])&&D.push(new oU(e9,G,qF,BI,vU));(e9=f1[0])&&D.push(new oU(e9,rL,qF,G,vU))}};
f5.visitAfter=function(J){var D=[],G=[],f1;for(this._root&&D.push(new oU(this._root,this._x0,this._y0,this._x1,this._y1));f1=D.pop();){var e9=f1.node;if(e9.length){var rL,qF=f1.x0,BI=f1.y0,iE=f1.x1,vU=f1.y1,mg=(qF+iE)/2,Ll=(BI+vU)/2;(rL=e9[0])&&D.push(new oU(rL,qF,BI,mg,Ll));(rL=e9[1])&&D.push(new oU(rL,mg,BI,iE,Ll));(rL=e9[2])&&D.push(new oU(rL,qF,Ll,mg,vU));(rL=e9[3])&&D.push(new oU(rL,mg,Ll,iE,vU))}G.push(f1)}for(;f1=G.pop();)J(f1.node,f1.x0,f1.y0,f1.x1,f1.y1);return this};
f5.x=function(J){return arguments.length?(this._x=J,this):this._x};
f5.y=function(J){return arguments.length?(this._y=J,this):this._y};
var frO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;UhE.prototype=qSQ.prototype;qSQ.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 aOz,Zg4={"%":function(J,D){return(J*100).toFixed(D)},
b:function(J){return Math.round(J).toString(2)},
c:function(J){return J+""},
d:function(J){return Math.round(J).toString(10)},
e:function(J,D){return J.toExponential(D)},
f:function(J,D){return J.toFixed(D)},
g:function(J,D){return J.toPrecision(D)},
o:function(J){return Math.round(J).toString(8)},
p:function(J,D){return ssF(J*100,D)},
r:ssF,s:function(J,D){var G=hCE(J,D);if(!G)return J+"";var f1=G[0];G=G[1];G=G-(aOz=Math.max(-8,Math.min(8,Math.floor(G/3)))*3)+1;var e9=f1.length;return G===e9?f1:G>e9?f1+Array(G-e9+1).join("0"):G>0?f1.slice(0,G)+"."+f1.slice(G):"0."+Array(1-G).join("0")+hCE(J,Math.max(0,D+G-1))[0]},
X:function(J){return Math.round(J).toString(16).toUpperCase()},
x:function(J){return Math.round(J).toString(16)}},PMP="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),M01;
(function(J){return M01=x96(J)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});jf.prototype={constructor:jf,reset:function(){this.s=this.t=0},
add:function(J){CMX(upX,J,this.t);CMX(this,upX.s,this.s);this.s?this.t+=upX.t:this.s=upX.t},
valueOf:function(){return this.s}};
var upX=new jf,Mw=Math.PI,$C=Mw/2,tOU=Mw/4,S6M=Mw*2,j1G=Mw/180,eG=Math.abs,OME=Math.atan,KDz=Math.atan2,LU=Math.cos,Ib=Math.sin,VaE=Math.sqrt;new jf;new jf;new jf;var kt9=new jf;(function(J,D,G,f1){return function(e9){function rL(zc,Fb){J(zc,Fb)&&e9.point(zc,Fb)}
function qF(zc,Fb){w_.point(zc,Fb)}
function BI(){Xw.point=qF;w_.lineStart()}
function iE(){Xw.point=rL;w_.lineEnd()}
function vU(zc,Fb){S7.push([zc,Fb]);uW.point(zc,Fb)}
function mg(){uW.lineStart();S7=[]}
function Ll(){vU(S7[0][0],S7[0][1]);uW.lineEnd();var zc=uW.clean(),Fb=w2.result(),$b=Fb.length,QR;S7.pop();OU.push(S7);S7=null;if($b)if(zc&1){if($b=Fb[0],(Fb=$b.length-1)>0){P5||(e9.polygonStart(),P5=!0);e9.lineStart();for(zc=0;zc<Fb;++zc)e9.point((QR=$b[zc])[0],QR[1]);e9.lineEnd()}}else $b>1&&zc&2&&Fb.push(Fb.pop().concat(Fb.shift())),iY.push(Fb.filter(QWK))}
var w_=D(e9),w2=y__(),uW=D(w2),P5=!1,OU,iY,S7,Xw={point:rL,lineStart:BI,lineEnd:iE,polygonStart:function(){Xw.point=vU;Xw.lineStart=mg;Xw.lineEnd=Ll;iY=[];OU=[]},
polygonEnd:function(){Xw.point=rL;Xw.lineStart=BI;Xw.lineEnd=iE;var zc=iY,Fb=zc.length;var $b=-1;for(var QR=0,Yp,XL;++$b<Fb;)QR+=zc[$b].length;for(Yp=Array(QR);--Fb>=0;)for(XL=zc[Fb],$b=XL.length;--$b>=0;)Yp[--QR]=XL[$b];iY=Yp;zc=OU;Fb=f1[0];QR=f1[1];var vz=Ib(QR);$b=[Ib(Fb),-LU(Fb),0];XL=Yp=0;kt9.reset();vz===1?QR=$C+1E-6:vz===-1&&(QR=-$C-1E-6);vz=0;for(var r_=zc.length;vz<r_;++vz)if(C3=(Lp=zc[vz]).length){var Lp,C3,kH=Lp[C3-1],wB=kH[0],KM=kH[1]/2+tOU,j0E=Ib(KM),BRi=LU(KM);for(KM=0;KM<C3;++KM,wB=
WwA,j0E=voP,BRi=Q_,kH=OpF){var OpF=Lp[KM],WwA=OpF[0];Q_=OpF[1]/2+tOU;var voP=Ib(Q_),Q_=LU(Q_),F3=WwA-wB,$hN=F3>=0?1:-1,LwI=$hN*F3,krI=LwI>Mw;j0E*=voP;kt9.add(KDz(j0E*$hN*Ib(LwI),BRi*Q_+j0E*LU(LwI)));Yp+=krI?F3+$hN*S6M:F3;krI^wB>=Fb^WwA>=Fb&&(kH=Skl(MOi(kH),MOi(OpF)),Ubg(kH),wB=Skl($b,kH),Ubg(wB),wB=(krI^F3>=0?-1:1)*AvE(wB[2]),QR>wB||QR===wB&&(kH[0]||kH[1]))&&(XL+=krI^F3>=0?1:-1)}}zc=(Yp<-1E-6||Yp<1E-6&&kt9<-1E-6)^XL&1;iY.length?(P5||(e9.polygonStart(),P5=!0),pFR(iY,XF0,zc,G,e9)):zc&&(P5||(e9.polygonStart(),
P5=!0),e9.lineStart(),G(null,null,1,e9),e9.lineEnd());P5&&(e9.polygonEnd(),P5=!1);iY=OU=null},
sphere:function(){e9.polygonStart();e9.lineStart();G(null,null,1,e9);e9.lineEnd();e9.polygonEnd()}};
return Xw}})(function(){return!0},function(J){var D=NaN,G=NaN,f1=NaN,e9;
return{lineStart:function(){J.lineStart();e9=1},
point:function(rL,qF){var BI=rL>0?Mw:-Mw,iE=eG(rL-D);if(eG(iE-Mw)<1E-6)J.point(D,G=(G+qF)/2>0?$C:-$C),J.point(f1,G),J.lineEnd(),J.lineStart(),J.point(BI,G),J.point(rL,G),e9=0;else if(f1!==BI&&iE>=Mw){eG(D-f1)<1E-6&&(D-=f1*1E-6);eG(rL-BI)<1E-6&&(rL-=BI*1E-6);iE=D;var vU=G,mg=rL,Ll,w_,w2=Ib(iE-mg);G=eG(w2)>1E-6?OME((Ib(vU)*(w_=LU(qF))*Ib(mg)-Ib(qF)*(Ll=LU(vU))*Ib(iE))/(Ll*w_*w2)):(vU+qF)/2;J.point(f1,G);J.lineEnd();J.lineStart();J.point(BI,G);e9=0}J.point(D=rL,G=qF);f1=BI},
lineEnd:function(){J.lineEnd();D=G=NaN},
clean:function(){return 2-e9}}},function(J,D,G,f1){J==null?(G*=$C,f1.point(-Mw,G),f1.point(0,G),f1.point(Mw,G),f1.point(Mw,0),f1.point(Mw,-G),f1.point(0,-G),f1.point(-Mw,-G),f1.point(-Mw,0),f1.point(-Mw,G)):eG(J[0]-D[0])>1E-6?(J=J[0]<D[0]?Mw:-Mw,G=G*J/2,f1.point(-J,G),f1.point(0,G),f1.point(J,G)):f1.point(D[0],D[1])},[-Mw,
-$C]);new jf;new jf;new jf;new jf;J8E.prototype={constructor:J8E,point:function(J,D){this.stream.point(J,D)},
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()}};
LU(30*j1G);(function(J){return function(D){var G=new J8E,f1;for(f1 in J)G[f1]=J[f1];G.stream=D;return G}})({point:function(J,D){this.stream.point(J*j1G,D*j1G)}});
J$o(function(J){return VaE(2/(1+J))}).invert=ET(function(J){return 2*AvE(J/2)});
J$o(function(J){return(J=J>1?0:J<-1?Mw:Math.acos(J))&&J/Ib(J)}).invert=ET(function(J){return J});
VaE(3);ET(OME);ET(AvE);ET(function(J){return 2*OME(J)});
nm.prototype=dbg.prototype={constructor:nm,count:function(){return this.eachAfter(eup)},
each:function(J){var D,G=[this],f1;do{var e9=G.reverse();for(G=[];D=e9.pop();)if(J(D),D=D.children){var rL=0;for(f1=D.length;rL<f1;++rL)G.push(D[rL])}}while(G.length);return this},
eachAfter:function(J){for(var D,G=[this],f1=[],e9,rL;D=G.pop();)if(f1.push(D),D=D.children)for(e9=0,rL=D.length;e9<rL;++e9)G.push(D[e9]);for(;D=f1.pop();)J(D);return this},
eachBefore:function(J){for(var D,G=[this],f1;D=G.pop();)if(J(D),D=D.children)for(f1=D.length-1;f1>=0;--f1)G.push(D[f1]);return this},
sum:function(J){return this.eachAfter(function(D){for(var G=+J(D.data)||0,f1=D.children,e9=f1&&f1.length;--e9>=0;)G+=f1[e9].value;D.value=G})},
sort:function(J){return this.eachBefore(function(D){D.children&&D.children.sort(J)})},
path:function(J){var D=this;var G=D;var f1=J;if(G!==f1){var e9=G.ancestors(),rL=f1.ancestors(),qF=null;G=e9.pop();for(f1=rL.pop();G===f1;)qF=G,G=e9.pop(),f1=rL.pop();G=qF}for(f1=[D];D!==G;)D=D.parent,f1.push(D);for(D=f1.length;J!==G;)f1.splice(D,0,J),J=J.parent;return f1},
ancestors:function(){for(var J=this,D=[J];J=J.parent;)D.push(J);return D},
links:function(){var J=this,D=[];J.each(function(G){G!==J&&D.push({source:G.parent,target:G})});
return D},
copy:function(){return dbg(this).eachBefore(wFb)}};
(function(J,D){this._=J;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=D}).prototype=Object.create(nm.prototype);
var KwQ=new Date,dhI=new Date,Eoi=rM(function(){},function(J,D){J.setTime(+J+D)},function(J,D){return D-J});
Eoi.every=function(J){J=Math.floor(J);return isFinite(J)&&J>0?J>1?rM(function(D){D.setTime(Math.floor(D/J)*J)},function(D,G){D.setTime(+D+G*J)},function(D,G){return(G-D)/J}):Eoi:null};
rM(function(J){J.setTime(Math.floor(J/1E3)*1E3)},function(J,D){J.setTime(+J+D*1E3)},function(J,D){return(D-J)/1E3},function(J){return J.getUTCSeconds()});
rM(function(J){J.setTime(Math.floor(J/6E4)*6E4)},function(J,D){J.setTime(+J+D*6E4)},function(J,D){return(D-J)/6E4},function(J){return J.getMinutes()});
rM(function(J){var D=J.getTimezoneOffset()*6E4%36E5;D<0&&(D+=36E5);J.setTime(Math.floor((+J-D)/36E5)*36E5+D)},function(J,D){J.setTime(+J+D*36E5)},function(J,D){return(D-J)/36E5},function(J){return J.getHours()});
var hrw=rM(function(J){J.setHours(0,0,0,0)},function(J,D){J.setDate(J.getDate()+D)},function(J,D){return(D-J-(D.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/864E5},function(J){return J.getDate()-1}),wlK=uV(0),YSs=uV(1);
uV(2);uV(3);var hAF=uV(4);uV(5);uV(6);rM(function(J){J.setDate(1);J.setHours(0,0,0,0)},function(J,D){J.setMonth(J.getMonth()+D)},function(J,D){return D.getMonth()-J.getMonth()+(D.getFullYear()-J.getFullYear())*12},function(J){return J.getMonth()});
var px=rM(function(J){J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,D){J.setFullYear(J.getFullYear()+D)},function(J,D){return D.getFullYear()-J.getFullYear()},function(J){return J.getFullYear()});
px.every=function(J){return isFinite(J=Math.floor(J))&&J>0?rM(function(D){D.setFullYear(Math.floor(D.getFullYear()/J)*J);D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,G){D.setFullYear(D.getFullYear()+G*J)}):null};
rM(function(J){J.setUTCSeconds(0,0)},function(J,D){J.setTime(+J+D*6E4)},function(J,D){return(D-J)/6E4},function(J){return J.getUTCMinutes()});
rM(function(J){J.setUTCMinutes(0,0,0)},function(J,D){J.setTime(+J+D*36E5)},function(J,D){return(D-J)/36E5},function(J){return J.getUTCHours()});
var Ykg=rM(function(J){J.setUTCHours(0,0,0,0)},function(J,D){J.setUTCDate(J.getUTCDate()+D)},function(J,D){return(D-J)/864E5},function(J){return J.getUTCDate()-1}),bLU=jA(0),IT1=jA(1);
jA(2);jA(3);var A89=jA(4);jA(5);jA(6);rM(function(J){J.setUTCDate(1);J.setUTCHours(0,0,0,0)},function(J,D){J.setUTCMonth(J.getUTCMonth()+D)},function(J,D){return D.getUTCMonth()-J.getUTCMonth()+(D.getUTCFullYear()-J.getUTCFullYear())*12},function(J){return J.getUTCMonth()});
var QF=rM(function(J){J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,D){J.setUTCFullYear(J.getUTCFullYear()+D)},function(J,D){return D.getUTCFullYear()-J.getUTCFullYear()},function(J){return J.getUTCFullYear()});
QF.every=function(J){return isFinite(J=Math.floor(J))&&J>0?rM(function(D){D.setUTCFullYear(Math.floor(D.getUTCFullYear()/J)*J);D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,G){D.setUTCFullYear(D.getUTCFullYear()+G*J)}):null};
var IO1={"-":"",_:" ",0:"0"},Uf=/^\s*\d+/,mTO=/^%/,F2b=/[\\^$*+?|[\]().{}]/g,WAs;(function(J){WAs=lrp(J);PGX=WAs.utcFormat;agw=WAs.utcParse;return WAs})({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||PGX("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||agw("%Y-%m-%dT%H:%M:%S.%LZ");fI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
fI("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");fI("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");fI("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");fI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");fI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");fI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
fI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");fI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");fI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");fI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");fI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var UTx=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(fI);Gr(UTx);var q6C=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(fI);Gr(q6C);var Jt6=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(fI);Gr(Jt6);var K2M=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(fI);
Gr(K2M);var dTC=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(fI);Gr(dTC);var I6b=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(fI);Gr(I6b);var Y6p=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(fI);Gr(Y6p);var hkp=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(fI);Gr(hkp);var AtK=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(fI);Gr(AtK);var V0M=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(fI);Gr(V0M);var DTp=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(fI);Gr(DTp);var HLx=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(fI);Gr(HLx);var gYb=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(fI);Gr(gYb);var N$x=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(fI);Gr(N$x);var uS0=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(fI);Gr(uS0);var j_M=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(fI);Gr(j_M);var OL0=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(fI);Gr(OL0);var k06=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(fI);Gr(k06);var W2x=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(fI);Gr(W2x);var $T3=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(fI);Gr($T3);var L2K=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(fI);Gr(L2K);var G06=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(fI);Gr(G06);var T$3=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(fI);Gr(T$3);var iLC=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(fI);Gr(iLC);var zkM=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(fI);Gr(zkM);var Rkb=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(fI);Gr(Rkb);var t0U=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(fI);Gr(t0U);N7X(r1(300,.5,0),r1(-240,.5,1));N7X(r1(-100,.75,.35),r1(80,1.5,.8));N7X(r1(260,.75,.35),r1(80,1.5,.8));r1();mA();g7E(fI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
g7E(fI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
g7E(fI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
g7E(fI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
k4w.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(J,D){J=+J;D=+D;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,D):this._context.moveTo(J,D);break;case 1:this._point=2;default:this._context.lineTo(J,D)}}};
(function(J){function D(G){return new WDF(J(G))}
D._curve=J;return D})(function(J){return new k4w(J)});
WDF.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(J,D){this._curve.point(D*Math.sin(J),D*-Math.cos(J))}};
DhE.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:VHE(this,this._t0,LDU(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(J,D){var G=NaN;J=+J;D=+D;if(J!==this._x1||D!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,D):this._context.moveTo(J,D);break;case 1:this._point=2;break;case 2:this._point=3;VHE(this,LDU(this,G=$bU(this,J,D)),G);break;default:VHE(this,this._t0,G=$bU(this,J,D))}this._x0=this._x1;this._x1=J;this._y0=this._y1;this._y1=D;this._t0=G}}};
(function(J){this._context=new G4g(J)}.prototype=Object.create(DhE.prototype)).point=function(J,D){DhE.prototype.point.call(this,D,J)};
G4g.prototype={moveTo:function(J,D){this._context.moveTo(D,J)},
closePath:function(){this._context.closePath()},
lineTo:function(J,D){this._context.lineTo(D,J)},
bezierCurveTo:function(J,D,G,f1,e9,rL){this._context.bezierCurveTo(D,J,f1,G,rL,e9)}};
c9.prototype={constructor:c9,scale:function(J){return J===1?this:new c9(this.k*J,this.x,this.y)},
translate:function(J,D){return J===0&D===0?this:new c9(this.k,this.x+this.k*J,this.y+this.k*D)},
apply:function(J){return[J[0]*this.k+this.x,J[1]*this.k+this.y]},
invert:function(J){return[(J[0]-this.x)/this.k,(J[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new c9(1,0,0);g5N=lr;Wj.svg=Wj.svg;Wj.xhtml=Wj.xhtml;Wj.xlink=Wj.xlink;Wj.xml=Wj.xml;Wj.xmlns=Wj.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 Zhl="hammer_"+(Math.random()*1E6|0),CGS=function(){var v=document||document;if(!v[Zhl]){var E=function(){(function(n,f,x,y){function Q(a$,AG,j9){return setTimeout(a(a$,j9),AG)}
function e(a$,AG,j9){return Array.isArray(a$)?(F(a$,j9[AG],j9),!0):!1}
function F(a$,AG,j9){var s1;if(a$)if(a$.forEach)a$.forEach(AG,j9);else if(a$.length!==y){var oO=0;for(s1=a$.length;oO<s1;oO++)AG.call(j9,a$[oO],oO,a$)}else for(oO in a$)a$.hasOwnProperty(oO)&&AG.call(j9,a$[oO],oO,a$)}
function b(a$,AG,j9){for(var s1=Object.keys(AG),oO=0,Jj=s1.length;oO<Jj;oO++)if(!j9||j9&&a$[s1[oO]]===y)a$[s1[oO]]=AG[s1[oO]];return a$}
function l(a$,AG){return b(a$,AG,!0)}
function r(a$,AG,j9){AG=AG.prototype;var s1=a$.prototype=Object.create(AG);s1.constructor=a$;s1._super=AG;j9&&b(s1,j9)}
function a(a$,AG){return function(){return a$.apply(AG,arguments)}}
function M(a$,AG){return typeof a$=="function"?a$.apply(AG?AG[0]||y:y,AG):a$}
function U(a$,AG,j9){F(Y(AG),function(s1){a$.addEventListener(s1,j9,!1)})}
function d(a$,AG,j9){F(Y(AG),function(s1){a$.removeEventListener(s1,j9,!1)})}
function Y(a$){return a$.trim().split(/\s+/g)}
function V(a$,AG,j9){if(a$.indexOf&&!j9)return a$.indexOf(AG);for(var s1=0,oO=a$.length;s1<oO;s1++)if(j9&&a$[s1][j9]==AG||!j9&&a$[s1]===AG)return s1;return-1}
function O(a$,AG,j9){for(var s1=[],oO=[],Jj=0,Fd=a$.length;Jj<Fd;Jj++){var aF=AG?a$[Jj][AG]:a$[Jj];V(oO,aF)<0&&s1.push(a$[Jj]);oO[Jj]=aF}j9&&(s1=AG?s1.sort(function(r1,mU){return r1[AG]>mU[AG]}):s1.sort());
return s1}
function T(a$,AG){for(var j9,s1=AG[0].toUpperCase()+AG.slice(1),oO=0,Jj=kX.length;oO<Jj;oO++)if(j9=(j9=kX[oO])?j9+s1:AG,j9 in a$)return j9;return y}
function L(a$,AG){var j9=this;this.manager=a$;this.callback=AG;this.element=a$.element;this.target=a$.options.inputTarget;this.domHandler=function(s1){M(a$.options.enable,[a$])&&j9.handler(s1)};
this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(n,this.evWin,this.domHandler)}
function xX(a$){var AG;Ng?AG=uE:xZ?AG=WI:lr?AG=bX:AG=HI;return new AG(a$,t)}
function t(a$,AG,j9){var s1=j9.pointers.length,oO=j9.changedPointers.length,Jj=AG&1&&s1-oO===0;j9.isFirst=!!Jj;j9.isFinal=!!(AG&12&&s1-oO===0);Jj&&(a$.session={});j9.eventType=AG;AG=a$.session;s1=j9.pointers;oO=s1.length;AG.firstInput||(AG.firstInput=QE(j9));oO>1&&!AG.firstMultiple?AG.firstMultiple=QE(j9):oO===1&&(AG.firstMultiple=!1);Jj=AG.firstInput;var Fd=(oO=AG.firstMultiple)?oO.center:Jj.center,aF=j9.center=MF(s1);j9.timeStamp=C0();j9.deltaTime=j9.timeStamp-Jj.timeStamp;j9.angle=$X(Fd,aF);j9.distance=
JG(Fd,aF);Jj=j9.center;Fd=AG.offsetDelta||{};aF=AG.prevDelta||{};var r1=AG.prevInput||{};if(j9.eventType===1||r1.eventType===4)aF=AG.prevDelta={x:r1.deltaX||0,y:r1.deltaY||0},Fd=AG.offsetDelta={x:Jj.x,y:Jj.y};j9.deltaX=aF.x+(Jj.x-Fd.x);j9.deltaY=aF.y+(Jj.y-Fd.y);j9.offsetDirection=K1(j9.deltaX,j9.deltaY);oO?(Jj=oO.pointers,Jj=JG(s1[0],s1[1],mA)/JG(Jj[0],Jj[1],mA)):Jj=1;j9.scale=Jj;oO?(oO=oO.pointers,s1=$X(s1[1],s1[0],mA)-$X(oO[1],oO[0],mA)):s1=0;j9.rotation=s1;Fd=AG.lastInterval||j9;s1=j9.timeStamp-
Fd.timeStamp;j9.eventType!=8&&(s1>25||Fd.velocity===y)?(Jj=Fd.deltaX-j9.deltaX,Fd=Fd.deltaY-j9.deltaY,aF=Jj/s1||0,r1=Fd/s1||0,s1=aF,oO=r1,aF=Zz(aF)>Zz(r1)?aF:r1,Jj=K1(Jj,Fd),AG.lastInterval=j9):(aF=Fd.velocity,s1=Fd.velocityX,oO=Fd.velocityY,Jj=Fd.direction);j9.velocity=aF;j9.velocityX=s1;j9.velocityY=oO;j9.direction=Jj;AG=a$.element;a:{for(s1=j9.srcEvent.target;s1;){if(s1==AG){s1=!0;break a}s1=s1.parentNode}s1=!1}s1&&(AG=j9.srcEvent.target);j9.target=AG;a$.emit("hammer.input",j9);a$.recognize(j9);
a$.session.prevInput=j9}
function QE(a$){for(var AG=[],j9=0;j9<a$.pointers.length;j9++)AG[j9]={clientX:cb(a$.pointers[j9].clientX),clientY:cb(a$.pointers[j9].clientY)};return{timeStamp:C0(),pointers:AG,center:MF(AG),deltaX:a$.deltaX,deltaY:a$.deltaY}}
function MF(a$){var AG=a$.length;if(AG===1)return{x:cb(a$[0].clientX),y:cb(a$[0].clientY)};for(var j9=0,s1=0,oO=0;oO<AG;oO++)j9+=a$[oO].clientX,s1+=a$[oO].clientY;return{x:cb(j9/AG),y:cb(s1/AG)}}
function K1(a$,AG){return a$===AG?1:Zz(a$)>=Zz(AG)?a$>0?2:4:AG>0?8:16}
function JG(a$,AG,j9){j9||(j9=he);var s1=AG[j9[0]]-a$[j9[0]];a$=AG[j9[1]]-a$[j9[1]];return Math.sqrt(s1*s1+a$*a$)}
function $X(a$,AG,j9){j9||(j9=he);return Math.atan2(AG[j9[1]]-a$[j9[1]],AG[j9[0]]-a$[j9[0]])*180/Math.PI}
function HI(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;L.apply(this,arguments)}
function uE(){this.evEl=Cs;this.evWin=Hp;L.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function WI(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};L.apply(this,arguments)}
function bX(){L.apply(this,arguments);var a$=a(this.handler,this);this.touch=new WI(this.manager,a$);this.mouse=new HI(this.manager,a$)}
function n0(a$,AG){this.manager=a$;this.set(AG)}
function qi(a$){if(a$.indexOf("none")>-1)return"none";var AG=a$.indexOf("pan-x")>-1,j9=a$.indexOf("pan-y")>-1;return AG&&j9?"pan-x pan-y":AG||j9?AG?"pan-x":"pan-y":a$.indexOf("manipulation")>-1?"manipulation":"auto"}
function fl(a$){this.id=ZL++;this.manager=null;this.options=l(a$||{},this.defaults);a$=this.options.enable;this.options.enable=a$===y?!0:a$;this.state=1;this.simultaneous={};this.requireFail=[]}
function yP(a$){return a$==16?"down":a$==8?"up":a$==2?"left":a$==4?"right":""}
function IF(a$,AG){return(AG=AG.manager)?AG.get(a$):a$}
function QP(){fl.apply(this,arguments)}
function T3(){QP.apply(this,arguments);this.pY=this.pX=null}
function aK(){QP.apply(this,arguments)}
function yE(){fl.apply(this,arguments);this._input=this._timer=null}
function Cl(){QP.apply(this,arguments)}
function VP(){QP.apply(this,arguments)}
function JR(){fl.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function d1(a$,AG){AG=AG||{};var j9=AG.recognizers;AG.recognizers=j9===y?d1.defaults.preset:j9;return new $w(a$,AG)}
function $w(a$,AG){AG=AG||{};this.options=l(AG,d1.defaults);this.options.inputTarget=this.options.inputTarget||a$;this.handlers={};this.session={};this.recognizers=[];this.element=a$;this.input=xX(this);this.touchAction=new n0(this,this.options.touchAction);y6(this,!0);F(AG.recognizers,function(j9){var s1=this.add(new j9[0](j9[1]));j9[2]&&s1.recognizeWith(j9[2]);j9[3]&&s1.requireFailure(j9[2])},this)}
function y6(a$,AG){var j9=a$.element;F(a$.options.cssProps,function(s1,oO){j9.style[T(j9.style,oO)]=AG?s1:""})}
function eo(a$,AG){var j9=f.createEvent("Event");j9.initEvent(a$,!0,!0);j9.gesture=AG;AG.target.dispatchEvent(j9)}
var kX=" webkit moz MS ms o".split(" "),lX=f.createElement("div"),cb=Math.round,Zz=Math.abs,C0=Date.now,ZL=1,fG=/mobile|tablet|ip(ad|hone|od)|android/i,lr="ontouchstart"in n,Ng=T(n,"PointerEvent")!==y,xZ=lr&&fG.test(navigator.userAgent),he=["x","y"],mA=["clientX","clientY"];L.prototype={handler:function(){},
destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(n,this.evWin,this.domHandler)}};
var ep={mousedown:1,mousemove:2,mouseup:4};r(HI,L,{handler:function(a$){var AG=ep[a$.type];AG&1&&a$.button===0&&(this.pressed=!0);AG&2&&a$.which!==1&&(AG=4);this.pressed&&this.allow&&(AG&4&&(this.pressed=!1),this.callback(this.manager,AG,{pointers:[a$],changedPointers:[a$],pointerType:"mouse",srcEvent:a$}))}});
var fc={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},wt={2:"touch",3:"pen",4:"mouse",5:"kinect"},Cs="pointerdown",Hp="pointermove pointerup pointercancel";n.MSPointerEvent&&(Cs="MSPointerDown",Hp="MSPointerMove MSPointerUp MSPointerCancel");r(uE,L,{handler:function(a$){var AG=this.store,j9=!1,s1=a$.type.toLowerCase().replace("ms","");s1=fc[s1];var oO=wt[a$.pointerType]||a$.pointerType;s1&1&&(a$.button===0||oO=="touch")?AG.push(a$):s1&12&&(j9=!0);var Jj=V(AG,a$.pointerId,"pointerId");
Jj<0||(AG[Jj]=a$,this.callback(this.manager,s1,{pointers:AG,changedPointers:[a$],pointerType:oO,srcEvent:a$}),j9&&AG.splice(Jj,1))}});
var Wv={touchstart:1,touchmove:2,touchend:4,touchcancel:8};r(WI,L,{handler:function(a$){var AG=Wv[a$.type];var j9=Array.prototype.slice.call(a$.touches,0);var s1=this.targetIds;if(AG&3&&j9.length===1)s1[j9[0].identifier]=!0,s1=[j9,j9];else{var oO,Jj=Array.prototype.slice.call(a$.targetTouches,0),Fd=Array.prototype.slice.call(a$.changedTouches,0),aF=[];if(AG===1)for(j9=0,oO=Jj.length;j9<oO;j9++)s1[Jj[j9].identifier]=!0;j9=0;for(oO=Fd.length;j9<oO;j9++)s1[Fd[j9].identifier]&&aF.push(Fd[j9]),AG&12&&
delete s1[Fd[j9].identifier];s1=aF.length?[O(Jj.concat(aF),"identifier",!0),aF]:void 0}s1&&this.callback(this.manager,AG,{pointers:s1[0],changedPointers:s1[1],pointerType:"touch",srcEvent:a$})}});
r(bX,L,{handler:function(a$,AG,j9){var s1=j9.pointerType=="mouse";if(j9.pointerType=="touch")this.mouse.allow=!1;else if(s1&&!this.mouse.allow)return;AG&12&&(this.mouse.allow=!0);this.callback(a$,AG,j9)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var e8=T(lX.style,"touchAction"),Xc=e8!==y;n0.prototype={set:function(a$){a$=="compute"&&(a$=this.compute());Xc&&(this.manager.element.style[e8]=a$);this.actions=a$.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var a$=[];F(this.manager.recognizers,function(AG){M(AG.options.enable,[AG])&&(a$=a$.concat(AG.getTouchAction()))});
return qi(a$.join(" "))},
preventDefaults:function(a$){if(!Xc){var AG=a$.srcEvent;a$=a$.offsetDirection;if(this.manager.session.prevented)AG.preventDefault();else{var j9=this.actions,s1=j9.indexOf("none")>-1,oO=j9.indexOf("pan-y")>-1;j9=j9.indexOf("pan-x")>-1;if(s1||oO&&j9||oO&&a$&6||j9&&a$&24)return this.preventSrc(AG)}}},
preventSrc:function(a$){this.manager.session.prevented=!0;a$.preventDefault()}};
fl.prototype={defaults:{},set:function(a$){b(this.options,a$);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(a$){if(e(a$,"recognizeWith",this))return this;var AG=this.simultaneous;a$=IF(a$,this);AG[a$.id]||(AG[a$.id]=a$,a$.recognizeWith(this));return this},
dropRecognizeWith:function(a$){if(e(a$,"dropRecognizeWith",this))return this;a$=IF(a$,this);delete this.simultaneous[a$.id];return this},
requireFailure:function(a$){if(e(a$,"requireFailure",this))return this;var AG=this.requireFail;a$=IF(a$,this);V(AG,a$)===-1&&(AG.push(a$),a$.requireFailure(this));return this},
dropRequireFailure:function(a$){if(e(a$,"dropRequireFailure",this))return this;a$=IF(a$,this);a$=V(this.requireFail,a$);a$>-1&&this.requireFail.splice(a$,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(a$){return!!this.simultaneous[a$.id]},
emit:function(a$){function AG(oO){j9.manager.emit(j9.options.event+(oO?s1&16?"cancel":s1&8?"end":s1&4?"move":s1&2?"start":"":""),a$)}
var j9=this,s1=this.state;s1<8&&AG(!0);AG();s1>=8&&AG(!0)},
tryEmit:function(a$){if(this.canEmit())return this.emit(a$);this.state=32},
canEmit:function(){for(var a$=0;a$<this.requireFail.length;a$++)if(!(this.requireFail[a$].state&33))return!1;return!0},
recognize:function(a$){a$=b({},a$);M(this.options.enable,[this,a$])?(this.state&56&&(this.state=1),this.state=this.process(a$),this.state&30&&this.tryEmit(a$)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
r(QP,fl,{defaults:{pointers:1},attrTest:function(a$){var AG=this.options.pointers;return AG===0||a$.pointers.length===AG},
process:function(a$){var AG=this.state,j9=a$.eventType,s1=AG&6;a$=this.attrTest(a$);return s1&&(j9&8||!a$)?AG|16:s1||a$?j9&4?AG|8:AG&2?AG|4:2:32}});
r(T3,QP,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var a$=this.options.direction;if(a$===30)return["none"];var AG=[];a$&6&&AG.push("pan-y");a$&24&&AG.push("pan-x");return AG},
directionTest:function(a$){var AG=this.options,j9=!0,s1=a$.distance,oO=a$.direction,Jj=a$.deltaX,Fd=a$.deltaY;oO&AG.direction||(AG.direction&6?(oO=Jj===0?1:Jj<0?2:4,j9=Jj!=this.pX,s1=Math.abs(a$.deltaX)):(oO=Fd===0?1:Fd<0?8:16,j9=Fd!=this.pY,s1=Math.abs(a$.deltaY)));a$.direction=oO;return j9&&s1>AG.threshold&&oO&AG.direction},
attrTest:function(a$){return QP.prototype.attrTest.call(this,a$)&&(this.state&2||!(this.state&2)&&this.directionTest(a$))},
emit:function(a$){this.pX=a$.deltaX;this.pY=a$.deltaY;var AG=yP(a$.direction);AG&&this.manager.emit(this.options.event+AG,a$);this._super.emit.call(this,a$)}});
r(aK,QP,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(a$){return this._super.attrTest.call(this,a$)&&(Math.abs(a$.scale-1)>this.options.threshold||this.state&2)},
emit:function(a$){this._super.emit.call(this,a$);a$.scale!==1&&this.manager.emit(this.options.event+(a$.scale<1?"in":"out"),a$)}});
r(yE,fl,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(a$){var AG=this.options,j9=a$.pointers.length===AG.pointers,s1=a$.distance<AG.threshold,oO=a$.deltaTime>AG.time;this._input=a$;if(!s1||!j9||a$.eventType&12&&!oO)this.reset();else if(a$.eventType&1)this.reset(),this._timer=Q(function(){this.state=8;this.tryEmit()},AG.time,this);
else if(a$.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(a$){this.state===8&&(a$&&a$.eventType&4?this.manager.emit(this.options.event+"up",a$):(this._input.timeStamp=C0(),this.manager.emit(this.options.event,this._input)))}});
r(Cl,QP,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(a$){return this._super.attrTest.call(this,a$)&&(Math.abs(a$.rotation)>this.options.threshold||this.state&2)}});
r(VP,QP,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return T3.prototype.getTouchAction.call(this)},
attrTest:function(a$){var AG=this.options.direction;if(AG&30)var j9=a$.velocity;else AG&6?j9=a$.velocityX:AG&24&&(j9=a$.velocityY);return this._super.attrTest.call(this,a$)&&AG&a$.direction&&Zz(j9)>this.options.velocity&&a$.eventType&4},
emit:function(a$){var AG=yP(a$.direction);AG&&this.manager.emit(this.options.event+AG,a$);this.manager.emit(this.options.event,a$)}});
r(JR,fl,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(a$){var AG=this.options,j9=a$.pointers.length===AG.pointers,s1=a$.distance<AG.threshold,oO=a$.deltaTime<AG.time;this.reset();if(a$.eventType&1&&this.count===0)return this.failTimeout();if(s1&&oO&&j9){if(a$.eventType!=4)return this.failTimeout();j9=this.pTime?a$.timeStamp-this.pTime<AG.interval:!0;s1=!this.pCenter||JG(this.pCenter,a$.center)<AG.posThreshold;this.pTime=a$.timeStamp;this.pCenter=a$.center;s1&&j9?this.count+=1:this.count=1;this._input=a$;if(this.count%AG.taps===0)return this.hasRequireFailures()?
(this._timer=Q(function(){this.state=8;this.tryEmit()},AG.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Q(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))}});
d1.VERSION="2.0.2";d1.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Cl,{enable:!1}],[aK,{enable:!1},["rotate"]],[VP,{direction:6}],[T3,{direction:6},["swipe"]],[JR],[JR,{event:"doubletap",taps:2},["tap"]],[yE]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};$w.prototype={set:function(a$){b(this.options,a$);return this},
stop:function(a$){this.session.stopped=a$?2:1},
recognize:function(a$){var AG=this.session;if(!AG.stopped){this.touchAction.preventDefaults(a$);var j9=this.recognizers,s1=AG.curRecognizer;if(!s1||s1&&s1.state&8)s1=AG.curRecognizer=null;for(var oO=0,Jj=j9.length;oO<Jj;oO++){var Fd=j9[oO];AG.stopped===2||s1&&Fd!=s1&&!Fd.canRecognizeWith(s1)?Fd.reset():Fd.recognize(a$);!s1&&Fd.state&14&&(s1=AG.curRecognizer=Fd)}}},
get:function(a$){if(a$ instanceof fl)return a$;for(var AG=this.recognizers,j9=0;j9<AG.length;j9++)if(AG[j9].options.event==a$)return AG[j9];return null},
add:function(a$){if(e(a$,"add",this))return this;var AG=this.get(a$.options.event);AG&&this.remove(AG);this.recognizers.push(a$);a$.manager=this;this.touchAction.update();return a$},
remove:function(a$){if(e(a$,"remove",this))return this;var AG=this.recognizers;a$=this.get(a$);AG.splice(V(AG,a$),1);this.touchAction.update();return this},
on:function(a$,AG){var j9=this.handlers;F(Y(a$),function(s1){j9[s1]=j9[s1]||[];j9[s1].push(AG)});
return this},
off:function(a$,AG){var j9=this.handlers;F(Y(a$),function(s1){AG?j9[s1].splice(V(j9[s1],AG),1):delete j9[s1]});
return this},
emit:function(a$,AG){this.options.domEvents&&eo(a$,AG);var j9=this.handlers[a$]&&this.handlers[a$].slice();if(j9&&j9.length){AG.type=a$;AG.preventDefault=function(){AG.srcEvent.preventDefault()};
a$=0;for(var s1=j9.length;a$<s1;a$++)j9[a$](AG)}},
destroy:function(){this.element&&y6(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
b(d1,{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:$w,Input:L,TouchAction:n0,Recognizer:fl,AttrRecognizer:QP,Tap:JR,Pan:T3,Swipe:VP,Pinch:aK,Rotate:Cl,Press:yE,on:U,off:d,each:F,merge:l,extend:b,inherit:r,bindFn:a,prefixed:T});
n[x]=d1})(window,document,"Hammer");
return window.Hammer}.call({});
E.DOCUMENT=v;v[Zhl]=E}return v[Zhl]};/*

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

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

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

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 h8,BQ1,vCg;h8=Element.prototype;BQ1=h8.matches||h8.matchesSelector||h8.mozMatchesSelector||h8.msMatchesSelector||h8.oMatchesSelector||h8.webkitMatchesSelector;vCg=function(){};
_.nC1=function(v){var E=ECX,n=[];return E._collectTabbableNodes(v,n)?E._sortByTabIndex(n):n};
_.c=vCg.prototype;_.c._normalizedTabIndex=function(v){return(BQ1.call(v,"input, select, textarea, button, object")?BQ1.call(v,":not([disabled])"):BQ1.call(v,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(v=v.getAttribute("tabindex")||0,Number(v)):-1};
_.c._collectTabbableNodes=function(v,E){if(v.nodeType!==Node.ELEMENT_NODE||!this._isVisible(v))return!1;var n=this._normalizedTabIndex(v),f=n>0;n>=0&&E.push(v);if(v.localName==="content"||v.localName==="slot")n=_.pG(v).getDistributedNodes();else{var x;n=((x=_.pG(v).shadowRoot)!=null?x:_.pG(v.root||v)).children}for(v=0;v<n.length;v++)f=this._collectTabbableNodes(n[v],E)||f;return f};
_.c._isVisible=function(v){var E=v.style;return E.visibility!=="hidden"&&E.display!=="none"?(E=window.getComputedStyle(v),E.visibility!=="hidden"&&E.display!=="none"):!1};
_.c._sortByTabIndex=function(v){var E=v.length;if(E<2)return v;var n=Math.ceil(E/2);E=this._sortByTabIndex(v.slice(0,n));v=this._sortByTabIndex(v.slice(n));return this._mergeSortByTabIndex(E,v)};
_.c._mergeSortByTabIndex=function(v,E){for(var n=[];v.length>0&&E.length>0;)this._hasLowerTabOrder(v[0],E[0])?n.push(E.shift()):n.push(v.shift());return n.concat(v,E)};
_.c._hasLowerTabOrder=function(v,E){v=Math.max(v.tabIndex,0);E=Math.max(E.tabIndex,0);return v===0||E===0?E>v:v>E};
var ECX=new vCg;var oCw;var fEg;_.Ee({_template:function(){if(fEg!==void 0)return fEg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;oCw===void 0&&(oCw=document.createElement("template"));var f=oCw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return fEg=v},
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&&_.pG(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.pG(this.parentNode).removeChild(this)},
_onTransitionend:function(v){v&&v.target===this&&this.complete()},
_openedChanged:function(v){v?this.prepare():(v=window.getComputedStyle(this),v.transitionDuration!=="0s"&&v.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 A8=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;mt(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)};
A8.prototype._bringOverlayAtIndexToFront=function(v){var E=this._overlays[v];if(E){var n=this._overlays.length-1,f=this._overlays[n];f&&this._shouldBeBehindOverlay(E,f)&&n--;if(!(v>=n)){f=Math.max(this._getZ(_.xog(this)),this._minimumZ);for(this._getZ(E)<=f&&this._applyOverlayZ(E,f);v<n;)this._overlays[v]=this._overlays[v+1],v++;this._overlays[n]=E}}};
A8.prototype.addOverlay=function(v){var E=this._overlays.indexOf(v);if(E>=0)this._bringOverlayAtIndexToFront(E);else{E=this._overlays.length;var n=this._overlays[E-1],f=Math.max(this._getZ(n),this._minimumZ),x=this._getZ(v);n&&this._shouldBeBehindOverlay(v,n)&&(this._applyOverlayZ(n,f),E--,f=Math.max(this._getZ(this._overlays[E-1]),this._minimumZ));x<=f&&this._applyOverlayZ(v,f);this._overlays.splice(E,0,v)}this.trackBackdrop()};
A8.prototype.removeOverlay=function(v){v=this._overlays.indexOf(v);v!==-1&&(this._overlays.splice(v,1),this.trackBackdrop())};
_.xog=function(v){return v._overlays[v._overlays.length-1]};
_.c=A8.prototype;_.c.trackBackdrop=function(){var v=this._overlayWithBackdrop();if(v||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(v)-1,this.backdropElement.opened=!!v,this.backdropElement.prepare()};
_.c._overlayWithBackdrop=function(){for(var v=this._overlays.length-1;v>=0;v--)if(this._overlays[v].withBackdrop)return this._overlays[v]};
_.c._getZ=function(v){var E=this._minimumZ;if(v){var n,f,x=Number(((n=v.hostElement)!=null?n:v).style.zIndex||window.getComputedStyle((f=v.hostElement)!=null?f:v).zIndex);x===x&&(E=x)}return E};
_.c._setZ=function(v,E){var n;((n=v.hostElement)!=null?n:v).style.zIndex=E};
_.c._applyOverlayZ=function(v,E){this._setZ(v,E+2)};
_.c._overlayInPath=function(v){v=v||[];for(var E=0;E<v.length;E++){var n=void 0;if(((n=v[E].polymerController)!=null?n:v[E])._manager===this)return v[E]}};
_.c._onCaptureClick=function(v){var E=this._overlays.length-1;if(E!==-1)for(var n=_.pG(v).path,f,x;(f=this._overlays[E])&&this._overlayInPath(n)!==((x=f.hostElement)!=null?x:f);)if(f._onCaptureClick(v),f.allowClickThrough)E--;else break};
_.c._onCaptureFocus=function(v){var E=_.xog(this);E&&E._onCaptureFocus(v)};
_.c._onCaptureKeyDown=function(v){var E=_.xog(this);E&&(_.Ff.keyboardEventMatchesKeys(v,"esc")?E._onCaptureEsc(v):_.Ff.keyboardEventMatchesKeys(v,"tab")&&E._onCaptureTab(v))};
_.c._shouldBeBehindOverlay=function(v,E){return!v.alwaysOnTop&&E.alwaysOnTop&&!E.contains(v)};
_.hK.Object.defineProperties(A8.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 v=document.activeElement;v&&v instanceof Element!==!1||(v=document.body);for(;v.root&&_.pG(v.root).activeElement;)v=_.pG(v.root).activeElement;return v}}});
_.V$=new A8;var $mA=0,Le9=0,GNN=null,Tx1=[],QT=["wheel","mousewheel","DOMMouseScroll"],ioy;_.Z("web_no_lock_on_touchstart_killswitch")&&(QT.push("touchstart"),QT.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;_.DT={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:_.V$},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var v;return this._focusedChild||_.pG((v=this.hostElement)!=null?v:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var v;return _.nC1((v=this.hostElement)!=null?v: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 v;this._observer=_.pG((v=this.hostElement)!=null?v:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var v;_.pG((v=this.hostElement)!=null?v:this).unobserveNodes(this._observer)}this._observer=null;for(var E in this.__rafs)this.__rafs[E]!==null&&cancelAnimationFrame(this.__rafs[E]);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(v){this.fire("iron-overlay-canceled",v,{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 v;((v=this.hostElement)!=null?v:this).style.outline="none";var E;((E=this.hostElement)!=null?E:this).style.display="none"}},
_openedChanged:function(v){if(v){var E;((E=this.hostElement)!=null?E:this).removeAttribute("aria-hidden")}else{var n;((n=this.hostElement)!=null?n: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 v;if(this.withBackdrop&&!((v=this.hostElement)!=null?v:this).hasAttribute("tabindex")){var E;((E=this.hostElement)!=null?E:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var n;((n=this.hostElement)!=null?n: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 v;((v=this.hostElement)!=null?v:this).style.display="none";var E;((E=this.hostElement)!=null?E:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var v,E;((v=this.hostElement)!=null?v:this).style.transition=((E=this.hostElement)!=null?E:this).style.webkitTransition="none";var n,f;((n=this.hostElement)!=null?n:this).style.transform=((f=this.hostElement)!=null?f:this).style.webkitTransform="none";var x;((x=this.hostElement)!=null?x:this).style.display=""},
_finishPositioning:function(){var v;((v=this.hostElement)!=null?v:this).style.display="none";this.scrollTop=this.scrollTop;var E,n;((E=this.hostElement)!=null?E:this).style.transition=((n=this.hostElement)!=null?n:this).style.webkitTransition="";var f,x;((f=this.hostElement)!=null?f:this).style.transform=((x=this.hostElement)!=null?x:this).style.webkitTransform="";var y;((y=this.hostElement)!=null?y:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var v=this._manager.deepActiveElement,E;if(!(E=v===document.body))a:{for(;v;v=v.assignedSlot||v.parentNode||v.host)if(v===this){E=!0;break a}E=!1}E&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(v){this.noCancelOnOutsideClick||this.cancel(v)},
_onCaptureFocus:function(v){if(this.withBackdrop){var E=_.pG(v).path;E.indexOf(this)===-1?(v.stopPropagation(),this._applyFocus()):this._focusedChild=E[0]}},
_onCaptureEsc:function(v){this.noCancelOnEscKey||this.cancel(v)},
_onCaptureTab:function(v){if(this.withBackdrop){this.__ensureFirstLastFocusables();var E=v.shiftKey,n=E?this.__firstFocusableNode:this.__lastFocusableNode;E=E?this.__lastFocusableNode:this.__firstFocusableNode;if(n===E)n=!0;else{var f=this._manager.deepActiveElement;n=f===n||f===this}n&&(v.preventDefault(),this._focusedChild=E,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 v=this._focusableNodes;this.__firstFocusableNode=v[0];this.__lastFocusableNode=v[v.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(v,E){var n=this.__rafs;n[v]!==null&&cancelAnimationFrame(n[v]);n[v]=requestAnimationFrame(function(){n[v]=null;E.call(this)}.bind(this))},
__updateScrollObservers:function(v,E,n){v&&E&&this.__isValidScrollAction(n)?(n==="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),ioy=_._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()):(v=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),v!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(v,1),ioy=_._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(PZ)for(var v=this;v;)v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&v.host&&this.__rootNodes.push(v),v=v.host||v.assignedSlot||v.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(E){E.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(v){v.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(v){return v==="lock"||v==="refit"||v==="cancel"},
__onCaptureScroll:function(v){if(!(this.__isAnimating||_.pG(v).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(v)}},
__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)}};
_.Hk=[tSw,_.ZT,_.DT];_.Ee({_template:function(){if(z61!==void 0)return z61;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;i7F===void 0&&(i7F=document.createElement("template"));var f=i7F;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return z61=v},
is:"tp-yt-iron-dropdown",behaviors:[_.mw,_.Ff,_.Hk,jXF],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 v=_.pG(this.$.content).getDistributedNodes(),E=0,n=v.length;E<n;E++)if(v[E].nodeType===Node.ELEMENT_NODE)return v[E]},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(),_.DT._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.DT._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.DT._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var v=this.containedElement,E=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),n=0;n<E.length;n++)E[n].node=v;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(v){this._readied&&(v?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var v=this.focusTarget||this.containedElement;v&&this.opened&&!this.noAutoFocus?v.focus():_.DT._applyFocus.apply(this,arguments)}});var cyU;var yyX;/*

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 pjU=new _.sS({type:"iconset"});
_.Ee({_template:function(){if(yyX!==void 0)return yyX;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;cyU===void 0&&(cyU=document.createElement("template"));
var f=cyU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return yyX=v},
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(v){v=(v||"").split(":");this._iconName=v.pop();this._iconsetName=v.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&&_.pG(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=pjU.byKey(this._iconsetName)){var v=this._iconset.applyIcon(this,this._iconName,this.theme);v&&v.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,_.pG(this.root).appendChild(this._img)}});var QV1;var XjX;_.Ee({_template:function(){if(XjX!==void 0)return XjX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;QV1===void 0&&(QV1=document.createElement("template"));var f=QV1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return XjX=v},
is:"tp-yt-iron-input",behaviors:[_.Pk],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(){_.YO.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.pG(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.pG(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 v=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":v=/[0-9.,e-]/}return v},_bindValueChanged:function(v,E){E&&(v===void 0?E.value=null:v!==E.value&&(this.inputElement.value=v),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:v}))},
_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(v){var E=v.keyCode==19||v.keyCode==20||v.keyCode==45||v.keyCode==46||v.keyCode==144||v.keyCode==145||v.keyCode>32&&v.keyCode<41||v.keyCode>111&&v.keyCode<124;return!(v.keyCode==8||v.keyCode==9||v.keyCode==13||v.keyCode==27)&&!(v.charCode==0&&E)},
_onKeypress:function(v){if(this.allowedPattern||this.inputElement.type==="number"){var E=this._patternRegExp;if(E&&!(v.metaKey||v.ctrlKey||v.altKey)){this._patternAlreadyChecked=!0;var n=String.fromCharCode(v.charCode);this._isPrintable(v)&&!E.test(n)&&(v.preventDefault(),this._announceInvalidCharacter("Invalid character "+n+" not entered."))}}},
_checkPatternValidity:function(){var v=this._patternRegExp;if(!v)return!0;for(var E=0;E<this.inputElement.value.length;E++)if(!v.test(this.inputElement.value[E]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var v=this.inputElement.checkValidity();v&&(this.required&&this.bindValue===""?v=!1:this.hasValidator()&&(v=_.Pk.validate.call(this,this.bindValue)));this.invalid=!v;this.fire("iron-input-validate");return v},
_announceInvalidCharacter:function(v){this.fire("iron-announce",{text:v})},
_computeValue:function(v){return v}});var eUo;var FH1;var moF=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),wj4=moF&&moF[1]>=8;
_.Ee({_template:function(){if(FH1!==void 0)return FH1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;eUo===void 0&&(eUo=document.createElement("template"));var f=eUo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return FH1=v},
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:[aK9,_.ZT,_.uml,KWo],_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 _.pG(_.pG(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var v=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,v-this._physicalCount)},set _virtualStart(v){v=this._clamp(v,0,this._maxVirtualStart);this.grid&&(v-=v%this._itemsPerRow);this._virtualStartVal=v},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(v){v%=this._physicalCount;v<0&&(v=this._physicalCount+v);this.grid&&(v-=v%this._itemsPerRow);this._physicalStartVal=v},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(v){this._physicalCountVal=v},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 v=this._firstVisibleIndexVal;if(v==null){var E=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
v=this._iterateItems(function(n,f){E+=this._getPhysicalSizeIncrement(n);if(E>this._scrollPosition)return this.grid?f-f%this._itemsPerRow:f;if(this.grid&&this._virtualCount-1===f)return f-f%this._itemsPerRow})||0}return v},
get lastVisibleIndex(){var v=this._lastVisibleIndexVal;if(v==null){if(this.grid)v=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var E=this._physicalTop+this._scrollOffset;this._iterateItems(function(n,f){E<this._scrollBottom&&(v=f);E+=this._getPhysicalSizeIncrement(n)})}this._lastVisibleIndexVal=v}return v},
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,_.EZ);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(v){this.style.webkitOverflowScrolling=v===this?"touch":"";this.style.overflowY=v===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.EZ)},
updateViewportBoundaries:function(){var v=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(v["padding-top"],10);this._isRTL=v.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var v=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),E=v-this._scrollPosition,n=E>=0;this._scrollPosition=v;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(E)>this._physicalSize&&this._physicalSize>0?(E-=this._scrollOffset,n=Math.round(E/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=n,this._physicalStart+=n,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(v=this._getReusables(n),n?(this._physicalTop=v.physicalTop,this._virtualStart+=v.indexes.length,this._physicalStart+=v.indexes.length):(this._virtualStart=this._virtualStart-v.indexes.length,this._physicalStart=this._physicalStart-v.indexes.length),this._update(v.indexes,n?null:v.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),l$))},
_getReusables:function(v){var E=[],n=this._hiddenContentSize*this._ratio,f=this._virtualStart,x=this._virtualEnd,y=this._physicalCount,Q=this._physicalTop+this._scrollOffset;var e=this._physicalBottom+this._scrollOffset;var F=this._scrollPosition,b=this._scrollBottom;if(v){var l=this._physicalStart;e=F-Q}else l=this._physicalEnd,e-=b;for(;;){var r=this._getPhysicalSizeIncrement(l);e-=r;if(E.length>=y||e<=n)break;if(v){if(x+E.length+1>=this._virtualCount)break;if(Q+r>=F-this._scrollOffset)break;E.push(l);
Q+=r;l=(l+1)%y}else{if(f-E.length<=0)break;if(Q+this._physicalSize-r<=b)break;E.push(l);Q-=r;l=l===0?y-1:l-1}}return{indexes:E,physicalTop:Q-this._scrollOffset}},
_update:function(v,E){if(!(v&&v.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(v);this._updateMetrics(v);if(E)for(;E.length;)v=E.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(v);this._positionItems();this._updateScrollerSize()}},
_createPool:function(v){this._ensureTemplatized();var E,n=Array(v);for(E=0;E<v;E++){var f=this.stamp(null);n[E]=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}return n},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(v){v=this._clamp(this._physicalCount+v,3,this._virtualCount-this._virtualStart);v=this._convertIndexToCompleteRow(v);if(this.grid){var E=v%this._itemsPerRow;E&&v-E<=this._physicalCount&&(v+=this._itemsPerRow);v-=E}v-=this._physicalCount;E=Math.round(this._physicalCount*.5);if(!(v<0)){if(v>0){E=window.performance.now();[].push.apply(this._physicalItems,this._createPool(v));for(var n=0;n<v;n++)this._physicalSizes.push(0);this._physicalCount+=v;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=v);this._update();this._templateCost=(window.performance.now()-E)/v;E=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||E===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,E)),XRg):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,E),l$))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var v=this._getReusables(!0);this._physicalTop=v.physicalTop;this._virtualStart+=v.indexes.length;this._physicalStart+=v.indexes.length;this._update(v.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 v={__key__:!0};v[this.as]=!0;v[this.indexAs]=!0;v[this.selectedAs]=!0;v.tabIndex=!0;this._instanceProps=v;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(v,E){typeof E!=="undefined"&&(this.notifyResize(),_.o4(),v&&this._updateGridMetrics())},
_itemsChanged:function(v){if(v.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,
_.EZ);else if(v.path==="items.splices"){this._adjustVirtualIndex(v.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(v.value.indexSplices.some(function(n){return n.addedCount>0||n.removed.length>0})){var E=this._getActiveElement();
this.contains(E)&&E.blur()}v=v.value.indexSplices.some(function(n){return n.index+n.addedCount>=this._virtualStart&&n.index<=this._virtualEnd},this);
this._isClientFull()&&!v||this._debounce("_render",this._render,_.EZ)}else v.path!=="items.length"&&this._forwardItemPath(v.path,v.value)},
_forwardItemPath:function(v,E){v=v.slice(6);var n=v.indexOf(".");n===-1&&(n=v.length);var f,x=this.modelForElement(this._offscreenFocusedItem),y=parseInt(v.substring(0,n),10);if(f=this._isIndexRendered(y)){var Q=this._getPhysicalIndex(y);var e=this.modelForElement(this._physicalItems[Q])}else x&&(e=x);e&&e[this.indexAs]===y&&(v=v.substring(n+1),v=this.as+(v?"."+v:""),e._setPendingPropertyOrPath(v,E,!1,!0),e._flushProperties&&e._flushProperties(),f&&(this._updateMetrics([Q]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(v){v.forEach(function(E){E.removed.forEach(this._removeItem,this);E.index<this._virtualStart&&(E=Math.max(E.addedCount-E.removed.length,E.index-this._virtualStart),this._virtualStart+=E,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=E))},this)},
_removeItem:function(v){this.$.selector.deselect(v);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===v&&this._removeFocusedItem()},
_iterateItems:function(v,E){var n,f;if(arguments.length===2&&E)for(f=0;f<E.length;f++){var x=E[f];var y=this._computeVidx(x);if((n=v.call(this,x,y))!=null)return n}else{x=this._physicalStart;for(y=this._virtualStart;x<this._physicalCount;x++,y++)if((n=v.call(this,x,y))!=null)return n;for(x=0;x<this._physicalStart;x++,y++)if((n=v.call(this,x,y))!=null)return n}},
_computeVidx:function(v){return v>=this._physicalStart?this._virtualStart+(v-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+v},
_assignModels:function(v){this._iterateItems(function(E,n){var f=this._physicalItems[E],x=this.items&&this.items[n];if(x!=null){var y=this.modelForElement(f);y.__key__=null;this._forwardProperty(y,this.as,x);this._forwardProperty(y,this.selectedAs,this.$.selector.isSelected(x));this._forwardProperty(y,this.indexAs,n);this._forwardProperty(y,"tabIndex",this._focusedVirtualIndex===n?0:-1);this._physicalIndexForKey[y.__key__]=E;y._flushProperties&&y._flushProperties(!0);f.removeAttribute("hidden")}else f.setAttribute("hidden",
"")},v)},
_updateMetrics:function(v){_.o4();var E=0,n=0,f=this._physicalAverageCount,x=this._physicalAverage;this._iterateItems(function(y){n+=this._physicalSizes[y];this._physicalSizes[y]=this._physicalItems[y].offsetHeight;E+=this._physicalSizes[y];this._physicalAverageCount+=this._physicalSizes[y]?1:0},v);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(n=this._itemsPerRow===1?n:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+E-n,this._itemsPerRow=1);this._physicalAverageCount!==f&&(this._physicalAverage=Math.round((x*f+E)/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 v=this._physicalTop;if(this.grid){var E=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(n,f){var x=Math.floor(f%this._itemsPerRow*this._itemWidth+E);this._isRTL&&(x*=-1);this.translate3d(x+"px",v+"px",0,this._physicalItems[n]);this._shouldRenderNextRow(f)&&(v+=this._rowHeight)})}else this._iterateItems(function(n){this.translate3d(0,v+"px",0,this._physicalItems[n]);
v+=this._physicalSizes[n]})},
_getPhysicalSizeIncrement:function(v){return this.grid?this._computeVidx(v)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[v]},
_shouldRenderNextRow:function(v){return v%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var v=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(v!==0){this._physicalTop=this._physicalTop-v;var E=this._scrollPosition;!wj4&&E>0&&this._resetScrollPosition(E-v)}},
_resetScrollPosition:function(v){this.scrollTarget&&v>=0&&(this._scrollPosition=this._scrollTop=v)},
_updateScrollerSize:function(v){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((v=(v=(v=v||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(v){return this.scrollToIndex(this.items.indexOf(v))},
scrollToIndex:function(v){if(!(typeof v!=="number"||v<0||v>this.items.length-1)&&(_.o4(),this._physicalCount!==0)){v=this._clamp(v,0,this._virtualCount-1);if(!this._isIndexRendered(v)||v>=this._maxVirtualStart)this._virtualStart=this.grid?v-this._itemsPerRow*2:v-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var E=this._physicalStart,n=this._virtualStart,f=0,x=this._hiddenContentSize;n<v&&
f<=x;)f+=this._getPhysicalSizeIncrement(E),E=(E+1)%this._physicalCount,n++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+f);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)},_.EZ)},
selectItem:function(v){return this.selectIndex(this.items.indexOf(v))},
selectIndex:function(v){if(!(v<0||v>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(v)){var E=this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)]);E&&(E[this.selectedAs]=!0);this.updateSizeForIndex(v)}this.$.selector.selectIndex(v)}},
deselectItem:function(v){return this.deselectIndex(this.items.indexOf(v))},
deselectIndex:function(v){v<0||v>=this._virtualCount||(this._isIndexRendered(v)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)])[this.selectedAs]=!1,this.updateSizeForIndex(v)),this.$.selector.deselectIndex(v))},
toggleSelectionForItem:function(v){return this.toggleSelectionForIndex(this.items.indexOf(v))},
toggleSelectionForIndex:function(v){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(v):this.$.selector.isSelected(this.items[v]))?this.deselectIndex(v):this.selectIndex(v)},
clearSelection:function(){this._iterateItems(function(v){this.modelForElement(this._physicalItems[v])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(v){(v?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(v){var E=this.modelForElement(v.target);if(E){var n=_.pG(v).path[0];v=this._getActiveElement();var f=this._physicalItems[this._getPhysicalIndex(E[this.indexAs])];if(n.localName!=="input"&&n.localName!=="button"&&n.localName!=="select"){n=E.tabIndex;E.tabIndex=-100;var x=v?v.tabIndex:-1;E.tabIndex=n;v&&f!==v&&f.contains(v)&&x!==-100||this.toggleSelectionForItem(E[this.as])}}},
_multiSelectionChanged:function(v){this.clearSelection();this.$.selector.multi=v},
updateSizeForItem:function(v){return this.updateSizeForIndex(this.items.indexOf(v))},
updateSizeForIndex:function(v){if(!this._isIndexRendered(v))return null;this._updateMetrics([this._getPhysicalIndex(v)]);this._positionItems();return null},
_manageFocus:function(){var v=this._focusedVirtualIndex;v>=0&&v<this._virtualCount?this._isIndexRendered(v)?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(v){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(v/this._itemsPerRow)*this._itemsPerRow:v},
_isIndexRendered:function(v){return v>=this._virtualStart&&v<=this._virtualEnd},
_isIndexVisible:function(v){return v>=this.firstVisibleIndex&&v<=this.lastVisibleIndex},
_getPhysicalIndex:function(v){return(this._physicalStart+(v-this._virtualStart))%this._physicalCount},
focusItem:function(v){this._focusPhysicalItem(v)},
_focusPhysicalItem:function(v){if(!(v<0||v>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(v)||this.scrollToIndex(v);var E=this._physicalItems[this._getPhysicalIndex(v)],n=this.modelForElement(E),f;n.tabIndex=-100;E.tabIndex===-100&&(f=E);f||(f=_.pG(E).querySelector('[tabindex="-100"]'));n.tabIndex=0;this._focusedVirtualIndex=v;f&&f.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 v=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var E=this.stamp(null);this._focusBackfillItem=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}this._offscreenFocusedItem=this._physicalItems[v];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[v]=this._focusBackfillItem;this._focusedPhysicalIndex=v;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var v=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),E=this._physicalItems[v];if(E){var n=this.modelForElement(E),f=this.modelForElement(this._offscreenFocusedItem);n[this.as]===f[this.as]?(this._focusBackfillItem=E,n.tabIndex=-1,this._physicalItems[v]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(v){v=this.modelForElement(v.target);var E=this.modelForElement(this._focusedItem),n=this._offscreenFocusedItem!==null,f=this._focusedVirtualIndex;v&&(E===v?this._isIndexVisible(f)||this.scrollToIndex(f):(this._restoreFocusedItem(),E&&(E.tabIndex=-1),v.tabIndex=0,this._focusedVirtualIndex=f=v[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(f),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],n&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(v){switch(v.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&v.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&&v.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(v)}},
_clamp:function(v,E,n){return Math.min(n,Math.max(E,v))},
_debounce:function(v,E,n){this._debouncers=this._debouncers||{};this._debouncers[v]=_.tS(this._debouncers[v],n,E.bind(this));_.BN(this._debouncers[v])},
_forwardProperty:function(v,E,n){v._setPendingProperty(E,n)},
_forwardHostPropV2:function(v,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&this.modelForElement(n).forwardHostProp(v,E)},this)},
_notifyInstancePropV2:function(v,E,n){naE(this.as,E)&&(v=v[this.indexAs],E==this.as&&(this.items[v]=n),this.notifyPath(ii(this.as,"items."+v,E),n))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(v,E,n){E.indexOf(this.as+".")===0&&this.notifyPath("items."+v.__key__+"."+E.slice(this.as.length+1),n)},
_forwardParentPath:function(v,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&this.modelForElement(n).notifyPath(v,E)},this)},
_forwardParentProp:function(v,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&(this.modelForElement(n)[v]=E)},this)},
_getActiveElement:function(){var v=this._itemsParent.node.domHost;return _.pG(v?v.root:document).activeElement},
_scrollTargetChanged:function(v,E){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(E)if(v==="document")this.scrollTarget=this._doc;else if(typeof v==="string"){var n,f;this.scrollTarget=(E=(f=(n=this.domHost)==null?void 0:n.polymerController)!=null?f:this.domHost)&&E.$?E.$[v]:_.pG(this.ownerDocument).querySelector("#"+v)}else this._isValidScrollTarget()&&(this._oldScrollTarget=v,this._toggleScrollListener(this._shouldHaveListener,v))}});var bUo;var lES;var sVU=function(v,E,n,f){v-=n;E-=f;return Math.sqrt(v*v+E*E)},ryF=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
z$X.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var R$$=function(v){v.maxRadius=0;v.mouseDownStart=0;v.mouseUpStart=0;v.xStart=0;v.yStart=0;v.xEnd=0;v.yEnd=0;v.containerMetrics=new z$X(v.element)};
tr$.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var v=ryF()-this.mouseDownStart;this.mouseUpStart&&(v-=this.mouseUpElapsed);return v},get mouseUpElapsed(){return this.mouseUpStart?ryF()-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 v=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(v*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-v/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 v=this.radius/(this.containerMetrics.size/2);var E=this.xNow-this.containerMetrics.width/2;var n=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+E+"px, "+n+"px)";this.waveContainer.style.transform="translate3d("+E+"px, "+n+"px, 0)";this.wave.style.webkitTransform="scale("+v+","+v+")";this.wave.style.transform="scale3d("+v+","+v+",1)"},
downAction:function(v){var E=this.containerMetrics.width/2,n=this.containerMetrics.height/2;R$$(this);this.mouseDownStart=ryF();this.center?(this.xStart=E,this.yStart=n):(this.xStart=v?v.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=v?v.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=E,this.yEnd=n);v=this.containerMetrics;E=this.xStart;n=this.yStart;this.maxRadius=Math.max(sVU(E,n,0,0),sVU(E,n,
v.width,0),sVU(E,n,0,v.height),sVU(E,n,v.width,v.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=ryF())},
remove:function(){_.pG(_.pG(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Ee({_template:function(){if(lES!==void 0)return lES;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;bUo===void 0&&(bUo=document.createElement("template"));var f=bUo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return lES=v},
is:"tp-yt-paper-ripple",behaviors:[_.Ff],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(){_.pG(this).parentNode.nodeType==11?this.keyEventTarget=_.pG(this).getOwnerRoot().host:this.keyEventTarget=_.pG(this).parentNode;var v=this.keyEventTarget;this.listen(v,"up","uiUpAction");this.listen(v,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(v){v.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var v=0;v<this.ripples.length;++v)if(!this.ripples[v].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(v){this.noink||this.downAction(v)},
downAction:function(v){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(v),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(v){this.noink||this.upAction(v)},
upAction:function(v){this.holdDown||(this.ripples.forEach(function(E){E.upAction(v)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var v=0;v<this.ripples.length;++v){var E=this.ripples[v];E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var v=new tr$(this);_.pG(this.$.waves).appendChild(v.waveContainer);this.$.background.style.backgroundColor=v.color;this.ripples.push(v);this._setAnimating(!0);return v},
removeRipple:function(v){var E=this.ripples.indexOf(v);E<0||(this.ripples.splice(E,1),v.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var v;for(v=0;v<this.ripples.length;++v){var E=this.ripples[v];E.draw();this.$.background.style.opacity=E.outerOpacity;E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}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(v,E){E!==void 0&&(v?this.downAction():this.upAction())}});var g7={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(v){w7._downHandler.call(this,v);this.pressed&&this.ensureRipple(v)},
ensureRipple:function(v){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var E=this._rippleContainer||this.root;E&&_.pG(E).appendChild(this._ripple);if(v){E=_.pG(this._rippleContainer||this);var n=_.pG(v).rootTarget;E.deepContains(n)&&this._ripple.uiDownAction(v)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(v){this.hasRipple()&&(this._ripple.noink=v)}};var PTX={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 v=1;this.disabled?v=0:this.active||this.pressed?v=4:this.receivedFocusFromKeyboard&&(v=3);this._setElevation(v)},
_computeKeyboardClass:function(v){this.toggleClass("keyboard-focus",v)},
_spaceKeyDownHandler:function(v){w7._spaceKeyDownHandler.call(this,v);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(v){w7._spaceKeyUpHandler.call(this,v);this.hasRipple()&&this._ripple.uiUpAction()}},aE1=[Kc1,
_.mw,g7,PTX];_.ZU1={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=v)},
_createRipple:function(){var v=g7._createRipple();v.id="ink";v.setAttribute("center","");v.classList.add("circle");return v}};
_.CT1=[Kc1,_.mw,g7,_.ZU1];_.MhF=[_.CT1,Yd1,{_checkedChanged:function(){Igz._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){g7._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var S_U;var Uoi;var q_w=function(){};
_.c=q_w.prototype;_.c.registered=function(){};
_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c._tapHandler=function(){};
_.c._focusChanged=function(){};
_.c._detectKeyboardFocus=function(){};
_.c._userActivate=function(){};
_.c._upHandler=function(){};
_.c._asyncClick=function(){};
_.c._pressedChanged=function(){};
_.c._ariaActiveAttributeChanged=function(){};
_.c._activeChanged=function(){};
_.c._controlStateChanged=function(){};
_.c._changedButtonState=function(){};
_.c._focusBlurHandler=function(){};
_.c._disabledChanged=function(){};
_.c._changedControlState=function(){};
_.c._buttonStateChanged=function(){};
_.c._downHandler=function(){};
_.c.ensureRipple=function(){};
_.c.getRipple=function(){};
_.c.hasRipple=function(){};
_.c._createRipple=function(){};
_.c._noinkChanged=function(){};
_.c._computeKeyboardClass=function(){};
_.c._spaceKeyDownHandler=function(){};
_.c._spaceKeyUpHandler=function(){};
_.c._setPressed=function(){};
_.c._setPointerDown=function(){};
_.c._setReceivedFocusFromKeyboard=function(){};
_.c._setFocused=function(){};
_.c._setElevation=function(){};
q_w=_.Ee({_template:function(){if(Uoi!==void 0)return Uoi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;S_U===void 0&&(S_U=document.createElement("template"));var f=S_U;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return Uoi=v},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[aE1],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?PTX._calculateElevation.apply(this):this._setElevation(0)}});var Jyi;var KHg;var doS={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(v){_.Z("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(v)},
_onDialogClickWrapped:function(v){_.Z("dialog_behavior_no_tap_killswitch")||this._onDialogClick(v)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(v,E){E&&(v?(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(v){this.closingReason=this.closingReason||{};this.closingReason.confirmed=v},
_onDialogClick:function(v){for(var E=_.pG(v).path,n=0,f,x=E.indexOf((f=this.hostElement)!=null?f:this);n<x;n++)if(f=E[n],f.hasAttribute&&(f.hasAttribute("dialog-dismiss")||f.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(f.hasAttribute("dialog-confirm"));this.close();v.stopPropagation();break}}},IE4=[_.Hk,
doS];var Y_1=document.createElement("template");_.q(Y_1,'<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(Y_1.content);var hUi=document.createElement("template");_.q(hUi,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(hUi.content);_.Ee({_template:function(){if(KHg!==void 0)return KHg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;Jyi===void 0&&(Jyi=document.createElement("template"));var f=Jyi;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return KHg=v},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[IE4,jXF],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 AyU;var Vho;_.Ee({_template:function(){if(Vho!==void 0)return Vho;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;AyU===void 0&&(AyU=document.createElement("template"));var f=AyU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return Vho=v},
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 v,E,n;if(((v=window.ShadyDOM)==null?void 0:v.noPatch)!==!0&&((E=window.ShadyDOM)==null?void 0:E.noPatch)!=="on-demand"||((n=this.__shady_parentNode)==null?void 0:n.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(doS)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Dow=_.jU(['<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>']),HU6=_.AcU(Dow);HU6.setAttribute("style","display: none;");document.head.appendChild(HU6.content);var gC6;var NN1;var uH4;var jVz;_.Ee({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[CM],configure:function(v){var E=v.node,n=E.getBoundingClientRect().height;return this._effect=new KeyframeEffect(E,[{height:n/2+"px"},{height:n+"px"}],this.timingFromConfig(v))}});
_.Ee({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[CM],configure:function(v){var E=v.node,n=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:n/2+"px"},{width:n+"px"}],this.timingFromConfig(v))}});
_.Ee({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[CM],configure:function(v){var E=v.node,n=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:n+"px"},{width:n-n/20+"px"}],this.timingFromConfig(v))}});
_.Ee({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[CM],configure:function(v){var E=v.node,n=E.getBoundingClientRect().height;this.setPrefixedProperty(E,"transformOrigin","0 0");return this._effect=new KeyframeEffect(E,[{height:n+"px",transform:"translateY(0)"},{height:n/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(v))}});var Nh={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},OU1=function(){};
_.c=OU1.prototype;_.c.registered=function(){};
_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c._focusBlurHandler=function(){};
_.c._changedControlState=function(){};
_.c._setFocused=function(){};
OU1=_.Ee({_template:function(){if(jVz!==void 0)return jVz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;uH4===void 0&&(uH4=document.createElement("template"));var f=uH4;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return jVz=v},
is:"tp-yt-paper-menu-button",behaviors:[_.Ff,_.mw],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:Nh.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Nh.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:Nh.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 v=_.pG(this.$.content).getDistributedNodes(),E=0,n=v.length;E<n;E++)if(v[E].nodeType===Node.ELEMENT_NODE)return v[E]},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(v,E){v?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):E!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(v){_.mw._disabledChanged.apply(this,arguments);v&&this.opened&&this.close()},
__onIronOverlayCanceled:function(v){var E=this.$.trigger;_.pG(v.detail).path.indexOf(E)>-1&&v.preventDefault()}});
Object.keys(Nh).forEach(function(v){OU1[v]=Nh[v]});var kk1=_.bI.IronButtonState,WHg=(0,_.Fl)(HTMLElement);
_.Ee({_template:function(){if(NN1!==void 0)return NN1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;gC6===void 0&&(gC6=document.createElement("template"));var f=gC6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return NN1=v},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[kk1,_.mw,g7,_.lI,_.Pk],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(v){var E=(0,_.vZ)(this);E.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:v});E.shadowRoot.appendChild(v);return WHg.prototype._attachDom.call(this,v)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.pG(this.$.content).getDistributedNodes(),E=0,n=v.length;E<n;E++)if(v[E].nodeType===Node.ELEMENT_NODE)return v[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var E="";v?E=v.label||v.getAttribute("label")||v.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(v,E){return E?E:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",v)},
_computeLabelClass:function(v,E,n){var f="label";if(v)n&&(f+=" label-is-hidden");else if(n||E)f+=" label-is-floating";return f},
_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 $ol;var LH1;_.Ee({is:"tp-yt-paper-icon-button",_template:function(){if(LH1!==void 0)return LH1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;$ol===void 0&&($ol=document.createElement("template"));var f=$ol;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return LH1=v},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.CT1],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(v,E){var n=this.getAttribute("aria-label");n&&E!=n||this.setAttribute("aria-label",v)}});var Gki;var TNF;_.uI=[Kc1,_.mw,{hostAttributes:{role:"option",tabindex:"0"}}];_.Ee({_template:function(){if(TNF!==void 0)return TNF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Gki===void 0&&(Gki=document.createElement("template"));var f=Gki;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return TNF=v},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.uI]});var iUl;var zU1;var RU6={attached:function(){this.fire("addon-attached")},
update:function(){}};var th4=1,BNS=1,vJF=1,EJ4=[_.mw,_.Ff,{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();!$e&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(v,E){v?v=v+" "+E:v=E;return v},
_onAddonAttached:function(v){v=_.pG(v).rootTarget;if(v.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,v.id);else{var E="paper-input-add-on-"+BNS++;v.id=E;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,E)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(v){_.mw._focusBlurHandler.call(this,v);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var v=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",v);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(v){try{var E=this.inputElement.selectionStart;this.value=v;this.inputElement.selectionStart=E;this.inputElement.selectionEnd=E}catch(n){this.value=v}},
_computeAlwaysFloatLabel:function(v,E){return E||v},
_updateAriaLabelledBy:function(){var v=_.pG(this.root).querySelector("label");if(v){if(v.id)var E=v.id;else E="paper-input-label-"+th4++,v.id=E;this._ariaLabelledBy=E}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+vJF++)},
_onChange:function(v){this.shadowRoot&&this.fire(v.type,{sourceEvent:v},{node:this,bubbles:v.bubbles,cancelable:v.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var v=document.activeElement;v instanceof HTMLElement&&v!==document.body&&v!==document.documentElement||this._focusableElement.focus()}}}];var nJ6;var oJo;_.Ee({_template:function(){if(oJo!==void 0)return oJo;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;nJ6===void 0&&(nJ6=document.createElement("template"));var f=nJ6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return oJo=v},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[RU6],properties:{_charCounterStr:{type:String,value:"0"}},update:function(v){if(v.inputElement){v.value=v.value||"";var E=v.value.toString().length.toString();v.inputElement.hasAttribute("maxlength")&&(E+="/"+v.inputElement.getAttribute("maxlength"));this._charCounterStr=E}}});var fRw;var xIU;_.Ee({_template:function(){if(xIU!==void 0)return xIU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;fRw===void 0&&(fRw=document.createElement("template"));var f=fRw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return xIU=v},
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 WP(this.attrForValue)},get _inputElement(){return _.pG(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(v){this._addons||(this._addons=[]);v=v.target;this._addons.indexOf(v)===-1&&(this._addons.push(v),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(v){this._handleValueAndAutoValidate(v.target)},
_onValueChanged:function(v){var E=v.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,E.value===void 0||E.value===""))return;this._handleValueAndAutoValidate(v.target)},
_handleValue:function(v){var E=this._inputElementValue;E||E===0||v.type==="number"&&!v.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:v,value:E,invalid:this.invalid})},
_handleValueAndAutoValidate:function(v){this.autoValidate&&v&&(this.invalid=!(v.validate?v.validate(this._inputElementValue):v.checkValidity()));this._handleValue(v)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(v){if(this._addons)for(var E,n=0;E=this._addons[n];n++)E.update(v)},
_computeInputContentClass:function(v,E,n,f,x){var y="input-content";v?(x&&(y+=" label-is-hidden"),f&&!this.noUnfloatedLabelError&&(y+=" is-invalid")):(v=this.querySelector("label"),E||x?(y+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",f?y+=" is-invalid":n&&(y+=" label-is-highlighted")):(v&&(this.$.labelAndInputContainer.style.position="relative"),f&&!this.noUnfloatedLabelError&&(y+=" is-invalid")));n&&(y+=" focused");return y},
_computeUnderlineClass:function(v,E){var n="underline";E?n+=" is-invalid":v&&(n+=" is-highlighted");return n},
_computeAddOnContentClass:function(v,E){var n="add-on-content";E?n+=" is-invalid":v&&(n+=" is-highlighted");return n}});var cfF;var yfl;_.Ee({_template:function(){if(yfl!==void 0)return yfl;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;cfF===void 0&&(cfF=document.createElement("template"));var f=cfF;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return yfl=v},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[RU6],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(v){this._setInvalid(v.invalid)}});_.Ee({is:"tp-yt-paper-input",_template:function(){if(zU1!==void 0)return zU1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;iUl===void 0&&(iUl=document.createElement("template"));var f=iUl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return zU1=v},
behaviors:[EJ4,_.lI],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 p_1;var Qr1;_.Ee({_template:function(){if(Qr1!==void 0)return Qr1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=
v.content,n=E.insertBefore;p_1===void 0&&(p_1=document.createElement("template"));var f=p_1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return Qr1=v},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.uI]});var X_g;var eil;_.Ee({_template:function(){if(eil!==void 0)return eil;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;X_g===void 0&&(X_g=document.createElement("template"));var f=X_g;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return eil=v},
is:"tp-yt-paper-item-body"});var FnU;var mIS;var w_4=function(){};
_.c=w_4.prototype;_.c.indexOf=function(){};
_.c.selectPrevious=function(){};
_.c.selectNext=function(){};
_.c.selectIndex=function(){};
_.c.forceSynchronousItemUpdate=function(){};
_.c._checkFallback=function(){};
_.c._addListener=function(){};
_.c._removeListener=function(){};
_.c._activateEventChanged=function(){};
_.c._updateItems=function(){};
_.c._selectSelected=function(){};
_.c._filterItem=function(){};
_.c._valueToItem=function(){};
_.c._valueToIndex=function(){};
_.c._indexToValue=function(){};
_.c._valueForItem=function(){};
_.c._observeItems=function(){};
_.c._itemActivate=function(){};
_.c.multiChanged=function(){};
_.c._updateAttrForSelected=function(){};
_.c._updateSelected=function(){};
_.c._selectMulti=function(){};
_.c._selectionChange=function(){};
_.c._toggleSelected=function(){};
_.c._valuesToItems=function(){};
_.c.registered=function(){};
_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c.select=function(){};
_.c._resetTabindices=function(){};
_.c._updateMultiselectable=function(){};
_.c._focusWithKeyboardEvent=function(){};
_.c._clearSearchText=function(){};
_.c._focusPrevious=function(){};
_.c._focusNext=function(){};
_.c._applySelection=function(){};
_.c._focusedItemChanged=function(){};
_.c._onIronItemsChanged=function(){};
_.c._onShiftTabDown=function(){};
_.c._onFocus=function(){};
_.c._onUpKey=function(){};
_.c._onDownKey=function(){};
_.c._onEscKey=function(){};
_.c._onKeydown=function(){};
_.c._activateHandler=function(){};
_.c._disabledChanged=function(){};
_.c._setSelectedItem=function(){};
_.c._setItems=function(){};
_.c._setSelectedItems=function(){};
_.c._setFocusedItem=function(){};
w_4=_.Ee({_template:function(){if(mIS!==void 0)return mIS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;FnU===void 0&&(FnU=document.createElement("template"));var f=FnU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return mIS=v},
is:"tp-yt-paper-listbox",behaviors:[DqF],hostAttributes:{role:"listbox"}});var be1;var lRF;var srw={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(v,E){return[v||E?"active":"",E?"cooldown":""].join(" ")},
__activeChanged:function(v,E){this.__setAriaHidden(!v);this.__coolingDown=!v&&E},
__altChanged:function(v){this.setAttribute("aria-label",v||"loading")},
__setAriaHidden:function(v){v?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Ee({_template:function(){if(lRF!==void 0)return lRF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;be1===void 0&&(be1=document.createElement("template"));var f=be1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return lRF=v},
is:"tp-yt-paper-spinner",behaviors:[srw]});var rfX;var P9o;_.Ee({_template:function(){if(P9o!==void 0)return P9o;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;rfX===void 0&&(rfX=document.createElement("template"));var f=rfX;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return P9o=v},
is:"tp-yt-paper-spinner-lite",behaviors:[srw]});var aRg;var Ze1;_.Ee({_template:function(){if(Ze1!==void 0)return Ze1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;aRg===void 0&&(aRg=document.createElement("template"));var f=aRg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return Ze1=v},
is:"tp-yt-paper-tab",behaviors:[_.mw,_.bI.IronButtonState,g7],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 v=_.pG(this).parentNode;return!!v&&!!v.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(v){if(this.link){var E=this.queryEffectiveChildren("a");E&&v.target!==E&&E.click()}}});var C9X;var MUi;var Sy1=_.jU(['<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>']),UIU=_.AcU(Sy1);document.head.appendChild(UIU.content);_.Ee({_template:function(){if(MUi!==void 0)return MUi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;C9X===void 0&&(C9X=document.createElement("template"));var f=C9X;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return MUi=v},
is:"tp-yt-paper-tabs",behaviors:[_.ZT,_.g_1],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(v){_.pG(this).querySelectorAll("tp-yt-paper-tab").forEach(v?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(v){v.setAttribute("noink","")},
_removeNoinkAttribute:function(v){v.removeAttribute("noink")},
_computeScrollButtonClass:function(v,E,n,f){return!E||n?"hidden":v?f?"hidden":"not-visible":""},
_computeTabsContentClass:function(v,E){var n="tabs-content";v&&(n+=" scrollable");if(!v||E)n+=" fit-container";return n},
_computeSelectionBarClass:function(v,E){var n="selection-bar";v?n+=" hidden":E&&(n+=" align-bottom");return n},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(v){return""+v},
_onIronSelect:function(v){this._tabChanged(v.detail.item,this._previousTab);this._previousTab=v.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();_.a1._activateHandler.apply(this,arguments)},
_scheduleActivation:function(v,E){this._pendingActivationItem=v;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,E)},
_delayedActivationHandler:function(){var v=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;v.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(v){v.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(v,E){this.scrollable&&this._affectScroll(E&&-E.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(v){this.$.tabsContainer.scrollLeft+=v;v=this.$.tabsContainer.scrollLeft;this._leftHidden=v===0||this.hideScrollButtons;this._rightHidden=v===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(v,E){if(v){var n=this.$.tabsContent.getBoundingClientRect(),f=n.width,x=v.getBoundingClientRect();n=x.left-n.left;this._pos={width:this._calcPercent(x.width,f),left:this._calcPercent(n,f)};if(this.noSlide||E==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var y=E.getBoundingClientRect();E=this.items.indexOf(E);v=this.items.indexOf(v);this.$.selectionBar.classList.add("expand");
v=E<v;this._isRTL&&(v=!v);v?this._positionBar(this._calcPercent(x.left+x.width-y.left,f)-5,this._left):this._positionBar(this._calcPercent(y.left+y.width-x.left,f)-5,this._calcPercent(n,f)+5);this.scrollable&&this._scrollToSelectedIfNeeded(x.width,n)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(v,E){E-=this.$.tabsContainer.scrollLeft;E<0?this.$.tabsContainer.scrollLeft+=E:(E+=v-this.$.tabsContainer.offsetWidth,E>0&&(this.$.tabsContainer.scrollLeft+=E))},
_calcPercent:function(v,E){return 100*v/E},
_positionBar:function(v,E){v=v||0;E=E||0;this._width=v;this._left=E;this.transform("translateX("+E+"%) scaleX("+v/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var v=this.$.selectionBar.classList;v.contains("expand")?(v.remove("expand"),v.add("contract"),this._positionBar(this._pos.width,this._pos.left)):v.contains("contract")&&v.remove("contract")}});var qyP;var JfS;_.Ee({_template:function(){if(JfS!==void 0)return JfS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;qyP===void 0&&(qyP=document.createElement("template"));var f=qyP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return JfS=v},
is:"tp-yt-paper-textarea",behaviors:[EJ4,_.lI],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(v){this.$.input.textarea.selectionStart=v},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(v){this.$.input.textarea.selectionEnd=v},_ariaLabelledByChanged:function(v){this._focusableElement.setAttribute("aria-labelledby",v)},
_ariaDescribedByChanged:function(v){this._focusableElement.setAttribute("aria-describedby",v)},
get _focusableElement(){return this.inputElement.textarea}});var Knl;var dIX;/*

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 IRz=function(){};
_.c=IRz.prototype;_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c._tapHandler=function(){};
_.c._focusChanged=function(){};
_.c._detectKeyboardFocus=function(){};
_.c._userActivate=function(){};
_.c._upHandler=function(){};
_.c._spaceKeyDownHandler=function(){};
_.c._spaceKeyUpHandler=function(){};
_.c._asyncClick=function(){};
_.c._pressedChanged=function(){};
_.c._ariaActiveAttributeChanged=function(){};
_.c._activeChanged=function(){};
_.c._controlStateChanged=function(){};
_.c._changedButtonState=function(){};
_.c._focusBlurHandler=function(){};
_.c._disabledChanged=function(){};
_.c._changedControlState=function(){};
_.c._downHandler=function(){};
_.c.ensureRipple=function(){};
_.c.getRipple=function(){};
_.c.hasRipple=function(){};
_.c._noinkChanged=function(){};
_.c._focusedChanged=function(){};
_.c.registered=function(){};
_.c._invalidChanged=function(){};
_.c.hasValidator=function(){};
_.c.validate=function(){};
_.c._getValidity=function(){};
_.c._requiredChanged=function(){};
_.c._valueChanged=function(){};
_.c._checkedChanged=function(){};
_.c._buttonStateChanged=function(){};
_.c._setPressed=function(){};
_.c._setPointerDown=function(){};
_.c._setReceivedFocusFromKeyboard=function(){};
_.c._setFocused=function(){};
IRz=_.Ee({is:"tp-yt-paper-toggle-button",_template:function(){if(dIX!==void 0)return dIX;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Knl===void 0&&(Knl=document.createElement("template"));var f=Knl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return dIX=v},
behaviors:[_.MhF],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");_.IS(this,function(){_.b$(this,"pan-y")})},
_ontrack:function(v){v=v.detail;v.state==="start"?this._trackStart(v):v.state==="track"?this._trackMove(v):v.state==="end"&&this._trackEnd(v)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(v){v=v.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+v:v)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+v:v));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 v=g7._createRipple();v.id="ink";v.setAttribute("recenters","");v.classList.add("circle","toggle-ink");return v}});var Yyi;var hi1;_.Ee({_template:function(){if(hi1!==void 0)return hi1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Yyi===void 0&&(Yyi=document.createElement("template"));var f=Yyi;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return hi1=v},
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 v=_.pG(this).parentNode,E=_.pG(this).getOwnerRoot(),n;this.for?n=_.pG(E).querySelector("#"+this.for):n=v.nodeType==Node.DOCUMENT_FRAGMENT_NODE?E.host:v;return n},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(v){v==="entry"?this.show():v==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.pG(this).textContent.trim()===""){for(var v=!0,E=_.pG(this).getEffectiveChildNodes(),n=0;n<E.length;n++)if(E[n].textContent.trim()!==""){v=!1;break}if(v)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 v=this.offset;this.marginTop!=14&&this.offset==14&&(v=this.marginTop);var E=this.offsetParent.getBoundingClientRect(),n=this._target.getBoundingClientRect(),f=this.getBoundingClientRect(),x=(n.width-f.width)/2,y=(n.height-f.height)/2,Q=n.left-E.left,e=n.top-E.top;switch(this.position){case "top":var F=Q+x;var b=e-f.height-v;break;case "bottom":F=Q+x;b=e+n.height+v;break;case "left":F=Q-f.width-v;b=e+y;break;case "right":F=Q+n.width+
v,b=e+y}this.fitToVisibleBounds?(E.left+F+f.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,F)+"px",this.style.right="auto"),E.top+b+f.height>window.innerHeight?(this.style.bottom=E.height+"px",this.style.top="auto"):(this.style.top=Math.max(-E.top,b)+"px",this.style.bottom="auto")):(this.style.left=F+"px",this.style.top=b+"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(v){v!==500&&this.updateStyles({"--paper-tooltip-delay-in":v+"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(v){if(v==="entry"&&this.animationEntry!=="")return this.animationEntry;if(v==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[v]&&typeof this.animationConfig[v][0].name==="string"){if(this.animationConfig[v][0].timing&&this.animationConfig[v][0].timing.delay&&this.animationConfig[v][0].timing.delay!==0){var E=this.animationConfig[v][0].timing.delay;v==="entry"?this.updateStyles({"--paper-tooltip-delay-in":E+"ms"}):v==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":E+
"ms"})}return this.animationConfig[v][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 Afg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Afg,_.Vj);var VUg=_.ir(Afg,[0,_.W2]);var jH=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(jH,_.Vj);var DIz=[3,4],Heo=[5,6];var gJz=[0,DIz,Heo,_.W9U,-1,_.k8,_.$nS,-1,j7E,ODE];var NwP=_.ir(jH,gJz),uh1=_.zZ(gJz);var jrw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(jrw,_.Vj);var Oei=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Oei,_.Vj);var kYP=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kYP,_.Vj);var Wn1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Wn1,_.Vj);var $I4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S($I4,_.Vj);var OS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(OS,_.Vj);OS.prototype.getSource=function(){return _.Ua(this,1)};
OS.prototype.getMessage=function(){return _.Sf(this,4)};
OS.prototype.getData=function(){return _.j5(this,$I4,8)};var Lni=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Lni,_.Vj);var kO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kO,_.Vj);var Wk=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Wk,_.Vj);var $O=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S($O,_.Vj);$O.prototype.getUrl=function(){return _.Sf(this,1)};
$O.prototype.setUrl=function(v){return _.ps(this,1,v)};
$O.prototype.hasUrl=function(){return _.NP(_.ef(this,1))!=null};var GYz=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(GYz,_.Vj);var Twi=[3];var iei=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(iei,_.Vj);var LM=function(v){var E=new iei;return _.OH(E,2,v)};
iei.prototype.getLanguage=function(){return Jm(this,4,Gt)};
var ziF=function(v){var E=LM(1);return _.v5(E,6,Gt,v)},Gt=[3,
4,5,6];var Rio=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Rio,_.Vj);var Tt=function(v){var E=new Rio;return _.OH(E,1,v)},iI=function(v,E){return _.v5(v,2,tU1,E)},tU1=[2,
3,4,5];var BwF=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(BwF,_.Vj);var zt=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(zt,_.Vj);var v8U=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(v8U,_.Vj);var E8S=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(E8S,_.Vj);var n8w=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(n8w,_.Vj);var o8X=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(o8X,_.Vj);var f2P=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(f2P,_.Vj);var R1=function(v){return _.j5(v,Wk,5)};var xrl=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(xrl,_.Vj);xrl.prototype.getValue=function(){return Z2(this,1)};var cmS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cmS,_.Vj);var t8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(t8,_.Vj);t8.prototype.getMetadata=function(){return _.K9(this,n8w,7,Bk)};
t8.prototype.hasMetadata=function(){return _.mk(this,n8w,7,Bk)};
var ymi=_.EbX(t8),Bk=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var vD=function(v){this.JSC$9819_name_=v;this.files_=[];this.directories_=[];this.directoryMap_={}};
vD.prototype.getName=function(){return this.JSC$9819_name_};var os=function(v,E){this.callback_=E;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new vD("");p2P(this,v,this.rootDirectory_);Ek(this)},p2P=function(v,E,n){for(var f=0;f<E.length;f++){var x=E[f];
x.isFile?(v.fileOps_++,x.file((0,_.XV)(v.handleFileSuccess_,v,n),(0,_.XV)(v.handleFileError_,v))):v.unscannedDirectories_.push(new QGU(x,n))}},Ek=function(v){if(v.unscannedDirectories_.length>0&&v.directoryOps_<5&&!v.hasError_){v.directoryOps_++;
var E=v.unscannedDirectories_.shift(),n=E.entry,f=new vD(n.name);E=E.parent;E.directoryMap_[f.getName()]=f;E.directories_.push(f);n=n.createReader();n.readEntries((0,_.XV)(v.handleDirectorySuccess_,v,n,f),(0,_.XV)(v.handleDirectoryError_,v))}v.directoryOps_!=0||v.fileOps_!=0||v.unscannedDirectories_.length!=0&&!v.hasError_||v.callback_(v.rootDirectory_.files_,v.rootDirectory_.directories_,v.hasError_)};
os.prototype.handleDirectorySuccess_=function(v,E,n){p2P(this,n,E);n.length==0?(this.directoryOps_--,Ek(this)):v.readEntries((0,_.XV)(this.handleDirectorySuccess_,this,v,E),(0,_.XV)(this.handleDirectoryError_,this))};
os.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Ek(this)};
os.prototype.handleFileSuccess_=function(v,E){v.files_.push(E);this.fileOps_--;Ek(this)};
os.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Ek(this)};
var QGU=function(v,E){this.entry=v;this.parent=E};var fg=function(v){_.mP.call(this);_.v8(v,"drop",this.onObjectsDropped_,!1,this);_.v8(v,"dragenter",this.onFilesDragged_,!1,this);_.v8(v,"dragover",this.onFilesDragged_,!1,this);_.v8(v,"dragleave",this.onDragLeave_,!1,this);_.v8(v,"dragend",this.onDragLeave_,!1,this)};
_.tf(fg,_.mP);var X21=function(v,E){_.py.call(this,"f");this.files=v;this.directories=E};
_.tf(X21,_.py);var esP=function(){_.py.call(this,"h")};
_.tf(esP,_.py);var FkP=function(){_.py.call(this,"i")};
_.tf(FkP,_.py);var mrP=function(){_.py.call(this,"g")};
_.tf(mrP,_.py);fg.prototype.onObjectsDropped_=function(v){var E=this;v.preventDefault();var n=v.event_.dataTransfer;if((v=n&&n.items)&&v.length>0&&v[0].webkitGetAsEntry){n=[];for(var f=[],x=0;x<v.length;x++){var y=v[x].webkitGetAsEntry();y?n.push(y):f.push(v[x])}new os(n,function(Q,e,F){F?E.dispatchEvent(new mrP("Error occurred while reading from the file system.")):E.dispatchEvent(new X21(Q,e,f))})}else(v=n&&n.files)&&this.dispatchEvent(new X21(Array.from(v),[]))};
fg.prototype.onFilesDragged_=function(v){v.type==="dragenter"&&this.dispatchEvent(new esP);v.preventDefault()};
fg.prototype.onDragLeave_=function(){this.dispatchEvent(new FkP)};var w2w=function(v,E){this.JSC$9842_name_=v;this.inputElement_=E};
w2w.prototype.getName=function(){return this.JSC$9842_name_};
w2w.prototype.getInputElement=function(){return this.inputElement_};var xV=function(v,E,n){E=E===void 0?"single_file":E;n=n===void 0?[]:n;_.mP.call(this);this.overlayTarget_=v;this.parentOverlay_=v!=null?v.parentNode:_.oc("scotty-overlay-parent");this.selectorType_=E;this.acceptTypes_=n;this.overlay_=b9w(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.S(xV,_.mP);
var b9w=function(v,E,n,f){var x=document.createElement("input");x.setAttribute("type","file");x.setAttribute("name","Filedata");_.v8(x,"change",v.onFilesSelected_,!1,v);n==="multiple_file"&&(x.multiple="true");n==="single_directory"&&(x.webkitdirectory="true");f.length>0&&x.setAttribute("accept",f.join(","));x.style.position="absolute";x.style.overflow="hidden";x.style.height="0px";x.style.width="0px";x.style.opacity="0";x.setAttribute("aria-hidden","true");x.setAttribute("tabIndex",-1);if(v.overlayTarget_!=
null)return x.style.height=E.offsetHeight+"px",x.style.width=E.offsetWidth+"px",v.parentOverlay_&&(v.parentOverlay_.style.position="relative"),_.Sr(x,E),Iy(x,new _.PV(E.offsetLeft,E.offsetTop)),x;v.parentOverlay_.appendChild(x);return x};
xV.prototype.click=function(){this.overlay_.click()};
xV.prototype.onFilesSelected_=function(v){a:{try{var E=(new XMLHttpRequest).upload!==void 0;break a}catch(b){}E=!1}if(E){var n;v=Array.from((n=v.target.files)!=null?n:[]);n=[];if(this.selectorType_==="single_directory"&&(_.f9||hO||_.oG)){n=new vD("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(E=0;E<v.length;E++)for(var f=v[E],x=f.webkitRelativePath.split("/"),y=n,Q=0;Q<x.length;Q++){var e=x[Q];if(Q==x.length-1){e!="."&&y.files_.push(f);break}var F=y.directoryMap_[e];F==void 0&&(e=
F=new vD(e),y.directoryMap_[e.getName()]=e,y.directories_.push(e));y=F}n=n.directories_}this.dispatchEvent(new l2P(v,n,null))}else v=v.target.value,v.match(/^c:\\fakepath\\/i)&&(v=v.substring(12)),this.dispatchEvent(new l2P([],[],new w2w(v,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=b9w(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var l2P=function(v,E){_.py.call(this,"j");this.files=v;this.directories=E};
_.S(l2P,_.py);var sG6=function(v){this.uploadUrl_=v};var rm4=function(){_.mP.call(this)};
_.tf(rm4,_.mP);var cD=function(v){_.py.call(this,v)};
_.tf(cD,_.py);var yJ=function(v){_.py.call(this,v)};
_.tf(yJ,_.py);var PNo=function(v,E,n,f,x){_.mP.call(this);n=document.createElement("form");n.setAttribute("method",E);n.setAttribute("enctype","multipart/form-data");n.setAttribute("encoding","multipart/form-data");E=document.createElement("input");E.setAttribute("type","hidden");E.setAttribute("name","metadata");E.setAttribute("value",x);n.appendChild(E);n.appendChild(f);this.JSC$9859_form_=n;v=new _.IT(v);_.KT(v,"upload_protocol","multipart");this.JSC$9859_url_=v.toString();this.JSC$9859_request_=new $q;this.state_=
"Ready";this.JSC$9859_errorDescription_=null;this.JSC$9859_eventHandler_=new _.u$(this);_.BV(this,this.JSC$9859_eventHandler_);this.JSC$9859_eventHandler_.listen(this.JSC$9859_request_,"success",this.onTransferSuccess_);this.JSC$9859_eventHandler_.listen(this.JSC$9859_request_,"error",this.onTransferError_)};
_.S(PNo,rm4);_.c=PNo.prototype;_.c.run=function(){this.state_="Transferring";var v=this.JSC$9859_request_,E=this.JSC$9859_form_;if(v.JSC$9278_active_)throw Error("oe");var n=new _.IT(this.JSC$9859_url_||E.action);v.JSC$9278_form_=E;E=v.JSC$9278_form_;n=_.Zd(n.toString());n!==void 0&&(E.action=n);i51(v)};
_.c.getResponseCode=function(){return null};
_.c.getResponseText=function(){return this.JSC$9859_request_&&this.JSC$9859_request_.getResponseText()||null};
_.c.JSC$25676_getErrorDescription=function(){return this.JSC$9859_errorDescription_};
_.c.cancel=function(){this.JSC$9859_request_&&this.JSC$9859_request_.abort();this.state_="Cancelled";this.dispatchEvent(new cD("o"))};
_.c.pause=function(){};
_.c.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new cD("l"))};
_.c.onTransferError_=function(){this.JSC$9859_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new cD("n"))};var pg=function(){_.Zr.call(this)};
_.S(pg,_.Zr);pg.prototype.createXhr=function(){var v=_.Zr.prototype.createXhr.call(this);v.upload&&(v.upload.onprogress=(0,_.XV)(this.onProgress_,this));return v};
pg.prototype.onProgress_=function(v){this.dispatchEvent(v)};var a2w=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},CNX=function(v,E){var n=v.attempt_+1;
if(v.maxAttempts_>0&&n>v.maxAttempts_)return!1;n==0?E():v.delayCallId_=rk(function(){v.delayCallId_=null;E()},Z9g(v),v);
v.attempt_=n;return!0};
a2w.prototype.reset=function(){this.delayCallId_&&_.n1.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Z9g=function(v){var E=250*Math.pow(2,v.attempt_);v.maxDelayMs_>=0&&(E=Math.min(E,v.maxDelayMs_));return E};var v2$=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var QJ=function(){_.mP.call(this);this.JSC$9869_request_=this.state_=null;this.JSC$9869_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9869_bytesTransferred_=0;this.retryIterator_=new a2w;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9869_errorDescription_=null;this.JSC$9869_eventHandler_=new _.u$(this);_.BV(this,this.JSC$9869_eventHandler_);this.JSC$9869_url_=this.blob_=null;this.JSC$9869_method_=void 0;this.chunkSize_=this.JSC$9869_metadata_=
this.JSC$9869_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9869_responseText_=this.JSC$9869_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.tf(QJ,rm4);_.c=QJ.prototype;_.c.run=function(){X0(this)};
_.c.getResponseCode=function(){return this.JSC$9869_responseCode_};
_.c.getResponseText=function(){return this.JSC$9869_responseText_};
_.c.JSC$25676_getErrorDescription=function(){return this.JSC$9869_errorDescription_};
_.c.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9869_eventHandler_.removeAll();this.JSC$9869_request_&&this.JSC$9869_request_.abort();this.retryIterator_.reset();var v=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(v==="Upload"||v==="Query")v=new pg,v.JSC$7688_withCredentials_=this.JSC$9869_withCredentials_,v.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9869_bytesTransferred_=
0;this.dispatchEvent(new cD("o"))}};
_.c.pause=function(){this.pauseRequested_=!0};
var X0=function(v){var E=v.state_;v.pauseRequested_?(v.pauseRequested_=!1,v.stateAfterUnpausing_=E,v.state_="Paused"):CNX(v.retryIterator_,function(){switch(v.state_){case "Start":v.JSC$9869_request_=new pg;var n=_.sh.clone(v.JSC$9869_headers_);v.blob_.size!=null&&(n["Content-Length"]=v.blob_.size);n=E29(n);n["X-Goog-Upload-Protocol"]="resumable";n["X-Goog-Upload-Command"]="start";v.JSC$9869_eventHandler_.removeAll();v.JSC$9869_eventHandler_.listen(v.JSC$9869_request_,"complete",v.onStartComplete_);
v.JSC$9869_request_.JSC$7688_withCredentials_=v.JSC$9869_withCredentials_;v.JSC$9869_request_.send(v.JSC$9869_url_,v.JSC$9869_method_,v.JSC$9869_metadata_,n);v.lastCommandResponseCode_=null;v.dispatchEvent(new yJ("q"));break;case "Upload":n=v.transferHandle_.uploadUrl_;var f=v.blob_.size;if(VD4()){var x=v.chunkSize_;var y=v.offset_+x>=f;f=Aso(v.blob_,v.offset_,y?f:v.offset_+x)}else v.offset_=0,f=v.blob_,y=!0;v.JSC$9869_request_=new pg;v.JSC$9869_request_.JSC$7688_withCredentials_=v.JSC$9869_withCredentials_;
v.JSC$9869_eventHandler_.removeAll();v.JSC$9869_eventHandler_.listen(v.JSC$9869_request_,"progress",v.onUploadProgress_);x=(0,_.XV)(v.JSC$9871_onUploadComplete_,v,v.offset_+f.size,y);v.JSC$9869_eventHandler_.listen(v.JSC$9869_request_,"complete",x);v.lastCommandResponseCode_=null;v.dispatchEvent(new yJ("q"));y=Object.assign({},v.JSC$9869_headers_||{},{"X-Goog-Upload-Command":"upload"+(y?", finalize":""),"X-Goog-Upload-Offset":v.offset_});v.JSC$9869_request_.send(n,"POST",f,y);break;case "Query":v.JSC$9869_request_=
new pg;v.JSC$9869_eventHandler_.removeAll();v.JSC$9869_eventHandler_.listen(v.JSC$9869_request_,"complete",v.onQueryComplete_);n=Object.assign({},v.JSC$9869_headers_||{},{"X-Goog-Upload-Command":"query"});v.JSC$9869_request_.send(v.transferHandle_.uploadUrl_,"POST","",n);v.lastCommandResponseCode_=null;v.dispatchEvent(new yJ("q"));break;default:throw Error("df");}})||eO(v,"Transfer encountered too many consecutive failures.")},eO=function(v,E){v.state_="Error";
v.JSC$9869_errorDescription_=E;v.dispatchEvent(new cD("n"))};
QJ.prototype.onStartComplete_=function(v){var E=v.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new yJ("r"));if(Mfi(E))Sa4(this,E);else if(Ur1(E)){v=h7(v.target.getAllResponseHeaders());for(var n in v)_.cI(n.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new cD("m"));n=XY(v,"X-Goog-Upload-URL");v=(v=XY(v,"X-Goog-Upload-Chunk-Granularity"))?parseInt(v,10):1;n===void 0||isNaN(v)||v<=0?eO(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
v)*v,this.transferHandle_=new sG6(n),this.dispatchEvent(new cD("p")),this.state_="Upload",this.retryIterator_.reset(),X0(this))}else X0(this)};
QJ.prototype.onUploadProgress_=function(v){this.JSC$9869_bytesTransferred_=this.offset_+v.loaded;this.dispatchEvent(new cD("k"))};
QJ.prototype.JSC$9871_onUploadComplete_=function(v,E,n){var f=this,x,y;return _.X(function(Q){switch(Q.nextAddress){case 1:x=n.target;f.lastCommandResponseCode_=x.getStatus();f.dispatchEvent(new yJ("r"));if(qao(x)||x.getStatus()==404)return f.JSC$9869_bytesTransferred_=v,Sa4(f,x),Q.return();if(Ur1(x)){Q.jumpTo(2);break}if(!(y=f.detectCorruptedBlobEnabled_)){Q.jumpTo(3);break}return _.m(Q,JmX(f),4);case 4:y=Q.yieldResult;case 3:if(y)return eO(f,"Blob has been modified or corrupted."),Q.return();f.requireUploadRequestModification_=
x.getStatus()==400;f.state_="Query";X0(f);return Q.return();case 2:if(E)return eO(f,"Got a non-final success response after issuing a finalize command."),Q.return();f.JSC$9869_bytesTransferred_=v;f.offset_=v;f.retryIterator_.reset();X0(f);return Q.return()}})};
QJ.prototype.onQueryComplete_=function(v){var E=v.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new yJ("r"));Mfi(E)?(E.getStatus()===200&&(this.JSC$9869_bytesTransferred_=this.blob_.size),Sa4(this,E)):Ur1(E)?(v=h7(v.target.getAllResponseHeaders()),v=parseInt(XY(v,"X-Goog-Upload-Size-Received"),10),isNaN(v)?eO(this,"Server did not respond with current offset."):v<this.offset_?eO(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
v+"."):this.requireUploadRequestModification_&&this.offset_===v?eO(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<v&&this.retryIterator_.reset(),this.offset_=this.JSC$9869_bytesTransferred_=v,this.state_="Upload",X0(this))):X0(this)};
var Sa4=function(v,E){v.JSC$9869_responseCode_=E.getStatus();var n=h7(E.getAllResponseHeaders());n2Q(n);v.JSC$9869_responseText_=E.getResponseText();v.state_="Response received";v.dispatchEvent(new cD("l"))},Ur1=function(v){var E=v.getStatus();
v=h7(v.getAllResponseHeaders());v=XY(v,"X-Goog-Upload-Status");return E===200&&v==="active"},qao=function(v){v=h7(v.getAllResponseHeaders());
return XY(v,"X-Goog-Upload-Status")==="final"},Mfi=function(v){if(qao(v))return!0;
v=v.getStatus();return v>=400&&v<500},JmX=function(v){var E;
return _.X(function(n){if(n.nextAddress==1){if(!v.blob_||v.originalBlobSize_<=0)return n.return(!1);if(v.blob_.size!==v.originalBlobSize_)return n.return(!0);_.vW(n,2);if(E=Aso(v.blob_,0,1)){var f=new Kr,x=eVo(f);f.reader_.readAsBinaryString(E);n=_.m(n,x,4)}else n=n.return(!0);return n}if(n.nextAddress!=2)return n.return(v.blob_.size!==v.originalBlobSize_);_.cW(n);return n.return(!0)})};var Kk6=function(v,E,n,f,x,y){_.mP.call(this);this.payload_=f;this.JSC$9872_url_=v;this.JSC$9872_method_=E;this.JSC$9872_headers_=n;this.JSC$9872_metadata_=x;this.encoding_=y||"binary";v=new _.wg;this.boundary_="uploader-"+UV()+"-"+v.JSC$9127_toIsoString();this.JSC$9872_responseText_=this.JSC$9872_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9872_errorDescription_=null;this.JSC$9872_eventHandler_=new _.u$(this);_.BV(this,this.JSC$9872_eventHandler_)};
_.S(Kk6,rm4);_.c=Kk6.prototype;
_.c.run=function(){var v=_.sh.clone(this.JSC$9872_headers_);this.payload_.length!=null&&(v["Content-Length"]=this.payload_.length);v=E29(v);v["X-Goog-Upload-Protocol"]="multipart";v["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new pg;this.JSC$9872_eventHandler_.removeAll();this.JSC$9872_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9872_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9872_url_,this.JSC$9872_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9872_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",v)};
_.c.getResponseCode=function(){return this.JSC$9872_responseCode_};
_.c.getResponseText=function(){return this.JSC$9872_responseText_};
_.c.JSC$25676_getErrorDescription=function(){return this.JSC$9872_errorDescription_};
_.c.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9872_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new cD("o")))};
_.c.pause=function(){};
_.c.onTransferProgress_=function(){this.dispatchEvent(new cD("k"))};
_.c.onTransferComplete_=function(v){var E=v.target.getStatus();E===void 0||E===-1?(this.JSC$9872_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new cD("n"))):(this.JSC$9872_responseCode_=E,v=v.target,E=h7(v.getAllResponseHeaders()),n2Q(E),this.JSC$9872_responseText_=v.getResponseText(),this.state_="Complete",this.dispatchEvent(new cD("l")))};_.dr4=function(v,E,n,f){f=f===void 0?!1:f;if(n instanceof w2w)return new PNo(v,"POST",E,n.getInputElement(),"");if(typeof n==="string"||n instanceof String)return new Kk6(v,"POST",E,n,"");var x=new QJ(void 0);x.JSC$9869_url_=v;x.JSC$9869_method_="POST";x.JSC$9869_headers_=E;x.blob_=n;x.originalBlobSize_=n.size;x.JSC$9869_metadata_="";f&&(x.JSC$9869_withCredentials_=f);x.state_="Start";return x};var F0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(F0,_.Vj);_.c=F0.prototype;_.c.getEnableSsEngine=function(){return _.aG(this,2)};
_.c.getEnableAwr=function(){return _.aG(this,3)};
_.c.getAlohaAutoGaRollout=function(){return _.aG(this,5)};
_.c.getEnableConfigurator=function(){return _.aG(this,6)};
_.c.getEnableMweb=function(){return _.aG(this,7)};
var Yao=function(){var v=I2U();return _.FY(v,7,!0)};
F0.prototype.getEnableCtlConsentCheckbox=function(){return _.aG(this,8)};
F0.prototype.getEnableIframe=function(){return _.aG(this,9)};
var I2U=function(){var v=new F0;v=_.FY(v,5,!0);v=_.FY(v,2,!0);v=_.FY(v,4,!1);v=_.FY(v,8,!0);return _.FY(v,9,!0)};
F0.prototype.getEnableScreenshotNudge=function(){return _.aG(this,10)};
var hs1=function(){var v=Yao();return _.FY(v,10,!0)};
F0.prototype.getEnableWebStartupConfigEndpoint=function(){return _.aG(this,11)};
F0.prototype.getEnableJunkNudge=function(){return _.aG(this,12)};
var PgE=function(){var v=hs1();return _.FY(v,12,!0)};
_.c=F0.prototype;_.c.getEnableConfiguratorLocale=function(){return _.aG(this,13)};
_.c.getEnableTinyNoPointer=function(){return _.aG(this,14)};
_.c.getEnableSupportSessionLogging=function(){return _.aG(this,15)};
_.c.getEnableFileUploadForScreenshot=function(){return _.aG(this,16)};
_.c.getEnableDirectDeflectionForSingleCategory=function(){return _.aG(this,17)};
_.c.getEnableImageSanitization=function(){return _.aG(this,18)};
_.c.getEnableAlohaBinarySplit=function(){return _.aG(this,19)};
_.c.getEnableDbFeedbackIntents=function(){return _.aG(this,20)};
_.c.getEnableMarkMandatoryFieldsWithRequired=function(){return _.aG(this,21)};
_.c.getEnableFeedbackCategoryCustomUi=function(){return _.aG(this,22)};
_.c.getEnableRealtimeCtl=function(){return _.aG(this,23)};var r_E=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(r_E,_.Vj);var o2E=[/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 x9E="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 c_I=_.jU(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),y_L=_.jU(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var QWy,euX;var Aml,Vf6;
Aml=function(v,E,n){v.timeOfStartCall=(new Date).getTime();var f=n||_.n1,x=f.document,y=v.nonce||_.dV(f.document);y&&!v.nonce&&(v.nonce=y);if(v.flow=="help"){var Q=_.JM("document.location.href",f);!v.helpCenterContext&&Q&&(v.helpCenterContext=Q.substring(0,1200));Q=!0;if(E&&JSON&&JSON.stringify){var e=JSON.stringify(E);(Q=e.length<=1200)&&(v.psdJson=e)}Q||(E={invalidPsd:!0})}E=[v,E,n];f.GOOGLE_FEEDBACK_START_ARGUMENTS=E;n=v.feedbackServerUri||"//www.google.com/tools/feedback";if(Q=f.GOOGLE_FEEDBACK_START)Q.apply(f,E);
else{f=n+"/load.js?";for(var F in v)E=v[F],E==null||_.oF(E)||(f+=encodeURIComponent(F)+"="+encodeURIComponent(E)+"&");v=y4(x).createElement("SCRIPT");y&&v.setAttribute("nonce",y);_.Vv(v,_.xR(f));x.body.appendChild(v)}};
Vf6=function(v,E,n,f){var x,y;_.X(function(Q){x=n||_.n1;var e=v.serverEnvironment==="DEV",F=n||_.n1;F=v.nonce||_.dV(F.document);e={integrationKeys:{productId:v.productId,feedbackBucket:v.bucket,triggerId:v.triggerId},callbacks:{onClose:v.callback,onLoad:v.onLoadCallback},formContent:{locale:v.locale,disableScreenshot:v.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:v.abuseLink,additionalDataConsent:v.additionalDataConsent},initializationData:{isLocalServer:e,nonce:F,useNightlyRelease:e,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:v.feedbackServerUri,colorScheme:v.colorScheme},extraData:{productVersion:v.productVersion,authUser:v.authuser,configuratorId:v.configuratorId,customZIndex:v.customZIndex,tinyNoPointer:v.tinyNoPointer,
allowNonLoggedInFeedback:v.allowNonLoggedInFeedback,enableAnonymousFeedback:v.enableAnonymousFeedback}};E&&(F=new Map(Object.entries(E)),e.extraData.productSpecificData=F);y=e;return _.m(Q,byI(y,f,x),0)})};
_.DrU=function(v,E,n){try{if(v.flow==="help"){var f=v.helpCenterPath.replace(/^\//,"");_.Kc(n||window,"https://support.google.com/"+f)}else v.flow==="submit"?Aml(v,E,n):arE(v.productId,v.feedbackServerUri).then(function(x){x=_.j5(x,F0,1);var y=!XHQ||(x==null?void 0:x.getEnableMweb()),Q=!v.tinyNoPointer||(x==null?void 0:x.getEnableTinyNoPointer());!x||x.getAlohaAutoGaRollout()&&y&&Q?Vf6(v,E,n,x):Aml(v,E,n)},function(x){x&&x.name!=="DuplicateFormError"&&Aml(v,E,n)})}catch(x){Vf6(v,E,n,null)}};
_.Vc("userfeedback.api.startFeedback",_.DrU);var ZyX=/https?:\/\/\S+\.\S+/,Cg1=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],MPQ=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var oc9=function(v){var E=v.split(""),n=[-263237435,15,E,function(f,x,y){var Q=x.length;y.forEach(function(e,F,b){this.push(b[F]=x[(x.indexOf(e)-x.indexOf(this[F])+F+Q--)%x.length])},f.split(""))},
function(f,x){f=(f%x.length+x.length)%x.length;x.splice(-f).reverse().forEach(function(y){x.unshift(y)})},
"response",function(){for(var f=64,x=[];++f-x.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}x.push(String.fromCharCode(f))}return x},
null,12,1540023973,65941107,null,E,function(f,x){for(f=(f%x.length+x.length)%x.length;f--;)x.unshift(x.pop())},
695603893,function(f){for(var x=f.length;x;)f.push(f.splice(--x,1)[0])},
"'[;'[(",function(f,x){f.push(x)},
null,function(f,x,y,Q,e){return x(y,Q,e)},
"continuation",E,function(f,x){if(f.length!=0){x=(x%f.length+f.length)%f.length;var y=f[0];f[0]=f[x];f[x]=y}},
function(){for(var f=64,x=[];++f-x.length-32;){switch(f){case 91:f=44;continue;case 123:f=65;break;case 65:f-=18;continue;case 58:f=96;continue;case 46:f=95}x.push(String.fromCharCode(f))}return x},
'"),/]];'];n[7]=n;n[11]=n;n[18]=n;try{(((0,n[15])(n[21]),n[22])(n[11],n[9]),n[22])(n[new Date("1970-01-01T04:30:12.000+04:30")/1E3],n[1]),((0,n[22])(n[11],n[23]),n[4])(n[10],n[18]),(0,n[20])(n[21],n[14])<<(0,n[17])(n[18],n[1]),(0,n[4])(n[8],n[21]),(0,n[19])((0,n[19])((0,n[17])(n[7],n[9]),n[3],n[20],(0,n[6])(),n[2]),n[3],n[5],(0,n[15])(),n[2])}catch(f){return"aTlOUOubTO4AP____8P_"+v}return E.join("")};_.H9F=new _.z("runAttestationCommand");var g8o=new _.z("verifyCommand");_.AF=new _.z("accessibilityContext");var NOw=new _.z("accessibilityData");var uB6=new _.z("profileCardCommand");var $$X=new _.z("signInEndpoint");var W3I=new _.z("signOutEndpoint");var O9P;_.jGU=new _.z("accountItemSectionRenderer");O9P=new _.z("accountItemRenderer");_.kj4=new _.z("saveCommandToSessionStorageAction");var Wkl=new _.z("crossAccountChannelTransferEndpoint");var OBy=new _.z("getAccountMenuEndpoint");_.khX=new _.z("getAccountSwitcherEndpoint");var jJI=new _.z("getAccountsListEndpoint");var $r4=new _.z("getAccountsListInnertubeEndpoint");_.LkF=new _.z("addToToastAction");var Gjz=new _.z("hideEnclosingAction");_.mD=new _.z("replaceEnclosingAction");_.TO1=new _.z("buttonRefreshAction");var i9X=new _.z("adsControlFlowOpportunityReceivedCommand");var zsz=new _.z("openAdAllowlistInstructionCommand");var RsX=new _.z("videoMastheadAdPrimaryVideoRenderer");var tfi=new _.z("displayAdRenderer");var ezQ=new _.z("instreamVideoAdRenderer");_.BO1=new _.z("inFeedAdLayoutRenderer");var vDz=new _.z("sequenceItemInPlayerAdLayoutRenderer");_.EDP=new _.z("adSlotRenderer");var nDP=new _.z("adAvatarViewModel");var oDS=new _.z("adBadgeViewModel");var fb1=new _.z("adButtonViewModel");var wR=new _.z("adImageViewModel");var B0E=new _.z("reelsAdCardButtonedViewModel");var xmw=new _.z("reelsPlayerOverlayLayoutViewModel");var cPS=new _.z("showSchedulingPanelCommand");var yPP=new _.z("backstageCommentsRenderer");var pMX=new _.z("backstageImageRenderer");var Qyo=new _.z("backstagePostRenderer");var XM6=new _.z("postRenderer");var e$X=new _.z("sharedPostRenderer");var FeX=new _.z("createBackstagePostEndpoint");var mmo=new _.z("getPostVideoPreviewEndpoint");var wMg=new _.z("updateBackstagePostEndpoint");var bo1=new _.z("filterChipTransformCommand");var lbg=new _.z("insertRichSectionCommand");var jdE=new _.z("talkToRecsDeselectCommand");var sy1=new _.z("talkToRecsNextCommand");var uCX=new _.z("talkToRecsSelectCommand");var rP1=new _.z("talkToRecsUpdateTextCommand");_.ix=new _.z("browseEndpoint");_.PyF=new _.z("confirmDialogEndpoint");var abg=new _.z("expandOnHoverCardRenderer");var Zo1=new _.z("lumiereShelfDetailsRenderer");var CyU=new _.z("revealBusinessEmailCommand");var Mri=new _.z("validateChannelHandleCommand");var SP4=new _.z("channelCreationFormEndpoint");var UmX=new _.z("aboutChannelViewModel");var qPi=new _.z("channelThumbnailWithLinkRenderer");var JP4=new _.z("channelCreationServiceEndpoint");var KeF=new _.z("updateChannelPageSettingsEndpoint");var bM=function(v){this.delegate=v},lM=function(){bM.apply(this,arguments)};
_.S(lM,bM);_.hK.Object.defineProperties(lM.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(v){this.delegate.entityMetadata=v}}});var dm1=function(){lM.apply(this,arguments)};
_.S(dm1,lM);dm1.prototype.getAssociations=function(){return[]};var vS1=new _.z("webThumbnailDetailsExtensionData");var hF=new _.z("commandContext");var Ibl=new _.z("addVideoLinkAction");var YP4=new _.z("createPollAction");var h$g=new _.z("hideIdentityChipAction");var APw=new _.z("openUpdateCommentDialogAction");var sk=new _.z("updateBackstagePollAction");var Vrg=new _.z("updateCommentVoteAction");var DmF=new _.z("commentThreadRenderer");var Hog=function(){lM.apply(this,arguments)};
_.S(Hog,lM);Hog.prototype.getAssociations=function(){return[]};_.gDX=new _.z("commentDialogRenderer");var NxX=new _.z("updateCommentsSettingsEndpoint");var uT6=new _.z("commentViewModel");var jyS=new _.z("triStateButtonViewModel");var OoF=new _.z("voiceReplyContainerViewModel");_.Tn=new _.z("commandExecutorCommand");var QI=new _.z("emoji");var kNP=new _.z("updateCreatorChannelInnertubeCommand");_.Wez=new _.z("appendContinuationItemsAction");_.$mz=new _.z("changeEngagementPanelVisibilityAction");_.bG=new _.z("continuationCommand");var Leo=new _.z("listMutationCommand");_.rR=new _.z("openPopupAction");var GN1=new _.z("persistSubscriptionsDisplayPreferencesCommand");var E2o;_.Txl=new _.z("playlistRemoveVideosAction");_.io4=new _.z("updatePlaylistAction");_.z$g=new _.z("addToPlaylistCommand");_.R$F=new _.z("endPlaylistCommand");_.trF=new _.z("recoverPlaylistCommand");_.Bxo=new _.z("refreshPlaylistCommand");_.v2F=new _.z("refreshFormCommand");E2o=new _.z("openOnePickAddVideoModalCommand");_.iBX=new _.z("reloadContinuationItemsCommand");_.n21=new _.z("scrollToEngagementPanelCommand");var o2P=new _.z("selectCountryCommand");var frF=new _.z("showReloadUiCommand");var x9P=new _.z("undoFeedbackAction");var c_U=new _.z("updateButtonAction");var lhL=new _.z("updateSubscribeButtonAction");var y_1=new _.z("updateToggleAction");var pF6=new _.z("webNativeShareCommand");_.Dl=new _.z("webCommandMetadata");_.PD=new _.z("webHandleServiceEndpointExtension");var GX9=new _.z("webNavigationEndpointData");var QW4=new _.z("copyLinkCommand");var XFl=new _.z("playlistVotingRefreshPopupCommand");var euw=new _.z("selectChipCommand");var FPU=new _.z("setCookieCommand");var m9X=new _.z("setLocalStorageCommand");var wFU=new _.z("setPrefStorageEntryCommand");var r_P;_.byU=new _.z("settingsUpdateCheckboxCommand");_.lrw=new _.z("settingsUpdateTextCommand");_.sWS=new _.z("settingsUpdateOptionsCommand");r_P=new _.z("settingsUpdateSwitchCommand");_.PgX=new _.z("settingsUpdateConnectedAppRendererCommand");var arX=new _.z("updateTextInputFormFieldRendererCommand");var Zyg=new _.z("updateToggleButtonStateCommand");var Cgl=new _.z("updateUrlParamCommand");var MP1=new _.z("webSubmitFormCommand");var Sog=new _.z("channelSwitcherPageRenderer"),U9g=new _.z("updateChannelSwitcherPageAction");_.ty=new _.z("continuationItemRenderer");_.as=new _.z("richItemRenderer");var qow=new _.z("richSectionRenderer");_.J_w=new _.z("richShelfRenderer");_.KP1=new _.z("metadataBadgeRenderer");_.d9l=new _.z("multiPageMenuNotificationSectionRenderer");_.IrS=new _.z("playlistLoopButtonStateRenderer");var YoF=new _.z("claimLegacyYoutubeChannelEndpoint");var hu1=new _.z("getNotificationMenuEndpoint");var A_1=new _.z("getSearchInVideoCommand");_.VPo=new _.z("getTranscriptEndpoint");_.zn=new _.z("signalServiceEndpoint");var D91=new _.z("verifyAgeEndpoint");var cUs=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(cUs,_.Vj);cUs.prototype.getPath=function(){return _.Sf(this,1)};
cUs.prototype.getValue=function(){return _.Sf(this,2)};var Hyo=[0,_.uN,-1];var g2P=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(g2P,_.Vj);var xN1=_.ir(g2P,[0,_.Oa,Hyo]);var Nkg=new _.z("dismissalEndpoint");var uXS=new _.z("elementsCommand");_.eg=new _.z("innertubeCommand");var jWg=new _.z("multipleInlinePlaybackCommand");var IwE=new _.z("loggingDirectives");var OyU=new _.z("acknowledgeChannelTouStrikeCommand");var kuX=function(){lM.apply(this,arguments)};
_.S(kuX,lM);kuX.prototype.getAssociations=function(){return[]};var WPF=function(){lM.apply(this,arguments)};
_.S(WPF,lM);WPF.prototype.getAssociations=function(){return[]};var qq=new _.z("entityBatchUpdate");_.$9P=new _.z("entityUpdateCommand");var LPU=function(){lM.apply(this,arguments)};
_.S(LPU,lM);LPU.prototype.getAssociations=function(){var v=[];this.delegate.alternateChannel&&v.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&v.push.apply(v,_.s8(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&v.push(this.delegate.oneofChannelEntity);return[].concat(_.s8(new Set(v)))};var GuU=function(){lM.apply(this,arguments)};
_.S(GuU,lM);GuU.prototype.getAssociations=function(){var v=[];this.delegate.entryCollection&&v.push(this.delegate.entryCollection);return[].concat(_.s8(new Set(v)))};
var Tk1=function(){lM.apply(this,arguments)};
_.S(Tk1,lM);Tk1.prototype.getAssociations=function(){var v=[];this.delegate.parentPlaylist&&v.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var E=_.p(this.delegate.entries),n=E.next();!n.done;n=E.next())v.push.apply(v,_.s8((new iyi(n.value)).getAssociations()));return[].concat(_.s8(new Set(v)))};
var iyi=function(){bM.apply(this,arguments)};
_.S(iyi,bM);iyi.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);return[].concat(_.s8(new Set(v)))};var zuX=function(){lM.apply(this,arguments)};
_.S(zuX,lM);zuX.prototype.getAssociations=function(){var v=[];this.delegate.descriptionEntity&&v.push(this.delegate.descriptionEntity);this.delegate.creators&&v.push.apply(v,_.s8(this.delegate.creators));this.delegate.theBiggestFan&&v.push(this.delegate.theBiggestFan);return[].concat(_.s8(new Set(v)))};
var Rul=function(){lM.apply(this,arguments)};
_.S(Rul,lM);Rul.prototype.getAssociations=function(){return[]};var tPo=new _.z("fantasyRosterViewModel");var Bk1=new _.z("addFollowUpSurveyCommand");var vYP=new _.z("getSurveyCommand");var EYz=new _.z("ratingSurveyOptionRenderer");_.qI=new _.z("feedbackEndpoint");var nYF=new _.z("reportHistoryTableCellRenderer"),oY4=new _.z("reportHistoryTableTextCellRenderer"),f61=new _.z("reportHistoryTableReasonCellRenderer");_.xT1=new _.z("flagEndpoint");var ctU=new _.z("getFlowCommand");var yt1=new _.z("submitFormWithValidationFlowCommand");var pli=function(){lM.apply(this,arguments)};
_.S(pli,lM);pli.prototype.getAssociations=function(){return[]};var Q_z=new _.z("flowFormState");var Xl1=new _.z("gameCardRenderer");var ekl=new _.z("accountLinkingStateChangedCommand");var F2U=function(){lM.apply(this,arguments)};
_.S(F2U,lM);F2U.prototype.getAssociations=function(){return[]};var mTF=new _.z("changeMiniAppPlayStateCommand");var wl4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(wl4,_.Vj);var ZO=[1,2,3];var bLg=[0,ZO,DKE,_.HDN,KvE];var l6F=_.ir(wl4,bLg),s_w=_.zZ(bLg);var rto=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(rto,_.Vj);var PwX=[0,_.H2,_.uN];var a61=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(a61,_.Vj);var ZL1=[0,_.uN];var Cwo=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Cwo,_.Vj);var M0z=function(v,E){return _.OH(v,3,E)};var S6o=_.zZ([0,1,PwX,_.W2,ZL1]);var UT1=new _.z("miniAppScoreChallengeViewModel");var q6X=new _.z("miniGameCardViewModel");var JtP=new _.z("teaserCardViewModel");var K2o=function(){lM.apply(this,arguments)};
_.S(K2o,lM);K2o.prototype.getAssociations=function(){return[]};_.dTX=new _.z("feedbackItemRenderer");var I6U={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var Y6w=function(){lM.apply(this,arguments)};
_.S(Y6w,lM);Y6w.prototype.getAssociations=function(){return[]};_.hkw=new _.z("playerInterstitialRenderer");var At4=new _.z("getKidsBlocklistPickerCommand");_.V0o=new _.z("updateKidsBlacklistEndpoint");_.DE=new _.z("likeEndpoint");var DTw,HL1,gYU;DTw=new _.z("addChatItemAction");HL1=new _.z("removeChatItemAction");gYU=new _.z("markChatItemAsDeletedAction");_.N$1=new _.z("setLiveChatCollapsedStateAction");var uSl=function(){lM.apply(this,arguments)};
_.S(uSl,lM);uSl.prototype.getAssociations=function(){return[]};var j_o=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(j_o,_.Vj);var OLl=_.ir(j_o,[0,1,_.H2]);var k0P=new _.z("liveChatEndpoint");var W21=new _.z("liveChatItemContextMenuEndpoint");var $TS=new _.z("liveChatReplayEndpoint");_.L24=new _.z("emojiPickerRenderer");var G0P=new _.z("liveChatAuthorBadgeViewModel");var T$S=new _.z("deleteLiveChatMessageCommand");var iLX=new _.z("liveChatActionEndpoint");var zko=new _.z("createLiveChatPollEndpoint");var RkU=new _.z("manageLiveChatUserEndpoint");var t0g=new _.z("moderateLiveChatEndpoint");_.B$X=new _.z("sendLiveChatMessageEndpoint");var vei=new _.z("sendLiveChatVoteEndpoint");var Ee6=new _.z("clearLocationCommand");var neg=new _.z("resolveLocationCommand");var oel=new _.z("interactionLoggingCommandMetadata");var Uty=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Uty,_.Vj);var SNE=function(v,E){return _.iU(v,1,E)};var fXw=[0,_.Nr];var MnN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(MnN,_.Vj);var CkE=function(v,E){return vP(v,1,Uty,E)};MnN.prototype.JSC$9965_serializeBinary=vbG([0,_.Oa,fXw]);var LPI={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 x_F={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"},
cSw={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 gX9={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"};_.seA=new _.z("logFlowLoggingEventCommand");_.xS9=new _.z("loggingContext");var yS1=new _.z("captionLanguageSelectActionCommand");var pNl=new _.z("showCaptionLanguageSelectActionCommand");var Q9S=new _.z("dismissDialogEndpoint");var XN6=new _.z("hideItemSectionVideosByIdCommand");var emg=new _.z("showMiniplayerCommand");var FjP=function(){lM.apply(this,arguments)};
_.S(FjP,lM);FjP.prototype.getAssociations=function(){return[]};var m_6=function(){lM.apply(this,arguments)};
_.S(m_6,lM);m_6.prototype.getAssociations=function(){return[]};var wNw=function(){lM.apply(this,arguments)};
_.S(wNw,lM);wNw.prototype.getAssociations=function(){return[]};var bzl=function(){lM.apply(this,arguments)};
_.S(bzl,lM);bzl.prototype.getAssociations=function(){var v=[];this.delegate.downloadsList&&v.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&v.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&v.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.s8(new Set(v)))};var lX1=function(){lM.apply(this,arguments)};
_.S(lX1,lM);lX1.prototype.getAssociations=function(){var v=[];this.delegate.refresh&&v.push(this.delegate.refresh);if(this.delegate.downloads)for(var E=_.p(this.delegate.downloads),n=E.next();!n.done;n=E.next())v.push.apply(v,_.s8((new s9F(n.value)).getAssociations()));return[].concat(_.s8(new Set(v)))};
var s9F=function(){bM.apply(this,arguments)};
_.S(s9F,bM);s9F.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playlist&&v.push(this.delegate.playlist);this.delegate.videoItem&&v.push(this.delegate.videoItem);this.delegate.playlistItem&&v.push(this.delegate.playlistItem);return[].concat(_.s8(new Set(v)))};var rS1=function(){lM.apply(this,arguments)};
_.S(rS1,lM);rS1.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.s8(this.delegate.localImageEntities));return[].concat(_.s8(new Set(v)))};var PF1=function(){lM.apply(this,arguments)};
_.S(PF1,lM);PF1.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.s8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s8(new Set(v)))};var aXF=function(){lM.apply(this,arguments)};
_.S(aXF,lM);aXF.prototype.getAssociations=function(){return[]};var Zzi=function(){lM.apply(this,arguments)};
_.S(Zzi,lM);Zzi.prototype.getAssociations=function(){var v=[];this.delegate.fakeChildren&&v.push.apply(v,_.s8(this.delegate.fakeChildren));return[].concat(_.s8(new Set(v)))};var CFU=function(){lM.apply(this,arguments)};
_.S(CFU,lM);CFU.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);return[].concat(_.s8(new Set(v)))};var M2g=function(){lM.apply(this,arguments)};
_.S(M2g,lM);M2g.prototype.getAssociations=function(){return[]};var SMg=function(){lM.apply(this,arguments)};
_.S(SMg,lM);SMg.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.videos&&v.push.apply(v,_.s8(this.delegate.videos));this.delegate.collaboratorChannels&&v.push.apply(v,_.s8(this.delegate.collaboratorChannels));this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.s8(new Set(v)))};var U_X=function(){lM.apply(this,arguments)};
_.S(U_X,lM);U_X.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.channelContributor&&v.push(this.delegate.channelContributor);return[].concat(_.s8(new Set(v)))};var qM4=function(){bM.apply(this,arguments)};
_.S(qM4,bM);qM4.prototype.getAssociations=function(){var v=[];this.delegate.recommendedVideoMetadata&&v.push.apply(v,_.s8((new JS1(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.s8(new Set(v)))};
var JS1=function(){bM.apply(this,arguments)};
_.S(JS1,bM);JS1.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.s8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s8(new Set(v)))};var Kji=function(){bM.apply(this,arguments)};
_.S(Kji,bM);Kji.prototype.getAssociations=function(){var v=[];this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);return[].concat(_.s8(new Set(v)))};var d_4=function(){lM.apply(this,arguments)};
_.S(d_4,lM);d_4.prototype.getAssociations=function(){var v=[];this.delegate.owner&&v.push(this.delegate.owner);this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.userState&&v.push.apply(v,_.s8((new Kji(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&v.push.apply(v,_.s8((new qM4(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.s8(new Set(v)))};var IXz=function(){lM.apply(this,arguments)};
_.S(IXz,lM);IXz.prototype.getAssociations=function(){var v=[];this.delegate.userChannelDetails&&v.push(this.delegate.userChannelDetails);return[].concat(_.s8(new Set(v)))};var YMX=function(){lM.apply(this,arguments)};
_.S(YMX,lM);YMX.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&v.push.apply(v,_.s8(this.delegate.localImageEntities));this.delegate.downloadStatus&&v.push(this.delegate.downloadStatus);return[].concat(_.s8(new Set(v)))};var Zgy=new _.z("downloadsPageSmartDownloadsOptInBannerParams");var hmg=function(){lM.apply(this,arguments)};
_.S(hmg,lM);hmg.prototype.getAssociations=function(){return[]};var ASX=function(){lM.apply(this,arguments)};
_.S(ASX,lM);ASX.prototype.getAssociations=function(){return[]};var V2X=function(){lM.apply(this,arguments)};
_.S(V2X,lM);V2X.prototype.getAssociations=function(){return[]};var D_1=function(){lM.apply(this,arguments)};
_.S(D_1,lM);D_1.prototype.getAssociations=function(){return[]};var Hz6=function(){lM.apply(this,arguments)};
_.S(Hz6,lM);Hz6.prototype.getAssociations=function(){return[]};var ge1=function(){lM.apply(this,arguments)};
_.S(ge1,lM);ge1.prototype.getAssociations=function(){return[]};var Nl1=function(){lM.apply(this,arguments)};
_.S(Nl1,lM);Nl1.prototype.getAssociations=function(){return[]};var u6g=function(){lM.apply(this,arguments)};
_.S(u6g,lM);u6g.prototype.getAssociations=function(){return[]};var PT=new _.z("dislikeButtonViewModel");var rQ=new _.z("likeButtonViewModel");var j9F=new _.z("videoSummaryContentViewModel");var b$$=new _.z("videoSummaryParagraphViewModel");var Oz6=new _.z("changeTimelyActionVisibilityCommand");var k5U=new _.z("hideEngagementPanelEndpoint");var WjU=new _.z("refreshPanelEndpoint");var $_4=new _.z("scrollToSectionEndpoint");var Ljo=new _.z("seekToVideoTimestampCommand");_.Uy=new _.z("showEngagementPanelEndpoint");var G51=new _.z("showTransientPlayerScrimOverlayCommand");var Tl6=new _.z("toggleEngagementPanelCommand");_.izg=new _.z("createBroadcastCommand");var zm1=new _.z("metadataUpdateCommand");var RmP=function(){lM.apply(this,arguments)};
_.S(RmP,lM);RmP.prototype.getAssociations=function(){return[]};var t21=function(){lM.apply(this,arguments)};
_.S(t21,lM);t21.prototype.getAssociations=function(){return[]};var Blz=function(){lM.apply(this,arguments)};
_.S(Blz,lM);Blz.prototype.getAssociations=function(){return[]};_.vql=new _.z("merchandiseShelfRenderer");var Eq1=new _.z("gridMovieRenderer");_.nq4=new _.z("movieRenderer");var oqz=function(){lM.apply(this,arguments)};
_.S(oqz,lM);oqz.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.s8(this.delegate.trackDownloadMetadatas));return[].concat(_.s8(new Set(v)))};var feS=function(){lM.apply(this,arguments)};
_.S(feS,lM);
feS.prototype.getAssociations=function(){var v=[];this.delegate.downloadedTracks&&v.push.apply(v,_.s8(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&v.push.apply(v,_.s8(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&v.push.apply(v,_.s8(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&v.push.apply(v,_.s8(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&v.push.apply(v,_.s8(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
v.push.apply(v,_.s8(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&v.push.apply(v,_.s8(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&v.push.apply(v,_.s8(this.delegate.metadataOnlyTracks));return[].concat(_.s8(new Set(v)))};var x7l=function(){lM.apply(this,arguments)};
_.S(x7l,lM);x7l.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.s8(this.delegate.trackDownloadMetadatas));return[].concat(_.s8(new Set(v)))};var cTw=function(){lM.apply(this,arguments)};
_.S(cTw,lM);cTw.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.s8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s8(new Set(v)))};var yTw=function(){lM.apply(this,arguments)};
_.S(yTw,lM);
yTw.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&v.push.apply(v,_.s8(this.delegate.primaryArtists));this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.tracks&&v.push.apply(v,_.s8(this.delegate.tracks));this.delegate.share&&v.push(this.delegate.share);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.refresh&&
v.push(this.delegate.refresh);return[].concat(_.s8(new Set(v)))};
var pX1=function(){lM.apply(this,arguments)};
_.S(pX1,lM);pX1.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.tracks&&v.push.apply(v,_.s8(this.delegate.tracks));return[].concat(_.s8(new Set(v)))};
var Q41=function(){lM.apply(this,arguments)};
_.S(Q41,lM);Q41.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);return[].concat(_.s8(new Set(v)))};var XX1=function(){lM.apply(this,arguments)};
_.S(XX1,lM);XX1.prototype.getAssociations=function(){var v=[];this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);return[].concat(_.s8(new Set(v)))};
var eM1=function(){lM.apply(this,arguments)};
_.S(eM1,lM);eM1.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.s8(new Set(v)))};
var F4S=function(){lM.apply(this,arguments)};
_.S(F4S,lM);F4S.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.s8(new Set(v)))};var m7F=function(){lM.apply(this,arguments)};
_.S(m7F,lM);m7F.prototype.getAssociations=function(){return[]};var wX4=function(){lM.apply(this,arguments)};
_.S(wX4,lM);wX4.prototype.getAssociations=function(){return[]};var br4=function(){lM.apply(this,arguments)};
_.S(br4,lM);
br4.prototype.getAssociations=function(){var v=[];this.delegate.tracks&&v.push.apply(v,_.s8(this.delegate.tracks));this.delegate.refresh&&v.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&v.push(this.delegate.details);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&v.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.entryCollection&&
v.push(this.delegate.entryCollection);this.delegate.share&&v.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&v.push.apply(v,_.s8((new leg(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.s8(new Set(v)))};
var leg=function(){bM.apply(this,arguments)};
_.S(leg,bM);leg.prototype.getAssociations=function(){var v=[];this.delegate.creatorEntity&&v.push(this.delegate.creatorEntity);return[].concat(_.s8(new Set(v)))};var s4l=function(){lM.apply(this,arguments)};
_.S(s4l,lM);s4l.prototype.getAssociations=function(){return[]};var rTP=function(){lM.apply(this,arguments)};
_.S(rTP,lM);
rTP.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&v.push.apply(v,_.s8(this.delegate.artists));this.delegate.audioModeVersion&&v.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&v.push(this.delegate.videoModeVersion);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.details&&v.push(this.delegate.details);this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.share&&
v.push(this.delegate.share);this.delegate.libraryEdit&&v.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.lyrics&&v.push(this.delegate.lyrics);return[].concat(_.s8(new Set(v)))};
var P3z=function(){lM.apply(this,arguments)};
_.S(P3z,lM);P3z.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.s8(new Set(v)))};
var ae1=function(){lM.apply(this,arguments)};
_.S(ae1,lM);ae1.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.s8(new Set(v)))};var iT=new _.z("musicResponsiveListItemRenderer");var B49=new _.z("addToPlaylistEndpoint");var Zrg=new _.z("captionPickerEndpoint");var C31=new _.z("suggestStats");var MuF=new _.z("backstageImageUploadEndpoint");var SGz=new _.z("createBackstagePostDialogEndpoint");_.U7g=new _.z("createCommentReplyDialogEndpoint");_.qGo=new _.z("updateCommentDialogEndpoint");_.JTX=new _.z("updateCommentReplyDialogEndpoint");var K46=new _.z("menuEndpoint");var WS$=new _.z("modalEndpoint");var d7X=new _.z("playlistEditorEndpoint");var Ie1=new _.z("copyTextEndpoint");var YGw,hMi;YGw=new _.z("shareEndpoint");hMi=new _.z("shareEntityEndpoint");_.ATU=new _.z("shareEntityServiceEndpoint");_.enG=new _.z("userFeedbackEndpoint");_.dM=new _.z("watchEndpoint");var MGX=new _.z("watchPlaylistEndpoint");var VuS=new _.z("addUpcomingEventReminderEndpoint");_.Cg=new _.z("getCommentsFromInboxCommand");var D7i=new _.z("notificationOptOutEndpoint");var HrP=new _.z("recordNotificationInteractionsEndpoint");var gqU=new _.z("removeUpcomingEventReminderEndpoint");var RnG=new _.z("getDownloadActionCommand");_.Ng1=new _.z("offlineOrchestrationActionCommand");var ulF=function(){lM.apply(this,arguments)};
_.S(ulF,lM);ulF.prototype.getAssociations=function(){return[]};var j4U=function(){lM.apply(this,arguments)};
_.S(j4U,lM);j4U.prototype.getAssociations=function(){return[]};var OrX=function(){lM.apply(this,arguments)};
_.S(OrX,lM);OrX.prototype.getAssociations=function(){return[]};var kQ1=function(){lM.apply(this,arguments)};
_.S(kQ1,lM);kQ1.prototype.getAssociations=function(){return[]};var W4o=function(){lM.apply(this,arguments)};
_.S(W4o,lM);W4o.prototype.getAssociations=function(){var v=[];this.delegate.transfer&&v.push(this.delegate.transfer);this.delegate.adsPlaybackData&&v.push.apply(v,_.s8(this.delegate.adsPlaybackData));this.delegate.drmLicense&&v.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s8(new Set(v)))};var $7i=function(){lM.apply(this,arguments)};
_.S($7i,lM);$7i.prototype.getAssociations=function(){return[]};var L4U=function(){lM.apply(this,arguments)};
_.S(L4U,lM);L4U.prototype.getAssociations=function(){var v=[];this.delegate.offlineVideoStreams&&v.push.apply(v,_.s8(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&v.push.apply(v,_.s8(this.delegate.captionTrack));return[].concat(_.s8(new Set(v)))};var GQS=function(){lM.apply(this,arguments)};
_.S(GQS,lM);GQS.prototype.getAssociations=function(){return[]};var Tg6=new _.z("showMoreDrawerCommand");var iro=new _.z("updateEngagementPanelContentCommand");var zMw=new _.z("getPdgBuyFlowCommand");var RMS=new _.z("liveChatPurchaseMessageEndpoint");var tuz=new _.z("openSuperStickerBuyFlowCommand");var Bg1=new _.z("updatePdgFeatureEnablementCommand");var vOw=function(){lM.apply(this,arguments)};
_.S(vOw,lM);vOw.prototype.getAssociations=function(){return[]};var EO1=function(){lM.apply(this,arguments)};
_.S(EO1,lM);EO1.prototype.getAssociations=function(){return[]};_.nO4=new _.z("pdgCommentChipRenderer");_.oOX=new _.z("permissionRoleBottomBarRenderer");_.fTl=new _.z("updatePermissionRoleCommand");var xhS=new _.z("prefetchWatchCommand");var c8g=new _.z("updatePlayerErrorMessageCommand");var WmX=new _.z("toggleCaptionsVisibilityCommand");_.y81=new _.z("quickActionsViewModel");var pk1=new _.z("playerResponse");var Q11=new _.z("playlistRenderer");_.XkS=new _.z("playlistVideoListRenderer");_.Mb=new _.z("playlistEditEndpoint");var eAU=new _.z("createImagePollCommand");var Fwo=new _.z("createQuizCommand");var mh1=new _.z("quizRenderer");var wkl=new _.z("uploadedVideoRenderer");var bM1=new _.z("decorateMessageEndpoint");var lTP=new _.z("lpOfferCardOptionViewModel");var s11=new _.z("sfvAudioItemPlaybackCommand");var r8l=function(){lM.apply(this,arguments)};
_.S(r8l,lM);r8l.prototype.getAssociations=function(){return[]};_.SO=new _.z("reelNonVideoContentEndpoint");_.By=new _.z("reelWatchEndpoint");_.Uk=new _.z("reelItemRenderer");var PIF=new _.z("reelMetapanelViewModel");_.aTw=new _.z("reelNonVideoContentRenderer");_.ZMP=new _.z("reelPlayerOverlayRenderer");var CIU=new _.z("shortsLockupViewModel");var MHU=new _.z("sponsorButtonViewModel");var SS1=new _.z("reelItemWatchResponse");var UhP=new _.z("textBadgeRenderer");_.qb=new _.z("buttonRenderer");_.J$=new _.z("toggleButtonRenderer");var BSA=new _.z("switchButtonViewModel");_.qS1=new _.z("confirmDialogRenderer");var J8P;J8P=new _.z("menuRenderer");_.Kw1=new _.z("menuFlexibleItemRenderer");var dhU=new _.z("pollRenderer");_.ITl=new _.z("backgroundPromoRenderer");var hAi;_.YSS=new _.z("chipCloudRenderer");hAi=new _.z("chipCloudChipRenderer");var A8o=new _.z("dropdownRenderer");var VHX=new _.z("gridVideoRenderer");_.HmX=new _.z("itemSectionRenderer");_.DhX=new _.z("messageRenderer");var HMl=new _.z("sortFilterHeaderRenderer");_.gOF=new _.z("videoRenderer");var N7g=new _.z("resolveUrlCommandMetadata");var uf4=function(){lM.apply(this,arguments)};
_.S(uf4,lM);uf4.prototype.getAssociations=function(){return[]};_.j16=new _.z("getAnswerCommand");_.ze=new _.z("searchEndpoint");var OMP=new _.z("genAiRichTextViewModel");var zn1=new _.z("overviewAnswerViewModel");var kto=new _.z("addToPlaylistServiceEndpoint");var Wwz=new _.z("clearSearchHistoryEndpoint");var $h1=new _.z("clearWatchHistoryEndpoint");var LwU=new _.z("webSerializedServiceEndpointExtension");_.Gti=new _.z("createCommentEndpoint");var T7S=new _.z("createCommentReplyEndpoint");var iMX=new _.z("performCommentActionEndpoint");var zAw=new _.z("updateCommentEndpoint");var RAg=new _.z("updateCommentReplyEndpoint");_.Kg=new _.z("createPlaylistServiceEndpoint");var no1=new _.z("deletePlaylistEndpoint");var ooX=new _.z("deleteVideoEndpoint");var txE=new _.z("getReportFormEndpoint");var fD1=new _.z("modifyChannelNotificationPreferenceEndpoint");var rDI;_.RX=new _.z("offlinePlaylistEndpoint");rDI={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 PhE;_.zy=new _.z("offlineVideoEndpoint");PhE={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 xs1=new _.z("pingingEndpoint");_.ch6=new _.z("selectActiveIdentityEndpoint");var yh6=new _.z("setSettingEndpoint");var Of1=new _.z("undoFeedbackEndpoint");var pgF=new _.z("unsubscribeEndpoint");_.Q6g=new _.z("updatedMetadataEndpoint");var Xg1=function(){lM.apply(this,arguments)};
_.S(Xg1,lM);Xg1.prototype.getAssociations=function(){return[]};_.e81=new _.z("updateLocalAppSettingCommand");var Fp1=new _.z("saveImageToDeviceEndpoint");var msU=new _.z("shareImageCommand");var wg4=new _.z("sharingProviderDataCommand");var bQi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(bQi,_.Vj);var lDX=[0,_.uN,-1];bQi.prototype.JSC$10164_serializeBinary=vbG(lDX);var s6w=_.zZ(lDX);var rh4=new _.z("userMentionSuggestionRenderer");var PHP=new _.z("liveChatTunnelCommand");var aDo=new _.z("showSponsorshipsGiftOfferDialogCommand");var ZQl=new _.z("sponsorshipsScrollableShelfViewModel");var CH1=new _.z("updateUpcomingEventReminderButtonStateCommand");var MY4=new _.z("upcomingEventReminderButtonStateRenderer");var Sl4=new _.z("subscribeEndpoint");var Usg=new _.z("registerTasksCommand");var ql1=new _.z("showDialogCommand");_.ou=new _.z("showSheetCommand");var Jh1=function(){lM.apply(this,arguments)};
_.S(Jh1,lM);Jh1.prototype.getAssociations=function(){return[]};var Kp6=function(){lM.apply(this,arguments)};
_.S(Kp6,lM);Kp6.prototype.getAssociations=function(){return[]};_.HT=new _.z("avatarViewModel");var PpA=new _.z("badgeViewModel");_.wQ=new _.z("buttonViewModel");_.dR=new _.z("chipViewModel");var JNE=new _.z("contentPreviewImageViewModel");var VXX=new _.z("decoratedAvatarViewModel");var GH1=new _.z("downloadButtonViewModel");_.af1=new _.z("engagementBarViewModel");_.NZG=new _.z("imageBannerViewModel");var DLs=new _.z("lockupContentMetadataRowExtension");var dsP=new _.z("lockupMetadataViewModel");_.ID1=new _.z("lockupViewModel");var Yl1=function(){lM.apply(this,arguments)};
_.S(Yl1,lM);Yl1.prototype.getAssociations=function(){return[]};_.h84=new _.z("pageHeaderViewModel");var kJF=new _.z("thumbnailHoverOverlayToggleActionsViewModel");_.bS=new _.z("toggleButtonViewModel");var AhP=function(){lM.apply(this,arguments)};
_.S(AhP,lM);AhP.prototype.getAssociations=function(){return[]};_.ZmN=new _.z("votingViewModel");var VYX=new _.z("sectionHeaderViewModel");var DsP=new _.z("notifyDropdownOptionSelectedCommand");var Xt9=new _.z("listViewModel");_.f7=new _.z("listItemViewModel");var HQ1=new _.z("dialogHeaderViewModel");var go1=function(){lM.apply(this,arguments)};
_.S(go1,lM);go1.prototype.getAssociations=function(){return[]};var Nr1=function(){lM.apply(this,arguments)};
_.S(Nr1,lM);Nr1.prototype.getAssociations=function(){return[]};var usg=function(){lM.apply(this,arguments)};
_.S(usg,lM);usg.prototype.getAssociations=function(){return[]};_.j6X=new _.z("transcriptSubmitCaptionCorrectionCommand");var OQF=function(){lM.apply(this,arguments)};
_.S(OQF,lM);OQF.prototype.getAssociations=function(){return[]};var YKE=new _.z("unpluggedStringRunImage");var kB1=new _.z("tabViewModel");var WpX=new _.z("tabbedViewModel");var $sF=function(){lM.apply(this,arguments)};
_.S($sF,lM);$sF.prototype.getAssociations=function(){return[]};_.LpP=new _.z("updateDescriptionAction");var GBS=new _.z("updateToggleButtonTextAction");_.Tr1=new _.z("autoplaySwitchButtonRenderer");var dw;_.iQw=new _.z("multiMarkersPlayerBarRenderer");dw=new _.z("chapterRenderer");var z8w=new _.z("heatMarkerRenderer");var vAE=new _.z("heatmapRenderer");var R8F=new _.z("smartSkipPlayerScrimOverlayRenderer");var tY6=new _.z("timedMarkerDecorationRenderer");var QEQ=new _.z("postWebToNativeMessageCommand");var Br1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Br1,_.Vj);var vIS=_.ir(Br1,[0,_.uN,-2]);var EI1=new _.z("whitelistEditEndpoint");var nIo=new _.z("clearUrlParamCommand");var oIX=new _.z("commerceActionCommand");_.fQ1=new _.z("getPaymentInstrumentsParamsCommand");var x21=new _.z("getPaymentsClientTokenCommand");var c1F=new _.z("googlePaymentBillingCommand");var y11=new _.z("googlePaymentPurchaseManagerCommand");_.ps1=new _.z("logGtmCommand");var QDg=new _.z("updateCardItemOnClickCommand");_.Xsi=new _.z("ypcPauseSubscriptionCommand");_.eb1=new _.z("ypcResumeSubscriptionCommand");var FLo=function(){lM.apply(this,arguments)};
_.S(FLo,lM);FLo.prototype.getAssociations=function(){return[]};var m2i=function(){lM.apply(this,arguments)};
_.S(m2i,lM);m2i.prototype.getAssociations=function(){return[]};var ws6=function(){lM.apply(this,arguments)};
_.S(ws6,lM);ws6.prototype.getAssociations=function(){return[]};var btg=function(){lM.apply(this,arguments)};
_.S(btg,lM);btg.prototype.getAssociations=function(){return[]};var lQ1=function(){lM.apply(this,arguments)};
_.S(lQ1,lM);lQ1.prototype.getAssociations=function(){return[]};var Mm$=new _.z("ypcOffersEndpoint");var sD6=new _.z("cardItemRenderer"),r11=new _.z("cardItemTextRenderer");var PQ1=new _.z("commerceCartItemQuantityPickerRenderer");var aQg=new _.z("linkCardRenderer");var nB$=new _.z("quantityIncrementerButtonViewModel");var ZtU=new _.z("quantityIncrementerViewModel");var CQF=new _.z("themedImageViewModel");_.MV1=new _.z("ypcCancelRecurrenceEndpoint");var SCo=new _.z("ypcCompleteTransactionEndpoint");_.U2i=new _.z("ypcGetCartEndpoint");_.TK=new _.z("ypcGetOffersEndpoint");_.Is=new _.z("ypcHandleTransactionEndpoint");var qC1=new _.z("ypcLogWalletAnalyticDataEndpoint");_.J1U=new _.z("ypcRedeemCodeEndpoint");var KLU=new _.z("ypcUpdateFopEndpoint");iI(Tt(1),LM(4));lAl((new MessageChannel).port2);var d21=function(){this.register=new Map},TkQ=function(v,E,n){v=v+"_"+E;
YV.register.has(v)?n=YV.register.get(v):(n=n(),YV.register.set(v,n));return n},IQz=function(v){v=_.p(v.register.values());
for(var E=v.next();!E.done;E=v.next())_.Qw(E.value,"ABORTED")};
d21.prototype.clear=function(){IQz(this);this.register.clear()};
var YV=new d21;var qoX=Date.now().toString();var KPQ,YC1=_.n1.ytLoggingDocDocumentNonce_;YC1||(YC1=mu(16),_.Vc("ytLoggingDocDocumentNonce_",YC1));KPQ=YC1;var Hy9={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 hbP;hbP=1;_.wM=function(v){this.veData=v};
_.tx=function(v){return new _.wM({trackingParams:v})};
_.ci=function(v,E,n,f,x,y){var Q=hbP++;return new _.wM({veType:v,veCounter:Q,elementIndex:n,dataElement:E,youtubeData:f,jspbYoutubeData:x,loggingDirectives:y})};
_.c=_.wM.prototype;
_.c.getAsJson=function(){var v={};this.veData.trackingParams!==void 0?v.trackingParams=this.veData.trackingParams:(v.veType=this.veData.veType,this.veData.veCounter!==void 0&&(v.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(v.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(v.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(v.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(v.isCounterfactual=!0);
return v};
_.c.getAsJspb=function(){var v=new sg1;this.veData.trackingParams!==void 0?v.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.dO(v,2,this.veData.veType),this.veData.veCounter!==void 0&&_.dO(v,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.dO(v,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.iU(v,5,!0));if(this.veData.dataElement!==void 0){var E=this.veData.dataElement.getAsJspb();_.Bz(v,7,E)}this.veData.youtubeData!==void 0&&_.Bz(v,8,this.veData.jspbYoutubeData);
return v};
_.c.toString=function(){return JSON.stringify(this.getAsJson())};
_.c.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.c.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Vc("yt_logging_screen.getRootVeType",A_L);_.Vc("yt_logging_screen.getCurrentCsn",_.lc);_.Vc("yt_logging_screen.getCttAuthInfo",sL);_.Vc("yt_logging_screen.setCurrentScreen",_.uXs);var A1z=function(){this.events=new Map},VV1=function(v){var E=[];
v=_.p(v.events.values());for(var n=v.next();!n.done;n=v.next())E.push(n.value);return E};
A1z.prototype.clear=function(){this.events.clear()};var Hto=function(){this.logTransport=new D2U;this.loggedEventRegister=new A1z;this.unloggedEventRegister=new A1z;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10221_flushTimer=new _.NO(this.flushInterval);this.JSC$10221_flushTimer.listen("tick",this.flush,!1,this)};
Hto.prototype.flush=function(){if(this.eventsCount){var v={loggedEvents:VV1(this.loggedEventRegister),unloggedEvents:VV1(this.unloggedEventRegister)};if(_.Z("export_player_version_to_ytconfig")){var E;(E=_.MX("PLAYER_CLIENT_VERSION"))?(E=E.split("-")[0].replace(/\./g,""),E=isNaN(Number(E))?"0":E):E="";var n=_.MX("PLAYER_CLIENT_VERSION");if(n){n=n.split("-");var f="";n.length>1&&(f=n[n.length-1]);n=U9X(f.startsWith("canary_experiment")?"canary":f.startsWith("canary_control")?"control":"none")}else n=
"CLIENT_CANARY_STATE_UNKNOWN";v.dimensions={playerClientVersion:E,playerCanaryState:n}}this.logTransport.flush(v);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10221_flushTimer.enabled&&this.JSC$10221_flushTimer.stop()}};
var gIw=function(v){h$==null&&(h$=new Hto);var E=h$;var n=E.loggedEventRegister;v.dimensions=v.dimensions||{};v.dimensions.csn=_.lc()||"";var f=jWX(v.dimensions).join(";");if(v.records!=null)if(n.events.has(f)){var x;(x=n.events.get(f).records)==null||x.push.apply(x,_.s8(v.records))}else n.events.set(f,v);E.JSC$10221_flushTimer.enabled||E.JSC$10221_flushTimer.start();E.eventsCount++;E.eventsCount>=100&&E.flush()};var D2U=function(){};
D2U.prototype.flush=function(v,E){_.Z("enable_client_sli_logging")&&_.eQ("sliEventBatch",v,{sendIsolatedPayload:!!E})};var h$;var ug4;ug4=function(v){var E=Nml;v=v===void 0?{}:v;E=E.name;var n=GuI("SUCCESS");gIw({dimensions:v,records:[{name:E,state:"SLI_STATE_END",status:n}]})};
_.iyF=function(v,E,n,f){this.name=v;this.sliId=E;this.timeoutMs=n;this.statusOnTimeout=f;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.iyF.prototype.getId=function(){return this.sliId};
_.pe=function(v,E){E=E===void 0?{}:E;v.ongoing||(v.ongoing=!0,v.dimensions=E,v.logSliId=Gyl(),gIw({dimensions:v.dimensions,records:[{name:v.name,state:"SLI_STATE_START",sliId:v.logSliId}]}),v.timeoutMs>0&&(v.timeoutHandle=setTimeout(function(){_.Qw(v,v.statusOnTimeout)},v.timeoutMs)))};
_.Qw=function(v,E){v.ongoing&&(v.timeoutMs>0&&clearTimeout(v.timeoutHandle),v.ongoing=!1,E={dimensions:v.dimensions,records:[{name:v.name,status:GuI(E),state:"SLI_STATE_END",sliId:v.logSliId}]},YV.register.delete(v.name+"_"+v.sliId),gIw(E))};var Nml=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var jDw=function(){lM.apply(this,arguments)};
_.S(jDw,lM);jDw.prototype.getAssociations=function(){return[]};var rIA=new _.z("highlightTextDecoratorColorMapExtension");var lVQ=new _.z("styleRunColorMapExtension");var nY$=_.jU(["data-"]),xTL={};var ytN={};var A$=function(v){this.wrappedPromise_=v===void 0?null:v;this.state_=0;this.JSC$10253_value_=null};
A$.prototype.then=function(v,E,n){return this.wrappedPromise_?this.wrappedPromise_.then(v,E,n):this.state_===1&&v?(v=v.call(n,this.JSC$10253_value_))&&typeof v.then==="function"?v:_.VJ(v):this.state_===2&&E?(v=E.call(n,this.JSC$10253_value_))&&typeof v.then==="function"?v:_.Oti(v):this};
A$.prototype.getValue=function(){return this.JSC$10253_value_};
A$.prototype.isRejected=function(){return this.state_==2};
slw(A$);_.Oti=function(v){var E=new A$;v=v===void 0?null:v;E.state_=2;E.JSC$10253_value_=v===void 0?null:v;return E};
_.VJ=function(v){var E=new A$;v=v===void 0?null:v;E.state_=1;E.JSC$10253_value_=v===void 0?null:v;return E};var Cw9="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var kU6=["load","abort","error"],DO=function(v,E,n){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10273_maxAspectRatio_=v;this.disableAnimation_=E===void 0?!1:E;this.disableExifRotation_=n===void 0?!1:n;this.JSC$10273_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10273_reject_=this.resolve_=null};
DO.prototype.transform=function(v){var E=this;this.mime_=v.type;N9(mQg(v),this.dataUrlRead_,this.readError_,this);N9(FoX(v.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(n,f){E.resolve_=n;E.JSC$10273_reject_=f})};
DO.prototype.dataUrlRead_=function(v){this.dataUrl_=v;this.angle_!=null&&WL1(this)};
DO.prototype.exifRead_=function(v){if(this.disableExifRotation_)this.angle_=0;else{a:if(v=new DataView(v),v.byteLength<2||v.getUint16(0)!==65496)v=-2;else{for(var E=2,n=v.byteLength;E<n;){var f=v.getUint16(E),x=v.getUint16(E+2);if(f===65505){E+=4;f=v.getUint32(E);x=v.getUint16(E+4);if(f!==1165519206||x!==0)break;E+=6;f=v.getUint16(E)===18761;E+=v.getUint32(E+4,f);x=v.getUint16(E,f);E+=2;for(var y=0;y<x;y++){if(v.getUint16(E,f)===274){E+=8;v=v.getUint16(E,f);break a}E+=12}}else if(f>>8!==255)break;
else E+=x+2}v=-1}switch(v){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&&WL1(this)};
DO.prototype.readError_=function(){this.JSC$10273_reject_()};
var WL1=function(v){zl(v.JSC$10273_image_,kU6,v.completeTransform_,!1,v);v.JSC$10273_image_.src=_.bW(v.dataUrl_).toString();v.JSC$10273_image_.src!=wV.toString()&&v.JSC$10273_image_.src.substr(0,11)==="data:image/"||v.JSC$10273_reject_()};
DO.prototype.completeTransform_=function(){if(this.JSC$10273_image_.src!=wV.toString()){var v=_.bW(this.dataUrl_),E=this.JSC$10273_image_.naturalHeight?this.JSC$10273_image_.naturalWidth/this.JSC$10273_image_.naturalHeight:null;this.invalidAspectRatio=E>this.JSC$10273_maxAspectRatio_||E<1/this.JSC$10273_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var n=this.JSC$10273_image_.naturalWidth,f=this.JSC$10273_image_.naturalHeight,x=E=0,y=this.JSC$10273_image_.naturalHeight?this.JSC$10273_image_.naturalWidth/
this.JSC$10273_image_.naturalHeight:null;y>this.JSC$10273_maxAspectRatio_?(n=this.JSC$10273_maxAspectRatio_*f,E=(n-this.JSC$10273_image_.naturalWidth)/2,this.cropped=!0):y<1/this.JSC$10273_maxAspectRatio_?(f=this.JSC$10273_maxAspectRatio_*n,x=(f-this.JSC$10273_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)y=n,n=f,f=y,y=E,E=x,x=y;switch(this.angle_){case 90:x-=n;break;case 180:E-=n;x-=f;break;case 270:E-=
f}this.cropped||this.angle_%360!==0?(v=document.createElement("canvas"),v.width=n||1,v.height=f||1,this.JSC$10273_image_.naturalWidth&&this.JSC$10273_image_.naturalHeight&&(n=v.getContext("2d"),n.rotate(Math.PI/180*this.angle_),n.drawImage(this.JSC$10273_image_,E,x,this.JSC$10273_image_.naturalWidth,this.JSC$10273_image_.naturalHeight)),this.transformedData=_.bW(v.toDataURL(this.mime_))):this.transformedData=v}else this.transformedData=v;this.resolve_(this)}};var HD=function(v,E){_.py.call(this,v);this.value=E};
_.S(HD,_.py);
var gR=function(v,E,n,f,x,y,Q){Q=Q===void 0?!1:Q;_.mP.call(this);var e=this;this.JSC$10278_url_=v;this.channelId_=E;this.maxFileSizeMb_=n;this.JSC$10278_maxAspectRatio_=f;this.dropZoneEl_=x;this.rejectInvalidAspectRatio_=Q;this.selectButtonEl_=y;this.JSC$10278_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new fg(this.dropZoneEl_);this.selectOverlay_=new xV(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10278_image_=this.transfer_=null;this.handler_=new _.u$(this);_.BV(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(y,"click",function(){e.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.S(gR,_.mP);gR.prototype.disposeInternal=function(){for(var v=this.selectButtonEl_.nextSibling;v&&v.parentNode&&v.tagName=="INPUT";)v.parentNode.removeChild(v),v=this.selectButtonEl_.nextSibling;this.cancel();_.mP.prototype.disposeInternal.call(this)};
gR.prototype.uploadPromise=function(){if(this.JSC$10278_image_==null)return null;this.uploadPromise_||$26(this);return this.uploadPromise_};
gR.prototype.cancel=function(){LLw(this);this.JSC$10278_image_=null};
var LLw=function(v){v.transfer_&&v.transfer_.cancel();v.transfer_=null;v.uploadPromise_=null;v.resolve_=null;v.JSC$10278_reject_=null},$26=function(v){LLw(v);
v.transfer_=_.dr4(v.JSC$10278_url_,{"X-YouTube-ChannelId":v.channelId_},v.JSC$10278_image_);v.handler_.listenOnce(v.transfer_,"l",v.JSC$10280_onUploadComplete_);v.handler_.listenOnce(v.transfer_,"n",v.onUploadError_);v.transfer_.run();v.uploadPromise_=new Promise(function(E,n){v.resolve_=E;v.JSC$10278_reject_=n})};
_.c=gR.prototype;_.c.onChange_=function(v){v.files.length&&(this.JSC$10278_image_=v.files[0],this.JSC$10278_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10278_image_=null,this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):($26(this),(new DO(this.JSC$10278_maxAspectRatio_)).transform(this.JSC$10278_image_).then((0,_.XV)(this.onPreview_,this),(0,_.XV)(this.onPreviewError_,this))))};
_.c.onPreview_=function(v){if(v.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10278_image_=null),this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;v.cropped&&this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.CHANGE_EVENT",v.transformedData))};
_.c.onPreviewError_=function(){this.JSC$10278_image_=null;this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.c.onHover_=function(v){v.stopPropagation();v.preventDefault();if(v.type==="dragover")v=!0;else if(v.type==="dragleave")v=!1;else return;this.dispatchEvent(new HD("yt.comments.ImageUploadOverlay.HOVER_EVENT",v))};
_.c.JSC$10280_onUploadComplete_=function(){var v=(0,_.OIP)(this.transfer_.getResponseText());this.resolve_(v.encryptedBlobId)};
_.c.onUploadError_=function(){this.JSC$10278_reject_();LLw(this)};var GUz=function(v){v=v||{};var E={},n={};this.url=v.url||"";this.args=v.args||_.sh.clone(E);this.assets=v.assets||{};this.attrs=v.attrs||_.sh.clone(n);this.fallback=v.fallback||null;this.fallbackMessage=v.fallbackMessage||null;this.html5=!!v.html5;this.disable=v.disable||{};this.loaded=!!v.loaded;this.messages=v.messages||{}};
GUz.prototype.clone=function(){var v=new GUz,E;for(E in this)if(this.hasOwnProperty(E)){var n=this[E];v[E]=_.eM(n)=="object"?_.sh.clone(n):n}return v};var Tm1,itX,zb1,Tk,tV4,BmP,vMg,EM4,nM1,oM1,fv6,x3S,cdX,ydS,pm1,Qfz,Xml,ez1,FNX,m31,wm1,bKU,lv1,sfw,rd1,PJ4,avU,ZKU,CJ6,lfX,MGg,SpP,U3l,qpF,JdS,KNl,d3P,Iv1,Yp1,hzP,Ado,VG1,D3z,HK6,gMX,NoF,uP1,jf1,OKl,kv4,WNo,$3X,LNF,Gvo,To6,iKo,Nb,zz6,Rz1,tGl,Bol,vQF,EQ4,nQ1,oQw,f7X,xjP,czX,yzS,pLP,Q26,XLg,eGX,F8o,mjl,w9E,wLo,b4l,l71,s21,rz1,PRS,a7l,Z4X,CR6,MRl,Sq4,Uj1,qqU,JzF,K81,dj1,I7w,YqP,hG1,Azg,VRP,Djw,H4l,gQ1,NTl;Tm1=["account/accounts_list"];itX=["acknowledge_channel_tou_strike"];zb1=["notification/add_upcoming_event_reminder"];
_.RbX=["att/get"];Tk=["browse","music/browse","unplugged/browse"];tV4=["channel/claim_legacy_youtube_channel"];BmP=["history/clear_search_history"];vMg=["history/clear_watch_history"];EM4=["comment/perform_comment_action"];nM1=["comment/get_comment_replies"];oM1=["ypc/commerce_action"];fv6=["backstage/create_post"];x3S=["live/create_broadcast"];cdX=["channel/create_channel"];ydS=["comment/create_comment_reply"];pm1=["comment/create_comment"];Qfz=["live_chat/create_poll"];Xml=["playlist/create"];
ez1=["decorate_message"];FNX=["live_chat/delete_message"];m31=["playlist/delete"];wm1=["video/delete"];bKU=["like/dislike"];lv1=["dismissal/dismiss"];sfw=["flag/flag"];rd1=["flow"];PJ4=["account/account_menu"];avU=["playlist/get_add_to_playlist"];ZKU=["get_answer"];CJ6=["channel/get_channel_creation_form"];lfX=["offline/get_download_action"];MGg=["kids/get_kids_blocklist_picker"];SpP=["live_chat/get_item_context_menu"];U3l=["live_chat/get_live_chat_message_buy_flow"];qpF=["live_chat/get_live_chat_replay"];
JdS=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];KNl=["live_chat/get_live_chat_super_sticker_buy_flow"];d3P=["notification/get_notification_menu"];Iv1=["playlist/get_settings_editor"];Yp1=["backstage/get_post_video_preview"];hzP=["account/get_profile_card"];Ado=["share/get_share_panel"];VG1=["share/get_sharing_provider_data"];D3z=["get_survey"];HK6=["notification/get_unseen_count"];gMX=["get_user_mention_suggestions"];NoF=["get_watch"];uP1=["guide"];
jf1=["feedback"];OKl=["kids/update_blacklist"];kv4=["like/like"];WNo=["live_chat/live_chat_action"];$3X=["live_chat/manage_user"];LNF=["video_manager/metadata_update"];Gvo=["live_chat/moderate"];To6=["notification/modify_channel_preference"];iKo=["notification/opt_out"];Nb=["get_panel","get_posts_by_host_panel"];zz6=["player"];Rz1=["browse/edit_playlist"];tGl=["notification/record_interactions"];Bol=["reel/reel_item_watch"];vQF=["reel/reel_watch_sequence"];EQ4=["like/removelike"];nQ1=["notification/remove_upcoming_event_reminder"];
oQw=["flag/get_form"];f7X=["miniapp/report_value"];xjP=["navigation/resolve_url"];czX=["channel/reveal_business_email"];yzS=["in_video/search"];pLP=["search","sfv/search","unplugged/search"];Q26=["live_chat/send_message"];XLg=["live_chat/send_live_chat_vote"];eGX=["account/set_setting"];F8o=["submit_caption_correction"];mjl=["subscription/subscribe"];w9E=["get_transcript"];wLo=["resolve_location","unplugged/resolve_location"];b4l=["subscription/unsubscribe"];l71=["backstage/update_post"];s21=["channel_edit/update_channel_page_settings"];
rz1=["comment/update_comment_reply"];PRS=["comment/update_comment"];a7l=["comment/update_comments_settings"];Z4X=["creator/update_creator_channel"];CR6=["pdg/update_enablement"];MRl=["updated_metadata"];Sq4=["channel_edit/validate_channel_handle"];Uj1=["verify_age"];qqU=["next","unplugged/watch_next"];JzF=["whitelist/edit"];K81=["ypc/cancel_recurrence"];dj1=["ypc/complete_transaction"];I7w=["ypc/get_cart"];YqP=["ypc/get_fix_instrument_params"];hG1=["ypc/get_offers"];Azg=["ypc/get_payment_instruments_params"];
VRP=["ypc/handle_transaction"];Djw=["ypc/log_payment_server_analytics"];H4l=["ypc/pause_subscription"];gQ1=["ypc/redeem_code"];NTl=["ypc/resume_subscription"];var u5l=[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,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,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,
84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,
253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,
24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,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,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,82039];var RT=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Vc("yt.msgs_",RT);var uM=new _.$Y("ACTION_ROUTER_TOKEN");_.jO=function(){this.autonavState_=_.Z("kevlar_is_pupi_enabled")?2:V09()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.jO.prototype.getState=function(){return this.autonavState_};
_.jO.prototype.pause=function(v){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=v):this.autonavState_==1&&(this.disabledAutonavPauseReason_=v)};
_.jO.prototype.setState=function(v,E,n){E&&(this.autoplayChangedByUser=!0);E=this.autonavState_===3||v===3;this.autonavState_!=v&&(this.autonavState_=v,v!=3&&_.DTX(v==2),v=_.Z("kevlar_is_pupi_enabled")?n||E:!0,_.qw.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,v,n))};
_.jO.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.zY(_.jO);var Ok=function(){this.hasRun=!1};var kV={},iLE=(kV.auto_search="LATENCY_ACTION_AUTO_SEARCH",kV.ad_to_ad="LATENCY_ACTION_AD_TO_AD",kV.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",kV.app_startup="LATENCY_ACTION_APP_STARTUP",kV.browse="LATENCY_ACTION_BROWSE",kV.cast_splash="LATENCY_ACTION_CAST_SPLASH",kV.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",kV.channels="LATENCY_ACTION_CHANNELS",kV.chips="LATENCY_ACTION_CHIPS",kV.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",kV.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
kV.editor="LATENCY_ACTION_EDITOR",kV.embed="LATENCY_ACTION_EMBED",kV.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",kV.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",kV.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",kV.explore="LATENCY_ACTION_EXPLORE",kV.favorites="LATENCY_ACTION_FAVORITES",kV.home="LATENCY_ACTION_HOME",kV.inboarding="LATENCY_ACTION_INBOARDING",kV.landing="LATENCY_ACTION_LANDING",kV.library="LATENCY_ACTION_LIBRARY",kV.live=
"LATENCY_ACTION_LIVE",kV.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",kV.management="LATENCY_ACTION_MANAGEMENT",kV.mini_app="LATENCY_ACTION_MINI_APP_PLAY",kV.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",kV.onboarding="LATENCY_ACTION_ONBOARDING",kV.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",kV.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",kV.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",kV.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
kV.prebuffer="LATENCY_ACTION_PREBUFFER",kV.prefetch="LATENCY_ACTION_PREFETCH",kV.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",kV.profile_switcher="LATENCY_ACTION_LOGIN",kV.projects="LATENCY_ACTION_PROJECTS",kV.reel_watch="LATENCY_ACTION_REEL_WATCH",kV.results="LATENCY_ACTION_RESULTS",kV.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",kV.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",kV.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",kV.review="LATENCY_ACTION_REVIEW",kV.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",kV.search_ui="LATENCY_ACTION_SEARCH_UI",kV.search_suggest="LATENCY_ACTION_SUGGEST",kV.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",kV.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",kV.seek="LATENCY_ACTION_PLAYER_SEEK",kV.settings="LATENCY_ACTION_SETTINGS",kV.store="LATENCY_ACTION_STORE",kV.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",kV.tenx="LATENCY_ACTION_TENX",kV.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",kV.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
kV.watch="LATENCY_ACTION_WATCH",kV.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",kV["watch,watch7"]="LATENCY_ACTION_WATCH",kV["watch,watch7_html5"]="LATENCY_ACTION_WATCH",kV["watch,watch7ad"]="LATENCY_ACTION_WATCH",kV["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",kV.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",kV.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",kV.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",kV.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",kV.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",kV.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",kV.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",kV.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",kV);var wNX=function(v,E){bF.call(this,1,arguments);this.timer=E};
_.S(wNX,bF);var m_G=new ZCQ("aft-recorded",wNX);var B$E=_.n1.ytLoggingGelSequenceIdObj_||{};_.Vc("ytLoggingGelSequenceIdObj_",B$E);var WD=_.n1.ytLoggingLatencyUsageStats_||{};_.Vc("ytLoggingLatencyUsageStats_",WD);var $V=function(){this.cleanupJob=0},neX=function(){$V.instance||($V.instance=new $V);
return $V.instance};
_.c=$V.prototype;_.c.baseline=function(v,E,n){Lg(this,"baseline_"+v)||_.eQ("latencyActionBaselined",{clientActionNonce:v},{timestamp:E,cttAuthInfo:n})};
_.c.tick=function(v,E,n,f){Lg(this,"tick_"+v+"_"+E)||_.eQ("latencyActionTicked",{tickName:v,clientActionNonce:E},{timestamp:n,cttAuthInfo:f})};
_.c.info=function(v,E,n){var f=Object.keys(v).join("");Lg(this,"info_"+f+"_"+E)||(v=Object.assign({},v),v.clientActionNonce=E,_.eQ("latencyActionInfo",v,{cttAuthInfo:n}))};
_.c.jspbInfo=function(v,E,n){for(var f="",x=0;x<tR(v).length;x++)tR(v)[x]!==void 0&&(f=x===0?f.concat(""+x):f.concat("_"+x));Lg(this,"info_"+f+"_"+E)||(_.ps(v,2,E),E={cttAuthInfo:n},n=_.Z("jspb_sparse_encoded_pivot")?new x$([{}]):new x$,_.v5(n,7,hfF,v),veF("latencyActionInfo",n,E))};
_.c.span=function(v,E,n){var f=Object.keys(v).join("");Lg(this,"span_"+f+"_"+E)||(v.clientActionNonce=E,_.eQ("latencyActionSpan",v,{cttAuthInfo:n}))};
var Lg=function(v,E){WD[E]=WD[E]||{count:0};var n=WD[E];n.count++;n.time=(0,_.gd)();v.cleanupJob||(v.cleanupJob=_.cP(_.wh,function(){var f=(0,_.gd)(),x;for(x in WD)WD[x]&&f-WD[x].time>6E4&&delete WD[x];v&&(v.cleanupJob=0)},5E3));
return n.count>5?(n.count===6&&Math.random()*1E5<1&&(n=new _.yc("CSI data exceeded logging limit with key",E.split("_")),E.indexOf("plev")>=0||_.li(n)),!0):!1};var j2U,O4F;j2U=window;O4F=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.fH=j2U.performance||j2U.mozPerformance||j2U.msPerformance||j2U.webkitPerformance||new O4F;var FjE=!1,fXX=!1,bz1=(0,_.XV)(_.fH.clearResourceTimings||_.fH.webkitClearResourceTimings||_.fH.mozClearResourceTimings||_.fH.msClearResourceTimings||_.fH.oClearResourceTimings||_.er,_.fH);var k96=window;k96.ytcsi&&(k96.ytcsi.infoGel=_.XD,k96.ytcsi.tick=_.FD);var JSL=function(v){bF.call(this,1,arguments);this.csn=v};
_.S(JSL,bF);var qb$=new ZCQ("screen-created",JSL),WjI=[],qMy=k5I,$_y=0,sf=new Map,KjF=new Map,d_y=new Map;var Zk=Symbol("vf"),dj=new WeakMap;var G4=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},iz=function(){G4.instance||(G4.instance=new G4);
return G4.instance};
_.c=G4.prototype;_.c.setClient=function(v){this.client=v};
_.c.JSC$10359_newScreen=function(){this.clear();this.csn=_.lc()};
_.c.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.c.reportShown=function(v,E,n){var f=this.JSC$10359_getTrackingParams(v),x=v.visualElement?v.visualElement:f;E=this.shownElements.has(x);var y=this.visibleState.get(x);this.shownElements.add(x);this.visibleState.set(x,!0);v.impressionLog&&!E&&v.impressionLog();if(f||v.visualElement)if(n=W81(this,v,n))if(x=$jU(this,v),T4(this,v)||x){f=v.visualElement?v.visualElement:_.tx(f);var Q=v.interactionLoggingClientData;x||E?T4(this,v)&4?y||geN(this.client,n,f,Q):T4(this,v)&1&&!E&&V2E(this.client,n,f,Q):V2E(this.client,
n,f,Q)}};
_.c.reportHidden=function(v,E,n){var f=this.JSC$10359_getTrackingParams(v),x=v.visualElement?v.visualElement:f;E=this.hiddenElements.has(x);var y=this.visibleState.get(x);this.hiddenElements.add(x);this.visibleState.set(x,!1);if(y===!1)return!0;if(!f&&!v.visualElement)return!1;n=W81(this,v,n);if(!n||!T4(this,v)&&$jU(this,v))return!1;f=v.visualElement?v.visualElement:_.tx(f);T4(this,v)&8?NlN(this.client,n,f):T4(this,v)&2&&!E&&(v=this.client,E=ln({cttAuthInfo:sL(n)||void 0},n),f={csn:n,ve:f.getAsJson(),
eventType:2},n==="UNDEFINED_CSN"?PR("visualElementHidden",E,f):v?Qs("visualElementHidden",f,v,E):_.eQ("visualElementHidden",f,E));return!0};
_.c.JSC$10359_getTrackingParams=function(v){var E=this.getData(v),n,f;if(_.Z("il_use_view_model_logging_context")&&(E==null?0:(n=E.context)==null?0:(f=n.loggingContext)==null?0:f.loggingDirectives))return E.context.loggingContext.loggingDirectives.trackingParams||"";var x,y;if(E==null?0:(x=E.rendererContext)==null?0:(y=x.loggingContext)==null?0:y.loggingDirectives)return E.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams||
"";var Q;return((Q=v.veContainer)==null?0:Q.trackingParams)?v.veContainer.trackingParams:(E==null?void 0:E.trackingParams)||""};
_.c.JSC$10359_elementShouldLogGesture=function(v,E){v=this.getData(v);return!!((Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.gestures&&v.loggingDirectives.gestures.types||""))||0)&E)};
_.c.JSC$10359_getNearestParentVe=function(v){var E=this.JSC$10359_getTrackingParams(v);return v.visualElement?v.visualElement:E?_.tx(E):v.parentElement?this.JSC$10359_getNearestParentVe(v.parentElement):null};
var W81=function(v,E,n){var f=_.lc(n);return v.csn===null||f===v.csn||n?f:(v=new _.yc("VisibilityLogger called before newScreen",{caller:E.tagName,previous_csn:v.csn,current_csn:f}),_.li(v),null)};
G4.prototype.getData=function(v){var E,n=v.data||((E=v.props)==null?void 0:E.data);if(!n&&_.Z("enable_wiz_always_try_logging_info_map")){var f;n=(f=IQ(v))==null?void 0:f[Zk]}else if(v.isWebComponentWrapper){var x;n=(x=IQ(v))==null?void 0:x[Zk]}return n};
var $jU=function(v,E){var n;return!((n=v.getData(E))==null||!n.loggingDirectives)},T4=function(v,E){v=v.getData(E);
return Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.visibility&&v.loggingDirectives.visibility.types||""))||1};var iM;iM=function(){};
_.L5=function(){iM.instance||(iM.instance=new iM);return iM.instance};
iM.prototype.setClient=function(v){_.qX(iz().setClient).bind(iz())(v)};
_.L8w=function(){_.L5();_.qX(iz().JSC$10359_newScreen).bind(iz())()};
iM.prototype.clear=function(){_.qX(iz().clear).bind(iz())()};
iM.prototype.reportShown=function(v,E,n){_.qX(iz().reportShown).bind(iz())(v,E,n)};
iM.prototype.reportHidden=function(v,E,n){return _.qX(iz().reportHidden).bind(iz())(v,E,n)};
var mSF=function(v,E){return _.qX(iz().JSC$10359_getTrackingParams).bind(iz())(E)},wc$=function(v,E){return _.qX(iz().JSC$10359_getNearestParentVe).bind(iz())(E)};var z4,G91;z4=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};
_.Tl=function(){z4.instance||(z4.instance=new z4);return z4.instance};
z4.prototype.setClient=function(v){this.client=v};
G91=function(v,E,n){n=n===void 0?{}:n;_.qX(function(){var f,x,y,Q=((f=_.C(E==null?void 0:E.commandMetadata,_.Dl))==null?void 0:f.rootVe)||((x=_.C(E==null?void 0:E.commandMetadata,oel))==null?void 0:(y=x.screenVisualElement)==null?void 0:y.uiType);if(Q){f=_.C(E==null?void 0:E.commandMetadata,N7g);if(f==null?0:f.parentTrackingParams){var e=_.tx(f.parentTrackingParams);if(f.parentCsn)var F=f.parentCsn}else n.clickedVisualElement?e=n.clickedVisualElement:E.clickTrackingParams&&(e=_.tx(E.clickTrackingParams));
a:{f=_.C(E,_.dM);x=_.C(E,MGX);if(f){if(x=HLQ(f,"VIDEO")){f={token:x,videoId:f.videoId};break a}}else if(x&&(f=HLQ(x,"PLAYLIST"))){f={token:f,playlistId:x.playlistId};break a}f=void 0}n=Object.assign({},{cttAuthInfo:f,parentCsn:F},n);if(_.Z("expectation_logging")){var b;n.loggingExpectations=((b=_.C(E==null?void 0:E.commandMetadata,oel))==null?void 0:b.loggingExpectations)||void 0}_.Rs(v,Q,e,n)}else _.li(new _.yc("Error: Trying to create a new screen without a rootVeType",E))})()};
_.Rs=function(v,E,n,f){f=f===void 0?{}:f;_.qX(function(){u5l.includes(E)||(_.li(new _.yc("createClientScreen() called with a non-page VE",E)),E=83769);f.isHistoryNavigation||(v.forwardHistoryStack=[],v.backHistoryStack.push({rootVe:E,key:f.key||""}));v.graftQueue=[];v.stateChangedQueue=[];f.dataPromises?TT1(v,E,n,f):i4o(v,E,n,f)})()};
_.zGU=function(v,E,n){n=n===void 0?0:n;_.qX(function(){E.then(function(f){v.pendingScreenCreation.has(n)&&v.pendingScreenFn&&v.pendingScreenFn();var x=_.lc(n),y=_.bc(n);if(x&&y){var Q;(f==null?0:(Q=f.response)==null?0:Q.trackingParams)&&rj(v.client,x,y,_.tx(f.response.trackingParams));var e;(f==null?0:(e=f.playerResponse)==null?0:e.trackingParams)&&rj(v.client,x,y,_.tx(f.playerResponse.trackingParams))}})})()};
z4.prototype.graftServerVe=function(v,E,n){var f=this;return _.qX(function(){var x=_.tx(v);_.t$(f,x,E,n);return x})()};
_.bPX=function(v,E,n,f){return _.Z("enable_client_ve_spec")&&E.clientVeSpec?(E=_.ci(E.clientVeSpec.uiType,void 0,E.clientVeSpec.elementIndex,E.clientVeSpec.clientYoutubeData,void 0,E),_.t$(v,E,n,f)?E:null):E.trackingParams?v.graftServerVe(E.trackingParams,n,f):null};
_.Gl=function(v,E,n,f){return _.qX(function(){if(!E.veType)return _.bi(new _.yc("Error: Trying to graft a client VE without a veType.")),null;if(E.visibilityTypes){var x=E.visibilityTypes.reduce(function(y,Q){return y|Q});
x={visibility:{types:String(x)}}}x=_.ci(E.veType,E.visualElement,E.elementIndex,E.clientYouTubeData,void 0,x);return _.t$(v,x,n,f)?x:null})()};
_.t$=function(v,E,n,f){f=f===void 0?0:f;return _.qX(function(){if(v.pendingScreenCreation.has(f))return v.graftQueue.push([E,n]),!0;var x=_.lc(f),y=n||_.bc(f);if(x&&y){if(_.Z("combine_ve_grafts")){var Q=v.cachedVisualElements.get(y.toString());Q?Q.push(E):(v.cachedRootVisualElements.set(y.toString(),y),v.cachedVisualElements.set(y.toString(),[E]));v.attachTimeout||(v.attachTimeout=_.cP(_.wh,function(){RGo(v,x)},1200))}else rj(v.client,x,y,E);
return!0}return!1})()};
_.BD=function(v,E,n){n=n===void 0?0:n;var f=v.recurringGrafts.get(n)||new Map;if(_.Z("smarter_ve_dedupping"))for(var x=Array.from(f.keys()),y=0;y<x.length;y++){var Q=void 0,e=void 0;var F=E;var b=x[y];b.isClientVe()&&F.isClientVe()?(Q=F.getAsJson(),e=b.getAsJson(),F=Q.veType!==e.veType||Q.elementIndex!==e.elementIndex||Q.dataElement!==e.dataElement||F.getLoggingDirectives()!==b.getLoggingDirectives()?!1:!0):F=b.veData.trackingParams!==void 0&&F.veData.trackingParams!==void 0?((e=F.veData)==null?void 0:
e.trackingParams)===((Q=b.veData)==null?void 0:Q.trackingParams):!1;if(F)return}else if(f.has(E))return;f.set(E,void 0);v.recurringGrafts.set(n,f);_.lc(n)==="UNDEFINED_CSN"||v.pendingScreenCreation.has(n)||_.t$(v,E,void 0,n)};
_.vg=function(v,E,n,f){f=_.lc(f===void 0?0:f);if(!f)return!1;j9$(v.client,f,E,n);return!0};
_.El=function(v,E,n,f){if(!E)return!1;f=_.lc(f===void 0?0:f);if(!f)return!1;j9$(v.client,f,_.tx(E),n);return!0};
_.aX=function(v,E){var n=E.getScreenLayer&&E.getScreenLayer();if(E.visualElement)return _.vg(v,E.visualElement,void 0,n);E=mSF(_.L5(),E);return _.El(v,E,void 0,n)};
z4.prototype.clickCommand=function(v,E,n){return _.El(this,v.clickTrackingParams,E,n===void 0?0:n)};
z4.prototype.stateChanged=function(v,E,n){this.visualElementStateChanged(_.tx(v),E,n===void 0?0:n)};
z4.prototype.visualElementStateChanged=function(v,E,n){n=n===void 0?0:n;n===0&&this.pendingScreenCreation.has(n)?this.stateChangedQueue.push([v,E]):this.logStateChanged(v,E,n)};
z4.prototype.logStateChanged=function(v,E,n){n=n===void 0?0:n;var f=_.lc(n);v=v||_.bc(n);return f&&v?(OzG(this.client,f,v,E),!0):!1};
var TT1=function(v,E,n,f){f=f===void 0?{}:f;v.pendingScreenCreation.add(f.layer||0);v.pendingScreenFn=function(){i4o(v,E,n,f);var Q=_.bc(f.layer);if(Q){for(var e=_.p(v.graftQueue),F=e.next();!F.done;F=e.next())F=F.value,_.t$(v,F[0],F[1]||Q,f.layer);Q=_.p(v.stateChangedQueue);for(e=Q.next();!e.done;e=Q.next())e=e.value,v.logStateChanged(e[0],e[1])}};
n||_.lc(f.layer)||v.pendingScreenFn();if(f.dataPromises)for(var x=_.p(f.dataPromises),y=x.next();!y.done;y=x.next())_.zGU(v,y.value,f.layer);else _.mb(Error("wf"))},i4o=function(v,E,n,f){f=f===void 0?{}:f;
var x=void 0;f.layer||(f.layer=0);x=f.parentLayer!==void 0?f.parentLayer:f.layer;var y=_.lc(x);x=_.bc(x);var Q=n||x,e;Q&&(f.parentCsn!==void 0?e={clientScreenNonce:f.parentCsn,visualElement:Q}:y&&y!=="UNDEFINED_CSN"&&(e={clientScreenNonce:y,visualElement:Q}));var F,b=_.MX("EVENT_ID");y==="UNDEFINED_CSN"&&b&&(F={servletData:{serializedServletEventId:b}});_.Z("combine_ve_grafts")&&y&&RGo(v,y);_.Z("no_client_ve_attach_unless_shown")&&Q&&y&&ASE(Q,y);try{var l=_.IXA(v.client,E,e,f.csnToClone,f.cttAuthInfo,
F,f.implicitGestureType,void 0,f.loggingExpectations)}catch(M){_.ss(M,{rootVeType:E,rootVe:x,parentVisualElement:n,currentCsn:y,parentEl:e,csnToClone:f.csnToClone});_.mb(M);return}_.uXs(l,E,f.layer,f.cttAuthInfo);y&&y!=="UNDEFINED_CSN"&&x&&!g2E(y)&&NlN(v.client,y,x,!0);v.backHistoryStack[v.backHistoryStack.length-1]&&!v.backHistoryStack[v.backHistoryStack.length-1].csn&&(v.backHistoryStack[v.backHistoryStack.length-1].csn=l||"");_.XD({clientScreenNonce:l});_.L8w();var r=_.bc(f.layer);y&&y!=="UNDEFINED_CSN"&&
r&&(_.Z("web_mark_root_visible")||_.Z("music_web_mark_root_visible"))&&_.ZI(l,r);v.pendingScreenCreation.delete(f.layer||0);v.pendingScreenFn=void 0;var a;(a=v.recurringGrafts.get(f.layer))==null||a.forEach(function(M,U){M?_.t$(v,U,M,f.layer):r&&_.t$(v,U,r,f.layer)});
tRS(v)},tRS=function(v){for(var E=0;E<v.afterNewScreenOneOffJobs.length;E++){var n=v.afterNewScreenOneOffJobs[E];
try{n()}catch(f){_.mb(f)}}for(E=v.afterNewScreenOneOffJobs.length=0;E<v.afterNewScreenRecurringJobs.length;E++){n=v.afterNewScreenRecurringJobs[E];try{n()}catch(f){_.mb(f)}}},RGo=function(v,E){if(E===void 0)for(var n=D9Q(),f=0;f<n.length;f++)n[f]!==void 0&&RGo(v,n[f]);
else v.cachedVisualElements.forEach(function(x,y){(y=v.cachedRootVisualElements.get(y))&&_.YME(v.client,E,y,x)}),v.cachedVisualElements.clear(),v.cachedRootVisualElements.clear(),v.attachTimeout=void 0};var nQ=function(v){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;v={};this.tNR=(v.response=!1,v.playerResponse=!1,v)};
_.S(nQ,Ok);nQ.prototype.validate=function(v){return!(!v.data||!v.data.response&&!v.data.playerResponse)};
nQ.prototype.handle=function(v){var E=_.Tl(),n=this.createScreenConfig.layer;v.data.response&&v.data.response.trackingParams&&!this.tNR.response&&(E.graftServerVe(v.data.response.trackingParams,void 0,n),this.tNR.response=!0);v.data.playerResponse&&v.data.playerResponse.trackingParams&&!this.tNR.playerResponse&&(E.graftServerVe(v.data.playerResponse.trackingParams,void 0,n),this.tNR.playerResponse=!0)};var o6=function(){this.aD=_.Sw();this.za=[];this.xTu=0};
o6.prototype.processChunk=function(v){if(v){for(var E=_.p(this.za),n=E.next();!n.done;n=E.next())n=n.value,n.validate(v)&&(n.handle(v),n.hasRun=!0);_.FD("np"+this.xTu);this.xTu++}};var zmL,Ys,hc,TlG=0,izX=function(v,E,n,f,x,y){var Q=hc;this.name=v;this.attributes=E;this.startTime=n;this.id=f;this.sessionId=x;this.traceId=y;this.parent=Q};
izX.prototype.attr=function(v,E){this.attributes[v]=E};
izX.prototype.close=function(v){if(this!==hc)throw Error("xf");var E=hc;v&&(E.status=v);E.endTime=performance.now();v=_.p(Ys.spanProcessors);for(var n=v.next();!n.done;n=v.next()){var f=void 0,x=void 0;(x=(f=n.value).onSpanEnd)==null||x.call(f,E)}hc=E==null?void 0:E.parent};
izX.prototype[Symbol.dispose]=function(){this.close()};var kDF,EUg;_.ki=function(v,E,n,f,x,y,Q){Q=Q===void 0?[]:Q;this.buildCommandPayload=v;this.navigate=E;this.handleServiceRequest=n;this.sendAction=f;this.JSC$10400_screenManager=x;this.commandResolverMap=y;this.autoLogResolverAllowlist=Q;this.pendingCommands=new Set;if(t2N("command")){var e=this.resolveCommand;this.resolveCommand=function(F,b){var l=RmE("command",{command:F});return vq1(l,e.bind(this,F,b),null)}}};
kDF=function(v,E,n){var f=KEN,x=dRE,y=_.Tl(),Q=BTl;n=n===void 0?[]:n;_.ki.instance=new _.ki(v,E,f,x,y,Q,n)};
EUg=function(v,E,n){if(!v.commandResolverMap)return!1;var f=fes(E,v.commandResolverMap);return f?((v.autoLogResolverAllowlist.some(function(x){return!!_.C(E,x)})||(n==null?0:n.forceClickLogging))&&vUz(v,E,n),f instanceof Promise?f.then(function(x){x.resolve(E,n)}):f.resolve(E,n),!0):!1};
_.ki.prototype.resolveCommand=function(v,E){var n=this,f=nU1(v);if(EUg(this,v,E))return!0;if(f)return oUP(this,v,E);if(!this.buildCommandPayload)return EqN(v,"Unhandled command by buildCommandPayload"),!1;var x=this.buildCommandPayload(v,E);if(E==null?0:E.commandController)x.commandController=E.commandController;if(x.type===0){if(!this.navigate)return nqy(v,"navigate"),!1;if(!f8F(x.command))return EqN(v,"Page requests need to specify a url"),!1;_.Z("logging_avoid_blocking_during_navigation")&&_.FGE().transition("application_navigating");
v=this.navigate(x)||[];S8i(v).then(function(){n.pendingCommands.delete(x.command)});
return!0}if(x.type===1){if(!this.handleServiceRequest)return nqy(v,"handleServiceRequest"),!1;(E==null?0:E.forceClickLogging)&&vUz(this,x.command,E);v=this.handleServiceRequest(x);S8i(v).then(function(){n.pendingCommands.delete(x.command)});
return!0}if(x.type===2){if(!this.sendAction)return nqy(v,"sendAction"),!1;vUz(this,x.command,E);this.sendAction(x);return!0}return!1};
var vUz=function(v,E,n){if((n==null||!n.disableClickTracking)&&v.JSC$10400_screenManager)if(E.clickTrackingParams&&_.Z("log_click_with_layer_from_element_in_command_handler")){var f;n=n==null?void 0:(f=n.form)==null?void 0:f.element;v.JSC$10400_screenManager.clickCommand(E,null,n&&n.getScreenLayer&&n.getScreenLayer())}else E.clickTrackingParams?v.JSC$10400_screenManager.clickCommand(E):!_.Z("disable_clicked_visual_element_in_command_handler")&&(n==null?0:n.clickedVisualElement)&&_.vg(v.JSC$10400_screenManager,
n.clickedVisualElement)},nU1=function(v){var E=!!_.C(v,_.Tn),n;
v=((n=_.C(v,_.zn))==null?void 0:n.signal)==="CLIENT_SIGNAL";return E||v},oUP=function(v,E,n){var f=_.C(E,_.Tn);
if(f)var x=(f==null?void 0:f.commands)||[];else{var y;if(((y=_.C(E,_.zn))==null?void 0:y.signal)==="CLIENT_SIGNAL"){var Q;x=((Q=_.C(E,_.zn))==null?void 0:Q.actions)||[]}}if(x){E=_.p(x);for(x=E.next();!x.done;x=E.next()){x=x.value;try{v.resolveCommand(x,n)}catch(e){e instanceof Error&&_.mb(e)}}return!0}EqN(E,"Could not handle the meta command");return!1},f8F=function(v){var E;
return!((E=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null||!E.url)};var fQ=function(){Ok.apply(this,arguments)};
_.S(fQ,Ok);fQ.prototype.validate=function(v){var E,n;return!this.hasRun&&!!((E=v.data.response)==null?0:(n=E.onResponseReceivedEndpoints)==null?0:n.length)};
fQ.prototype.handle=function(v){var E=_.ki.instance;v=_.p(v.data.response.onResponseReceivedEndpoints);for(var n=v.next();!n.done;n=v.next())E.resolveCommand(n.value)};var xvo,cLi,yLz;
xvo=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=_.Gn();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.xo=function(){cLi||(cLi=new xvo);return cLi};
yLz=function(){var v=_.xo();v.miniplayerButtonActivation=!1;v.userActivation=!1;v.playlistWatchPageActivation=!1;v.productDetailsPageActivation=!1;v.miniAppPageActivation=!1;v.playablesDestPageActivation=!1;v.lockupActivation=!1;v.showMiniplayerCommandActivation=!1;v.playlistSuggestionsShelfActivation=!1;v.mediaSessionPipActivation=!1;v.watchPipActivation=!1;v.watchWhileActivation=!1;v.shortsPipActivation=!1};
_.pYU=function(){var v=_.xo(),E=v.mediaSessionPipActivation,n=v.watchPipActivation,f=v.watchWhileActivation,x=v.playlistWatchPageActivation,y=v.lockupActivation,Q=v.showMiniplayerCommandActivation,e=v.navigatingAwayFromWatchDeletedVideo,F=v.shortsPipActivation,b=v.playlistSuggestionsShelfActivation,l=v.productDetailsPageActivation,r=v.miniAppPageActivation,a=v.playablesDestPageActivation;return!v.miniplayerButtonActivation&&!x&&!b&&!l&&!r&&!a&&!y&&!Q&&!E&&!n&&!f&&!F||e};var i6N;_.cg=Vf("FEwhat_to_watch","/",3854);_.zd9=Vf("FEdownloads","/feed/downloads",42352);i6N=Vf("FEmusic_offline","browse/FEmusic_offline",42352);var KC=function(v,E){E=E===void 0?[]:E;var n=n===void 0?[]:n;E=Z9X.apply(null,[CNE.apply(null,_.s8(E))].concat(_.s8(n)));this.store=qa9(v,void 0,E)};
KC.prototype.getState=function(){return this.store.getState()};
KC.prototype.dispatch=function(v){return this.store.dispatch(v)};
KC.prototype.subscribe=function(v){return this.store.subscribe(v)};
KC.prototype.replaceReducer=function(v){return this.store.replaceReducer(v)};
KC.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.yC=function(v,E,n){var f=E(v.getState());return v.subscribe(function(){var x=E(v.getState());if(x!==f){var y=f;f=x;n(x,y)}})};var ir9;_.n7=function(v,E,n){return _.un({type:"REPLACE_ENTITY",payload:{entityPayload:n,entityType:v,key:E}})};
ir9=function(v){return _.un({type:"REPLACE_ENTITIES",payload:v})};
_.sI=function(v,E,n,f){return _.un({type:"UPDATE_ENTITY",payload:{entityPayload:n,entityType:v,key:E,mergeOption:f}})};var s41=function(v){var E=this;v=v===void 0?[]:v;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;v.forEach(function(n){E.append(n)})};
_.c=s41.prototype;_.c.getLength=function(){return this.totalLength};
_.c.append=function(v){var E=this.arrays.length===0?!1:(E=this.arrays[this.arrays.length-1])&&E.buffer===v.buffer&&E.byteOffset+E.length===v.byteOffset;E?(E=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(E.buffer,E.byteOffset,E.length+v.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(v);this.totalLength+=v.length};
_.c.split=function(v){for(var E=new s41,n=new s41,f=_.p(this.arrays),x=f.next();!x.done;x=f.next())x=x.value,v>=x.length?(E.append(x),v-=x.length):v?(E.append(new Uint8Array(x.buffer,x.byteOffset,v)),n.append(new Uint8Array(x.buffer,x.byteOffset+v,x.length-v)),v=0):n.append(x);return{headView:E,tailView:n}};
_.c.extract=function(v,E){return this.split(v).tailView.split(E).headView};
_.c.isFocused=function(v){return v>=this.arrayPos&&v<this.arrayPos+this.arrays[this.arrayIdx].length};
_.c.focus=function(v){if(!this.isFocused(v))for(v<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=v&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var QaX=function(v,E){v.focus(E);return v.arrays[v.arrayIdx][E-v.arrayPos]};(function(){var v=function(f){return new Uint8Array(f)},E=function(f){for(var x=new Uint8Array(f.length),y=0;y<f.length;y++)x[y]=f[y];
return x},n=new Uint8Array([1]);
return n.length===1&&n[0]===1?v:E})();
var eML=Array(1024),XXN=window.TextDecoder?new TextDecoder:void 0,m7$=window.TextEncoder?new TextEncoder:void 0;var leX=function(v){this.arrayView=v;this.pos=0;this.pendingTagAndType=-1},j7=function(v){var E=QaX(v.arrayView,v.pos);
++v.pos;if(E<128)return E;for(var n=E&127,f=1;E>=128;)E=QaX(v.arrayView,v.pos),++v.pos,f*=128,n+=(E&127)*f;return n},rTE=function(v,E){var n=v.pendingTagAndType;
for(v.pendingTagAndType=-1;v.pos+1<=v.arrayView.totalLength;){n<0&&(n=j7(v));var f=n>>3,x=n&7;if(f===E)return!0;if(f>E){v.pendingTagAndType=n;break}n=-1;switch(x){case 0:j7(v);break;case 1:v.pos+=8;break;case 2:f=j7(v);v.pos+=f;break;case 5:v.pos+=4}}return!1};var aeN=function(){this.pos=0;this.submessagePosStack=[];this.buf=bry(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},WR=function(v,E){E=v.pos+E;
if(!(v.buf.length>=E)){for(var n=v.buf.length*2;n<E;)n*=2;v.buf=bry(n,v.buf.subarray(0,v.pos));v.view=new DataView(v.buf.buffer,v.buf.byteOffset,v.buf.byteLength)}},ks=function(v,E){if(E>268435455){WR(v,4);
for(var n=E&1073741823,f=0;f<4;f++)v.view.setUint8(v.pos,n&127|128),n>>=7,v.pos+=1;E=Math.floor(E/268435456)}for(WR(v,4);E>127;)v.view.setUint8(v.pos,E&127|128),E>>=7,v.pos+=1;v.view.setUint8(v.pos,E);v.pos+=1};for(var ZrX={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,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},P3A={},XY1=_.p(Object.entries(ZrX)),eeF=XY1.next();!eeF.done;eeF=XY1.next()){var F04=_.p(eeF.value),mvP=F04.next().value,wYU=F04.next().value,bio=mvP,l8l=wYU;l8l&&(P3A[l8l]=bio)};var Mu$=function(v,E){v=v===void 0?{}:v;switch(E.type){case "ENTITY_LOADED":return E.payload.reduce(function(f,x){var y,Q=(y=x.options)==null?void 0:y.persistenceOption;if(Q&&Q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!x.entityKey)return _.mb(Error("zf")),f;if(x.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!x.payload)return x=new _.yc("REPLACE entity mutation is missing a payload",{entityKey:x.entityKey}),_.mb(x),f;var e=(0,_.sh.getAnyKey)(x.payload);
return U7X(f,e,x.entityKey,x.payload[e])}if(x.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{x=x.entityKey;try{var F=_.Of(x).entityType;e=U7X(f,F,x);break a}catch(r){if(r instanceof Error){x=new _.yc("Failed to deserialize entity key",{entityKey:x,originalMessage:r.message});_.mb(x);e=f;break a}throw r;}e=void 0}return e}if(x.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!x.payload)return x=new _.yc("UPDATE entity mutation is missing a payload",{entityKey:x.entityKey}),_.mb(x),f;e=(0,_.sh.getAnyKey)(x.payload);
var b,l;return qG9(f,e,x.entityKey,x.payload[e],(b=x.fieldMask)==null?void 0:(l=b.mergeOptions)==null?void 0:l.repeatedFieldsMergeOption)}return f},v);
case "REPLACE_ENTITY":var n=E.payload;return U7X(v,n.entityType,n.key,n.entityPayload);case "REPLACE_ENTITIES":return Object.keys(E.payload).reduce(function(f,x){var y=E.payload[x];return Object.keys(y).reduce(function(Q,e){return U7X(Q,x,e,y[e])},f)},v);
case "UPDATE_ENTITY":return n=E.payload,qG9(v,n.entityType,n.key,n.entityPayload,n.mergeOption);default:return v}};var JTE;var sa6=!1,pQ,QC,Xs,eY,Fs,rL1=function(v){_.QK.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!sa6){var E,n=new Uint8Array(256),f=new Uint8Array(256);var x=1;for(E=0;E<256;E++)n[x]=E,f[E]=x,x^=x<<1^(x>>7&&283);pQ=new Uint8Array(256);QC=Gx(256);Xs=Gx(256);eY=Gx(256);Fs=Gx(256);for(var y=0;y<256;y++){x=y?f[255^n[y]]:0;x^=x<<1^x<<2^x<<3^x<<4;x=x&255^x>>>8^99;pQ[y]=x;E=x<<1^(x>>7&&283);var Q=E^x;QC[y]=E<<24|x<<16|x<<8|Q;Xs[y]=Q<<24|QC[y]>>>8;eY[y]=x<<24|Xs[y]>>>
8;Fs[y]=x<<24|eY[y]>>>8}sa6=!0}x=Gx(44);for(n=0;n<4;n++)x[n]=v[4*n]<<24|v[4*n+1]<<16|v[4*n+2]<<8|v[4*n+3];for(f=1;n<44;n++)v=x[n-1],n%4||(v=(pQ[v>>16&255]^f)<<24|pQ[v>>8&255]<<16|pQ[v&255]<<8|pQ[v>>>24],f=f<<1^(f>>7&&283)),x[n]=x[n-4]^v;this.key=x};
_.S(rL1,_.QK);
rL1.prototype.encrypt=function(v){var E=v.length;v=new Uint8Array(v.buffer.slice(v.byteOffset,v.byteOffset+E));for(var n=this.cipherBlock,f=0;f<E&&this.blockOffset<16;)v[f++]^=n[this.blockOffset++];for(var x=E-(E-f)%16;f<x;)PdU(this),v[f++]^=n[0],v[f++]^=n[1],v[f++]^=n[2],v[f++]^=n[3],v[f++]^=n[4],v[f++]^=n[5],v[f++]^=n[6],v[f++]^=n[7],v[f++]^=n[8],v[f++]^=n[9],v[f++]^=n[10],v[f++]^=n[11],v[f++]^=n[12],v[f++]^=n[13],v[f++]^=n[14],v[f++]^=n[15];if(f<E)for(PdU(this),this.blockOffset=0;f<E;)v[f++]^=
n[this.blockOffset++];return v};
var a8w=function(v,E){for(var n=0;n<4;n++)v.counter[n]=E[n*4]<<24|E[n*4+1]<<16|E[n*4+2]<<8|E[n*4+3];v.blockOffset=16},PdU=function(v){for(var E=v.key,n=v.counter[0]^E[0],f=v.counter[1]^E[1],x=v.counter[2]^E[2],y=v.counter[3]^E[3],Q=3;Q>=0&&!(v.counter[Q]=-~v.counter[Q]);Q--);
for(var e,F,b=4;b<40;)Q=QC[n>>>24]^Xs[f>>16&255]^eY[x>>8&255]^Fs[y&255]^E[b++],e=QC[f>>>24]^Xs[x>>16&255]^eY[y>>8&255]^Fs[n&255]^E[b++],F=QC[x>>>24]^Xs[y>>16&255]^eY[n>>8&255]^Fs[f&255]^E[b++],y=QC[y>>>24]^Xs[n>>16&255]^eY[f>>8&255]^Fs[x&255]^E[b++],n=Q,f=e,x=F;v=v.cipherBlock;Q=E[40];v[0]=pQ[n>>>24]^Q>>>24;v[1]=pQ[f>>16&255]^Q>>16&255;v[2]=pQ[x>>8&255]^Q>>8&255;v[3]=pQ[y&255]^Q&255;Q=E[41];v[4]=pQ[f>>>24]^Q>>>24;v[5]=pQ[x>>16&255]^Q>>16&255;v[6]=pQ[y>>8&255]^Q>>8&255;v[7]=pQ[n&255]^Q&255;Q=E[42];
v[8]=pQ[x>>>24]^Q>>>24;v[9]=pQ[y>>16&255]^Q>>16&255;v[10]=pQ[n>>8&255]^Q>>8&255;v[11]=pQ[f&255]^Q&255;Q=E[43];v[12]=pQ[y>>>24]^Q>>>24;v[13]=pQ[n>>16&255]^Q>>16&255;v[14]=pQ[f>>8&255]^Q>>8&255;v[15]=pQ[x&255]^Q&255};var ZiX=!1;(function(){var v=function(f){return new Uint8Array(f)},E=function(f){for(var x=new Uint8Array(f.length),y=0;y<f.length;y++)x[y]=f[y];
return x},n=new Uint8Array([1]);
return n.length===1&&n[0]===1?v:E})();
var mp;var CdP=function(v){this.JSC$10467_aesKey=v};
CdP.prototype.encrypt=function(v,E){var n=this,f,x;return _.X(function(y){if(y.nextAddress==1){a:{if(!ZiX&&!hO){if(mp){var Q=mp;break a}mp=(Q=window.crypto)==null?void 0:Q.subtle;var e,F,b;if(((e=mp)==null?0:e.importKey)&&((F=mp)==null?0:F.sign)&&((b=mp)==null?0:b.encrypt)){Q=mp;break a}mp=void 0}Q=void 0}f=Q;if(!f)return y.return(MLS(n,v,E));_.vW(y,3);return _.m(y,S$1(n,v,E,f),5)}if(y.nextAddress!=3)return y.return(y.yieldResult);x=_.cW(y);_.li(x);ZiX=!0;return y.return(MLS(n,v,E))})};
var S$1=function(v,E,n,f){var x,y;return _.X(function(Q){switch(Q.nextAddress){case 1:if(v.cryptoKey){Q.jumpTo(2);break}return _.m(Q,f.importKey("raw",v.JSC$10467_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:v.cryptoKey=Q.yieldResult;case 2:return x={name:"AES-CTR",counter:n,length:128},_.m(Q,f.encrypt(x,v.cryptoKey,E),4);case 4:return y=Q.yieldResult,Q.return(new Uint8Array(y))}})},MLS=function(v,E,n){v.encryptorPolyfill||(v.encryptorPolyfill=new rL1(v.JSC$10467_aesKey));
a8w(v.encryptorPolyfill,n);return v.encryptorPolyfill.encrypt(E)},Uvw=function(v){this.JSC$10471_aesKey=v};
Uvw.prototype.encrypt=function(v,E){this.encryptor||(this.encryptor=new rL1(this.JSC$10471_aesKey));a8w(this.encryptor,E);return this.encryptor.encrypt(v)};var q$w={},IeQ=HA("yt-idb-pref-storage",{objectStores:(q$w.prefs={addedAtVersion:1},q$w),shared:!1,upgrade:function(v,E){E(1)&&CZ(Z$(v,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.wr=function(v){this.token=v};
_.wr.getInstance=function(){return _.X(function(v){return v.return(new Promise(function(E){_.Du().then(function(n){n?(_.wr.instance||(_.wr.instance=new _.wr(n)),E(_.wr.instance)):E(void 0)})}))})};
_.wr.prototype.get=function(v){var E=this,n,f,x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,YGX(E.token),2);if(y.nextAddress!=3)return n=y.yieldResult,_.m(y,n.get("prefs",v),3);f=y.yieldResult;if(!f)return y.return();x=(0,_.gd)();return f.expirationTimestampMs<=x?y.return():y.return(f.value)})};
_.wr.prototype.set=function(v,E,n){n=n===void 0?31536E3:n;var f=this,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return x=(0,_.gd)(),y={key:v,value:E,expirationTimestampMs:x+n*1E3},_.m(e,YGX(f.token),2);Q=e.yieldResult;return _.m(e,Q.put("prefs",y),0)})};
_.wr.prototype.remove=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,YGX(E.token),2);n=f.yieldResult;return _.m(f,n.delete("prefs",v),0)})};var bH={},JL1=(bH.INVALID_ENCODER_VERSION="Invalid encoder version",bH.KEY_CREATION_FAILED="Failed to create encoder key",bH.UNKNOWN_DECODE_ERROR="Failed to decode PES data",bH.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",bH.WRONG_DATA_TYPE="Encoder cannot process the data type",bH),Tx=function(v,E){E=E===void 0?{}:E;_.yc.call(this,JL1[v],Object.assign({},{name:"PESEncoderError",type:v},E));this.type=v;this.level="WARNING";Object.setPrototypeOf(this,Tx.prototype)};
_.S(Tx,_.yc);var K01=function(){},dvi=function(v,E,n){try{return v.encodeImpl(E,n)}catch(f){D7F(f,ATI)}},I8P=function(v,E,n){var f;
return _.X(function(x){if(x.nextAddress==1)return _.vW(x,2),_.m(x,v.decodeAsyncImpl(E,n),4);if(x.nextAddress!=2)return x.return(x.yieldResult);f=_.cW(x);D7F(f,Vus);_.yQ(x)})};
K01.prototype.decodeAsyncImpl=function(v,E){return Promise.resolve(this.decodeImpl(v,E))};var lH=function(v,E){this.aesEncryptor=v;this.aesEncryptorAsync=E};
_.S(lH,K01);lH.prototype.encodeImpl=function(v,E){E=HrE(E);v=(new TextEncoder).encode(JSON.stringify(v));return this.aesEncryptor.encrypt(v,E)};
lH.prototype.decodeImpl=function(v,E){if(!(v instanceof Uint8Array))throw hMF(1);var n=new TextDecoder;E=HrE(E);v=this.aesEncryptor.encrypt(v,E);return JSON.parse(n.decode(v))};
lH.prototype.decodeAsyncImpl=function(v,E){var n=this,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){if(!(v instanceof Uint8Array))throw hMF(1);f=new TextDecoder;x=HrE(E);return _.m(Q,n.aesEncryptorAsync.encrypt(v,x),2)}y=Q.yieldResult;return Q.return(JSON.parse(f.decode(y)))})};var gqI={accountLinkStatusEntity:F2U,booleanEntity:kuX,buttonEntity:OQF,captionTrack:ulF,channelHandle:dm1,chipEntity:Jh1,commerceAcquisitionClientPayloadEntity:FLo,commerceCartListEntity:m2i,contextNoteFeedEntityPayload:Hog,continuationTokenEntity:M2g,downloadQualityPickerEntity:FjP,downloadsPageRefreshTokenEntity:wNw,downloadsPageViewConfigurationEntity:hmg,downloadStatusEntity:m_6,dismissState:Kp6,sfvAudioItemCurrentlyPlayingEntity:r8l,emojiFountainDataEntity:Nr1,emojiCustomizationSetEntity:go1,
fakeChannel:LPU,fakePlaylist:GuU,fakePlaylistEntryCollection:Tk1,fakeVideo:zuX,fakeVideoDescription:Rul,featuredProductsEntity:RmP,flowStateEntity:pli,iconBadgeEntity:ws6,interstitialInteractionStateEntity:Y6w,likeButtonAnimationEntity:ASX,liveChatPollStateEntity:uSl,liveViewerLeaderboardChatEntryPointStateEntity:vOw,liveViewerLeaderboardPointsEntity:EO1,liveReactionsDataEntity:usg,logoEntity:K2o,macroMarkerEntity:V2X,mainDownloadsLibraryEntity:bzl,mainDownloadsListEntity:lX1,mainPlaylistDownloadStateEntity:rS1,
mainPlaylistEntity:SMg,mainPlaylistVideoEntity:U_X,mainVideoDownloadStateEntity:PF1,mainVideoEntity:d_4,markersEngagementPanelSyncEntity:D_1,markersVisibilityOverrideEntity:Hz6,musicAlbumReleaseDetail:pX1,musicAlbumReleaseDownloadMetadataEntity:oqz,musicAlbumRelease:yTw,musicAlbumReleaseUserDetail:Q41,musicArtistDetail:eM1,musicArtist:XX1,musicArtistUserDetail:F4S,musicDownloadsLibraryEntity:feS,musicLibraryEdit:m7F,musicLibraryStatusEntity:wX4,musicPlaylist:br4,musicPlaylistDownloadMetadataEntity:x7l,
musicShare:s4l,musicTrackDetail:P3z,musicTrackDownloadMetadataEntity:cTw,musicTrack:rTP,musicTrackUserDetail:ae1,offlineOrchestrationActionWrapperEntity:j4U,offlineVideoPolicy:OrX,offlineVideoStreams:kQ1,offlineabilityEntity:aXF,orchestrationWebSamplingEntity:Zzi,pageHeaderEntity:Yl1,pdpStateEntity:btg,pinnedProductEntity:t21,playbackData:W4o,playerStateEntity:ge1,quantityIncrementerEntity:lQ1,refresh:$7i,saveToPlaylistListEntity:uf4,settingEntity:Xg1,stringEntity:WPF,suggestedFeedbackChipStateEntity:Nl1,
transfer:L4U,trendingOfferEntity:Blz,videoDownloadContextEntity:GQS,videoOverviewAsyncDataEntity:jDw,videoPlaybackPositionEntity:$sF,votingEntity:AhP,ytMainChannelEntity:IXz,youchatPendingResponseEntity:u6g,ytMainDownloadedVideoEntity:CFU,ytMainVideoEntity:YMX};var Y$F,ALF,vy,L4I,GQs,Hi1,Nz1,gU1,Dv6;Y$F=function(v,E){this.JSC$10490_wrapped=v;this.JSC$10490_encoderRegistry=E;this.changedKeys={}};
ALF=function(v,E){a:{v=heF(v.JSC$10490_encoderRegistry,E.version);try{var n=v.decodeImpl(E.data,E.key);break a}catch(f){D7F(f,Vus)}n=void 0}return n};
_.VL4=function(v,E,n){return v.JSC$10490_wrapped.objectStore("EntityStore").get(E).then(function(f){if(f){if(n&&f.entityType!==n)throw Error("Af");return ALF(v,f)}})};
vy=function(v,E,n){return n?(n=n.map(function(f){return _.VL4(v,f,E)}),CE.all(n)):v.JSC$10490_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(E)).then(function(f){return f.map(function(x){return ALF(v,x)})})};
_.$7F=function(v,E,n){var f=C3L(E),x=heF(v.JSC$10490_encoderRegistry,1),y=Object.assign({},E);return v.JSC$10490_wrapped.objectStore("EntityStore").get(f).then(function(Q){if(Q){if(Q.entityType!==n)throw Error("Af");y.entityMetadata||(Q=ALF(v,Q),y.entityMetadata=Q.entityMetadata)}}).then(function(){var Q={key:f,
entityType:n,data:dvi(x,y,f),version:1};return CE.all([v.JSC$10490_wrapped.objectStore("EntityStore").put(Q),Dv6(v,y,n)])}).then(function(){Hi1(v,f,n);
return f})};
L4I=function(v,E){var n=_.Of(E).entityType;return CE.all([v.JSC$10490_wrapped.objectStore("EntityStore").delete(E),gU1(v,E)]).then(function(){Hi1(v,E,n)})};
GQs=function(v,E,n,f){var x=heF(v.JSC$10490_encoderRegistry,1);return _.VL4(v,E,f).then(function(y){if(y){y=Q4L(y,n);var Q={key:E,entityType:f,data:dvi(x,y,E),version:1};return CE.all([v.JSC$10490_wrapped.objectStore("EntityStore").put(Q),Dv6(v,y,f)])}}).then(function(){Hi1(v,E,f);
return E})};
Hi1=function(v,E,n){var f=v.changedKeys[n];f||(f=new Set,v.changedKeys[n]=f);f.add(E)};
Nz1=function(v,E,n){var f=C3L(E);n=NgQ(n);if(!n)return CE.resolve([]);n=new n(E);v=v.JSC$10490_wrapped.objectStore("EntityAssociationStore");E=[];n=_.p(n.getAssociations());for(var x=n.next();!x.done;x=n.next())E.push(v.put({parentEntityKey:f,childEntityKey:x.value}));return CE.all(E).then(function(y){return y.map(function(Q){return Q[1]})})};
gU1=function(v,E){return v.JSC$10490_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(E))};
Dv6=function(v,E,n){var f=C3L(E);return gU1(v,f).then(function(){return Nz1(v,E,n)})};var uQ1=function(){};
_.S(uQ1,K01);uQ1.prototype.encodeImpl=function(v){return v};
uQ1.prototype.decodeImpl=function(v){if(v instanceof Uint8Array)throw hMF(0);return v};var OrE=function(){this.cacheMap={};this.cacheMap[0]=new uQ1;if(!_.Z("aes_pes_encoder_killswitch")){var v=this.cacheMap;try{var E=_.xm();var n=HrE(E);var f=new lH(new Uvw(n),new CdP(n))}catch(x){throw v=x instanceof Error?new Tx("KEY_CREATION_FAILED",{originalMessage:x.message}):new Tx("KEY_CREATION_FAILED"),_.mb(v),v;}v[1]=f}},heF=function(v,E){E=E===void 0?0:E;
v=v.cacheMap[E];if(!v)throw E=new Tx("INVALID_ENCODER_VERSION",{encoderVersion:E}),_.mb(E),E;return v};var RQ=function(v,E){_.QK.call(this);this.token=v;this.JSC$10504_encoderRegistry=E;this.observers=[];v=new _.n1.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.xm());v.onmessage=this.handleMessage.bind(this);this.channel=v};
_.S(RQ,_.QK);_.BR=function(v,E,n){var f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return _.m(e,d7E(v.token),2);if(e.nextAddress!=3)return f=e.yieldResult,_.m(e,_.dd(f,["EntityStore","EntityAssociationStore"],E,function(F){x=new Y$F(F,v.JSC$10504_encoderRegistry);return n(x)}),3);
y=e.yieldResult;x&&(Q=x.changedKeys,Object.keys(Q).length>0&&(v.channel.postMessage(Q),jaz(v,Q)));return e.return(y)})};
RQ.prototype.observe=function(v){var E=this;this.observers.push(v);return function(){var n=E.observers.indexOf(v);n>=0&&E.observers.splice(n,1)}};
var U5I=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,_.BR(v,{mode:"readonly",enableRetries:!0},function(f){return f.JSC$10490_wrapped.objectStore("EntityStore").getAll()}),2);
E=n.yieldResult;return n.return(Promise.all(E.filter(function(f){return!!f}).map(function(f){var x,y;
return _.X(function(Q){if(Q.nextAddress==1){x=f.key;y=f.entityType;var e=I8P(heF(v.JSC$10504_encoderRegistry,f.version),f.data,f.key);return _.m(Q,e,2)}return Q.return({key:x,entityType:y,data:Q.yieldResult})})})))})};
RQ.prototype.handleMessage=function(v){jaz(this,v.data)};
var jaz=function(v,E){v=_.p(v.observers);for(var n=v.next();!n.done;n=v.next())n=n.value,n(E)};
RQ.prototype.disposeInternal=function(){this.channel.close()};
var ul$;var sl,kRg,aOA,Fw9;sl={};_.OiX=(sl.mainVideoEntity="mainVideoEntityActionMetadata",sl.mainPlaylistEntity="mainPlaylistEntityActionMetadata",sl.musicTrack="musicTrackEntityActionMetadata",sl.musicPlaylist="musicPlaylistEntityActionMetadata",sl);kRg=new _.$Y("DOWNLOADS_ENTITY_TYPE_MAP");aOA=_.$s("","downloadsPageViewConfigurationEntity");Fw9=_.$s("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.MOF=_.$s("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.$s("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.$s("SMART_DOWNLOADS_ENABLED","settingEntity");_.$s("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var tuA=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var xhs=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var XDF={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var rr,pg$,jUo,J5s;rr=window;_.Py=rr.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.PHE=rr.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Ub;pg$=rr.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||wN;jUo=rr.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||uyi;_.W0z=rr.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.oiX;J5s=rr.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||cx4;MD({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 CHN=Q6X(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(v){return v}}}),Dt$=Q6X(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(v){return v}}}),msI=new Map;var Sly=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],rhy;var $vz=function(v){return _.un({type:"SET_EPHEMERAL_ACTION",payload:v})};var L06={ephemeralAction:null};var GRF={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var GBs={sharedUi:function(v,E){v=v===void 0?GRF:v;switch(E.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},v,{animatedThumbnailEnabled:E.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},v,{inlinePreviewEnabled:E.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:E.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},v,{currentPageSubType:E.payload});default:return v}},
a11y:zq({ephemeralAction:function(v,E){v=v===void 0?L06.ephemeralAction:v;switch(E.type){case "SET_EPHEMERAL_ACTION":return E.payload;default:return v}}})};var usX=zq({isLeaderTab:function(v,E){v=v===void 0?!0:v;switch(E.type){case "SET_IS_LEADER_TAB":var n,f;return(f=E==null?void 0:(n=E.payload)==null?void 0:n.isLeaderTab)!=null?f:v;default:return v}}});var Tz1=function(v){return _.un({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:v}})};var LpE=zq({isDesktopSmallWidth:function(v,E){switch(E.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return E.payload.isDesktopSmallWidth;default:return v===void 0?!1:v}},
isShortsActive:function(v,E){switch(E.type){case "SET_IS_SHORTS_ACTIVE":return E.payload.isShortsActive;default:return v===void 0?!1:v}},
isWatchWhileMode:function(v,E){switch(E.type){case "SET_IS_WATCH_WHILE_MODE":return E.payload.isWatchWhileMode;default:return v===void 0?!1:v}},
playerState:function(v,E){switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return v===void 0?-1:v}},
isFullscreen:function(v,E){switch(E.type){case "SET_IS_FULLSCREEN":return E.payload.isFullscreen;default:return v===void 0?!1:v}},
isSmallScreenSqueezeback:function(v,E){switch(E.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return E.payload.isSmallScreenSqueezeback;default:return v===void 0?!1:v}},
isShortsPipActive:function(v,E){switch(E.type){case "SET_IS_SHORTS_PIP_ACTIVE":return E.payload.isShortsPipActive;default:return v===void 0?!1:v}},
isPlaybackStarted:function(v,E){switch(E.type){case "SET_IS_PLAYBACK_STARTED":return E.payload.isPlaybackStarted;default:return v===void 0?!1:v}}});var IDN={playlistId:"",inviteLinkURL:""};var iiX={};var NrN=zq({continuationCommand:function(v,E){v=v===void 0?iiX:v;switch(E.type){case "SET_CONTINUATION_COMMAND":return E.payload.continuationCommand;default:return v}}});var iQX=function(){return function(v){return function(E){var n=v(E);_.OL(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[E],!0);return n}}};var zeX,fpG;zeX=new _.Wy;_.Nq=new _.$Y("WATCH_PLAYER_PROMISE_TOKEN");_.Re1=new _.Wy;_.tLX=new _.$Y("SHORTS_PLAYER_PROMISE_TOKEN");fpG=new _.$Y("");var z8X=function(){return function(v){return function(E){E.type==="ENTITY_LOADED"&&_.P().resolve(_.Nq).then(function(n){var f;(f=n.dispatchReduxAction)==null||f.call(n,E)});
return v(E)}}};var h8y={currentFormId:"",commandsMap:{}};var Bz6={};var j6E=zq({additionalContext:function(v,E){switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var n;return(n=E.payload)!=null?n:"";default:return v===void 0?"":v}},
impersonatedChannelUrl:function(v,E){switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var n;return(n=E.payload)!=null?n:"";default:return v===void 0?"":v}},
selectedVideoIds:function(v,E){v=v===void 0?Bz6:v;switch(E.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var n={};return Object.assign({},v,(n[E.payload]=!0,n));case "VIDEO_UNSELECTED":return E=E.payload,v=Object.assign({},v),delete v[E],v;default:return v}}});var OQ$=zq({parentClickTrackingParams:function(v,E){switch(E.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return E.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return v===void 0?"":v}}});var vxX=function(v){return _.un({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:v})};var Ex6={};var kBN=zq({stepStates:function(v,E){v=v===void 0?Ex6:v;switch(E.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var n=v,f=E.payload,x,y,Q;v={};E={selectionStates:Object.assign({},(Q=(x=n[f.stepId])==null?void 0:x.selectionStates)!=null?Q:{},(v[f.token]={isSelected:f.isSelected},v)),userQuery:(y=n[f.stepId])==null?void 0:y.userQuery};x={};return Object.assign({},n,(x[f.stepId]=E,x));case "TALK_TO_RECS_UPDATE_USER_QUERY":return x=v,y=E.payload,Q={selectionStates:Object.assign({},
(f=(n=x[y.stepId])==null?void 0:n.selectionStates)!=null?f:{}),userQuery:{userQuery:y.userQuery,token:y.userQueryToken}},n={},Object.assign({},x,(n[y.stepId]=Q,n));default:return v}}});var nxi,ox1;nxi=function(v){return _.un({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:v})};
ox1=function(v){return _.un({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:v})};
_.MI=function(v){return _.un({type:"SET_CURRENT_PAGE_TYPE",payload:v})};
_.fKi=function(v){return _.un({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:v})};var VYE={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"};_.x8P=function(v){return _.un({type:"SET_PLAYER_STATE",payload:{playerState:v}})};var cwU=[],ywg={width:0,height:0};var WpE=zq({isTheaterMode:function(v,E){v=v===void 0?_.Sp("START_IN_THEATER_MODE"):v;switch(E.type){case "SET_IS_THEATER_MODE":return E.payload.isTheaterMode;default:return v}},
isWatchActive:function(v,E){switch(E.type){case "SET_IS_WATCH_ACTIVE":return E.payload.isWatchActive;default:return v===void 0?!1:v}},
isLearningJourneyActive:function(v,E){switch(E.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return E.payload.isLearningJourneyActive;default:return v===void 0?!1:v}},
isWatchFullscreen:function(v,E){switch(E.type){case "SET_IS_WATCH_FULLSCREEN":return E.payload.isWatchFullscreen;default:return v===void 0?!1:v}},
isWatchNarrowWidth:function(v,E){switch(E.type){case "SET_IS_WATCH_NARROW_WIDTH":return E.payload.isWatchNarrowWidth;default:return v===void 0?!1:v}},
isWatchRetroMode:function(v,E){switch(E.type){case "SET_IS_WATCH_RETRO_MODE":return E.payload.isWatchRetroMode;default:return v===void 0?!1:v}},
isLiveChatCollapsed:function(v,E){switch(E.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return E.payload.isLiveChatCollapsed;default:return v===void 0?!1:v}},
openEngagementPanels:function(v,E){v=v===void 0?cwU:v;var n=[].concat(_.s8(v));switch(E.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return n.push(E.payload.panelToAdd),n;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return n.splice(n.indexOf(E.payload.panelToRemove),1),n;default:return v}},
playerState:function(v,E){switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return v===void 0?-1:v}},
watchScrollTop:function(v,E){switch(E.type){case "SET_WATCH_SCROLL_TOP":return E.payload.watchScrollTop;default:return v===void 0?0:v}},
watchWindowSize:function(v,E){v=v===void 0?ywg:v;switch(E.type){case "SET_WATCH_WINDOW_SIZE":return E.payload.watchWindowSize;default:return v}}});var pBX={feedbackTokens:[]};var $s$=zq({surveyFeedbackData:function(v,E){v=v===void 0?pBX:v;switch(E.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return E.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},v,E.payload);default:return v}}});var HQQ={};var tYG=void 0;_.Z("web_enable_redux_store_on_demand")||(tYG=R8$());var Qh1=function(v,E,n){var f=this;this.listId=v;this.JSC$10638_updateCallback=E;this.isOfflineVideoCallback=n;_.dG().subscribe(function(){f.handleUpdate()})};
Qh1.prototype.getPlaylistData=function(){var v=_.dG().getState().entities;if(this.listId&&this.listId!=="PPSV"){var E=B7s(v,this.listId,!0),n=_.$s(this.listId,"mainPlaylistEntity"),f,x;v=v==null?void 0:(f=v.mainPlaylistEntity)==null?void 0:(x=f[n])==null?void 0:x.title;return BrN(E,v,this.listId)}E=_.c8X(J$9(v));v=_.c8X(_.pC(v));return BrN(E.concat(v))};
Qh1.prototype.getPlaylistId=function(){return this.listId};
Qh1.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10638_updateCallback(this.listId,this.getPlaylistData(),{})};var Pg=function(v,E,n,f){f=f===void 0?[]:f;this.JSC$10641_playlistNetworkManager=v;this.listId=E;this.JSC$10641_updateCallback=n;this.videoIds=f;this.pendingUpdates=[];this.currentIndex=0};
Pg.prototype.JSC$10641_setCurrentIndex=function(v){this.currentIndex=v};
Pg.prototype.setListId=function(v){this.listId=v};
var XB1=function(v,E){v.currentCreateRequest&&v.currentCreateRequest.cancel(E);v.currentUpdateRequest&&v.currentUpdateRequest.cancel(E);v.currentRefreshRequest&&v.currentRefreshRequest.cancel(E)};
Pg.prototype.delete=function(){XB1(this,"PROXY DELETED")};
Pg.prototype.addVideos=function(v,E,n){var f=this;n!==void 0?this.videoIds.splice.apply(this.videoIds,[n,0].concat(_.s8(v))):this.videoIds.push.apply(this.videoIds,_.s8(v));this.listId||this.currentCreateRequest?(v.forEach(function(x,y){x={addedVideoId:x,action:"ACTION_ADD_VIDEO"};n&&(x.addedVideoPosition=n+y);f.pendingUpdates.push(x)}),a6(this)):eO1(this,E.onCreateListCommand)};
var Fhi=function(v,E,n,f,x){M9s(v.videoIds,E,n);E>v.currentIndex&&n<=v.currentIndex?v.JSC$10641_setCurrentIndex(v.currentIndex+1):E===v.currentIndex?v.JSC$10641_setCurrentIndex(n):E<v.currentIndex&&n>=v.currentIndex&&v.JSC$10641_setCurrentIndex(v.currentIndex-1);v.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:f,movedSetVideoIdPredecessor:x});a6(v)},eO1=function(v,E){XB1(v,"OBSOLETE");
v.currentCreateRequest=m8l(v.JSC$10641_playlistNetworkManager,E,v.videoIds);_.so(v.currentCreateRequest,function(){v.currentCreateRequest=void 0}).then(function(n){v.setListId(n.playlistId);
v.pendingUpdates.length>0?a6(v):wBX(v)})},a6=function(v){if(v.pendingUpdates.length!==0&&(v.currentRefreshRequest&&v.currentRefreshRequest.cancel("OBSOLETE"),!v.currentUpdateRequest&&!v.currentCreateRequest)){var E=v.pendingUpdates.splice(0,v.pendingUpdates.length);
v.currentUpdateRequest=v.JSC$10641_playlistNetworkManager.updatePlaylist(v.listId,E);_.so(v.currentUpdateRequest,function(){v.currentUpdateRequest=void 0}).then(function(){v.pendingUpdates.length>0?a6(v):wBX(v)}).thenCatch(function(){v.pendingUpdates.unshift.apply(v.pendingUpdates,_.s8(E))})}},wBX=function(v){v.currentRefreshRequest=_.bwF(v.JSC$10641_playlistNetworkManager,v.listId,v.currentIndex,v.videoIds[v.currentIndex]);
_.so(v.currentRefreshRequest,function(){v.currentRefreshRequest=void 0}).then(function(E){v.JSC$10641_updateCallback(E.playlistId,E.playlistPanelRenderer,E.autoplayRenderer)})};
Pg.prototype.size=function(){return this.videoIds.length};var lK1=function(v,E,n,f){f=f===void 0?[]:f;Pg.call(this,v,E,n,f);this.JSC$10641_playlistNetworkManager=v;this.listId=E;this.JSC$10641_updateCallback=n;this.videoIds=f};
_.S(lK1,Pg);_.ZD=function(v,E,n,f,x,y,Q){x=x===void 0?[]:x;Q=Q===void 0?tP:Q;Pg.call(this,v,E,n,x);this.JSC$10641_playlistNetworkManager=v;this.listId=E;this.JSC$10641_updateCallback=n;this.onAuthChange=f;this.videoIds=x;this.storage=y;this.cookieReader=Q;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.H8(_.wh,this.checkLoggedInStatusChange.bind(this),1E3)};
_.S(_.ZD,Pg);_.c=_.ZD.prototype;_.c.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.H8(_.wh,this.checkLoggedInStatusChange.bind(this),1E3)};
_.c.JSC$10641_setCurrentIndex=function(v){Pg.prototype.JSC$10641_setCurrentIndex.call(this,v);this.store()};
_.c.delete=function(){_.wh.cancelJob(this.queueSapisIdJob);Pg.prototype.delete.call(this)};
_.c.setListId=function(v){Pg.prototype.setListId.call(this,v);this.store()};
_.c.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var shU=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],rwF=["playerResponse","videoDetails"],Pv4=["response","currentVideoEndpoint","watchEndpoint","videoId"],aKo=["response","currentVideoEndpoint","watchEndpoint","playlistId"],ZwS=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],CvX=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Mz6=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
S5w=["response","contents","twoColumnWatchNextResults"];var CQ={},fQN=(CQ.WEB_UNPLUGGED="^unplugged/",CQ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",CQ.WEB_UNPLUGGED_OPS="^unplugged/",CQ.WEB_UNPLUGGED_PUBLIC="^unplugged/",CQ.WEB_CREATOR="^creator/",CQ.WEB_KIDS="^kids/",CQ.WEB_EXPERIMENTS="^experiments/",CQ.WEB_MUSIC="^music/",CQ.WEB_REMIX="^music/",CQ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",CQ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",CQ);var VGN,m8l;VGN=function(v,E){this.networkManager=v;this.innertubeTransportService=E};
m8l=function(v,E,n){if(!_.C(E,_.Kg))return _.nR(Error("Ef"));_.C(E,_.Kg).videoIds=n;n={create_playlist_title:_.tQ("QUEUE",void 0,"Queue")};return nI9(_.Mq(v.innertubeTransportService,E,n),vIs)};
_.bwF=function(v,E,n,f){E={videoId:f,playlistId:E,playlistIndex:n};n=_.Yt(qqU);return nI9(_.Ms(v.innertubeTransportService,E,n),oIE)};
VGN.prototype.updatePlaylist=function(v,E){return nI9(_.Mq(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:v,actions:E}}),EIQ)};var U8U=function(v){this.storage=v},q5z;
U8U.prototype.store=function(v,E){E=E===void 0?0:E;if(this.storage&&v.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",v),this.storage.set("TLPQindex",String(E)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(n){}};
U8U.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
U8U.prototype.getPlaylistId=function(){if(!this.storage)return null;var v=null;try{v=this.storage.get("TLPQplaylist")}catch(E){}return v};var psL=["navigationEndpoint","watchEndpoint","videoId"],y1N=["nextButtonVideo","watchEndpoint","videoId"];_.n2=new _.$Y("NETWORK_TOKEN");_.Y_=new _.$Y("PAGE_TOKEN");_.SY=new _.$Y("PLAYLIST_TOKEN");var Jwi;Jwi=new _.$Y("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.ok=new _.$Y("INNERTUBE_TRANSPORT_TOKEN");var Khw,Ul,IKw,Y5U,Awo,Vzg;Khw=new Set(["ci","cr","carml"]);Ul=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10688_parkedJobs=new Map;this.parkedProcessors=new Map};
_.qs=function(){Ul.instance||(Ul.instance=new Ul);return Ul.instance};
Ul.prototype.onAny=function(v){return _.d86(this,v,2)};
Ul.prototype.parkOrScheduleJob=function(v,E,n,f,x){_.Jh(this,n)?_.Ce().addJob(v,E,f):(x&&(v=IKw(v),Y5U(this,v,E,n,x)),x=this.JSC$10688_parkedJobs.get(n),x||(this.JSC$10688_parkedJobs.set(n,[]),x=this.JSC$10688_parkedJobs.get(n)),x.push({job:v,priority:E,delay:f}))};
Ul.prototype.addListener=function(v,E,n){n&&(E=IKw(E),Y5U(this,E,0,v,n));n=this.parkedProcessors.get(v);n||(this.parkedProcessors.set(v,[]),n=this.parkedProcessors.get(v));n.push(E)};
Ul.prototype.processSignal=function(v){if(!_.Jh(this,v)){this.inProgressSignals.add(v);var E=this.JSC$10688_parkedJobs.get(v);if(E){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,_.Ce().addJob(n.job,n.priority,n.delay);this.JSC$10688_parkedJobs.delete(v)}if(E=this.parkedProcessors.get(v)){E=_.p(E);for(n=E.next();!n.done;n=E.next())n=n.value,n();this.parkedProcessors.delete(v)}this.signals.push(v);this.inProgressSignals.delete(v)}};
_.Jh=function(v,E){return Khw.has(E)||_.Sp("IS_HOMEPAGE_COLD")||_.Sp("IS_RESULTS_PAGE_COLD")||_.Sp("IS_WATCH_PAGE_COLD")?v.signals.indexOf(E)>=0:!0};
IKw=function(v){var E=!1;return function(){E||(E=!0,v())}};
Y5U=function(v,E,n,f,x){if(hOl.has(f))_.Ce().addJob(E,n,x);else{var y=v.compoundSignals.get(f);y&&_.Ce().addJob(function(){_.Jh(v,f)||(y.isTimeoutConditionSatisfied?_.Ce().addJob(E,n):y.timeoutConditionObservers.push(function(){_.Ce().addJob(E,n)}))},n,x)}};
_.d86=function(v,E,n){if(E.length>1){var f=[],x=Object.create(null);E=_.p(E);for(var y=E.next();!y.done;y=E.next())y=y.value,x[y]||(f.push(y),x[y]=!0);E=f}if(E.length===1)return E[0];y=E;f="";x=n===2?"|":"&";y.sort();y=_.p(y);for(var Q=y.next();!Q.done;Q=y.next())f+=Q.value+x;if(!v.compoundSignals.get(f)){x=0;y=[];Q=_.p(E);for(var e=Q.next();!e.done;e=Q.next())e=e.value,x++,_.Jh(v,e)||y.push(e);(n=n===2)&&x>y.length||!n&&!y.length?v.signals.push(f):Awo(v,f,n,E,y)}return f};
Awo=function(v,E,n,f,x){var y=x.length,Q=function(){n||--y===0?v.processSignal(E):Vzg(v,E)};
x=_.p(x);for(var e=x.next();!e.done;e=x.next())v.addListener(e.value,Q);v.compoundSignals.set(E,{signals:f,isOnAny:n,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Vzg(v,E)};
Vzg=function(v,E){if(!_.Jh(v,E)){var n=v.compoundSignals.get(E);if(n&&!n.isTimeoutConditionSatisfied){for(var f=!1,x=0,y=0,Q=_.p(n.signals),e=Q.next();!e.done;e=Q.next()){var F=e.value;e=!_.Jh(v,F);hOl.has(F)?f=!0:(F=v.compoundSignals.get(F))?e&&!F.isTimeoutConditionSatisfied&&(y++,n.isInitialized||F.timeoutConditionObservers.push(function(){Vzg(v,E)})):e&&x++}n.isInitialized=!0;
n.isOnAny?f&&(n.isTimeoutConditionSatisfied=!0):x===0&&y===0&&(n.isTimeoutConditionSatisfied=!0);if(n.isTimeoutConditionSatisfied)for(n=_.p(n.timeoutConditionObservers),f=n.next();!f.done;f=n.next())f=f.value,f()}}};
Ul.prototype.processSignal=Ul.prototype.processSignal;Ul.prototype.parkOrScheduleJob=Ul.prototype.parkOrScheduleJob;Ul.prototype.onAny=Ul.prototype.onAny;_.Vc("ytsignals.getInstance",_.qs);Ul.prototype.onAny=Ul.prototype.onAny;Ul.prototype.parkOrScheduleJob=Ul.prototype.parkOrScheduleJob;Ul.prototype.processSignal=Ul.prototype.processSignal;var hOl=new Set(["eop","eocs","dl","pcl"]);_.hf=new _.$Y("MINIPLAYER_SERVICE");var KQ,D8w,HwS;KQ=function(v,E,n){var f=_.qw.getInstance();if(!q5z){var x=new UAN;var y=void 0,Q=_.MX("ID_TOKEN");Q&&x.isAvailable()&&(y=new e5(x,"yt-queue"+Q));q5z=new U8U(y)}x=q5z;y=_.qs();this.JSC$10695_actionRouter=f;this.pageManager=v;this.playlistManager=E;this.JSC$10695_playlistNetworkManager=n;this.storage=x;this.signals=y;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.dr=function(){if(!D8w){var v=_.P(),E=v.resolve(_.jp(_.Y_)),n=v.resolve(_.jp(_.n2)),f=v.resolve(_.jp(_.SY));v=v.resolve(_.ok);D8w=new KQ(E,f,new VGN(n,v))}return D8w};
HwS=function(v,E,n){if(n){var f;if(((f=v.responsePlaylistData)==null?void 0:f.playlistId)!==n)return}v.responsePlaylistData&&(n=wsG(E,v.responsePlaylistData),v.responsePlaylistData=(0,_.sh.unsafeClone)(v.responsePlaylistData),lQN(v.responsePlaylistData,n));n=v.temporaryItems.findIndex(function(x){return x.videoId===E});
n>-1&&v.temporaryItems.splice(n,1);_.I6(v,_.Yo(v,v.response?v.response.autoplayRenderer:void 0))};
_.gxl=function(v,E){if(v.responsePlaylistData){var n=btX(E,v.responsePlaylistData);lQN(v.responsePlaylistData,n);if(v.queueProxy){var f=v.queueProxy;n<0||(f.videoIds.splice(n,1),n<f.currentIndex&&f.JSC$10641_setCurrentIndex(f.currentIndex-1),f.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:E}),a6(f))}}_.I6(v,_.Yo(v,v.response?v.response.autoplayRenderer:void 0))};
KQ.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.I6(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
KQ.prototype.setPlaylistData=function(v,E,n){this.temporaryItems=[];this.listId=v;this.responsePlaylistData=E;_.I6(this,_.Yo(this,n))};
var Nig=function(v){return(v==null?0:v.playlistId)?v.playlistId:"PPSV"},uK6=function(v){return v&&v.playlistId?v.playlistId==="PPSV"?!0:RAX(_.dG().getState().entities,v.playlistId):!1};
KQ.prototype.isPlayingOfflineVideo=function(){return this.response?uK6(this.response):!1};
KQ.prototype.closeMiniplayer=function(v){var E=this.queueProxy&&this.queueProxy.size()<=1,n=_.P().resolve(_.hf);if(!this.queueProxy||E)this.queueProxy&&this.clearQueue(),n.close(!0);else{n.pipController.getWindow()&&window.focus();E=this.responsePlaylistData;var f=this.temporaryItems.length+(E&&E.contents?E.contents.length:0);E=_.tQ("QUEUE_CLEARED_UNPLURALIZED")||_.Bq("QUEUE_CLEARED",f);E=_.AC(E);n=_.tQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");f=_.tQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Bq("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",f);var x=_.tQ("MINIPLAYER_CLOSE",void 0,"Close"),y=_.tQ("CANCEL",void 0,"Cancel");_.UM(this.JSC$10695_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.qD(n),dialogMessages:[_.qD(f)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.qD(x),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
E]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.qD(y)}}}}}}],v)}};
_.Yo=function(v,E){var n={},f=v.response;n.autoplayRenderer=E;if(!v.responsePlaylistData&&!v.temporaryItems.length)return!f||!f.hasRelatedVideoData&&_.Z("kevlar_prefetch_data_augments_network_data")||(n.playerData={rvs:f.relatedVideoArgs,endScreenRenderer:f.endScreenRenderer}),n;n.playerData={};if(v.index===void 0)return _.mb(Error("Gf")),n;n.panel=v.responsePlaylistData?(0,_.sh.unsafeClone)(v.responsePlaylistData):{titleText:_.qD(_.tQ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
E=n.panel;if(E.contents)for(var x=_.p(v.temporaryItems),y=x.next();!y.done;y=x.next())E.contents.push({playlistPanelVideoRenderer:y.value});v.queueProxy&&f&&f.playingVideo&&f.playingVideoId&&!m2F(f.playingVideoId,n.panel)&&(E=f.playingVideo,x=n.panel,y=v.index,x.contents&&x.contents.splice(y===void 0?0:y,0,{playlistPanelVideoRenderer:E}));f&&f.playingVideoId&&(E=v.index,x=n.panel,E=!x.contents||E>=x.contents.length?void 0:x.contents[E].playlistPanelVideoRenderer,E&&E.videoId===f.playingVideoId||(E=
wsG(f.playingVideoId,n.panel),v.index=E!==-1?E:v.index?v.index-1:0));E=FL9(v.index+1,n.panel);x=void 0;v.index>0&&(x=FL9(v.index-1,n.panel));if(x||E)n.autoplayRenderer=QDX(E,x,n.autoplayRenderer);!E&&(f==null?0:f.relatedVideoArgs)&&(n.playerData.rvs=f.relatedVideoArgs);f=f?f.playlistIndexOffset:0;v.queueProxy?PQL(n.panel,v.index,f,ebL,!0,!0,!0):PQL(n.panel,v.index,f);n.playerData.playlistPanelRenderer=n.panel;return n};
KQ.prototype.openToast=function(v){_.P().resolve(_.hf).openToast(v,_.tQ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
KQ.prototype.isMiniplayerActive=function(){return _.P().resolve(_.hf).isMiniplayerActive()};
_.I6=function(v,E){v.playlistManager.setAutoplayRenderer(E.autoplayRenderer||null);v.playlistManager.setPlaylistData(E.panel||null);E.playerData&&v.playlistManager.setPlayerPlaybackControlData(E.playerData)};var ZtI="#";var jh4={},Ow1={},kP1={},WhU={},$8X={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:(jh4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",jh4),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:(Ow1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Ow1),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:(kP1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",kP1),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:(WhU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",WhU),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 fvG=[{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:$8X},{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:$8X}}];_.kt=[[["IzUxYzV0MGszdDhjamtpbmQ=","IzdiaTdiZnk0ZmdnOXZhbHVl"],"I2J6eGQzd2ptbGl0NEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"]];_.Ob=["I3U5ZDJlNm94eHdxbmdsb2JhbENhbGxiYWNrcw==","I2F6M21scGZ0NzF6cG9uQWJub3JtYWxpdHlEZXRlY3RlZA==","I2pjZG1tNmNwdjd5MW9uQWRTa2lw","I3Q3MDFlMWlxcXVsNHJhd19wbGF5ZXJfcmVzcG9uc2U=","cyNtZG04a2xnZTM4NWFkU2xvdA=="];_.hh="I3U5ZDJlNm94eHdxbmdsb2JhbENhbGxiYWNrcw== I2F6M21scGZ0NzF6cG9uQWJub3JtYWxpdHlEZXRlY3RlZA== I2pjZG1tNmNwdjd5MW9uQWRTa2lw I3Q3MDFlMWlxcXVsNHJhd19wbGF5ZXJfcmVzcG9uc2U= I2ttczZ2ZXN6eTdqMHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== I2Rlb3VnZTZsbWE0b2FiX3NhX2Vm cyNtZG04a2xnZTM4NWFkU2xvdA==".split(" ");var TmL=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var Ah;Ah=function(v,E,n){this.nC5=v;this.isAsync=E;this.nKq=n};
_.bKI=[new Ah("b.f_",!1,0),new Ah("j.s_",!1,2),new Ah("r.s_",!1,4),new Ah("e.h_",!1,6),new Ah("i.s_",!0,8),new Ah("s.t_",!1,10),new Ah("p.h_",!1,12),new Ah("s.i_",!1,14),new Ah("f.i_",!1,16),new Ah("a.b_",!1,18),new Ah("a.o_",!1),new Ah("g.o_",!1,22),new Ah("p.i_",!1,24),new Ah("p.m_",!1),new Ah("n.k_",!0,20),new Ah("i.f_",!1),new Ah("a.s_",!0),new Ah("m.c_",!1),new Ah("n.h_",!1,26),new Ah("o.p_",!1),new Ah("m.p_",!0,28),new Ah("o.a_",!1),new Ah("d.p_",!1)].reduce(function(v,E){v[E.nC5]=E;return v},
{});var qCL=function(){};
qCL.prototype.flush=function(v,E){v=v===void 0?[]:v;E=E===void 0?!1:E;if(_.Z("enable_client_streamz_web")){v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=mao(n.value),n={serializedIncrementBatch:_.z3(n.JSC$7499_serializeBinary())},_.eQ("streamzIncremented",n,{sendIsolatedPayload:E})}};var ND;var tVy,KLI,gIX,YCQ,VVN,LLX,vMX,WLL;tVy=2;KLI=2;gIX=2;YCQ=2;VVN=2;LLX=2;vMX=2;WLL=new QcS;var GP4,Tiw,iwg;GP4=function(){this.ongoingFlowNonces=new Map};
_.Ge=function(){Tiw||(Tiw=new GP4);return Tiw};
_.$t=function(v,E,n){return{eventType:{flowEventNamespace:v,flowEventType:E},metadata:n,statusCode:void 0,csn:void 0,can:void 0}};
_.sfX=function(v,E){var n=_.Ge(),f=iwg(n,E,!0);_.LC(n,v,E,f)};
_.LC=function(v,E,n,f){v={flowNonce:f||iwg(v,n),flowType:n,flowEventType:E.eventType};E.metadata&&(v.flowMetadata=E.metadata);E.statusCode!==void 0&&(v.flowEventStatus=E.statusCode);E.csn&&(v.csn=E.csn);E.can&&(v.can=E.can);_.eQ("flowEvent",v,void 0)};
iwg=function(v,E,n){n=n===void 0?!1:n;var f=v.ongoingFlowNonces.get(E);if(!f||n)f=mu(16),v.ongoingFlowNonces.set(E,f);return f};_.zO1=new pvi;var VC=function(v,E,n,f,x,y,Q){n=n===void 0?!1:n;f=f===void 0?!1:f;y=y===void 0?_.dr():y;this.hasRun=!1;this.vbw=v;this.tKZ=E;this.sz8=n;this.fromHistory=f;this.previousVideoId=x;this.ndZ=y;this.tempData=Q;this.pqx=new _.Xv4};
_.S(VC,Ok);VC.prototype.validate=function(v){return!(!v.data.playerResponse||v.data.page!=="watch"&&v.data.page!=="shorts"||this.hasRun)};
VC.prototype.handle=function(v){var E=this,n=_.C(v.endpoint,_.dM),f=_.C(v.endpoint,_.By);if(_.Z("kevlar_continue_playback_without_player_response")&&(n==null?0:n.videoId)&&this.previousVideoId&&(n==null?void 0:n.videoId)===this.previousVideoId&&(n==null?0:n.continuePlayback)&&!this.fromHistory)this.vbw.resolve();else{var x={};n?x.watch_endpoint=n:f&&(x.watch_endpoint=f,f.endTimeSeconds&&(x.end=f.endTimeSeconds));v.data.page==="watch"?(v.data.filler||this.sz8||(_.m5("cfg"),_.qw.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(x,ROz(this,v.endpoint)),_.Z("enable_masthead_quartile_ping_fix")&&Object.assign(x,tzl(this)),n=!_.Z("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(x,n),v.data.forceExternalPlaylist&&(x.external_list=!0)):v.data.page==="shorts"&&_.qw.getInstance().triggerAction("yt-start-loading-shorts");if(n=this.tKZ()){try{n.loadVideoWithPlayerResponse(v.data.playerResponse,x),n.getPlayerPromise().then(this.vbw.resolve)}catch(y){_.mb(y),this.vbw.resolve()}this.hasRun=
!0;n.getPlayerPromise().then(function(y){y.addEventListener("onAbnormalityDetected",function(){var Q=v.data.playerResponse,e=y.getVideoData().cpn;vMX=0;_.Lhl=e;if(e=wmL(Q))E.pqx.increment("IN_PLAYER"),_.Te(5),_.Z("ab_st_vid_ks")?y.pauseVideo(!0):y.stopVideo(),Q.playabilityStatus=Object.assign({},Q.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:e}}),Q.videoDetails=void 0,_.qw.getInstance().triggerOptionalAction("yt-updated-playability-status",Q.playabilityStatus)})})}else _.li(Error("Jf"))}};
var ROz=function(v,E){var n=_.C(E,_.dM);if(E&&n&&n.playlistId&&n.videoId&&(v=v.ndZ,v.queueProxy?(v=v.queueProxy,n=v.listId===n.playlistId?v.attributionData.get(n.videoId):void 0):n=void 0,n))return{queue_info:n}},tzl=function(v){var E;
if((E=v.tempData)==null?0:E.adpings)return{adpings:v.tempData.adpings}};var DD=function(v,E,n){this.hasRun=!1;this.wqA=v;this.ySi=E;this.bUm=n};
_.S(DD,Ok);DD.prototype.validate=function(v){return!!_.sh.getValueByKeys.apply(null,[v.data].concat(_.s8(S5w)))};
DD.prototype.handle=function(v){var E=this;this.wqA.promise.then(function(){var n=v.data;var f=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(shU))),x=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(CvX))),y=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(Pv4)));var Q=(Q=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(rwF))))?{videoId:Q.videoId,thumbnail:Q.thumbnail,title:Q.title?_.qD(Q.title):void 0,shortBylineText:Q.author?_.qD(Q.author):void 0}:void 0;var e=void 0;_.Z("web_get_playlist_id_from_current_endpoint_ks")||
(e=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(aKo))));var F=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(Mz6))),b=_.sh.getValueByKeys.apply(null,[n].concat(_.s8(ZwS))),l=!!F||!!b&&!!b.results&&b.results.length>0,r=0;x&&x.currentIndex&&x.localCurrentIndex&&(r=x.currentIndex-x.localCurrentIndex);x&&x.playlistId&&(e=x.playlistId);n={rawResponse:n,autoplayRenderer:f,hasRelatedVideoData:l,playingVideo:Q,playingVideoId:y,playlistPanelRenderer:x,playlistId:e,playlistIndex:x&&x.currentIndex,relatedVideoArgs:F,
endScreenRenderer:b,playlistIndexOffset:r};a:{f=E.bUm;x=E.ySi;f.response=n;if(uK6(n))f.downloadPlaylistProxy&&f.downloadPlaylistProxy.getPlaylistId()===Nig(n)||(f.downloadPlaylistProxy=new Qh1(Nig(n),f.setPlaylistData.bind(f),f.isPlayingOfflineVideo.bind(f))),f.responsePlaylistData=f.downloadPlaylistProxy.getPlaylistData(),f.listId=Nig(n),f.index=0;else if(n.playlistPanelRenderer&&n.playlistId&&n.autoplayRenderer)n.playlistId.startsWith("TLPQ")?f.queueProxy?f.listId===n.playlistId?(f.index=n.playlistIndex,
f.responsePlaylistData=n.playlistPanelRenderer,f.queueProxy.JSC$10641_setCurrentIndex(f.index)):n.playingVideoId&&f.index!==void 0&&x.clientParams.autoSaveToQueue&&(f.index+=1,f.queueProxy.JSC$10641_setCurrentIndex(f.index),f.queueProxy.addVideos([n.playingVideoId],{},f.index)):(f.queueProxy=new _.ZD(f.JSC$10695_playlistNetworkManager,n.playlistId,f.setPlaylistData.bind(f),f.clearQueue.bind(f),_.sDG(n.playlistPanelRenderer),f.storage),f.responsePlaylistData=n.playlistPanelRenderer,f.listId=n.playlistId,
f.index=n.playlistIndex):(f.index=n.playlistIndex,f.listId!==n.playlistId&&f.clearQueue(),f.responsePlaylistData=n.playlistPanelRenderer,f.listId=n.playlistId,f.playlistProxy=new lK1(f.JSC$10695_playlistNetworkManager,n.playlistId,f.setPlaylistData.bind(f),_.sDG(n.playlistPanelRenderer)));else if(!f.queueProxy)f.responsePlaylistData=void 0;else if(n.playingVideoId&&x.clientParams.autoSaveToQueue){if(f.index===void 0){_.mb(Error("Ff"));f.clearQueue();break a}f.queueProxy.videoIds.includes(n.playingVideoId)||
(f.index+=1,f.queueProxy.JSC$10641_setCurrentIndex(f.index),f.queueProxy.addVideos([n.playingVideoId],{},f.index))}_.I6(f,_.Yo(f,f.response.autoplayRenderer))}})};var Bi1=function(v,E){E=E===void 0?_.dr():E;o6.call(this);this.za.push(new DD(this.aD,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E));this.za.push(new VC(this.aD,v,!1,!1));_.Z("web_response_commands_chunk_processor")&&this.za.push(new fQ)};
_.S(Bi1,o6);Bi1.prototype.processChunk=function(v){v&&v.data.player===void 0&&this.aD.resolve();o6.prototype.processChunk.call(this,v)};var Hg=function(v,E){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;this.kuf=E};
_.S(Hg,Ok);Hg.prototype.validate=function(v){return!(this.hasRun||!v.endpoint)};
Hg.prototype.handle=function(v){var E=_.Tl(),n,f,x=(f=_.C((n=v.endpoint)==null?void 0:n.commandMetadata,_.Dl))==null?void 0:f.rootVe;this.kuf&&x?_.Rs(E,x,this.kuf,this.createScreenConfig):G91(E,v.endpoint,this.createScreenConfig);this.hasRun=!0};var gr=function(v,E){this.hasRun=!1;this.zVG=v;this.previousVideoId=E};
_.S(gr,Ok);gr.prototype.validate=function(v){return _.Z("kevlar_continue_playback_without_player_response")&&(v=_.C(v.endpoint,_.dM),(v==null?0:v.videoId)&&this.previousVideoId&&(v==null?void 0:v.videoId)===this.previousVideoId&&(v==null?0:v.continuePlayback))?!1:this.zVG.xTu===0};
gr.prototype.handle=function(v){_.qw.getInstance().triggerAction("yt-stop-old-player",v.data,!0)};var vF4=function(v){v=v===void 0?{layer:0}:v;o6.call(this);this.za.push(new gr(this));this.za.push(new Hg(v));this.za.push(new nQ(v))};
_.S(vF4,o6);var EFS=function(){this.hasRun=this.hasRun=!1};
_.S(EFS,Ok);EFS.prototype.validate=function(v){return!this.hasRun&&!(!v.data.csn||!v.data.rootVe)};
EFS.prototype.handle=function(v){this.hasRun=!0;_.uXs(v.data.csn,v.data.rootVe,3)};var nFg=function(){Ok.apply(this,arguments)};
_.S(nFg,Ok);nFg.prototype.validate=function(v){return!!v.data.preconnect};
nFg.prototype.handle=function(v){_.FD("bc");v=_.p(v.data.preconnect);for(var E=v.next();!E.done;E=v.next())E=E.value,(new Image).src=E};var oFU=function(v,E,n){n=n===void 0?{layer:0}:n;o6.call(this);this.za.push(new VC(this.aD,v));this.za.push(new Hg(n));this.za.push(new nQ(n))};
_.S(oFU,o6);var ftU=function(v,E,n,f,x){n=n===void 0?{layer:0}:n;f=f===void 0?_.dr():f;o6.call(this);var y=!!E&&!!E.clientParams&&!!E.clientParams.miniplayer;y&&this.za.push(new EFS);this.za.push(new DD(this.aD,E,f));this.za.push(new nFg);var Q,e;this.za.push(new VC(this.aD,v,y,!((Q=E.clientParams)==null||!Q.fromHistory),(e=E.clientParams)==null?void 0:e.previousVideoId,f,E.tempData));var F;this.za.push(new gr(this,(F=E.clientParams)==null?void 0:F.previousVideoId));var b;(b=E.clientParams)!=null&&b.fromHistory||
(n.layer||(n=Object.assign({},n,{layer:y?3:0})),this.za.push(new Hg(n,x)),this.za.push(new nQ(n)));_.Z("web_response_commands_chunk_processor")&&this.za.push(new fQ)};
_.S(ftU,o6);var Ns,yk1;Ns={};
_.xUP=(Ns["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ns["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ns["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ns["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ns["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ns["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ns["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ns);_.uH=new _.P7("yt-edu");_.ckP=function(){this.JSC$10790_eduDisplayedThisLoad_={}};
yk1=function(v){var E=_.ckP.getInstance();var n=_.WG("kevlar_tooltip_impression_cap");E=n&&parseInt(_.uH.get(v+"-impression")||0,10)>=n||_.uH.get(v+"-dismissed")?!1:(n=_.xUP[v])&&!E.JSC$10790_eduDisplayedThisLoad_[n.setKey||v]&&(n.titleText&&_.tQ(n.titleText)||n.bodyText&&_.tQ(n.bodyText))?!0:!1;if(!E)return null;E=_.xUP[v];if(!E)return null;n=E.bodyText?_.tQ(E.bodyText):void 0;var f=E.titleText?_.tQ(E.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:E.position,popup:{bubbleHintRenderer:{text:f?
_.qD(f):void 0,detailsText:n?_.qD(n):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.qD(_.tQ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:v}}]}}}}}}}},{eduImpressionAction:{key:v}}]};
_.zY(_.ckP);var rdL=!1;var CJG={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var p$o="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),QB1=[],jY=6;jY>=1;jY--)QB1.push({columnCount:jY,query:jY==1?0:jY*2*107-4+32,className:"grid-"+jY+"-columns",width:jY*2*107+"px"});_.eao=function(v){this.actionRouter_=v=v===void 0?_.qw.getInstance():v;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.X$w(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.X$w=function(v){var E=v.miniGuideVisible_?72:0,n=v.documentWidth_-(v.guidePersistentAndVisible_?240:E);return QB1.find(function(f){return n>f.query})};
_.zY(_.eao);var FCi=function(){var v=this;this.JSC$10803_keyboardInUse=!1;document.addEventListener("keydown",function(){v.onKeydown()});
document.addEventListener("mousedown",function(){v.JSC$10803_keyboardInUse=!1})},mU1;
FCi.prototype.isKeyBoardInUse=function(){return this.JSC$10803_keyboardInUse};
FCi.prototype.onKeydown=function(){this.JSC$10803_keyboardInUse=!0};var w$S,Wg;_.Ol=new _.P7("yt-mentions");_.ko=function(){};
w$S=function(v,E){return Wg(E,"drag-to-reorder-edu-displayed")};
Wg=function(v,E,n,f,x,y){n=n===void 0?"OPEN_POPUP_POSITION_TOP":n;if(E){if(_.Ol.get(E))return;_.Ol.set(E,!0,f)}if(x&&y!==void 0){E=Number(_.Ol.get(x)||0);if(E>=y)return;_.Ol.set(x,E+1)}return[{openPopupAction:{popupType:"HINT",position:n,popup:{bubbleHintRenderer:{detailsText:v,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.zY(_.ko);var bXl,ltS,sBX;bXl=function(v,E,n,f){this.JSC$10813_taskManager_=v;this.onFulfilled_=typeof E==="function"?E:null;this.onRejected_=typeof n==="function"?n:null;this.JSC$10813_context_=f};
ltS=function(v,E){v.onFulfilled_&&_.xa(v.JSC$10813_taskManager_,function(){v.onFulfilled_.call(v.JSC$10813_context_,E)})};
sBX=function(v,E){v.onRejected_&&_.xa(v.JSC$10813_taskManager_,function(){v.onRejected_.call(v.JSC$10813_context_,E)})};
_.$o=function(v){this.JSC$10816_taskManager_=v;this.callbacks_=[]};
_.$o.prototype.then=function(v,E,n){this.callbacks_.push(new bXl(this.JSC$10816_taskManager_,v,E,n));return this};
_.$o.prototype.onSuccess=function(v){this.callbacks_.forEach(function(E){ltS(E,v)})};
_.$o.prototype.onFailure=function(v){this.callbacks_.forEach(function(E){sBX(E,v)})};
_.$o.prototype.cancel=function(){this.callbacks_.length=0};
slw(_.$o);_.SpE=null;_.ph=new _.$Y("ACTIVITY_TOKEN");var d3E=/^[a-zA-Z0-9_\-]{11}$/;var IvN=_.FT(function(){var v,E;return(E=(v=window).matchMedia)==null?void 0:E.call(v,"(prefers-reduced-motion: reduce)").matches});var rkP=_.FT(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 v=_.JM("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");v||(v=_.oc("VIDEO"),_.Vc("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
v));return!!(v&&v.canPlayType&&v.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var POl;_.LQ=new _.$Y("SHORTS_CONTROLLER_TOKEN");POl=new _.$Y("SHORTS_STATE_STORE_TOKEN");var GB=function(v,E){var n=_.rV.apply(2,arguments);v=v===void 0?0:v;_.yc.call(this,E,n);this.errorType=v;Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(GB,_.yc);var atl,ZX1,M6o,hWs,DR,nkL,JkF,qAl,Ak4,Iti,dU1;atl=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(v){return v+"="}).join("|"));
ZX1=RegExp(".*\\?.*playnext=1.*");_.TB=function(v,E,n,f){this.watchEndpointMap=v;this.reelWatchEndpointMap=E;this.innerTubeTransportService=n;this.fetchPbj=f};
M6o=function(v,E,n){var f=_.P().resolve(_.jp(COP));_.TB.instance=new _.TB(v,E,n,f)};
_.SAz=function(v,E){var n=_.WG("web_pbj_log_warning_rate",0);n=n>0&&Math.random()<n;var f;if((f=_.C(E.commandMetadata,_.Dl))==null||!f.rootVe)return n&&_.li(Error("Pf")),!1;var x;f=(x=_.C(E.commandMetadata,_.Dl))==null?void 0:x.url;if(!f)return n&&_.li(Error("Qf")),!1;if(ZX1.test(f))return!0;if(atl.test(f))return n&&_.li(Error("Rf`"+f)),!1;if(_.C(E,_.dM)){if(!(v.watchEndpointMap.watchNext&&v.watchEndpointMap.player||_.Z("kevlar_fetch_initial_data_op_watch_client")))return n&&_.li(Error("Lf")),!1;
v=_.WG("web_pbj_log_warning_rate",0);v=v>0&&Math.random()<v;_.C(E,_.dM)?Jds(E)?E=!0:(v&&_.li(Error("Mf")),E=!1):(v&&_.li(Error("Lf")),E=!1);return E}if(_.C(E,_.By))return KN1(E);if(_.C(E,_.SO))return!0;v=_.Ch(v.innerTubeTransportService,E);!v&&n&&_.mb(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(E)});return v};
hWs=function(v,E,n,f,x,y){E={url:E};if(n==null?0:n.itct)E.parentTrackingParams=n.itct;var Q=_.Yt(xjP);return _.Ms(v.innerTubeTransportService,E,Q).then(function(e){(e=e.endpoint)||(e=_.cg);(n==null?0:n.itct)&&e&&!e.trackingParams&&(e.trackingParams=n.itct);var F=Rb(e);return DR(v,e,n,f,F,x,y)})};
DR=function(v,E,n,f,x,y,Q,e){e=e===void 0?{}:e;if(v.fetchPbj&&!_.SAz(v,E)){e=v.fetchPbj(E);var F=_.Gn(e.then(function(L){if(!L)throw Error("Tf");Q(F)||y(E,L);return L}));
return F}var b,l,r={rootVe:(b=_.C(E.commandMetadata,_.Dl))==null?void 0:b.rootVe,url:(l=_.C(E.commandMetadata,_.Dl))==null?void 0:l.url,endpoint:E,page:x};if(_.C(E,_.dM)){var a,M={contentPlaybackContext:_.vp(n,(a=_.C(E.commandMetadata,_.Dl))==null?void 0:a.url,f)},U=_.Sw();_.Z("web_streaming_watch")&&window.TextDecoderStream?(e=UUS(v.innerTubeTransportService,E,M,function(L){!r.response&&L.content&&(r.response=L.content);!r.playerResponse&&L.player&&(r.playerResponse=L.player);y(E,r)}),b=mT$(E),b.length&&
(r.preconnect=b,y(E,r)),qAl(e,U,r).catch(function(L){L instanceof GB&&L.errorType===2&&JkF(v,E,M,r,y,Q,U)})):JkF(v,E,M,r,y,Q,U);
return U.promise}if(_.C(E,_.By)){var d;if(((d=_.C(E,_.By))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Y=_.Sw();_.KCz(_.P().resolve(_.LQ),E).then(function(L){dU1(v,n,f,x,y,Y,L)});
return Y.promise}e=_.Gn();var V;b={contentPlaybackContext:_.vp(n,(V=_.C(E.commandMetadata,_.Dl))==null?void 0:V.url,f)};(V=v.reelWatchEndpointMap.player)&&(V=V().JSC$11790_getRequest(E,b))&&(e=_.Ms(v.innerTubeTransportService,V.innerTubeRequest,V.input,E.clickTrackingParams,V.config));V=_.Gn();(l=v.reelWatchEndpointMap.reelItemWatch)&&(l=l().JSC$11790_getRequest(E))&&(V=_.Ms(v.innerTubeTransportService,l.innerTubeRequest,l.input,E.clickTrackingParams,l.config));l=_.Gn();(a=v.reelWatchEndpointMap.reelWatchSequence)&&
_.C(E,_.By).sequenceParams&&(b=a().JSC$11790_getRequest(E,b))&&(l=_.Ms(v.innerTubeTransportService,b.innerTubeRequest,b.input,E.clickTrackingParams,b.config));b=_.Gn(r);a=_.Sw();Iti(E,b,e,V,l,y,Q,a);return a.promise}var O;if(_.C(E,MGX)&&((O=_.C(E.commandMetadata,_.Dl))==null?0:O.url))return e=DjX(_.qE(ai().location.href),_.qE(_.C(E.commandMetadata,_.Dl).url)).toString(),hWs(v,e,n,f,y,function(){return!1});
if(_.C(E,_.SO))return y(E,r),_.Gn(r);if(_.Ch(v.innerTubeTransportService,E)){e=Object.assign({},{tempData:n,disableCache:n.disableCache},e);var T=_.Mq(v.innerTubeTransportService,E,e).then(function(L){r.response=L;Q(T)||y(E,r);return r});
return T}return _.Gn(r)};
_.ha1=function(v,E,n,f){if(_.C(E,_.dM)||_.C(E,_.By)&&(_.Z("mweb_enable_shorts_innertube_player_prefetch")||_.Z("kevlar_enable_shorts_prefetch_in_sequence"))||_.C(E,xhS)&&_.Z("web_enable_prefetching_videos_on_home")){var x,y={contentPlaybackContext:_.vp(n,(x=_.C(E.commandMetadata,_.Dl))==null?void 0:x.url,f),prefetchPlaybackContext:hzE(n)},Q,e,F;if(((Q=_.C(E,_.dM))==null?void 0:(e=Q.watchEndpointSupportedPrefetchConfig)==null?void 0:(F=e.prefetchHintConfig)==null?void 0:F.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(n=
v.watchEndpointMap.watchNext)if(y=n().JSC$11790_getRequest(E,y))return Promise.resolve(_.Ms(v.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(r){return r}))}else if(_.C(E,_.By)&&_.Z("web_prefetch_riw_for_next_video")){if(n=v.reelWatchEndpointMap.reelItemWatch)if((n=n().JSC$11790_getRequest(E,y))&&_.Ms(v.innerTubeTransportService,n.innerTubeRequest,n.input,void 0,n.config).then(function(r){return r}),n=v.reelWatchEndpointMap.player)if(y=n().JSC$11790_getRequest(E,
y))return Promise.resolve(_.Ms(v.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(r){return r}))}else if(n=v.watchEndpointMap.player)if(y=n().JSC$11790_getRequest(E,y))return Promise.resolve(_.Ms(v.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(r){return r}))}else if(_.Ch(v.innerTubeTransportService,E)){var b={tempData:n},l=YAz(v.innerTubeTransportService,E);
return l?new Promise(function(r,a){var M,U;return _.X(function(d){if(d.nextAddress==1)return _.m(d,l,2);if(d.nextAddress!=4)return M=d.yieldResult,M.JSC$11797_getStoreKey(E,b)?_.m(d,_.Mq(v.innerTubeTransportService,E,b),4):(a(new _.yc("Prefetching request builder with no store key.",E)),d.jumpTo(0));U=d.yieldResult;r(U);_.yQ(d)})}):Promise.reject(new _.yc("Prefetching unregistered request builder.",E))}return Promise.reject(new _.yc("No request builder available to prefetch endpoint.",E))};
nkL=function(v,E){var n,f,x;if(_.C(E,_.dM)){var y=v.watchEndpointMap.watchNext;y&&(n=y());(v=v.watchEndpointMap.player)&&(f=v())}else if(_.C(E,_.By))(y=v.reelWatchEndpointMap.reelItemWatch)&&(n=y()),(y=v.reelWatchEndpointMap.player)&&(f=y()),(v=v.reelWatchEndpointMap.reelWatchSequence)&&(x=v());else{a:{v=dYy(E,v.innerTubeTransportService.endpointMap);if(v!==void 0)if(typeof v.then==="function")_.mb(new _.yc("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",E));else break a;
v=void 0}v&&(n=v)}var Q,e,F;return{content:(Q=n)==null?void 0:Q.JSC$11797_getStoreKey(E),player:(e=f)==null?void 0:e.JSC$11797_getStoreKey(E),reelSequence:(F=x)==null?void 0:F.JSC$11797_getStoreKey(E)}};
JkF=function(v,E,n,f,x,y,Q){var e=_.Gn(),F=v.watchEndpointMap.player;F&&(F=F().JSC$11790_getRequest(E,n))&&(e=_.Ms(v.innerTubeTransportService,F.innerTubeRequest,F.input,E.clickTrackingParams,F.config));F=_.Gn();var b=v.watchEndpointMap.watchNext;b&&(n=b().JSC$11790_getRequest(E,n))&&(F=_.Ms(v.innerTubeTransportService,n.innerTubeRequest,n.input,E.clickTrackingParams,n.config));v=_.Gn(f);Ak4(E,v,e,F,x,y,Q)};
qAl=function(v,E,n){return _.X(function(f){if(f.nextAddress==1)return _.m(f,v,2);E.resolve(n);_.yQ(f)})};
Ak4=function(v,E,n,f,x,y,Q){var e,F,b,l,r;_.X(function(a){switch(a.nextAddress){case 1:return _.m(a,E,2);case 2:e=a.yieldResult;if(y(Q.promise))return Q.resolve(e),a.return();x(v,e);F=mT$(v);if(!F.length){a.jumpTo(3);break}return _.m(a,E,4);case 4:e.preconnect=F,x(v,e);case 3:return _.vW(a,5),_.m(a,n,7);case 7:b=a.yieldResult;_.qp(a,6);break;case 5:return l=_.cW(a),Q.reject(l),a.return();case 6:if(b===void 0)return e.reload=!0,x(v,e),Q.resolve(e),a.return();if(y(Q.promise))return Q.resolve(e),a.return();
e.playerResponse=b;x(v,e);_.vW(a,8);return _.m(a,f,10);case 10:r=a.yieldResult;_.qp(a,9);break;case 8:_.cW(a);case 9:if(r===void 0)return e.response={responseContext:{}},Q.resolve(e),a.return();if(y(Q.promise))return Q.resolve(e),a.return();e.response=r;x(v,e);Q.resolve(e);_.yQ(a)}})};
Iti=function(v,E,n,f,x,y,Q,e){var F,b,l,r,a,M;_.X(function(U){switch(U.nextAddress){case 1:return _.m(U,E,2);case 2:F=U.yieldResult;if(Q(e.promise))return e.resolve(F),U.return();y(v,F);b=mT$(v);if(!b.length){U.jumpTo(3);break}return _.m(U,E,4);case 4:F.preconnect=b,y(v,F);case 3:return _.vW(U,5),_.m(U,n,7);case 7:l=U.yieldResult;_.qp(U,6);break;case 5:return r=_.cW(U),e.reject(r),U.return();case 6:if(l===void 0)return F.reload=!0,y(v,F),e.resolve(F),U.return();if(Q(e.promise))return e.resolve(F),
U.return();F.playerResponse=l;y(v,F);_.vW(U,8);return _.m(U,f,10);case 10:a=U.yieldResult;_.qp(U,9);break;case 8:_.cW(U);case 9:if(a===void 0)return F.response={responseContext:{}},e.resolve(F),U.return();if(Q(e.promise))return e.resolve(F),U.return();F.response=a;y(v,F);_.vW(U,11);return _.m(U,x,13);case 13:M=U.yieldResult;_.qp(U,12);break;case 11:_.cW(U);case 12:if(Q(e.promise))return e.resolve(F),U.return();F.reelWatchSequenceResponse=M;y(v,F);e.resolve(F);_.yQ(U)}})};
dU1=function(v,E,n,f,x,y,Q){var e,F,b,l,r,a;_.X(function(M){if((e=Q)==null||!e.replacementEndpoint)return y.reject(),M.return();F=Q.replacementEndpoint;(b=_.C(F,_.By))?(Q.sequenceContinuation&&(b.sequenceParams=Q.sequenceContinuation),l=_.P().resolve(_.LQ),r=b.sequenceParams,V61(l,F)&&delete b.sequenceParams,a=DR(v,F,E,n,f,x,function(){return!1}),a.then(function(U){return _.X(function(d){if(d.nextAddress==1)return DU6(l,{reelWatchEndpoint:{sequenceParams:r}},U),_.m(d,0,2);
y.resolve(U);_.yQ(d)})})):y.reject();
_.yQ(M)})};_.HXw=function(v){if(v.validatedFragments_.length==0)return null;if(!v.mergedPrefetchedData_){for(var E=[],n=_.p(v.validatedFragments_),f=n.next();!f.done;f=n.next()){f=_.p(v.fragmentConfiguration_[f.value].graftedKeys);for(var x=f.next();!x.done;x=f.next())(x=v.prefetchedData_[x.value].trackingParams)&&E.push(x)}v.mergedPrefetchedData_={};Object.assign(v.mergedPrefetchedData_,v.prefetchedData_,{clientSideGrafts:E})}return v.mergedPrefetchedData_};var gFz;_.iH=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
gFz=function(v,E,n){if(_.U31(E))return v.prefetchCache_.get(_.qp$(E,n))};_.zB=new _.$Y("NAVIGATION_TOKEN");var NIP=function(v){var E=this;var n=n===void 0?D3A():n;var f=f===void 0?_.P().resolve(_.zB):f;this.onePickCommand=v;this.JSC$10917_playlistNetworkManager=n;this.navigationManager=f;this.videoPickerBuilder=_.Ad9("yt-addtoplaylist");_.DXw(JsP(KiP(qUX(this.videoPickerBuilder.setTitle(v.modalTitle).setSize(1E3).addView(YOX()).addView(IU1())).addView("youtube"),v.selectButtonLabel)),function(x){E.handleAction(x)})};
NIP.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
NIP.prototype.handleAction=function(v){var E=this;if(v&&this.onePickCommand.listId&&v.action==="picked"&&v.docs){var n=[];v.docs.forEach(function(f){n.push({addedVideoId:f.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10917_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,n).then(function(){_.Z("playlist_add_video_hard_reload_killswitch")?E.navigationManager.reload():u4S(E.navigationManager)})}};var jB6=function(){if(this.constructor===jB6)throw new TypeError("Uf");};
_.c=jB6.prototype;_.c.dispose=function(){};
_.c.disconnect=function(){};
_.c.reconnect=function(){};
_.c.observe=function(v,E,n){return{element:v,option:n}};
_.c.unobserveByKey=function(){};var HKG=function(v,E){E=E===void 0?0:E;jB6.call(this);this.viewroot=v;this.defaultPrescanHeight=E;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),v?{root:v,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.S(HKG,jB6);_.c=HKG.prototype;_.c.dispose=function(){this.disconnect();this.handlers.clear()};
_.c.disconnect=function(v){this.isConnected=!1;this.pauseObservingUntilReconnect=v===void 0?!1:v;this.observer.disconnect();v=_.p(this.prescanObservers.values());for(var E=v.next();!E.done;E=v.next())E.value.disconnect()};
_.c.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var v=_.p(this.handlers),E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;var f=n.next().value;n=!1;f=_.p(f.keys());for(var x=f.next();!x.done;x=f.next())if((x=x.value)&&x.state==="prescan"){n=!0;break}n&&OXw(this,E).observe(E);this.observer.observe(E)}}};
_.c.handleObserveEvent=function(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=this.handlers.get(E.target);if(n){var f=E.isIntersecting;n=_.p(n);for(var x=n.next();!x.done;x=n.next()){var y=_.p(x.value);x=y.next().value;y=y.next().value;x&&(x.state==="visible"&&f||x.state==="hidden"&&!f)&&(y(E.target,x.state),x.calledOnce&&this.unobserveByKey({element:E.target,option:x}))}}}};
_.c.handlePrescanEvent=function(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=this.handlers.get(E.target);if(n&&E.isIntersecting){n=_.p(n);for(var f=n.next();!f.done;f=n.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;f&&f.state==="prescan"&&(x(E.target,f.state),f.calledOnce&&this.unobserveByKey({element:E.target,option:f}))}}}};
_.c.observe=function(v,E,n){var f=(f=this.handlers.get(v))&&f.has(n)?{element:v,option:n}:void 0;if(f)return f;f={element:v,option:n};this.handlers.has(v)||this.handlers.set(v,new Map);var x=this.handlers.get(v);x&&!x.has(n)&&x.set(n,E);this.pauseObservingUntilReconnect||(n.state==="prescan"&&OXw(this,v).observe(v),this.observer.observe(v));return f};
_.c.unobserveByKey=function(v){var E=this.handlers.get(v.element);if(E&&E.has(v.option)){E.delete(v.option);if(v&&v.option.state==="prescan")for(var n=_.p(this.prescanObservers.values()),f=n.next();!f.done;f=n.next())f.value.unobserve(v.element);E.size===0&&(this.handlers.delete(v.element),this.observer.unobserve(v.element))}};
var OXw=function(v,E){var n=v.defaultPrescanHeight;E.hasAttribute("prescan-height")&&(E=Number(E.getAttribute("prescan-height")),isNaN(E)||(n=E));if(v.prescanObservers.has(n))return v.prescanObservers.get(n);E="-0.1px -0.1px "+n+"px -0.1px";E=new IntersectionObserver(v.handlePrescanEvent.bind(v),v.viewroot?{root:v.viewroot,rootMargin:E}:{rootMargin:E});v.prescanObservers.set(n,E);return E};var kmP=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],WCz=function(){var v,E=this;this.JSC$10934_actionRouter=v=v===void 0?_.qw.getInstance():v;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return E.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return E.visibilityObservedElementHandlerKeys}}},$U4,GmP,za6;
WCz.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Z("kevlar_use_vimio_behavior")&&_.MX("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=gME())};
WCz.prototype.dispose=function(){this.visibilityMonitor&&_.FX(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
WCz.prototype.handleVisibilityRefreshed=function(){for(var v=_.p(this.targetMap.entries()),E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;_.LC1(this,E,n)}};
_.iXg=function(v,E,n){GmP(v,n);var f=_.TI1(v,E);f.element=n;v.targetedElements.set(n,E);_.LC1(v,E,f)};
GmP=function(v,E){var n=v.targetedElements.get(E);if(n){var f=v.targetMap.get(n);f&&(delete f.element,v.targetMap.set(n,f));v.targetedElements.delete(E);v.visibilityObserver&&v.visibilityObservedElementHandlerKeys&&(n=v.visibilityObservedElementHandlerKeys.get(E))&&(v.visibilityObserver.unobserveByKey(n),v.visibilityObservedElementHandlerKeys.delete(E))}};
_.LC1=function(v,E,n){var f=n.action,x=n.element;x&&f&&(kmP.includes(E)||_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||v.visibilityMonitor&&v.visibilityMonitor.isNodeVisible(x)?za6(v,E,n):v.visibilityObserver&&(v.visibilityObservedElementHandlerKeys||(v.visibilityObservedElementHandlerKeys=new WeakMap),f=v.visibilityObserver.observe(x,function(){za6(v,E,n);v.visibilityObservedElementHandlerKeys.delete(x)},{calledOnce:!0,
state:"visible"}),v.visibilityObservedElementHandlerKeys.set(x,f)))};
za6=function(v,E,n){var f=n.action;(n=n.element)&&f&&(_.UM(v.JSC$10934_actionRouter,[f],n),v.targetMap.delete(E),v.targetedElements.delete(n),v.triggeredTargets.add(E))};
_.TI1=function(v,E){var n=v.targetMap.get(E);n||(n={},v.targetMap.set(E,n));return n};
_.R6=function(){$U4||($U4=new WCz);return $U4};var Rag=document.createElement("div");Rag.style.touchAction="pan-down";var No$=Rag.style.touchAction==="pan-down";var t6F,BIP;t6F=function(){this.hammerFn=CGS();this.JSC$10942_screenManager=_.Tl();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ci(83615);_.BD(this.JSC$10942_screenManager,this.ve);uPL()};
_.th=function(){BIP||(BIP=new t6F);return BIP};
t6F.prototype.registerTouchEvents=function(v,E,n){var f=_.rV.apply(3,arguments),x=this.hammerFn(v,{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}]]});n&&x.set({touchAction:n});this.nodeManagerMapping.set(v,x);var y=
jfQ(E);f=_.p(f);for(var Q=f.next();!Q.done;Q=f.next()){Q=Q.value;if(Q.includes("swipe")||Q.includes("pinch")||Q.includes("pan"))Q.includes("swipe")?x.get("swipe").set({enable:!0,direction:y,velocity:.2}):Q.includes("pinch")?x.get("pinch").set({enable:!0}):Q.includes("pan")&&(x.get("pan").set({enable:!0,direction:y}),x.get("swipe").set({enable:!0,direction:y,velocity:.2}),x.get("swipe").recognizeWith("pan"));vg1(this,v,x,Q)}};
var vg1=function(v,E,n,f){n.on(f,function(x){if(f.includes("pinch"))v.lastPinchTime=Date.now();else if(f.includes("swipe")&&Date.now()-v.lastPinchTime<400)return;x.pointerType!=="mouse"&&(x=f==="doubletap"?{coordinates:x.center}:f.includes("pan")?x:f.includes("swipe")?{target:x.target}:{},E.dispatchEvent(new CustomEvent(f,{bubbles:!0,composed:!0,detail:x})))})};
t6F.prototype.unregisterTouchEvents=function(v){var E=_.rV.apply(1,arguments),n=this.nodeManagerMapping.get(v);if(n){E=_.p(E);for(var f=E.next();!f.done;f=E.next())n.off(f.value);this.nodeManagerMapping.delete(v);v.style.touchAction="unset"}};var EgS=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var OK1=null;var ogw;_.Bg=function(v,E,n){var f=n&&n>0?n:0;n=f?Date.now()+f*1E3:0;if((f=f?(0,_.ng1)():ogw())&&window.JSON){typeof E!=="string"&&(E=JSON.stringify(E,void 0));try{f.set(v,E,n)}catch(x){f.remove(v)}}};
_.vs=function(v){var E=ogw(),n=(0,_.ng1)();if(!E&&!n||!window.JSON)return null;try{var f=E.get(v)}catch(x){}if(typeof f!=="string")try{f=n.get(v)}catch(x){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(x){}return f};
_.EC=function(v){try{var E=ogw(),n=(0,_.ng1)();E&&E.remove(v);n&&n.remove(v)}catch(f){}};
_.ng1=_.FT(function(){try{var v=new SLE;var E=v.isAvailable()?v:null}catch(n){return null}return E?new _.O2(E):null});
ogw=_.FT(function(){var v=new UAN;return v.isAvailable()?new _.O2(v):null});var fMz=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},czE=function(){fMz.instance||(fMz.instance=new fMz);
return fMz.instance},yzs=function(v){var E=v.networkEvents;
v.networkEvents=[];return _.Z("enable_network_monitoring")?E:[]};var xMo;xMo={};_.cWP=HA("yt-serviceworker-metadata",{objectStores:(xMo.auth={addedAtVersion:1},xMo["resource-manifest-assets"]={addedAtVersion:2},xMo),shared:!0,upgrade:function(v,E){E(1)&&Z$(v,"resource-manifest-assets");E(2)&&Z$(v,"auth")},
version:2});var ToG=self.location.origin+"/";iK9([/\.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\//]);iK9([/purge_shell=1/]);var yW4=void 0;yW4=yW4===void 0?[]:yW4;for(var pK1=[],QH1=_.p(e0F),XKw=QH1.next();!XKw.done;XKw=QH1.next())pK1.push({key:XKw.value});for(var ePi=_.p(yW4),Fr4=ePi.next();!Fr4.done;Fr4=ePi.next())pK1.push(Fr4.value);var mM6,f2=_.n1==null?void 0:(mM6=_.n1.performance)==null?void 0:mM6.memory,tG1=!1,pLE={},EQy={},xy={},cp=navigator;var nt=function(v){this.JSC$10986_expiringStorage=new Qc(v)};
nt.prototype.set=function(v,E,n){n=n!==void 0?Date.now()+n:void 0;this.JSC$10986_expiringStorage.set(v,E,n)};
nt.prototype.get=function(v){return this.JSC$10986_expiringStorage.get(v)};
nt.prototype.remove=function(v){this.JSC$10986_expiringStorage.remove(v)};var l7L=_.jU(["https://www.youtube.com/",""]),s2Q=_.jU(["https://studio.youtube.com/",""]),CRG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",PRs=null,Jz$;var wKP=_.jU(["https://www.youtube.com/iframe_api"]),oD=function(){this.playerResolver_=_.Sw();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.er;this.playbackDurationSeconds_=0},bqo=function(v){var E=function(){return window.YT&&typeof window.YT.ready==="function"};
if(E())return _.Gn(window.YT);var n=_.Sw(),f=_.oc("SCRIPT");f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||(f.onload=_.er,f.onreadystatechange=_.er,f.onerror=_.er,E()?n.resolve(window.YT):n.reject(new _.yc("Failed to load the iframe player library","script.onload",f.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
f.onerror=function(x){f.onload=_.er;f.onreadystatechange=_.er;f.onerror=_.er;n.reject(new _.yc("Failed to load the iframe player library","script.onerror",x&&x.target&&x.target.src))};
_.Vv(f,_.i_(wKP));v.insertBefore(f,v.firstChild);return n.promise},lMo=function(v,E,n){var f,x;
_.X(function(y){switch(y.nextAddress){case 1:return v.playbackEndedCallback_=n,_.vW(y,2),_.m(y,bqo(E.parentElement||null),4);case 4:f=y.yieldResult;_.qp(y,3);break;case 2:return x=_.cW(y),x instanceof _.yc&&x.args&&x.args[0]=="script.onerror"?_.li(x):_.mb(x),y.return();case 3:f.ready(function(){return new f.Player(E,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:v.onPlayerReady_.bind(v),onStateChange:v.onPlayerStateChange_.bind(v),
onCueRangeExit:v.onCueRangeExit_.bind(v)}})}),_.yQ(y)}})};
_.c=oD.prototype;_.c.getPlayerPromise=function(){return this.playerPromise_};
_.c.onPlayerReady_=function(v){this.playerResolver_.resolve(v.target)};
_.c.onPlayerStateChange_=function(v){if(v.data==YT.PlayerState.PLAYING){v=v.target;var E=v.getCurrentTime();v.addCueRange("playback",E,E+this.playbackDurationSeconds_)}};
_.c.onCueRangeExit_=function(v){v.data=="playback"&&(v.target.stopVideo(),this.playbackEndedCallback_())};
_.c.stopVideo=function(){this.playerPromise_.then(function(v){v.stopVideo()})};
var sH1=function(v){v.playerVars_&&v.playerPromise_.then(function(E){typeof E.cueVideoByPlayerVars!="function"?_.li(new _.yc("vmh: player API not ready","cueVideoByPlayerVars",typeof E.cueVideoByPlayerVars)):E.cueVideoByPlayerVars(v.playerVars_)})};
oD.prototype.playVideo=function(){var v=this;this.playerVars_&&this.playerPromise_.then(function(E){typeof E.loadVideoByPlayerVars!="function"?(E=new _.yc("vmh: player API not ready","loadVideoByPlayerVars",typeof E.loadVideoByPlayerVars),_.mb(E)):E.loadVideoByPlayerVars(v.playerVars_)})};
var rWg=function(v,E,n,f,x){E&&(n===void 0&&(n=0),f===void 0&&(f=0),v.playbackDurationSeconds_=f/1E3,v.playerVars_={adformat:"17_8",videoId:E,suggestedQuality:"hd720",startSeconds:n/1E3,player_params:x})};
oD.prototype.mute=function(){this.playerPromise_.then(function(v){v.mute()})};
oD.prototype.unMute=function(){this.playerPromise_.then(function(v){v.unMute()})};var VRE=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ft;ft=function(){this.tokenJars={};if(this.cookiesEnabled=_.fE()){var v=_.nE.get("CONSISTENCY",void 0);v&&PV1(this,{encryptedTokenJarContents:v})}};
_.H41=function(){ft.instance||(ft.instance=new ft);return ft.instance};
ft.prototype.handleResponse=function(v,E){if(!E)throw Error("Zf");var n,f;E=((n=E.innerTubeRequest.context)==null?void 0:(f=n.request)==null?void 0:f.consistencyTokenJars)||[];var x;(v=(x=v.responseContext)==null?void 0:x.consistencyTokenJar)&&this.replace(E,v)};
ft.prototype.replace=function(v,E){v=_.p(v);for(var n=v.next();!n.done;n=v.next())delete this.tokenJars[n.value.encryptedTokenJarContents];PV1(this,E)};
var PV1=function(v,E){if(E.encryptedTokenJarContents&&(v.tokenJars[E.encryptedTokenJarContents]=E,typeof E.expirationSeconds==="string")){var n=Number(E.expirationSeconds);setTimeout(function(){delete v.tokenJars[E.encryptedTokenJarContents]},n*1E3);
v.cookiesEnabled&&_.oP("CONSISTENCY",E.encryptedTokenJarContents,n,void 0,!0)}};var aMo,xI;aMo=window.location.hostname.split(".").slice(-2).join(".");_.rn=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var v=_.MX("LOCATION_PLAYABILITY_TOKEN");_.MX("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Zqg(this))&&(v=this.localStorage.get("yt-location-playability-token"));v&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0)};
_.rn.getInstance=function(){xI=_.JM("yt.clientLocationService.instance");xI||(xI=new _.rn,_.Vc("yt.clientLocationService.instance",xI));return xI};
_.rn.prototype.setLocationOnInnerTubeContext=function(v){v.client||(v.client={});if(this.mostRecentPosition)v.client.locationInfo||(v.client.locationInfo={}),v.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),v.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),v.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),v.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)v.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.rn.prototype.handleResponse=function(v){var E;v=(E=v.responseContext)==null?void 0:E.locationPlayabilityToken;v!==void 0&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0,_.MX("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Zqg(this))&&this.localStorage.set("yt-location-playability-token",v,15552E3):_.oP("YT_CL",JSON.stringify({loctok:v}),15552E3,aMo,!0))};
var Zqg=function(v){return v.localStorage===void 0?new _.P7("yt-client-location"):v.localStorage};
_.rn.prototype.clearLocationPlayabilityToken=function(v){v==="TVHTML5"?(this.localStorage=Zqg(this))&&this.localStorage.remove("yt-location-playability-token"):_.sTs("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.rn.prototype.getCurrentPositionFromGeolocation=function(){var v=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var E=!1,n=1E4;_.MX("INNERTUBE_CLIENT_NAME")==="MWEB"&&(E=!0,n=15E3);return new Promise(function(f,x){navigator.geolocation.getCurrentPosition(function(y){v.mostRecentPosition=y;f(y)},function(y){x(y)},{enableHighAccuracy:E,
maximumAge:0,timeout:n})})};
_.rn.prototype.createUnpluggedLocationInfo=function(v){var E={};v=v.coords;if(v==null?0:v.latitude)E.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)E.longitudeE7=Math.floor(v.longitude*1E7);if(v==null?0:v.accuracy)E.locationRadiusMeters=Math.round(v.accuracy);return E};
_.rn.prototype.createLocationInfo=function(v){var E={};v=v.coords;if(v==null?0:v.latitude)E.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)E.longitudeE7=Math.floor(v.longitude*1E7);return E};var CVU=function(v,E){var n=Zl();v||(v="unknown");E||(E="unknown");v="MAIN_APP_WEB_PAGE_TYPE_"+v.toUpperCase();v in x_F||(v="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");E="MAIN_APP_WEB_REQUEST_TYPE_"+E.toUpperCase();E in cSw||(E="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.pe(n,{mainAppWeb:{pageType:v,requestType:E,isShellLoad:_.Sp("IS_SHELL_LOAD",!1)}})},MA4={start:function(){_.pe(Ru1(),{mainAppWeb:_.Pp()})},
success:function(){_.Qw(Ru1(),"SUCCESS")},
failure:function(){_.Qw(Ru1(),"FAILURE")},
cancelled:function(){_.Qw(Ru1(),"CANCELLED")}};var SE1,UM1,O4$;SE1=_.jU(["/sw.js"]);UM1=_.jU(["/sw.js?0"]);_.qEX=_.i_(SE1);O4$=_.i_(UM1);var JWi=function(){var v=Error.apply(this,arguments);this.message=v.message;"stack"in v&&(this.stack=v.stack)};
_.S(JWi,Error);_.C2.prototype.load=function(v){this.megabloxUrl_=_.MX("YPC_MB_URL");_.CG(this.megabloxUrl_,(0,_.XV)(function(){v&&v()},this))};
_.BaF=function(v,E,n,f,x,y,Q,e,F,b,l){_.W8L(F);v.load((0,_.XV)(function(){try{var r=y?y:_.MX("HL"),a=_.MX("SESSION_INDEX");_.dTE("client",function(){CY6("59",{helpCenterPath:"/youtube",locale:r,window:window}).JSC$7867_loadChatSupport({authuser:String(a)})})}catch(M){throw ak(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),x&&x(M),_.mb(M),M;
}KrS(this,E,n,f,x,y,Q,e,F,b,l)},v))};
_.C2.prototype.openFixFlowDialog=function(v,E,n,f){this.load((0,_.XV)(function(){try{dMl(this,_.JM("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(v).withIntegratorCallback(E).load(n,f)}catch(x){throw _.mb(x),x;}},this))};
var dMl=function(v,E,n,f){var x=E.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Z("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle(_.JM("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));f&&(x=x.usingCloseCallback(f));E.bootstrap.fromPaymentsUrl(v.megabloxUrl_);v=E.bootstrap.asMashupMode(x);n=n?n:_.MX("HL");v.usingGaiaIndex(_.MX("SESSION_INDEX")).usingLocale(n).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Z("enable_google_payments_buyflow_material2_style_web")?
v.usingStyle(":m2;pc=#444;ac=#065fd4"):v.usingStyle(":md;pc=#444;ac=#065fd4");return v},KrS=function(v,E,n,f,x,y,Q,e,F,b,l){try{var r=_.JM("payments.business.integration");
if(!r)throw new JWi("payments.business.integration is undefined");var a=r.standaloneContextAuthId.forUserId(),M=dMl(v,r,y,e);Q&&M.usingServerAnalyticsEventHandler(Q);var U=M.inStandaloneContext(a).buyFlow(function(d){if(d&&(!d.integratorData||d.integratorData===""||d.error))if(d.error!=null)if(String(d.error)==="-1")_.$jI(F);else{var Y=String(d.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ak(10,l,Y,d.debugCode);
_.Z_(Y,F,d.debugCode);Y=new _.yc("PAYMENT_ERROR_MESSAGE::"+d.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+d.internalErrorDetails);_.mb(Y)}else ak(10,l,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Z_("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",F,"EMPTY_INTEGRATOR_DATA"),_.mb(Error("bg"));n&&n(d)}).withEncryptedParameters(E);
b&&U.withClientParameters($zX(_.ff9(b)));U.load(function(){ak(24,l);_.wj("ttc",void 0,"commerce_transaction");rSN("commerce_transaction");f&&f()},function(d){if(d==null?0:d.debugCode)var Y=d==null?void 0:d.debugCode;
else if(!d||(d==null?0:d.debugCode))Y="EMPTY_LOAD_FAILURE_ERROR",_.mb(Error(Y));else{Y="EMPTY_LOAD_FAILURE_DEBUG_CODE";var V=new _.yc("LOAD_FAILURE:"+d.message," DEBUG_CODE:"+Y);_.mb(V)}ak(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y);_.Z_("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F,Y);_.mb(d);x&&x(d)})}catch(d){throw d instanceof JWi&&(ak(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),x&&x(d)),_.mb(d),d;
}};var IMw;IMw=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.z9N=function(v,E){E=E===void 0?!1:E;v=IMw.test(v)?_.xR(v):null;!E&&window.payments||!v?(v=_.Sw(),E=v.promise,v.resolve()):E=_.MT(v,{attributes:{"data-payments-main":"",id:"payment-lib"}});return E};var YEP;YEP=_.jU(["//www.googletagmanager.com/gtm.js?id=",""]);_.cs=function(v,E){_.Dg(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:E}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.MX("GL")}),E=_.oc("SCRIPT"),E.async=!0,_.Vv(E,_.i_(YEP,v)),E.id="gtm",v=document.getElementsByTagName("script"),v.length==0?document.head.appendChild(E):(v=v[0],v.parentNode.insertBefore(E,v)))};
_.yB=function(v){if(v=JSON.parse(v))window.dataLayer=window.dataLayer||[],window.dataLayer.push(v)};var hPP,AW1;hPP=_.jU(["https://clients2.google.com/gr/gr_sync.js"]);_.TaE=function(){};
_.TaE.prototype.init=function(){if(AW1()){var v=_.Sw();v.resolve();return v.promise}return _.MT(_.i_(hPP)).then(function(){if(!AW1())throw Error("cg");},function(){throw Error("dg");
})};
_.imL=function(){if(!AW1())return"";var v=window.google.gr;v.init({async:{schedule:"sync"},merchantId:"youtube"});v.start();v=v.finish();return v==null?"":v};
AW1=function(){return window.google!=null&&window.google.gr!=null};var ExG,fKF=new Set,nxF;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.g=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.g,PolymerFakeBaseClassWithoutHtml);_.L2=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.L2,PolymerFakeBaseClassWithoutHtml);var L8X=window.ShadyDOM;var q$X,S$N,K0L,dvF,Y$$,he$,pt,hV;q$X=_.Z("enable_shadydom_free_scoped_query_methods");S$N=_.Z("enable_shadydom_free_scoped_node_methods");K0L=_.Z("enable_shadydom_free_scoped_readonly_properties_batch_one");dvF=_.Z("enable_shadydom_free_parent_node");Y$$=_.Z("enable_shadydom_free_children");he$=_.Z("enable_shadydom_free_last_child");pt=window.ShadyDOM;_.gn=pt&&pt.noPatch&&pt.wrap?pt.wrap:pt?function(v){return pt.patch(v)}:function(v){return v};
hV=function(v){if(v instanceof ShadowRoot)this.host=(0,_.gn)(v.host),this.root=v;else if(v.$$){this.host=(0,_.gn)(v);var E;this.root=(E=v.root)!=null?E:this.host}else if(v.polymerController){this.host=(0,_.gn)(v);var n;this.root=(n=this.host.shadowRoot)!=null?n:this.host}else this.root=this.host=(0,_.gn)(v)};
UvX();JLQ();AL$();VLy();I8E();var VAg={querySelector:function(v,E){E=TTL(E,qQ(v));v=_.JV(v);return K2(v).prototype.querySelector.call(v,E)},
querySelectorAll:function(v,E){E=TTL(E,qQ(v));v=_.JV(v);return K2(v).prototype.querySelectorAll.call(v,E)}},DM1={appendChild:function(v,E){var n=qQ(v),f=_.Un(E);
return _.CdE(_.JV(v),n?_.Ik(E,n,f):E)},
cloneNode:function(v,E){var n=_.Un(v);v=_.JV(v);E=K2(v).prototype.cloneNode.call(v,E);return n?Yy(E,n):E},
contains:function(v,E){var n=qQ(v),f=_.Un(E);return n!==f?!1:MLs(v,E)},
insertBefore:function(v,E,n){var f=qQ(v),x=_.Un(E);v=_.JV(v);E=f?_.Ik(E,f,x):E;return K2(v).prototype.insertBefore.call(v,E,n)},
removeChild:function(v,E){var n=qQ(v);v=_.JV(v);E=n?Yy(E,n):E;return K2(v).prototype.removeChild.call(v,E)},
replaceChild:function(v,E,n){var f=qQ(v),x=_.Un(E);E=f?_.Ik(E,f,x):x?Yy(E,x):E;n=f?Yy(n,f):n;v=_.JV(v);return K2(v).prototype.replaceChild.call(v,E,n)},
getRootNode:function(v,E){E=E===void 0?{composed:!0}:E;var n;if(((n=E)!=null?n:{}).composed)v=xv9(v);else{E=v;for(v=zGI(v);v;)E=v,v=tRs(v);v=E}return v}},HiQ=K0L?{firstChild:l81,
nextSibling:mvE,previousSibling:bi9,firstElementChild:saG,lastElementChild:PdI,nextElementSibling:F0y,previousElementSibling:wYI,childNodes:a8X}:{};dvF&&(HiQ.parentNode=ee$);Y$$&&(HiQ.children=ZiE);he$&&(HiQ.lastChild=rLQ);q$X&&DvG(VAg);S$N&&DvG(DM1);gUL();var NzL=function(v){this.node=v instanceof ShadowRoot?v.host:v};
uQN();jaA();var $vA=new WeakMap;var GR$=Symbol("wd");var tLE=new Set(["tap","track","down","up"]),BzG=_.Z("pbcm_fi_query_decorators");var QB=function(){return _.L2.apply(this,arguments)||this};
_.S(QB,_.L2);_.c=QB.prototype;_.c.getState=function(){return this.store.getState()};
_.c.dispatch=function(v){this.store.dispatch(v)};
_.c.beforeRegister=function(){if(this&&typeof this==="object"){var v;var E=!!this.useSignals||!((v=this.polymerController)==null||!v.useSignals)}else E=!1;if(!E&&this.properties)for(E=_.p(Object.keys(this.properties)),v=E.next();!v.done;v=E.next()){var n=v.value;v=this.properties[n];if(v.selector){if(v.computed)throw Error("jg");n=["reduxPropertiesRecomputeTrigger",'"'+n+'"'].concat(_.s8(v.selectorArgs||[])).join(",");v.computed="recomputeReduxSelector("+n+")"}}};
_.c.attached=function(){var v=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){v.reduxPropertiesRecomputeTrigger++}));
_.Z("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.c.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.c.recomputeReduxSelector=function(v,E){var n=_.rV.apply(2,arguments),f=this.properties[E].selector;if(!f)throw Error("hg`"+E);return f.apply(null,[this.store.getState()].concat(_.s8(n)))};
_.c.select=function(v){var E=_.rV.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return v.apply(null,[this.store.getState()].concat(_.s8(E)))};
_.hK.Object.defineProperties(QB.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
QB.prototype.recomputeReduxSelector=QB.prototype.recomputeReduxSelector;_.k([_.H(),_.W("design:type",Number)],QB.prototype,"reduxPropertiesRecomputeTrigger",void 0);QB=_.k([_.Gw()],QB);var Xg=[],ywX={},yV=function(){return V2.apply(this,arguments)||this};
_.S(yV,V2);yV.prototype._addPropertyEffect=function(v,E,n){if(E==="__observeEffects"&&n){var f,x=(f=n.info.method)!=null?f:n.info.methodName;if(x){var y=this[x];this[x]=function(){Xg.push(x);try{y==null||y.apply(this,arguments)}finally{Xg.pop()}}}}_.m4._addPropertyEffect.apply(this,[v,
E,n])};
yV.prototype._setPendingProperty=function(v,E,n){if(Xg.length){var f=Xg[Xg.length-1],x;(x=ywX[this.is])!=null&&x.has(f)||(pBE(this.is,f),_.eQ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:f}))}return _.m4._setPendingProperty.apply(this,[v,E,n])};
yV=_.k([VUX()],yV);var QhQ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),eOL,zw={};_.Z("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=zw);var Bp=function(){return _.L2.apply(this,arguments)||this};
_.S(Bp,_.L2);Bp.prototype._setUnmanagedPropertyToNode=function(v,E,n){v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!0);if(n!==v[E]||typeof n==="object")v[E]=n;v.is&&v.polymerController&&v.polymerController!==v&&Rk(v.is,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!1)};
Bp=_.k([_.Gw()],Bp);XBQ()&&(aS.prototype._setUnmanagedPropertyToNode=(new Bp)._setUnmanagedPropertyToNode);_.U8I={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(v){},set polymerController(v){}}]};var cE=function(){var v=V2.apply(this,arguments)||this;v.json=function(){};
return v};
_.S(cE,V2);cE.prototype.equals=function(v,E){return v===E};
cE.prototype.isEmpty=function(v){return!v||_.E1(v)&&v.length===0};
cE=_.k([VUX()],cE);var Hq1=function(v){v=Ib1(v);d7.call(this,v)};
_.S(Hq1,d7);Hq1.prototype.addProvider=function(v){v=v.key?v:Ib1([v])[0];var E=this.keyIdToIndex.get(v.key.id);if(E){if(lKL(v,this.providers[E]))throw Error("kg`"+v.key.displayName);}else d7.prototype.addProvider.call(this,v)};
var ggz=new Hq1([]);var Nvz=!1;var CvE={};Nvz||(Zws(),Nvz=!0);
CvE.InjectBehavior={initializeInjection:function(){var v=this.provide;try{if((v=v!=null?v:[])&&v.length>0)for(var E=Ib1(v),n=_.p(E),f=n.next();!f.done;f=n.next())ggz.addProvider(f.value);var x=new Set;shI(this.behaviors||[],x);E={};for(var y=_.p(x),Q=y.next();!Q.done;Q=y.next()){var e=Q.value;e.inject&&Object.assign(E,e.inject)}this.inject&&Object.assign(E,this.inject);for(var F=_.p(Object.keys(E)),b=F.next();!b.done;b=F.next()){var l=b.value,r=E[l];try{this[l]=ggz.resolve(r)}catch(a){throw a;}}}catch(a){throw Error(a.message);
}}};var S5X;var q5A=/\bclass\b/.test(function(){}.toString()),d8G=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var u2U=function(v){this.wasDefined=!0;Array.isArray(v)||v instanceof Array?(this.JSC$11145_getImpl=v[0],this.JSC$11145_setImpl=v[1]):this.JSC$11145_getImpl=v};
_.c=u2U.prototype;_.c.getWithPath=function(v){return hO1(this.JSC$11145_getImpl(),v)};
_.c.setWithPath=function(v,E){var n=this;if(v.length)throw Error("lg");if(!this.JSC$11145_setImpl)throw Error("mg");fp(function(){n.JSC$11145_setImpl(E)})};
_.c.notifyPath=function(){throw Error("ng");};
_.c.notifySplices=function(){throw Error("og");};
_.c.getChangeRecordSignal=function(v,E){var n=this;if(v.length)throw Error("pg");return function(){var f=n.getWithPath(v);return{path:E!=null?E:"",base:f,value:f}}};
_.c.getSplicesSignal=function(){throw Error("qg");};
_.c.getPathMutationSignal=function(){throw Error("rg");};
_.c.pop=function(){throw Error("sg");};
_.c.push=function(){throw Error("tg");};
_.c.splice=function(){throw Error("ug");};
_.c.unshift=function(){throw Error("vg");};var eV=function(v){var E=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(v)||v instanceof Array?(this.JSC$11150_getImpl=v[0],this.JSC$11150_setImpl=v[1]):this.JSC$11150_getImpl=v;this.wasDefined=!1;Rc(function(){E.wasDefined=E.JSC$11150_getImpl()!==void 0})};
eV.prototype.getWithPath=function(v){return hO1(this.JSC$11150_getImpl(),v)};
eV.prototype.setWithPath=function(v,E){var n=this;if(v[v.length-1]!=="*"&&v[v.length-1]!=="splices"){if(v.length===0){if(!this.JSC$11150_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=E!==void 0);fp(function(){n.JSC$11150_setImpl(E)})}else{for(var f=Rc(function(){return n.getWithPath([])}),x=0;x<v.length-1;x++){if(!f)return;
f=f[v[x]]}x=v[v.length-1];f&&(f[x]=E);this.wasDefined||(this.wasDefined=v.length>1||E!==void 0)}jH6(this,v,{pathComponents:v,value:E})}};
eV.prototype.notifyPath=function(v,E){v.length===0?E&&this.setWithPath(v,E.value):jH6(this,v,{pathComponents:v,value:E==null?void 0:E.value,fallbackWhenUndefined:E==null?void 0:E.value})};
var jH6=function(v,E,n,f){if(v.setMutationSignal){var x=++v.mutationIndex,y=[v.observedPath],Q=v.observedPath,e;E.length===0&&(e=Q);for(var F=0;F<E.length;F++){var b=Q.subPaths[E[F]];if(!b)break;y.push(b);Q=b;F===E.length-1&&(e=b)}for(E=!1;y.length;)Q=y.shift(),Q.data={index:x,mutation:n,spliceMutationIndex:f},E||(E=Q===e),E&&y.push.apply(y,_.s8(Object.values(Q.subPaths)));fp(function(){v.setMutationSignal(x)})}};
eV.prototype.notifySplices=function(v,E){var n=this,f=Rc(function(){return n.getWithPath(v)}),x=[].concat(_.s8(v),["splices"]);
jH6(this,x,{pathComponents:x,value:{indexSplices:E}});if(f==null?0:f.length)E=this.mutationIndex,x=[].concat(_.s8(v),["length"]),jH6(this,x,{pathComponents:x,value:f.length},E)};
var OqX=function(v,E,n,f,x,y){v.notifySplices(n,[{index:f,addedCount:x,removed:y,object:E,type:"splice"}])},kIl=function(v,E){v=v.observedPath;
for(var n=0;n<E.length;n++){var f=E[n],x=v.subPaths[f];x||(x={pathComponents:E.slice(0,n+1),subPaths:{}},v.subPaths[f]=x);v=x}},$MS=function(v,E,n){kIl(v,E);
if(!v.getMutationSignal){var f=_.p(_.t7(v.mutationIndex,void 0,"HavCgf"));v.getMutationSignal=f.next().value;v.setMutationSignal=f.next().value}var x=v.getMutationSignal;return _.o0(function(){x();return n(Wr1(v,E))},void 0,"BYaPo")};
eV.prototype.getChangeRecordSignal=function(v,E){var n=this,f=this.mutationIndex,x;return $MS(this,v,function(y){if(y&&y.index>f){var Q=y.mutation;f=y.index;x=void 0}y=Rc(function(){return n.getWithPath(v)});
if(Q){var e=Q.pathComponents[Q.pathComponents.length-1],F=[].concat(_.s8(Q.pathComponents));if(e==="splices"||e==="length")return{base:y,path:(E?[E].concat(_.s8(F)):F).join("."),value:Q.value};var b=v.length>F.length?v:F,l;return{base:y!=null?y:Q.fallbackWhenUndefined,path:(E?[E].concat(_.s8(b)):b).join("."),value:(l=Rc(function(){return n.getWithPath(b)}))!=null?l:Q.fallbackWhenUndefined}}x||(x={base:y,
path:(E?[E].concat(_.s8(v)):v).join("."),value:y});return x})};
eV.prototype.getSplicesSignal=function(v){var E=this.mutationIndex,n;return $MS(this,v,function(f){if(f&&f.index>E&&f.spliceMutationIndex!==E){var x=f.mutation;E=f.index;n=void 0}return x&&x.pathComponents[x.pathComponents.length-1]==="splices"?n=f=x.value:n})};
eV.prototype.getPathMutationSignal=function(v){var E=this;kIl(this,v);if(!this.getMutationSignal){var n=_.p(_.t7(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=n.next().value;this.setMutationSignal=n.next().value}var f=this.getMutationSignal,x=this.mutationIndex,y;return _.o0(function(){f();var Q=Wr1(E,v);if(Q&&Q.index>x&&Q.mutation&&Aw9(Q.mutation.pathComponents,v)){var e=Q.mutation;x=Q.index}if(!y||x!==y.index){var F,b;Q=(b=Rc(function(){return E.getWithPath(v)}))!=null?b:(F=e)==null?
void 0:F.fallbackWhenUndefined;
y={index:x,value:Q}}return y},void 0,"Aumsyf")};
var Wr1=function(v,E){v=v.observedPath;E=_.p(E);for(var n=E.next();!n.done;n=E.next())v=v.subPaths[n.value];return v.data};
eV.prototype.pop=function(v){var E=this,n=Rc(function(){return E.getWithPath(v)});
if(!(n instanceof Array))throw Error("xg");var f=n.length>0,x=n.pop();f&&OqX(this,n,v,n.length,0,[x]);return x};
eV.prototype.push=function(v){var E=_.rV.apply(1,arguments),n=this,f=Rc(function(){return n.getWithPath(v)});
if(!(f instanceof Array))throw Error("yg");var x=f.length,y=f.push.apply(f,_.s8(E));E.length&&OqX(this,f,v,x,E.length,[]);return y};
eV.prototype.splice=function(v,E,n){var f=_.rV.apply(3,arguments),x=this,y=Rc(function(){return x.getWithPath(v)});
if(!(y instanceof Array))throw Error("zg");E<0?E=y.length-Math.floor(-E):E&&(E=Math.floor(E));var Q=y.splice.apply(y,[E,n].concat(_.s8(f)));(f.length||Q.length)&&OqX(this,y,v,E,f.length,Q);return Q};
eV.prototype.unshift=function(v){var E=_.rV.apply(1,arguments),n=this,f=Rc(function(){return n.getWithPath(v)});
if(!(f instanceof Array))throw Error("Ag");var x=f.unshift.apply(f,_.s8(E));E.length&&OqX(this,f,v,0,E.length,[]);return x};var Lrz=!0,GIF=!1,bq9=!1,TvX=!1,Fg=!1,iql=0;TvX=!1;iql=0;Lrz=!0;Fg=GIF=bq9=!1;var mL=function(v,E,n){this.model=v;this.unknownSignalResolver=E;this.options=n;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];E=_.p(kPL());v=E.next().value;E=E.next().value;this.owner=v;this.disposeImpl=E};
mL.prototype.dispose=function(){if(!this.isDisposed){for(var v=_.p(this.childSignalProxies),E=v.next();!E.done;E=v.next())E.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var zPo=function(v,E){v=DB(v.owner);try{E()}finally{DB(v)}};
mL.prototype.effect=function(v){zPo(this,function(){_.ea(v)})};
var RP6=function(v,E){v.options!=null||(v.options={});var n;(n=v.options).immutableProps!=null||(n.immutableProps=new Set);v.options.immutableProps.add(E)},w$s=function(v,E){E=""+E;
tAF(v,E);var n;if((n=v.model.__signalCache)==null?0:n.has(E))n=v.model.__signalCache.get(E),Array.isArray(n)&&RP6(v,E);var f,x,y;return(y=(f=v.options)==null?void 0:(x=f.immutableProps)==null?void 0:x.has(E))!=null?y:!1},Bvl=function(v,E){var n;
v.unknownSignalResolver&&(n=v.unknownSignalResolver(E));var f,x;((f=v.options)==null?0:(x=f.immutableProps)==null?0:x.has(E))?n!=null||(n=new u2U(_.t7(v.model[E],void 0,"Xu3svb"))):n!=null||(n=new eV(_.t7(v.model[E],void 0,"NgC9n")));var y=v.model.hostElement;Object.defineProperty(v.model,E,{get:function(){m81(y,E);return n.getWithPath([])},
set:function(Q){tV(y,E);v.setWithPath([E],Q)},
configurable:!0});return n},tAF=function(v,E){var n,f,x;
((n=v.model.__signalCache)==null||!n.has(E))&&((f=v.options)==null?0:(x=f.externalSignalProps)==null?0:x.has(E))&&v.model[E]},eI=function(v,E){E=""+E;
var n=v.signalCache[E];if(n!==void 0)return n;n=!1;tAF(v,E);var f;if((f=v.model.__signalCache)==null?0:f.has(E))if(n=v.model.__signalCache.get(E),Array.isArray(n))n=!0,RP6(v,E);else return v.signalCache[E]=v.model.__signalCache.get(E).signal,v.signalCache[E];var x,y;f=(y=(x=v.options)==null?void 0:x.reactivityMode)!=null?y:0;var Q,e;if(!((Q=v.options)==null?0:(e=Q.reactiveProps)==null?0:e.has(E))&&!n&&f===1)throw Error("Bg`"+E);x=n?v5i(v,E):Bvl(v,E);return v.signalCache[E]=x},v5i=function(v,E){var n=
Object.getOwnPropertyDescriptor(v.model.constructor.prototype,E),f=function(){return v.model[E]};
return new u2U(n&&n.get&&!n.set?f:[f,function(x){v.model[E]=x}])};
mL.prototype.getWithPath=function(v){var E=_.p(v);v=E.next().value;E=YE(E);m81(this.model.hostElement,""+v);return eI(this,v).getWithPath(E)};
mL.prototype.setWithPath=function(v,E){if(v.length){tV(this.model.hostElement,v.join("."));var n=_.p(v);v=n.next().value;n=YE(n);eI(this,v).setWithPath(n,E)}};
mL.prototype.getPathMutationSignal=function(v){var E=_.p(v);v=E.next().value;E=YE(E);return eI(this,v).getPathMutationSignal(E)};
mL.prototype.notifyPath=function(v,E){var n=_.p(v);v=n.next().value;n=YE(n);eI(this,v).notifyPath(n,E)};
var E5o=function(v,E){if(E.type==="literal")return function(){return{rootWasDefined:!0,value:E.value}};
var n=QV(E.path),f=_.p(n),x=f.next().value;f=YE(f);var y,Q;if(E.type==="path"&&(n.length===1||((y=v.options)==null?0:(Q=y.immutableProps)==null?0:Q.has(x))))return function(){var r=v.getWithPath(n.slice(0,1)),a=hO1(r,n.slice(1));r=r!==void 0;Fg&&(r=eI(v,n[0]).wasDefined);return{rootWasDefined:r,value:a}};
var e=eI(v,x);if(E.type==="path"){var F=e.getPathMutationSignal(f);return function(){var r=Fg?e.wasDefined:la(v.owner,function(){return e.getWithPath([])})!==void 0;
var a,M=(a=F())==null?void 0:a.value;return{rootWasDefined:r,value:M}}}if(E.type==="splices"){var b=e.getSplicesSignal(f);
return function(){var r=b();return{rootWasDefined:Fg?e.wasDefined:r!==void 0,value:r}}}var l=e.getChangeRecordSignal(f,""+x);
return function(){var r=l();return{rootWasDefined:Fg?e.wasDefined:r!==void 0,value:r}}},uKG=function(v,E,n){var f=n.map(function(e){return E5o(v,e)}),x=n.length===0,y=[],Q=n.length!==1||n[0].type!=="path"?!1:!0;
v.effect(function(){for(var e=f.length,F=[],b=!!y.length,l=0;l<e;l++){var r=f[l](),a=r.rootWasDefined;r=r.value;x||(x=a);F[l]=r;Q&&(F[l+e]=b?y[l]:F[l],y[l]=r)}x&&la(v.owner,function(){return void E.apply(null,_.s8(F))})})},VzX=function(v,E,n,f,x){var y=eI(v,E);
x!==void 0&&y.setWithPath([],x);uKG(v,function(){var Q=_.rV.apply(0,arguments);tV(v.model.hostElement,E,!0);y.setWithPath([],n.apply(null,_.s8(Q)))},f)};
mL.prototype.arrayPush=function(v){var E=_.rV.apply(1,arguments),n=_.p(v),f=n.next().value;n=YE(n);f=eI(this,f);return f.push.apply(f,[n].concat(_.s8(E)))};
mL.prototype.arraySplice=function(v,E,n){var f=_.rV.apply(3,arguments),x=_.p(v),y=x.next().value;x=YE(x);y=eI(this,y);return y.splice.apply(y,[x,E,n].concat(_.s8(f)))};
mL.prototype.arrayUnshift=function(v){var E=_.rV.apply(1,arguments),n=_.p(v),f=n.next().value;n=YE(n);f=eI(this,f);return f.unshift.apply(f,[n].concat(_.s8(E)))};
mL.prototype.notifySplices=function(v,E){var n=_.p(v);v=n.next().value;n=YE(n);eI(this,v).notifySplices(n,E)};var iwX=/([^\s]+?)\(([\s\S]*)\)/,Lh1=/\.([^.]+)$/,ROA=/\\,/g,WhI=/&comma;/g,$8E=/\\(.)/g,zOQ=[],GPy={"*":"wildcard",splices:"splices"};var ykL=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"),oFI=/[A-Z]/,n5P=["class","hidden","id","on-dom-change"],QBL=new Set([].concat(_.s8(n5P),
["if","notify-dom-change","restamp"])),X$X=new Set([].concat(_.s8(n5P),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),ea9=new Set(["restamp"]);var QRy=new Set(["className","id"]);var lts=Symbol(),M69=window;var YAA=window;var NIE=0,V6L=0,Fy=[],gFA=0,Aky=!1,HXX=document.createTextNode("");(new window.MutationObserver(DUG)).observe(HXX,{characterData:!0});var wq=new Map,m$=0,o51=function(v){this.mappedHandleId=v},jBG=function(v,E,n,f){this.mappedHandleId=v;
var x=this;this.mappedHandleId=v;this.callback=E;this.waitTime=n;this.schedulerPriority=f;this.handleId=_.wh.addJob(function(){x.callback();wq.delete(x.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.S(jBG,o51);jBG.prototype.cancel=function(){_.wh.cancelJob(this.handleId);wq.delete(this.mappedHandleId)};
var OXX=function(v,E){this.mappedHandleId=v;var n=this;this.mappedHandleId=v;this.callback=E;this.handleId=u4s(function(){n.callback();wq.delete(n.mappedHandleId)})};
_.S(OXX,o51);OXX.prototype.cancel=function(){var v=this.handleId-V6L;v<0||Fy.length<=v||(Fy[v]=null);wq.delete(this.mappedHandleId)};var LCQ=function(){};
LCQ.prototype.cancel=function(){this.jobHandle!==void 0&&(kmE(this.jobHandle),this.jobHandle=void 0)};
LCQ.prototype.run=function(v,E,n){var f=this;this.cancel();this.callback=v;this.jobHandle=_.bz(function(){v();f.callback=void 0},E,n)};
LCQ.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var WCA=new WeakMap;var f5X=j2(function(v){for(var E=v,n=0;n<3;n++)E=Object.getPrototypeOf(E);delete E.prototype.connectedCallback;var f=function(){return v.apply(this,arguments)||this};
_.S(f,v);f.prototype._attachDom=function(x){if(!x)return null;var y=(0,_.gn)(this.hostElement);y.attachShadow({mode:"open",shadyUpgradeFragment:x});y.shadowRoot.appendChild(x);return y.shadowRoot};
f.prototype._takeAttributes=function(){for(var x=this.hostElement.attributes,y=0;y<x.length;y++){var Q=x[y],e=void 0,F=void 0;(F=(e=this).__attributeReaction)==null||F.call(e,Q.name,null,Q.value)}};
f.prototype._readyClients=function(){v.prototype._readyClients.call(this);this.root=this};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);v.prototype.connectedCallback.call(this)};
_.hK.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){return f.prototype._template}}});
return f}),xGP=j2(function(v){var E=function(){return v.apply(this,arguments)||this};
_.S(E,v);E.prototype.created=function(){if(this.__notifyEffects)for(var n=_.p(Object.values(this.__notifyEffects)),f=n.next();!f.done;f=n.next()){f=_.p(f.value);for(var x=f.next();!x.done;x=f.next())x.value.fn=zaG}if(this.__reflectEffects)for(n=_.p(Object.values(this.__reflectEffects)),f=n.next();!f.done;f=n.next())for(f=_.p(f.value),x=f.next();!x.done;x=f.next())x.value.fn=RaX};
E.prototype._addEventListenerToNode=function(n,f,x){n=se(n);mt(n,f,x)||v.prototype._addEventListenerToNode.call(this,n,f,x)};
E.prototype._removeEventListenerFromNode=function(n,f,x){n=se(n);w6(n,f,x)||v.prototype._removeEventListenerFromNode.call(this,n,f,x)};
E.prototype._propertiesChanged=function(n,f,x){if(this.__dataToNotify&&this.__notifyEffects)for(var y=_.p(Object.keys(this.__dataToNotify)),Q=y.next();!Q.done;Q=y.next()){Q=Q.value;var e=iXX(Q);this.__notifyEffects[e]||delete this.__dataToNotify[Q]}else this.__dataToNotify=null;v.prototype._propertiesChanged.call(this,n,f,x)};
E.prototype.fire=function(n,f,x){f=f===void 0?{}:f;var y;return _.jK(se((y=x==null?void 0:x.node)!=null?y:this),n,f,x)};
E.prototype._ensureAttribute=function(n,f){var x=se(this);x.hasAttribute(n)||Xy(x,f,n)};
E.prototype.isLightDescendant=function(n){var f=se(this);return se(f)!==n&&_.K(f).contains(n)&&_.K(f).getRootNode()===_.K(n).getRootNode()};
return E});
_.mw.ready=function(){var v;((v=this.hostElement)!=null?v:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var E;((E=this.hostElement)!=null?E:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.ZT._subscribeIronResize=function(v){var E;((E=v.hostElement)!=null?E:v).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.ZT._unsubscribeIronResize=function(v){var E;((E=v.hostElement)!=null?E:v).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var vgQ=[Array,Boolean,Date,Number,Object,String],PE=function(v,E,n,f){this.polySiInfo=v;this.polySiParams=E;this.polySiContext=n;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;f||this instanceof HTMLElement&&(f=this);if(!f)throw Error("Ig");this.allowedProps=E.allowedProps;this.hostElement=f;this.is=v.is;this.upgradeDisabled=!!E.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");v=new Set(E.reactiveSchemas.filter(function(x){return x.type!==
"observe"}).map(function(x){return x.propertyKey}));
this.signalProxy=new mL(this,void 0,{reactiveProps:v,reactivityMode:E.reactivityMode});this.__dataHasAccessor={};E=_.p(E.reactiveSchemas);for(v=E.next();!v.done;v=E.next())v=v.value,v.type==="signal"&&(this.__dataHasAccessor[v.propertyKey]=!0);this.upgradeDisabled||cXF(this)};
PE.prototype.getExtraMethodsToForward=function(){return[]};
var cXF=function(v){v.polySiContext.didRegister||(v.registered(),v.polySiContext.didRegister=!0);v.polySiContext.finalizedTemplate||(v.polySiContext.finalizedTemplate={},v.polySiParams.templateGetter&&(v.polySiContext.finalizedTemplate.processedTemplate=haQ(v.polySiParams.templateGetter,v.polySiParams.is)));yX4(v);var E=v.hostElement;E.loggingStatus!=null||(E.loggingStatus={});E.loggingStatus.isInitializing=!0;Rc(function(){return void v.created()});
E.loggingStatus.isInitializing=!1;v.isPolySiElementConnected&&p0S(v)},p0S=function(v){v.didCallReady||(Rc(function(){return void v.ready()}),v.didCallReady=!0);
v.isAttached=!0;v.attached()};
_.c=PE.prototype;_.c.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||p0S(this)};
_.c.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.c.attributeChangedCallback=function(v,E,n){if(this.upgradeDisabled)v==="disable-upgrade"&&n===null&&(this.upgradeDisabled=!1,cXF(this));else if(E!==n){var f=_.BZ(v),x=this.polySiContext.typesForSignals[f];if(x&&(!this.reflecting||_.Z("polysi_attribute_changed_serializing_killswitch"))){switch(x){case Object:try{var y=JSON.parse(n)}catch(e){y=n}break;case Array:try{y=JSON.parse(n)}catch(e){y=null}break;case Date:y=isNaN(n)?String(n):Number(n);y=new Date(y);break;case Boolean:y=n!==null;break;case Number:y=
Number(n);break;default:y=n}this[f]=y}f=_.p(this.polySiParams.behaviors);for(x=f.next();!x.done;x=f.next())y=void 0,(y=x.value.attributeChanged)==null||y.call(this,v,E,n);var Q;(Q=this.attributeChanged)==null||Q.call(this,v,E,n)}};
_.c.attributeChangedCallbackWrapper=function(v,E,n){this.attributeChangedCallback(v,E,n)};
_.c.setPropertiesFromInitialAttributeValues=function(){for(var v=0;v<this.hostElement.attributes.length;v++){var E=this.hostElement.attributes[v];(E.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(E.name))&&this.attributeChangedCallback(E.name,null,E.value)}};
_.c.created=function(){this.provide=this.polySiParams.provide;var v;(v=this.initializeInjection)==null||v.call(this);v=_.p(this.polySiParams.reactiveSchemas);for(var E=v.next();!E.done;E=v.next())E=E.value,E.type==="signal"&&(this.mutablePropNames.add(E.propertyKey),eI(this.signalProxy,E.propertyKey));BIE(this,this.polySiInfo,this.polySiParams.behaviors);v=_.p(this.polySiParams.reactiveSchemas);for(E=v.next();!E.done;E=v.next())E=E.value,E.type==="signal"&&E.value!==void 0&&(this.signalProxy.model[E.propertyKey]=
typeof E.value==="function"?E.value.call(this):E.value);if(this.polySiParams.signalProperties)for(v=_.p(this.polySiParams.signalProperties),E=v.next();!E.done;E=v.next()){E=E.value;var n=void 0;((n=this.__signalCache)==null?0:n.has(E))||(this.signalProxy.model[E]=void 0)}TvX||QR4(this);t6$(this);v=_.p(this.polySiParams.behaviors);for(E=v.next();!E.done;E=v.next())n=void 0,(n=E.value.created)==null||n.call(this);var f;(f=this.polySiInfo.created)==null||f.call(this)};
_.c.registered=function(){var v=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var E=Object.getPrototypeOf(this);E.addReactiveSchema=function(e){v.polySiParams.reactiveSchemas.push(e)};
for(var n=_.p(this.polySiParams.behaviors),f=n.next();!f.done;f=n.next()){var x=void 0;(x=f.value.beforeRegister)==null||x.call(E)}var y;(y=this.polySiInfo.beforeRegister)==null||y.call(E);E.addReactiveSchema=ngN;n=_.p(this.polySiParams.behaviors);for(f=n.next();!f.done;f=n.next())x=void 0,(x=f.value.registered)==null||x.call(E);var Q;(Q=this.polySiInfo.registered)==null||Q.call(E)};
_.c.ready=function(){var v;(v=this.beforeReady)==null||v.call(this);TvX&&QR4(this);var E;if(v=(E=this.polySiContext.finalizedTemplate)==null?void 0:E.processedTemplate){v=ItF(v.template,v.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:v.hasInsertionPoint,thisCtx:this});E=v.nodesById;v=v.root;var n=this.hostElement;var f=f===void 0?!1:f;n=(0,_.gn)(n);if(!n.attachShadow)throw Error("Cd");if(!n.shadowRoot||f)n.attachShadow({mode:"open",shadyUpgradeFragment:v}),n.shadowRoot.appendChild(v);
this.root=n.shadowRoot;this.$=E}X0l(this);f=_.p(this.polySiParams.behaviors);for(E=f.next();!E.done;E=f.next())v=void 0,(v=E.value.ready)==null||v.call(this);var x;(x=this.polySiInfo.ready)==null||x.call(this)};
_.c.attached=function(){for(var v=_.p(this.polySiParams.behaviors),E=v.next();!E.done;E=v.next()){var n=void 0;(n=E.value.attached)==null||n.call(this)}var f;(f=this.polySiInfo.attached)==null||f.call(this)};
_.c.detached=function(){for(var v=_.p(this.polySiParams.behaviors),E=v.next();!E.done;E=v.next()){var n=void 0;(n=E.value.detached)==null||n.call(this)}var f;(f=this.polySiInfo.detached)==null||f.call(this)};
var yX4=function(v){for(var E=_.p(v.polySiParams.behaviors),n=E.next();!n.done;n=E.next())if(n=n.value,n.listeners)for(var f in n.listeners)dUL(v,v.hostElement,f,n.listeners[f]);if(v.polySiInfo.listeners)for(var x in v.polySiInfo.listeners)dUL(v,v.hostElement,x,v.polySiInfo.listeners[x])},dUL=function(v,E,n,f,x){v=Y5I(v,f,x);
mt(E,n,v)||E.addEventListener(n,v);return v},QR4=function(v){for(var E=_.p(v.polySiParams.reactiveSchemas),n=E.next();!n.done;n=E.next())n=n.value,n.type==="compute"||n.type==="computeWithMethod"?D8X(v.signalProxy,n,v):n.type==="redux"?NiX(v.signalProxy,n,v.store):n.type==="signal"&&n.readOnly&&gx1(v.signalProxy,n)},X0l=function(v){for(var E=_.p(v.polySiParams.reactiveSchemas),n=E.next(),f={};!n.done;f={schema$jscomp$12:void 0},n=E.next())f.schema$jscomp$12=n.value,f.schema$jscomp$12.type==="notify"?
jhy(v.signalProxy,f.schema$jscomp$12,v.hostElement):f.schema$jscomp$12.type==="observe"?OwL(v.signalProxy,f.schema$jscomp$12,v):f.schema$jscomp$12.type==="reflect"&&v.signalProxy.effect(function(y){return function(){var Q=v.signalProxy.getWithPath([y.schema$jscomp$12.propertyKey]);
v.reflecting=!0;BiL(v.hostElement,y.schema$jscomp$12.propertyKey,Q,!0);v.reflecting=!1}}(f));
if(v.reflectedAttributes)for(E=_.p(Object.entries(v.reflectedAttributes)),f=E.next(),n={};!f.done;n={key$jscomp$873:void 0,value$jscomp$8786:void 0},f=E.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;n.key$jscomp$873=f;n.value$jscomp$8786=x;v.signalProxy.effect(function(y){return function(){v.reflecting=!0;BiL(v.hostElement,y.key$jscomp$873,(0,y.value$jscomp$8786)(),!0);v.reflecting=!1}}(n))}};
_.c=PE.prototype;_.c._setPendingProperty=function(v,E){this.set(v,E);return!1};
_.c._enableProperties=function(){};
_.c._setPendingPropertyOrPath=function(v,E){this.notifyPath(v,E);return!1};
_.c._addPropertyEffect=function(){};
_.c._stampTemplate=function(){throw Error("Jg");};
_.c.fire=function(v,E,n){E=E===void 0?{}:E;n=n===void 0?{}:n;var f,x,y={bubbles:(f=n.bubbles)!=null?f:!0,cancelable:!!n.cancelable,composed:(x=n.composed)!=null?x:!0},Q;return _.jK(ogX((Q=n.node)!=null?Q:this.hostElement),v,E,y)};
_.c.get=function(v,E){var n=QV(v);return E?hO1(E,n):v==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(n)};
_.c.linkPaths=function(){};
_.c.listen=function(v,E,n){v=ogX(v);this.boundListeners!=null||(this.boundListeners=new WeakMap);var f=this.boundListeners.get(v);f||(f={},this.boundListeners.set(v,f));var x=E+n;f[x]||(f[x]=dUL(this,v,E,n))};
_.c.notifyPath=function(v,E){this.signalProxy.notifyPath(QV(v),arguments.length===2?{value:E}:void 0)};
_.c.canNotifyPath=function(v){var E,n;return this.mutablePropNames.has(v)&&!((E=this.signalProxy.options)==null?0:(n=E.immutableProps)==null?0:n.has(v))};
_.c.notifySplices=function(v,E){this.signalProxy.notifySplices(QV(v),E)};
_.c.pop=function(v){var E=this.signalProxy;v=QV(v);var n=_.p(v);v=n.next().value;n=YE(n);return eI(E,v).pop(n)};
_.c.push=function(v){var E=_.rV.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[QV(v)].concat(_.s8(E)))};
_.c.set=function(v,E,n){if(n)throw Error("Kg");v==="hidden"?this.hostElement.hidden=!!E:this.signalProxy.setWithPath(QV(v),E)};
_.c.setProperties=function(v){v=_.p(Object.entries(v));for(var E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;this[E]=n}};
_.c.splice=function(v,E,n){var f=_.rV.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[QV(v),E,n].concat(_.s8(f)))};
_.c.unlinkPaths=function(){};
_.c.unlisten=function(v,E,n){v=ogX(v);if(this.boundListeners){var f=this.boundListeners.get(v);if(f){n=E+n;var x=f[n];x&&(w6(v,E,x)||v.removeEventListener(E,x),delete f[n])}}};
_.c.unshift=function(v){var E=_.rV.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[QV(v)].concat(_.s8(E)))};
_.hK.Object.defineProperties(PE.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 wKE=[Array,Boolean,Date,Number,Object,String];var sHN=!1;var wm=function(){var v=HTMLElement.apply(this,arguments)||this;v.restamp=!1;v.notifyDomChange=!1;v.JSC$11255_didCallConnected=!1;v.JSC$11255_renderDebouncer=null;v.disableTemplateUpdateSignalImpl=aU()?void 0:_.t7(!1,void 0,"zLXz1e");var E;v.getDisableTemplateUpdate=(E=v.disableTemplateUpdateSignalImpl)==null?void 0:E[0];var n;v.setDisableTemplateUpdate=(n=v.disableTemplateUpdateSignalImpl)==null?void 0:n[1];return v};
_.S(wm,HTMLElement);var e1F=function(v){v.conditionSignalImpl!=null||(v.conditionSignalImpl=new eV(_.t7(!1,void 0,"wcuOQ")));return v.conditionSignalImpl};
_.c=wm.prototype;_.c.showHideChildren=function(v){Fq4(this,v,this.if)};
_.c.attributeChangedCallback=function(v,E,n){if(this.JSC$11255_didCallConnected)throw Error("Og`"+v);v==="notify-dom-change"?this.notifyDomChange=n!==null:v==="restamp"&&(this.restamp=n!==null)};
_.c.debounceRender=function(){this.JSC$11255_renderDebouncer=_.tS(this.JSC$11255_renderDebouncer,l$,this.JSC$11255_renderImpl.bind(this));_.BN(this.JSC$11255_renderDebouncer)};
_.c.disconnectedCallback=function(){var v=(0,_.gn)(this).parentNode;(!v||v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in v&&!v.host)&&mGU(this)};
_.c.connectedCallback=function(){var v=this;this.JSC$11255_didCallConnected=!0;Lrz?rWX():this.style.display="none";this.parentSignalProxy.effect(function(){e1F(v).getWithPath([]);v.debounceRender()})};
_.c.render=function(){_.o4()};
_.c.JSC$11255_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var v=this.if;if(v){a:{var E=(0,_.gn)(this).parentNode;if(this.hasInstance()){var n=this.instance.children;if((n==null?0:n.length)&&(0,_.gn)(this).previousSibling!==n[n.length-1])for(var f=0;f<n.length;f++)(0,_.gn)(E).insertBefore(n[f],this)}else{if(!E){E=!1;break a}w0S(this,E)}E=!0}if(!E)return}else this.restamp&&mGU(this);Fq4(this,!1,v);v&&bag(this);GIF&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.c.hasInstance=function(){return!!this.instance};
var w0S=function(v,E){var n=v.parentSignalProxy;if(aU()){var f=_.p(_.t7(!0,void 0,"wXzgnc"));var x=f.next().value;f=f.next().value;n=v.parentSignalProxy}else{var y;var Q=new mL((y=l5o(v))!=null?y:{},function(F){var b=eI(v.parentSignalProxy,F).getChangeRecordSignal([]);F=_.t7(void 0,void 0,"mryEkc");var l=new eV(F);Q.effect(function(){if(v.getDisableTemplateUpdate&&!v.getDisableTemplateUpdate()){var r=b();l.notifyPath(QV(r.path),{value:r.value})}});
return l});
v.parentSignalProxy.childSignalProxies.push(Q);var e=n=Q}n=ItF(v.templateInfo,v.templateInfo.nodeInfoList,n,{eventListenerHost:v.eventListenerHost,hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,enabledSignal:aU()?x:void 0,getModel:function(){return l5o(v)}}).root;
v.instance={root:n,children:[],hidden:!1,signalProxy:e,getTemplateUpdatesEnabled:x,setTemplateUpdatesEnabled:f};e=_.p(n.childNodes);for(x=e.next();!x.done;x=e.next())v.instance.children.push(x.value);(0,_.gn)(E).insertBefore(v.instance.root,v)},l5o=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var E={},n;
for(n in v)v.hasOwnProperty(n)&&(E[n]=v[n]);return E}},mGU=function(v){if(v.instance){var E=v.instance.children;
if(E.length){var n=(0,_.gn)(E[0]).parentNode;if(n){n=(0,_.gn)(n);for(var f=0;f<E.length;f++)n.removeChild(E[f])}}aU()?v.instance.setTemplateUpdatesEnabled(!1):v.instance.signalProxy.dispose();v.instance=void 0}},Fq4=function(v,E,n){E=E||!n;
v.instance&&v.instance.hidden!==E&&(v.instance.hidden=E,lM9(E,v.instance.children))},bag=function(v){if(aU()){var E=v.instance;
E&&la(v.parentSignalProxy.owner,function(){return!E.getTemplateUpdatesEnabled()})&&E.setTemplateUpdatesEnabled(!0)}else v.setDisableTemplateUpdate(!1)};
_.hK.Object.defineProperties(wm.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var v=this;return la(this.parentSignalProxy.owner,function(){return e1F(v).getWithPath([])})},
set:function(v){v||(aU()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));e1F(this).setWithPath([],!!v)}}});
_.hK.Object.defineProperties(wm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",wm);var sRo=[],bQ=function(){var v=HTMLElement.apply(this,arguments)||this;v.as="item";v.indexAs="index";v.itemsIndexAs="itemsIndex";v.targetFramerate=20;v.notifyDomChange=!1;v.isDetached=!1;v.JSC$11262_renderDebouncer=null;v.instances=[];v.chunkingId=null;v.chunkCount=null;v.shouldMeasureChunk=!1;v.shouldContinueChunking=!1;v.renderStartTime=null;v.JSC$11262_didCallConnected=!1;return v};
_.S(bQ,HTMLElement);var rXF=function(v){v.itemSignalImpl!=null||(v.itemSignalImpl=new eV(_.t7(sRo,void 0,"YBrqgf")));return v.itemSignalImpl},P1X=function(v,E){Array.isArray(E)||(E=sRo);
rXF(v).setWithPath([],E)};
_.c=bQ.prototype;_.c.showHideChildren=function(v){for(var E=_.p(this.instances),n=E.next();!n.done;n=E.next())lM9(v,n.value.children)};
_.c.notifyPath=function(v,E){v=QV(v);v[0]==="items"&&(v.length===1?P1X(this,E):rXF(this).setWithPath(v.slice(1),E))};
_.c.canNotifyPath=function(v){return v==="items"};
_.c.attributeChangedCallback=function(v,E,n){if(this.JSC$11262_didCallConnected)throw Error("Pg`"+v);v==="as"?this.as=n:v==="index-as"?this.indexAs=n:v==="items-index-as"?this.itemsIndexAs=n:v==="initial-count"?this.initialCount=Number(n):v==="notify-dom-change"?this.notifyDomChange=n!==null:v==="target-framerate"&&(this.targetFramerate=Number(n))};
_.c.disconnectedCallback=function(){this.isDetached=!0;for(var v=0;v<this.instances.length;v++)a51(this,v);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.c.connectedCallback=function(){var v=this,E=rXF(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var x=E(),y=QV(x.path);if(y[0]===void 0||y[0]==="splices"||y[0]==="length")v.debounceRender();else{var Q=y[0];if(Q=v.instances[typeof Q==="string"?Math.floor(Number(Q)):Q])y=[v.as].concat(_.s8(y.slice(1))),Q.signalProxy.notifyPath(y,x)}});
this.JSC$11262_didCallConnected=!0;Lrz?rWX():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var n=(0,_.gn)((0,_.gn)(this).parentNode),f=0;f<this.instances.length;f++)n.insertBefore(this.instances[f].root,this);this.chunkingId&&this.render()}};
_.c.debounceRender=function(){this.JSC$11262_renderDebouncer=_.tS(this.JSC$11262_renderDebouncer,l$,this.JSC$11262_renderImpl.bind(this));_.BN(this.JSC$11262_renderDebouncer)};
_.c.render=function(){this.debounceRender();_.o4()};
_.c.JSC$11262_renderImpl=function(){var v=this,E=this.items,n=Za1(this,E.length);C1U(this,E,n);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){v.chunkingId=null;if(v.shouldMeasureChunk){var f=performance.now()-v.renderStartTime;v.chunkCount=Math.round(Math.ceil(1E3/v.targetFramerate)/f*v.chunkCount)||1}v.shouldContinueChunking&&v.debounceRender()}));
GIF&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Za1=function(v,E){var n=E,f=v.instances.length;if(v.initialCount){if(v.chunkCount){var x=Math.min(Math.max(E-f,0),v.chunkCount);n=Math.min(f+x,E)}else n=Math.min(E,v.initialCount),x=Math.max(n-f,0),v.chunkCount=x||1;v.shouldMeasureChunk=x===v.chunkCount;v.shouldContinueChunking=n<E;v.renderStartTime=performance.now()}return n},C1U=function(v,E,n){for(var f=0;f<n;f++){var x=v.instances[f],y=E[f];
x?(x.signalProxy.setWithPath([v.as],y),x.signalProxy.setWithPath([v.indexAs],f)):MW1(v,y,f)}for(E=v.instances.length-1;E>=f;E--)n=v,x=E,a51(n,x),_.p(n.instances.splice(x,1)).next().value.signalProxy.dispose()},a51=function(v,E){v=v.instances[E];
E=(0,_.gn)(v.root);for(var n=0;n<v.children.length;n++)E.appendChild(v.children[n])},MW1=function(v,E,n){var f={};
E=Object.assign({},S4F(v),(f[v.as]=E,f[v.indexAs]=n,f[v.itemsIndexAs]=n,f));var x=new mL(E,function(Q){if(Q!==v.as&&Q!==v.indexAs){if(Q===v.itemsIndexAs)return eI(x,v.indexAs);var e=eI(v.parentSignalProxy,Q).getChangeRecordSignal([]);Q=_.t7(void 0,void 0,"Mu2Bwb");var F=new eV(Q);x.effect(function(){var b=e();F.notifyPath(QV(b.path),{value:b.value})});
return F}});
v.parentSignalProxy.childSignalProxies.push(x);f=ItF(v.templateInfo,v.templateInfo.nodeInfoList,x,{eventListenerHost:v.eventListenerHost,getModel:function(){var Q={};return Object.assign({},S4F(v),(Q[v.as]=x.model[v.as],Q[v.indexAs]=x.model[v.indexAs],Q[v.itemsIndexAs]=x.model[v.indexAs],Q))},
hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,methodInvocationRequirement:iql,enabledSignal:v.stampingEnabled}).root;E={root:f,children:[],signalProxy:x};f=_.p(f.childNodes);for(var y=f.next();!y.done;y=f.next())E.children.push(y.value);f=(f=v.instances[n+1])?f.children[0]:v;(0,_.gn)((0,_.gn)(v).parentNode).insertBefore(E.root,f);v.instances[n]=E},S4F=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var E={},n;
for(n in v)v.hasOwnProperty(n)&&(E[n]=v[n]);return E}};
bQ.prototype.itemForElement=function(v){var E=this,n=this.instances.find(function(f){return f.children.includes(v)});
if(n)return la(this.parentSignalProxy.owner,function(){return n.signalProxy.getWithPath([E.as])})};
bQ.prototype.indexForElement=function(v){var E=this.instances.findIndex(function(n){return n.children.includes(v)});
return E>=0?E:void 0};
_.hK.Object.defineProperties(bQ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var v=this;return la(this.parentSignalProxy.owner,function(){return rXF(v).getWithPath([])})},
set:function(v){P1X(this,v)}},
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}}});
_.hK.Object.defineProperties(bQ,{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",bQ);var UGF,q41;_.lQ=new _.$Y("STATE_STORE_TOKEN");UGF=new _.$Y("SELECT_TOKEN");q41=new _.$Y("DISPATCH_TOKEN");var SEQ={getSelectFn:function(){var v;return(v=_.P().resolve(_.jp(UGF)))!=null?v:PVQ},
getDispatchFn:function(){var v;return(v=_.P().resolve(_.jp(q41)))!=null?v:_.Zj().dispatch.bind(_.Zj())},
getAppStore:function(){return _.P().resolve(_.lQ)}},aM9,MAy=!1;var JWF=void 0;var JXg=function(){};
JXg.prototype.hasAttribute=function(v){if(v==="dir")return!1;if(v==="disable-upgrade"){var E,n;return(n=(E=this.hostElement)==null?void 0:E.hasAttribute("disable-upgrade"))!=null?n:!1}throw Error("Qg`"+v);};
JXg.prototype.attributeChangedCallbackWrapper=function(v,E,n){if(v==="disable-upgrade"&&this.__isUpgradeDisabled&&n===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var f;((f=this.hostElement)!=null?f:this).isConnected&&this.connectedCallback()}else E===n||this.__isReflecting||this.attributeChangedCallback(v,E,n)};
JXg.prototype.getExtraMethodsToForward=function(){for(var v=this,E=[],n=_.p(Kq1),f=n.next(),x={};!f.done;x={tagName$jscomp$52:void 0,name$jscomp$533:void 0},f=n.next())x.name$jscomp$533=f.value,f=void 0,x.name$jscomp$533==="_setPendingProperty"?(x.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),f=function(y){return function(Q,e,F){Rk(y.tagName$jscomp$52,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return v._setPendingProperty(Q,e,F)}}(x)):f=function(y){return function(){return v[y.name$jscomp$533].apply(v,
_.s8(_.rV.apply(0,arguments)))}}(x),E.push([x.name$jscomp$533,
f]);return E};
for(var VAX=xGP(f5X((0,_.Fl)(JXg))),NvA=["disabled","disable-upgrade"],dGl=(0,_.Fl)(function(){}),I5w=new Set(Object.getOwnPropertyNames(dGl.prototype)),WrN=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.s8(I5w))),jHG=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Kq1=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Y4F=new Set([].concat(_.s8(jHG),_.s8(Kq1),_.s8(I5w))),h1X=_.p(Y4F),AXX=h1X.next();!AXX.done;AXX=h1X.next())QhQ.add(AXX.value);var kI1={created:function(){t6$(this);this.initializeInjection()}};var Bv1=!1,IU=window.ShadyDOM,yXy=["appendChild","insertBefore","removeChild","replaceChild"],cX$=[Node];IU&&cX$.push(IU.Wrapper);var mGI,w0s,sR9={};var Ax=new Set,Yi="",rX$="";var hx,VV=new Set;var JXX=new Set("context didCallReady is info params signalProxy".split(" ")),dG1="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),I5X="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var VWX=zq({entities:SGA}),DGg=new KC(VWX);var sC=function(){return _.L2.apply(this,arguments)||this};
_.S(sC,_.L2);_.hK.Object.defineProperties(sC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return DGg}}});
sC=_.k([_.Gw()],sC);_.rm=[QB.prototype,sC.prototype];_.Ps={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var v=this,E={};setTimeout(function(){var n;return _.jK((n=v.hostElement)!=null?n:v,"yt-live-chat-add-tooltip-target",E)},0);
this.handler_=E.handler},
detached:function(){if(this.handler_){var v;this.handler_.removeElementFromSupportingTooltips((v=this.hostElement)!=null?v:this)}this.handler_=null}}};_.Oe=new _.$Y("ICON_MANAGER_TOKEN");var HaX=[48,20,18,16,15,13,12],BuE=new Map,Giy=new Set,WqE=new Set,Lq$=new Set,kiQ=new Set,$GA=new Set,iaL=new Promise(function(v){var E=!1,n=!1,f=!1,x=[],y=function(Q){if("detail"in Q)if(Q=Q.detail,Q.name==="yt-icons")TuA(Q),E=!0;else if(Q.name==="yt-sys-icons")TuA(Q),n=!0;else{var e;((e=Q.name)==null?0:e.includes("yt-sys-icons"))&&Q.size!==24&&(TuA(Q,!0),x.push(Q.size),x.length===HaX.length&&(f=!0))}E&&n&&f&&(window.removeEventListener("iron-iconset-added",y),v())};
window.addEventListener("iron-iconset-added",y)}),R1I=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"]]);_.aD={};_.aD.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.JC,computeHref_:function(v,E){E=E===void 0?!1:E;if(!v||v.commandExecutorCommand)return null;var n=v_A(v,E);return E||n!==null?n?_.Z("enable_polymer_resin")?_.bW(n).toString():n:null:(_.li(new _.yc("computeHref was null",this.is,v)),null)},
computeOptionalHref_:function(v){return this.computeHref_(v,!0)},
computeNofollow_:function(v){return v?$dX(v)?"nofollow":null:null},
computeIcon_:function(v){return v&&v.iconType?_.jI(v.iconType):""},
resolveCommand:function(v,E,n){E=E===void 0?{}:E;return _.WE(v,this.hostElement,E,n===void 0?!1:n)}};var NuF,ZQ;_.g51={};NuF=null;
ZQ={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_=gME(this.viewroot));_.bz(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var v=this;this.unobserve_();if(_.Z("kevlar_vimio_use_shared_monitor"))fwE(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 E=[];this.visibilityOptionVisible_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=E}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){vf1(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 v=_.Ss(this.parentNode,function(n){var f,x=(f=n.polymerController)!=null?f:n;return!!x.getVisibilityObserverForChild&&x.getVisibilityObserverForChild()},!0);
if(v){var E;this.localVisibilityObserver_=((E=v.polymerController)!=null?E:v).getVisibilityObserverForChild()}else NuF||(NuF=gME()),this.localVisibilityObserver_=NuF;return this.localVisibilityObserver_},visibilityCallback:function(v){v?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Z("kevlar_use_vimio_behavior")||(ZQ={});ZQ&&!_.Z("kevlar_use_vimio_behavior")&&(delete ZQ.attached,delete ZQ.detached);_.g51.YtVisibilityObserverBehavior=[ZQ];var uao={};uao.YtVisualElementBehavior=[_.g51.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Z("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Z("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var v=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportShown(this,void 0,v)}},
onHidden:function(){if(_.Z("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Z("kevlar_vimio_use_shared_monitor")){var v=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportHidden(this,void 0,v)}},
getVisibilityLogger:function(){return _.Z("kevlar_use_vimio_behavior")?_.L5():null},
shouldSkipLogging:function(){if(_.MX("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var v=this.getParentRenderer&&this.getParentRenderer();if(!v)return!1;var E,n=(E=v.polymerController)!=null?E:v;if(!n.data)return!1;v=this.data.trackingParams;v=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:v;var f;E=(f=n.data)==null?void 0:f.trackingParams;var x,y;E=((x=n.data)==null?0:x.loggingDirectives)?(y=n.data)==null?void 0:y.loggingDirectives.trackingParams:E;return v&&E&&v===
E}}];var pnE=new Map,BE;var mtE=function(v){this.layer=v},au=function(v){return v.layer!==void 0?v.layer:v.parent?au(v.parent):v.layer=0};var wnX;_.B={};wnX=0;_.B.YtRendererBehavior=[_.aD.YtComponentBehavior,uao.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_:_.Z("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var v,E;(E=(v=this.monitorScrollElement)!=null?v:this.hostElement)==null||E.removeEventListener("scroll",_.uo(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();clE(this.hostElement);GmP(_.R6(),this.hostElement);dj.delete(this.hostElement)},
registerRenderer:function(v){var E;((E=v.polymerController)!=null?E:v).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(v),this.markDirty())},
unregisterRenderer_:function(v){this.useVimio_||(this.childCache_.delete(v),this.markDirty())},
attached:function(){var v=this,E=this.getParentRenderer();if(E){var n,f,x;(f=(n=(x=E.polymerController)!=null?x:E).registerRenderer)==null||f.call(n,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var y,Q;(Q=(y=this.monitorScrollElement)!=null?y:this.hostElement)==null||Q.addEventListener("scroll",_.uo(this,this.onScroll))}_.wh.addJob(function(){QeF(v.hostElement)},8);
n=new mtE(this.screenLayer||void 0);(E=IQ(E))&&E.layerNode&&(n.parent=E.layerNode);E={};Lj9(this.hostElement,(E.isRenderer=!0,E.layerNode=n,E[Zk]=this.data,E))},
getParentRenderer:function(){for(var v=this.hostElement.parentNode,E,n;v&&((E=IQ(v))==null||!E.isRenderer)&&!((n=v.polymerController)!=null?n:v).isRenderer_;)v=v.parentNode||v.host;return v},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Z("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Sp("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Z("debug_web_ve_data")&&this.data.trackingParams){var v="";try{v=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(n){_.mb(n)}if(v){var E=mAX(v,1);E!==void 0&&(this.hostElement.dataset.veIndex=String(E));v=mAX(v,2);
v!==void 0&&(this.hostElement.dataset.ve=String(v))}}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,_.Z("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.tx(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Gl(_.Tl(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var v=this.data.targetId;_.iXg(_.R6(),v,this.hostElement)}else GmP(_.R6(),this.hostElement)},
onScroll:function(){var v=Date.now();v-this.lastHandledScroll_<50||(this.lastHandledScroll_=v,this.markDirty())},
markDirty:function(){_.Z("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():bjL(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var v=this.getParentRenderer();if(v&&(v=IQ(v))&&v.layerNode)return au(v.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.s8(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++)this.sendImpression(this.data.impressionEndpoints[v]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(v){v.clickTrackingParams&&delete v.clickTrackingParams;var E,n;(v==null?0:(E=v.commandMetadata)==null?0:(n=E.webCommandMetadata)==null?0:n.sendPost)?_.$Z(this.hostElement,[v,{impression:!0}]):_.LG(this.hostElement,[v],this.hostElement)},
logExplicitClick:function(v){var E=_.lc(this.getScreenLayer());if(E){var n,f=(n=v.polymerController)!=null?n:v;v=f.visualElement;f=f.trackingParams||f.clickTrackingParams;!v&&f&&(v=_.tx(f));v&&_.qx(E,v)}}}];var jRU={},Ct=function(){return _.L2.apply(this,arguments)||this};
_.S(Ct,_.L2);Ct.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ct.prototype.onPdgItemBehaviorClick=Ct.prototype.onPdgItemBehaviorClick;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ct.prototype,"data",void 0);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ct.prototype,"onPdgItemBehaviorClick",null);Ct=_.k([_.Gw()],Ct);jRU.YtPdgLiveChatItemBehavior=[Ct.prototype,_.B.YtRendererBehavior];var Oal;var ki1;_.M2={};_.M2.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var SV=function(){var v=V2.apply(this,arguments)||this;v.switchTemplateAtRegistration=!1;return v};
_.S(SV,V2);SV.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Pb9(this),_.GmE(this,"doRender"),this.doRender())};
SV.prototype.debounceRender=function(){this.templatingFn&&_.lz(this,"doRender",this.doRender)};
SV.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.mb(Error("$g"))};
SV.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
SV=_.k([VUX()],SV);var WqX=SV;var $Gz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,UC={},Mqy=(UC[1]={filterString:null,isUnwrappable:null,unwrap:null},UC[2]={filterString:function(v,E,n){return k_(n)},
isUnwrappable:function(v){return v instanceof Ma},
unwrap:function(v){return Uw(v)}},UC[3]={filterString:function(v,E,n){return $Gz.test(n)?n:wV.toString()},
isUnwrappable:function(v){return X_(v)},
unwrap:function(v){return _.ec(v)}},UC[4]={filterString:function(){return wV.toString()},
isUnwrappable:function(v){return v instanceof oC},
unwrap:function(v){return _.c5(v).toString()}},UC[5]={filterString:function(v,E,n){return n},
isUnwrappable:function(v){return typeof v==="string"},
unwrap:function(v){return v.toString()}},UC[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(v){return v instanceof _.IC},
unwrap:function(v){return hA(v)}},UC[8]={filterString:function(v,E,n){n=String(n).toLowerCase();
return qUE(v,E,n)?n:"zClosurez"},
isUnwrappable:null,unwrap:null},UC[10]={filterString:null,isUnwrappable:null,unwrap:null},UC);Vs[a0["default"]]=USN;var qKQ=[];var WfX=KSA("A"),$e9=KSA("BUTTON"),fh=KSA("DIV"),LfE=KSA("LABEL");(function(){var v=Y7;Y7=function(E){v==null||v(E);oj(function(){for(var n=0;n<E.length;n++)Jl$(E[n])})}})();var q2=function(){var v=_.L2.apply(this,arguments)||this;v.hasUnmounted=!1;return v};
_.S(q2,_.L2);_.c=q2.prototype;_.c.beforeRegister=function(){var v=this.doIdomRender;this.templatingFn?_.mb(Error("Zg")):(this.templatingFn=v,this.switchTemplateAtRegistration=!0,Cb1(this))};
_.c.attached=function(){};
_.c.detached=function(){Jl$(this.hostElement)};
_.c.renderIdom=function(){throw Error("bh");};
_.c.doIdomRender=function(){var v=this;wiX(this.hostElement,function(){v.renderIdom()})};
q2=_.k([_.Gw()],q2);var LqF=[WqX.prototype,q2.prototype];var Gi4,Tuz=function(){return Gi4!==void 0?Gi4:Gi4=document.createElement("template")};
document.head.appendChild(Tuz().content);var ia1;var z1l,R1U=function(){return z1l!==void 0?z1l:z1l=document.createElement("template")};
document.head.appendChild(R1U().content);var tW1;var BuP=document.head,vfl=BuP.appendChild,Ef1;if(tW1===void 0){var nfX=document.createElement("template");_.q(nfX,"\x3c!--css-build:shady--\x3e");nfX.content.insertBefore(R1U().content.cloneNode(!0),nfX.content.firstChild);tW1=nfX}Ef1=tW1;vfl.call(BuP,Ef1.content);var ofg,fwP=function(){return ofg!==void 0?ofg:ofg=document.createElement("template")};
document.head.appendChild(fwP().content);var xSo;var clP=document.head,yl6=clP.appendChild,pnX;if(xSo===void 0){var Qei=document.createElement("template");_.q(Qei,"\x3c!--css-build:shady--\x3e");Qei.content.insertBefore(fwP().content.cloneNode(!0),Qei.content.firstChild);xSo=Qei}pnX=xSo;yl6.call(clP,pnX.content);var XnF=document.head,ewl=XnF.appendChild,FSw;if(ia1===void 0){var mSi=document.createElement("template");_.q(mSi,"\x3c!--css-build:shady--\x3e");mSi.content.insertBefore(Tuz().content.cloneNode(!0),mSi.content.firstChild);ia1=mSi}FSw=ia1;ewl.call(XnF,FSw.content);var wnw,bj1=function(){return wnw!==void 0?wnw:wnw=document.createElement("template")};
document.head.appendChild(bj1().content);var lwU;_.aj=new _.$Y("DARK_THEME_TOKEN");var aVy=new _.z("accessibilityProperties");var PBX=new _.z("layoutProperties");var ZY$=new _.z("imageType");var sez={};if("ytAttributedStringLinkHoverColor"in sez)throw Error("eh`ytAttributedStringLinkHoverColor");(function(v,E){sez[v]="value"in E&&"unit"in E?AlI(v,E):function(n){try{return E(n)}catch(f){throw Error("ch`"+v+"`"+f.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var rlw=function(v){var E=this;this.holdTime=v===void 0?500:v;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(n){var f=new CustomEvent("LONG_PRESS"),x;(x=n.changedTouches[0].target)==null||x.dispatchEvent(f)};
this.ontouchstart=function(n){E.longPressTimeout=_.Fw(_.wh,function(){E.onlongpress(n);E.longPressOccurred=!0},E.holdTime)};
this.ontouchmove=function(){_.wh.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!0};
this.ontouchend=function(n){if(E.longPressTimeout&&!E.longPressOccurred&&!E.moveOccurred){var f;(f=n.changedTouches[0].target)==null||f.dispatchEvent(new Event("click"))}_.wh.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!1}};var ElG=function(v,E){rlw.call(this,E);var n=this;this.callback=v;this.onlongpress=function(f){var x;(x=n.callback)==null||x.call(n,f)}};
_.S(ElG,rlw);var nlA=function(v,E){var n=Object.assign({},E);v=_.p(new Map([["ontouchstart",v.ontouchstart],["ontouchend",v.ontouchend],["ontouchmove",v.ontouchmove]]));for(var f=v.next(),x={};!f.done;x={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},f=v.next()){var y=_.p(f.value);f=y.next().value;y=y.next().value;x.eventName$jscomp$87=f;x.eventHandler$jscomp$3=y;E[x.eventName$jscomp$87]=function(Q){return function(e){var F;(F=n[Q.eventName$jscomp$87])==null||F.call(n,e);(0,Q.eventHandler$jscomp$3)(e)}}(x)}};_.OO=new _.$Y("COMMAND_HANDLER_TOKEN");var DSF=new _.z("parallelCommand");var NyA=new _.z("performOnceCommand");var gfI=new _.z("serialCommand");var uzE=void 0;var Pbo=function(){this.data=[]};
Pbo.prototype.push=function(v){this.data.push(v)};var GK={};_.t7(GK,void 0,"sgPmTd");_.t7(null,void 0,"jypsq");var c5I=new Pbo;var TyQ=[BLU,vw4,EwS,owP,nw1,t91,fzF,xi4];var sZE=new _.z("bracketTextDecorator");var P8=new _.z("highlightTextDecorator");_.CR=new _.$Y("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Fay=function(){},awg;
(awg=window.requestIdleCallback)==null||awg.bind(window);var woL={calledOnce:!1,state:"visible"},mCF={calledOnce:!1,state:"hidden"};var bJE=new _.$Y("ICON_RENDERER_TOKEN"),Zj1=new _.$Y("ICON_WIZ_COMPONENT_TOKEN");_.B8=_.qu(function(v){var E=v.icon;var n=v.active;var f=v.className;var x=v.style;var y=v.dataSelected;var Q=v.dataDisabled;var e=v.role;var F=v.animateIcon;var b=v.themeOverride;var l=v.ariaHidden;var r=v.ariaExpanded;var a=v.ariaLabel;var M=v.id;var U=v.size;var d=v.iconFilter;return _.w(_.x6,{cond:E,then:function(){var Y=_.P().resolve(Zj1);return _.w(Y,{icon:E,dataSelected:y,dataDisabled:Q,animateIcon:F,themeOverride:b,ariaExpanded:r,id:M,active:n,size:U,role:e,className:f,ariaHidden:l,ariaLabel:a,
style:function(){return x!=null&&x()||U==null||!U()?x==null?void 0:x():"width: "+(U==null?void 0:U())+"px;height: "+((U==null?void 0:U())+"px;")},
iconFilter:d})}})},"b");
_.B8.idomCompat=!0;var glN=window.devicePixelRatio||1;var OYE=new Map([["yt_outline_bag_black_24","bag"]]);var J1=function(v){var E=this;this.margin=.1;this.whenInViewportWithMargin=v;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){E.requestScan()});
window.addEventListener("touchend",function(){E.requestScan()});
window.addEventListener("updateui",function(){E.requestScan()});
var n=new _.ka((0,_.XV)(this.requestScan,this),100);window.addEventListener("scroll",function(){n.fire()},!0);
window.addEventListener("resize",(0,_.XV)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){E.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.XV)(this.requestScan,this))};
J1.prototype.observe=function(v){this.observationTargets.includes(v)||this.observationTargets.push(v)};
J1.prototype.unobserve=function(v){this.observationTargets=this.observationTargets.filter(function(E){return E!==v})};
J1.prototype.requestScan=function(){var v=this;this.scanRequested||(oj(function(){Cbl(v)}),this.scanRequested=!0)};
var Cbl=function(v){var E=(1+v.margin)*(document.documentElement.clientHeight||window.innerHeight);v.observationTargets=v.observationTargets.filter(function(n){var f=n.getBoundingClientRect();(f=E>f.top&&!!f.height)&&v.whenInViewportWithMargin(n);return!f&&n.parentNode});
v.scanRequested=!1};
J1.prototype.disconnect=function(){this.observationTargets=[]};var Mq4,US1;Mq4=_.p(_.t7(LaE(),void 0,"O3X2wd"));_.SKF=Mq4.next().value;US1=Mq4.next().value;window.addEventListener("resize",function(){US1(LaE())});var qK1={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},JlF=void 0,KSz=window.innerWidth,dSl=window.innerHeight;window.addEventListener("resize",function(){JlF=void 0});var IwX;if("IntersectionObserver"in window)IwX=iYI();else{if(JlF===void 0){var YKP;YKP="matchMedia"in window?window.matchMedia(qK1.landscape+","+qK1.portrait).matches:void 0;JlF=YKP!==void 0?YKP:KSz>=930&&dSl>=550||KSz>=550&&dSl>=930}IwX=JlF?{observe:function(v){oj(function(){var E;(E=v.onViewportEntered)==null||E.call(v)})},
unobserve:function(){}}:new J1(function(v){oj(function(){var E;
(E=v.onViewportEntered)==null||E.call(v)})})}var GM1=IwX;var hw1=_.qu(function(v){var E=!1,n=_.Ig(function(f){_.Fp(function(){E=!0;f.onload=null})});
_.Xp(function(){var f,x=(f=v.data)==null?void 0:f.call(v),y,Q=(y=v.getSrc)==null?void 0:y.call(v).cb,e;f=(e=v.config)==null?void 0:e.call(v);if(e=n.value)if(y=function(b,l){if(!E)return Q?Q(b,l):b},t3$(e,f),_.Z("web_image_dont_reload_same_src")&&RTN(e,x,y))_.Z("web_image_dont_reload_same_src_simulate_load")&&e.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var F;zTE(e,x||null,y,f,(F=v.lazy)==null?void 0:F.call(v))}});
return _.w("img",{el:n})},"c");
hw1.idomCompat=!0;_.UZ=_.qu(function(v){var E=function(){var n,f=v.data(),x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF,K1,JG,$X,HI,uE,WI;var bX={contentMode:(x=v.contentMode)==null?void 0:x.call(v),loadedClass:(y=v.loadedClass)==null?void 0:y.call(v),isPreloaded:(Q=v.isPreloaded)==null?void 0:Q.call(v),notifyOnLoaded:(e=v.notifyOnLoaded)==null?void 0:e.call(v),notifyOnUnloaded:(F=v.notifyOnUnloaded)==null?void 0:F.call(v),preferredThumbnail:(b=v.preferredThumbnail)==null?void 0:b.call(v),preserveHeight:(l=v.preserveHeight)==
null?void 0:l.call(v),preserveWidth:(r=v.preserveWidth)==null?void 0:r.call(v),objectPosition:(a=v.objectPosition)==null?void 0:a.call(v),targetWidth:(M=v.targetWidth)==null?void 0:M.call(v),targetHeight:(U=v.targetHeight)==null?void 0:U.call(v),shouldShowPlaceholder:(d=v.shouldShowPlaceholder)==null?void 0:d.call(v),useWidth:(Y=v.useWidth)==null?void 0:Y.call(v),alt:(V=v.alt)==null?void 0:V.call(v),className:(O=v.className)==null?void 0:O.call(v),onerror:v.onerror,onload:v.onload,style$:((T=v.style$)==
null?void 0:T.call(v))||((L=v.style)==null?void 0:L.call(v)),color:(xX=v.color)==null?void 0:xX.call(v),width:(t=v.width)==null?void 0:t.call(v),height:(QE=v.height)==null?void 0:QE.call(v),"aria-hidden$":(uE=(MF=v["aria-hidden$"])==null?void 0:MF.call(v))!=null?uE:(K1=v.ariaHidden)==null?void 0:K1.call(v),draggable:(JG=v.draggable)==null?void 0:JG.call(v),"data-disabled$":(WI=($X=v["data-disabled$"])==null?void 0:$X.call(v))!=null?WI:(HI=v.dataDisabled)==null?void 0:HI.call(v)};return ESE(f,bX,(n=
v.hideOn404)==null?void 0:n.call(v))};
return _.w(_.Q1,null,_.w(_.y1,{when:function(){var n;return((n=E())==null?void 0:n.type)==="image"}},function(){return _.w(hw1,{data:function(){return E().image},
getSrc:{cb:function(n,f){var x=E().image.sources,y=E().config.isPreloaded,Q=E().config.useWidth,e=E().config.targetWidth,F=E().config.targetHeight,b=E().config.preferredThumbnail;return _.N5$(f,x,y,Q,e,F,b)||""}},
config:function(){var n=E().config,f;for(f in n)n[f]===void 0&&delete n[f];return n},
lazy:v.renderLazy})}),_.w(_.y1,{when:function(){var n;
return((n=E())==null?void 0:n.type)==="icon"}},function(){return _.w(_.B8,{icon:function(){return E().iconName},
role:function(){return E().config.role},
className:function(){return E().config.className},
style:function(){return E().config.style$+";width: "+(E().config.width+"px;height: ")+(E().config.height+"px;color: ")+(E().config.color+";")},
ariaLabel:function(){return E().config["aria-label$"]},
ariaHidden:function(){return E().config["aria-hidden$"]},
dataDisabled:function(){return E().config["data-disabled$"]}})}))},"d");
_.UZ.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var AlU=function(v){return function(E){return _.w(YdQ,null,function(){var n=E.data(),f=_.ba(E.config);return _.w(ho,null,function(){return void v(n,f)})})}}(x6Q),oSN=_.qu(function(v){var E=function(f){var x,y=_.JZ(function(a){x=wF(function(){for(var M=_.p(l()),U=M.next();!U.done;U=M.next()){U=c49(U.value);
U=typeof U==="string"?document.createTextNode(U):U;if(!(U instanceof Node)){M=new _.yc("Part is not a node",U,typeof U);_.mb(M);break}a.appendChild(U)}})}),Q=KR(function(){return M3E(f())},{isEqual:nSL}),e=_.SI(v.config),F=function(){var a,M=Q();
return!((a=e())==null||!a.ariaLabel)||!(M.commandRuns&&M.commandRuns.length!==0||M.paragraphStyleRuns&&M.paragraphStyleRuns.length!==0)},b=KR(e,{isEqual:pdQ}),l=function(){var a=CBX(Q(),b());
UC1(a,b());return Q().content?YDI(Q().content,a).parts:[]},r=!0;
_.Xp(function(){Q();b();if(r)r=!1;else{var a=l();Promise.resolve().then(function(){var M=y.value;if(M){M.innerText="";var U;(U=x)==null||U();x=_.Fo(M,function(){return _.w(y4X,{parts:a})})}})}});
return _.w("span",{el:y,class:function(){return Q()&&yIL(Q(),e())},
dir:function(){var a;return((a=e())==null?0:a.userInput)?"auto":void 0},
"aria-label":function(){var a;return F()?(a=e())==null?void 0:a.ariaLabel:void 0},
role:function(){return F()?"text":void 0}})},n;
return((n=v.config)==null?0:n.renderedFromFormattedString)?E(v.text):_.w(_.x6,{cond:v.text,then:E})},"e");
oSN.idomCompat=!0;_.nh=_.qu(function(v){var E=_.SI(v.text),n=Qqy(v);v.renderedFromFormattedString!==void 0&&(n.renderedFromFormattedString=!0);return _.Z("attr_string_reactive")?_.w(oSN,{text:E,config:n}):_.w(_.x6,{cond:function(){var f;return E()&&((f=M3E(E()))==null?void 0:f.content)},
then:function(){return _.w(AlU,{data:v.text,config:n})},
debugInstance:"Apcuac"})},"f");
_.nh.idomCompat=!0;var eQE=function(v,E,n){E=E===void 0?"unknown":E;n=n===void 0?{}:n;_.yc.call(this,v+" ("+E+")",Object.assign({},{name:"YtWcwError",tagName:E},n));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(eQE,_.yc);_.r4X=new WeakMap;_.sq9=!1;var loE,Pls,m6Q,bnX;_.Kt=Symbol("gh");_.Ij=Symbol("hh");loE=Symbol("ih");Pls=new Set(Object.getOwnPropertyNames(Element.prototype));m6Q=!_.Z("web_wcw_disable_component_function_named_child_props");bnX=Symbol("jh");var Vq4=_.qu(function(v){return _.w("yt-attributed-string",{"aria-label":v.ariaLabel,hidden:v.hidden,id:v.id,class:v.className,"force-default-style":v.forceDefaultStyle},_.w(_.nh,{text:v.data,ariaLabel:v.ariaLabel,ellipsisTruncate:v.ellipsisTruncate,isOverlay:v.isOverlay,linkInheritColor:v.linkInheritColor,noPreWrap:v.noPreWrap,noWrap:v.noWrap,userInput:v.userInput,noEndpoints:v.noEndpoints,headerRuns:v.headerRuns}))},"g");
_.Z("web_wiz_attributed_string")&&_.Yz(Vq4,"yt-attributed-string",{props:{ariaHidden:_.Kt,ariaLabel:_.Kt,className:_.Kt,ellipsisTruncate:_.Kt,isOverlay:_.Kt,linkInheritColor:_.Kt,noEndpoints:_.Kt,noStyleRuns:_.Kt,noLinkColor:_.Kt,noPreWrap:_.Kt,noWrap:_.Kt,skipOnClick:_.Kt,userInput:_.Kt,headerRuns:_.Kt,id:_.Kt,data:_.Kt,hidden:_.Kt,forceDefaultStyle:_.Kt,text:_.Ij,stopPropagation:_.Ij,disableUpgrade:_.Ij,disable:_.Ij,slot:_.Ij}});var dm=function(){return _.g.apply(this,arguments)||this};
_.S(dm,_.g);dm.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},x6Q(this.data,this.config))};
_.k([_.h(LqF),_.W("design:type",Object)],dm.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dm.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],dm.prototype,"ariaLabel",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"disable",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"ellipsisTruncate",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"isOverlay",void 0);
_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"linkInheritColor",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"noPreWrap",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"noWrap",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"userInput",void 0);_.k([_.H(),_.W("design:type",Boolean)],dm.prototype,"noEndpoints",void 0);_.k([_.H(),_.W("design:type",Array)],dm.prototype,"headerRuns",void 0);
dm=_.k([_.p5({is:"yt-attributed-string",disableElementRegistration:!0})],dm);
_.Z("web_wiz_attributed_string")||_.u(dm,"yt-attributed-string",function(){if(lwU===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
v.content.insertBefore(bj1().content.cloneNode(!0),v.content.firstChild);lwU=v}v=lwU;return v},{mode:2});var DSi,Hj6,qzN;DSi=function(){this.firstThumbnailLoaded=!1};
_.gfU=function(){Hj6||(Hj6=new DSi);return Hj6};
qzN=function(v){var E=_.gfU();E.firstThumbnailLoaded||(E.firstThumbnailLoaded=!0,_.FD("ftl",v))};
DSi.prototype.reset=function(){this.firstThumbnailLoaded=!1};var ZnF=0,U6$=new WeakMap,MBQ=0,VI=new Set;var Nyz,uzX=function(){return Nyz!==void 0?Nyz:Nyz=document.createElement("template")};
document.head.appendChild(uzX().content);var jeX;var Ios,hQE,ID;_.gJ=_.n1.caches;ID=function(){};
ID.prototype.open=function(v){return _.gJ.open(Oj6(v))};
ID.prototype.has=function(v){return _.gJ.has(Oj6(v))};
ID.prototype.delete=function(v){return _.gJ.delete(Oj6(v))};
ID.prototype.match=function(v,E){var n=this,f,x,y,Q,e,F;return _.X(function(b){switch(b.nextAddress){case 1:return _.m(b,n.keys(),2);case 2:f=b.yieldResult,x=_.p(f),y=x.next();case 3:if(y.done){b.jumpTo(5);break}Q=y.value;return _.m(b,n.open(Q),6);case 6:return e=b.yieldResult,_.m(b,e.match(v,E),7);case 7:if(F=b.yieldResult)return b.return(F);y=x.next();b.jumpTo(3);break;case 5:return b.return()}})};
var A4E=function(){};
_.S(A4E,ID);var Oj6=function(v){if(v.includes(":"))throw Error("mh`"+v);return v+":"+_.xm("CacheStorage get")};
A4E.prototype.keys=function(){var v,E,n,f,x,y,Q,e,F;return _.X(function(b){if(b.nextAddress==1)return v=[],E=_.xm("CacheStorage keys"),_.m(b,_.gJ.keys(),2);n=b.yieldResult;f=_.p(n);for(x=f.next();!x.done;x=f.next())y=x.value,Q=_.d6L(y),e=Q.originalName,F=Q.datasyncId,F===E&&v.push(e);return b.return(v)})};var YI=function(){var v=_.g.apply(this,arguments)||this;v.objectURL=null;v.loadTime=Infinity;return v};
_.S(YI,_.g);_.c=YI.prototype;_.c.renderIdom=function(){Kss(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&B5X(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.c.objectFitToContentMode=function(v){switch(v){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.c.logThumbnailFailureVe=function(){var v=_.ci(197497);_.t$(_.Tl(),v);var E=_.lc();E&&v&&E&&_.CH(E,[v])};
_.c.loadImageFromCacheIfExists=function(v){var E=this,n=v.target;(n==null?0:n.src)&&D6E(n.src).then(function(f){E.objectURL=_.lW(f).toString();E.setSrc(n,E.objectURL)}).catch(function(){})};
_.c.onError=function(v){var E=this;if(_.Z("web_use_cache_for_image_fallback")){var n=v.target;n&&D6E(n.src).then(function(f){E.objectURL=_.lW(f).toString();E.setSrc(n,E.objectURL)}).catch(function(){_.Z("kevlar_woffle_log_thumbnail_failure_ve")&&E.logThumbnailFailureVe();
_.Z("kevlar_woffle_fallback_image")&&E.setSrc(n,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.c.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.c.setConfig=function(){var v=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(E){v.loadImageFromCacheIfExists(E);v.revokeObjectURL();J4L(v.hostElement)},
onerror:function(E){v.onError(E)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Z("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.c.setSrc=function(v,E){E&&(v.src=E)};
_.k([_.h(LqF),_.W("design:type",Object)],YI.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YI.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],YI.prototype,"alt",void 0);_.k([_.H(),_.W("design:type",Boolean)],YI.prototype,"ftlEligible",void 0);_.k([_.H(),_.W("design:type",Number)],YI.prototype,"height",void 0);_.k([_.H(),_.W("design:type",Boolean)],YI.prototype,"notifyOnLoaded",void 0);
_.k([_.H(),_.W("design:type",Boolean)],YI.prototype,"notifyOnUnloaded",void 0);_.k([_.H(),_.W("design:type",String)],YI.prototype,"objectFit",void 0);_.k([_.H(),_.W("design:type",String)],YI.prototype,"objectPosition",void 0);_.k([_.H(),_.W("design:type",String)],YI.prototype,"preferredThumbnail",void 0);_.k([_.H(),_.W("design:type",Boolean)],YI.prototype,"preserveHeight",void 0);_.k([_.H(),_.W("design:type",Boolean)],YI.prototype,"preserveWidth",void 0);
_.k([_.H({value:!0}),_.W("design:type",Boolean)],YI.prototype,"useWidth",void 0);_.k([_.H({value:function(){return!_.Sp("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.W("design:type",Boolean)],YI.prototype,"shouldRenderLazy",void 0);_.k([_.H(),_.W("design:type",Number)],YI.prototype,"width",void 0);YI=_.k([_.p5({is:"yt-image",disableElementRegistration:!0})],YI);
_.u(YI,"yt-image",function(){if(jeX===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(uzX().content.cloneNode(!0),v.content.firstChild);
jeX=v}v=jeX;return v},{mode:2});var h1=function(){return _.g.apply(this,arguments)||this};
_.S(h1,_.g);h1.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var v=_.F$(this.data.onVisibleCommand);v&&this.ytComponentBehavior.resolveCommand(v)}};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],h1.prototype,"ytVisibilityBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],h1.prototype,"data",void 0);h1=_.k([_.p5({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],h1);
_.u(h1,"yt-bumper-user-edu-content-view-model",function(){if(ki1===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Oal===void 0&&(Oal=document.createElement("template"));var f=Oal;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ki1=v}v=ki1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var kXU;var WSF,$SF=function(){if(WSF!==void 0)return WSF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;kXU===void 0&&(kXU=document.createElement("template"));var f=kXU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return WSF=v};var LSz;_.A1={};LSz=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"]);_.A1.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var v=this.getContext_();return v?v.getTaskManager():_.wh},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var v=_.jK(this.hostElement,"yt-get-context-provider",{});v.detail&&v.detail.contextProvider?this.cachedProviderNode_=v.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return LSz.has(this.hostElement.localName)},
getNetworkManager:function(){var v=this.getContext_();if(v)return v.getNetworkManager()}};var On1,GXo,ijF,Ty1;_.VB=function(v){var E=GXo.get(v);if(E&&(E=E.pop()))return Ty1++,E;ijF++;try{var n=document.createElement(v)}catch(f){throw new _.yc("ElementPool failed to create element",v,f.message);}return n};
On1=function(v){var E=v.is;if(E){var n=GXo.get(E);n||(n=[],GXo.set(E,n));var f=_.MX("ELEMENT_POOL_CONFIG")||{};n.length>=(f[E]!==void 0?f[E]:_.MX("ELEMENT_POOL_DEFAULT_CAP",0))||n.push(v)}else _.li(new _.yc("Element pool should only handle custom elements:",v.nodeName))};
GXo=new Map;ijF=0;Ty1=0;var Nd=new WeakMap,jqI=new WeakMap;var Rwi;_.DQ=function(v,E,n){n=n===void 0?_.Ce():n;this.JSC$11524_defaultPriority=v;this.signal=E;this.scheduler=n;this.nextJobDescriptor=0;this.JSC$11524_parkedJobs=[];this.scheduledJobs=new Map};
_.Hs=function(v,E){if(E){var n=_.qs();v.signal&&!_.Jh(n,v.signal)?(n.addListener(v.signal,function(){v.processSignal()}),v.JSC$11524_parkedJobs.push({job:E,
priority:void 0})):zw4(v,E)}};
Rwi=function(v,E){if(E!==v.JSC$11524_defaultPriority){v.JSC$11524_defaultPriority=E;for(var n=_.p(v.scheduledJobs.values()),f=n.next();!f.done;f=n.next())f=f.value,v.scheduler.cancelJob(f.jobId),f.jobId=v.scheduler.addJob(f.jobWrapper,E)}};
_.DQ.prototype.flushJobs=function(){Rwi(this,10);this.processSignal()};
_.DQ.prototype.cancel=function(){for(var v=_.p(this.scheduledJobs),E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;this.scheduler.cancelJob(n.jobId);this.scheduledJobs.delete(E)}this.JSC$11524_parkedJobs=[]};
_.DQ.prototype.processSignal=function(){for(var v=_.p(this.JSC$11524_parkedJobs),E=v.next();!E.done;E=v.next())E=E.value,zw4(this,E.job,E.priority);this.JSC$11524_parkedJobs=[]};
var zw4=function(v,E,n){n=n||v.JSC$11524_defaultPriority;if(n===10)Da(E);else{var f=v.nextJobDescriptor++,x=function(){E();v.scheduledJobs.delete(f)},y=v.scheduler.addJob(x,n);
v.scheduledJobs.set(f,{jobWrapper:x,jobId:y,priority:n})}};_.Nw(LsN);var Goy={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};I4X({beforeVisit:function(v){if(Ax.has(v.type)){var E;(E=v.props).idomKey!=null||(E.idomKey=v.type)}else v.type.TAG_NAME&&(Yi=v.type.TAG_NAME)},
afterRender:function(v,E){var n;Yi=(n=E==null?void 0:E.type)!=null?n:""},
didPatch:function(){Yi=""}});var tql;_.gm={};tql={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.gm.YtRendererstamperBehavior=[_.A1.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 v in this.stampDom){var E=this.stampDom[v];E&&E.id&&this.addReactiveSchema({type:"observe",method:{methodName:gSQ(E.id),args:[{type:"wildcard",path:v}]}})}else{(v=(this.constructor.generatedFrom||this).observers)||(v=[]);for(E in this.stampDom){var n=this.stampDom[E];n&&n.id&&v.push(gSQ(n.id)+"("+E+".*)")}this.constructor.generatedFrom.observers=v}},
addStampDomObserverFns_:function(){for(var v in this.stampDom){var E=this.stampDom[v];E.id?(this[gSQ(E.id)]=this.rendererStamperObserver_.bind(this,v,E.id),this.hasDataPath_[v]=!1):(E=new _.yc("Bad rendererstamper config",this.is+":"+v),_.mb(E))}},
rendererStamperObserver_:function(v,E,n){if(n.path==v){if(n.value===void 0&&!this.hasDataPath_[v])return;this.hasDataPath_[v]=n.value!==void 0}this.rendererStamperApplyChangeRecord_(v,E,n)},
rendererStamperApplyChangeRecord_:function(v,E,n){var f=this.renderJobsMap_[E],x=null;v==n.path?(n=n.value,_.E1(n)||(n=n===void 0||n===null?[]:[n]),v=this.stampDom[v],v.mapping&&(x=this.stampDomArray_.bind(this,n,E,v.mapping,v.reuseComponents,v.events,v.stamperStableList)),f&&f.cancel(),n=v.usePageScheduler?this.getTaskManager():void 0,f||v.initialRenderPriority==void 0)?v.renderPriority==void 0||f||(f=new _.DQ(v.renderPriority,v.waitForSignal,n),this.renderJobsMap_[E]=f):(f=new _.DQ(v.initialRenderPriority,
v.waitForSignal,n),this.renderJobsMap_[E]=f,x=function(y,Q){y();Rwi(Q,10)}.bind(this,x,f)):x=v+".splices"==n.path?this.stampDomArraySplices_.bind(this,v,E,n.value):this.forwardRendererStamperChanges_.bind(this,v,E,n);
f?_.Hs(f,x):x()},
forwardRendererStamperChanges_:function(v,E,n){var f=n.path.slice(v.length+1),x=this.getStampContainer_(E),y=f.indexOf("."),Q=f.substring(0,y),e=!1,F=0,b=parseInt(Q,0);if(Q[0]=="#"){e=parseInt(Q.substring(1),0);b=this.get(v);var l=this.get([v,Q]);b[e]==l?F=e:F=b.indexOf(l);e=!0}else isNaN(b)||(F=b,e=!0);e&&(f=f.substring(Q.length+1),y=f.indexOf("."));Q=_.pG(x).children[F];var r;if(x=(r=Q==null?void 0:Q.polymerController)!=null?r:Q)f="data"+f.slice(y),typeof x.notifyPath!=="function"?_.li(new _.yc("notifyPath missing",
this.is+": "+v+", "+E)):n.value?x.notifyPath(f,n.value):x.notifyPath(f)},
stampDomArraySplices_:function(v,E,n){if(n&&n.indexSplices){var f=this.getStampContainer_(E);if(f){for(var x=_.pG(f),y=uUF(this.stampDom[v].reuseComponents),Q=n.indexSplices.length,e=0;e<Q;e++){for(var F=n.indexSplices[e],b=x.children[F.index],l=F.removed.length;l>0;l--)b&&b.parentElement&&(_.pG(b.parentElement).removeChild(b),y&&On1(b),b=x.children[F.index]);l=this.stampDom[v].mapping;for(var r=F.index+F.addedCount,a=document.createDocumentFragment(),M=y,U=F.index;U<r;U++){var d=F.object[U],Y=HnL(l,
d);if(Y){var V=l[Y];d=d[Y];Y=this.getComponentName_(V,d);var O=b?Nd.has(b):!1;M&&b&&b.is==Y&&O?(Y=b,this.telemetry_.reuse++,b=b.nextElementSibling):M&&b&&O?(Y=this.createComponent_(V,d,y),O=_.pG(b).nextElementSibling,x.insertBefore(Y,O),WsX(this.is,x,b,y),b=O):(M=!1,Y=this.createComponent_(V,d,y),a.appendChild(Y));this.deferRenderStamperBinding_(Y,V,d)}else V=new _.yc("Unimplemented type",v,E,f.tagName,Object.keys(d)[0]),_.mb(V)}x.insertBefore(a,b)}this.flushRenderStamperComponentBindings_();this.stampDom[v].events&&
_.jK(this.hostElement,"yt-rendererstamper-finished",{container:f})}else v=new _.yc("Container object not found",E,this.hostElement?this.hostElement.is:""),_.mb(v)}},
stampDomArray_:function(v,E,n,f,x,y){var Q=this.getStampContainer_(E);if(Q)if(E=_.pG(Q),f=uUF(f),v){var e=0,F=0,b;if(y=y===void 0?_.Sp("STAMPER_STABLE_LIST",!1):y||!1)for(b=E.firstElementChild;b&&!Nd.has(b)&&v.length>F;){y=v[F];var l=HnL(n,y);if(l){if(this.getComponentName_(n[l],y[l])!=b.is){var r=this.createComponent_(n[l],y[l],f),a=_.pG(b).nextElementSibling;a?E.insertBefore(r,a):E.appendChild(r);WsX(this.is,E,b,f);b=r}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(b,n[l],y[l]);e++;
F++;b=_.pG(b).nextElementSibling}else F++}$6N(this.is,E,e,f);e=b;if(v.length>F){y=document.createDocumentFragment();for(l=v.length;F<l;F++)if(r=v[F],a=HnL(n,r))b=this.createComponent_(n[a],r[a],f),this.deferRenderStamperBinding_(b,n[a],r[a]),y.appendChild(b);e&&_.pG(e).parentNode&&b&&!Nd.has(b)?E.insertBefore(y,e):E.appendChild(y)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();x&&_.jK(this.hostElement,"yt-rendererstamper-finished",{container:Q})}else $6N(this.is,E,0,
f);else v=new _.yc("Container object not found",E,this.hostElement?this.hostElement.is:""),_.mb(v)},
getStampContainer_:function(v){return this.$&&this.$[v]||_.K(this.hostElement).querySelector("#"+v)},
getComponentName_:function(v,E){return typeof v==="string"?v:v.matcher?v.matcher.call(this,E):v.component},
createComponent_:function(v,E,n){v=this.getComponentName_(v,E);try{var f=VV.has(v)||Ax.has(v);if(n&&!f){var x=_.VB(v);try{_.NQ(x)}catch(y){n="Failed to clear styles for "+v+".",y.message&&(n+=" Original error: "+y.message),_.li(new _.yc(n))}}else x=document.createElement(v)}catch(y){return x="YtRendererStamperBehavior failed to create "+v+".",y.message&&(x+=" Original description: "+y.message),y.message="YtRendererStamperBehavior failed to create element",_.ss(y,x),tql.hasOwnProperty(v)?_.li(y):_.mb(y),
document.createElement("SPAN")}this.telemetry_.create++;return x},
deferRenderStamperBinding_:function(v,E,n){this.deferredBindingTasks_.push({component:v,typeOrConfig:E,data:n})},
flushRenderStamperComponentBindings_:function(){for(var v=0,E=this.deferredBindingTasks_.length;v<E;v++){var n=this.deferredBindingTasks_[v];if(!n)break;var f=void 0,x=void 0,y=void 0,Q=void 0,e=n.component,F=n.typeOrConfig;n=n.data;var b=(Q=e.polymerController)!=null?Q:e;Q=e.loggingStatus;try{Q&&(Q.isRendererStamper=!0);if(typeof F!=="string"){for(y in F.attributes)F.attributes[y]===!0?e.setAttribute(y,""):F.attributes[y]===!1?e.removeAttribute(y):e.setAttribute(y,F.attributes[y]);for(x in F.params)b[x]=
F.params[x],e!==b&&Rk(e.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(f in F.properties){var l=F.properties[f];if(l){var r=NEL(l);b[f]=this.get(r);e!==b&&Rk(e.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(f==="on-tap"||f==="on-click"){var a=this.get(r);e.addEventListener("click",a);jqI.set(e,{property:f,listener:{type:"element",eventName:"click",handler:a}})}}else{var M=new _.yc("Undefined property binding",f);_.mb(M)}}}if(F.classListBinding){var U=NEL(F.classListBinding),
d=U?this[U]:null;if(d)for(f=0;f<d.length;f++)_.Vt(e,d[f],!0)}b.data=n}finally{Q&&(Q.isRendererStamper=!1)}if(f=Nd.get(e))e.hidden=!1,Nd.delete(e),_.wh.cancelJob(f)}this.deferredBindingTasks_.length=0}}];_.N2={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(v){for(var E=_.qw.getInstance(),n=_.p(Object.keys(v)),f=n.next();!f.done;f=n.next()){var x=f.value;f=v[x];if(this&&this[f]){var y=E.actionRoutingMap.get(x);y||(y=new Map,E.actionRoutingMap.set(x,y));E.registerActionHandler(this,x,this[f].bind(this),y)}else x=Error("id"),x.params=f,_.UO(x)}},
unregisterActionMap:function(v){_.K3(_.qw.getInstance(),v,this)}}]};var OZ=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var jg;var kz=new Map;var c29=window.matchMedia("(forced-colors: active)").matches;var By6;var vl1;var XCX=new _.$Y("LOTTIE_LOADER_TOKEN");_.Nw(egA);_.Yz(_.qu(function(v){return _.w("ytd-lottie-player",{id:v.id,hidden:v.hidden,class:v.className,"aria-label":v.ariaLabel,style:"display: block;"},_.w(_.$z,{data:v.data,animationName:function(){var E;return((E=v.data().animationConfig)==null?void 0:E.name)||""},
animationRef:function(){return v.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.Kt,
id:_.Kt,hidden:_.Kt,className:_.Kt,ariaLabel:_.Kt}});var uQ=function(){var v=_.g.apply(this,arguments)||this;v.animationRef={};return v};
_.S(uQ,_.g);_.c=uQ.prototype;
_.c.handlePropertyChange=function(){var v=this.animatedIcon,E=this.active,n=this.isDarkTheme;if(v){var f=this.previousActive!==E;this.previousActive=E;this.animationRef.lottieEl?f&&this.toggleAnimation(E,v.totalFrames):E?this.initializeAnimationAsToggled(v.lottiePlayerProps,v.totalFrames):this.initializeAnimationAsUntoggled(v.lottiePlayerProps);v.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=v.type;this.lottiePlayerProps=this.computeLottiePlayerProps(v,n)}};
_.c.computeLottiePlayerProps=function(v,E){var n=this.deepCloneLottiePlayerProps(v);E?(E=v.nameDarkTheme,v=v.pathDarkTheme):(E=v.name,v=v.path);n.animationConfig.name=E;(E=kz.get(v))?n.animationConfig.animationData=E:n.animationConfig.path=v;return n};
_.c.initializeAnimationAsToggled=function(v,E){v.animationConfig.initialSegment=[E-1,E]};
_.c.initializeAnimationAsUntoggled=function(v){v.animationConfig.initialSegment=void 0};
_.c.toggleAnimation=function(v,E){if(v){var n;(n=this.animationRef.lottieEl)==null||n.playSegments([0,E],!0)}else{var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,1],!0)}};
_.c.deepCloneLottiePlayerProps=function(v){var E=Object.assign({},v.lottiePlayerProps.animationConfig);v=Object.assign({},v.lottiePlayerProps);v.animationConfig=E;return v};
uQ.prototype.handlePropertyChange=uQ.prototype.handlePropertyChange;_.k([_.H(),_.W("design:type",Object)],uQ.prototype,"animatedIcon",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],uQ.prototype,"active",void 0);_.k([_.H(),_.W("design:type",Boolean)],uQ.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],uQ.prototype,"animatedIconType",void 0);_.k([_.H(),_.W("design:type",Boolean)],uQ.prototype,"previousActive",void 0);
_.k([_.H(),_.W("design:type",Object)],uQ.prototype,"lottiePlayerProps",void 0);_.k([_.H(),_.W("design:type",Object)],uQ.prototype,"animationRef",void 0);_.k([_.On("animatedIcon","active","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uQ.prototype,"handlePropertyChange",null);uQ=_.k([_.p5({is:"yt-animated-icon",disableElementRegistration:!0})],uQ);
_.u(uQ,"yt-animated-icon",function(){if(vl1===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;By6===void 0&&(By6=document.createElement("template"));var f=By6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);vl1=v}v=vl1;return v},{mode:2});var El6;var nlz;var wCG=_.qu(function(v){var E=_.Y$(),n=rB(function(){return{value:null}});
_.Fp(function(){var x;(x=n.value)==null||x.cancel()});
var f=_.o0(v.data,{equals:function(x,y){return x.iconName===y.iconName&&x.iconStyle===y.iconStyle&&x.iconSize===y.iconSize&&x.iconSetName===y.iconSetName&&x.iconSelected===y.iconSelected}},"aoiXAb");
_.Xp(function(){var x,y=(x=v.options)==null?void 0:x.call(v);me9(E,n,f(),y)});
return _.w("span",{class:"yt-icon-shape",el:E})},"i");
wCG.idomCompat=!0;var STL=["youtube_fill","youtube_outline"];var ol1=new _.sS({type:"iconset",value:void 0}),jV=function(){var v=_.g.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.iconName="";v.iconsetName="yt-icons";v.iconset=null;v.missingIconSet=!1;v.iconType=null;v.iconShapeDataSignal=_.t7(void 0,void 0,"RQ9kUb");v.renderingOptionsSignal=_.t7({iconWidth:"100%",iconHeight:"100%",iconFilter:v.iconFilter},void 0,"qtx8Ef");v.wizHasRendered=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(jV,_.g);_.c=jV.prototype;_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.c.handlePropertyChange=function(){var v=this,E,n,f,x,y,Q,e,F,b,l,r;return _.X(function(a){switch(a.nextAddress){case 1:if(E=!v.icon&&!v.iconName||!v.isAttached)return a.return();n=v;f=n.icon;x=n.size;y=n.defaultToFilled;Q=n.active;e=n.targetContainer;v.toggleContainerClass(e);_.Z("kevlar_use_wil_icons")&&f&&(F=Oa1(f),F.length?_.Z("kevlar_icon_type_fix_killswitch")?(b=F[1].toUpperCase(),v.iconType=I6U[b],v.iconType||(v.iconType=F[1])):v.iconType=F[1]:v.iconType=null);if(f){a.jumpTo(2);break}v.iconsetName=
"";v.iconName="";return _.m(a,v.renderIcon(e,f),3);case 3:return a.return();case 2:l=v.computeIcon(f);r=Oa1(l);r.length&&(v.iconsetName=r[0],v.iconName=r[1]);if(!_.Z("kevlar_use_wil_icons")){a.jumpTo(4);break}return _.m(a,v.getIconShapeData(),5);case 5:v.iconShapeData=a.yieldResult;case 4:if(v.shouldRenderIconShape(e)){a.jumpTo(6);break}return _.m(a,v.determineIconSet(l,Q,y,x,e),6);case 6:return _.m(a,v.renderIcon(e,f),0)}})};
_.c.toggleContainerClass=function(v){v?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.c.computeIcon=function(v){return!_.Z("default_to_innertube_icon")||v.indexOf(":")>0?v:_.jI(v)};
_.c.determineIconSet=function(v,E,n,f){var x=this;return _.X(function(y){return y.nextAddress==1?_.Z("kevlar_system_icons")||_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.MX("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.m(y,x.switchToYtSysIconset(v,E,n,f),3):y.jumpTo(2):y.nextAddress!=2?y.return():_.m(y,x.useYtSysIconsetForMissingIcons(v,E,n,f),0)})};
_.c.switchToYtSysIconset=function(v,E,n,f){var x=this,y,Q,e,F,b,l,r;return _.X(function(a){switch(a.nextAddress){case 1:if(!v||x.iconsetName!=="yt-icons"&&x.iconsetName!=="yt-sys-icons"){a.jumpTo(0);break}y=Oa1(v);Q=y[1];Q=_.tWQ(Q);_.Z("enable_polymer_icons_replace_underscores_dash")&&Q.includes("_filled")&&(Q=Q.replace(/_filled/g,"-filled"));return _.m(a,uz(Q,!0),3);case 3:return e=a.yieldResult,_.m(a,uz(Q,!1),4);case 4:if((F=a.yieldResult)||E&&e)x.iconsetName="yt-sys-icons";x.iconName=x.getIconName(Q,
E,n,F,e);if(f===24){a.jumpTo(0);break}b="yt-sys-icons"+f+":"+x.iconName;return _.m(a,uz(b,!1,!0),6);case 6:return l=a.yieldResult,_.m(a,uz(b,!0,!0),7);case 7:r=a.yieldResult;x.iconName=x.getIconName(Q,E,n,l,r);if(!E&&l||E&&r)x.iconsetName="yt-sys-icons"+f;_.yQ(a)}})};
_.c.getIconName=function(v,E,n,f,x){v.includes("-filled")&&(v=v.replace("-filled",""));return x&&(E||n)?v+"-filled":v};
_.c.useYtSysIconsetForMissingIcons=function(v,E,n,f){var x=this,y,Q;return _.X(function(e){if(e.nextAddress==1)return x.iconsetName!=="yt-icons"?e.jumpTo(0):_.m(e,uz(x.iconName,!1,!1,!0),3);if(e.nextAddress!=4)return y=e.yieldResult,_.m(e,uz(x.iconName,!1),4);Q=e.yieldResult;if(y||!Q)return e.jumpTo(0);x.iconsetName="yt-sys-icons";return _.m(e,x.switchToYtSysIconset(v,E,n,f),0)})};
_.c.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.c.getIconManager=function(){return _.X(function(v){try{return v.return(_.P().resolve(_.Oe))}catch(E){return v.return(new Promise(function(n){_.qs().parkOrScheduleJob(function(){n(_.P().resolve(_.Oe))},2,"ci")}))}})};
_.c.getIconShapeData=function(){var v=this,E,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1){if(!v.iconType)return e.return(void 0);E=v.iconType.toLowerCase();n=E.endsWith("_filled")||E.endsWith("-filled");return _.m(e,v.getIconManager(),2)}f=e.yieldResult;x=v.active||v.defaultToFilled||n?"youtube_fill":"youtube_outline";y={iconName:E,iconStyle:x,iconSize:v.size,iconSetName:v.iconsetName};Q=!!f.resolveIcon(y);Q||(y.iconSize=void 0,Q=!!f.resolveIcon(y));!Q&&n&&(y.iconName=E.substring(0,E.length-
7),y.iconSize=v.size,Q=!!f.resolveIcon(y),Q||(y.iconSize=void 0,Q=!!f.resolveIcon(y)));Q||(y.iconStyle=void 0,Q=!!f.resolveIcon(y));Q||_.li(new _.yc("Icon not supported",{iconName:y.iconName,iconStyle:y.iconStyle,iconSize:y.iconSize,iconType:E}));return e.return(Q?y:void 0)})};
_.c.shouldRenderIconShape=function(v){if(!_.Z("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;v=this.getContainer(v);return!y2s(v,this.icon)};
_.c.renderIcon=function(v,E){var n=this,f,x,y,Q,e,F,b,l;return _.X(function(r){switch(r.nextAddress){case 1:if(E&&n.icon!==E)return r.return();f=n.getContainer(v);x=y2s(f,n.icon);if(n.shouldRenderIconShape(v)&&n.iconType)return n.applyIconShape(x,f),r.return();n.removeIconShape();if(!f)return r.return();n.iconName===""&&n.iconset&&f&&(n.removeStaticIcon(n.iconset,f),x&&n.removeAnimatedIcon(f));if(n.iconName===""&&n.iconset||!n.iconsetName||!ol1)return r.return();n.iconset=ol1.byKey(n.iconsetName);
if(!n.iconset)return n.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.uo(n,n.onIconsetAdded)),r.return();n.missingIconSet&&(n.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.uo(n,n.onIconsetAdded)));Q=(y=x||n.isAnimatedIcon?xeL(n.icon):void 0)&&!y.lazyLoad;F=y&&((e=y)==null?void 0:e.lazyLoad)&&(y.lottiePlayerProps.animationConfig.animationData?!0:kz.get(n.isDarkTheme?y.pathDarkTheme:y.path)?!0:!1);if(Q||F)return n.applyAnimatedIcon(f,y,n.iconset),r.return();if(F||
(b=y)==null||!b.lazyLoad){r.jumpTo(2);break}l=Qmy(y,n.isDarkTheme);n.applyStaticIcon(n.iconset,f,n.iconName,v,x);return _.m(r,l,3);case 3:return _.m(r,n.renderIcon(n.targetContainer,n.icon),4);case 4:return r.return();case 2:n.applyStaticIcon(n.iconset,f,n.iconName,v,x),_.yQ(r)}})};
_.c.getContainer=function(v){var E,n=(E=xv9(this.hostElement))==null?void 0:E.host;E=!!n&&!!n.polymerController;if(!v||E)return v?this.getTargetContainer(v,n):this.hostElement};
_.c.getTargetContainer=function(v,E){var n=_.K(E).querySelector("#"+v);n||(v=new _.yc("yt-icon container missing",E.is,v),_.mb(v));return n};
_.c.applyStaticIcon=function(v,E,n,f,x){x&&this.removeAnimatedIcon(E);this.removeIconShape();x=x&&!!this.iconType&&!!this.iconShapeData&&_.Z("kevlar_use_wil_icons");try{x?this.applyIconShape(!1,E):v.applyIcon(E,n)}catch(y){this.handleError(y,f,E)}};
_.c.applyIconShape=function(v,E){this.iconset&&E&&(this.removeStaticIcon(this.iconset,E),v&&this.removeAnimatedIcon(E));v={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var n=_.p(this.iconShapeDataSignal);E=n.next().value;n=n.next().value;var f=_.p(this.renderingOptionsSignal),x=f.next().value;f=f.next().value;n(this.iconShapeData);f(v);if(!this.wizHasRendered)for(this.wizHasRendered=!0,v=_.p(bdE(E,x)).next().value;v.firstChild;)_.K(this.hostElement).appendChild(v.firstChild)};
_.c.removeIconShape=function(){if(_.Z("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.c.removeStaticIcon=function(v,E){v.removeIcon(E)};
_.c.applyAnimatedIcon=function(v,E,n){this.removeStaticIcon(n,v);this.removeIconShape();var f;n=this.animatedIconElement&&((f=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:f.type)===E.type;if(this.animatedIconElement&&n){this.animatedIconElement.polymerController.animatedIcon=E;var x;((x=this.animatedIconElement)==null?void 0:x.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(v),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=E,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Z("kevlar_use_wil_icons")?v.insertBefore(this.animatedIconElement,v.childNodes[0]):(v=_.K(v),v.insertBefore(this.animatedIconElement,v.childNodes[0]))};
_.c.removeAnimatedIcon=function(v){_.Z("kevlar_use_wil_icons")?this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement):(v=_.K(v),this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.c.handleError=function(v,E,n){_.ss(v,this.iconName,E,n);E=y2s(n,this.icon);var f=!1;window.location.href.includes("JpymaW6Lh2w")?f=!0:n._svgIcon&&(n=(n=n._svgIcon.parentNode)?n.tagName:"unknown",_.ss(v,n),n==="YT-ICON"&&v.name==="NotFoundError"?f=!0:v.name==="NotFoundError"&&E&&(f=!0));f?_.li(v):_.mb(v)};
_.hK.Object.defineProperties(jV,{template:{configurable:!0,enumerable:!0,get:function(){if(nlz===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;
El6===void 0&&(El6=document.createElement("template"));var f=El6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);nlz=v}v=nlz;return v}}});
jV.prototype.handlePropertyChange=jV.prototype.handlePropertyChange;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],jV.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",String)],jV.prototype,"icon",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],jV.prototype,"active",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],jV.prototype,"defaultToFilled",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],jV.prototype,"isAnimatedIcon",void 0);
_.k([_.H({value:24}),_.W("design:type",Number)],jV.prototype,"size",void 0);_.k([_.H({value:""}),_.W("design:type",String)],jV.prototype,"targetContainer",void 0);_.k([_.H(),_.W("design:type",Object)],jV.prototype,"animatedIconElement",void 0);_.k([_.H(),_.W("design:type",Object)],jV.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],jV.prototype,"ariaHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],jV.prototype,"ariaLabel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],jV.prototype,"role",void 0);_.k([_.H(),_.W("design:type",String)],jV.prototype,"style",void 0);_.k([_.H(),_.W("design:type",String)],jV.prototype,"iconFilter",void 0);_.k([_.On("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],jV.prototype,"handlePropertyChange",null);
jV=_.k([_.p5({is:"yt-icon",noInjection:!0})],jV);var fV4;var xCX=function(){var v=document.body,E=v.appendChild;if(fV4===void 0){var n=document.createElement("template");_.q(n,'\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>');
fV4=n}n=fV4;E.call(v,n.content)};
document.body?xCX():window.addEventListener("DOMContentLoaded",xCX);var cIP,yI1=function(){return cIP!==void 0?cIP:cIP=document.createElement("template")};
document.head.appendChild(yI1().content);var poi,QZ1=function(){return poi!==void 0?poi:poi=document.createElement("template")};
document.head.appendChild(QZ1().content);var XoS;_.cT=new _.$Y("KEY_MANAGER_TOKEN");var aSy={duration:1E3,easing:"ease",fill:"forwards"};_.Nw(PAy);var eT1=_.GG(_.TG);_.Nw(_.TG);_.Ed=_.qu(function(v){var E=_.Ig(v.ref),n=v.aTagConfig?v.aTagConfig:_.o0(function(){var y,Q,e,F,b,l;var r=(l=_.F$((F=v.command)==null?void 0:F.call(v)))!=null?l:(b=v.command)==null?void 0:b.call(v);return _.wJ({innertubeCommand:r,skipOnClick:(y=v.skipOnClick)==null?void 0:y.call(v),stopPropagation:(Q=v.dangerousStopPropagation)==null?void 0:Q.call(v),defaultTarget:(e=v.target)==null?void 0:e.call(v)})||{}},void 0,"gnrRge");
_.Xp(function(){E.value._data=n()._data;E.value.params=n().params});
var f=_.ij(function(y){var Q,e;return void((e=(Q=n()).onpointerdown)==null?void 0:e.call(Q,y))}),x=_.ij(function(y){var Q,e;
return void((e=(Q=n()).onclick)==null?void 0:e.call(Q,y))});
return _.w("a",{el:E,href:function(){return n().href$},
rel:function(){return n().rel$},
class:function(){var y,Q;return(Q=n().className)!=null?Q:(y=v.className)==null?void 0:y.call(v)},
style:function(){var y;if((y=v.style)==null?0:y.call(v))return v.style();var Q;return((Q=v.disabled)==null?0:Q.call(v))?"pointer-events:none":""},
"aria-haspopup":function(){return!!n()["aria-haspopup$"]},
"force-new-state":zG(function(){return n()["force-new-state$"]}),
title:zG(function(){var y,Q;return(Q=n().title$)!=null?Q:(y=v.title)==null?void 0:y.call(v)}),
role:zG(function(){return n().role$}),
target:zG(function(){return n().target$}),
dir:zG(function(){var y;return((y=v.dir)==null?0:y.call(v))?v.dir():n().dir}),
tabindex:function(){var y;return n().tabindex$?Number(n().tabindex$):(y=v.tabIndex)==null?void 0:y.call(v)},
"aria-hidden":function(){var y,Q;return(Q=n()["aria-hidden$"])!=null?Q:(y=v.ariaHidden)==null?void 0:y.call(v)},
"aria-label":function(){var y,Q;return(Q=n()["aria-label$"])!=null?Q:(y=v.ariaLabel)==null?void 0:y.call(v)},
"aria-current":v.ariaCurrent,"aria-labelledby":v.ariaLabelledby,"aria-describedby":v.ariaDescribedby,"aria-selected":v.ariaSelected,"tab-identifier":v.tabIdentifier,"on:pointerdown":f,"on:click":x},v.children)},"j");var Fa4=function(v,E){this.fillAnimation=new Animation(Mb9(v),document.timeline);this.strokeAnimation=new Animation(Sc1(E),document.timeline)};
Fa4.prototype.play=function(){var v,E;(E=(v=this.fillAnimation).play)==null||E.call(v);var n,f;(f=(n=this.strokeAnimation).play)==null||f.call(n)};
Fa4.prototype.cancel=function(){var v,E;(E=(v=this.fillAnimation).cancel)==null||E.call(v);var n,f;(f=(n=this.strokeAnimation).cancel)==null||f.call(n)};_.oX=_.qu(function(v){var E=v.model;var n=v.pointerDownEvent;var f=v.pointerUpEvent;var x=v.pointerLeaveEvent;v=_.Ig();var y=_.tZ({"border-radius":function(){return E().borderRadius}}),Q=_.Ig(),e=_.Ig(),F=_.p(_.Rj(function(){return(f==null?0:f())||(x==null?0:x())?!1:!(n==null||!n())||!1})),b=F.next().value,l=F.next().value,r=void 0,a=function(){!r&&e.value&&Q.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(r=new Fa4(e.value,Q.value));
var O;(O=r)==null||O.play()},M=function(){var O;
(O=r)==null||O.cancel()},U=function(){var O;
(O=r)==null||O.cancel()};
_.Xp(function(){(f==null?0:f())&&a()});
_.Xp(function(){(n==null?0:n())&&M()});
_.Xp(function(){(x==null?0:x())&&U()});
F=_.ij(function(){a();l(!1)});
var d=_.ij(function(){M();l(!0)}),Y=_.ij(function(){U();
l(!1)});
_.Fp(function(){if(r){var O;(O=r)==null||O.cancel();r=void 0}});
var V={};b=_.W8("yt-spec-touch-feedback-shape",function(){return qc9(E().color)},(V["yt-spec-touch-feedback-shape--focused"]=function(){return!!E().focused&&!E().disabled},V["yt-spec-touch-feedback-shape--circular"]=function(){return!!E().circular},V["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!E().isExtended},V["yt-spec-touch-feedback-shape--down"]=b,V["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!E().triggerEvents},V));
return _.w("yt-touch-feedback-shape",{style:_.tZ({"border-radius":"inherit"})},_.w("div",{el:v,class:b,style:_.tZ({"margin-top":function(){return E().customTopExtend?"-"+E().customTopExtend+"px":void 0}}),
"on:mousedown":d,"on:mouseup":F,"on:pointerleave":Y,"on:touchstart":d,"on:touchend":F,"aria-hidden":!0},_.w("div",{class:"yt-spec-touch-feedback-shape__stroke",style:y,el:Q}),_.w("div",{class:"yt-spec-touch-feedback-shape__fill",style:y,el:e})))},"k");
_.oX.idomCompat=!0;var mCi={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 OC=_.lE();OC=OC.toLowerCase();if(_.FN(OC,"android")){var wo1=OC.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);wo1&&parseFloat(wo1[1])<100||OC.match("("+Object.keys(mCi).join("|")+")")};var bY1=_.qu(function(v){return _.w(_.x6,{cond:v.aTagConfig,then:function(E){return _.w(_.Ed,{aTagConfig:E,disabled:v.disabled,className:v.className,style:v.style,title:v.title,ariaLabel:v.ariaLabel,ariaCurrent:function(){var n,f;return((n=v.toggleable)==null?void 0:n.call(v))&&((f=v.toggled)==null?void 0:f.call(v))}},v.children)},
else:function(){return _.w("button",{"on:click":_.ij(function(E){var n;return(n=v.onClick)==null?void 0:n.call(v,E)}),
class:v.className,title:v.title,style:v.style,disabled:v.disabled,"aria-pressed":function(){var E,n;return((E=v.toggleable)==null?0:E.call(v))?!((n=v.toggled)==null||!n.call(v)):void 0},
"aria-label":v.ariaLabel,"aria-disabled":v.visiblyDisabled,"aria-hidden":v.ariaHidden,tabindex:v.tabIndex},v.children)}})},"l"),sZX=_.qu(function(v){var E=v.data;
var n=v.hasIconLeading;var f=v.hasIconLeadingTrailing;var x=v.hasIconTrailing;var y=v.iconButton;var Q=v.iconClassName;var e=v.secondaryIconClassName;var F=v.icon;var b=v.secondaryIcon;var l=v.textContentClassName;return _.w(kI,{className:"",style:"display: inherit; justify-content: center"},_.w(_.x6,{cond:function(){return F&&(n()||f()||(y==null?void 0:y()))},
then:function(){return _.w(kI,null,_.w("div",{class:Q,"aria-hidden":"true"},F==null?void 0:F()))}}),_.w(_.x6,{cond:function(){return(E().buttonText||E().animatedTextProps||E().formattedButtonText)&&!(y==null?0:y())},
then:function(){return _.w(kI,null,_.w(lV1,{className:l,iconPosition:function(){return E().iconPosition},
text:function(){return E().buttonText},
oneOffCustomTextWrap:function(){return E().oneOffCustomTextWrap},
formattedButtonText:function(){return E().formattedButtonText},
animatedTextProps:function(){return E().animatedTextProps}}))}}),_.w(_.x6,{cond:x,
then:function(){return _.w(kI,null,_.w("div",{class:Q},F==null?void 0:F()))}}),_.w(_.x6,{cond:f,
then:function(){return _.w(kI,null,_.w("div",{class:e},b==null?void 0:b()))}}),_.w(_.x6,{cond:function(){return!E().disabled&&!0},
then:function(){return _.w(_.oX,{model:function(){return{color:ISX(E())}}})}}))},"m"),lV1=_.qu(function(v){var E=function(){var n,f;
return((n=v.iconPosition)==null?void 0:n.call(v))==="icon-with-label"||((f=v.oneOffCustomTextWrap)==null?void 0:f.call(v))};
return _.w("div",{class:v.className,"aria-hidden":function(){var n,f,x;return((n=v.ariaHidden)==null?void 0:n.call(v))&&(!((f=v.animatedTextProps)==null||!f.call(v))||!((x=v.formattedButtonText)==null||!x.call(v)))}},_.w(_.Q1,null,_.w(_.y1,{when:function(){var n;
return(n=v.animatedTextProps)==null?void 0:n.call(v)}},function(){return _.w(eT1,{numberText:function(){return v.animatedTextProps().numberText},
numberValue:function(){return v.animatedTextProps().numberValue},
heightPx:function(){return v.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return v.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return v.animatedTextProps().shouldAnimate},
forceRollUp:function(){return v.animatedTextProps().forceRollUp}})}),_.w(_.y1,{when:function(){var n;
return(n=v.formattedButtonText)==null?void 0:n.call(v)}},function(){return _.w(_.nh,{text:function(){return Object.assign({},v.formattedButtonText(),{lineBreakMode:E()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":v.formattedButtonText().lineBreakMode,
alignment:E()?"TEXT_ALIGNMENT_CENTER":v.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!E()}})}),_.w(_.pk,null,function(){return v.text})))},"n"),rIz=_.qu(function(v){return _.w(_.x6,{cond:v.hasLabel,
then:function(){var E;return _.w("label",{class:v.className},v.children,(E=v.textContent)==null?void 0:E.call(v))},
else:function(){return v.children}})},"o"),kI=_.qu(function(v){return v.children},"p");var qd$=Hv("stamper-context");_.Nw(OdA);var WT=_.qu(function(v){var E=v.data;var n=v.icon;var f=v.iconName;var x=v.secondaryIcon;var y=v.secondaryIconName;var Q=v.focusedOverride;NpE();var e=J2Q(E),F=e.size,b=e.style;v=e.disabled;var l=e.onTap,r=e.alignByText,a=e.aTagConfig,M=e.customColors,U=e.segmentedPosition,d=e.toggled,Y=e.toggleable,V=e.accessibilityLabel,O=e.onToggle,T=e.iconPosition,L=e.oneOffCustomTextWrap,xX=e.disableTextEllipsis,t=e.disableBackdropFilter,QE=e.tooltipText,MF=e.ariaHidden,K1=e.tabIndex,JG=e.buttonText,$X=e.formattedButtonText,
HI=e.animatedTextProps,uE=deE(E,n,x,f,y,Q),WI=uE.type;n=uE.shouldFocus;f=uE.hasIconLeading;x=uE.hasIconTrailing;var bX=uE.hasIconLeadingTrailing,n0=uE.hasIconOnly;y=uE.hasIconOnly40;var qi=uE.hasIconWithLabel;Q=uE.iconButton;var fl=uE.visiblyDisabled;e=uE.overrideSmallSizeIcon;var yP=uE.iconToRender;uE=uE.secondaryIconToRender;var IF={},QP={};return _.w(rIz,{className:_.W8("yt-spec-button-shape-with-label",(IF["yt-spec-button-shape-with-label--is-overlay"]=function(){return b()==="overlay"||b()===
"overlay-dark"},IF)),
hasLabel:qi,textContent:function(){return _.w(lV1,{text:JG,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:T,formattedButtonText:$X,animatedTextProps:HI})}},_.w(bY1,{aTagConfig:a,
className:_.W8("yt-spec-button-shape-next",function(){return hgX(WI())},function(){return fl()?void 0:A2L(b())},function(){return VbN(F())},(QP["yt-spec-button-shape-next--disabled"]=fl,QP["yt-spec-button-shape-next--focused"]=n,QP["yt-spec-button-shape-next--icon-trailing"]=x,QP["yt-spec-button-shape-next--icon-leading"]=f,QP["yt-spec-button-shape-next--icon-leading-trailing"]=bX,QP["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return bX()&&!(JG()||$X())},QP["yt-spec-button-shape-next--icon-button"]=
function(){return n0()||qi()},QP["yt-spec-button-shape-next--icon-only-default"]=y,QP["yt-spec-button-shape-next--align-by-text"]=r,QP["yt-spec-button-shape-next--segmented-start"]=function(){return U()==="start"},QP["yt-spec-button-shape-next--segmented-end"]=function(){return U()==="end"},QP["yt-spec-button-shape-next--override-small-size-icon"]=e,QP["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,QP["yt-spec-button-shape-next--disable-text-ellipsis"]=xX,QP["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!t()&&YcA()},QP)),
style:function(){return HdE(M()).style},
onClick:function(T3){l==null||l(T3);Y()&&(O==null||O(T3))},
disabled:v,ariaLabel:V,toggleable:Y,toggled:d,title:function(){var T3;return(T3=QE())!=null?T3:""},
visiblyDisabled:fl,ariaHidden:MF,tabIndex:K1},_.w(sZX,{data:E,hasIconLeading:f,hasIconLeadingTrailing:bX,hasIconTrailing:x,iconButton:Q,icon:yP,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:uE})))},"q");
WT.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var PBg=_.qu(function(v){var E=v.data;var n=v.id;var f=v.hidden;var x=v.className;var y=v.icon;var Q=v.secondaryIcon;var e=v.iconName;var F=v.secondaryIconName;v=_.p(_.t7(!1,void 0,"ikxyhf"));var b=v.next().value,l=v.next().value,r=function(){var M=_.P().resolve(_.jp(_.cT));M&&l(M.isKeyBoardInUse())},a=function(){l(!1)};
v=_.Ig(function(M){if(_.P().resolve(_.jp(_.cT)))return M.addEventListener("focusin",r),M.addEventListener("focusout",a),function(){M.removeEventListener("focusin",r);M.removeEventListener("focusout",a)}});
return _.w("yt-button-shape",{el:v,id:n,class:x,hidden:f},_.w(_.x6,{cond:E,then:function(){return _.w(WT,{data:E,icon:y,secondaryIcon:Q,iconName:e,secondaryIconName:F,focusedOverride:b})}}))},"r");
_.Z("web_wiz_button_shape")&&_.Yz(PBg,"yt-button-shape",{props:{data:_.Kt,id:_.Kt,hidden:_.Kt,className:_.Kt,icon:_.Ij,secondaryIcon:_.Ij,iconName:_.Kt,secondaryIconName:_.Kt},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var Ws=function(){var v=_.g.apply(this,arguments)||this;v.keyboardFocused=!1;return v};
_.S(Ws,_.g);Ws.prototype.onFocus=function(){var v=_.P().resolve(_.jp(_.cT));v&&(this.keyboardFocused=v.isKeyBoardInUse())};
Ws.prototype.onBlur=function(){this.keyboardFocused=!1};
Ws.prototype.renderIdom=function(){var v=this;if(this.data){var E=vi(this.data,!!this.iconName),n=Des(this.data),f=function(){var y;xz("yt-icon",{icon:v.iconName,active:(y=v.data)==null?void 0:y.toggled,size:E,style:"width: "+E+"px; height: "+E+"px;",iconFilter:n},Kp)},x=function(){var y;
xz("yt-icon",{icon:v.secondaryIconName,active:(y=v.data)==null?void 0:y.toggled,size:E,style:"width: "+E+"px; height: "+E+"px;",iconFilter:n},Kp)};
this.data.focused=this.keyboardFocused;_.Z("web_reactive_button_shape_in_c3po")?Md(WT)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):Tps(this.data,f,x);_.jK(this.hostElement,"yt-renderidom-finished")}};
_.hK.Object.defineProperties(Ws,{template:{configurable:!0,enumerable:!0,get:function(){if(XoS===void 0){var v=document.createElement("template");_.q(v,"\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");
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(QZ1().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(yI1().content.cloneNode(!0),v.content.firstChild);XoS=v}v=XoS;return v}}});
Ws.prototype.onBlur=Ws.prototype.onBlur;Ws.prototype.onFocus=Ws.prototype.onFocus;_.k([_.h(LqF),_.W("design:type",Object)],Ws.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ws.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],Ws.prototype,"iconName",void 0);_.k([_.H(),_.W("design:type",String)],Ws.prototype,"secondaryIconName",void 0);_.k([_.H(),_.W("design:type",Object)],Ws.prototype,"keyboardFocused",void 0);
_.k([_.jk("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ws.prototype,"onFocus",null);_.k([_.jk("focusout"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ws.prototype,"onBlur",null);Ws=_.k([_.p5({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.Z("web_wiz_button_shape")})],Ws);_.Yz(_.qu(function(v){function E(){n().seconds&&y(ooE({seconds:Number(n().seconds)-Date.now()/1E3}))}
var n=v.targetTimestamp;v=v.className;var f=_.p(_.t7("",void 0,"U1Q8Ae")),x=f.next().value,y=f.next().value;_.mM(function(){E();var Q=setInterval(function(){E()},1E3);
_.Fp(function(){clearInterval(Q)})});
return _.w("yt-countdown",{class:_.W8("ytCountDownHost",v)},_.w("div",null,x))},"s"),"yt-countdown",{props:{targetTimestamp:_.Kt,
className:_.Ij}});_.C7=_.qu(function(v){var E=v.data;var n=v.className;var f=v.style;var x=v.useOutlinedIcon;var y=v.buttonOverrides;var Q=v.animatedTextProps;var e=v.onClick;var F=_.Ig(function(Y){return function(){GmP(_.R6(),Y)}}),b=function(){return E().iconName},l,r=(l=_.P().resolve(_.jp(_.aj)))==null?void 0:l(),a=function(){var Y=E();
var V=y==null?void 0:y(),O=Q==null?void 0:Q();if(Y){var T=Rg9(Y.type);var L=!!Y.title||!!Y.titleFormatted;var xX=!(!Y.iconName&&!Y.iconImage);L=xX&&!L?"icon-only":xX?Y.iconTrailing||Y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;L==="icon-only-40"&&(T="text");var t,QE=(t=V==null?void 0:V.disabled)!=null?t:Y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";t=Object;xX=t.assign;var MF=Y.title,K1=Y.titleFormatted;O=O&&O.numberText&&
!isNaN(Number(O.numberValue))?O:void 0;var JG=Y.accessibilityText,$X=zgX(Y.style),HI=tbI(Y.state),uE=Bp1(Y.buttonSize),WI=id1(Y,F,QE,e);QE=QE&&!Y.onDisabledTap;var bX=_.wJ({elementsCommand:Y.onTap,forceNewState:!0});bX=bj(bX)?bX:void 0;var n0=Y.customFontColor,qi=Y.customBackgroundColor;var fl=Y.customBorderColor;var yP=Y.customDarkThemeFontColor,IF=Y.customDarkThemeBackgroundColor,QP=Y.customDarkThemeBorderColor;n0=r&&yP?yP:n0;qi=r&&IF?IF:qi;fl=r&&QP?QP:fl;fl={color:n0?_.Qt(n0):void 0,backgroundColor:qi?
_.Qt(qi):void 0,borderColor:fl?_.Qt(fl):void 0};Y=xX.call(t,{},{buttonText:MF,formattedButtonText:K1,animatedTextProps:O,accessibilityLabel:JG,style:$X,type:T,state:HI,size:uE,iconPosition:L,onTap:WI,disabled:QE,aTagConfig:bX,customColors:fl,tooltipText:Y.tooltip},V)}else Y={style:"mono",type:"text",state:"active",size:"M"};Y.focused=d();return Y},M=function(){return vi(a(),!!E().iconName)};
v=_.p(_.t7(!1,void 0,"JjUrEe"));l=v.next().value;var U=v.next().value,d=l;v=_.ij(function(){var Y=_.P().resolve(_.jp(_.cT));Y&&U(Y.isKeyBoardInUse());return!1});
l=_.ij(function(){U(!1);return!1});
_.Xp(function(){var Y,V=_.C(E==null?void 0:(Y=E())==null?void 0:Y.onVisible,_.eg);V&&_.mG(V,{disableClickTracking:!0})});
_.l5(function(){F.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var Y=E().targetId;Y&&_.iXg(_.R6(),Y,F.value)});
return _.w("button-view-model",{el:F,class:_.W8("yt-spec-button-view-model",n),"on:focusin":v,"on:focusout":l},_.w(_.x6,{cond:function(){return E().iconImage?{sources:[E().iconImage]}:void 0},
then:function(Y){return _.w(WT,{data:a,icon:function(){return _.w(_.UZ,{data:Y,alt:"",targetWidth:M,targetHeight:M,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.w(WT,{data:a,icon:function(){return _.w(_.B8,{icon:b,active:function(){return(x==null?0:x())?!1:a().toggled},
animateIcon:function(){var Y;return!!(f==null?0:(Y=f())==null?0:Y.animateIcon)},
size:M})}})}}))},"t");
_.C7.idomCompat={callbacks:{onClick:!0}};_.Yz(_.qu(function(v){return _.w("yt-button-view-model",{id:v.id,class:_.W8(v.scopingClassName,v.classes),icon:function(){var E;return(E=v.icon)==null?void 0:E.call(v)},
"dialog-dismiss":function(){var E;return((E=v.dialogDismiss)==null?0:E.call(v))?"":void 0}},_.w(_.C7,{data:function(){var E;
return(E=v.data)==null?void 0:E.call(v)},
className:function(){var E;return(E=v.className)==null?void 0:E.call(v)},
style:function(){var E;return(E=v.style)==null?void 0:E.call(v)},
useOutlinedIcon:function(){var E;return(E=v.useOutlinedIcon)==null?void 0:E.call(v)},
buttonOverrides:function(){var E;return(E=v.buttonOverrides)==null?void 0:E.call(v)},
animatedTextProps:function(){var E;return(E=v.animatedTextProps)==null?void 0:E.call(v)},
onClick:function(E){var n;return(n=v.onClick)==null?void 0:n.call(v,E)}}))},"u"),"yt-button-view-model",{props:{data:_.Kt,
className:_.Kt,style:_.Kt,useOutlinedIcon:_.Kt,buttonOverrides:_.Kt,animatedTextProps:_.Kt,onClick:_.Ij,scopingClassName:_.Kt,id:_.Kt,icon:_.Kt,dialogDismiss:_.Kt,classes:_.Kt}});var $I=function(){var v=_.g.apply(this,arguments)||this;v.isGoalActive=!0;return v};
_.S($I,_.g);$I.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
$I.prototype.progressBarChanged=function(){var v=_.K(this.hostElement).querySelector("#progress-bar-progress"),E,n,f,x=(f=Number((E=this.creatorGoalState)==null?void 0:E.currentGoalCount)/Number((n=this.creatorGoalState)==null?void 0:n.totalGoalCount)*100)!=null?f:0,y;v.style.width=((y=Math.min(x,100))!=null?y:0)+"%"};
$I.prototype.goalStateChanged=function(){var v;this.isGoalActive=((v=this.creatorGoalState)==null?void 0:v.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var E;v={"--yt-progress-bar-color":lwI((E=this.creatorGoalState)==null?void 0:E.progressBarColor)};_.NQ(this.hostElement,v)};
$I.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.hK.Object.defineProperties($I.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var v;return this.isGoalActive&&!((v=this.creatorGoalState)==null||!v.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.endTimestampMs){var E;v=Number((E=this.creatorGoalState)==null?void 0:E.endTimestampMs)/1E3;return{seconds:String(v)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.themedTargetImage){var E;v=_.C((E=this.creatorGoalState)==null?void 0:E.themedTargetImage,CQF);return this.isAppDarkTheme()?v==null?void 0:v.imageDark:v==null?void 0:v.imageLight}}}});
_.hK.Object.defineProperties($I,{template:{configurable:!0,enumerable:!0,get:function(){return $SF()}}});
$I.prototype.goalStateChanged=$I.prototype.goalStateChanged;$I.prototype.progressBarChanged=$I.prototype.progressBarChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],$I.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);
_.k([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(v,E){return _.LH(v.entities,"creatorGoalEntity",E)}}),
_.W("design:type",Object)],$I.prototype,"creatorGoalState",void 0);_.k([_.H(),_.W("design:type",Object)],$I.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],$I.prototype,"isGoalActive",void 0);_.k([_.A("creatorGoalState","isGoalActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$I.prototype,"shouldShowCountdown",null);_.k([_.A("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],$I.prototype,"endTimestamp",null);
_.k([_.A("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],$I.prototype,"targetIconThemedImage",null);_.k([_.On("creatorGoalState.currentGoalCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$I.prototype,"progressBarChanged",null);_.k([_.On("creatorGoalState.creatorGoalState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$I.prototype,"goalStateChanged",null);
$I=_.k([_.p5({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],$I);_.u($I,"yt-creator-goal-progress-flow-view-model",function(){return $SF()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var aV4;var ZYF;var Lt=function(){return _.g.apply(this,arguments)||this};
_.S(Lt,_.g);Lt.prototype.attached=function(){var v,E,n;if(this==null?0:(v=this.data)==null?0:(E=v.pdgPurchasedBumperLoggingDirectives)==null?0:(n=E.loggingDirectives)==null?0:n.trackingParams){var f,x,y;nLG(this==null?void 0:(f=this.data)==null?void 0:(x=f.pdgPurchasedBumperLoggingDirectives)==null?void 0:(y=x.loggingDirectives)==null?void 0:y.trackingParams)}};
Lt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Lt.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Lt.prototype,"data",void 0);Lt=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Lt);
_.u(Lt,"yt-live-chat-item-bumper-view-model",function(){if(ZYF===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;aV4===void 0&&(aV4=document.createElement("template"));var f=aV4;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ZYF=v}v=ZYF;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var CBg;var M3X;_.Jq=function(v,E){this.data=v;this.actions=E;this.data=v;this.actions=E};
_.Pi=function(){};_.GU={};_.GU.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(v,E){oL$(this.hostElement,v,E)},
getNavigationEndpointPopupAction:function(v){return fHs(v,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(v,E){xYs(this.hostElement,v,E,this.openPopupConfig)}};var bBE=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.TU={};
_.TU.YtEndpointBehavior=[_.GU.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.MX("openPopupConfig");(this.useClickHandler=_.Sp("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(v){p6y(this.hostElement,v,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(v){var E=this.hostElement,n=this.openPopupConfig,f=this.disableCommandHandlerOverride;f=f===void 0?!1:f;var x=cbI(v);if(x){x.href&&FJ(x.href);var y=v.detail;var Q=y.sourceEvent;y=y.preventer;Q=Q.button!==void 0?Q.button===0&&!y3(Q):y?!y3(y):!0;x.data&&Q&&ybQ(E,x,v,n,f)}},
onEndpointTouchEnd_:function(v){y3(v)||cbI(v)&&v.preventDefault()},
onEndpointTapStart_:function(v){mYQ(v)}}];var lHN="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),rbF=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var SDg={};SDg.YtPlaintextBehavior=[_.Ff,{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(v){v.preventDefault();v=v.clipboardData.getData("text/plain");document.execCommand("insertText",!1,v)},
preventRichTextFormatting_:function(v){_.yH&&(v=v.detail.keyboardEvent,v.stopImmediatePropagation(),v.preventDefault())}}];var UCl;var qDg;var iQ=function(){var v=_.g.apply(this,arguments)||this;v.ignoreShadyDom=!1;v.hasChange_=!1;v.hasSetTitle_=!1;v.useIOObserverForVisibilityLogging_=_.Z("kevlar_use_vimio_behavior")&&_.MX("INNERTUBE_CLIENT_NAME")==="WEB";v.ytFormattedStringObserverHandlerKeys_=void 0;return v};
_.S(iQ,_.g);_.c=iQ.prototype;_.c.created=function(){this.useIOObserverForVisibilityLogging_=_.Z("kevlar_use_vimio_behavior")&&_.MX("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.c.ready=function(){_.MX("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_()};
_.c.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.c.detached=function(){this.unobserveIOObservers_()};
_.c.clearContents_=function(){for(var v=this.getRoot(),E=v.lastChild;E&&E.tagName!=="STYLE";){try{v.removeChild(E)}catch(n){break}E=v.lastChild}};
_.c.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var v=_.p(this.ytFormattedStringObserverHandlerKeys_),E=v.next();!E.done;E=v.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(E.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.c.resetForAttributedString=function(){var v=this.getRoot();!v.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),v.appendChild(this.ytAttributedStringElementRef))};
_.c.resetForFormattedString=function(){var v=this.getRoot(),E=v.querySelector("yt-attributed-string");E&&(this.ytAttributedStringElementRef=v.removeChild(E))};
_.c.textChanged=function(){this.textChanged_(this.text)};
_.c.textChanged_=function(v){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!v||!v.runs&&!v.simpleText;if(_.Z("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var E=this.hostElement.firstChild;E&&E.nodeName==="FONT";){var n=E;E=E.nextSibling;this.hostElement.removeChild(n)}E=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
n=v.simpleText;var f;!n&&((f=v.runs)==null?void 0:f.length)===1&&this.isSimpleString_(v.runs[0])&&(n=v.runs[0].text);n!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.MX("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(n!==void 0){try{E.textContent=n}catch(x){}E.textContent||(this.isEmpty=!0)}else v=v.runs,n!==void 0&&(v=[{text:n}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),v&&this.updateText_(v),
E.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.c.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)};
_.c.computeAriaLabel_=function(v){return v};
_.c.computeEllipsisTruncateStyling=function(v,E){return v&&!E};
_.c.computeUseAttributedString=function(v){return _.Z("web_replace_formatted_with_attributed_string")&&hwQ(v)&&!this.disableAttributedString&&!this.enableContentEditable};
_.c.setNodeStyle_=function(v,E){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Z("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?E.removeAttribute("dir"):E.setAttribute("dir","auto");E.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");E.style.color="";var n=null;this.noStyles||(v.bold&&(E.classList.add("bold"),n="bold"),v.deemphasize&&(E.classList.add("deemphasize"),n="deemphasize"),v.italics&&E.classList.add("italic"),
v.strikethrough&&E.classList.add("strikethrough"),v.errorUnderline&&(E.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),v.bracket&&E.classList.add("bracket"),v.textColor&&(E.style.color=_.p2(v.textColor)));n!==E.getAttribute("style-target")&&(n?E.setAttribute("style-target",n):E.removeAttribute("style-target"))};
_.c.setUpVisibilityLogging_=function(v,E){var n=this;this.setNodeTrackingParams_(v,E);var f;((f=E.data)==null?0:f.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(v=this.ytRendererBehavior.visibilityObserver.observe(E,function(x){var y=n.ytRendererBehavior.getVisibilityLogger();y&&y.reportShown(x)},this.ytRendererBehavior.visibilityOptionVisible_),E=this.ytRendererBehavior.visibilityObserver.observe(E,function(x){var y=n.ytRendererBehavior.getVisibilityLogger();
y&&y.reportHidden(x)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(v),this.ytFormattedStringObserverHandlerKeys_.push(E))};
_.c.setNodeTrackingParams_=function(v,E){E.data||(E.data={});if((v=v.loggingDirectives?v.loggingDirectives.trackingParams:null)||E.data.trackingParams)E.data.trackingParams=v};
_.c.computeHasLinkOnly_=function(v){return!(!v||v.length!==1||this.noEndpoints||!v[0].navigationEndpoint)};
_.c.getRoot=function(){var v=this.buildScopeDomOptions();return this.enableContentEditable?_.K(_.K(this.hostElement,v).querySelector("[contenteditable]")):_.K(this.hostElement,v)};
_.c.fixContenteditableScope=function(){var v=function(E){E&&(E.nodeType===1&&E.classList&&(E.classList.add("style-scope"),E.classList.add("yt-formatted-string")),E.childNodes&&E.childNodes.forEach(function(n){v(n)}))};
v(this.getRoot())};
_.c.updateText_=function(v){for(var E=v.length,n=this.getRoot(),f=n.firstChild;f&&f.nodeName==="STYLE";)f=f.nextSibling;for(var x=0;x<E&&f;){var y=v[x],Q=_.Z("remove_cr_char")&&y.text?y.text.replace("\r",""):y.text;if(this.isSimpleString_(y)&&!this.useMixedDirectionFormattedStrings)if(f.nodeName==="#text"){f.textContent!=Q&&(f.textContent=Q);x++;f=f.nextSibling;continue}else break;if(_.C(y,QI))break;else if(!this.noEndpoints&&y.navigationEndpoint){if(f.nodeName!=="A")break;this.setDataOnAnchor_(f,
y.navigationEndpoint)}else if(f.nodeName!=="SPAN")break;this.setNodeStyle_(y,f);this.setUpVisibilityLogging_(y,f);f.textContent!=Q&&(f.textContent=Q);x++;f=f.nextSibling}if(f)for(y=n.lastChild,f=x?f.previousSibling:null;y&&y!=f;){try{n.removeChild(y)}catch(e){break}y=n.lastChild}x!==E&&this.addTextNodes_(v,x)};
_.c.addTextNodes_=function(v,E){for(var n=document.createDocumentFragment(),f=v.length;E<f;E++){var x=v[E],y=_.Z("remove_cr_char")&&x.text?x.text.replace("\r",""):x.text;if(this.isSimpleString_(x)&&!this.useMixedDirectionFormattedStrings)n.appendChild(document.createTextNode(y));else{var Q=_.C(x,QI);if(Q){if(Q.image){var e=document.createElement("img");Q.isCustomEmoji||e.classList.add("small-emoji");e.classList.add("emoji");Q.isCustomEmoji&&(e.dataset.emojiId=Q.emojiId);e.src=_.hZ(Q.image.thumbnails,
this.emojiSize);(x=this.get("image.accessibility.accessibilityData.label",Q))?e.alt=x:Q.shortcuts&&Q.shortcuts.length>0?e.alt=Q.shortcuts[0]:Q.emojiId&&(e.alt=Q.emojiId);n.appendChild(e);this.hasEmoji=!0}}else!this.noEndpoints&&x.navigationEndpoint?(e=document.createElement("a"),e.classList.add("yt-simple-endpoint"),e.setAttribute("spellcheck","false"),this.setDataOnAnchor_(e,x.navigationEndpoint)):e=document.createElement("span"),this.setNodeStyle_(x,e),this.setUpVisibilityLogging_(x,e),e.appendChild(document.createTextNode(y)),
n.appendChild(e)}}this.getRoot().appendChild(n)};
_.c.isSimpleString_=function(v){return(this.noEndpoints||!v.navigationEndpoint)&&!_.C(v,QI)&&(this.noStyles||!(v.bold||v.deemphasize||v.italics||v.strikethrough||v.errorUnderline||v.bracket||v.textColor))&&!v.loggingDirectives};
_.c.getRawText=function(){return _.JC(this.text)};
_.c.getFirstRunText=function(){var v;if(((v=this.text)==null?0:v.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.c.setFirstRunText=function(v){var E;((E=this.text)==null?0:E.runs)&&this.text.runs[0]&&(this.text.runs[0].text=v,this.textChanged_(this.text))};
_.c.setDataOnAnchor_=function(v,E){var n=this;!_.Z("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(E)||this.isSignalServiceEndpoint_(E)?(v.onclick=this.serviceEndpointHandler_(E),Cc(v,"#")):kGN({text:this.text,command:E},function(){E_9(v,E,n.target)})};
_.c.isServiceEndpoint_=function(v){var E;return!((E=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null||!E.sendPost)};
_.c.isSignalServiceEndpoint_=function(v){return!!_.C(v,_.zn)};
_.c.serviceEndpointHandler_=function(v){var E=this;return function(n){_.$Z(E.hostElement,[v]);n.preventDefault()}};
_.c.overrideAriaLabelChanged_=function(){var v=this.getRoot();this.enableContentEditable&&v&&v.setAttribute("aria-label",this.overrideAriaLabel)};
_.c.enableContentEditableChanged_=function(){var v=this,E=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),E=_.K(this.hostElement,E),!E.lastChild||E.lastChild instanceof HTMLElement&&E.lastChild.id!=="contenteditable-root"){var n=document.createElement("div");n.id="contenteditable-root";n.setAttribute("contenteditable","true");n.setAttribute("dir","auto");n.onfocus=function(){v.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
E.appendChild(n);this.overrideAriaLabel&&n.setAttribute("aria-label",this.overrideAriaLabel)}}else n=_.AV(this.hostElement).firstChild,n instanceof HTMLElement&&n.id==="contenteditable-root"&&_.K(this.hostElement,E).removeChild(n)};
_.c.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.c.getNodesForVisibilityLogging_=function(){return _.v2(this.getRoot().childNodes,function(v){var E;return!((E=v.data)==null||!E.trackingParams)})};
_.c.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.c.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(E){v.reportShown(E)})}};
_.c.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(E){v.reportHidden(E)})}};
_.hK.Object.defineProperties(iQ.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Z("enable_mixed_direction_formatted_strings")}}});
iQ.prototype.enableContentEditableChanged_=iQ.prototype.enableContentEditableChanged_;iQ.prototype.overrideAriaLabelChanged_=iQ.prototype.overrideAriaLabelChanged_;iQ.prototype.ellipsisTruncateChanged_=iQ.prototype.ellipsisTruncateChanged_;iQ.prototype.textChanged=iQ.prototype.textChanged;_.k([_.h(SDg.YtPlaintextBehavior),_.W("design:type",Object)],iQ.prototype,"ytPlaintextBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],iQ.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iQ.prototype,"text",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"noEndpoints",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"noStyles",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],iQ.prototype,"isDarkTheme",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],iQ.prototype,"splitLines",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],iQ.prototype,"forceDefaultStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],iQ.prototype,"ellipsisTruncate",void 0);_.k([_.H(),_.W("design:type",Object)],iQ.prototype,"ignoreShadyDom",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.W("design:type",Boolean)],iQ.prototype,"ellipsisTruncateStyling",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.W("design:type",String)],iQ.prototype,"ariaLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],iQ.prototype,"isEmpty",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.W("design:type",Boolean)],iQ.prototype,"hasLinkOnly_",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"hasEmoji",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"disableAttributedString",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"isOverlay",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"linkInheritColor",void 0);
_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"noPreWrap",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"userInput",void 0);_.k([_.H({value:16}),_.W("design:type",Number)],iQ.prototype,"emojiSize",void 0);_.k([_.H(),_.W("design:type",String)],iQ.prototype,"target",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"enableContentEditable",void 0);_.k([_.H(),_.W("design:type",String)],iQ.prototype,"overrideAriaLabel",void 0);
_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"respectHtmlDir",void 0);_.k([_.H(),_.W("design:type",Boolean)],iQ.prototype,"respectLangDir",void 0);_.k([_.A("plaintextOnly"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iQ.prototype,"useMixedDirectionFormattedStrings",null);_.k([_.H({computed:"computeUseAttributedString(text)"}),_.W("design:type",Boolean)],iQ.prototype,"useYtAttributedString",void 0);
_.k([_.On("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iQ.prototype,"textChanged",null);_.k([_.On("ellipsisTruncate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iQ.prototype,"ellipsisTruncateChanged_",null);_.k([_.On("overrideAriaLabel"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iQ.prototype,"overrideAriaLabelChanged_",null);
_.k([_.On("enableContentEditable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iQ.prototype,"enableContentEditableChanged_",null);iQ=_.k([_.p5({is:"yt-formatted-string",disableElementRegistration:!0})],iQ);
_.u(iQ,"yt-formatted-string",function(){if(qDg===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;UCl===void 0&&(UCl=document.createElement("template"));var f=UCl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qDg=v}v=qDg;return v});var JIS;var Kaw;var dCF;var IV1;var zU=function(){var v=_.g.apply(this,arguments)||this;v.focused=!1;v.disabled=!1;v.isOverlay=!1;return v};
_.S(zU,_.g);zU.prototype.triggerDown=function(){if(!this.disabled){_.Vt(this.hostElement,"down",!0);var v;(v=this.currentAnimation)==null||v.cancel()}};
zU.prototype.triggerUp=function(){if(!this.disabled){_.Vt(this.hostElement,"down",!1);var v=this.fillElement;var E=this.strokeElement;typeof GroupEffect==="function"?(v=new GroupEffect([Mb9(v),Sc1(E)]),v=new Animation(v,document.timeline)):v=new Fa4(v,E);this.currentAnimation=v;var n;(n=this.currentAnimation)==null||n.play()}};
_.k([_.Wp(".stroke"),_.W("design:type",HTMLElement)],zU.prototype,"strokeElement",void 0);_.k([_.Wp(".fill"),_.W("design:type",HTMLElement)],zU.prototype,"fillElement",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zU.prototype,"focused",void 0);_.k([_.H(),_.W("design:type",Object)],zU.prototype,"disabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zU.prototype,"isOverlay",void 0);zU=_.k([_.p5({is:"yt-interaction",disableElementRegistration:!0})],zU);
_.u(zU,"yt-interaction",function(){if(IV1===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;dCF===void 0&&(dCF=document.createElement("template"));var f=dCF;n.call(E,f.content.cloneNode(!0),v.content.firstChild);IV1=v}v=IV1;return v},{mode:2});var RD=function(){return _.g.apply(this,arguments)||this};
_.S(RD,_.g);_.c=RD.prototype;_.c.ready=function(){var v=this,E=_.K(this.hostElement).querySelector("#button");E.addEventListener("focus",function(){mU1||(mU1=new FCi);v.keyboardFocused=mU1.isKeyBoardInUse()});
E.addEventListener("blur",function(){v.keyboardFocused=!1;v.rippleUp_()})};
_.c.computeTabIndex_=function(v){return v?-1:0};
_.c.computeButtonAriaPressed_=function(v){if(this.toggleable)return v?"true":"false"};
_.c.rippleDown_=function(){_.K(this.hostElement).querySelector("#interaction").triggerDown()};
_.c.rippleUp_=function(){_.K(this.hostElement).querySelector("#interaction").triggerUp()};
_.c.onPressedChanged_=function(){var v=_.AV(_.K(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.AV(_.K(this.hostElement).querySelector("#button")).children[0];v&&(v.active=this.pressed)};
RD.prototype.onPressedChanged_=RD.prototype.onPressedChanged_;RD.prototype.rippleUp_=RD.prototype.rippleUp_;RD.prototype.rippleDown_=RD.prototype.rippleDown_;_.k([_.H(),_.W("design:type",String)],RD.prototype,"label",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],RD.prototype,"disabled",void 0);_.k([_.H(),_.W("design:type",Boolean)],RD.prototype,"pressed",void 0);_.k([_.H(),_.W("design:type",Object)],RD.prototype,"toggleable",void 0);
_.k([_.H(),_.W("design:type",Boolean)],RD.prototype,"untabbable",void 0);_.k([_.H(),_.W("design:type",Boolean)],RD.prototype,"keyboardFocused",void 0);_.k([_.jk("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"rippleDown_",null);_.k([_.jk("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"rippleUp_",null);
_.k([_.On("pressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"onPressedChanged_",null);RD=_.k([_.p5({is:"yt-icon-button",disableElementRegistration:!0})],RD);
_.u(RD,"yt-icon-button",function(){if(Kaw===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;JIS===void 0&&(JIS=document.createElement("template"));var f=JIS;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Kaw=v}v=Kaw;return v},{mode:2});var YDU=_.jU(["aria-"]),t1={};t1.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.TU.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!!_.P().resolve(_.jp(_.cT))&&_.Z("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 v=this.computeHref_(this.endpoint,!0);v?Cc(this.elements_.endpoint,v):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){v=this.buttonClass.split(" ");v=_.p(v);for(var E=v.next();!E.done;E=v.next())E=E.value,_.Vt(this.hostElement,E,!0),this.elements_.button&&_.Vt(this.elements_.button,E,!0),this.elements_.text&&_.Vt(this.elements_.text,E,!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&&(v=null,this.buttonAccessibility&&(v=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=v:v?_.H5([_.G6(YDU)],this.elements_.button,"aria-label",v):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var v=_.P().resolve(_.jp(_.cT));v&&(this.keyboardFocused=v.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.VB("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,_.pG(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.pG(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(v,E){if(E)for(v=E.split(" "),v=_.p(v),E=v.next();!E.done;E=v.next())E=E.value,_.Vt(this.hostElement,E,!1),this.elements_.button&&_.Vt(this.elements_.button,E,!1),this.elements_.text&&_.Vt(this.elements_.text,E,!1)},
buttonIconChanged_:function(v){this.elements_.icon?v?(this.elements_.icon.icon=v,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.pG(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.D_(this.hostElement,"is-paper-button-with-icon",!1)):v&&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"&&_.pG(this.elements_.button).appendChild(this.elements_.icon):_.pG(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.D_(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(v){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,v){var E=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(v){case "yt_icon_button_with_label":E=!0;_.Vt(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();v=_.pG(this.elements_.button).firstElementChild;
this.elements_.icon=v;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.pG(this.elements_.endpoint).appendChild(this.elements_.button);_.pG(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.VB("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;_.pG(this.elements_.button).appendChild(this.elements_.text);_.pG(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":E=!0,this.elements_.button=this.getYtIconButton_(),v=_.pG(this.elements_.button).firstElementChild,this.elements_.icon=v,this.setIconActive_(this.elements_.icon),
_.pG(this.elements_.endpoint).appendChild(this.elements_.button)}_.D_(this.hostElement,"is-icon-button",E);_.D_(this.hostElement,"is-paper-button",!E);_.D_(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 n;_.K((n=this.container.hostElement)!=null?n:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.pG(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(v){if(v!=void 0||this.disabled)this.disabled=v,this.elements_.button&&(this.elements_.button.disabled=v)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(v){_.Z("kevlar_system_icons")&&v&&this.data&&(this.data.isSelected!==void 0?v.active=this.data.isSelected:this.data.isToggled!==void 0&&(v.active=this.data.isToggled))},
observeBasicPalette_:function(v){_.Q3(this.hostElement,v)},
disabledChanged_:function(v){this.data&&this.set("data.isDisabled",v)},
onYtButtonTap_:function(v){if(this.disabled)v.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.$Z(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(v=this.disableCommandHandlerOverride,!this.data||!this.data.command||v||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Z("handle_service_request_actions")||_.$Z(this.hostElement,[this.serviceEndpoint]),
_.jK(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Z("handle_service_request_actions")?(v=[],this.serviceEndpoint&&v.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&v.push(this.data.command),v.length&&_.LG(this.hostElement,v,this.hostElement)):this.data&&this.data.command&&(v=this.data.command,v.accountUnlinkCommand||v.accountLinkCommand||v.insertAdCommand||v.insertHighlightMarkerCommand||
v.createLivestreamHighlightClipCommand||v.getVideoUploadFeedbackCommand||v.musicDeletePrivatelyOwnedEntityCommand||v.ypcCancelRecurrenceEndpoint||v.getMultiSelectCommandEndpoint?_.$Z(this.hostElement,[v]):_.LG(this.hostElement,[v],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 v,E=_.K((v=this.container.hostElement)!=null?v:this.container);E.lastChild&&E.lastChild.tagName!="STYLE";)try{E.removeChild(E.lastChild)}catch(n){break}},
getYtIconButton_:function(){var v=this.reuseEnabled_()?_.VB("yt-icon-button"):document.createElement("yt-icon-button"),E=_.pG(v).firstElementChild;if(E&&E.is!="yt-icon"){for(E=_.pG(v);E.lastChild;)E.removeChild(E.lastChild);E=null}E||(E=this.getIcon_(),this.setIconActive_(E),_.pG(v).appendChild(E));return v},
reuseEnabled_:function(){return _.Z("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.VB("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.VB("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.hTg={};
_.hTg.YtButtonBehavior=[t1.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var v=this.data;v&&(this._setEndpoint(this.computeEndpoint_(v)),this._setServiceEndpoint(this.computeServiceEndpoint_(v)),this._setCommand(this.computeCommand_(v)),this._setButtonIcon(this.computeButtonIcon_(v)),this._setButtonText(this.computeButtonText_(v,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(v)),this._setButtonTooltip(this.computeTooltip_(v)),this._setButtonClass(this.computeButtonClass_(v)),this._setIconPositionType(this.computeIconPositionType_(v)),this.updateRenderedElements())},
setPressedState:function(v){var E;if((E=this.elements_)==null?0:E.button)this.elements_.button.pressed=!!v},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeEndpoint_:function(v){var E=v&&v.navigationEndpoint,n=this.get("data.command.commandMetadata.webCommandMetadata.url"),f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:v&&v.command&&v.command.modalEndpoint?v.command:n&&!f&&v.command?v.command:null},
computeServiceEndpoint_:function(v){var E=v&&v.serviceEndpoint,n=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:n&&v.command?v.command:null},
computeCommand_:function(v){return v&&v.command||null},
computeButtonIcon_:function(v){return v&&v.icon&&v.icon.iconType?_.jI(v.icon.iconType):null},
computeButtonText_:function(v,E){return!E&&v&&v.text||null},
computeAccessibility_:function(v){return this.get("accessibilityData.accessibilityData",v)||v&&v.accessibility||(v&&v.text?{label:this.getSimpleString(v.text)}:null)},
computeTooltip_:function(v){return v?v.isDisabled&&v.disabledTooltip||v.tooltip||null:null},
computeButtonClass_:function(v){var E=v&&v.style?v.style.toLowerCase().replace(/_/g,"-")+" ":"";E+=v&&v.size?v.size.toLowerCase().replace(/_/g,"-")+" ":"";v.colorData&&v.colorData.basicColorPaletteData&&v.colorData.basicColorPaletteData.borderColor&&(E+="palette-with-border");return E.trim()}}];var Xm={};var AI4;var V3P;var DC1,HYX=function(){return DC1!==void 0?DC1:DC1=document.createElement("template")};
document.head.appendChild(HYX().content);var gl1;var N5F,uZS=function(){return N5F!==void 0?N5F:N5F=document.createElement("template")};
document.head.appendChild(uZS().content);var jZP;var OYP,kM4=function(){return OYP!==void 0?OYP:OYP=document.createElement("template")};
document.head.appendChild(kM4().content);var Wa1;var $C6=document.head,LaX=$C6.appendChild,GMl;if(Wa1===void 0){var T5P=document.createElement("template");_.q(T5P,"\x3c!--css-build:shady--\x3e");T5P.content.insertBefore(kM4().content.cloneNode(!0),T5P.content.firstChild);Wa1=T5P}GMl=Wa1;LaX.call($C6,GMl.content);var iYU=document.head,zTP=iYU.appendChild,RT1;if(jZP===void 0){var t3F=document.createElement("template");_.q(t3F,"\x3c!--css-build:shady--\x3e");t3F.content.insertBefore(uZS().content.cloneNode(!0),t3F.content.firstChild);jZP=t3F}RT1=jZP;zTP.call(iYU,RT1.content);var B5g=document.head,vSl=B5g.appendChild,ESP;if(gl1===void 0){var nS1=document.createElement("template");_.q(nS1,"\x3c!--css-build:shady--\x3e");nS1.content.insertBefore(HYX().content.cloneNode(!0),nS1.content.firstChild);gl1=nS1}ESP=gl1;vSl.call(B5g,ESP.content);var oS1;_.ew("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");oS1=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live");_.Bs=function(){return _.g.apply(this,arguments)||this};
_.S(_.Bs,_.g);_.Bs.prototype.created=function(){this.openPopupConfig=_.MX("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Bs.prototype.onYtNavigate_=function(v){var E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);E&&(this.ytOpenPopupBehavior.openPopup(E),v.stopPropagation(),v.preventDefault())};
_.hK.Object.defineProperties(_.Bs,{template:{configurable:!0,enumerable:!0,get:function(){if(V3P===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;AI4===void 0&&(AI4=document.createElement("template"));var f=AI4;n.call(E,f.content.cloneNode(!0),v.content.firstChild);V3P=v}v=V3P;return v}}});
_.Bs.prototype.onYtNavigate_=_.Bs.prototype.onYtNavigate_;_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],_.Bs.prototype,"ytOpenPopupBehavior",void 0);_.k([_.h(_.hTg.YtButtonBehavior),_.W("design:type",Object)],_.Bs.prototype,"ytButtonBehavior",void 0);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.Bs.prototype,"onYtNavigate_",null);
_.Bs=_.k([_.p5({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:oS1})],_.Bs);var fo6;var x61=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live"),vm=function(){var v=_.g.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.skipCommandHandling=!1;v.alignByText=!1;v.fitToVisibleBounds=!0;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};v.onTap=function(E){_.jK(v.hostElement,"yt-service-request-sent-button-renderer",E)};
return v};
_.S(vm,_.g);_.c=vm.prototype;_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.c.onClick=function(v){var E,n=this.disabled||((E=this.data)==null?void 0:E.isDisabled);E=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");n&&E&&v.stopPropagation()};
_.c.computeIcon=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.icon)==null?void 0:E.iconType;if(n)return _.jI(n)};
_.c.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.c.handleUpdateButtonAction=function(v){v=_.C(v,c_U);var E=_.C(v==null?void 0:v.updatedButton,_.qb);if(this.data&&v&&E){var n=this.data;n.targetId&&v.targetId&&n.targetId===v.targetId&&(this.data=E)}};
_.hK.Object.defineProperties(vm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var v=this;if(this.data){var E=SgX({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.jK(v.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.jK(v.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});E.alignByText=this.alignByText;return E}}}});
_.hK.Object.defineProperties(vm,{template:{configurable:!0,enumerable:!0,get:function(){if(fo6===void 0){var v=document.createElement("template");_.q(v,'\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>');fo6=v}v=fo6;return v}}});
vm.prototype.onClick=vm.prototype.onClick;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vm.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vm.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],vm.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"isPressed",void 0);
_.k([_.H(),_.W("design:type",Object)],vm.prototype,"forceIconButton",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"forceIconOnly",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"forceModernIconButton",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"skipCommandHandling",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"alignByText",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"buttonTooltipPosition",void 0);
_.k([_.H(),_.W("design:type",Object)],vm.prototype,"fitToVisibleBounds",void 0);_.k([_.H({computed:"computeTooltip(data)"}),_.W("design:type",Object)],vm.prototype,"tooltip",void 0);_.k([_.H(),_.W("design:type",Object)],vm.prototype,"overrides",void 0);_.k([_.H(),_.W("design:type",Boolean)],vm.prototype,"disabled",void 0);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],vm.prototype,"onClick",null);
_.k([_.A("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.W("design:type",Object),_.W("design:paramtypes",[])],vm.prototype,"computedButtonShape",null);vm=_.k([_.p5({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!x61,cssBuildOptOut:!0}),_.p5({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!x61,cssBuildOptOut:!0})],vm);var c4o;var y4w;var Ep=function(){var v=_.g.apply(this,arguments)||this;v.empty_=!0;v.loadTime=Infinity;v.pendingPaint=!1;v.hasChange_=!1;v.oldThumbnail_=null;v.oldDelayedSrc_="";v.objectURL_=null;return v};
_.S(Ep,_.g);_.c=Ep.prototype;_.c.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.c.ready=function(){var v=this.shouldShowPlaceholder_();_.Vt(this.hostElement,"no-transition",!0);v&&this.hostElement.classList.add("with-placeholder")};
_.c.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.c.isThumbPreloaded_=function(v){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",v)};
_.c.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||pd1};
_.c.computeThumbnailSrc_=function(v){return v&&v.thumbnails?_.hZ(v.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.c.computeAlt_=function(){var v=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&v||""};
_.c.thumbnailChanged_=function(){var v=_.p([this.thumbnail,this.oldThumbnail_]),E=v.next().value;v=v.next().value;this.oldThumbnail_=E;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(v=this.computeThumbnailSrc_(v),this.computeThumbnailSrc_(E)===v))return;_.Z("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(E)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):E&&_.Sp("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.IS(this,this.onReload_):_.IS(this,this.onShow_):this.resetImage_();E&&(this.hostElement.style.opacity=""+E.opacity)}};
_.c.delayedSrcChanged_=function(){var v=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===v||this.resetImage_()};
_.c.setSrc_=function(v){v?(_.K(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.K(this.hostElement).querySelector("#img").src=v):(_.K(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.c.resetImage_=function(){Kss(this.hostElement);this.empty_=!0;this.setSrc_(pd1);this.ytRendererBehavior.invalidate(!1)};
_.c.observePlaceholderColor_=function(){var v=this.thumbnail&&this.thumbnail.placeholderColor;v?this.hostElement.style.backgroundColor=_.p2(v):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.c.onLoad_=function(){_.K(this.hostElement).querySelector("#img").src&&_.K(this.hostElement).querySelector("#img").src!==pd1&&(J4L(this.hostElement),this.notifyOnLoaded&&_.jK(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.c.onError_=function(){var v=this;if(_.Z("web_use_cache_for_image_fallback"))D6E(_.K(this.hostElement).querySelector("#img").src).then(function(E){v.objectURL_=_.lW(E).toString();v.setSrc_(v.objectURL_)}).catch(function(){_.Z("kevlar_woffle_fallback_image")&&v.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.c.onPrescanVisible=function(){this.onShow_()};
_.c.onVisible=function(){if(_.Z("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.c.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var v=this.computeSrc_();v!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))}};
_.c.onReload_=function(){this.empty_=!1;var v=this.computeSrc_();v!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))};
_.c.shouldShowPlaceholder_=function(){return _.Z("kevlar_thumbnail_bg")};
Ep.prototype.observePlaceholderColor_=Ep.prototype.observePlaceholderColor_;Ep.prototype.delayedSrcChanged_=Ep.prototype.delayedSrcChanged_;Ep.prototype.thumbnailChanged_=Ep.prototype.thumbnailChanged_;_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"alt",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ep.prototype,"ariaHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"ariaLabel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"id",void 0);_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],Ep.prototype,"ytVisibilityBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",String)],Ep.prototype,"delayedSrc",void 0);
_.k([_.H(),_.W("design:type",Object)],Ep.prototype,"thumbnail",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"loaded",void 0);_.k([_.H(),_.W("design:type",Boolean)],Ep.prototype,"notifyOnLoaded",void 0);_.k([_.H(),_.W("design:type",Number)],Ep.prototype,"height",void 0);_.k([_.H(),_.W("design:type",Number)],Ep.prototype,"width",void 0);_.k([_.H({value:function(){return"width"}}),
_.W("design:type",String)],Ep.prototype,"dimension",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"fit",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"fitHeight",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"fitWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"objectFit",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"objectPosition",void 0);_.k([_.H(),_.W("design:type",String)],Ep.prototype,"preferredThumbnail",void 0);_.k([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.W("design:type",String)],Ep.prototype,"alt_",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ep.prototype,"sharedTooltipText",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Ep.prototype,"ftlEligible",void 0);_.k([_.H({value:void 0}),_.W("design:type",String)],Ep.prototype,"observeHiddenOption",void 0);_.k([_.H({value:"observe_once"}),_.W("design:type",String)],Ep.prototype,"observePrescanOption",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ep.prototype,"roundedContainer",void 0);
_.k([_.Tw("thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"thumbnailChanged_",null);_.k([_.Tw("delayedSrc"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"delayedSrcChanged_",null);_.k([_.On("thumbnail.placeholderColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"observePlaceholderColor_",null);
Ep=_.k([_.p5({is:"yt-img-shadow",disableElementRegistration:!0})],Ep);var pd1=_.Sp("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Dj()(Ep,"yt-img-shadow",function(){if(y4w===void 0){var v=document.createElement("template");_.q(v,'\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">');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;c4o===void 0&&(c4o=document.createElement("template"));var f=c4o;n.call(E,f.content.cloneNode(!0),v.content.firstChild);y4w=v}v=y4w;return v},{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 V19;_.nK=new _.$Y("SCREEN_MANAGER_TOKEN");V19=new _.$Y("LOG_INITIAL_SCREEN_TOKEN");_.lS=_.qu(function(v){function E(QE){return _.C(QE,_.wQ)}
function n(){var QE=f().isTogglingDisabled||a()?d():!d();Y(QE);O(!1);if(!f().isTogglingDisabled){var MF;(MF=Q)==null||MF(!!QE)}var K1;((K1=y)==null?0:K1())||_.El(_.P().resolve(_.nK),f().trackingParams);var JG;if(!QE||!E(f().defaultButtonViewModel)||(JG=y)!=null&&JG()){var $X;!E(f().toggledButtonViewModel)||(($X=y)==null?0:$X())||_.El(_.P().resolve(_.nK),E(f().toggledButtonViewModel).trackingParams)}else _.El(_.P().resolve(_.nK),E(f().defaultButtonViewModel).trackingParams)}
var f=v.data,x=v.buttonShapeOverrides,y=v.disableExplicitClickLogging,Q=v.onToggle,e=v.style,F=v.useOutlinedIcon,b=v.className,l=function(){var QE,MF;return d()?(QE=v.animatedTextPropsToggled)==null?void 0:QE.call(v):(MF=v.animatedTextPropsDefault)==null?void 0:MF.call(v)},r=_.o0(function(){return l()?Object.assign({},l(),{shouldAnimate:V()}):void 0},void 0,"ZKEa0b"),a=function(){var QE;
return((QE=xX())==null?void 0:QE.isToggled)!==void 0},M=_.p(_.Rj(function(){var QE,MF,K1;
return a()?(QE=xX())==null?void 0:QE.isToggled:(K1=x==null?void 0:(MF=x())==null?void 0:MF.toggled)!=null?K1:f().isToggled})),U=M.next().value;
M=M.next().value;var d=U,Y=M;M=_.p(_.Rj(function(){var QE,MF;return(QE=v.animatedTextPropsToggled)==null?void 0:(MF=QE.call(v))==null?void 0:MF.shouldAnimate}));
U=M.next().value;M=M.next().value;var V=U,O=M;U=_.p(_.t7(!1,void 0,"S11hid"));var T=U.next().value,L=U.next().value,xX=_.mc(function(QE){var MF;a:{var K1=f().entityKey,JG=f().toggledStateEntitySelectorType;if(JG&&K1)switch(JG){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var $X;QE=($X=_.LH(QE.entities,"sfvAudioItemCurrentlyPlayingEntity",K1))!=null?$X:void 0;$X=(MF=QE==null?void 0:QE.sfvAudioItemPlaybackState)!=null?MF:void 0;if($X==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){MF={isToggled:!0};
break a}if($X){MF={isToggled:!1};break a}break;default:_.li(new _.yc("Error: entitySelectorType defined but not matched in selector.",QE,JG))}MF=void 0}return MF});
U=_.ij(function(){var QE=_.P().resolve(_.jp(_.cT));QE&&L(QE.isKeyBoardInUse());return!1});
M=_.ij(function(){L(!1);return!1});
var t=function(){return Object.assign({},x==null?void 0:x(),{onToggle:n,toggleable:!0,toggled:d(),focused:T()})};
return _.w("toggle-button-view-model",{"on:focusin":U,"on:focusout":M,class:b},_.w(_.x6,{cond:function(){return d()?E(f().toggledButtonViewModel):E(f().defaultButtonViewModel)},
then:function(QE){return _.w(_.C7,{data:QE,className:b,style:e,useOutlinedIcon:F,buttonOverrides:t,animatedTextProps:r})}}))},"v");
_.lS.idomCompat={callbacks:{onToggle:!0}};_.Yz(_.qu(function(v){return _.w("yt-toggle-button-view-model",{class:function(){var E;return(E=v.scopingClassName)==null?void 0:E.call(v)}},_.w(_.lS,{data:function(){var E;
return(E=v.data)==null?void 0:E.call(v)},
buttonShapeOverrides:function(){var E;return(E=v.overrides)==null?void 0:E.call(v)},
animatedTextPropsDefault:function(){var E;return(E=v.animatedTextPropsDefault)==null?void 0:E.call(v)},
animatedTextPropsToggled:function(){var E;return(E=v.animatedTextPropsToggled)==null?void 0:E.call(v)},
disableExplicitClickLogging:function(){var E;return(E=v.disableExplicitClickLogging)==null?void 0:E.call(v)},
onToggle:function(E){var n;return(n=v.onToggle)==null?void 0:n.call(v,E)},
style:function(){var E;return(E=v.style)==null?void 0:E.call(v)},
useOutlinedIcon:function(){var E;return(E=v.useOutlinedIcon)==null?void 0:E.call(v)},
className:function(){var E;return(E=v.className)==null?void 0:E.call(v)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.Kt,
buttonShapeOverrides:_.Kt,overrides:_.Kt,animatedTextPropsDefault:_.Kt,animatedTextPropsToggled:_.Kt,disableExplicitClickLogging:_.Kt,onToggle:_.Ij,style:_.Kt,useOutlinedIcon:_.Kt,className:_.Kt,scopingClassName:_.Kt}});var of=function(){return _.g.apply(this,arguments)||this};
_.S(of,_.g);of.prototype.onTap=function(v){v.stopPropagation();v=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.sI("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v})):this.ytLiveChatReduxBehavior.dispatch(_.n7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v}))};
_.hK.Object.defineProperties(of.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.C(this.data.toggleButton,_.bS),E;if(Number(((E=this.likeCountState)==null?void 0:E.likeCountIfIndifferentNumber)||"0")===0){var n;E=((n=this.data.likeCountPlaceholder)==null?void 0:n.content)||""}else{var f,x,y;E=((f=this.likeCountState)==null?void 0:(x=f.likeCountIfIndifferent)==null?void 0:x.content)||((y=this.data.likeCountPlaceholder)==null?void 0:y.content)||""}var Q,e;n=((Q=this.likeCountState)==null?void 0:(e=
Q.likeCountIfLiked)==null?void 0:e.content)||"1";Q=_.C(v.toggledButtonViewModel,_.wQ);return Object.assign({},v,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.C(v.defaultButtonViewModel,_.wQ),{title:E})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Q,{title:n})}})}}}});
of.prototype.onTap=of.prototype.onTap;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],of.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],of.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],of.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.likeCountEntityKey"],selector:UYN}),_.W("design:type",Object)],of.prototype,"likeCountState",void 0);_.k([_.H({selectorArgs:["data.engagementStateKey"],selector:vLX}),_.W("design:type",Object)],of.prototype,"engagementState",void 0);_.k([_.A("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],of.prototype,"isLiked",null);
_.k([_.A("data","likeCountState","isLiked"),_.W("design:type",Object),_.W("design:paramtypes",[])],of.prototype,"toggleButton",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],of.prototype,"onTap",null);of=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],of);
_.u(of,"yt-live-chat-like-button-view-model",function(){if(M3X===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;CBg===void 0&&(CBg=document.createElement("template"));var f=CBg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);M3X=v}v=M3X;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Qq4;var Xdw;var fK=function(){return _.g.apply(this,arguments)||this};
_.S(fK,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fK.prototype,"data",void 0);fK=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],fK);
_.u(fK,"yt-live-chat-paid-message-footer-renderer",function(){if(Xdw===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Qq4===void 0&&(Qq4=document.createElement("template"));var f=Qq4;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Xdw=v}v=Xdw;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var eQP;var Fs1;var m61;var wdz,bnw=function(){if(wdz!==void 0)return wdz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;m61===void 0&&(m61=document.createElement("template"));var f=m61;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return wdz=v};var xM=function(){return _.g.apply(this,arguments)||this};
_.S(xM,_.g);xM.prototype.onTap=function(v){v.stopPropagation()};
_.hK.Object.defineProperties(xM.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.C(this.data.replyButton,_.wQ),E,n,f,x,y,Q,e,F=Number(((E=this.replyCountState)==null?void 0:E.replyCountNumber)||"0")===0?(n=this.data)==null?void 0:(f=n.replyCountPlaceholder)==null?void 0:f.content:((x=this.replyCountState)==null?void 0:(y=x.replyCount)==null?void 0:y.content)||((Q=this.data)==null?void 0:(e=Q.replyCountPlaceholder)==null?void 0:e.content)||"",b;return Object.assign({},
v,{title:F,accessibilityText:(b=this.replyCountState)==null?void 0:b.replyButtonAccessibilityText})}}}});
_.hK.Object.defineProperties(xM,{template:{configurable:!0,enumerable:!0,get:function(){return bnw()}}});
xM.prototype.onTap=xM.prototype.onTap;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],xM.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],xM.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xM.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(v,E){return _.LH(v.entities,"replyCountEntity",E)}}),
_.W("design:type",Object)],xM.prototype,"replyCountState",void 0);_.k([_.A("data","replyCountState"),_.W("design:type",Object),_.W("design:paramtypes",[])],xM.prototype,"buttonViewModel",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],xM.prototype,"onTap",null);xM=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],xM);
_.u(xM,"yt-live-chat-reply-button-view-model",function(){return bnw()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var loP;var sqo;var cm=function(){var v=_.g.apply(this,arguments)||this;v.ariaLabel="";return v};
_.S(cm,_.g);
cm.prototype.dataChanged=function(){for(var v=(0,_.gn)(_.K(this.hostElement).querySelector("#image"));v.firstChild;)v.removeChild(v.firstChild);if(this.data)if(this.data.icon){var E=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(E.polymerController.icon="yt-sys-icons:shield-filled",E.polymerController.defaultToFilled=!0):E.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();v.appendChild(E)}else if(this.data.customThumbnail){E=document.createElement("img");
var n=_.ao9(this.data.customThumbnail.thumbnails,16);n?(E.src=n,v.appendChild(E),E.setAttribute("alt",this.hostElement.ariaLabel||"")):_.li(new _.yc("Could not compute URL for thumbnail",this.data.customThumbnail))}};
cm.prototype.identity=function(v){return v};
cm.prototype.computeType=function(v){return gq(v||void 0)};
cm.prototype.dataChanged=cm.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],cm.prototype,"data",void 0);_.k([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.W("design:type",Object)],cm.prototype,"ariaLabel",void 0);_.k([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.W("design:type",String)],cm.prototype,"type",void 0);
_.k([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.W("design:type",String)],cm.prototype,"sharedTooltipText",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("live_chat_enable_new_moderator_badge")}}),
_.W("design:type",Boolean)],cm.prototype,"enableNewModeratorBadge",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cm.prototype,"dataChanged",null);cm=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],cm);
_.u(cm,"yt-live-chat-author-badge-renderer",function(){if(sqo===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;loP===void 0&&(loP=document.createElement("template"));var f=loP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);sqo=v}v=sqo;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var r4w;var PlS;var yk=function(){return _.g.apply(this,arguments)||this};
_.S(yk,_.g);_.c=yk.prototype;_.c.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"}}}}};
_.c.computeBadgesInsideChip=function(v){return v?v.filter(function(E){return gq(E.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.c.computeBadgesOutsideChip=function(v){return this.prependChatBadges||!v?[]:v.filter(function(E){E=gq(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"})};
_.c.computeBadgesBeforeChip=function(v){return this.prependChatBadges&&v?v.filter(function(E){E=gq(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"}):[]};
_.c.computeIsHighlighted=function(v,E){var n=!!AXE(v,"owner"),f=!!AXE(v,"verified");v=!!AXE(v,"moderator");return(n||f&&!v)&&!E};
_.c.computeAuthorType=function(v){return h1E(v)};
_.c.computeAuthorClass=function(v,E){return E?(v?v+" ":"")+"single-line":v};
_.c.onSeedColorChanged=function(){_.Z("live_chat_author_name_color_usernames")||_.Z("live_chat_seed_color_usernames")||_.Z("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):_.Z("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
yk.prototype.onSeedColorChanged=yk.prototype.onSeedColorChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yk.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yk.prototype,"authorName",void 0);_.k([_.H(),_.W("design:type",Array)],yk.prototype,"authorBadges",void 0);
_.k([_.H({computed:"computeAuthorType(authorBadges)"}),_.W("design:type",String)],yk.prototype,"authorType",void 0);_.k([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.W("design:type",String)],yk.prototype,"authorClass",void 0);_.k([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.W("design:type",Array)],yk.prototype,"badgesInsideChip",void 0);_.k([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.W("design:type",Array)],yk.prototype,"badgesOutsideChip",void 0);
_.k([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.W("design:type",Array)],yk.prototype,"badgesBeforeChip",void 0);_.k([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yk.prototype,"isHighlighted",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],yk.prototype,"singleLine",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],yk.prototype,"disableHighlighting",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yk.prototype,"dashboardMoneyFeed",void 0);_.k([_.H({value:_.Z("live_chat_prepend_badges"),reflectToAttribute:!0}),_.W("design:type",Boolean)],yk.prototype,"prependChatBadges",void 0);_.k([_.H(),_.W("design:type",String)],yk.prototype,"authorNameColor",void 0);_.k([_.Wp("#author-name"),_.W("design:type",HTMLDivElement)],yk.prototype,"username",void 0);
_.k([_.On("authorNameColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yk.prototype,"onSeedColorChanged",null);yk=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],yk);
_.u(yk,"yt-live-chat-author-chip",function(){if(PlS===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;r4w===void 0&&(r4w=document.createElement("template"));var f=r4w;n.call(E,f.content.cloneNode(!0),v.content.firstChild);PlS=v}v=PlS;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var aoo;var Zni;var pK=function(){var v=_.g.apply(this,arguments)||this;v.debounceCommand=_.me(function(E){v.ytComponentBehavior.resolveCommand(E)},1500);
return v};
_.S(pK,_.g);pK.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var v=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",E,n,f=this.isHearted?(E=this.data)==null?void 0:E.unheartCommand:(n=this.data)==null?void 0:n.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.sI("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:v}));(v=_.F$(f))&&this.debounceCommand(v)}};
_.hK.Object.defineProperties(pK.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v,E;if(!((v=this.data)==null?0:(E=v.creatorThumbnail)==null?0:E.sources))return{};v={thumbnails:[]};E={};E.url=this.data.creatorThumbnail.sources[0].url;v.thumbnails.push(E);return v}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((n=this.engagementState)==null?void 0:n.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}}});
pK.prototype.onTap=pK.prototype.onTap;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],pK.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pK.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.engagementStateKey"],selector:vLX}),_.W("design:type",Object)],pK.prototype,"engagementState",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"thumbnailDetails",null);_.k([_.A("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"isHearted",null);_.k([_.A("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"isEditable",null);
_.k([_.A("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"showCreatorView",null);_.k([_.A("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"showButton",null);_.k([_.A("data","isHearted"),_.W("design:type",String),_.W("design:paramtypes",[])],pK.prototype,"label",null);_.k([_.A("data","isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"heartHoverText",null);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pK.prototype,"onTap",null);pK=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],pK);
_.u(pK,"yt-live-chat-creator-heart-view-model",function(){if(Zni===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;aoo===void 0&&(aoo=document.createElement("template"));var f=aoo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Zni=v}v=Zni;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Qk=function(v,E){this.serviceId=new bk6(v,E)};
Qk.prototype.toString=function(){return this.serviceId.toString()};var Clz=function(){this.internalMap={}};
_.c=Clz.prototype;_.c.contains=function(v){return Object.prototype.hasOwnProperty.call(this.internalMap,v)};
_.c.get=function(v){if(this.contains(v))return this.internalMap[v]};
_.c.set=function(v,E){this.internalMap[v]=E};
_.c.getKeys=function(){return Object.keys(this.internalMap)};
_.c.remove=function(v){delete this.internalMap[v]};var FP=function(){this.mappings=new Clz;this.errorCallbacks=new Set};
FP.prototype.getModuleId=function(v){return v.serviceId.getModuleId()};
FP.prototype.get=function(v){var E=this.mappings.get(v.toString());return MB1(this,E,v)};
FP.prototype.getMultipleAsync=function(){var v=_.rV.apply(0,arguments),E=this,n=v.map(function(F){return E.getModuleId(F)}),f=v.map(function(F){return E.mappings.get(F.toString())}).filter(function(F){return F});
if(f.length===v.length)return _.Gn(f.map(function(F,b){return MB1(E,F,v[b])}));
var x=bY().loadMultiple(n);f=_.lg(n.map(function(F){return x[F]}));
var y=document.hidden,Q=-1,e=_.WG("get_async_timeout_ms",-1);e>-1&&(Q=setTimeout(function(){_.li(new _.yc("Module timeout.",n,y,document.hidden))},e));
return _.so(f.then(function(){return v.map(function(F){return MB1(E,E.mappings.get(F.toString()),F)})}).thenCatch(function(F){for(var b=_.p(E.errorCallbacks),l=b.next();!l.done;l=b.next())l=l.value,l(F);
throw F;}),function(){clearTimeout(Q)})};
FP.prototype.registerService=function(v,E){this.mappings.set(v.toString(),{type:"mapping",value:E});return v};
var MB1=function(v,E,n){switch(E.type){case "mapping":return E.value;case "factory":return E=E.value(),v.mappings.set(n.toString(),{type:"mapping",value:E}),E;default:return _.p0(E)}};
FP.prototype.onLoadError=function(v){var E=this;this.errorCallbacks.add(v);return function(){E.errorCallbacks.delete(v)}};
_.mN=new FP;var Sz4=function(){};
_.c=Sz4.prototype;
_.c.JSC$11790_getRequest=function(v,E,n){E=E===void 0?{}:E;n=n===void 0?ro1:n;var f=E;if(this.isNavigationCommand()){var x,y=(x=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:x.url;f=_.gQQ(v.clickTrackingParams,!0,!1,y,this.JSC$11790_getClientScreen(f))}else f=_.gQQ(v.clickTrackingParams,!1,this.includeCsn);f={context:f};if(x=this.getExtension(v))return this.JSC$11790_buildRequest(f,x,E),x=this.getApiUrl(v),y=Object.assign({},{command:v},this.getRequestConfig(v,E)),f={input:x,requestShell:JQ(x),
innerTubeRequest:f,config:y},f.config.authStrategy?f.config.authStrategy.identity=n:f.config.authStrategy={identity:n},(v=this.JSC$11790_getRequestKey(v,E))&&!f.config.requestKey&&(f.config.requestKey=v),f;v=new _.yc("Error: Failed to create Request from Command.",v);_.mb(v)};
_.c.getApiUrl=function(v){var E=_.Yt(this.getApiPaths(v)),n;(v=(n=_.C(v.commandMetadata,_.Dl))==null?void 0:n.apiUrl)&&(E=v);return F2I(ek1(E))};
_.c.isNavigationCommand=function(){return!1};
_.c.JSC$11790_getClientScreen=function(){};
_.c.JSC$11790_getRequestKey=function(){};
_.c.getRequestConfig=function(){};
_.hK.Object.defineProperties(Sz4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var wo=function(){};
_.S(wo,Sz4);wo.prototype.JSC$11797_getStoreKey=function(){};
wo.prototype.JSC$11790_getRequestKey=function(v,E){E=E===void 0?{}:E;return this.JSC$11797_getStoreKey(v,E)};var bJ=function(){};
_.S(bJ,wo);bJ.prototype.JSC$11790_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:JQ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
bJ.prototype.getApiPaths=function(){return[]};
bJ.prototype.getExtension=function(){};
bJ.prototype.JSC$11790_buildRequest=function(){};var U6F={},qz1=(U6F.GET_DATASYNC_IDS=lG(bJ),U6F);var J41,KsS,d61,UUS,lJ,hQX,YAz,Yzi,IoS;J41="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");KsS=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Zg=function(v,E,n,f,x,y,Q,e,F){this.endpointMap=v;this.networkManager=E;this.authService=n;this.responseProcessorMap=f;this.innertubeResponseStore=x;this.contextProcessors=y;this.asyncContextProcessors=Q;this.localInnertubeRouter=e;this.requestSequencer=F;this.inflightRequests=new Map;v.signalEndpointMap||(v.signalEndpointMap={});v.signalEndpointMap=Object.assign({},qz1,v.signalEndpointMap)};
d61=function(v,E,n,f,x,y,Q,e,F){if(_.Zg.instance!==void 0){if(f=_.Zg.instance,v=[v!==f.endpointMap,E!==f.networkManager,n!==f.authService,x!==f.innertubeResponseStore,y!==f.contextProcessors,Q!==f.asyncContextProcessors,e!==f.localInnertubeRouter],v.some(function(b){return b}))throw new _.yc("InnerTubeTransportService is already initialized",v);
}else _.Zg.instance=new _.Zg(v,E,n,f,x,y,Q,e,F)};
_.Mq=function(v,E,n){var f=f===void 0?ro1:f;var x=YAz(v,E);return x?new _.z2(function(y,Q){var e,F,b,l,r;return _.X(function(a){switch(a.nextAddress){case 1:return _.m(a,x,2);case 2:e=a.yieldResult;F=e.JSC$11790_getRequest(E,n,f);if(!F){Q(new _.yc("Error: Failed to build request for command.",E));a.jumpTo(0);break}FJ(F.input);l=((b=F.requestShell)==null?void 0:b.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){r=IoS(F.config,l);a.jumpTo(4);break}return _.m(a,Yzi(F.config,l),5);case 5:r=
a.yieldResult;case 4:y(hQX(v,F,r)),_.yQ(a)}})}):_.nR(new _.yc("Error: No request builder found for command.",E))};
UUS=function(v,E,n,f){var x=x===void 0?ro1:x;var y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t;return _.X(function(QE){switch(QE.nextAddress){case 1:y=KmA(E,v.endpointMap);if(!y)throw new _.yc("Error: No streaming request builder found for command",E);Q=y.JSC$11790_getRequest(E,n,x);if(!Q)throw new _.yc("Failed to build YtRequest for streaming Command",E);if((e=v.localInnertubeRouter)==null||!e.shouldPreferLocalResponse(Q.input,Q.innerTubeRequest)){QE.jumpTo(2);break}return _.m(QE,v.localInnertubeRouter.localInnertubeResponse(Q.input,
Q.innerTubeRequest),3);case 3:return F=QE.yieldResult,b={},F.playerResponse&&(lJ(v,F.playerResponse,Q),b.player=F.playerResponse,(l=f)==null||l(b,F)),F.watchNextResponse&&(lJ(v,F.watchNextResponse,Q),b.content=F.watchNextResponse,(r=f)==null||r(b,F)),QE.return(b);case 2:M=((a=Q.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){U=IoS(Q.config,M);QE.jumpTo(4);break}return _.m(QE,Yzi(Q.config,M),5);case 5:U=QE.yieldResult;case 4:return V=(Y=(d=Q.requestShell)==null?
void 0:d.headers)!=null?Y:{},Q.requestShell=Object.assign({},Q.requestShell,{headers:Object.assign({},V,U)}),O=Object.assign({},Q.requestShell),T=JSON.stringify(Q.innerTubeRequest),Q.requestShell.method==="POST"&&(O=Object.assign({},O,{body:T})),L=function(MF,K1){lJ(v,K1.playerResponse||K1.watchNextResponse||K1.reelItemWatchResponse||K1.reelWatchSequenceResponse,Q);f==null||f(MF,K1)},xX={},_.m(QE,A4X(v.networkManager,Q.input,O,L),6);
case 6:return xX=QE.yieldResult,((t=Q.config)==null?0:t.responseTick)&&_.FD(Q.config.responseTick),QE.return(xX)}})};
_.Ms=function(v,E,n,f,x){x=x===void 0?{authStrategy:{identity:ro1}}:x;var y=y===void 0?!0:y;var Q=function(){};
Q=U_E(M2X(n));E.context||(E.context=_.gQQ(f,y));return new _.z2(function(e){var F,b,l,r,a;return _.X(function(M){if(M.nextAddress==1)return F=ek1(n),b=_.qA(F),v.authService.syncHeaders?(l=IoS(x,b),M.jumpTo(2)):_.m(M,Yzi(x,b),3);M.nextAddress!=2&&(l=M.yieldResult);r=F2I(ek1(n));a={input:r,requestShell:JQ(r),innerTubeRequest:E,config:x};e(hQX(v,a,l,Q));_.yQ(M)})})};
lJ=function(v,E,n){var f;if(E&&!(E==null?0:(f=E.sequenceMetaData)==null?0:f.skipProcessing)&&v.responseProcessorMap){f=_.p(J41);for(var x=f.next();!x.done;x=f.next())x=x.value,v.responseProcessorMap[x]&&v.responseProcessorMap[x].handleResponse(E,n)}};
hQX=function(v,E,n,f){f=f===void 0?function(){}:f;
var x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF,K1,JG,$X,HI,uE,WI,bX,n0,qi,fl,yP,IF,QP,T3,aK,yE,Cl,VP,JR;return _.X(function(d1){switch(d1.nextAddress){case 1:Q=(x=E.config)==null?void 0:(y=x.storeStrategy)==null?void 0:y.storeKey;if(!(Q&&v.innertubeResponseStore&&v.innertubeResponseStore.has(Q))||((e=E.config)==null?0:(F=e.storeStrategy)==null?0:F.disableCache)){d1.jumpTo(2);break}return _.m(d1,v.innertubeResponseStore.get(Q),3);case 3:if((b=d1.yieldResult)&&!b.isExpired())return d1.return(Promise.resolve(_.ne(b)));
case 2:if(!((l=E)==null?0:(r=l.innerTubeRequest)==null?0:r.context)){d1.jumpTo(4);break}a=E.innerTubeRequest.context;if(!(v.asyncContextProcessors&&v.asyncContextProcessors.length>0)){d1.jumpTo(5);break}M=[];U=_.p(v.asyncContextProcessors);for(d=U.next();!d.done;d=U.next())Y=d.value,V=Y.processContext(E),V.wrappedPromise_&&M.push(V.wrappedPromise_);if(!(M.length>0)){d1.jumpTo(5);break}return _.m(d1,Promise.all(M),5);case 5:O=_.p(v.contextProcessors||[]),T=O.next();case 8:if(T.done){d1.jumpTo(4);break}L=
T.value;return _.m(d1,L.processContext(a),9);case 9:T=O.next();d1.jumpTo(8);break;case 4:if((xX=v.localInnertubeRouter)==null||!xX.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){d1.jumpTo(12);break}return _.m(d1,v.localInnertubeRouter.localInnertubeResponse(E.input,E.innerTubeRequest),13);case 13:return t=d1.yieldResult,lJ(v,t,E),d1.return(t);case 12:return(K1=(MF=E.config)==null?void 0:MF.requestKey)&&v.inflightRequests.has(K1)?QE=v.inflightRequests.get(K1):(JG=JSON.stringify(E.innerTubeRequest),
uE=(HI=($X=E.requestShell)==null?void 0:$X.headers)!=null?HI:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},uE,n)}),WI=Object.assign({},E.requestShell),E.requestShell.method==="POST"&&(WI=Object.assign({},WI,{body:JG})),((bX=E.config)==null?0:bX.requestTick)&&_.FD(E.config.requestTick),n0=function(){return v.networkManager.fetch(E.input,WI,E.config)},QE=v.requestSequencer?VBP(v.requestSequencer,E,n0):n0(),K1&&v.inflightRequests.set(K1,QE)),_.m(d1,QE,14);
case 14:(qi=d1.yieldResult)&&_.Z("web_streaming_player")&&Array.isArray(qi)&&(qi=qi[0].playerResponse);if(qi&&"error"in qi&&((fl=qi)==null?0:(yP=fl.error)==null?0:yP.details))for(IF=qi.error.details,QP=_.p(IF),T3=QP.next();!T3.done;T3=QP.next())aK=T3.value,(yE=aK["@type"])&&KsS.indexOf(yE)>-1&&(delete aK["@type"],qi=aK);K1&&v.inflightRequests.has(K1)&&v.inflightRequests.delete(K1);((Cl=E.config)==null?0:Cl.responseTick)&&_.FD(E.config.responseTick);if(qi||(VP=v.localInnertubeRouter)==null||!VP.canProvideFallbackResponse(E.input,
E.innerTubeRequest)){d1.jumpTo(15);break}return _.m(d1,v.localInnertubeRouter.localFallbackInnertubeResponse(E.input,E.innerTubeRequest),16);case 16:qi=d1.yieldResult;case 15:return lJ(v,qi,E),((JR=E.config)==null?0:JR.processorTick)&&_.FD(E.config.processorTick),f(),d1.return(qi||void 0)}})};
_.Ch=function(v,E){return JbE(E,v.endpointMap)};
YAz=function(v,E){v=dYy(E,v.endpointMap);if(v!==void 0)return Promise.resolve(v)};
Yzi=function(v,E){var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){x=(n=v)==null?void 0:(f=n.authStrategy)==null?void 0:f.sessionIndex;var e=_.Gn(hHX({sessionIndex:x}));return _.m(Q,e,2)}y=Q.yieldResult;return Q.return(Promise.resolve(Object.assign({},IHG(E),y)))})};
IoS=function(v,E){var n;v=v==null?void 0:(n=v.authStrategy)==null?void 0:n.sessionIndex;n=hHX({sessionIndex:v});return Object.assign({},IHG(E),n)};var D6X,Hn1,gS1,NE1,uUi,jqU,Wsg,$61,Pm,Ls1,Go4,ko1,TEw;D6X=0;Hn1=/tone[1-5]/;gS1=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");NE1="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
uUi=Number.MAX_SAFE_INTEGER;jqU=RegExp("\ufe0f","g");_.sp=function(v){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;v&&_.Onl(this,v)};
_.Onl=function(v,E){try{_.tM(E,{context:v,onSuccess:function(f,x){Array.isArray(x)?v.load(x):(f=new _.yc("Emoji manager JSON response was not an array!",{response:x}),_.mb(f))},
onError:function(f){f=new _.yc("Failed to retrieve emoji manager initial JSON data!",{url:E,statusCode:_.Ga(f).toString()});_.li(f)}})}catch(f){var n=new _.yc("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:E});
_.li(n)}};
_.sp.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.sp.prototype.load=function(v,E){if(E)if(v.length)v=v.concat(E.emojis);else{this.emojis=E.emojis;this.emojiMap=E.emojiMap;this.emojiShortcutMap=E.emojiShortcutMap;this.emojiShortcutCharMap=ko1(E);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=E.emojiRegex;return}this.emojis=[].concat(_.s8(new Set(this.emojis.concat(v))));this.hasInitializedShortcutCharMap=!1;v=Array(this.emojis.length);for(E=0;E<this.emojis.length;E++){var n=this.emojis[E];if(n.emojiId){this.emojiMap[n.emojiId]=n;this.emojiMap[n.emojiId].index=
E;for(var f=0;n.shortcuts&&f<n.shortcuts.length;f++)this.emojiShortcutMap[n.shortcuts[f].toLocaleLowerCase()]=n;v[E]=n.isCustomEmoji&&n.shortcuts?n.shortcuts[0]:n.emojiId}}v.sort(function(x,y){return y.length-x.length});
if(v.length)try{this.emojiRegex=new RegExp(v.join("|").replace("*","\\*"),"gi")}catch(x){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Wsg=function(v,E){E=_.p(E);for(var n=E.next();!n.done;n=E.next()){var f=n.value;if(f.emojiId&&v.emojiMap[f.emojiId]){n=Object.assign({},v.emojiMap[f.emojiId],f);v.emojiMap[f.emojiId]=n;var x=void 0;n.index&&((x=v.emojis[n.index])==null?void 0:x.emojiId)===f.emojiId&&(v.emojis[n.index]=n);f=void 0;if((f=n.shortcuts)==null?0:f.length)for(v.hasInitializedShortcutCharMap=!1,f=_.p(n.shortcuts),x=f.next();!x.done;x=f.next())v.emojiShortcutMap[x.value.toLocaleLowerCase()]=n}}};
$61=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,_.wr.getInstance(),2);if(f.nextAddress!=3)return(E=f.yieldResult)?_.m(f,E.get("ytlc-emoji-pref"),3):f.return();(n=f.yieldResult)&&Wsg(v,Object.keys(n).map(function(x){return{emojiId:x,stickyPrefId:n[x]}}).filter(function(x){return!!x.emojiId&&!!x.stickyPrefId}));
_.yQ(f)})};
_.ro=function(v,E,n){return(v=v.emojiMap[E])&&(!v.isLocked||n!==void 0&&n)?v:void 0};
Pm=function(v,E,n){n=_.ro(v,E,n===void 0?!1:n);var f=E.match("\u200d");n&&v.skinTone!==0&&(v=(f==null?void 0:f.length)===1?_.ro(v,E.replace("\u200d",gS1[v.skinTone]+"\u200d")):_.ro(v,E+gS1[v.skinTone]))&&(n=v);return n};
Ls1=function(v,E){var n=v.emojiMap[E];return(n==null?0:n.stickyPrefId)?v.emojiMap[n.stickyPrefId]:Pm(v,E)};
_.ye=function(v,E){v=v.emojiShortcutMap[E.toLocaleLowerCase()];return!v||v.isLocked?null:v};
Go4=function(v,E,n){return ko1(v,n===void 0?!1:n)[E]||{}};
ko1=function(v,E){E=E===void 0?!1:E;if(!v.hasInitializedShortcutCharMap){v.hasInitializedShortcutCharMap=!0;for(var n=0;n<v.emojis.length;n++){var f=v.emojis[n];if(!(f.isLocked||E&&f.isCustomEmoji&&f.emojiId&&!v.pickerCustomEmojiIds.includes(f.emojiId)))for(var x=0;f.shortcuts&&x<f.shortcuts.length;x++){var y=f.shortcuts[x];y.startsWith(":_")&&f.isCustomEmoji&&(v.emojiShortcutCharMap[":_"]==null&&(v.emojiShortcutCharMap[":_"]=Object.create(null)),v.emojiShortcutCharMap[":_"][y]=f);if(!(y.length<3||
!f.isCustomEmoji&&Hn1.test(y))){var Q=y.substr(0,3).toLocaleLowerCase();v.emojiShortcutCharMap[Q]==null&&(v.emojiShortcutCharMap[Q]=Object.create(null));v.emojiShortcutCharMap[Q][y]=f}}}}return v.emojiShortcutCharMap};
_.sp.prototype.createEmoji=function(v,E){E=E===void 0?!0:E;var n=document.createElement("img");v.isCustomEmoji||n.classList.add("small-emoji");n.classList.add("emoji");n.classList.add("yt-formatted-string");n.src=v.image?_.hZ(v.image.thumbnails,this.emojiSize)||"":"";var f=void 0;v.image&&v.image.accessibility&&v.image.accessibility.accessibilityData&&(f=v.image.accessibility.accessibilityData.label);n.alt=f?f:(v.isCustomEmoji&&v.shortcuts?v.shortcuts[0]:v.emojiId)||"";v.isCustomEmoji&&(n.dataset.emojiId=
v.emojiId);_.n9&&(n.setAttribute("contenteditable","false"),n.setAttribute("unselectable","on"));E&&(v.shortcuts&&v.shortcuts.length&&n.setAttribute("shared-tooltip-text",v.shortcuts[0]),n.id="emoji-"+D6X++);return n};
_.sp.prototype.createDocumentFragment=function(v,E,n,f){E=E===void 0?!1:E;n=n===void 0?!0:n;f=f===void 0?!1:f;v=v.replace(jqU,"");for(var x=document.createDocumentFragment(),y=0,Q,e=0;(Q=this.emojiRegex.exec(v))!=null;){var F=_.ro(this,Q[0])||_.ye(this,Q[0]);!F||F.isCustomEmoji&&!E||(F=this.createEmoji(F,n),y!==Q.index&&x.appendChild(document.createTextNode(v.substring(y,Q.index))),x.appendChild(F),y=Q.index+Q[0].length,e++)}if(!f||e)return x.appendChild(document.createTextNode(v.substr(y))),x};
TEw=function(v,E,n){var f,x,y,Q,e,F,b,l,r;return _.X(function(a){if(a.nextAddress==1){if(!E.emojiId||!v.emojiMap[E.emojiId])return a.return();f=Object.assign({},v.emojiMap[E.emojiId],{stickyPrefId:n});v.emojiMap[E.emojiId]=f;E.index&&((x=v.emojis[E.index])==null?void 0:x.emojiId)===E.emojiId&&(v.emojis[E.index]=f);if((y=E.shortcuts)==null?0:y.length)for(v.hasInitializedShortcutCharMap=!1,Q=_.p(E.shortcuts),e=Q.next();!e.done;e=Q.next())F=e.value,v.emojiShortcutMap[F.toLocaleLowerCase()]=f;return _.m(a,
_.wr.getInstance(),2)}if(a.nextAddress!=4)return(b=a.yieldResult)?_.m(a,b.get("ytlc-emoji-pref"),4):a.jumpTo(0);r=(l=a.yieldResult)!=null?l:{};r[E.emojiId]=n;return _.m(a,b.set("ytlc-emoji-pref",r,uUi),0)})};
_.af=new _.sp;var RQo;_.Zv={};
RQo={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Z("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:_.Z("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 SN(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 v=_.K(this.hostElement||this).querySelector("#inline-action-button-container");v&&v.setAttribute("aria-hidden","true");this.menuButton=_.K(this.hostElement).querySelector("#menu-button")},
attached:function(){var v=this.menuButton;v&&(v.addEventListener("focusin",_.uo(this,this.onMenuButtonFocus_)),v.addEventListener("focusout",_.uo(this,this.onMenuButtonBlur_)))},
detached:function(){var v=this.menuButton;v&&(v.removeEventListener("focusin",_.uo(this,this.onMenuButtonFocus_)),v.removeEventListener("focusout",_.uo(this,this.onMenuButtonBlur_)))},
identity:_.NF,truthy:function(v){return!!v},
computeTimestampString:function(v){return v?v.timestampText?this.getSimpleString(v.timestampText):this.TIME_FORMATTER.format(new Date(v.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(v){return _.Z("live_chat_whole_message_clickable")&&v},
computeMenuVisible_:function(v,E){return v||E},
computeHasInlineActionButtons:function(v){if(!v)return!1;var E,n;return!((E=v.inlineActionButtons)==null||!E.length)||!((n=v.additionalInlineActionButtons)==null||!n.length)},
createDocumentFragmentFromString:function(v){var E=_.af.createDocumentFragment.bind(_.af),n;if((n=this.participantsManager)==null||!n.viewerRegex)return E(v);n=document.createDocumentFragment();for(var f=0,x;(x=this.participantsManager.viewerRegex.exec(v))!=null;){if(x.index>0){var y=":"+x[0]+":";if((_.ro(_.af,y)||_.ye(_.af,y))&&v.indexOf(y)===x.index-1)continue}n.appendChild(E(v.substring(f,x.index)));f=document.createElement("span");f.appendChild(E(x[0]));f.classList.add("mention");n.appendChild(f);
f=x.index+x[0].length}n.appendChild(E(v.substring(f)));return n},
createDocumentFragment:function(v){var E=document.createDocumentFragment();if(v.simpleText)return E.appendChild(this.createDocumentFragmentFromString(v.simpleText)),E;if(!v.runs)return E;for(var n=0;n<v.runs.length;n++){var f=v.runs[n];if(f.emoji)E.appendChild(_.af.createEmoji(f.emoji));else if(f.text)if(f.navigationEndpoint){var x=document.createElement("a");x.classList.add("yt-simple-endpoint");E_9(x,f.navigationEndpoint);_.K(x).appendChild(this.createDocumentFragmentFromString(f.text));E.appendChild(x)}else E.appendChild(this.createDocumentFragmentFromString(f.text))}return E},
hasModerationOverlayVisible:function(){var v;return((v=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:v.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(v){v.composedPath().some(function(E){return(E=E instanceof Element?E:null)?E.tagName&&(E.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||E.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Z("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(v)},
colorFromDecimal:function(v){return lwI(v)},
markAsDeleted:function(v,E){this.set("data.deletedStateMessage",v);this.set("data.showOriginalContentMessage",E)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(v){if(this.data.contextMenuEndpoint){var E=_.P().resolve(_.n2),n=this.data.contextMenuEndpoint,f;(f=_.Zg.instance)&&_.Ch(f,n)?(E=in1(E,n),f=_.Ms(f,{},E)):f=_.zQg(E,n);f.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);v&&v.stopPropagation()}},
handleGetContextMenuResponse_:function(v){var E=_.Zg.instance;E&&_.Ch(E,{liveChatEndpoint:{}})||(v=v.response);v.liveChatItemContextMenuSupportedRenderers&&v.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(v.liveChatItemContextMenuSupportedRenderers.menuRenderer);v.actions&&_.OL(this.hostElement,"yt-live-chat-actions",[v.actions])},
handleGetContextMenuError:function(v){if(v instanceof Error||v instanceof Object||v instanceof String)var E=v;_.mb(new _.yc("Error encountered calling GetLiveChatItemContextMenu",E))},
showContextMenu_:function(v){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:v}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.jK(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.jK(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Zv.YtLiveChatItemBehavior=[RQo,_.aD.YtComponentBehavior,_.GU.YtOpenPopupBehavior];_.CK=function(){};var tB1;var BES;var vKS;var EKF;var M3=function(){var v=_.g.apply(this,arguments)||this;v.active=!1;v.identity=_.NF;return v};
_.S(M3,_.g);M3.prototype.dataChanged=function(){this.active=!1};
M3.prototype.onClick=function(){_.jK(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
M3.prototype.dataChanged=M3.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],M3.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],M3.prototype,"active",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M3.prototype,"dataChanged",null);M3=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],M3);
_.u(M3,"yt-live-chat-text-input-field-suggestion",function(){if(EKF===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;vKS===void 0&&(vKS=document.createElement("template"));var f=vKS;n.call(E,f.content.cloneNode(!0),v.content.firstChild);EKF=v}v=EKF;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});_.SG=function(v,E,n){return CustomEvent.call(this,v,{detail:{value:E,path:n}})||this};
_.S(_.SG,CustomEvent);_.Up=function(){var v=_.g.apply(this,arguments)||this;v.viewerName=null;v.actionMap={"yt-live-chat-actions":"onChatMessage_"};v.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];v.PARTICIPANT_TIME_USEC_=3E8;return v};
_.S(_.Up,_.g);_.c=_.Up.prototype;_.c.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.c.addParticipant=function(v){var E=_.Z1E(this.participants,v,function(f,x){f=f[Object.keys(f)[0]];x=x[Object.keys(x)[0]];f=String(_.JC(f.authorName)).toLowerCase();x=String(_.JC(x.authorName)).toLowerCase();return f<x?-1:f==x?0:1}.bind(this));
if(E>=0){var n=this.participants[E];n[Object.keys(n)[0]].timestampUsec&&this.splice("participants",E,1,v)}else this.splice("participants",-E-1,0,v);v=v[Object.keys(v)[0]];E=_.JC(v.authorName).toLocaleLowerCase();n=E.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(n)||(this.allParticipantsCharMap_[n]={});this.allParticipantsCharMap_[n][E]=v};
_.c.getAuthorsFromPrefix=function(v){return this.allParticipantsCharMap_.hasOwnProperty(v)?this.allParticipantsCharMap_[v]:null};
_.c.computeViewerRegex_=function(v){if(!v)return null;v=v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.Z("enable_web_yt_handles")||_.Z("enable_live_chat_yt_handles")?new RegExp("([#]"+v.replace(/ /g,"\\s*")+"|^"+v.replace(/ /g,"\\s*")+"$|^"+v.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+v.replace(/ /g,"\\s*")+"$|(?<=\\s)"+v.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+v.replace(/ /g,"\\s*")+"|^"+v.replace(/ /g,"\\s*")+"$|^"+v.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+v.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+v.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.c.checkForStaleParticipants_=function(){var v=this;this.trimOldParticipants_();this.asyncHandle_&&kmE(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.bz(function(){v.checkForStaleParticipants_()},3E4))};
_.c.onChatMessage_=function(v){var E=this,n=Date.now()*1E3;v.forEach(function(f){if(f=_.C(f,DTw)){f=f.item;var x=Object.keys(f)[0];E.SUPPORTED_ITEM_TYPES_.indexOf(x)!=-1&&f[x].timestampUsec>=n-E.PARTICIPANT_TIME_USEC_&&E.addParticipant(f)}},this);
this.checkForStaleParticipants_()};
_.c.trimOldParticipants_=function(){for(var v=Date.now()*1E3,E=this.participants.length-1;E>=0;E--){var n=this.participants[E];n=n[Object.keys(n)[0]];n.timestampUsec&&n.timestampUsec<v-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",E,1)}};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],_.Up.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],_.Up.prototype,"viewerName",void 0);_.k([_.H({computed:"computeViewerRegex_(viewerName)"}),_.W("design:type",Object)],_.Up.prototype,"viewerRegex",void 0);_.k([_.H({value:function(){return[]},
notify:!0}),_.W("design:type",Array)],_.Up.prototype,"participants",void 0);_.Up=_.k([_.p5({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Up);var nKi=/.*([:@#].*?)$/,q3=/\u00a0/g,oKi=String.fromCharCode(160),fSz={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"},Jd=function(){var v=_.g.apply(this,arguments)||this;v.disabled=!1;v.liveChatRichMessageInput=null;v.messageInput=null;v.isValidWithNoInputText=!1;v.suggestions=[];v.emojiManager=_.af;v.inputMethodEditorActive=
!1;v.suggestionIndex=-1;v.JSC$11845_lastSuggestionRange=null;return v};
_.S(Jd,_.g);_.c=Jd.prototype;_.c.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.c.attached=function(){_.oG&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.c.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.c.dataChanged=function(){if(!this.ignoreColorMapping){var v=!1,E={},n;for(n in fSz)this.data&&this.data.hasOwnProperty(n)&&(E[fSz[n]]=this.colorFromDecimal(this.data[n]),v=!0);v&&_.NQ(this.hostElement,E)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.c.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.c.colorFromDecimal=function(v){v=Math.floor(Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
_.c.preventDrag=function(v){v.dataTransfer&&(v.dataTransfer.dropEffect="none");v.preventDefault()};
_.c.preventResize=function(v){v.returnValue=!1};
_.c.onInputChange=function(){var v=this.characterCount,E=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&E&&E.remove();if(!E&&this.characterCount>this.maxCharacterLimit){var n=window.getSelection();if(n){var f=n.getRangeAt(0);n.removeAllRanges();n.addRange(f)}}if(n=this.getCurrentRange())f=this.calculateTextBeforeRange(n),this.completeEmojisInRange(n,f,!0)||this.updateSuggestions(n,f);f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);
_.jK(this.hostElement,"yt-live-chat-message-input-change",f);E&&this.characterCount===0&&E.remove();n&&n.commonAncestorContainer.parentElement.id==="input"&&n.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>v):n&&!n.collapsed&&n.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(v=this.input.childNodes.length-1;v>=0;v--)this.input.childNodes[v].nodeName==="BR"&&this.input.childNodes[v].remove()};
_.c.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.c.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var v=this.getCurrentRange();v&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.c.mergeOverflowText=function(v){if(v){var E=document.createRange();E.selectNodeContents(v);E=E.extractContents();this.input.insertBefore(E,v)}};
_.c.checkRangeAtEndOfInput=function(){var v=this.getCurrentRange();if(v){var E=_.K(this.hostElement).querySelector("#overflow-text"),n=document.createRange();E&&E.previousSibling?E.previousSibling instanceof HTMLImageElement?n.selectNode(E.previousSibling):n.selectNodeContents(E.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?n.selectNode(this.input.lastChild):n.selectNodeContents(this.input.lastChild));n.collapse(!1);return n.isPointInRange(v.startContainer,
v.startOffset)}return!1};
_.c.handleOverflowText=function(v){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var E=_.K(this.hostElement).querySelector("#overflow-text"),n=this.getCurrentRange();this.input.normalize();v=this.checkRangeAtEndOfInput()&&v;this.mergeOverflowText(E);for(var f,x=0,y=0,Q,e=this.input.childNodes,F=0;F<e.length;F++){var b=e[F];b instanceof Text?(y+=b.textContent.length,y>this.maxCharacterLimit&&(f=b,x=this.maxCharacterLimit+b.textContent.length-y)):b instanceof HTMLImageElement&&
(f=void 0,y=b.dataset.emojiId&&((f=this.data)==null?0:f.emojiCharacterCount)?y+this.data.emojiCharacterCount:y+b.alt.length,f=this.input,x=F);if(y>this.maxCharacterLimit&&f){Q=document.createRange();Q.collapse(!1);E?(y=this.input.lastChild.previousSibling,y instanceof Text?Q.setEnd(this.input.lastChild.previousSibling,y.textContent.length):y instanceof HTMLImageElement&&Q.setEnd(this.input,this.input.childNodes.length-1)):Q.selectNodeContents(this.input);Q.setStart(f,x);break}}Q&&(f=!1,n&&(v=Q.isPointInRange(n.startContainer,
n.startOffset-1)),E||(E=document.createElement("span"),E.id="overflow-text",E.textContent="",E.setAttribute("contenteditable","true"),_.K(_.K(this.hostElement).querySelector("#input")).appendChild(E),f=!0),E&&(n=Q.extractContents(),E.insertBefore(n,E.firstChild),v&&E.firstChild&&(n=document.createRange(),f?n.setStartAfter(E.lastChild):n.setStartAfter(E.firstChild),n.collapse(!0),E=window.getSelection(),E.removeAllRanges(),E.addRange(n))))}};
_.c.checkForDuplicateSpans=function(){for(var v=0;v<this.input.childNodes.length;v++){var E=this.input.childNodes[v];if(E.nodeName==="SPAN"){var n=document.createRange();n.selectNodeContents(E);n=n.extractContents();this.input.insertBefore(n,E);E.remove()}}this.handleOverflowText(!0)};
_.c.getCurrentRange=function(){var v=window.getSelection();return v&&v.rangeCount?v.getRangeAt(0).cloneRange():null};
_.c.getInputRange=function(){var v=this.getCurrentRange();if(v){for(var E=v.commonAncestorContainer,n=!1,f=_.K(this.hostElement).querySelector("#input");E;){if(E===f){n=!0;break}E=E.parentNode}n||(v=null)}v||(v=this.getRangeAtEnd());return v};
_.c.getRangeAtEnd=function(){var v=document.createRange(),E=_.K(this.hostElement).querySelector("#input").lastChild;!E||E.nodeName!=="#text"&&E.nodeName!=="SPAN"?(v.selectNodeContents(_.K(this.hostElement).querySelector("#input")),v.collapse(!1)):E.nodeName==="#text"?v.setStart(E,E.textContent.length):v.setStart(E,E.childNodes.length);return v};
_.c.getSuggestions=function(v){var E=[],n=v.substring(0,3),f=Go4(_.af,n,!0);if(f)for(var x in f)if(x.toLocaleLowerCase().indexOf(v)===0){var y=f[x];if(y&&y.emojiId){if(y=Ls1(_.af,y.emojiId)){var Q=void 0,e=void 0,F=void 0,b=void 0,l=((Q=y.image)==null?0:(e=Q.accessibility)==null?0:(F=e.accessibilityData)==null?0:F.label)||y.isCustomEmoji?(b=y.shortcuts)==null?void 0:b[0]:y.emojiId;E.push({suggestion:{emoji:!0,image:y.image,alt:l,text:x,textToInsertWhenSelected:y.isCustomEmoji?x:l}})}if(E.length>=
64)break}}if(!this.participantsManager)return null;f=_.Z("enable_web_yt_handles")||_.Z("enable_live_chat_yt_handles");if(n.indexOf("@")===0||n.indexOf("#")===0)if(x=n.charAt(0),v=v.substring(1),n=f&&n.indexOf("@")===0?n.substring(0,2):n.substring(1),n=this.participantsManager.getAuthorsFromPrefix(n))for(var r in n)if(r.indexOf(v)===0||f&&r.indexOf(x+v)===0)if(y=n[r],Q=_.JC(y.authorName),E.push({suggestion:{author:!0,authorType:x,image:y.authorPhoto,alt:Q,text:Q}}),E.length>=64)break;return E?E.sort(function(a,
M){return M.suggestion.text<a.suggestion.text?-1:M.suggestion.text===a.suggestion.text?0:1}):null};
_.c.insertSuggestion=function(v){var E=_.Z("enable_web_yt_handles")||_.Z("enable_live_chat_yt_handles")?v.text+oKi:v.authorType+v.text+oKi;v.emoji?this.insertTextAtRange(this.JSC$11845_lastSuggestionRange,v.textToInsertWhenSelected||""):v.author&&this.insertTextAtRange(this.JSC$11845_lastSuggestionRange,E)};
_.c.updateSuggestionsAtCaret=function(){var v=this.getCurrentRange();v&&this.updateSuggestions(v,this.calculateTextBeforeRange(v))};
_.c.offsetStartOfRangeBy=function(v,E){for(;E>0;)if(v.startOffset-E>=0){v.setStart(v.startContainer,v.startOffset-E);break}else{E=v.startContainer instanceof HTMLImageElement?E-v.startContainer.alt.length:E-v.startOffset;var n=v.startContainer.previousSibling;if(!n){v.setStart(v.startContainer,0);break}if(_.Z("live_chat_require_space_for_autocomplete_emoji")){var f=void 0,x=void 0;v.setStart(n,((f=n)==null?void 0:(x=f.textContent)==null?void 0:x.length)||0)}else v.setStart(n,n.childNodes.length||
0)}};
_.c.updateSuggestions=function(v,E){var n=this;this.JSC$11845_lastSuggestionRange&&(this.JSC$11845_lastSuggestionRange.detach(),this.JSC$11845_lastSuggestionRange=null);if((E=nKi.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2&&(this.offsetStartOfRangeBy(v,E.length),this.JSC$11845_lastSuggestionRange=v,(v=this.getSuggestions(E))&&v.length))){this.suggestions=v;_.IS(this,function(){_.K(n.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.c.completeEmojisInRange=function(v,E,n){var f=E.replace(/[\s\xa0]+$/,"");E=E.length-f.length;f=f.split(" ");f=f[f.length-1].trim().toLocaleLowerCase();var x=f.lastIndexOf(":");if(n&&!E&&x!==f.length-1)return!1;x!==-1&&(n=f.lastIndexOf(":",x-1),n!==-1&&(f=f.substring(n)));if((n=_.ye(_.af,f))&&n.emojiId){n=Ls1(_.af,n.emojiId)||null;this.offsetStartOfRangeBy(v,f.length+E);var y,Q,e,F;f=(((y=n)==null?0:y.isCustomEmoji)?(Q=n)==null?void 0:(e=Q.shortcuts)==null?void 0:e[0]:(F=n)==null?void 0:F.emojiId)||
"";E&&(f+=oKi);this.insertTextAtRange(v,f);this.dropdown.opened=!1;return!0}return!1};
_.c.onSuggestion=function(v){this.insertSuggestion(v.detail);this.dropdown.opened=!1};
_.c.onKeyPress=function(v){v.keyCode===13&&(v.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.jK(this.hostElement,"yt-live-chat-send-message"))};
_.c.completeEmojis=function(){var v=document.createRange(),E=_.K(this.hostElement).querySelector("#input").lastChild;E?v.setStart(E,E.childNodes.length):(v.selectNodeContents(_.K(this.hostElement).querySelector("#input")),v.collapse(!1));this.completeEmojisInRange(v,this.calculateTextBeforeRange(v),_.Z("live_chat_require_space_for_autocomplete_emoji"))};
_.c.maybePreventTextFormatting=function(v){!_.yH||!v.ctrlKey&&!v.metaKey||v.keyCode!==66&&v.keyCode!==73||(v.stopImmediatePropagation(),v.preventDefault())};
_.c.onKeyDown=function(v){this.maybePreventTextFormatting(v);if(this.dropdown.opened)switch(v.keyCode){case 27:this.dropdown.opened=!1;v.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;v.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.c.onKeyUp=function(v){switch(v.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.n9)this.onInputChange()};
_.c.changeSuggestionIndex=function(v){if(this.dropdown.opened){var E=_.K(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<E.children.length&&(E.children[this.suggestionIndex].active=!1);var n=this.suggestions.length;this.suggestionIndex=(v+n)%n;v=E.children[this.suggestionIndex];v.active=!0;E.scrollTop=v.offsetTop}};
_.c.onInputPaste=function(v){v.preventDefault();(v=v.clipboardData)&&v.types&&(v=v.getData("text/plain")||"",v=v.replace(/\n/g,""),this.insertText(v));(v=this.getCurrentRange())&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.c.onFocus=function(){this._setFocused(!0)};
_.c.onBlur=function(){this._setFocused(!1)};
_.c.insertText=function(v){this.insertTextAtRange(this.getInputRange(),v)};
_.c.insertTextAtRange=function(v,E){if(v&&(v.collapsed||v.deleteContents(),E=_.af.createDocumentFragment(E,!0,!1))){for(var n=_.p((E==null?void 0:E.childNodes)||[]),f=n.next();!f.done;f=n.next()){f=f.value;var x=void 0,y=void 0,Q=void 0,e=void 0,F=void 0;(Q=(x=window)==null?void 0:(y=x.ShadyCSS)==null?void 0:y.ScopingShim)==null||(F=(e=Q).scopeNode)==null||F.call(e,f,this.hostElement.localName)}n=E.lastChild;v.insertNode(E);this.focused||this.input.focus();if(this.focused){v=v.cloneRange();v.selectNodeContents(n);
v.collapse(!1);if(E=window.getSelection())E.removeAllRanges(),E.addRange(v);v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}v=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(v);_.jK(this.hostElement,"yt-live-chat-message-input-change",v)}};
_.c.setLiveChatRichMessageInput=function(v){_.K(_.K(this.hostElement).querySelector("#input")).textContent="";if(v&&v.textSegments){for(var E=0;E<v.textSegments.length;E++){var n=v.textSegments[E];n.text?_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.af.createDocumentFragment(n.text,!0,!1)):n.emojiId&&(n=_.ro(_.af,n.emojiId))&&_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.af.createEmoji(n,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.c.setText=function(v){this.setLiveChatRichMessageInput(v?{textSegments:[{text:v}]}:null)};
_.c.calculateTextBeforeRange=function(v){var E="",n=v.startContainer;if(n&&n instanceof Text){var f;E=((f=n.textContent)==null?void 0:f.substring(0,v.startOffset))||"";n=n.previousSibling}for(;n&&n instanceof Text;)E=n.textContent+E,n=n.previousSibling;return E.replace(q3," ")};
_.c.calculateLiveChatRichMessageInput=function(){for(var v=[],E="",n=_.K(_.K(this.hostElement).querySelector("#input")).childNodes,f=0;f<n.length;f++){var x=n[f];x instanceof Text?E+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(E&&(v.push({text:E.replace(q3," ")}),E=""),v.push({emojiId:x.dataset.emojiId})):E+=x.alt)}E&&v.push({text:E.replace(q3," ")});if(n=_.K(this.hostElement).querySelector("#overflow-text")){E="";n=n.childNodes;for(f=0;f<n.length;f++)x=n[f],x instanceof Text?
E+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(E&&(v.push({text:E.replace(q3," ")}),E=""),v.push({emojiId:x.dataset.emojiId})):E+=x.alt);E&&v.push({text:E.replace(q3," ")})}return{textSegments:v}};
_.c.computeCharacterCount=function(v){if(!v||!v.textSegments)return 0;for(var E=0,n=0;n<v.textSegments.length;n++){var f=v.textSegments[n];if(f.text)E+=f.text.length;else if(f.emojiId){var x=void 0;if((x=this.data)==null?0:x.emojiCharacterCount)E+=this.data.emojiCharacterCount;else{var y=x=void 0,Q=void 0;E+=((y=_.ro(_.af,(x=f)==null?void 0:x.emojiId))==null?void 0:(Q=y.shortcuts)==null?void 0:Q[0].length)||0}}}return E};
_.c.characterCountChanged=function(){_.jK(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.c.focusedChanged=function(){this.hostElement.dispatchEvent(new _.SG("focused-changed",this.focused))};
_.c.focus=function(){this.setFocus(!1)};
_.c.focusAtEnd=function(){this.setFocus(!0)};
_.c.setFocus=function(v){v=v?this.getRangeAtEnd():this.getInputRange();_.K(this.hostElement).querySelector("#input").focus();var E=window.getSelection();E&&(E.removeAllRanges(),E.addRange(v))};
_.c.insertEmoji=function(v){var E,n=((v==null?0:v.isCustomEmoji)?(E=v.shortcuts)==null?void 0:E[0]:v==null?void 0:v.emojiId)||"";this.insertText(n)};
_.c.computeText=function(v){if(!v||!v.textSegments)return"";for(var E="",n=0;n<v.textSegments.length;n++){var f=v.textSegments[n];if(f.text)E+=f.text;else if(f.emojiId){var x=void 0,y=void 0,Q=void 0;E+=((y=_.ro(_.af,(x=f)==null?void 0:x.emojiId))==null?void 0:(Q=y.shortcuts)==null?void 0:Q[0])||""}}return E};
_.c.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.hK.Object.defineProperties(Jd.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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}}});
Jd.prototype.focusedChanged=Jd.prototype.focusedChanged;Jd.prototype.characterCountChanged=Jd.prototype.characterCountChanged;Jd.prototype.onSuggestion=Jd.prototype.onSuggestion;Jd.prototype.onMessageSet=Jd.prototype.onMessageSet;Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Jd.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Jd.prototype,"disabled",void 0);_.k([_.A("disabled"),_.W("design:type",Number),_.W("design:paramtypes",[])],Jd.prototype,"inputTabIndex",null);_.k([_.A("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jd.prototype,"maxCharacterLimit",null);
_.k([_.A("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jd.prototype,"characterCount",null);_.k([_.A("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jd.prototype,"remainingCharacterCount",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Jd.prototype,"isChatMessageInput",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Jd.prototype,"inputExpanded",void 0);_.k([_.H({readOnly:!0,notify:!0}),_.W("design:type",Object)],Jd.prototype,"liveChatRichMessageInput",void 0);_.k([_.H(),_.W("design:type",Object)],Jd.prototype,"messageInput",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jd.prototype,"ignoreColorMapping",void 0);_.k([_.A("characterCount"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Jd.prototype,"hasText",null);
_.k([_.H(),_.W("design:type",Object)],Jd.prototype,"isValidWithNoInputText",void 0);_.k([_.A("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Jd.prototype,"isInputValid",null);_.k([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Jd.prototype,"focused",void 0);_.k([_.H(),_.W("design:type",Array)],Jd.prototype,"suggestions",void 0);
_.k([_.H(),_.W("design:type",_.sp)],Jd.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",_.Up)],Jd.prototype,"participantsManager",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jd.prototype,"noUnderline",void 0);_.k([_.H(),_.W("design:type",Object)],Jd.prototype,"inputMethodEditorActive",void 0);_.k([_.Wp("#dropdown"),_.W("design:type",Object)],Jd.prototype,"dropdown",void 0);_.k([_.Wp("#input"),_.W("design:type",HTMLElement)],Jd.prototype,"input",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jd.prototype,"dataChanged",null);_.k([_.On("messageInput"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jd.prototype,"onMessageSet",null);_.k([_.jk("yt-live-chat-select-suggestion"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Jd.prototype,"onSuggestion",null);
_.k([_.On("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jd.prototype,"characterCountChanged",null);_.k([_.On("focused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jd.prototype,"focusedChanged",null);Jd=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Jd);
_.xe1=_.u(Jd,"yt-live-chat-text-input-field-renderer",function(){if(BES===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;tB1===void 0&&(tB1=document.createElement("template"));var f=tB1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);BES=v}v=BES;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var KK=function(){var v=_.g.apply(this,arguments)||this;v.buttonOverrides={style:"overlay",type:"filled"};v.allowAnimations=!1;v.modern=_.Z("web_button_rework_with_live");v.noPadding=!1;return v};
_.S(KK,_.g);_.c=KK.prototype;_.c.shouldSupportInlineActionButtons=function(){return!0};
_.c.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"}}}}};
_.c.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.c.attached=function(){this.allowAnimations=!1};
_.c.dataChanged=function(){if(this.data){var v={"--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)};_.NQ(this.hostElement,v);this.allowAnimations=!0}};
_.c.messageChanged=function(){var v,E=(v=this.data)==null?void 0:v.message;v=_.K(_.K(this.hostElement).querySelector("#message"));v.textContent="";E&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.c.computeShowOnlyHeader=function(v,E){return!v||v.pdgLikeButton||v.replyButton||v.buyFlowButton?!1:this.isEmpty(v,E)&&!v.footer};
_.c.computeShowFooterDivider=function(v,E,n){return v?!!v.footer&&!this.isEmpty(v,E)&&!n:!1};
_.c.computeIsUserEditable=function(v){return!!v.inputField};
_.c.computeHasHeartButton=function(v){return(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.c.computeNoveltyImage=function(v){if(v.headerOverlayImage&&v.headerOverlayImage.thumbnails.length){var E=v.headerOverlayImage.thumbnails[0],n,f;if((n=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(f=n.loggingDirectives)==null?0:f.trackingParams){var x,y;nLG((x=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(y=x.loggingDirectives)==null?void 0:y.trackingParams)}return E.width||0}return 0};
_.c.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.c.inputFocus=function(){var v=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");v&&v.focus()};
_.c.inputInsertEmoji=function(v){var E=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");E&&E.insertEmoji(v)};
_.c.inputMessage=function(){var v=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),E;return v&&((E=this.data)==null?0:E.inputField)?(v.completeEmojis(),_.rW(v.liveChatRichMessageInput)):null};
_.c.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.c.isEmpty=function(v,E){return v?v.empty||!(v.message||v.inputField||E):!0};
_.c.onLowerBuyButtonClick=function(){var v,E=_.C((v=this.data)==null?void 0:v.buyButton,_.qb);E&&E.trackingParams&&!rlX(E.command)&&(v=_.tx(E.trackingParams))&&(E=_.lc())&&_.qx(E,v)};
_.c.shouldSupportWholeItemClick=function(){return!0};
_.hK.Object.defineProperties(KK.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
KK.prototype.isDeletedChanged=KK.prototype.isDeletedChanged;KK.prototype.messageChanged=KK.prototype.messageChanged;KK.prototype.dataChanged=KK.prototype.dataChanged;_.k([_.h(jRU.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],KK.prototype,"ytPdgLiveChatItemBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],KK.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],KK.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],KK.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:vLX}),_.W("design:type",Object)],KK.prototype,"engagementState",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.W("design:type",Boolean)],KK.prototype,"isUserEditable",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.W("design:type",Boolean)],KK.prototype,"hasHeartButton",void 0);_.k([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Boolean)],KK.prototype,"showOnlyHeader",void 0);
_.k([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.W("design:type",Boolean)],KK.prototype,"showFooterDivider",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],KK.prototype,"allowAnimations",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],KK.prototype,"dashboardMoneyFeed",void 0);_.k([_.H({computed:"computeNoveltyImage(data)"}),_.W("design:type",Number)],KK.prototype,"noveltyWidth",void 0);
_.k([_.H({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],KK.prototype,"authorPhotoSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],KK.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],KK.prototype,"noPadding",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"dataChanged",null);
_.k([_.On("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"messageChanged",null);_.k([_.A("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],KK.prototype,"hideLowerBumper",null);_.k([_.On("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"isDeletedChanged",null);
KK=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],KK);
_.u(KK,"yt-live-chat-paid-message-renderer",function(){if(Fs1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;eQP===void 0&&(eQP=document.createElement("template"));var f=eQP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Fs1=v}v=Fs1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var c2o;var y2S;var If=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.S(If,_.L2);If.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.MX("openPopupConfig")};
_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],If.prototype,"ytOpenPopupBehavior",void 0);If=_.k([_.Gw()],If);_.YM=[_.GU.YtOpenPopupBehavior,If.prototype];var pCS;var Ud=[_.ix,SP4,_.Mb,_.ze,_.dM,_.VPo,_.By,_.j16,_.qI,RnG];_.Z("web_watch_get_updated_metadata_response_processing")&&Ud.push(_.Q6g);_.Z("web_continuation_response_processing")&&Ud.push(_.bG);var p3y=new _.$Y("RESPONSE_RECEIVED_COMMANDS"),GhF=new _.$Y("RESPONSE_RECEIVED_COMMANDS");var u8s="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),N4N=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],gLI=["GET_UNSEEN_NOTIFICATION_COUNT"];var hd=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.serviceEndpointHandlers=[];return v};
_.S(hd,_.L2);hd.prototype.created=function(){var v=this;this.endpointHandlerActionMap={"yt-service-request":function(E,n,f,x){var y;return HBQ(v.hostElement,E,n,f,x,v.serviceEndpointHandlers,(y=v.onEntitiesUpdated)==null?void 0:y.bind(v))}}};
hd.prototype.attached=function(){_.Jo(_.qw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
hd.prototype.detached=function(){_.K3(_.qw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
hd=_.k([_.Gw()],hd);_.Qm4=[hd.prototype];var XCg,egz=function(){return XCg!==void 0?XCg:XCg=document.createElement("template")};
document.head.appendChild(egz().content);var FfF;var meo=document.head,wC6=meo.appendChild,bdP;if(FfF===void 0){var lS6=document.createElement("template");_.q(lS6,"\x3c!--css-build:shady--\x3e");lS6.content.insertBefore(egz().content.cloneNode(!0),lS6.content.firstChild);FfF=lS6}bdP=FfF;wC6.call(meo,bdP.content);var smX,r2X=function(){return smX!==void 0?smX:smX=document.createElement("template")};
document.head.appendChild(r2X().content);var PA4;var aS4=document.head,Zd1=aS4.appendChild,CAS;if(PA4===void 0){var Mbo=document.createElement("template");_.q(Mbo,"\x3c!--css-build:shady--\x3e");Mbo.content.insertBefore(r2X().content.cloneNode(!0),Mbo.content.firstChild);PA4=Mbo}CAS=PA4;Zd1.call(aS4,CAS.content);var Scl;_.ew("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.ew("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Scl=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live");_.Ad=function(){var v=_.g.apply(this,arguments)||this;v.isPressed=!1;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return v};
_.S(_.Ad,_.g);_.c=_.Ad.prototype;_.c.created=function(){this.showTooltips=!0};
_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.onHintIdChanged=function(){var v=this,E,n,f=(E=this.ytButtonBehavior.data)==null?void 0:(n=E.hint)==null?void 0:n.hintRenderer;if(f&&f.hintId){E=_.kZ(this.hostElement,"yt-get-opened-popups-action");E=(E&&E.length===1?E[0]:[]).length>0;var x=null;f.hintId!=="sponsor-pre-purchase"||E?f.hintId.startsWith("sponsor-post-purchase")&&!E?x=yk1("membership-manage"):f.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!E&&(x=yk1("membership-freebie-join")):x=yk1("membership-join");x&&_.wh.addLowPriorityJob(function(){for(var y=
_.p(x),Q=y.next();!Q.done;Q=y.next())v.ytComponentBehavior.resolveCommand(Q.value)})}};
_.c.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.c.onYtNavigate=function(v){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);E&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.c.onYtServiceRequestSent=function(v,E){this.handleServiceRequestActions(E);_.jK(this.hostElement,"yt-service-request-sent-button-renderer")};
_.c.onServiceRequestCompleted=function(v,E){this.handleServiceRequestActions(E);_.jK(this.hostElement,"yt-service-request-completed-button-renderer")};
_.c.updateButton=function(v){var E;if(v=(E=_.C(v,c_U))==null?void 0:E.updatedButton)this.ytButtonBehavior.data=_.C(v,_.qb)};
_.c.handleUpdateButtonAction=function(v){var E=this.ytButtonBehavior.data;E.targetId&&v.updateButtonAction.targetId&&E.targetId===v.updateButtonAction.targetId&&this.updateButton(v)};
_.c.handleServiceRequestActions=function(v){if(v=v.actions)for(var E=0;E<v.length;E++)this.updateButton(v[E])};
_.hK.Object.defineProperties(_.Ad,{template:{configurable:!0,enumerable:!0,get:function(){if(pCS===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);pCS=v}v=pCS;return v}}});
_.Ad.prototype.onServiceRequestCompleted=_.Ad.prototype.onServiceRequestCompleted;_.Ad.prototype.onYtServiceRequestSent=_.Ad.prototype.onYtServiceRequestSent;_.Ad.prototype.onYtNavigate=_.Ad.prototype.onYtNavigate;_.Ad.prototype.onPressedStateChanged=_.Ad.prototype.onPressedStateChanged;_.Ad.prototype.onHintIdChanged=_.Ad.prototype.onHintIdChanged;_.k([_.H(),_.W("design:type",Object)],_.Ad.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],_.Ad.prototype,"isPressed",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],_.Ad.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.hTg.YtButtonBehavior),_.W("design:type",Object)],_.Ad.prototype,"ytButtonBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],_.Ad.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],_.Ad.prototype,"ytComponentBehavior",void 0);
_.k([_.h(t1.YtRenderButtonBehavior),_.W("design:type",Object)],_.Ad.prototype,"ytRenderButtonBehavior",void 0);_.k([_.On("data.hint.hintRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.Ad.prototype,"onHintIdChanged",null);_.k([_.On("isPressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.Ad.prototype,"onPressedStateChanged",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.Ad.prototype,"onYtNavigate",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],_.Ad.prototype,"onYtServiceRequestSent",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],_.Ad.prototype,"onServiceRequestCompleted",null);_.Ad=_.k([_.N({is:"ytd-button-renderer",disableElementRegistration:Scl})],_.Ad);var Vk=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.S(Vk,_.g);_.c=Vk.prototype;_.c.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"}}}}};
_.c.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.c.dataChanged=function(){if(this.data&&this.data.sticker){var v=_.hZ(this.data.sticker.thumbnails,this.stickerWidth);v||_.v9X(v).thenCatch(function(){_.li(new _.yc("Failed to load Super Sticker with url",v))})}};
_.c.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)?32:40};
_.c.computeIsV2Style=function(v){return(v==null?0:v.isV2Style)?!0:!1};
_.c.onStickerLoaded=function(v){var E,n,f;(E=_.Sk(v))==null||(n=E.parentNode)==null||(f=n.classList)==null||f.add("sticker-loaded")};
_.c.computeNoveltyImageWidth=function(v){var E,n;if(v==null?0:(E=v.headerOverlayImage)==null?0:(n=E.thumbnails)==null?0:n.length){E=v.headerOverlayImage.thumbnails[0];var f,x;if((f=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(x=f.loggingDirectives)==null?0:x.trackingParams){var y,Q;nLG((y=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Q=y.loggingDirectives)==null?void 0:Q.trackingParams)}return E.width||0}return 0};
_.c.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.c.updateStickerStyles=function(){var v=this.data;v&&(v={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.authorNameTextColor)},
_.NQ(this.hostElement,v))};
_.c.onBuyButtonClick=function(){var v,E=_.C((v=this.data)==null?void 0:v.buyButton,_.qb);E&&!rlX(E.command)&&this.ytRendererBehavior.logExplicitClick(E)};
_.c.shouldSupportWholeItemClick=function(){return!0};
_.hK.Object.defineProperties(Vk.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 v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Vk.prototype.updateStickerStyles=Vk.prototype.updateStickerStyles;Vk.prototype.isDeletedChanged=Vk.prototype.isDeletedChanged;Vk.prototype.onStickerLoaded=Vk.prototype.onStickerLoaded;Vk.prototype.dataChanged=Vk.prototype.dataChanged;_.k([_.h(jRU.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],Vk.prototype,"ytPdgLiveChatItemBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],Vk.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Vk.prototype,"data",void 0);
_.k([_.H({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],Vk.prototype,"authorPhotoSize",void 0);_.k([_.H(),_.W("design:type",Boolean)],Vk.prototype,"isDeleted",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Vk.prototype,"dashboardMoneyFeed",void 0);_.k([_.H({computed:"computeNoveltyImageWidth(data)"}),_.W("design:type",Number)],Vk.prototype,"noveltyWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Vk.prototype,"modern",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.W("design:type",Boolean)],Vk.prototype,"isV2Style",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"dataChanged",null);_.k([_.jk("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vk.prototype,"onStickerLoaded",null);
_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Vk.prototype,"stickerWidth",null);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Vk.prototype,"stickerHeight",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vk.prototype,"hasHeartButton",null);_.k([_.A("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vk.prototype,"hideLowerBumper",null);
_.k([_.On("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"isDeletedChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"updateStickerStyles",null);Vk=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Vk);
_.u(Vk,"yt-live-chat-paid-sticker-renderer",function(){if(y2S===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;c2o===void 0&&(c2o=document.createElement("template"));var f=c2o;n.call(E,f.content.cloneNode(!0),v.content.firstChild);y2S=v}v=y2S;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var UeP;var qco;var J21,Kf4=function(){return J21!==void 0?J21:J21=document.createElement("template")};
document.head.appendChild(Kf4().content);var deX,ISw=function(){return deX!==void 0?deX:deX=document.createElement("template")};
document.head.appendChild(ISw().content);var Ycz;var hgg,A21=function(){return hgg!==void 0?hgg:hgg=document.createElement("template")};
document.head.appendChild(A21().content);var Vb1;var DeS=document.head,HdX=DeS.appendChild,gKl;if(Vb1===void 0){var NpP=document.createElement("template");_.q(NpP,"\x3c!--css-build:shady--\x3e");NpP.content.insertBefore(A21().content.cloneNode(!0),NpP.content.firstChild);Vb1=NpP}gKl=Vb1;HdX.call(DeS,gKl.content);var uk1=document.head,jm1=uk1.appendChild,Odz;if(Ycz===void 0){var Dv=document.createElement("template");_.q(Dv,"\x3c!--css-build:shady--\x3e");Dv.content.insertBefore(ISw().content.cloneNode(!0),Dv.content.firstChild);Dv.content.insertBefore(Kf4().content.cloneNode(!0),Dv.content.firstChild);Ycz=Dv}Odz=Ycz;jm1.call(uk1,Odz.content);var Hm=function(){var v=_.L2.apply(this,arguments)||this;v.focusedIndex=0;v.verticalOffset=0;v.verticalAlign="top";v.dynamicAlign=!0;return v};
_.S(Hm,_.L2);Hm.prototype.emojiUrl=function(v){v=_.ro(this.emojiManager,v);if(!v)return"";var E;v=(E=v.image)==null?void 0:E.thumbnails;return _.hZ(v,24)||""};
var kV1=function(v){var E;v.emojiVariants&&(E=v.data)!=null&&E.target&&_.IS(v,function(){v.set("verticalOffset",-1*v.hostElement.clientHeight);var n=_.K(v.hostElement).querySelector("img");n&&n.focus()})};
_.c=Hm.prototype;_.c.onKeyboardEnter=function(){};
_.c.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.c.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.c.onKeyDown=function(v){switch(v.keyCode){case 13:this.onKeyboardEnter();v.preventDefault();break;case 40:this.changeFocus(1);v.preventDefault();break;case 38:this.changeFocus(-1);v.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.c.onYtEmojiSelect=function(v){var E=this,n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return f=(n=E.data)==null?void 0:n.emoji,Q=((x=f)==null?void 0:x.stickyPrefId)||((y=f)==null?void 0:y.emojiId),F=(e=v.detail)==null?void 0:e.emojiId,Q&&F&&Q!==F?_.m(l,(b=E.emojiManager)==null?void 0:TEw(b,f,F),2):l.return();_.OL(E.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[f,F]);_.yQ(l)})};
_.c.changeFocus=function(v){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+v+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(v=_.K(this.hostElement).querySelector("#variants"))&&v.children[this.focusedIndex].focus())};
_.hK.Object.defineProperties(Hm.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Hm.prototype.onYtEmojiSelect=Hm.prototype.onYtEmojiSelect;Hm.prototype.onKeyDown=Hm.prototype.onKeyDown;Hm.prototype.onEmojiVariantsChanged=Hm.prototype.onEmojiVariantsChanged;Hm.prototype.onVerticalOffsetOrPositionTargetChanged=Hm.prototype.onVerticalOffsetOrPositionTargetChanged;_.k([_.h(_.Hk),_.W("design:type",Object)],Hm.prototype,"ironOverlayBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"data",void 0);_.k([_.H(),_.W("design:type",_.sp)],Hm.prototype,"emojiManager",void 0);
_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"emojiVariants",void 0);_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"focusedIndex",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Hm.prototype,"positionTarget",null);_.k([_.H({reflectToAttribute:!0}),_.A("verticalOffset","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Hm.prototype,"isPositioned",null);_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"verticalOffset",void 0);
_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"verticalAlign",void 0);_.k([_.H(),_.W("design:type",Object)],Hm.prototype,"dynamicAlign",void 0);_.k([_.On("verticalOffset","positionTarget"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hm.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.k([_.On("emojiVariants"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hm.prototype,"onEmojiVariantsChanged",null);
_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],Hm.prototype,"onKeyDown",null);_.k([_.jk("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],Hm.prototype,"onYtEmojiSelect",null);Hm=_.k([_.Gw()],Hm);var Wfg=[Hm.prototype];var $eo;var LfX;var GVi=/medium-light|medium-dark|light|medium|dark/,TpS=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,idl=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),go=function(){var v=_.g.apply(this,arguments)||this;v.userSelection={left:null,right:null};v.scrollAction="lock";v.isEmojiDraftInProgress=!1;return v};
_.S(go,_.g);_.c=go.prototype;_.c.onClick=function(v){v=_.Sk(v);v instanceof HTMLImageElement&&this.selectOrUpdateEmoji(v)};
_.c.selectOrUpdateEmoji=function(v){var E=v.getAttribute("selection");E&&(E==="default"?_.jK(this.hostElement,"yt-emoji-select",_.ro(this.emojiManager,v.id)):E==="left"?this.userSelection=Object.assign({},this.userSelection,{left:v.src}):E==="right"?this.userSelection=Object.assign({},this.userSelection,{right:v.src}):E==="user"&&this.userSelection.left&&this.userSelection.right&&_.jK(this.hostElement,"yt-emoji-select",_.ro(this.emojiManager,v.id)))};
_.c.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.c.onMultiSelectorThumbnailRowChanged=function(){var v,E,n;((v=this.data)==null?0:(E=v.emoji)==null?0:(n=E.multiSelectorThumbnailRow)==null?0:n.length)&&this.openSelector()};
_.c.getThumbnailFromEmojiRow=function(v){var E,n;return(v==null?void 0:(E=v.thumbnails)==null?void 0:(n=E[0])==null?void 0:n.url)||""};
_.c.getEmojiAltTextForPartialSelector=function(v){var E;return((E=this.getThumbnailFromEmojiRow(v).match(TpS))==null?void 0:E[0])||""};
_.c.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.c.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.c.getRowSelection=function(v){return["left","right"][v]};
_.c.getIdFromComposedEmoji=function(v){return(v==null?void 0:v.emojiId)||""};
_.c.getEmojiFromPartialSelections=function(v,E){if(!v&&!E)return null;var n,f,x=(n=this.data)==null?void 0:(f=n.emoji)==null?void 0:f.variantIds;if(!x||!x.length)return null;var y;v=(y=v.match(GVi))==null?void 0:y[0];var Q;E=(Q=E.match(GVi))==null?void 0:Q[0];if(!v||!E)return null;var e=idl.get(v);Q=idl.get(E);if(e===Q){Q=Array.from(idl.values()).filter(function(b){return b!==e}).join("|");
var F=new RegExp("^((?!("+Q+")).)*"+e+"$")}else F=new RegExp(e+".*"+Q);return(x=x.find(function(b){return F.test(b)}))&&_.ro(this.emojiManager,x)||null};
_.c.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var v,E=this.ytEmojiSelectorBehavior.emojiUrl(((v=this.data.emoji)==null?void 0:v.emojiId)||"");_.K(this.hostElement).querySelector('[selection="user"]').src.includes(E)||(this.isEmojiDraftInProgress=!0)}};
_.c.onDomChange=function(){kV1(this.ytEmojiSelectorBehavior)};
_.c.getFocusableElements=function(){return _.K(this.hostElement).querySelectorAll("img").filter(function(v){return v.getAttribute("role")==="option"})};
_.c.changeFocus=function(v){var E=this.getFocusableElements();E!=null&&E.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+v+E.length)%E.length,this.ytEmojiSelectorBehavior.focusedIndex<E.length&&(v=E[this.ytEmojiSelectorBehavior.focusedIndex])&&v.focus())};
_.c.onKeyboardEnter=function(){var v=this.getFocusableElements();v!=null&&v.length&&(v=v[this.ytEmojiSelectorBehavior.focusedIndex])&&v instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(v),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.hK.Object.defineProperties(go.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n,f;return this.emojiManager&&((E=this.data)==null?0:(n=E.emoji)==null?0:(f=n.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.ro(v.emojiManager,x)}).filter(function(x){return!!x}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var v,E=(v=this.userSelection)==null?void 0:v.left,n;v=(n=this.userSelection)==null?void 0:n.right;return E&&v?this.getEmojiFromPartialSelections(E,v):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.composedEmojiSelection)==null?0:v.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var E;v=(E=this.userSelection)==null?void 0:E.left;var n;E=(n=this.userSelection)==null?void 0:n.right;if(!v&&!E){var f;return this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"")}return v&&!E?v:!v&&E?E:""}}});
go.prototype.onMultiSelectorThumbnailRowChanged=go.prototype.onMultiSelectorThumbnailRowChanged;go.prototype.onClick=go.prototype.onClick;_.k([_.h(_.Hk),_.W("design:type",Object)],go.prototype,"ironOverlayBehavior",void 0);_.k([_.h(Wfg),_.W("design:type",Object)],go.prototype,"ytEmojiSelectorBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],go.prototype,"data",void 0);_.k([_.H(),_.W("design:type",_.sp)],go.prototype,"emojiManager",void 0);
_.k([_.H(),_.W("design:type",Object)],go.prototype,"userSelection",void 0);_.k([_.H(),_.W("design:type",Object)],go.prototype,"scrollAction",void 0);_.k([_.H(),_.W("design:type",Object)],go.prototype,"isEmojiDraftInProgress",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],go.prototype,"emojiVariants",null);_.k([_.A("data","userSelection"),_.W("design:type",Object),_.W("design:paramtypes",[])],go.prototype,"composedEmojiSelection",null);
_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],go.prototype,"onClick",null);_.k([_.On("data.emoji.multiSelectorThumbnailRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],go.prototype,"onMultiSelectorThumbnailRowChanged",null);_.k([_.A("data","userSelection","composedEmojiSelection"),_.W("design:type",String),_.W("design:paramtypes",[])],go.prototype,"draftEmojiUrl",null);
go=_.k([_.p5({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],go);
_.u(go,"yt-emoji-multi-person-selector",function(){if(LfX===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;$eo===void 0&&($eo=document.createElement("template"));var f=$eo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);LfX=v}v=LfX;return v},{mode:2});var zgw;var Rgo;var N3=function(){var v=_.g.apply(this,arguments)||this;v.tooltip_=null;return v};
_.S(N3,_.g);_.c=N3.prototype;_.c.dataChanged_=function(){var v;if((v=this.data)==null?0:v.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.K(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.gn)(this.tooltip_).textContent=this.data.tooltip};
_.c.computeTargetId=function(){var v;return((v=this.data)==null?void 0:v.targetId)||""};
_.c.computeId_=function(v){return v};
_.c.computeIcon_=function(v){return _.jI(v)};
_.c.onTap_=function(){this.active=!this.active;_.jK(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.c.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("active-changed",this.active))};
_.hK.Object.defineProperties(N3.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var v,E;if((v=this.data)==null?0:(E=v.icon)==null?0:E.iconType)return this.data.icon.iconType==="SUPER_STICKER";var n,f;return((n=this.data)==null?void 0:(f=n.icon)==null?void 0:f.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
N3.prototype.activeChangedForBinding=N3.prototype.activeChangedForBinding;N3.prototype.dataChanged_=N3.prototype.dataChanged_;_.k([_.h(_.Ps.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],N3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],N3.prototype,"data",void 0);_.k([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.W("design:type",String)],N3.prototype,"id",void 0);
_.k([_.H({computed:"computeTargetId(data.targetId)"}),_.W("design:type",String)],N3.prototype,"targetId",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],N3.prototype,"active",void 0);_.k([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.W("design:type",String)],N3.prototype,"icon",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N3.prototype,"dataChanged_",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N3.prototype,"iconFilled",null);_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N3.prototype,"activeChangedForBinding",null);N3=_.k([_.p5({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],N3);
_.u(N3,"yt-emoji-picker-category-button-renderer",function(){if(Rgo===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;zgw===void 0&&(zgw=document.createElement("template"));var f=zgw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Rgo=v}v=Rgo;return v},{mode:2});var tbU;var Bpl;var uJ=function(){var v=_.g.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};v.JSC$11910_ignoreNextFocus_=!1;v.longPressTimeoutId=-1;return v};
_.S(uJ,_.g);_.c=uJ.prototype;_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.c.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.c.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.Tl(),E=0;E<this.emoji.length;E++){var n={veType:88013,elementIndex:E},f=this.emoji[E];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(n=_.Gl(v,n))&&(f.visualElement=n)}};
_.c.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.c.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.c.emojiSkinToneChanged_=function(v){this.skinTone=v};
_.c.dataChanged=function(){this.data&&this.data.emojiData&&Wsg(this.emojiManager,this.data.emojiData)};
_.c.emojiUrl=function(v){v=this.getEmoji(v);if(!v)return"";var E;v=(E=v.image)==null?void 0:E.thumbnails;return _.hZ(v,24)||""};
_.c.emojiAlt=function(v){var E=this.get("image.accessibility.accessibilityData.label",v);return E?E:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.c.emojiAriaLabel=function(v){return v.shortcuts?v.shortcuts[0]:""};
_.c.emojiAriaSelected=function(v,E,n){return v&&n==E?"true":"false"};
_.c.getEmoji=function(v){if(this.emojiManager)return this.shouldUseStickyPreferences?Ls1(this.emojiManager,v):Pm(this.emojiManager,v)};
_.c.computeId_=function(v){return v.categoryId||""};
_.c.computeEmoji=function(v){var E=this;return this.emojiManager?v.emojiIds?v.emojiIds.map(function(n){return n?_.ro(E.emojiManager,n):null}).filter(E9s):v.emojiData?v.emojiData.map(function(n){var f=!!n.emojiId&&_.ro(E.emojiManager,n.emojiId);
return f?Object.assign({},f,n):null}).filter(E9s):[]:[]};
_.c.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.c.computeAriaLabel_=function(v){return _.JC(v)};
_.c.computeAriaActivedescendant_=function(v,E){return v&&v[E]?v[E].emojiId||"":""};
_.c.handleLongPressEmojiWithVariants=function(v,E){this.changeFocusToEmoji(v.emojiId,!1);this.openVariantSelector(v,E)};
_.c.onMouseDown=function(v){var E=this;this.hostElement!==document.activeElement&&(this.JSC$11910_ignoreNextFocus_=!0);if(v.button===0){var n=_.Sk(v);if(n instanceof HTMLImageElement){var f=_.K(this.hostElement).querySelector("#repeat").itemForElement(n);this.emojiContainsVariants(f)&&(this.longPressTimeoutId=setTimeout(function(){E.handleLongPressEmojiWithVariants(f,n)},500))}}};
_.c.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.c.onFocus=function(){this.JSC$11910_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11910_ignoreNextFocus_=!1};
_.c.onBlur_=function(){this.showFocus=!1};
_.c.emojiContainsVariants=function(v){return!!(v&&v.variantIds&&v.variantIds.length)};
_.c.onClick=function(v){clearTimeout(this.longPressTimeoutId);v=_.Sk(v);if(v instanceof HTMLImageElement){var E=v.id;this.changeFocusToEmoji(E,!1);var n=this.getEmoji(E),f;if(f=this.shouldUseStickyPreferences&&this.emojiContainsVariants(n)){var x;f=!((x=this.emojiManager.emojiMap[E])!=null&&x.stickyPrefId)}f?(x=_.K(this.hostElement).querySelector("#repeat").itemForElement(v),this.openVariantSelector(x,v)):_.jK(this.hostElement,"yt-emoji-select",n)}};
_.c.isActiveEmojiWithVariants=function(v,E){return v&&E?E.stickyPrefId?v===E.stickyPrefId:v===E.emojiId:!1};
_.c.onCloseEmojiVariantSelector=function(v){this.activeEmojiWithVariantsId===v&&(this.activeEmojiWithVariantsId="")};
_.c.onMouseOver_=function(v){v=_.Sk(v);v instanceof HTMLImageElement&&_.jK(this.hostElement,"yt-emoji-hover",_.ro(this.emojiManager,v.id))};
_.c.changeFocus_=function(v,E){this.focusedIndex=(this.focusedIndex+v+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(v=this.emoji[this.focusedIndex],E&&(this.showFocus=!0,_.K(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.jK(this.hostElement,"yt-emoji-hover",v)))};
_.c.changeFocusToEmoji=function(v,E){if(v){var n=this.emoji.findIndex(function(f){return f.emojiId===v});
n!==-1&&this.changeFocus_(n-this.focusedIndex,E)}};
_.c.onKeyDown_=function(v){switch(v.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var E=this.emoji[this.focusedIndex];if(E&&E.emojiId){if(this.emojiContainsVariants(E)){var n=_.K(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(E,n)}else _.jK(this.hostElement,"yt-emoji-select",Pm(this.emojiManager,E.emojiId)),this.hostElement.focus();v.preventDefault()}}break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),v.preventDefault()}};
_.c.onEmojiStickyPreferenceChanged=function(v,E){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&v.emojiId&&v.variantIds&&v.variantIds.includes(E)&&this.activeEmojiWithVariantsId!==E&&this.setStickyEmojiPreference(v.emojiId,E)};
_.c.openVariantSelector=function(v,E){this.activeEmojiWithVariantsId=v.stickyPrefId||v.emojiId||"";_.jK(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:v,target:E})};
_.c.setStickyEmojiPreference=function(v,E){if(this.data){var n=this.emoji.findIndex(function(x){return x.emojiId===v});
if(n!==-1){var f=this.emoji[n];f.stickyPrefId=E;this.set("emoji."+n,Object.assign({},f));this.activeEmojiWithVariantsId=E}}};
uJ.prototype.onKeyDown_=uJ.prototype.onKeyDown_;uJ.prototype.onMouseOver_=uJ.prototype.onMouseOver_;uJ.prototype.onClick=uJ.prototype.onClick;uJ.prototype.onBlur_=uJ.prototype.onBlur_;uJ.prototype.onFocus=uJ.prototype.onFocus;uJ.prototype.onMouseUp=uJ.prototype.onMouseUp;uJ.prototype.onMouseDown=uJ.prototype.onMouseDown;uJ.prototype.dataChanged=uJ.prototype.dataChanged;uJ.prototype.disableIncrementalLoadingChanged_=uJ.prototype.disableIncrementalLoadingChanged_;uJ.prototype.emojiManagerChanged_=uJ.prototype.emojiManagerChanged_;
uJ.prototype.emojiChanged_=uJ.prototype.emojiChanged_;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],uJ.prototype,"data",void 0);_.k([_.H({computed:"computeId_(data)"}),_.W("design:type",String)],uJ.prototype,"id",void 0);_.k([_.H({computed:"computeEmoji(data)"}),_.W("design:type",Array)],uJ.prototype,"emoji",void 0);_.k([_.H(),_.W("design:type",Number)],uJ.prototype,"skinTone",void 0);
_.k([_.H(),_.W("design:type",_.sp)],uJ.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Boolean)],uJ.prototype,"disableIncrementalLoading",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],uJ.prototype,"focusedIndex",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],uJ.prototype,"showFocus",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.W("design:type",Object)],uJ.prototype,"ariaLabel",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.W("design:type",Object)],uJ.prototype,"ariaActivedescendant",void 0);_.k([_.H({value:60}),_.W("design:type",Number)],uJ.prototype,"domRepeatTargetFramerate",void 0);_.k([_.H({value:1}),_.W("design:type",Number)],uJ.prototype,"domRepeatInitialCount",void 0);_.k([_.H({value:""}),_.W("design:type",String)],uJ.prototype,"activeEmojiWithVariantsId",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],uJ.prototype,"shouldUseStickyPreferences",void 0);_.k([_.On("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"emojiChanged_",null);_.k([_.On("emojiManager"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"emojiManagerChanged_",null);
_.k([_.On("disableIncrementalLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"disableIncrementalLoadingChanged_",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"dataChanged",null);_.k([_.jk("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],uJ.prototype,"onMouseDown",null);
_.k([_.jk("mouseup"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"onMouseUp",null);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"onFocus",null);_.k([_.jk("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uJ.prototype,"onBlur_",null);
_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],uJ.prototype,"onClick",null);_.k([_.jk("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],uJ.prototype,"onMouseOver_",null);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],uJ.prototype,"onKeyDown_",null);
uJ=_.k([_.p5({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],uJ);
_.u(uJ,"yt-emoji-picker-category-renderer",function(){if(Bpl===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;tbU===void 0&&(tbU=document.createElement("template"));var f=tbU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Bpl=v}v=Bpl;return v},{mode:2});var vLg;var EL1;var nL6;var oLF;var jG=function(){var v=_.g.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.getFormattedStringRawText=_.JC;v.JSC$11916_ignoreNextFocus_=!1;return v};
_.S(jG,_.g);_.c=jG.prototype;_.c.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")};
_.c.emojiUrl=function(v){var E,n;v=(E=Pm(this.emojiManager,v,!0))==null?void 0:(n=E.image)==null?void 0:n.thumbnails;return _.hZ(v,24)||""};
_.c.emojiAlt=function(v){var E=this.get("image.accessibility.accessibilityData.label",v);return E?E:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.c.emojiId=function(v){return"emoji"+v};
_.c.computeId_=function(v){return v.categoryId||""};
_.c.computeAriaActivedescendant_=function(v){return this.emoji&&v<this.emoji.length?this.emojiId(v):""};
_.c.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.Tl(),E=0;E<this.emoji.length;E++){var n={veType:88013,elementIndex:E},f=this.emoji[E];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(n=_.Gl(v,n))&&(f.visualElement=n)}};
_.c.computeEmoji_=function(v){var E=this;return this.emojiManager?v.emojiIds.map(function(n){return _.ro(E.emojiManager,n,!0)}).filter(n9Q):[]};
_.c.titleOffsetChanged_=function(){var v=this.hostElement.getBoundingClientRect(),E=_.K(this.hostElement).querySelector("#title").getBoundingClientRect();v=Math.max(0,Math.min(this.titleOffset,v.height-E.height));_.K(this.hostElement).querySelector("#title").style.top=v+"px"};
_.c.onEmojiMouseOver_=function(v){_.jK(this.hostElement,"yt-emoji-hover",v.model.item)};
_.c.onEmojiTap_=function(v){this.data.command&&(v=X6y(_.P().resolve(_.jp(SQ)),this.data.command,v),_.jK(this.hostElement,"yt-navigate",v))};
_.c.emojiAriaLabel=function(v){return v.shortcuts[0]};
_.c.emojiAriaSelected=function(v,E,n){return v&&n==E?"true":"false"};
_.c.changeFocus_=function(v,E){var n=this.emoji.length;this.focusedIndex=(this.focusedIndex+v+n)%n;v=this.emoji[this.focusedIndex];if(E){var f;(f=_.K(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||f.scrollIntoView(!1);_.jK(this.hostElement,"yt-emoji-hover",v)}};
_.c.onMouseDown_=function(){this.JSC$11916_ignoreNextFocus_=!0};
_.c.onFocus_=function(){this.JSC$11916_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11916_ignoreNextFocus_=!1};
_.c.onBlur_=function(){this.showFocus=!1};
_.c.onKeyDown_=function(v){switch(v.keyCode){case 13:this.onEmojiTap_(v);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),v.preventDefault()}};
jG.prototype.onKeyDown_=jG.prototype.onKeyDown_;jG.prototype.onBlur_=jG.prototype.onBlur_;jG.prototype.onFocus_=jG.prototype.onFocus_;jG.prototype.onMouseDown_=jG.prototype.onMouseDown_;jG.prototype.onEmojiTap_=jG.prototype.onEmojiTap_;jG.prototype.titleOffsetChanged_=jG.prototype.titleOffsetChanged_;jG.prototype.emojiChanged_=jG.prototype.emojiChanged_;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],jG.prototype,"data",void 0);_.k([_.H({computed:"computeId_(data)"}),_.W("design:type",String)],jG.prototype,"id",void 0);_.k([_.H({computed:"computeEmoji_(data)"}),_.W("design:type",Array)],jG.prototype,"emoji",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],jG.prototype,"titleOffset",void 0);_.k([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.W("design:type",Object)],jG.prototype,"ariaLabel",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.W("design:type",Object)],jG.prototype,"ariaActivedescendant",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],jG.prototype,"showFocus",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],jG.prototype,"focusedIndex",void 0);_.k([_.H(),_.W("design:type",_.sp)],jG.prototype,"emojiManager",void 0);
_.k([_.On("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jG.prototype,"emojiChanged_",null);_.k([_.On("titleOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jG.prototype,"titleOffsetChanged_",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jG.prototype,"onEmojiTap_",null);
_.k([_.jk("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jG.prototype,"onMouseDown_",null);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jG.prototype,"onFocus_",null);_.k([_.jk("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jG.prototype,"onBlur_",null);
_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jG.prototype,"onKeyDown_",null);jG=_.k([_.p5({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],jG);
_.u(jG,"yt-emoji-picker-upsell-category-renderer",function(){if(oLF===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;nL6===void 0&&(nL6=document.createElement("template"));var f=nL6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);oLF=v}v=oLF;return v},{mode:2});var fHS;var xYS;var Op=function(){var v=_.g.apply(this,arguments)||this;v.scrollAction="lock";v.verticalAlign="top";return v};
_.S(Op,_.g);_.c=Op.prototype;_.c.onClick=function(v){v=_.Sk(v);v instanceof HTMLImageElement&&_.jK(this.hostElement,"yt-emoji-select",_.ro(this.emojiManager,v.id))};
_.c.openSelector=function(){this.ironOverlayBehavior.open()};
_.c.onDomChange=function(){kV1(this.ytEmojiSelectorBehavior)};
_.c.computeIsFamilySelector=function(v){var E;return(v==null?void 0:(E=v.emoji)==null?void 0:E.emojiId)==="\ud83d\udc6a"};
_.c.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var v=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];v&&v.emojiId&&(_.jK(this.hostElement,"yt-emoji-select",_.ro(this.emojiManager,v.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.hK.Object.defineProperties(Op.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n,f;return this.emojiManager&&((E=this.data)==null?0:(n=E.emoji)==null?0:(f=n.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.ro(v.emojiManager,x)}).filter(function(x){return!!x}):[]}}});
Op.prototype.onClick=Op.prototype.onClick;_.k([_.h(_.Hk),_.W("design:type",Object)],Op.prototype,"ironOverlayBehavior",void 0);_.k([_.h(Wfg),_.W("design:type",Object)],Op.prototype,"ytEmojiSelectorBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Op.prototype,"data",void 0);_.k([_.H(),_.W("design:type",_.sp)],Op.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Object)],Op.prototype,"scrollAction",void 0);_.k([_.H(),_.W("design:type",Object)],Op.prototype,"verticalAlign",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.W("design:type",Boolean)],Op.prototype,"isFamilySelector",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Op.prototype,"emojiVariants",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],Op.prototype,"onClick",null);Op=_.k([_.p5({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Op);
_.u(Op,"yt-emoji-variant-selector",function(){if(xYS===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;fHS===void 0&&(fHS=document.createElement("template"));var f=fHS;n.call(E,f.content.cloneNode(!0),v.content.firstChild);xYS=v}v=xYS;return v},{mode:2});var cbU=/:/g,yb1=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],kM=function(){var v=_.g.apply(this,arguments)||this;v.emojiVariantSelector=null;v.emojiMultiPersonSelector=null;v.identity=_.NF;v.lastAnimationTime_=0;v.animationStart_=null;v.animationEnd_=null;return v};
_.S(kM,_.g);_.c=kM.prototype;
_.c.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}}};
_.c.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.af)};
_.c.attached=function(){_.n9&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&$61(this.emojiManager)};
_.c.dataChanged=function(){var v;if((v=this.data)==null?0:v.categories){v=this.emojiManager;var E=this.getCustomEmojiIds();v.pickerCustomEmojiIds=[].concat(_.s8(NE1),_.s8(E))}};
_.c.getCustomEmojiIds=function(){var v,E=(v=this.data.categories)==null?void 0:v.find(function(y){var Q;return((Q=y.emojiPickerCategoryRenderer)==null?void 0:Q.categoryId)&&yb1.includes(y.emojiPickerCategoryRenderer.categoryId)}),n;
v=(n=this.data.categories)==null?void 0:n.find(function(y){return y.emojiPickerUpsellCategoryRenderer});
var f,x;return[E==null?void 0:(f=E.emojiPickerCategoryRenderer)==null?void 0:f.emojiIds,v==null?void 0:(x=v.emojiPickerUpsellCategoryRenderer)==null?void 0:x.emojiIds].flat().filter(function(y){return!!y})};
_.c.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.c.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.c.updateCategoriesAndPlaceholderInternal=function(v,E){var n=this;v&&E&&(this.categories=v.categories||[],this.categoryButtons=v.categoryButtons||[],this.resetPlaceholder(),this.search="",_.bz(function(){n.updateButtons_()}))};
_.c.computeId_=function(v){return v.id||""};
_.c.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(v){return v.emojiPickerCategoryRenderer&&v.emojiPickerCategoryRenderer.emojiData}):!1};
_.c.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.c.onShowEmojiVariantSelector=function(v){var E=v.detail.emojiData;E.variantIds&&E.variantIds.length&&(E.multiSelectorThumbnailRow&&E.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:E,target:v.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:E,target:v.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.c.onIronOverlayClosed=function(v){var E=Ls1(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");E&&v.composedPath&&(v.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-variant-selector"))||v.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.OL(this.hostElement,"yt-close-emoji-variant-selector",[E.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.c.onEmojiVariantSelectorMouseup=function(v){var E=v.target.firstChild;this.variantSelectorOpened&&E&&_.bz(function(){E.noCancelOnOutsideClick=!1},100)};
_.c.onEmojiVariantSelectorMousedown=function(v){v=v.target.firstChild;this.variantSelectorOpened&&v&&(v.noCancelOnOutsideClick=!1)};
_.c.onSelectCategory_=function(v){var E=this.search!="";this.search="";for(var n=_.K(this.hostElement).querySelector("#categories").children,f=0;f<n.length;f++){var x=n[f];if(x.id==v.detail.categoryId){E?(_.K(this.hostElement).querySelector("#categories").scrollTop=x.offsetTop,this.updateButtons_()):(this.animationStart_=_.K(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=x.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.c.onEmojiHover_=function(v){this.placeholder=v.detail.shortcuts?v.detail.shortcuts[0]:""};
_.c.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.c.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.c.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.c.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.c.computeSearchCategory_=function(v){v=v.replace(cbU,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();v=v.split(" ");for(var E=[],n=this.emojiManager.emojis,f=0;f<n.length;f++){var x=n[f];if(x.searchTerms)for(var y=0;y<x.searchTerms.length;y++){for(var Q=x.searchTerms[y].toLocaleLowerCase(),e=!1,F=0;F<v.length;F++)if(Q.indexOf(v[F])!=-1){e=!0;break}if(e&&(!x.isCustomEmoji||!x.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(x.emojiId))){E.push(x.emojiId);
break}}}return{categoryId:-1,emojiIds:E}};
_.c.computeSearchEmptyMessage_=function(v,E){return v&&E&&E.emojiIds&&E.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.c.computeSearching_=function(v){return this.emojiManager&&v.replace(cbU,"").length>1};
_.c.computeSkinToneHidden=function(){var v;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((v=this.data)==null||!v.hideSkinTonePicker)};
_.c.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.c.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.c.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.c.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.c.selectSkinTone_=function(v){v=Number(v.target.getAttribute("tone"));this.set("emojiManager.skinTone",v);_.OL(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[v]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.c.skinToneChanged_=function(){_.K(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var v=_.K(this.hostElement).querySelector("#dropdown-content").children,E=0;E<v.length;E++)E===this.skinTone?v[E].setAttribute("selected",""):v[E].removeAttribute("selected")};
_.c.animateScroll_=function(v){this.lastAnimationTime_||(this.lastAnimationTime_=v);v-=this.lastAnimationTime_;v<200?(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*v/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.c.searchChanged_=function(){this.updateButtons_()};
_.c.updateButtons_=function(){var v=null;if(!this.search)for(var E=_.K(this.hostElement).querySelector("#categories").scrollTop,n=_.K(this.hostElement).querySelector("#categories").children,f=0;f<n.length;f++){var x=n[f];x.offsetTop<=E&&(v=x.id)}E=_.K(this.hostElement).querySelector("#category-buttons").children;for(n=0;n<E.length;n++)f=E[n],f.active=f.id===v};
kM.prototype.searchChanged_=kM.prototype.searchChanged_;kM.prototype.skinToneChanged_=kM.prototype.skinToneChanged_;kM.prototype.onEmojiHover_=kM.prototype.onEmojiHover_;kM.prototype.onSelectCategory_=kM.prototype.onSelectCategory_;kM.prototype.onShowEmojiVariantSelector=kM.prototype.onShowEmojiVariantSelector;kM.prototype.updateCategoriesAndPlaceholder_=kM.prototype.updateCategoriesAndPlaceholder_;kM.prototype.dataChanged=kM.prototype.dataChanged;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kM.prototype,"data",void 0);_.k([_.H({value:function(){return[]}}),
_.W("design:type",Array)],kM.prototype,"categories",void 0);_.k([_.H({value:function(){return[]}}),
_.W("design:type",Array)],kM.prototype,"categoryButtons",void 0);_.k([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.W("design:type",Boolean)],kM.prototype,"disableScroll",void 0);_.k([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.W("design:type",String)],kM.prototype,"id",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],kM.prototype,"selected",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],kM.prototype,"disableIncrementalLoading",void 0);_.k([_.H(),_.W("design:type",String)],kM.prototype,"placeholder",void 0);_.k([_.H({value:""}),_.W("design:type",String)],kM.prototype,"search",void 0);_.k([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.W("design:type",Boolean)],kM.prototype,"searching",void 0);_.k([_.H({computed:"computeSearchCategory_(search)"}),_.W("design:type",Object)],kM.prototype,"searchCategory",void 0);
_.k([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.W("design:type",Object)],kM.prototype,"searchEmptyMessage",void 0);_.k([_.H({computed:"identity(emojiManager.skinTone)"}),_.W("design:type",Number)],kM.prototype,"skinTone",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],kM.prototype,"skinToneOpened",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],kM.prototype,"variantSelectorOpened",void 0);
_.k([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.W("design:type",Boolean)],kM.prototype,"skinToneHidden",void 0);_.k([_.H(),_.W("design:type",_.sp)],kM.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Object)],kM.prototype,"emojiVariantSelector",void 0);_.k([_.H(),_.W("design:type",Object)],kM.prototype,"emojiMultiPersonSelector",void 0);
_.k([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.W("design:type",Boolean)],kM.prototype,"shouldUseStickyPreferences",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kM.prototype,"dataChanged",null);_.k([_.On("data","selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kM.prototype,"updateCategoriesAndPlaceholder_",null);
_.k([_.jk("yt-show-emoji-variant-selector"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kM.prototype,"onShowEmojiVariantSelector",null);_.k([_.jk("yt-emoji-picker-select-category"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kM.prototype,"onSelectCategory_",null);_.k([_.jk("yt-emoji-hover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kM.prototype,"onEmojiHover_",null);
_.k([_.On("skinTone"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kM.prototype,"skinToneChanged_",null);_.k([_.On("search"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kM.prototype,"searchChanged_",null);kM=_.k([_.p5({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],kM);
_.u(kM,"yt-emoji-picker-renderer",function(){if(EL1===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;vLg===void 0&&(vLg=document.createElement("template"));var f=vLg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);EL1=v}v=EL1;return v},{mode:2});var Wm=function(){var v=_.g.apply(this,arguments)||this;v.emojiManager=_.af;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.selectedIndex=1;v.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return v};
_.S(Wm,_.g);_.c=Wm.prototype;_.c.handleEmojiCustomizationVisible=function(v){this.emojiPickerRenderer.selected=v;this.selectedIndex=1;v?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.c.emojiCustomizationSetChanged=function(){var v;(v=this.data)!=null&&v.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.F1(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.c.updateSaveButtonState=function(v){var E;(E=this.data)!=null&&E.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.n7("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:v}))};
_.c.emojiUrl=function(v){v=_.ro(this.emojiManager,v);if(!v)return"";var E;v=(E=v.image)==null?void 0:E.thumbnails;return _.hZ(v,24)||""};
_.c.emojiAlt=function(v){var E=_.ro(this.emojiManager,v);if(!E)return v;var n,f,x,y=(E==null?void 0:(n=E.image)==null?void 0:(f=n.accessibility)==null?void 0:(x=f.accessibilityData)==null?void 0:x.label)||"";return y?y:E.isCustomEmoji?E.shortcuts[0]:E.emojiId||v};
_.c.emojiAriaLabel=function(v){var E,n;return((E=_.ro(this.emojiManager,v))==null?void 0:(n=E.shortcuts)==null?void 0:n[0])||v};
_.c.onEmojiClick=function(v){v.model.index!==0&&(this.selectedIndex=v.model.index)};
_.c.onEmojiSelect=function(v){v=v.detail;var E,n;((E=this.data)==null?0:E.emojiCustomizationSetEntityKey)&&((n=this.emojiCustomizationSet)==null?0:n.emojiId)&&v.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.n7("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)}))};
_.c.canEditEmoji=function(v,E,n){v=v.indexOf(E);return v===n||v===0||n===0?!1:!0};
_.c.getUpdatedEmojiIdList=function(v,E,n){var f=v.indexOf(E);v=[].concat(_.s8(v));f>=0&&(v[f]=v[n]);v[n]=E;return v};
_.hK.Object.defineProperties(Wm,{template:{configurable:!0,enumerable:!0,get:function(){if(qco===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;UeP===void 0&&(UeP=document.createElement("template"));var f=UeP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qco=v}v=qco;return v}}});
Wm.prototype.onEmojiSelect=Wm.prototype.onEmojiSelect;_.k([_.h(_.rm),_.W("design:type",Object)],Wm.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Wm.prototype,"ytActionHandlerBehavior",void 0);_.k([_.Wp("yt-emoji-picker-renderer"),_.W("design:type",Object)],Wm.prototype,"emojiPickerRenderer",void 0);
_.k([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(v,E){return _.LH(v.entities,"emojiCustomizationSetEntity",E)},
observer:"emojiCustomizationSetChanged"}),_.W("design:type",Object)],Wm.prototype,"emojiCustomizationSet",void 0);_.k([_.H(),_.W("design:type",Object)],Wm.prototype,"originalEmojiSet",void 0);_.k([_.H(),_.W("design:type",_.sp)],Wm.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Object)],Wm.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Wm.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],Wm.prototype,"selectedIndex",void 0);
_.k([_.jk("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Wm.prototype,"onEmojiSelect",null);Wm=_.k([_.p5({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Wm);var p64;var QJ1;var X64;var en6;var $M=function(){var v=_.g.apply(this,arguments)||this;v.authorBadges=[];return v};
_.S($M,_.g);_.c=$M.prototype;_.c.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.c.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]]"}}}}}};
_.c.dataChanged=function(){var v=h1E(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",v)};
_.c.updateMessage=function(){var v=this.data.message,E=_.K(_.K(this.hostElement).querySelector("#message"));E.textContent="";v&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.c.shouldSupportWholeItemClick=function(){return!0};
_.c.onShowOriginalClick=function(v){v.preventDefault();this.showOriginal=!0};
_.c.computeShowBar=function(v,E,n){return v&&E||n};
_.c.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.c.computeAuthorIsOwner=function(v){return!!AXE(v.authorBadges,"owner")};
_.c.computeAuthorNameColor=function(v){var E;if(_.Z("live_chat_author_name_color_usernames")&&(v==null?0:(E=v.authorName)==null?0:E.simpleText))return _.ua9(_.jRI(v.authorName.simpleText));if(_.Z("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.ua9(_.Nu(v.authorSeedColorArgb));if(_.Z("live_chat_colored_usernames"))return"#cc0000";var n;return _.Z("live_chat_simple_color_usernames")&&(v==null?0:(n=v.authorName)==null?0:n.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Nu(v.authorUsernameColorDark):_.Nu(v.authorUsernameColorLight):""};
$M.prototype.updateMessage=$M.prototype.updateMessage;$M.prototype.dataChanged=$M.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],$M.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$M.prototype,"data",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"showOriginal",void 0);_.k([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"isDimmed",void 0);_.k([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"showBar",void 0);
_.k([_.H({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],$M.prototype,"authorBadges",void 0);_.k([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"authorIsOwner",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"inCollapsedBanner",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"inBanner",void 0);
_.k([_.H({value:_.Z("live_chat_hide_avatars"),reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"avatarHidden",void 0);_.k([_.H({computed:"computeAuthorNameColor(data)"}),_.W("design:type",String)],$M.prototype,"authorNameColor",void 0);_.k([_.H(),_.W("design:type",_.Up)],$M.prototype,"participantsManager",void 0);_.k([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.W("design:type",Object)],$M.prototype,"filledButtonOverrides",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"dataChanged",null);_.k([_.On("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"updateMessage",null);$M=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],$M);
_.u($M,"yt-live-chat-text-message-renderer",function(){if(en6===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;X64===void 0&&(X64=document.createElement("template"));var f=X64;n.call(E,f.content.cloneNode(!0),v.content.firstChild);en6=v}v=en6;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var LK=function(){var v=_.g.apply(this,arguments)||this;v.tonalButtonOverrides={type:"tonal",style:"overlay"};return v};
_.S(LK,_.g);
LK.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]]"}}}}}};
LK.prototype.shouldSupportInlineActionButtons=function(){return!0};
LK.prototype.shouldSupportWholeItemClick=function(){return!0};
_.hK.Object.defineProperties(LK.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],LK.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LK.prototype,"data",void 0);_.k([_.H(),_.W("design:type",_.Up)],LK.prototype,"participantsManager",void 0);
_.k([_.H(),_.W("design:type",Object)],LK.prototype,"tonalButtonOverrides",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.infoDialogButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],LK.prototype,"hasInfoDialogButton",null);LK=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],LK);
_.u(LK,"yt-live-chat-auto-mod-message-renderer",function(){if(QJ1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;p64===void 0&&(p64=document.createElement("template"));var f=p64;n.call(E,f.content.cloneNode(!0),v.content.firstChild);QJ1=v}v=QJ1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Fmg;var mY1;var w6l;var Gv=function(){return _.g.apply(this,arguments)||this};
_.S(Gv,_.g);_.k([_.H(),_.W("design:type",Object)],Gv.prototype,"data",void 0);Gv=_.k([_.N({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Gv);
_.u(Gv,"ytd-factoid-renderer",function(){if(w6l!==void 0)return w6l;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return w6l=v},{mode:1});var Tv=function(){return _.g.apply(this,arguments)||this};
_.S(Tv,_.g);Tv.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.k([_.H(),_.W("design:type",Object)],Tv.prototype,"data",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);Tv=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Tv);
_.u(Tv,"yt-live-chat-channel-activity-reputation-renderer",function(){if(mY1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Fmg===void 0&&(Fmg=document.createElement("template"));var f=Fmg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);mY1=v}v=mY1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var bBX;var lH1;var iJ=function(){return _.g.apply(this,arguments)||this};
_.S(iJ,_.g);iJ.prototype.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Boolean)],iJ.prototype,"menuFocused",void 0);_.k([_.H(),_.W("design:type",Object)],iJ.prototype,"data",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],iJ.prototype,"ytLiveChatItemBehavior",void 0);iJ=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],iJ);
_.u(iJ,"yt-live-chat-donation-announcement-renderer",function(){if(lH1===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;bBX===void 0&&(bBX=document.createElement("template"));var f=bBX;n.call(E,f.content.cloneNode(!0),v.content.firstChild);lH1=v}v=lH1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var sJ1;var rbi,P0l=function(){if(rbi!==void 0)return rbi;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;sJ1===void 0&&(sJ1=document.createElement("template"));var f=sJ1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return rbi=v};var zv=function(){return _.g.apply(this,arguments)||this};
_.S(zv,_.g);_.hK.Object.defineProperties(zv,{template:{configurable:!0,enumerable:!0,get:function(){return P0l()}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zv.prototype,"data",void 0);zv=_.k([_.p5({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],zv);_.u(zv,"yt-live-chat-empty-feed-view-model",function(){return P0l()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var aHo;var ZBP;var Rf=function(){return _.g.apply(this,arguments)||this};
_.S(Rf,_.g);Rf.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"}}}}}};
_.hK.Object.defineProperties(Rf.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var v,E;return{runs:[{text:(v=this.data)==null?void 0:(E=v.channelName)==null?void 0:E.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var v=[],E;if((E=this.data)==null||!E.channelBadges)return v;var n;E=_.p((n=this.data)==null?void 0:n.channelBadges);for(n=E.next();!n.done;n=E.next()){n=_.C(n.value,G0P);var f=void 0,x=void 0;if((f=n)==null?0:(x=f.badgeImage)==null?0:x.sources)f=void 0,x={liveChatAuthorBadgeRenderer:{tooltip:n.tooltip,accessibility:{accessibilityData:{label:(f=_.C(n.rendererContext,_.AF))==null?void 0:f.label}}}},n.badgeImage.sources[0].clientResource?x.liveChatAuthorBadgeRenderer.icon=
{iconType:n.badgeImage.sources[0].clientResource.imageName}:x.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:n.badgeImage.sources},v.push(x)}return v}}});
_.k([_.H(),_.W("design:type",Object)],Rf.prototype,"data",void 0);_.k([_.A("data.channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rf.prototype,"channelName",null);_.k([_.A("data.channelBadges"),_.W("design:type",Array),_.W("design:paramtypes",[])],Rf.prototype,"channelBadges",null);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);
Rf=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Rf);
_.u(Rf,"yt-live-chat-identity-view-model",function(){if(ZBP===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;aHo===void 0&&(aHo=document.createElement("template"));var f=aHo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ZBP=v}v=ZBP;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var C0X;var Mxg;var Sgw;var UY1;var td=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;v.supportsInlineActionButtons=!0;return v};
_.S(td,_.g);td.prototype.ready=function(){var v;((v=document.querySelector("yt-live-chat-app"))==null?0:v.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
td.prototype.dataChanged=function(v){var E=(0,_.gn)(_.K(this.hostElement).querySelector("#detail-text"));E.textContent="";(v==null?0:v.detailText)&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v.detailText))};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],td.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({observer:"dataChanged"}),_.W("design:type",Object)],td.prototype,"data",void 0);
_.k([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],td.prototype,"hidden",void 0);td=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],td);
_.u(td,"yt-live-chat-legacy-paid-message-renderer",function(){if(UY1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Sgw===void 0&&(Sgw=document.createElement("template"));var f=Sgw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);UY1=v}v=UY1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var qg1;var JbX;var Kmz={},Bm=function(){return _.L2.apply(this,arguments)||this};
_.S(Bm,_.L2);Bm.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bm.prototype.onLiveChatMembershipItemBehaviorClick=Bm.prototype.onLiveChatMembershipItemBehaviorClick;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Bm.prototype,"data",void 0);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Bm.prototype,"onLiveChatMembershipItemBehaviorClick",null);Bm=_.k([_.Gw()],Bm);
Kmz.YtLiveChatMembershipItemBehavior=[Bm.prototype,_.B.YtRendererBehavior];var vL=function(){var v=_.g.apply(this,arguments)||this;v.supportsInlineActionButtons=!0;v.hasPrimaryHeaderText=!1;v.showOnlyHeader=!1;v.authorBadges=[];v.modern=_.Z("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.S(vL,_.g);_.c=vL.prototype;_.c.shouldSupportInlineActionButtons=function(){return!0};
_.c.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.c.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.c.messageChanged=function(){var v=this.data.message,E=(0,_.gn)(_.K(this.hostElement).querySelector("#message"));E.textContent="";v&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.c.computeHasPrimaryHeaderText=function(v){return!(!v||!v.headerPrimaryText)};
_.c.computeShowOnlyHeader=function(v,E){return this.isMessageEmpty(v,E)};
_.c.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.c.isMessageEmpty=function(v,E){return!v||v.empty?!0:!v.message&&!v.inputField&&!E};
_.c.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.c.getInputElement=function(){return _.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.c.inputFocus=function(){var v=this.getInputElement();v&&v.focus()};
_.c.inputInsertEmoji=function(v){var E=this.getInputElement();E&&E.insertEmoji(v)};
_.c.inputMessage=function(){var v=this.getInputElement();return v&&this.data.inputField?(v.completeEmojis(),_.rW(v.liveChatRichMessageInput)):null};
_.c.onFooterButtonClick=function(){this.data.footerButton&&_.jK(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.c.shouldSupportWholeItemClick=function(){return!0};
vL.prototype.isDeletedChanged=vL.prototype.isDeletedChanged;vL.prototype.messageChanged=vL.prototype.messageChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],vL.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(Kmz.YtLiveChatMembershipItemBehavior),_.W("design:type",Object)],vL.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vL.prototype,"data",void 0);_.k([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.W("design:type",Object)],vL.prototype,"hasPrimaryHeaderText",void 0);_.k([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],vL.prototype,"showOnlyHeader",void 0);
_.k([_.H({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],vL.prototype,"authorBadges",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],vL.prototype,"modern",void 0);_.k([_.On("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vL.prototype,"messageChanged",null);_.k([_.On("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vL.prototype,"isDeletedChanged",null);
vL=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],vL);
_.u(vL,"yt-live-chat-membership-item-renderer",function(){if(JbX===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;qg1===void 0&&(qg1=document.createElement("template"));var f=qg1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);JbX=v}v=JbX;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var dY4;var IH6;var Eq=function(){return _.g.apply(this,arguments)||this};
_.S(Eq,_.g);Eq.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Eq.prototype,"data",void 0);Eq=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Eq);
_.u(Eq,"yt-live-chat-mode-change-message-renderer",function(){if(IH6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;dY4===void 0&&(dY4=document.createElement("template"));var f=dY4;n.call(E,f.content.cloneNode(!0),v.content.firstChild);IH6=v}v=IH6;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var YgP;var hno;var n4=function(){return _.g.apply(this,arguments)||this};
_.S(n4,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],n4.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],n4.prototype,"data",void 0);n4=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],n4);
_.u(n4,"yt-live-chat-moderation-message-renderer",function(){if(hno===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;YgP===void 0&&(YgP=document.createElement("template"));var f=YgP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);hno=v}v=hno;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Abg;var VxS;var o2=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework");return v};
_.S(o2,_.g);o2.prototype.onClick=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var E;_.ki.instance.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],o2.prototype,"modern",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],o2.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],o2.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],o2.prototype,"data",void 0);o2=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],o2);
_.u(o2,"yt-live-chat-offer-click-count-message-renderer",function(){if(VxS===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Abg===void 0&&(Abg=document.createElement("template"));var f=Abg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);VxS=v}v=VxS;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var DY1;var f4=function(){return _.g.apply(this,arguments)||this};
_.S(f4,_.g);_.k([_.H(),_.W("design:type",Object)],f4.prototype,"data",void 0);f4=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],f4);
_.u(f4,"yt-live-chat-placeholder-item-renderer",function(){if(DY1===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);DY1=v}v=DY1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var HB1;var gLU;var N41=new SN(7),xQ=function(){var v=_.g.apply(this,arguments)||this;v.data={};return v};
_.S(xQ,_.g);xQ.prototype.dataChanged=function(){var v;((v=this.data)==null?0:v.class)&&_.Vt(this.hostElement,this.data.class,!0);var E;((E=this.oldData)==null?0:E.class)&&_.Vt(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
xQ.prototype.computeTimestampString=function(v){return N41.format(new Date(v/1E3))};
xQ.prototype.dataChanged=xQ.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],xQ.prototype,"data",void 0);_.k([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.W("design:type",String)],xQ.prototype,"timestampString",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xQ.prototype,"dataChanged",null);xQ=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],xQ);
_.u(xQ,"yt-live-chat-server-error-message",function(){if(gLU===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;HB1===void 0&&(HB1=document.createElement("template"));var f=HB1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);gLU=v}v=gLU;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var u8S;var jJU;var cL=function(){var v=_.g.apply(this,arguments)||this;v.defaultToFilledIcon=!1;return v};
_.S(cL,_.g);cL.prototype.computeHasPrimaryColorIcon=function(v){return v==="SPARK"||v==="SPONSORSHIP_STAR"};
cL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],cL.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cL.prototype,"defaultToFilledIcon",void 0);_.k([_.H(),_.W("design:type",Object)],cL.prototype,"data",void 0);
_.k([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.W("design:type",Boolean)],cL.prototype,"hasPrimaryColorIcon",void 0);cL=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],cL);
_.u(cL,"yt-live-chat-viewer-engagement-message-renderer",function(){if(jJU===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;u8S===void 0&&(u8S=document.createElement("template"));var f=u8S;n.call(E,f.content.cloneNode(!0),v.content.firstChild);jJU=v}v=jJU;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var OB4;var yy=function(){var v=_.g.apply(this,arguments)||this;v.modernUpdate=!1;v.buttonStyle="overlay";v.buttonType="filled";return v};
_.S(yy,_.g);yy.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
yy.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yy.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yy.prototype,"modernUpdate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],yy.prototype,"buttonStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],yy.prototype,"buttonType",void 0);
yy=_.k([_.N({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],yy);
_.u(yy,"ytd-ad-hover-text-button-renderer",function(){if(OB4!==void 0)return OB4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return OB4=v},{mode:1});var khg;var p4=function(){var v=_.g.apply(this,arguments)||this;v.buttonOverrides={size:"XS"};v.modern=_.Z("web_button_rework");return v};
_.S(p4,_.g);p4.prototype.onHelpTap=function(v){this.data&&this.data.informationDialog&&(_.jK(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),v.preventDefault(),v.stopPropagation())};
_.k([_.H(),_.W("design:type",Object)],p4.prototype,"buttonOverrides",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],p4.prototype,"modern",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],p4.prototype,"data",void 0);p4=_.k([_.N({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],p4);
_.u(p4,"ytd-live-chat-purchased-product-message-renderer",function(){if(khg!==void 0)return khg;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return khg=v},{mode:1});var Wmg;var $YP;var Qy=function(){var v=_.g.apply(this,arguments)||this;v.isContainerDeleted=!1;return v};
_.S(Qy,_.g);Qy.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
Qy.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))};
Qy.prototype.isContainerDeletedChanged=Qy.prototype.isContainerDeletedChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],Qy.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qy.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Qy.prototype,"isContainerDeleted",void 0);
_.k([_.H(),_.W("design:type",String)],Qy.prototype,"deletedStateMessage",void 0);_.k([_.On("isContainerDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qy.prototype,"isContainerDeletedChanged",null);Qy=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Qy);
_.u(Qy,"ytd-sponsorships-live-chat-header-renderer",function(){if($YP!==void 0)return $YP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return $YP=v},{mode:1});var X5=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.S(X5,_.g);X5.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]]"}}}}}};
X5.prototype.onCtaButtonClick=function(){var v,E=_.C((v=this.data)==null?void 0:v.optInPrompt,_.qb);if(v=this.maybeGetButtonCommand(E)){var n;(n=_.Tl())==null||n.clickCommand(v)}};
X5.prototype.maybeGetButtonCommand=function(v){return!v||!v.command||_.C(v.command,aDo)===void 0&&_.C(v.command,PHP)===void 0?null:v.command};
X5.prototype.shouldHideOptinPrompt=function(v,E){return!v||E};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],X5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],X5.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],X5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],X5.prototype,"modern",void 0);X5=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],X5);
_.u(X5,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Wmg!==void 0)return Wmg;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Wmg=v},{mode:1});var Lm4;var eR=function(){return _.g.apply(this,arguments)||this};
_.S(eR,_.g);eR.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
eR.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))};
eR.prototype.isDeletedChanged=eR.prototype.isDeletedChanged;_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],eR.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eR.prototype,"data",void 0);_.k([_.On("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eR.prototype,"isDeletedChanged",null);eR=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],eR);
_.u(eR,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Lm4!==void 0)return Lm4;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Lm4=v},{mode:1});var F5=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return v};
_.S(F5,_.g);_.c=F5.prototype;
_.c.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"}}}};
_.c.handleLiveChatAction=function(v){_.C(v,gYU)?this.handleMarkChatItemAsDeletedAction(_.C(v,gYU)):_.C(v,HL1)&&this.handleRemoveChatItemAction(_.C(v,HL1))};
_.c.handleLiveChatActions=function(v){v.forEach(this.handleLiveChatAction,this)};
_.c.handleMarkChatItemAsDeletedAction=function(v){var E=this,n;((n=this.data)==null?0:n.items)&&this.data.items.forEach(function(f,x){var y=Object.keys(f)[0];Object.values(f)[0].id===v.targetItemId&&E.markAsDeleted("data.items",x,y,v.deletedStateMessage,v.showOriginalContentMessage)})};
_.c.handleRemoveChatItemAction=function(v){var E=this,n;((n=this.data)==null?0:n.items)&&this.data.items.forEach(function(f,x){Object.values(f)[0].id===v.targetItemId&&E.splice("data.items",x,1)})};
_.c.markAsDeleted=function(v,E,n,f,x){v=[v,E,n].join(".");this.set(v+".deletedStateMessage",f);this.set(v+".showOriginalContentMessage",x)};
_.k([_.H(),_.W("design:type",Object)],F5.prototype,"data",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],F5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],F5.prototype,"ytActionHandlerBehavior",void 0);F5=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],F5);
_.u(F5,"yt-live-chat-item-display-list-renderer",function(){if(Mxg===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;C0X===void 0&&(C0X=document.createElement("template"));var f=C0X;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Mxg=v}v=Mxg;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Ghi;var T4w,iBg=function(){if(T4w!==void 0)return T4w;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Ghi===void 0&&(Ghi=document.createElement("template"));var f=Ghi;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return T4w=v};var m8=function(){var v=_.g.apply(this,arguments)||this;v.isHeader=!1;return v};
_.S(m8,_.g);m8.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.hK.Object.defineProperties(m8,{template:{configurable:!0,enumerable:!0,get:function(){return iBg()}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],m8.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],m8.prototype,"isHeader",void 0);m8=_.k([_.p5({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],m8);_.u(m8,"yt-live-chat-item-display-renderer",function(){return iBg()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var znl,Rn6,n91,E9S;
znl={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}};Rn6={home:"eohps",search:"eosps",watch:"eowps"};_.txP=["watch","search","home"];
_.wT=function(){this.JSC$12027_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12027_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.MX("PRECONSTRUCTION_DELAY",0);this.signals_=_.qs();this.targetPage_=""};
_.wT.prototype.init=function(v,E){v=v===void 0?"":v;E=E===void 0?null:E;if(this.JSC$12027_isInitialized_)this.abort();else if(this.JSC$12027_isInitialized_=!0,v&&_.B4o(this,v),E){var n=_.Jh(this.signals_,"pcl")?0:10,f=function(){for(var x=0,y;y=_.txP[x++];)y!=v&&y!=E&&this.pendingPages_.push(y);_.v9w(this)}.bind(this);
this.signals_.parkOrScheduleJob(f,n,"pcl")}};
_.wT.prototype.abort=function(){this.fragmentJobId_&&(_.wh.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);E9S(this)};
_.B4o=function(v,E){v.JSC$12027_isInitialized_&&!v.targetPage_&&(v.targetPage_=E,n91(v,E),v.isInitialPass_=!1,n91(v,E),v.signals_.processSignal(Rn6[v.targetPage_]),E9S(v),_.v9w(v))};
_.v9w=function(v){v.pendingPages_.length&&!v.pagePreparerJobId_&&(v.pagePreparerJobId_=_.cP(_.wh,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.B4o(this,this.pendingPages_.shift())}.bind(v),v.DEFAULT_DELAY_))};
n91=function(v,E){if(E=znl[E])for(var n in E){var f=!1,x=n;n.charAt(0)=="~"&&(f=!0,x=n.substring(1));var y=E[n];y=typeof y=="object"?y:{count:y};E[n]=y;y.componentName=x;y.count>0&&(v.isInitialPass_?f||v.isSeenDuringInitialPass_[x]||(v.JSC$12027_queue_.push({componentName:x,count:1,signals:y.signals}),v.isSeenDuringInitialPass_[x]=!0,y.count--):v.JSC$12027_queue_.push(y))}};
E9S=function(v){v.JSC$12027_queue_.length=0;v.targetPage_="";v.isInitialPass_=!0;v.signals_.processSignal("eop")};
_.wT.getInstance=function(){return _.v_(_.wT)};var o9P=function(){this.signals=_.qs();this.init()};
o9P.prototype.startPreconstruction=function(){_.wT.getInstance().init(_.Sp("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
o9P.prototype.init=function(){fNw(this);window.Polymer&&o$o&&PJy();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var v=_.n1.ytcsi;if(v&&v.gt&&(v=v.gt())&&v.tick&&(v.tick.aft>0||v.tick.pbs>0)&&(_.Sp("IS_HOMEPAGE_COLD")||_.Sp("IS_RESULTS_PAGE_COLD")||_.Sp("IS_WATCH_PAGE_COLD"))){x$U(this);break a}SbA(m_G,this.onNotifications,this)}};
var fNw=function(v){var E=function(){v.signals.processSignal("dl")};
document.readyState==="complete"?(_.Kk(Error("sh"),"WARNING"),E()):_.oiE(window,"load",E)};
o9P.prototype.onNotifications=function(v){v.timer||(_.Sp("IS_HOMEPAGE_COLD")||_.Sp("IS_RESULTS_PAGE_COLD")||_.Sp("IS_WATCH_PAGE_COLD"))&&x$U(this)};
var x$U=function(v){v.signals.parkOrScheduleJob(function(){v.signals.processSignal("eocs")},10,"eor")};
new o9P;var bR,lR=function(){return _.L2.apply(this,arguments)||this};
_.S(lR,_.L2);_.c=lR.prototype;_.c.enableActiveViewMeasurement=function(v){if(this.isActiveViewEnabled(v)){var E=this.getUrlPrefixesFromCommand(v.viewableCommands);v=this.getUrlPrefixesFromCommand(v.endOfSessionCommands);bR||(bR=new T09(this.getVersion()));i$X(bR,this.hostElement);zXN(bR,this.hostElement,E,v)}};
_.c.stopActiveViewMeasurement=function(){bR&&i$X(bR,this.hostElement)};
_.c.isActiveViewEnabled=function(v){return!!v&&(this.hasAtLeastOneUrl(v.viewableCommands)||this.hasAtLeastOneUrl(v.endOfSessionCommands))};
_.c.hasAtLeastOneUrl=function(v){return!!v&&v.length>0&&v[0].loggingUrls!=null&&v[0].loggingUrls.length>0};
_.c.getVersion=function(){var v=_.MX("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(v==null?void 0:v.length)===2?v[1]:null};
_.c.getUrlPrefixesFromCommand=function(v){if(!v)return[];var E=[];v=_.p(v);for(var n=v.next();!n.done;n=v.next())if(n=n.value,n.loggingUrls){n=_.p(n.loggingUrls);for(var f=n.next();!f.done;f=n.next())f=f.value,f.baseUrl&&E.push(f.baseUrl)}return E};
lR=_.k([_.Gw()],lR);var sq=[lR.prototype];var rT=function(){return _.L2.apply(this,arguments)||this};
_.S(rT,_.L2);_.hK.Object.defineProperties(rT.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Z("enable_entity_store_from_dependency_injection")?_.Zj():_.dG()}}});
rT=_.k([_.Gw()],rT);_.PL=[QB.prototype,rT.prototype];var c94=["ytd-rich-shelf-renderer"],a2=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";v.followUpDialogPromise=null;v.followUpDialogPromiseResolve=null;v.followUpDialogPromiseReject=null;return v};
_.S(a2,_.L2);_.c=a2.prototype;_.c.dismissibleItemIsDismissedChanged_=function(v){_.Z("kevlar_fluid_dismiss")&&(v?_.jK(this.hostElement,"yt-dismissible-item-dismissed"):_.jK(this.hostElement,"yt-dismissible-item-undismissed"))};
_.c.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.c.dismissibleItemReset_=function(){var v=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 _.z2(function(E,n){v.followUpDialogPromiseResolve=E;v.followUpDialogPromiseReject=n});
_.jK(this.hostElement,"yt-enable-lockup-interaction")};
_.c.dismissibleItemOnYtServiceRequestSent_=function(v,E){E.actions&&this.dismissibleItemProcessActions(E.actions,v)};
_.c.dismissibleItemOnRequestSent=function(v){if(_.Z("web_button_rework"))for(var E=_.p(v.detail),n=E.next();!n.done;n=E.next()){var f=void 0;(n=(f=_.C(n.value,_.zn))==null?void 0:f.actions)&&this.dismissibleItemProcessActions(n,v)}};
_.c.dismissibleItemOnCommandSent=function(v,E){E&&this.dismissibleItemProcessActions(E,v)};
_.c.setAndGetDismissedContentId=function(v){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+v};
_.c.replayDismissAction=function(v){this.dismissibleItemProcessActions([v])};
_.c.dismissibleItemProcessActions=function(v,E){for(var n=0;n<v.length;n++){var f=v[n],x=void 0;((x=_.C(f,_.Tn))==null?0:x.commands)&&this.dismissibleItemProcessActions(_.C(f,_.Tn).commands,E);if(_.C(f,_.mD)){if(x=_.C(f,_.mD),!x.replaceParentSection||c94.includes(this.hostElement.nodeName.toLowerCase()))_.Z("web_see_fewer_shorts_reactive_dismissal")&&x.groupDismissal&&o9E(this,x.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(x),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.n7("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:f})),f=void 0,(f=E)==null||f.stopPropagation()}else if(_.C(f,Gjz))this.dismissibleItemHandleHideEnclosingAction_(),f=void 0,(f=E)==null||f.stopPropagation();else if(_.C(f,x9P))_.Z("web_see_fewer_shorts_reactive_dismissal")&&(f=_.C(f,x9P),x=void 0,((x=f)==null?0:x.targetGroupId)&&o9E(this,{targetGroupId:f.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.n7("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),f=void 0,(f=E)==null||f.stopPropagation();else if(_.C(f,_.zn))(f=_.C(f,_.zn).actions)&&_.LG(this.hostElement,f,this.hostElement),f=void 0,(f=E)==null||f.stopPropagation();else{var y=x=void 0;((x=_.C(f,_.Z4))==null?void 0:x.signal)!=="TELL_US_WHY"||((y=_.C(f,_.Z4))==null?0:y.targetId)&&_.Z("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),f=void 0,(f=E)==null||f.stopPropagation())}}};
_.c.dismissibleItemOnYtServiceRequestCompleted_=function(v,E){var n=this.get("feedbackResponses.0.followUpDialog",E.data);n?this.followUpDialogPromiseResolve(n):E.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(E.actions,v)};
_.c.dismissibleItemHandleReplaceEnclosingAction_=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0;var E=null;(E=_.K(this.hostElement).querySelector("#dismissed"))&&_.IS(this,function(){_.IY(E)});
_.jK(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.c.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.c.dismissibleItemHandleUndoFeedbackAction_=function(){_.jK(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.c.dismissibleItemHandleTellUsWhySignalAction_=function(){var v=this;this.followUpDialogPromise.then(function(E){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:E}})})};
a2.prototype.dismissibleItemOnYtServiceRequestCompleted_=a2.prototype.dismissibleItemOnYtServiceRequestCompleted_;a2.prototype.dismissibleItemOnCommandSent=a2.prototype.dismissibleItemOnCommandSent;a2.prototype.dismissibleItemOnRequestSent=a2.prototype.dismissibleItemOnRequestSent;a2.prototype.dismissibleItemOnYtServiceRequestSent_=a2.prototype.dismissibleItemOnYtServiceRequestSent_;a2.prototype.dismissibleItemDataChanged_=a2.prototype.dismissibleItemDataChanged_;
a2.prototype.dismissibleItemIsDismissedChanged_=a2.prototype.dismissibleItemIsDismissedChanged_;_.k([_.h(_.YM),_.W("design:type",Object)],a2.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],a2.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],a2.prototype,"isDismissed",void 0);_.k([_.H(),_.W("design:type",Object)],a2.prototype,"dismissedRenderer",void 0);
_.k([_.On("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],a2.prototype,"dismissibleItemIsDismissedChanged_",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a2.prototype,"dismissibleItemDataChanged_",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],a2.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.k([_.jk("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],a2.prototype,"dismissibleItemOnRequestSent",null);
_.k([_.jk("yt-dismissible-item-action"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Array]),_.W("design:returntype")],a2.prototype,"dismissibleItemOnCommandSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],a2.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);a2=_.k([_.Gw()],a2);_.Z7=[_.YM,_.PL,a2.prototype];var C4=function(){var v=_.L2.apply(this,arguments)||this;v.disableGridStateAware=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};v.currentGridClass="";return v};
_.S(C4,_.L2);C4.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.IS(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var v=this.gridStateAwareGetElement();_.Vt(v,"grid",!0)}};
C4.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
C4.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.K(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
C4.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var v="grid-disabled";else{v=_.eao.getInstance();var E=this.get("pageSubtype");v=E&&p$o.includes(E)?"grid-disabled":v.currentSnapState_?v.currentSnapState_.className:null}(E=this.gridStateAwareGetElement())&&v!==this.currentGridClass&&(v&&_.Vt(E,v,!0),this.currentGridClass&&_.Vt(E,this.currentGridClass,!1),this.currentGridClass=v)};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],C4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",String)],C4.prototype,"gridStateAwareSizingElementSelector",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],C4.prototype,"disableGridStateAware",void 0);C4=_.k([_.Gw()],C4);_.Mj=[C4.prototype,_.N2.YtActionHandlerBehavior];_.SR=new _.$Y("GUIDE_TOKEN");var qj;_.Uq={};qj=function(){var v=_.L2.apply(this,arguments)||this;v.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 v};
_.S(qj,_.L2);_.c=qj.prototype;_.c.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.c.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var v=_.P().resolve(_.jp(_.SR));v&&(this.guidePersistentAndVisible=v.getGuidePersistentAndVisible(),this.activeEndpoint=v.getActiveEndpoint(),this.guideOpened=v.getGuideOpened(),this.miniGuideVisible=v.getMiniGuideVisible())};
_.c.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.c.handleGuideStateAction=function(v){this.guidePersistentAndVisible=v};
_.c.handleMiniGuideStateAction=function(v){this.miniGuideVisible=v};
_.c.handleGuideOpenedAction=function(v){this.guideOpened=v};
_.c.handleActiveEndpointAction=function(v){this.activeEndpoint=v};
qj.prototype.onActiveEndpointChange=qj.prototype.onActiveEndpointChange;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],qj.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],qj.prototype,"guidePersistentAndVisible",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],qj.prototype,"miniGuideVisible",void 0);_.k([_.H(),_.W("design:type",Object)],qj.prototype,"activeEndpoint",void 0);
_.k([_.On("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qj.prototype,"onActiveEndpointChange",null);_.k([_.H(),_.W("design:type",Boolean)],qj.prototype,"guideOpened",void 0);qj=_.k([_.Gw()],qj);_.Uq.YtdGuideStateAwareBehavior=[];_.Uq.YtdGuideStateAwareBehavior.push(qj.prototype,_.N2.YtActionHandlerBehavior);var y9l=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Jz=function(){var v=_.L2.apply(this,arguments)||this;v.hoverJobId=0;v.JSC$12058_touched=!1;return v};
_.S(Jz,_.L2);_.c=Jz.prototype;_.c.created=function(){this.useExpandableTooltip=!y9l.includes(this.is)};
_.c.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.c.detached=function(){this.useExpandableTooltip=!1};
_.c.lockupOnDown=function(v){this.interactionElement&&!_.Kh(_.MQ(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.c.lockupOnUp=function(v){this.interactionElement&&!_.Kh(_.MQ(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.c.onTouchStart=function(){this.JSC$12058_touched=!0};
_.c.lockupOnMouseEnter=function(){var v=this,E=_.WG("kevlar_lockup_hover_delay",-1);this.JSC$12058_touched&&E>=0?(_.wh.cancelJob(this.hoverJobId),this.hoverJobId=_.wh.addJob(function(){v.lockupIsHovered=!0},8,E),this.JSC$12058_touched=!1):this.lockupIsHovered=!0};
_.c.lockupOnMouseLeave=function(){this.hoverJobId&&(_.wh.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.c.lockupOnPopupClosed=function(v,E){var n;((n=E.popupRenderer)==null?void 0:n.is)==="ytd-menu-popup-renderer"&&(v=E.popupRenderer.veData,E=_.lc(),v&&E&&_.Mx(E,[v]))};
_.c.lockupOnLockupRequested=function(v){var E=v.detail.videoIds[0],n;v.detail&&E===((n=this.data)==null?void 0:n.videoId)&&(v.detail.returnValue=[this.data])};
_.c.lockupOnYtServiceRequestSent=function(v,E){if(v=E.actions)for(var n=0;n<v.length;n++){var f=v[n];if(f.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&E.ajaxPromise){var x=void 0,y=(x=_.C(E.endpoint,_.Mb))==null?void 0:x.playlistId;x=void 0;f=(x=f.removedVideoId)!=null?x:"";HwS(_.dr(),f,y)}else f.action==="ACTION_REMOVE_VIDEO"&&E.ajaxPromise&&(y=void 0,f=(y=f.setVideoId)!=null?y:"",_.gxl(_.dr(),f))}};
_.c.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.c.lockupOnLockupEnabled=function(){if(!this.$){var v=_.P().resolve(_.Y_).getCurrentPage(),E=this.getParentRenderer?this.getParentRenderer():void 0;_.li(new _.yc("component not ready",this.is,this.isAttached,v==null?void 0:v.is,E==null?void 0:E.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Jz.prototype.lockupOnLockupEnabled=Jz.prototype.lockupOnLockupEnabled;Jz.prototype.lockupOnLockupDisabled=Jz.prototype.lockupOnLockupDisabled;Jz.prototype.lockupOnYtServiceRequestSent=Jz.prototype.lockupOnYtServiceRequestSent;Jz.prototype.lockupOnLockupRequested=Jz.prototype.lockupOnLockupRequested;Jz.prototype.lockupOnPopupClosed=Jz.prototype.lockupOnPopupClosed;Jz.prototype.lockupOnMouseLeave=Jz.prototype.lockupOnMouseLeave;Jz.prototype.lockupOnMouseEnter=Jz.prototype.lockupOnMouseEnter;
Jz.prototype.onTouchStart=Jz.prototype.onTouchStart;Jz.prototype.lockupOnUp=Jz.prototype.lockupOnUp;Jz.prototype.lockupOnDown=Jz.prototype.lockupOnDown;_.k([_.H(),_.W("design:type",Object)],Jz.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jz.prototype,"lockupIsHovered",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jz.prototype,"lockupTouchTriggered",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jz.prototype,"useExpandableTooltip",void 0);
_.k([_.Wp("#interaction"),_.W("design:type",Object)],Jz.prototype,"interactionElement",void 0);_.k([_.jk("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Jz.prototype,"lockupOnDown",null);_.k([_.jk("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Jz.prototype,"lockupOnUp",null);
_.k([_.jk("touchstart"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jz.prototype,"onTouchStart",null);_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jz.prototype,"lockupOnMouseEnter",null);_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jz.prototype,"lockupOnMouseLeave",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Jz.prototype,"lockupOnPopupClosed",null);_.k([_.jk("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Jz.prototype,"lockupOnLockupRequested",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Jz.prototype,"lockupOnYtServiceRequestSent",null);_.k([_.jk("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jz.prototype,"lockupOnLockupDisabled",null);
_.k([_.jk("yt-enable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jz.prototype,"lockupOnLockupEnabled",null);Jz=_.k([_.Gw()],Jz);_.K4=[Jz.prototype];_.p1i={YtdReduxBehavior:[]};_.p1i.YtdReduxBehavior.push.apply(_.p1i.YtdReduxBehavior,_.PL);var dT=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.disableNowPlaying=!1;v.disableTooltips=!1;v.useHoveredProperty=!1;v.hovered=!1;v.isThumbnailHovered_=!1;v.addBackground=_.Z("kevlar_thumbnail_bg");v.nowPlaying=!1;v.disableRounding=!1;v.size="small";return v};
_.S(dT,_.L2);_.c=dT.prototype;_.c.computeThumbnailOverlaySidePanelWidth_=function(v,E){return v-E};
_.c.computeSize=function(v,E){if(!this.disableRounding){if(!v&&!E)return"small";v=Math.max(v||0,E||0);return v>=256?"large":v>=96?"medium":"small"}};
_.c.computeFinalHoveredState_=function(v,E,n){return this.nowPlaying?!1:_.Z("kevlar_thumbnail_fluid")&&v?E:n};
_.c.computeHoverOverlays_=function(v,E){return v&&E?E:void 0};
_.c.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.c.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.c.checkMiniplayer_=function(){var v;if(((v=this.data)==null?0:v.playlistSetVideoId)&&_.Z("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{v=_.xo();var E=v.currentEndpoint;!this.disableNowPlaying&&E&&_.C(E,_.dM)&&this.data?(E=_.C(E,_.dM),this.nowPlaying=this.data.playlistId?E.playlistId===this.data.playlistId:E.videoId===this.data.videoId,this.isVideoPlaying=v==null?void 0:v.isVideoPlaying):this.nowPlaying=!1}};
dT.prototype.checkMiniplayer_=dT.prototype.checkMiniplayer_;dT.prototype.onMouseLeave_=dT.prototype.onMouseLeave_;dT.prototype.onMouseEnter_=dT.prototype.onMouseEnter_;dT.prototype.computeHoverOverlays_=dT.prototype.computeHoverOverlays_;dT.prototype.computeFinalHoveredState_=dT.prototype.computeFinalHoveredState_;dT.prototype.computeSize=dT.prototype.computeSize;dT.prototype.computeThumbnailOverlaySidePanelWidth_=dT.prototype.computeThumbnailOverlaySidePanelWidth_;
_.k([_.h(_.PL),_.W("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],dT.prototype,"height",void 0);_.k([_.H(),_.W("design:type",Boolean)],dT.prototype,"bottomSidePanel",void 0);_.k([_.H(),_.W("design:type",Number)],dT.prototype,"width",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"disableNowPlaying",void 0);
_.k([_.H({selector:_.mW}),_.W("design:type",Boolean)],dT.prototype,"miniplayerIsActive",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"disableTooltips",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"useHoveredProperty",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"hovered",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"isThumbnailHovered_",void 0);
_.k([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.W("design:type",Boolean)],dT.prototype,"finalHoveredState_",void 0);_.k([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.W("design:type",Number)],dT.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],dT.prototype,"addBackground",void 0);
_.k([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.W("design:type",Object)],dT.prototype,"hoverOverlays_",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],dT.prototype,"nowPlaying",void 0);_.k([_.H(),_.W("design:type",Boolean)],dT.prototype,"isVideoPlaying",void 0);_.k([_.H(),_.W("design:type",Object)],dT.prototype,"disableRounding",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.W("design:type",Object)],dT.prototype,"size",void 0);_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dT.prototype,"onMouseEnter_",null);_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dT.prototype,"onMouseLeave_",null);
_.k([_.On("data","disableNowPlaying","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dT.prototype,"checkMiniplayer_",null);dT=_.k([_.Gw()],dT);var Q3z=[dT.prototype];_.I2={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(v,E){return v+":"+_.xw(E)},
getPlayerListener_:function(v,E,n){v=this.getPlayerListenerKey_(v,E);E=this.playerListeners_.get(v);n&&this.playerListeners_.delete(v);return E},
savePlayerListener_:function(v,E){var n=E.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(v,E),n);return n},
listenToPlayerEvent:function(v,E,n){n=this.savePlayerListener_(E,n);v.addEventListener(E,n)},
listenToPlayerEvents:function(v,E){E.forEach(function(n,f){this.listenToPlayerEvent(v,f,n)}.bind(this))},
unlistenFromPlayerEvent:function(v,E,n){n=this.getPlayerListener_(E,n,!0);v.removeEventListener(E,n)},
unlistenFromPlayerEvents:function(v,E){E.forEach(function(n,f){this.unlistenFromPlayerEvent(v,f,n)}.bind(this))}}};
_.YQ=function(){};_.X1i=new _.$Y("PLAYER_API_TOKEN");var p1F=!1,F3s,X1F=!1,w1X;var Hi=function(v,E,n,f,x){_.QK.call(this);var y=this;this.playerId=E;this.webPlayerContextConfig=f;this.zeA=x;this.yb5=!1;this.api={};this.klL=this.w3q=null;this.uPu=new _.vA;this.hL={};this.kW9=this.uTw=this.elementId=this.e1x=this.config=null;this.to3=!1;this.h8=this.xD3=null;this.obJ={};this.uwZ=["onReady"];this.lastError=null;this.u6H=NaN;this.eaI={};this.eo9=0;this.zb=this.targetElement=v;_.BV(this,this.uPu);ecP(this);n?this.eo9=setTimeout(function(){y.loadNewVideoConfig(n)},0):f&&(F3S(this),
m$g(this))};
_.S(Hi,_.QK);Hi.prototype.getId=function(){return this.playerId};
Hi.prototype.loadNewVideoConfig=function(v){if(!this.isDisposed()){this.eo9&&(clearTimeout(this.eo9),this.eo9=0);var E=v||{};E instanceof GUz||(E=new GUz(E));this.config=E;this.setConfig(v);m$g(this);this.isReady()&&w1g(this)}};
var F3S=function(v){var E;v.webPlayerContextConfig?E=v.webPlayerContextConfig.rootElementId:E=v.config.attrs.id;v.elementId=E||v.elementId;v.elementId==="video-player"&&(v.elementId=v.playerId,v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.playerId:v.config.attrs.id=v.playerId);var n;((n=v.zb)==null?void 0:n.id)===v.elementId&&(v.elementId+="-player",v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.elementId:v.config.attrs.id=v.elementId)};
Hi.prototype.setConfig=function(v){this.e1x=v;this.config=bxg(v);F3S(this);if(!this.uTw){var E;this.uTw=lNX(this,((E=this.config.args)==null?void 0:E.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var n;if((n=this.config)==null?0:n.attrs)v=this.config.attrs,(E=v.width)&&this.zb&&(this.zb.style.width=dx(Number(E)||E,!0)),(v=v.height)&&this.zb&&(this.zb.style.height=dx(Number(v)||v,!0))};
var w1g=function(v){if(v.config&&v.config.loaded!==!0)if(v.config.loaded=!0,!v.config.args||v.config.args.autoplay!=="0"&&v.config.args.autoplay!==0&&v.config.args.autoplay!==!1){var E;v.api.loadVideoByPlayerVars((E=v.config.args)!=null?E:null)}else v.api.cueVideoByPlayerVars(v.config.args)},r9g=function(v){var E=!0,n=v.getPlayerElement();
n&&v.config&&(E=n.dataset.version===s3l(v));return E&&!!_.JM("yt.player.Application.create")},m$g=function(v){if(!v.isDisposed()&&!v.to3){var E=r9g(v);
if(E&&(v.getPlayerElement()?"html5":null)==="html5")v.kW9="html5",v.isReady()||Pfw(v);else if(aNU(v),v.kW9="html5",E&&v.h8&&v.targetElement)v.targetElement.appendChild(v.h8),Pfw(v);else{v.config&&(v.config.loaded=!0);var n=!1;v.xD3=function(){n=!0;var f=ZxP(v,"player_bootstrap_method")?_.JM("yt.player.Application.createAlternate")||_.JM("yt.player.Application.create"):_.JM("yt.player.Application.create");var x=v.config?bxg(v.config):void 0;f&&f(v.targetElement,x,v.webPlayerContextConfig,v.zeA);Pfw(v)};
v.to3=!0;E?v.xD3():(_.CG(s3l(v),v.xD3),(E=Cfz(v))&&Aty(E||""),MjU(v)&&!n&&_.Vc("yt.player.Application.create",null))}}};
Hi.prototype.getPlayerElement=function(){var v=_.Dg(document,this.elementId);!v&&this.zb&&this.zb.querySelector&&(v=this.zb.querySelector("#"+this.elementId));return v};
var Pfw=function(v){if(!v.isDisposed()){var E=v.getPlayerElement(),n=!1;E&&E.getApiInterface&&E.getApiInterface()&&(n=!0);if(n){v.to3=!1;if(!ZxP(v,"html5_remove_not_servable_check_killswitch")){var f;if((E==null?0:E.isNotServable)&&v.config&&(E==null?0:E.isNotServable((f=v.config.args)==null?void 0:f.video_id)))return}S01(v)}else v.u6H=setTimeout(function(){Pfw(v)},50)}},S01=function(v){ecP(v);
v.yb5=!0;var E=v.getPlayerElement();if(E){v.w3q=U$o(v,E,"addEventListener");v.klL=U$o(v,E,"removeEventListener");var n=E.getApiInterface();n=n.concat(E.getInternalApiInterface());for(var f=v.api,x=0;x<n.length;x++){var y=n[x];f[y]||(f[y]=U$o(v,E,y))}}for(var Q in v.hL)v.hL.hasOwnProperty(Q)&&v.w3q&&v.w3q(Q,v.hL[Q]);w1g(v);v.uTw&&v.uTw(v.api);v.uPu.publish("onReady",v.api)},U$o=function(v,E,n){var f=E[n];
return function(){var x=_.rV.apply(0,arguments);try{return v.lastError=null,f.apply(E,x)}catch(y){if(n!=="sendAbandonmentPing")throw y.params=n,v.lastError=y,x=new _.yc("PlayerProxy error in method call",{error:y,method:n,playerId:v.playerId}),x.level="WARNING",x;}}},ecP=function(v){v.yb5=!1;
if(v.klL)for(var E in v.hL)v.hL.hasOwnProperty(E)&&v.klL(E,v.hL[E]);for(var n in v.eaI)v.eaI.hasOwnProperty(n)&&clearTimeout(Number(n));v.eaI={};v.w3q=null;v.klL=null;E=v.api;for(var f in E)E.hasOwnProperty(f)&&(E[f]=null);E.addEventListener=function(x,y){v.addEventListener(x,y)};
E.removeEventListener=function(x,y){v.removeEventListener(x,y)};
E.destroy=function(){v.dispose()};
E.getLastError=function(){return v.getLastError()};
E.getPlayerType=function(){return v.getPlayerType()};
E.getCurrentVideoConfig=function(){return v.e1x};
E.loadNewVideoConfig=function(x){v.loadNewVideoConfig(x)};
E.isReady=function(){return v.isReady()}};
Hi.prototype.isReady=function(){return this.yb5};
Hi.prototype.addEventListener=function(v,E){var n=this;this.isDisposed();var f=lNX(this,E);f&&(_.L1(this.uwZ,v)||this.hL[v]||(E=q0S(this,v),this.w3q&&this.w3q(v,E)),this.uPu.subscribe(v,f),v==="onReady"&&this.isReady()&&setTimeout(function(){f(n.api)},0))};
Hi.prototype.removeEventListener=function(v,E){this.isDisposed()||(E=lNX(this,E))&&this.uPu.unsubscribe(v,E)};
var lNX=function(v,E){var n=E;if(typeof E==="string"){if(v.obJ[E])return v.obJ[E];n=function(){var f=_.rV.apply(0,arguments),x=_.JM(E);if(x)try{x.apply(_.n1,f)}catch(y){throw f=new _.yc("PlayerProxy error when executing callback",{error:y}),f.level="ERROR",f;}};
v.obJ[E]=n}return n?n:null},q0S=function(v,E){var n=function(f){var x=function(){v.isDisposed();
if(!v.isDisposed())try{v.uPu.publish(E,f!=null?f:void 0)}catch(e){var Q=new _.yc("PlayerProxy error when creating global callback",{error:e.message,event:E,playerId:v.playerId,data:f,originalStack:e.stack,componentStack:e.componentStack});Q.level="WARNING";throw Q;}};
if(ZxP(v,"web_player_publish_events_immediately"))x();else{var y=setTimeout(function(){x();_.sh.remove(v.eaI,String(y))},0);
_.sh.add(v.eaI,String(y),!0)}};
return v.hL[E]=n};
Hi.prototype.getPlayerType=function(){return this.kW9||(this.getPlayerElement()?"html5":null)};
Hi.prototype.getLastError=function(){return this.lastError};
var aNU=function(v){v.cancel();ecP(v);v.kW9=null;v.config&&(v.config.loaded=!1);var E=v.getPlayerElement();E&&(r9g(v)||!MjU(v)?v.h8=E:(E&&E.destroy&&E.destroy(),v.h8=null));v.targetElement&&_.Co(v.targetElement)};
Hi.prototype.cancel=function(){this.xD3&&_.plF(s3l(this),this.xD3);clearTimeout(this.u6H);this.to3=!1};
Hi.prototype.disposeInternal=function(){aNU(this);if(this.h8&&this.config&&this.h8.destroy)try{this.h8.destroy()}catch(E){var v=new _.yc("PlayerProxy error during disposal",{error:E});v.level="ERROR";throw v;}this.obJ=null;for(v in this.hL)this.hL.hasOwnProperty(v)&&delete this.hL[v];this.e1x=this.config=this.api=null;delete this.targetElement;delete this.zb;_.QK.prototype.disposeInternal.call(this)};
var MjU=function(v){var E,n;v=(E=v.config)==null?void 0:(n=E.args)==null?void 0:n.fflags;return!!v&&v.indexOf("player_destroy_old_version=true")!==-1},s3l=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.jsUrl:(v=v.config.assets)?v.js:""},Cfz=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.cssUrl:(v=v.config.assets)?v.css:""},ZxP=function(v,E){if(v.webPlayerContextConfig)var n=v.webPlayerContextConfig.serializedExperimentFlags;
else{var f;if((f=v.config)==null?0:f.args)n=v.config.args.fflags}return(n||"").split("&").includes(E+"=true")},bxg=function(v){for(var E={},n=_.p(Object.keys(v)),f=n.next();!f.done;f=n.next()){f=f.value;
var x=v[f];E[f]=typeof x==="object"?_.sh.clone(x):x}return E};var PfX={},r9X="player_uid_"+(Math.random()*1E9>>>0);var hz=function(v,E,n,f,x,y){E=E===void 0?document.createElement("div"):E;this.webPlayerContextConfig=v;this.container=E;this.commandResolver=n;this.apiResolver=CfA();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Wy;f||y?J9S(this):K3o(this);this.pendingPlayerResponse=f;this.pendingWatchNextResponse=x;this.pendingPlayerVars=y;d$g(this)};
hz.prototype.loadVideoWithPlayerResponse=function(v,E,n){this.loadVideo(v,E,n)};
hz.prototype.loadVideoWithPlayerVars=function(v){return this.loadVideo(void 0,void 0,v)};
hz.prototype.destroy=function(v){if(v=_.Dg(document,v))v=r9X+"_"+_.xw(v),(v=PfX[v])&&v.dispose()};
var Y0o=function(v,E){var n;_.X(function(f){if(f.nextAddress==1)return v.pendingWatchNextResponse=E,v.synchronousApi?(n=v.synchronousApi,f.jumpTo(2)):_.m(f,v.api,3);f.nextAddress!=2&&(n=f.yieldResult);INg(v,n);v.pendingWatchNextResponse&&(n.updateVideoData({raw_watch_next_response:v.pendingWatchNextResponse}),v.pendingWatchNextResponse=void 0);_.yQ(f)})},INg=function(v,E){var n;
if(!(E==null?0:(n=E.isReady)==null?0:n.call(E))){var f;v=new _.yc("playerApi is falsey",{synchronousApi:v.synchronousApi,apiResolved:v.apiResolver.resolved,playerApiUndefined:E===void 0,playerApiNull:E===null,playerApiReady:(E==null?void 0:(f=E.isReady)==null?void 0:f.call(E))===!0,playerApiMethods:E?Object.keys(E):[]});_.mb(v)}},hcS=function(v,E){if(typeof v[E]==="function")return v[E]()},A9g=function(v){var E=window,n,f=(n=E.ytplayer)==null?void 0:n.bootstrapPlayerContainer;
if((n=f==null?void 0:f.firstElementChild)&&_.A_(n,"html5-video-player")){var x,y,Q=(x=E.ytplayer)==null?void 0:(y=x.bootstrapWebPlayerContextConfig)==null?void 0:y.contextId;x=v.webPlayerContextConfig.contextId;if(Q&&Q===x){f!==v.container&&(f=!1,hcS(n,"getPlayerState")===2&&(f=!0),v.container.appendChild(n),f||hcS(n,"playVideo"));var e;if((e=E.ytplayer)==null?0:e.bootstrapPlayerResponse)v.bootstrapPlayerResponse=E.ytplayer.bootstrapPlayerResponse}}},d$g=function(v){var E,n,f,x,y;
_.X(function(Q){if(Q.nextAddress==1)return v.pageReadyOrDataAvailable?Q.jumpTo(2):_.m(Q,v.pageReadyOrDataAvailableResolver.promise,2);if(Q.nextAddress!=4)return!_.Z("kevlar_player_unified_player_loading")||Q3A()&&ecE()?Q.jumpTo(4):_.m(Q,lNE(),4);A9g(v);if(v.pendingPlayerResponse||v.pendingPlayerVars)E=s31(v.pendingPlayerResponse,v.pendingWatchNextResponse,v.pendingPlayerVars),v.pendingPlayerResponse&&v.pendingPlayerResponse===v.bootstrapPlayerResponse&&(E.loaded=!0),v.bootstrapPlayerResponse=void 0;
n=ZxE(v.container,E,v.webPlayerContextConfig);((f=E)==null?0:f.loaded)&&v.pendingWatchNextResponse?(Y0o(v,v.pendingWatchNextResponse),v.pendingPlayerResponse=void 0,v.pendingPlayerVars=void 0):Vjl(v);x=function(e){n.removeEventListener("onReady",x);v.synchronousApi=e;v.apiResolver.resolve(e)};
n.addEventListener("onReady",x);v.commandResolver!==void 0&&(y=v.commandResolver,n.addEventListener("innertubeCommand",function(e){y(e)}));
_.yQ(Q)})};
hz.prototype.loadVideo=function(v,E,n){var f=this,x,y,Q,e,F,b,l,r,a;return _.X(function(M){if(M.nextAddress==1)return f.pendingPlayerResponse=v,f.pendingWatchNextResponse=E,f.pendingPlayerVars=n,J9S(f),f.synchronousApi?(x=f.synchronousApi,M.jumpTo(2)):_.m(M,f.api,3);M.nextAddress!=2&&(x=M.yieldResult);INg(f,x);Q=new Promise(function(U){y=U});
e=function(){var U=x.getPlayerResponse();U&&(x.removeEventListener("onVideoDataChange",e),y(U))};
x.addEventListener("onVideoDataChange",e);if(f.pendingPlayerResponse||f.pendingPlayerVars)f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse?(y(f.pendingPlayerResponse),f.pendingWatchNextResponse&&Y0o(f,f.pendingWatchNextResponse)):(F=s31(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),(a=(b=f.pendingPlayerResponse)==null?void 0:(l=b.playerConfig)==null?void 0:(r=l.playbackStartConfig)==null?void 0:r.startPaused)?x.cueVideoByPlayerVars(F.args):x.loadVideoByPlayerVars(F.args)),
Vjl(f),f.bootstrapPlayerResponse=void 0;return M.return(Q)})};
var K3o=function(v){if(document.readyState==="complete"||document.readyState==="interactive")J9S(v);else{var E=function(){document.removeEventListener("DOMContentLoaded",E);J9S(v)};
document.addEventListener("DOMContentLoaded",E)}},J9S=function(v){v.pageReadyOrDataAvailable=!0;
v.pageReadyOrDataAvailableResolver.resolve()},Vjl=function(v){v.pendingPlayerResponse=void 0;
v.pendingWatchNextResponse=void 0;v.pendingPlayerVars=void 0};
_.hK.Object.defineProperties(hz.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Az=function(v){M_.call(this,v===void 0?"document_active":v);var E=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(n){E.transition("document_disposed",{event:n})});
window.addEventListener("beforeunload",function(n){E.transition("document_disposed_preventable",{event:n})});
window.addEventListener("unload",function(n){E.transition("document_disposed",{event:n});E.hasRun=new Map})};
_.S(Az,M_);
Az.prototype.runPreventableDispose=function(v,E){if(!this.hasRun.get("document_disposed_preventable")){v(E==null?void 0:E.event);var n,f;if((E==null?0:(n=E.event)==null?0:n.defaultPrevented)||(E==null?0:(f=E.event)==null?0:f.returnValue)){E.event.returnValue||(E.event.returnValue=!0);E.event.defaultPrevented||E.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")};
Az.prototype.runDispose=function(v,E){this.hasRun.get("document_disposed")?this.transition("document_active"):(v(E==null?void 0:E.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Az.prototype.runFlush=function(v,E){v(E==null?void 0:E.event);this.transition("document_active")};
Az.prototype.runActive=function(){};var Vy=function(v){M_.call(this,v===void 0?"document_visibility_unknown":v);var E=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(n){document.visibilityState==="visible"?E.transition("document_visible",{event:n}):E.transition("document_hidden",
{event:n})});
_.Z("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(n){E.transition("document_backgrounded",{event:n})}),window.addEventListener("focus",function(n){E.transition("document_foregrounded",{event:n})}))};
_.S(Vy,M_);Vy.prototype.runVisible=function(v,E){v(E==null?void 0:E.event);_.Z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Vy.prototype.runHidden=function(v,E){v(E==null?void 0:E.event);_.Z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Vy.prototype.runBackgrounded=function(v,E){v(E==null?void 0:E.event)};
Vy.prototype.runForegrounded=function(v,E){v(E==null?void 0:E.event)};var D7=function(){this.teardownLifecycle=new Az;this.visibilityLifecycle=new Vy};
D7.prototype.install=function(){var v=_.rV.apply(0,arguments),E=this;v.forEach(function(n){E.teardownLifecycle.install(n)});
v.forEach(function(n){E.visibilityLifecycle.install(n)})};var HL=function(){D7.call(this);var v={};this.install((v.document_disposed={callback:this.abortSlisAndFlush},v));_.Z("combine_ve_grafts")&&(v={},this.install((v.document_disposed={callback:this.flushInteractionLoggingAttachVes},v)));v={};this.install((v.flush_logs={callback:this.logFinalPayload},v));_.Z("web_log_cfg_cee_ks")||_.cP(_.wh,D$1)};
_.S(HL,D7);var MjI=function(){HL.loggingInstance||(HL.loggingInstance=new HL);return HL.loggingInstance};
HL.prototype.logFinalPayload=function(){if(_.Z("web_fp_via_jspb")){var v=new Y2g,E=_.lc();E&&_.ps(v,1,E);E=_.Z("jspb_sparse_encoded_pivot")?new x$([{}]):new x$;_.v5(E,380,hfF,v);veF("finalPayload",E);_.Z("web_fp_via_jspb_and_json")&&_.eQ("finalPayload",{csn:_.lc()})}else _.eQ("finalPayload",{csn:_.lc()})};
HL.prototype.abortSlisAndFlush=function(){IQz(YV);h$!=null&&h$.flush()};
HL.prototype.flushInteractionLoggingAttachVes=function(){RGo(_.Tl())};
var D$1=function(){var v=_.MX("CLIENT_EXPERIMENT_EVENTS");if(v){var E=NL1();v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,E(n)&&_.eQ("genericClientExperimentEvent",{eventType:n});delete _.ZU.CLIENT_EXPERIMENT_EVENTS}};var Hx1={};
Hx1.YtPlayerBehavior=[_.I2.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 v=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Wy;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;S0Q(function(){v.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.b$(this,"pan-down"),_.Z("kevlar_pinch_fullscreen")&&_.th().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Z("kevlar_pinch_fullscreen")&&_.th().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(v,E,n){var f=this;gW(this.useUnifiedPlayer_());if(this.mainAppPlayer_)gW(!1,"MainAppPlayer already created.");else{var x=_.Z("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container");this.mainAppPlayer_=new hz(this.getWebPlayerContextConfig_(),x,function(y){return _.WE(y,f.hostElement)},v,E,n);
this.mainAppPlayer_.api.then(function(y){f.player_=y;f.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zeX.resolve(y)})}},
loadVideoWithPlayerResponse:function(v,E){var n=this;if(this.useUnifiedPlayer_()){var f=this.watchNextData,x,y=(x=v.videoDetails)==null?void 0:x.videoId,Q,e,F;(x=(Q=this.watchNextData)==null?void 0:(e=Q.currentVideoEndpoint)==null?void 0:(F=e.watchEndpoint)==null?void 0:F.videoId)&&y!=x&&(f=void 0,_.Z("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(v,f,E):this.createMainAppPlayer_(v,f,E);this.mainAppPlayer_.api.then(function(){_.jK(n.hostElement,
"yt-player-updated")})}else this.update(x$I(v,E))},
loadVideoWithPlayerVars:function(v){var E=this;this.useUnifiedPlayer_()?(_.Z("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(v):this.createMainAppPlayer_(void 0,void 0,v),this.mainAppPlayer_.api.then(function(){_.jK(E.hostElement,"yt-player-updated")})):this.update({args:v})},
update:function(v){var E=this;if(this.useUnifiedPlayer_())gW(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(v);var n=s_X(v.args);n&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==n&&Object.assign(v.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(v).then(function(f){_.jK(E.hostElement,"yt-player-updated",_.Z("kevlar_player_updated_obsolete_player_killswitch")?
f:void 0)})}_.bi(new _.yc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.getPlayerPromise(),2);n=f.yieldResult;if(!n)throw Error("uh");v&&E.updatePlayerPlaylist_(v);_.yQ(f)})},
acquireApi_:function(v){var E=this;if(this.useUnifiedPlayer_())gW(!1,"Invalid method call in kevlar_unified_player.");else return _.wh.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(gW(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(n){E.shouldAutoplay_(v)?n.loadVideoByPlayerVars(v.args):n.cueVideoByPlayerVars(v.args)})):this.initPlayerPromise_=this.initPlayerContainer_(v),this.initPlayerPromise_},
initPlayerContainer_:function(v){var E=this;if(this.useUnifiedPlayer_())gW(!1,"Invalid method call in kevlar_unified_player.");else return gW(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.li(Error("vh")),gW(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Z("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container"),lNE().then(function(){var n=E.initPlayer_(v);E.playerResolver_.resolve(n);
return n})},
onPlayerReady_:function(v,E){this.useUnifiedPlayer_()?gW(!1,"Invalid method call in kevlar_unified_player."):(v.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zeX.resolve(v),E(v))},
maybeCallApiMethodOnElement_:function(v,E){if(typeof v[E]==="function")return v[E]()},
maybeAdoptBootstrapPlayer_:function(){var v=window,E,n=(E=v.ytplayer)==null?void 0:E.bootstrapPlayerContainer;if((E=n==null?void 0:n.firstElementChild)&&E.classList.contains("html5-video-player")){var f,x,y=(f=v.ytplayer)==null?void 0:(x=f.bootstrapWebPlayerContextConfig)==null?void 0:x.contextId;f=this.getWebPlayerContextConfig_().contextId;if(y&&y===f){n!==this.playerContainer_&&(n=!1,this.maybeCallApiMethodOnElement_(E,"getPlayerState")===2&&(n=!0),this.playerContainer_.appendChild(E),n||this.maybeCallApiMethodOnElement_(E,
"playVideo"));var Q;if((Q=v.ytplayer)==null?0:Q.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=v.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(v){var E=this;if(this.useUnifiedPlayer_())gW(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(n){E.maybeAdoptBootstrapPlayer_();var f=v?c9y(v):void 0;f&&f==E.bootstrapPlayerResponse_&&(v.loaded=!0);f=E.playerContainer_;var x=E.getWebPlayerContextConfig_();f=ZxE(f,v,x);E.player_=f;E.onPlayerReadyEvent_=E.onPlayerReady_.bind(E,E.player_,n);E.player_.addEventListener("onReady",E.onPlayerReadyEvent_);E.player_.addEventListener("innertubeCommand",
E.onPlayerInnerTubeCommand_.bind(E))})},
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(v){v.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(v){v.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var v=_.P().resolve(_.Y_).getCurrentPage();v&&v.getScrollTop()<=0?_.b$(this,"pan-down"):_.b$(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()||v.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()&&v.toggleFullscreen()})},
updatePlayerPlaylist_:function(v){var E=this,n,f,x;return _.X(function(y){if(y.nextAddress==1)return n=_.P().resolve(_.jp(_.SY)),f=!!(n&&n.playlistComponent&&n.playlistComponent.loopOn),_.m(y,E.getPlayerPromise(),2);var Q=x=y.yieldResult,e=Q.updatePlaylist,F=[];if(_.Z("kevlar_player_playlist_use_local_index")){var b,l;var r=(l=(b=v.localCurrentIndex)!=null?b:v.currentIndex)!=null?l:0}else{var a;r=(a=v.currentIndex)!=null?a:0}if(v.contents)for(b=0;b<v.contents.length;b++)if((l=v.contents[b])&&l.playlistPanelVideoRenderer)if(XsF(l)){l=
l.playlistPanelVideoRenderer;a="";l.shortBylineText&&(a=_.JC(l.shortBylineText));var M="";l.title?M=_.JC(l.title):l.unplayableText&&(M=_.JC(l.unplayableText));F.push({author:a,title:M,encrypted_id:l.videoId})}else b<r&&--r;e.call(Q,{index:r,list:v.playlistId?v.playlistId:"",loop:f,playlist_title:v.title,playlist_length:F.length,video:F,fetch:0,external_list:"1",title:v.title?v.title:"",playlist_author:v.ownerName?_.JC(v.ownerName):void 0});_.yQ(y)})},
focusOnPlayer:function(){_.IS(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var v=this.playerContainer_.querySelector(".html5-video-player");v&&(_.gT(_.P().resolve(_.ph)),v.focus())}})},
preparePlayer:function(){var v=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(E){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")E();else{var n=function(){document.removeEventListener("DOMContentLoaded",n);E()};
document.addEventListener("DOMContentLoaded",n)}})).then(function(){return lNE()}).then(function(){v.initPlayerPromise_||v.preparePlayerJobId_||(v.preparePlayerJobId_=_.cP(_.wh,function(){v.initPlayerPromise_||(v.initPlayerPromise_=v.initPlayerContainer_())}))}):_.bi(new _.yc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(v){this.useUnifiedPlayer_()?gW(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(v)||(v.args.autoplay="0")},
shouldAutoplay_:function(v){if(this.useUnifiedPlayer_())gW(!1,"Invalid method call in kevlar_unified_player.");else{var E=this.get("args.el",v);return E&&E!="detailpage"&&this.isMiniplayerActive_()||E&&(E=="sponsorshipsoffer"||E=="handlesclaiming")&&this.get("args.autoplay",v)=="0"?!1:(v=c9y(v))&&this.get("playerConfig.playbackStartConfig.startPaused",v)?!1:!0}},
isMiniplayerActive_:function(){return _.P().resolve(_.hf).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var v=this.getPlayer();if(v){var E=v.getPlayerState();_.Z("kevlar_player_check_ad_state_on_stop")&&(E=v.getPlayerState(v.getPresentingPlayerType()));E!=5&&v.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(v,E,n){n=n===void 0?!1:n;var f=this,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1)return E||(E=f.hostElement),x=f.useUnifiedPlayer_()?!!f.mainAppPlayer_:!!f.initPlayerPromise_,x?_.m(F,f.getPlayerPromise(),2):(n?v.insertBefore(E,v.firstChild):v.appendChild(E),F.return());y=F.yieldResult;Q=y.getPlayerState(y.getPresentingPlayerType());e=!1;if(Q==-1||Q==1||Q==3)e=!0;n?v.insertBefore(E,v.firstChild):v.appendChild(E);e&&y.playVideo();y.setSize(NaN,NaN);_.yQ(F)})},
watchNextDataChanged_:function(v){var E=this;v&&(this.useUnifiedPlayer_()&&_.Z("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Y0o(this.mainAppPlayer_,v):this.getPlayerPromise().then(function(n){n.updateVideoData(E.computeWatchNextPlayerVars_(v))}))},
computeWatchNextPlayerVars_:function(v){if(this.useUnifiedPlayer_()&&_.Z("kevlar_unified_player_update_watch_next_killswitch"))gW(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:v}},
maybeSendAbandonmentPing_:function(){var v=this.getPlayer();v&&v.getPlayerState()!=5&&v.getPlayerState()!=0&&v.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var v=_.MX("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(v=Object.assign({},v),v.rootElementId=this.playerId);v.serializedExperimentIds&&v.serializedExperimentFlags||_.li(Error("wh"));return v},
hasWebPlayerContextConfig_:function(){return!!_.MX("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(v){this.useUnifiedPlayer_()?gW(!1,"Invalid method call in kevlar_unified_player."):_.WE(v,this.hostElement)},
useUnifiedPlayer_:function(){var v=_.Z("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Z("kevlar_unified_player")||v}}];var g96={};g96.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(v){v=v.detail;if(v.actions.loop!=void 0||v.actions["yt-icons:loop"]!=void 0)this.loopOn=v.actions.loop||v.actions["yt-icons:loop"];if(v.actions.shuffle!=void 0||v.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=v.actions.shuffle||v.actions["yt-icons:shuffle"]},
setMenuData_:function(v){if(!v||!v.playlistButtons||v.isInfinite)return null;for(var E=v.playlistButtons.menuRenderer.topLevelButtons,n=E.length,f=0;f<n;f++)if(E[f].toggleButtonRenderer){var x=E[f].toggleButtonRenderer;x.defaultIcon.iconType=="LOOP"&&this.loopOn?x.isToggled=this.loopOn:x.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(x.isToggled=this.shuffleOn)}return v.playlistButtons}}];var New=function(v){j$.call(this,v,132);this.isDocument=v===document.documentElement};
_.S(New,j$);New.prototype.calculateScrollDelta=function(v,E,n){var f=0;v<E?f=v<E-100?-48:-8:v>E+n&&(f=v>E+n+100?48:8);return f};
New.prototype.JSC$9192_onMouseMove=function(v){this.isDocument||(v.clientX=v.event_.pageX,v.clientY=v.event_.pageY);j$.prototype.JSC$9192_onMouseMove.call(this,v)};var Nj=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.scrollElement=document.documentElement;v.JSC$12117_dragListGroup=null;v.dragScrollSupport=null;v.onDraggerCreated=function(E){var n=E.JSC$9188_dragger;n.scrollTarget_=v.scrollElement;E=E.draggerEl;n&&E.menuOpened&&n.setEnabled(!1)};
v.onDragStart=function(E){var n=E.draggerEl;E=E.currDragItem;var f=Object.assign({},E==null?void 0:E.data);f.trackingParams=void 0;n.data=f;n.style.position="absolute";n.style.width=(E==null?void 0:E.clientWidth)+"px";n.style.zIndex="2030";n.onDrag&&n.onDrag();_.Z("web_owner_document_fallback_killswitch")?(E=document.querySelector("ytd-app"))&&_.K(E).appendChild(n):(E=_.ZJ(n),(f=E.querySelector("ytd-app"))?_.K(f).appendChild(n):E.body.appendChild(n));v.dragScrollSupport=new New(v.scrollElement);v.dragScrollSupport.horizontalScrolling_=
!1;n=v.dragScrollSupport;n.constrainScroll_=!!n.margin_&&!1};
v.onDrop=function(E){v.handleDrop(E);v.dragScrollSupport&&(_.uU(v.dragScrollSupport),v.dragScrollSupport=null)};
v.onReorderableScroll=function(){if(v.JSC$12117_dragListGroup){var E=v.JSC$12117_dragListGroup;UQi(E,E.currDragItem_)}};
return v};
_.S(Nj,_.L2);Nj.prototype.detached=function(){_.u3X(this)};
_.u3X=function(v){v.JSC$12117_dragListGroup&&(_.FX(v.JSC$12117_dragListGroup,l_U,v.onDragStart),_.FX(v.JSC$12117_dragListGroup,a_P,v.onDragStart),v.JSC$12117_dragListGroup.dispose(),v.JSC$12117_dragListGroup=null);v.dragScrollSupport&&(_.uU(v.dragScrollSupport),v.dragScrollSupport=null);v.scrollElement.removeEventListener("scroll",v.onReorderableScroll)};
_.j31=function(v,E,n,f){f=f===void 0?"":f;_.u3X(v);n&&(v.scrollElement=n);v.JSC$12117_dragListGroup=new dg;v.JSC$12117_dragListGroup.hysteresisDistance_=2;Co6(v.JSC$12117_dragListGroup,E);v.JSC$12117_dragListGroup.draggerElClasses_=wL("dragging").split(" ");f&&Mk4(v.JSC$12117_dragListGroup,function(x){var y=x||document,Q=null;y.getElementsByClassName?Q=y.getElementsByClassName(f)[0]:Q=PCw("*",f,x);return Q||x});
_.v8(v.JSC$12117_dragListGroup,wpz,v.onDraggerCreated);_.v8(v.JSC$12117_dragListGroup,l_U,v.onDragStart);_.v8(v.JSC$12117_dragListGroup,a_P,v.onDrop);v.JSC$12117_dragListGroup.init();v.scrollElement.addEventListener("scroll",v.onReorderableScroll,{passive:!0})};
Nj.prototype.handleDrop=function(){};
_.hK.Object.defineProperties(Nj.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.k([_.H({value:100}),_.W("design:type",Number)],Nj.prototype,"scrollMargin",void 0);Nj=_.k([_.Gw()],Nj);_.OxS=[Nj.prototype];_.uR={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(v,E,n){var f=this.getClickTarget_(E);if(f&&this.isClickAllowed_(f)){E.preventDefault();v=(0,_.sh.unsafeClone)(v);var x=this.getContainerBoundingRect();E=this.getRelativeClickXy_(E,x);this.expandEndpointUrlMacros_(v,{NX:E[0],NY:E[1],NB:f.code});n&&this.truncateWebCommendMetadataUrl_(v);_.jK(this.hostElement,"yt-navigate",{endpoint:v})}},
getClickTarget_:function(v){if(!this.clickTargetMap)return null;v=_.MQ(v)||[];v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===_.K(this.hostElement).querySelector("#menu"))break;if(E=this.clickTargetMap.get(E.id))return E}return null},
getRelativeClickXy_:function(v,E){var n=v.detail.x,f=v.detail.y;_.Z("use_on_click_for_desktop_display_ad")&&v.clientX!=null&&v.clientY!=null&&(n=v.clientX,f=v.clientY);v=Math.round(n-E.left);E=Math.round(f-E.top);return v<0||E<0?[null,null]:[v,E]},
getContainerBoundingRect:function(){return _.K(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(v,E){for(var n=_.p(v.loggingUrls||[]),f=n.next();!f.done;f=n.next())f=f.value,f.baseUrl&&(f.baseUrl=orL(f.baseUrl,E));v.urlEndpoint&&v.urlEndpoint.url&&(v.urlEndpoint.url=orL(v.urlEndpoint.url,E));v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url&&(v.commandMetadata.webCommandMetadata.url=orL(v.commandMetadata.webCommandMetadata.url,E))},
truncateWebCommendMetadataUrl_:function(v){if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url){var E=v.commandMetadata.webCommandMetadata.url,n=E.indexOf("&pp=");if(n>0){var f=E.indexOf("&",n+1);v.commandMetadata.webCommandMetadata.url=f>n&&f<E.length?E.slice(0,n)+E.slice(f):E.slice(0,n)}}},
configureClickTargets:function(v,E,n){this.containerId=v;this.clickTargetMap=new Map;v=_.p(E);for(E=v.next();!E.done;E=v.next())if(E=E.value,E.location){var f=n.get(E.location);f&&(_.Vt(_.K(this.hostElement).querySelector("#"+f),"yt-simple-endpoint",this.isClickAllowed_(E)),this.clickTargetMap.set(f,E))}},
isClickAllowed_:function(v){return v.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.jR={};
_.jR.YtLazyListBehavior=[_.A1.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 v=(this.constructor.generatedFrom||this).observers;v||(v=[]);v.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
v}},
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 v=this.renderElementsOutsideVisibleArea_;v&&(Rwi(v,4),v.processSignal())},
deepLazyListObserver_:function(v){var E=this;if(v){var n=v.value||[];if(this.itemsPath==v.path){var f=this.nonDeferredItemCount;v=0;f>-1&&n.length>f&&(v=_.MX("REMAINING_DOVA_DEFERRED_CHUNKS",-1));v>0?(f>0&&(f=n.slice(0,f),this.setInitialItemsOnDataChanged(f)),(f=this.renderElementsOutsideVisibleArea_)?f.cancel():(f=this.renderElementsOutsideVisibleArea_=new _.DQ(2,"eocs"),_.oiE(window,"scroll",function(){return E.renderDeferredElements()})),_.Hs(f,function(){E.setInitialItemsOnDataChanged(n)}),_.Ck("REMAINING_DOVA_DEFERRED_CHUNKS",
v-1)):this.setInitialItemsOnDataChanged(n)}else if(this.itemsPath+".splices"==v.path)this.onItemsUpdated_(n);
else f="shownItems"+v.path.substr(this.itemsPath.length),this.useSignals&&f==="shownItems.length"||this.notifyPath(f,v.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(v){v&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(v),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(v){v=v.indexSplices;for(var E=0,n=v.length;E<n;E++){var f=v[E];if(f.index<this.shownCount&&(f.removed&&this.splice("shownItems",f.index,f.removed.length),f.addedCount)){var x=f.object.slice(f.index,f.index+f.addedCount);f=["shownItems",f.index,0];f.push.apply(f,x);this.splice.apply(this,f)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(v){this.cancelPendingTasks_();v||(v=[]);this.items_=v;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&&(_.Sp("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.IS(this,this.tryRenderChunk_)))},
fillRange_:function(v,E){this.canShowMore&&this.items_&&(v=this.items_.slice(v,E),v.unshift("shownItems"),this.push.apply(this,v),this.shownCount=E,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var v=this;this.canShowMore&&_.lz(this,"renderChunk",function(){v.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Sp("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.xa(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var v=this.renderElementsOutsideVisibleArea_;v&&(v.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var v=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(v-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=v;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(v){return Math.ceil(1E3/v)},
onCanShowMoreUpdated_:function(v){this.data&&this.items_!==null&&(v?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(v){!this.shouldUseTaskManager()&&this.data&&(!v&&this.canShowMore?(_.GmE(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):v&&this.partiallyRenderedItems_.has(this.items_)&&(_.Z("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var WL;_.Oq={};
WL=function(){var v=_.L2.apply(this,arguments)||this;v.atStart=!0;v.atEnd=!0;v.startIndex=0;v.endIndex=0;v.scrollCount=0;v.initialStartIndex=0;v.disableScrollEventListener=!1;v.useFloorScrolling=!1;v.isSearch=!1;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.disableWheelScroll=!1;v.centerListItems=!1;v.offset=0;v.minComponentWidth=0;v.marginWidthRight=0;v.marginWidthLeft=0;v.setButtonsStateRequested=!1;v.itemsVisibilityObserver=null;v.fullyVisibleItemsIndices=[];v.JSC$12128_onWheelScroll=function(E){if(v.isSearch&&
!v.disableWheelScroll&&_.Z("desktop_enable_dmpanel_wheel_scroll")){var n=E.shiftKey?Math.abs(E.deltaY)>Math.abs(E.deltaX)?E.deltaY:E.deltaX:E.deltaX;n!==0&&(E.preventDefault(),v.ytLazyListBehavior.fillRemainingListItems(),v.offset+=n,kQ(v),v.reposition_())}};
v.onPointerDown=function(E){k8i(v)&&(v.dragMouseStart=E.clientX,v.dragOffsetStart=v.offset,v.dragging=!0)};
v.onPointerMove=function(E){k8i(v)&&v.dragging&&(v.ytLazyListBehavior.fillRemainingListItems(),v.offset=v.dragOffsetStart-(E.clientX-v.dragMouseStart),kQ(v),v.reposition_())};
v.onPointerUp=function(){k8i(v)&&(v.dragging=!1)};
return v};
_.S(WL,_.L2);var W3U=function(v){var E=_.K(v.hostElement).querySelector("#items").children;if(!E)return 0;var n=0;v=_.p(v.fullyVisibleItemsIndices);for(var f=v.next();!f.done;f=v.next())n+=E[f.value].clientWidth;return n},k8i=function(v){return v.isSearch&&_.Z("desktop_enable_dmpanel_click_drag_scroll")};
WL.prototype.created=function(){this.cachedViewportWidth=_.MX("initialInnerWidth")||window.innerWidth;this.JSC$12128_cachedViewportHeight=_.MX("initialInnerHeight")||window.innerHeight;_.MX("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Ck("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
WL.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Z("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();$$w(this)};
WL.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Z("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var v;(v=this.itemsVisibilityObserver)==null||v.disconnect();this.itemsVisibilityObserver=null;var E;(E=this.itemsObserver)==null||E.disconnect()};
var $$w=function(v){var E=_.K(v.hostElement).querySelector("#scroll-container");if(E){if(!v.itemsVisibilityObserver){var n=window.getComputedStyle(E).marginRight;v.itemsVisibilityObserver=new IntersectionObserver(function(f){L3X(v,f)},{root:E,
rootMargin:n,threshold:.98})}if(E=_.K(v.hostElement).querySelector("#items"))v.itemsObserver=new otl(E,function(f){G81(v,f)})}},G81=function(v,E){TeS(v)&&(Array.from(E.addedNodes).filter(function(n){return n.nodeType===Node.ELEMENT_NODE}).forEach(function(n){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.observe(n)}),Array.from(E.removedNodes).filter(function(n){return n.nodeType===Node.ELEMENT_NODE}).forEach(function(n){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.unobserve(n)}))},
L3X=function(v,E){var n=new Set(v.fullyVisibleItemsIndices);
E=_.p(E);for(var f=E.next();!f.done;f=E.next()){f=f.value;var x=f.target.parentElement;x?(x=Array.from(x.children).indexOf(f.target),f.isIntersecting?n.add(x):n.has(x)&&n.delete(x)):_.li(new _.yc("Parent element not found",f.target.nodeName))}v.fullyVisibleItemsIndices=Array.from(n).sort(function(y,Q){return y-Q});
n.size===0?_.li(new _.yc("No visible entries in horizontal list")):(v.startIndex=v.fullyVisibleItemsIndices[0],v.endIndex=v.fullyVisibleItemsIndices[v.fullyVisibleItemsIndices.length-1])},TeS=function(v){v.data?v=(v=v.data)&&v.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===v.itemSizeConstraint:!1:v=!1;
return v};
_.c=WL.prototype;_.c.addScrollEventListeners=function(){var v=_.K(this.hostElement).querySelector("#scroll-container");v.style.touchAction="pan-y";v.addEventListener("wheel",this.JSC$12128_onWheelScroll);v.addEventListener("pointerdown",this.onPointerDown);v.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.c.removeScrollEventListeners=function(){var v=_.K(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.JSC$12128_onWheelScroll);v.removeEventListener("pointerdown",this.onPointerDown);v.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.c.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.IS(this,this.setStartIndex,[this.initialStartIndex])};
_.c.reposition_=function(){var v=_.MX("HTML_DIR")=="rtl"?"":"-",E=_.K(this.hostElement).querySelector("#items");E&&(E.style.transform="translateX("+v+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.c.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.IS(this,this.setButtonsState_))};
_.c.setButtonsState_=function(){this.setButtonsStateRequested=!1;var v=_.K(this.hostElement).querySelector("#items").firstElementChild;if(v){this.minComponentWidth||(this.minComponentWidth=ix1(this,v));v=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;var E=_.K(this.hostElement).querySelector("#items").clientWidth,n=this.get(this.ytLazyListBehavior.itemsPath,this);if(n){var f=Math.round(v/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+f,n.length)-1)}this.ytLazyListBehavior.canShowMore?E+this.minComponentWidth>=this.offset+v&&(this.atEnd=!1):this.atEnd=this.offset+v>=E-20?!0:!1;this.atStart=this.offset<=20}};
_.c.setStartIndex=function(v){if(!this.minComponentWidth){var E=_.K(this.hostElement).querySelector("#items").firstElementChild;if(!E)return;this.minComponentWidth=ix1(this,E)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*v;kQ(this);this.reposition_()};
_.c.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.o4();var v=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;_.Z("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ix1(this,_.K(this.hostElement).querySelector("#items").firstElementChild));v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&zc4(this);this.offset+=TeS(this)?
W3U(this):v*this.minComponentWidth;kQ(this);this.reposition_();this.scrollCount++};
_.c.prevClick_=function(){var v=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=TeS(this)?W3U(this):this.minComponentWidth*this.scrollCount-1):this.offset-=TeS(this)?W3U(this):v*this.minComponentWidth;this.centerListItems&&zc4(this);kQ(this);this.reposition_()};
_.c.onIronResize_=function(){this.resizeSupportEnabled&&_.IS(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.c.onItemsTransitionEnd_=function(v){_.Sk(v)===_.K(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.c.onChildElementFocus_=function(v){v=v.target.closest("#items > *");var E=_.K(this.hostElement).querySelector("#scroll-container");if(E.contains(v)){if(_.Z("web_horizontal_list_behavior_focus_killswitch"))if(v.offsetLeft<this.offset)this.offset=Math.abs(v.offsetLeft)<v.clientWidth?0:v.offsetLeft;else if(v.offsetLeft+v.clientWidth>this.offset+E.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.o4(),this.offset=v.offsetLeft+v.clientWidth-E.clientWidth;else return;else{var n=_.K(this.hostElement).querySelector("#items"),
f=_.MX("HTML_DIR")==="rtl",x=f?n.clientWidth-v.offsetLeft:v.offsetLeft;n=f?n.clientWidth-(v.offsetLeft+v.clientWidth):v.offsetLeft+v.clientWidth;var y=f?x>this.offset+E.clientWidth:x<this.offset,Q=f?n<this.offset:n>this.offset+E.clientWidth,e=f?y:Q;if(f?Q:y)E=f?n:x,this.offset=Math.abs(E)<v.clientWidth?0:E;else if(e)this.ytLazyListBehavior.fillRemainingListItems(),_.o4(),this.offset=(f?x:n)-E.clientWidth;else return}kQ(this);this.reposition_()}};
_.c.observeShownItems_=function(){this.reset()};
_.c.checkComponentWidthResize=function(){var v=_.K(this.hostElement).querySelector("#items").firstElementChild;v&&(v=ix1(this,v),this.centerListItems||v!==this.minComponentWidth)&&(this.minComponentWidth=v,this.offset=v*this.scrollCount,this.centerListItems&&zc4(this),kQ(this),this.reposition_())};
var ix1=function(v,E){var n=window.getComputedStyle(E).marginRight;n=Math.floor(Number(n.replace("px","")));var f=window.getComputedStyle(E).marginLeft;f=Math.floor(Number(f.replace("px","")));v.centerListItems&&!v.marginWidthRight&&(v.marginWidthRight=n,v.marginWidthLeft=f);return v.resizeSupportEnabled?E.getBoundingClientRect().width+n:E.offsetWidth+n},kQ=function(v){var E=_.K(v.hostElement).querySelector("#scroll-container").clientWidth,n=_.K(v.hostElement).querySelector("#items").clientWidth;
v.offset<0?v.offset=0:v.offset+E>=n&&(v.offset=n-E)},zc4=function(v){v.offset-=(_.K(v.hostElement).querySelector("#scroll-container").clientWidth+v.marginWidthRight-v.minComponentWidth)/2-v.marginWidthLeft};
_.hK.Object.defineProperties(WL.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var v=_.MX("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(v==-1)v=this.JSC$12128_cachedViewportHeight,v=v>1320?5:v>1020?4:v>730?3:v>430?2:1;else if(v==0)return 0;_.Ck("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",v-1);v=_.MX("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(v>-1)return v;v=this.cachedViewportWidth;v=v>1600?6:v>1400?5:v>1300?4:v>1090?5:v>870?4:v>660?3:2;_.Ck("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
v);return v},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Z("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
WL.prototype.observeShownItems_=WL.prototype.observeShownItems_;WL.prototype.onChildElementFocus_=WL.prototype.onChildElementFocus_;WL.prototype.onItemsTransitionEnd_=WL.prototype.onItemsTransitionEnd_;WL.prototype.onIronResize_=WL.prototype.onIronResize_;WL.prototype.prevClick_=WL.prototype.prevClick_;WL.prototype.nextClick_=WL.prototype.nextClick_;WL.prototype.setButtonsState_=WL.prototype.setButtonsState_;WL.prototype.requestButtonsStateUpdate_=WL.prototype.requestButtonsStateUpdate_;
WL.prototype.reposition_=WL.prototype.reposition_;WL.prototype.reset=WL.prototype.reset;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],WL.prototype,"ytLazyListBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WL.prototype,"atStart",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WL.prototype,"atEnd",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"startIndex",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"endIndex",void 0);_.k([_.H({value:6}),_.W("design:type",Number)],WL.prototype,"initialCount",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"scrollCount",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"initialStartIndex",void 0);
_.k([_.H(),_.W("design:type",Object)],WL.prototype,"disableScrollEventListener",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"supportComponentResize",void 0);_.k([_.H({value:function(){var v=this;return function(){return v.prevClick_()}}}),
_.W("design:type",Function)],WL.prototype,"boundPrevClick",void 0);_.k([_.H({value:function(){var v=this;return function(){return v.nextClick_()}}}),
_.W("design:type",Function)],WL.prototype,"boundNextClick",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"useFloorScrolling",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"isSearch",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"dragging",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"dragMouseStart",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"dragOffsetStart",void 0);
_.k([_.H(),_.W("design:type",Object)],WL.prototype,"disableWheelScroll",void 0);_.k([_.H(),_.W("design:type",Object)],WL.prototype,"centerListItems",void 0);_.k([_.jk("iron-resize"),_.On("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WL.prototype,"onIronResize_",null);_.k([_.jk("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],WL.prototype,"onItemsTransitionEnd_",null);
_.k([_.jk("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],WL.prototype,"onChildElementFocus_",null);_.k([_.On("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WL.prototype,"observeShownItems_",null);WL=_.k([_.Gw()],WL);_.Oq.YtdHorizontalListBehavior=[];_.Oq.YtdHorizontalListBehavior.push(_.ZT,_.B.YtRendererBehavior,_.jR.YtLazyListBehavior,_.Uq.YtdGuideStateAwareBehavior,WL.prototype);var q0s=["APP_STATE","PI"];var Rc6=_.jU(["about:blank"]),tjo={pushState:window.history.pushState,replaceState:window.history.replaceState};var $Q=function(v){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=v;this.internalPushState=v.pushState.bind(v);this.internalReplaceState=v.replaceState.bind(v)};
$Q.prototype.init=function(){this.initialized=!0};
$Q.prototype.pushState=function(v,E){this.initialized||this.init();this.internalPushState&&this.internalPushState(v,"",E)};
$Q.prototype.replaceState=function(v,E){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(v,"",E)};
$Q.prototype.getState=function(){return this.history&&this.history.state};var Beg=function(v){var E=function(){var n=v.apply(this,arguments)||this;n.boundHistoryPushState=!1;n.boundHistoryReplaceState=!1;n.debugInfo={};return n};
_.S(E,v);E.prototype.init=function(){var n=_.oc("IFRAME");_.qa(n,_.i_(Rc6));n.sandbox="allow-same-origin";n.style.display="none";this.iframe=n;document.body.appendChild(n);this.bindHistoryStateFunctions();v.prototype.init.call(this)};
E.prototype.bindHistoryStateFunctions=function(){var n=this,f=[],x;this.iframe&&((x=this.iframe.contentWindow)==null?0:x.history)&&(x=this.iframe.contentWindow.history)&&(f.push(x),Object.getPrototypeOf(x)&&f.push(Object.getPrototypeOf(x)));window.history&&f.push(window.history);x=window.history;Object.getPrototypeOf(x)&&f.push(Object.getPrototypeOf(x));f.push(tjo);x=function(Q){for(var e=null,F=0;F<f.length;F++){var b=f[F][Q];if(typeof b==="function"){e=b.bind(window.history);n.debugInfo[Q]=F;break}}return e};
if(!this.boundHistoryReplaceState){var y=x("replaceState");y&&(this.internalReplaceState=y,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(x=x("pushState"))&&(this.internalPushState=x,this.boundHistoryPushState=!0)};
return E}($Q),vn4=function(){return Beg.call(this,window.history)||this};
_.S(vn4,Beg);vn4.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var L4=function(v){this.browserHistory=v;this.initialized=!1};
L4.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
L4.prototype.pushState=function(v,E){this.initialized||this.init();this.browserHistory.pushState(v,E)};
L4.prototype.replaceState=function(v,E){this.initialized||this.init();this.browserHistory.replaceState(v,E)};
L4.prototype.handlePopstate=function(v){return v.state};_.Enw=function(v,E,n,f,x){this.endpoint=v;this.forward=E;this.historyEntry=n;this.JSC$26360_savedComponentState=f;this.legacyBorder=x===void 0?!1:x};var nnz=function(v,E){this.rootData=v;this.scrollTop=E};var P_=new _.$Y("PAGE_REQUEST_TOKEN"),COP=new _.$Y("FETCH_PBJ_TOKEN");_.G9=new _.$Y("EPHEMERAL_STORE_TOKEN");_.T9=function(v){this.data=Object.assign({},v);var E;(E=this.data.innertubeResponse)==null||delete E.frameworkUpdates};
_.T9.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.gd)()};
_.ne=function(v){return Object.assign({},v.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var on1=function(){this.maxSize=100;this.timeToDataCache=new Map};
on1.prototype.get=function(v){var E=this.timeToDataCache.get(v);E&&(this.timeToDataCache.delete(v),this.timeToDataCache.set(v,E));if(E&&E.rootData&&(_.Z("web_use_response_store_for_history_cache")||_.Z("mweb_use_new_history_manager"))){var n=_.P().resolve(_.G9),f=fp6(E),x=!!f;if(f){if(f.content){var y=iR(n,f.content);x&&y?E.rootData.response=_.ne(y):x=!1}f.player&&(y=iR(n,f.player),x&&y?E.rootData.playerResponse=_.ne(y):x=!1);f.reelSequence&&(n=iR(n,f.reelSequence),x&&n?E.rootData.reelWatchSequenceResponse=
_.ne(n):x=!1)}x||(this.timeToDataCache.delete(v),E=void 0)}return E};
on1.prototype.set=function(v,E){if(E.rootData&&(_.Z("web_use_response_store_for_history_cache")||_.Z("mweb_use_new_history_manager"))){var n=fp6(E),f=Object.assign({},E.rootData);n&&(n.content&&E.rootData.response&&(xH4(this,n.content,E.rootData.response),f.response=null),n.player&&E.rootData.playerResponse&&(xH4(this,n.player,E.rootData.playerResponse),f.playerResponse=null),n.reelSequence&&E.rootData.reelWatchSequenceResponse&&(xH4(this,n.reelSequence,E.rootData.reelWatchSequenceResponse),f.reelWatchSequenceResponse=
null));E=new nnz(f,E.scrollTop)}this.timeToDataCache.has(v)?this.timeToDataCache.delete(v):this.timeToDataCache.size>=this.maxSize&&(n=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(n.value));this.maxSize!==0&&this.timeToDataCache.set(v,E)};
on1.prototype.clear=function(){this.timeToDataCache.clear()};
var fp6=function(v){var E=_.P().resolve(_.jp(P_)),n;if((n=v.rootData)==null?0:n.endpoint)return E==null?void 0:nkL(E,v.rootData.endpoint);var f;_.li(new _.yc("History snapshot response data does not contain endpoint",(f=v.rootData)==null?void 0:f.url));return null},xH4=function(v,E,n){if(v.maxSize>0){var f;
(v=(f=n.responseContext)==null?void 0:f.maxAgeSeconds)&&Number(v)>0&&(f=_.P().resolve(_.G9),n=jw(n,v),f.put(E,new _.T9(n)))}};var cD1=function(v,E,n){this.endpoint=E;this.JSC$26365_savedComponentState=n===void 0?null:n;this.entryTime=v};var hcs=1;var z9=function(v){var E=function(){var n=v.apply(this,[].concat(_.s8(_.rV.apply(0,arguments))))||this;n.historyEntryTime=0;n.historySnapshotCache=n.createHistoryCache();return n};
_.S(E,v);E.prototype.createHistoryCache=function(){return new on1};
E.prototype.saveAndReplace=function(n,f,x){var y=window.location.href;var Q=Q===void 0?{}:Q;var e=(e=this.browserHistory.getState())&&e.entryTime?e.entryTime:A9X();n=this.createNewHistoryEntry(n,Q,e);this.saveSnapshot(e,f,x);this.replaceState(n,y||window.location.href)};
E.prototype.saveAndPush=function(n,f,x,y,Q){Q=Q===void 0?{}:Q;this.saveSnapshot(this.historyEntryTime,x,y);x=this.historySnapshotCache;y=this.historyEntryTime;var e=x.timeToDataCache.keys();e=_.p(e);for(var F=e.next();!F.done;F=e.next())F=F.value,F>y&&x.timeToDataCache.delete(F);f=this.createNewHistoryEntry(f,Q);this.pushState(f,n)};
E.prototype.saveSnapshot=function(n,f,x){this.historySnapshotCache.set(n,new nnz(f,x))};
E.prototype.createNewHistoryEntry=function(n,f,x){x=x===void 0?A9X():x;return new cD1(x,n,f)};
E.prototype.handlePopstate=function(n){var f=v.prototype.handlePopstate.call(this,n),x=null,y=null,Q=!1,e=null;f&&f.entryTime&&(e=this.historySnapshotCache.get(f.entryTime)||null,Q=f.entryTime>this.historyEntryTime,this.historyEntryTime=f.entryTime,x=f.endpoint,y=f.JSC$26365_savedComponentState);this.handleHistoryCacheLoad(new _.Enw(x,Q,e,y),n);return f};
E.prototype.pushState=function(n,f){Number(n==null?void 0:n.entryTime)>=0&&(this.historyEntryTime=n.entryTime);v.prototype.pushState.call(this,n,f)};
E.prototype.replaceState=function(n,f){Number(n==null?void 0:n.entryTime)>=0&&(this.historyEntryTime=n.entryTime);v.prototype.replaceState.call(this,n,f)};
E.prototype.handleHistoryCacheLoad=function(){};
return E}(L4),yDl=function(){var v=z9.call(this,new vn4)||this;
v.dispatchElement=null;v.entryIndex=0;return v};
_.S(yDl,z9);_.c=yDl.prototype;_.c.init=function(v){v=v===void 0?!0:v;z9.prototype.init.call(this);this.initialized||(v||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.c.handlePopstate=function(v){var E=null;v.state||(E="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return z9.prototype.handlePopstate.call(this,v);var n=new CustomEvent("yt-history-pop",{cancelable:!0});_.OL(this.dispatchElement,"yt-history-pop",[n,{errorMsg:E}]);_.kZ(this.dispatchElement,"yt-close-all-popups-action");if(!n.defaultPrevented){n=_.P().resolve(_.Y_);E=n.getCurrentData();var f=n.getCurrentPage();n=0;f?(f=_.OL(this.dispatchElement,"yt-get-page-offset",
[f]),f.length>0&&(n=f[0])):_.li(new _.yc("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:E?E.page:"undefined"}));E&&(E.csn=_.lc());this.saveSnapshot(this.historyEntryTime,E,n)}return z9.prototype.handlePopstate.call(this,v)};
_.c.handleHistoryCacheLoad=function(v,E){v.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.p(_.kZ(this.dispatchElement,"yt-history-will-navigate",[E])).next().value||_.OL(this.dispatchElement,"yt-history-load",[E,v]))};
_.c.pushState=function(v,E){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var n=new _.yc("history.pushState is not a function",this.getDebugString());_.mb(n)}z9.prototype.pushState.call(this,v,E)};
_.c.replaceState=function(v,E){if(!this.browserHistory.boundHistoryReplaceState){var n=new _.yc("history.replaceState is not a function",this.getDebugString());_.mb(n)}z9.prototype.replaceState.call(this,v,E)};
_.c.saveAndPush=function(v,E,n,f,x){x=x===void 0?{}:x;n&&(n.csn=_.lc());z9.prototype.saveAndPush.call(this,v,E,n,f,x)};
_.c.getDebugString=function(){var v=[];this.initialized&&v.push("i");this.browserHistory.boundHistoryReplaceState&&v.push("bhr");this.browserHistory.boundHistoryPushState&&v.push("bhs");"replaceState"in this.browserHistory.debugInfo&&v.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&v.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&v.push("ei:"+String(this.entryIndex));return v.join(",")};
_.R2=function(v,E){v.init(!0);var n=v.browserHistory.getState();v.replaceState(n,uG(E))};
yDl.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.tz=new _.$Y("DESKTOP_HISTORY_MANAGER_TOKEN");var pwF=[10,20,30,40,50,60],BL=function(){this.currentPartitionIndex=0},QtS=function(v){ug4({mainAppWeb:_.Pp(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Xwo=function(v){ug4({mainAppWeb:_.Pp(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},eEi=function(v){return v.currentPartitionIndex>=0&&v.currentPartitionIndex<pwF.length?pwF[v.currentPartitionIndex]:-1},F7i=function(v){return v.currentPartitionIndex>0&&v.currentPartitionIndex-1<pwF.length?pwF[v.currentPartitionIndex-1]:-1};
BL.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var v=F7i(this);v>0&&Xwo(v);v=eEi(this);v>0&&QtS(v);mHz(this)}};
var mHz=function(v){var E=eEi(v);if(E>0){var n=F7i(v);n<0&&(n=0);v.intervalId=_.wh.addJob(function(){var f=F7i(v);f>0&&Xwo(f);f=eEi(v);f>0&&QtS(f);mHz(v)},3,(E-n)*6E4);
v.currentPartitionIndex+=1}else v.currentPartitionIndex=-1};var wwg=function(){this.skipNextNavigation=!1},bSg=function(v,E,n){if(!E)return!1;
if(v.skipNextNavigation)return v.skipNextNavigation=!1;if(_.C(n,_.Us))return!1;var f,x,y;if((f=_.C(n,_.ix))==null?0:(x=f.browseEndpointContextSupportedConfigs)==null?0:(y=x.browseEndpointContextMainConfig)==null?0:y.skipConfirmation)return!1;var Q;return((Q=_.C(E.commandMetadata,_.Dl))==null?void 0:Q.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
wwg.prototype.showConfirmationDialog=function(v,E){this.navigateParams=E;this.customConfirmationCommand?_.P().resolve(_.OO).resolveCommand(this.customConfirmationCommand):(E={openPopupAction:{popup:{confirmDialogRenderer:{title:_.qD(_.tQ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.qD(_.tQ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.qD(_.tQ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.qD(_.tQ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.qw.getInstance().triggerAction("yt-open-popup-action",E,v))};
wwg.prototype.cancelPendingNavigation=function(){var v;((v=this.navigateParams)==null?void 0:v.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var lpw=function(){},rDU=function(v,E,n,f,x,y,Q){n=n===void 0?{}:n;
Q=Q===void 0?{}:Q;var e=_.TB.instance,F,b=(F=_.C(E,_.Us))==null?void 0:F.url;return b?hWs(e,b,n,window.location.href,function(l,r){stX(v,l,r,!1,!0,n,y,f)},function(){return!1}):DR(e,E,n,window.location.href,Rb(E),function(l,r){stX(v,l,r,!1,!0,n,y,f)},x,Q)},stX=function(v,E,n,f,x,y,Q,e){if(!v.JSC$12186_chunkHandler)if(n.page==="watch")if(x||f){if(_.Z("kevlar_continue_playback_without_player_response")){var F;
var b=(F=_.C(e,_.dM))==null?void 0:F.videoId}v.JSC$12186_chunkHandler=new ftU(_.Aq,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:f,previousVideoId:b},tempData:y},Q)}else v.JSC$12186_chunkHandler=new Bi1(_.Aq);else n.page==="shorts"&&x&&!f?v.JSC$12186_chunkHandler=new oFU(_.Aq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:y},Q):v.JSC$12186_chunkHandler=new vF4(Q);v.JSC$12186_chunkHandler.processChunk({endpoint:E,data:n});return v.JSC$12186_chunkHandler.aD.promise},
PhP=function(v,E,n,f,x){(n=_.HXw(n))&&stX(v,E,n,!1,!0,f,void 0,x)};var apX=function(){this.pendingNavigationPromise=null};
_.c=apX.prototype;_.c.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.c.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.c.addEventListener=function(){throw Error("xh");};
_.c.dispatchEvent=function(){throw Error("xh");};
_.c.removeEventListener=function(){throw Error("xh");};var ZSS=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],vY=function(){_.mP.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Chz(this)};
_.S(vY,_.mP);vY.prototype.verifyUser=function(){var v=Chz(this),E=v.logout;if(!v.sessionChange)return!0;this.dispatchEvent("ytsessionchange");E&&this.dispatchEvent("ytuserinvalid");return!1};
var Chz=function(v){var E=ZSS.map(function(x){var y;return(y=_.nE.get(x))!=null?y:""}),n=E.some(function(x,y){return v.sessionCookies&&v.sessionCookies[y]!==""&&x===""}),f=E.some(function(x,y){return v.sessionCookies&&v.sessionCookies[y]!==x});
v.sessionCookies=E;return{logout:n,sessionChange:f}};
vY.prototype.clearTimeout=function(){this.scheduledJobId&&(_.wh.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var NeX=new _.$Y("POSTMESSAGE_TUNNEL_TOKEN");var D$L=["/parent_tools","/file_download","/artist_roster"],Oxs=[BLU,vw4,EwS,owP,nw1,t91,fzF,xi4];var M4g=new _.$Y("APP_ROOT");var E$=new _.$Y("NAVIGATION_CONFIRMATION_SERVICE");var SRl="/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(" "),UH4=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
ni=function(v,E){this.pendingNavigationPromise=null;this.JSC$12204_clientRoot=v;this.historyManager=E;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 lpw;this.debugString=v.is;v={"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};_.Jo(_.qw.getInstance(),v,this.JSC$12204_clientRoot)},IpF,YR1,hEg,ADF,dHP;
_.S(ni,apX);ni.prototype.reload=function(){_.mo(window.location.href)};
var u4S=function(v){v.currentEndpoint&&_.C(v.currentEndpoint,_.By)?v.reload():v.currentEndpoint&&v.navigate(v.currentEndpoint,!0,void 0,{disableCache:!0})};
ni.prototype.navigate=function(v,E,n,f,x,y,Q,e){E=E===void 0?!1:E;n=n===void 0?{}:n;f=f===void 0?{}:f;var F=_.P().resolve(E$),b;if(!Q&&bSg(F,(b=this.currentEndpoint)!=null?b:void 0,v))return F.showConfirmationDialog(this.JSC$12204_clientRoot.parentElement,{endpoint:v,reload:E,params:n,tempData:f,requestType:x,createScreenConfig:y}),!1;var l=_.qs();_.Jh(l,"eocs")||l.parkOrScheduleJob(function(){l.processSignal("eocs")},10,"eor");
Q=Rb(v);F=f.autonav==="1";b=_.lc();vY.instance||(vY.instance=new vY);var r=vY.instance.verifyUser(),a;if(_.Z("enable_dark_theme_only_on_shorts")){var M=document.documentElement.hasAttribute("dark"),U=_.bo(!0)==="USER_INTERFACE_THEME_DARK";if(Q==="shorts"){if(!M)if(_.Z("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var d;_.mo((d=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:d.url,void 0,void 0,window.top)}}else{var Y;_.mo(_.AM((Y=_.C(v==null?
void 0:v.commandMetadata,_.Dl))==null?void 0:Y.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Z("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!M){var V;_.mo(_.AM((V=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:V.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(U!==M){var O;_.mo(_.AM((O=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:O.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Q==="watch"){if(qR1(_.P().resolve(_.hf),
v)&&(r||_.Z("fix_miniplayer_navigation_killswitch")))return!1;_.Z("block_all_player_prefetch_requests")||(a=gFz(_.v_(_.iH),v,F))}else{var T,L=(T=_.C(this.currentEndpoint,_.dM))==null?void 0:T.videoId;L&&_.wr.getInstance().then(function($X){$X&&$X.set("yt-miniplayer-shown-video-id",L)})}a&&(n.frags=a.missingFragments_.join(","));
d=null;var xX;Y=(xX=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:xX.ignoreNavigation;if(!Y)if(_.Z("kevlar_command_url")){var t;d=(t=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:t.url}else d=_.WGG(v,n);if(d&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&d==this.lastNavigationUrl)return _.XD({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Qw(Zl(),"CANCELLED")}d&&(this.lastNavigationUrl=d);lvQ();_.Ck("IS_HOMEPAGE_COLD",
!1);_.Ck("IS_RESULTS_PAGE_COLD",!1);_.Ck("IS_WATCH_PAGE_COLD",!1);v.loggingUrls&&v.loggingUrls.forEach(function($X){$X.baseUrl&&_.SD($X.baseUrl)});
_.L3E(v,y?y.layer:0)&&_.Z("kevlar_flush_logs_on_away_navigation")&&_.Fu();if(k8F(v))return!1;CVU(Q,x);if(!d)return Y||_.li(new _.yc("Can't construct url for endpoint",v)),_.Qw(Zl(),"FAILURE"),!1;_.Vj1();xX=v&&_.C(v,_.ix)&&_.C(v,_.ix).browseId.startsWith("UC");n=(t=_.Z("enable_dark_theme_only_on_shorts")&&Q==="shorts"?!1:_.lo()&&document.documentElement.hasAttribute("dark")!==_.wn())?{themeRefresh:1}:{};t&&!_.fE()&&_.bo()==="USER_INTERFACE_THEME_DARK"&&(n.theme="dark");xX=t||JDo(d)&&!xX&&!_.Z("kevlar_disable_url_allowlist");
r||(xX=!0);if(xX||_.MX("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var QE;var MF=(QE=window.top)==null?void 0:QE.location.href}catch($X){var K1;MF=(K1=$X)==null?void 0:K1.message}_.li(new _.yc("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:MF}))}v=_.Z("kevlar_redirect_on_window_killswitch")?window.top:window;FJ(d);_.mo(_.AM(d,n),void 0,void 0,v);_.Qw(Zl(),"ABORTED");return!1}_.Z("kevlar_early_popup_close")&&_.OL(this.JSC$12204_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12186_chunkHandler=void 0;var JG;MF=Rb((JG=this.currentEndpoint)!=null?JG:void 0);(JG=Q==="shorts"&&MF==="shorts")||_.s9$();_.qX(x_$)("nr",void 0);F&&_.XD({webInfo:{navigationReason:"an"}});v.clickTrackingParams&&(f.itct=v.clickTrackingParams,f.csn=b);Z4E(f);f.endpoint=JSON.stringify(v);_.Z("enable_unknown_lact_fix_on_html5")&&(_.P().resolve(_.ph),f.lact=_.gh());_.sh.isEmpty(f)||_.AQ(d,f);!_.Z("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(y=Object.assign({},{layer:0},y,{parentLayer:3}));this.pendingNavigationPromise=y=rDU(this.pageFetcher,v,f,this.currentEndpoint,this.JSC$12204_isNetworkPromiseStale.bind(this),y,e);y=y.then(this.handleNavigateSuccess.bind(this,y,v,a,f),this.handleNavigateFail.bind(this,y,v));_.xo().navigationFinishPromise=y;E={endpoint:v,pageType:Q,url:uG(d),reload:!!E,noProgressBar:_.Z("web_disable_page_navigation_progress")||JG};x&&(E.type=x);this.fireEvent("yt-navigate-start",E);a&&
PhP(this.pageFetcher,v,a,f,this.currentEndpoint);return!0};
ni.prototype.JSC$12204_isNetworkPromiseStale=function(v){return v!=this.pendingNavigationPromise};
var K7i=function(v,E,n,f,x){var y=Rb(E);E={endpoint:E,pageType:y};x&&(E.errorMessage=x);_.li(n);E.navigationDoneMs=_.FD("nd");E.navigationErrorReason=f;v.fireEvent("yt-navigate-error",E)};
ni.prototype.handleNavigateFail=function(v,E,n){var f=void 0;n instanceof _.Hj&&(f=n,OR9(n));if(this.JSC$12204_isNetworkPromiseStale(v))return _.nR(f);_.Qw(Zl(),"FAILURE");K7i(this,E,n,"101");return _.nR(n)};
ni.prototype.handleNavigateSuccess=function(v,E,n,f,x){if(this.JSC$12204_isNetworkPromiseStale(v))return _.Gn();this.pendingNavigationPromise=null;if(!x)return E=new _.yc("Missing data in response for navigation endpoint",E),_.nR(E);if(x.reload)return window.location.reload(!0),_.Gn();n&&(v={},_.sh.extend(v,_.HXw(n),x),x=v);var y,Q;n=(y=x)==null?void 0:(Q=y.timing)==null?void 0:Q.responseStart;n!=null&&_.FD("srt",n);_.FD("pdc");var e,F;y=(e=x)==null?void 0:(F=e.timing)==null?void 0:F.info;y!=null&&
(e=_.qX(_.Q9s)(y),_.XD(e));_.Qw(Zl(),"SUCCESS");dHP(this,E,x,1,f);return _.Gn()};
var JDo=function(v){var E=v;_.Z("kevlar_no_redirect_to_classic_2_ks")||(E=(new _.IT(v)).getPath());if(E==="/"||E==="/red")return!1;var n=!0;SRl.forEach(function(f){v.indexOf(f)===0&&(n=!1)});
UH4.forEach(function(f){var x=f.url;_.Z(f.expFlag)&&v.indexOf(x)===0&&(n=!1)});
return n};
ni.prototype.publishPageData=function(v){this.fireEvent("yt-page-data-fetched",{pageData:v})};
IpF=function(v,E,n,f,x,y){var Q=null;E.page!=="watch"||f?E.filler||_.OL(v.JSC$12204_clientRoot,"yt-stop-old-player",[E]):Q=stX(v.pageFetcher,x,E,n,!1,y,void 0,v.currentEndpoint);if(Q)return Q.then(v.publishPageData.bind(v,E));v.publishPageData(E);return _.Gn()};
YR1=function(v,E,n){var f=null;if(!n)return f=new _.yc("Empty data",v.debugString,E);var x=n.response;if(!x)return f;var y={endpointType:Rb(E)||"unknown"};x.responseContext?(x=x.responseContext.errors)&&(f=new _.yc("Errors in response context",v.debugString,E,x,y)):f=x.error||x.errorMetadata?new _.yc("Errors in response",v.debugString,E,x.error,x.errorMetadata,y):new _.yc("responseContext missing",v.debugString,E,Object.keys(x).sort().join(","),y);var Q,e,F,b;if(v=n==null?void 0:(Q=n.response)==null?
void 0:(e=Q.responseContext)==null?void 0:(F=e.webResponseContextExtensionData)==null?void 0:(b=F.webResponseContextDebugData)==null?void 0:b.debugErrorMessages)for(Q=0;Q<v.length;Q++);return f};
hEg=function(v){var E,n,f,x;return v==null?void 0:(E=v.response)==null?void 0:(n=E.responseContext)==null?void 0:(f=n.errors)==null?void 0:(x=f.error)==null?void 0:x["0"]};
ADF=function(v,E){var n;if(n=E.url&&!E.url.startsWith("/clip"))n=E.url,n=!_.Z("webfe_parse_debug_param_in_resolveurl_service")&&v.searchDebugUrlMatcher.test(n)||Gqy(n)?!0:!1;if(n)Gqy(E.url)&&_.hM(window.location.href).themeRefresh?(E=_.VT(E.url,"themeRefresh"),_.R2(v.historyManager,E)):E.url&&!INX(E.url)&&_.R2(v.historyManager,E.url);else if(E.endpoint){var f,x,y;(n=(f=E.endpoint)==null?void 0:(x=f.commandMetadata)==null?void 0:(y=x.webCommandMetadata)==null?void 0:y.url)&&!INX(n)&&_.R2(v.historyManager,
n);n&&E.url&&n!=E.url&&!E.url.match("playnext=1")&&new _.yc("Response url mismatch in response data",v.debugString,n,E.url)}};
_.V4i=function(v,E,n,f,x,y,Q,e){y=y===void 0?!1:y;var F=_.P().resolve(E$),b;if(!e&&bSg(F,(b=v.currentEndpoint)!=null?b:void 0,E))return F.showConfirmationDialog(v.JSC$12204_clientRoot.parentElement,{endpoint:E,data:n,navigationType:f,tempData:x,isMiniplayer:y,isForwardHistoryNavigation:Q==null?void 0:Q.forward}),_.Gn();v.pageFetcher.JSC$12186_chunkHandler=void 0;return dHP(v,E,n,f,x,y)};
dHP=function(v,E,n,f,x,y){y=y===void 0?!1:y;v.isMiniplayerExpansion=y;var Q=f===2;v.currentEndpoint=E;v.numNavigations++;v.numNavigations&&(pLE.navigationCount=v.numNavigations);_.Ck("NUM_NAV",v.numNavigations);var e=YR1(v,E,n);if(e)return K7i(v,E,e,"102",hEg(n)),_.nR(e);var F,b,l,r;e=n.rootVe||(n==null?void 0:(F=n.response)==null?void 0:(b=F.responseContext)==null?void 0:(l=b.webResponseContextExtensionData)==null?void 0:(r=l.ytConfigData)==null?void 0:r.rootVisualElementType);!Q&&n&&ADF(v,n);var a,
M;F=n==null?void 0:(a=n.response)==null?void 0:(M=a.responseContext)==null?void 0:M.maxAgeSeconds;if(!Q&&!isNaN(F)){var U;_.Z("kevlar_use_response_ttl_to_invalidate_cache")?U=(0,_.gd)()+1E3*F:_.Z("kevlar_always_invalidate_cache")&&(U=0);isNaN(U)||(n.expirationTime=U)}_.Z("html5_enable_ssap_entity_id")&&Q&&n.playerResponse&&(n.playerResponse.cacheMetadata={isCacheHit:!0});_.v_(_.iH).prefetchCache_.clear();Q||n.page!=="watch"||n.type!=="reduced"&&f!==1?f=IpF(v,n,Q,!!y,E,x):(v.publishPageData(n),f=_.Gn());
x=f.then(function(){var d=Rb(E);d={endpoint:E,pageType:d,fromHistory:Q,response:n};d.navigationDoneMs=_.FD("nd");v.fireEvent("yt-navigate-finish",d)});
n.csn&&e&&n.clientSideGrafts&&f.then(v.attachClientSideGrafts.bind(v,n,_.bc()));return x};
_.c=ni.prototype;_.c.attachClientSideGrafts=function(v,E){v.clientSideGrafts&&E&&v.clientSideGrafts.forEach(function(n){if(E&&n){var f=_.tx(n);_.Z("combine_ve_grafts")?_.Tl().graftServerVe(n,E):_.aQ(v.csn,E,f)}})};
_.c.handleSignalActionHistoryBack=function(){window.history.back()};
_.c.handleSignalActionCloseWindow=function(){window.close()};
_.c.handleSignalActionReloadPage=function(){this.reload()};
_.c.handleSignalActionSoftReloadPage=function(){u4S(this)};
_.c.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.c.fireEvent=function(v,E){v=new CustomEvent(v,{bubbles:!0,cancelable:!1,composed:!0,detail:E});this.dispatchEvent(v)};
_.c.addEventListener=function(v,E){this.JSC$12204_clientRoot.addEventListener(v,E)};
_.c.dispatchEvent=function(v){return this.JSC$12204_clientRoot.dispatchEvent(v)};
_.c.removeEventListener=function(v,E){this.JSC$12204_clientRoot.removeEventListener(v,E)};
ni[Wl]=[M4g,_.tz];_.kOF=new Qk("browse","h8y2qb");_.WJX=new Qk("search","JzFVk");_.$4F=new Qk("shorts","xwEKAe");_.LJy=new Qk("watchFixie","nmfa2d");_.GOs=new Qk("watchFlexy","CF909");_.TcG=new Qk("watchGrid","Tm0L3c");_.i_s=new Qk("watchLearningJourney","L3n37");var DHl;var oa=function(){return _.g.apply(this,arguments)||this};
_.S(oa,_.g);_.hK.Object.defineProperties(oa,{template:{configurable:!0,enumerable:!0,get:function(){if(DHl===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);DHl=v}v=DHl;return v}}});
_.k([_.h(Hx1.YtPlayerBehavior),_.W("design:type",Object)],oa.prototype,"ytPlayerBehavior",void 0);oa=_.k([_.N({is:"ytd-player"})],oa);var HSF;var gnU;var N9F;var fi=function(){var v=_.g.apply(this,arguments)||this;v.forceModernIconButton=!1;v.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return v};
_.S(fi,_.g);fi.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]]"}}}}}};
fi.prototype.handleAccountLinkingStateChangedCommand=function(v){if(v=_.C(v,ekl)){var E,n=(E=this.data)==null?void 0:E.providerKey;E=v.providerKey;n&&E&&n.id===E.id&&n.subject===E.subject&&(v=v.linked,v!==void 0&&(this.set("data.linked",v),this.notifyPath("data.linked"),_.Z("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(v)))}};
fi.prototype.setPlayerAccountLinkState=function(v){var E=new MnN;CkE(E,SNE(new Uty,v));var n=_.Aq();n&&n.getPlayerPromise().then(function(f){f.setAccountLinkState(_.z3(E.JSC$9965_serializeBinary(),4));f.updateAccountLinkingConfig(v)})};
fi.prototype.handleShowAccountLinkDialog=function(){var v=this.get("button.buttonRenderer.command");v&&_.ic([v],this.hostElement)};
_.hK.Object.defineProperties(fi.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}}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],fi.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fi.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],fi.prototype,"overrides",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fi.prototype,"forceModernIconButton",void 0);_.k([_.H({value:"bottom"}),_.W("design:type",String)],fi.prototype,"buttonTooltipPosition",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],fi.prototype,"forceIconButton",void 0);_.k([_.H(),_.W("design:type",Boolean)],fi.prototype,"disableTextTransform",void 0);
_.k([_.A("data","data.linked","data.isWarning"),_.W("design:type",Object),_.W("design:paramtypes",[])],fi.prototype,"button",null);fi=_.k([_.N({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],fi);
_.u(fi,"ytd-account-link-button-renderer",function(){if(N9F!==void 0)return N9F;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return N9F=v},{mode:1});var uAl;var jti=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],xU=function(){return _.g.apply(this,arguments)||this};
_.S(xU,_.g);xU.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
xU.prototype.updateButtonActiveState=function(){var v=this,E=!!jti.find(function(n){return v.currentState===n});
this.button&&(this.button.isPressed=E)};
_.hK.Object.defineProperties(xU.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.playlistLoopStateEntity)==null?void 0:v.state)||((E=this.data)==null?void 0:E.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=void 0,E;if(this.currentState&&((E=this.data)==null?0:E.states)){E=_.p(this.data.states);for(var n=E.next();!n.done;n=E.next()){n=_.C(n.value,_.IrS);var f=void 0;if(((f=n)==null?void 0:f.state)===this.currentState){v=n;break}}}return v}}});
xU.prototype.updateButtonActiveState=xU.prototype.updateButtonActiveState;_.k([_.h(_.PL),_.W("design:type",Object)],xU.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.tj9}),_.W("design:type",Object)],xU.prototype,"playlistLoopStateEntity",void 0);_.k([_.H(),_.W("design:type",Object)],xU.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],xU.prototype,"forceIconOnly",void 0);_.k([_.Wp("ytd-button-renderer"),_.W("design:type",_.Ad)],xU.prototype,"button",void 0);
_.k([_.A("data","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],xU.prototype,"currentState",null);_.k([_.On("currentButtonStateRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xU.prototype,"updateButtonActiveState",null);_.k([_.A("currentState"),_.W("design:type",Object),_.W("design:paramtypes",[])],xU.prototype,"currentButtonStateRenderer",null);
xU=_.k([_.N({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],xU);
_.u(xU,"ytd-playlist-loop-button-renderer",function(){if(uAl!==void 0)return uAl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return uAl=v},
{mode:1});var OS1;var kgS=_.tQ("DOWNLOAD",{},"Download"),W7o=_.tQ("DOWNLOADING",{},"Downloading"),$Hl=_.tQ("DOWNLOADED",{},"Downloaded"),L76=_.tQ("RETRY",{},"Retry"),cY=function(){var v=_.g.apply(this,arguments)||this;v.forceIconButton=!1;v.forceIconOnly=!1;v.overrides=!1;v.buttonTooltipPosition=!1;v.styleActionButton=!1;v.disableTextTransform=!1;v.downloadProgress=0;v.isDownloadComplete=!1;v.isHidden=!0;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return v};
_.S(cY,_.g);_.c=cY.prototype;_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.dataChanged=function(){var v;(v=this.data)!=null&&v.text||(v=_.bx(_.dG().getState(),this.videoId),this.updateButtonState(v))};
_.c.computeVideoId=function(v){return v};
_.c.showHideButton=function(){this.updateButtonVisibility()};
_.c.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};
_.c.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.c.updateButtonState=function(v){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==W7o||!_.nC(v))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=kgS;var E="OFFLINE_DOWNLOAD";var n="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":v=L76;E="OFFLINE_DOWNLOAD";n="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":v=$Hl;E="OFFLINE_PIN";n="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":v=
W7o;E="OFFLINE_DOWNLOADING_ZERO";n="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":v=L76;E="OFFLINE_DOWNLOAD";n="ACTION_RETRY";break;default:v=kgS,E="OFFLINE_DOWNLOAD",n="ACTION_ADD"}this.isVideoDeletedByUser&&(v=kgS,E="OFFLINE_DOWNLOAD",n="ACTION_ADD");var f=Object.assign({},this.data);f.text=_.qD(v);f.tooltip=v;f.icon={iconType:E};f.size="SIZE_DEFAULT";f.style="STYLE_DEFAULT";_.C(f.command,_.zy)&&(_.C(f.command,_.zy).action=n);this.set("data",f)}};
_.c.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?v="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var E;v!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.text=_.qD(W7o),E.tooltip=W7o,E.icon={iconType:v},_.C(E.command,_.zy)&&(_.C(E.command,_.zy).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
cY.prototype.updateProgress=cY.prototype.updateProgress;cY.prototype.onTransferStateChanged=cY.prototype.onTransferStateChanged;cY.prototype.showHideButton=cY.prototype.showHideButton;cY.prototype.dataChanged=cY.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],cY.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"forceIconButton",void 0);
_.k([_.H(),_.W("design:type",Object)],cY.prototype,"forceIconOnly",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"overrides",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"buttonTooltipPosition",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"styleActionButton",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"disableTextTransform",void 0);
_.k([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.W("design:type",String)],cY.prototype,"videoId",void 0);_.k([_.H(),_.W("design:type",Object)],cY.prototype,"data",void 0);_.k([_.H({selector:sb,selectorArgs:["videoId"]}),_.W("design:type",Object)],cY.prototype,"downloadProgress",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],cY.prototype,"isDownloadComplete",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],cY.prototype,"isHidden",void 0);_.k([_.H({selector:_.bx,selectorArgs:["videoId"]}),_.W("design:type",String)],cY.prototype,"transferState",void 0);_.k([_.H({selector:_.tOI,selectorArgs:["videoId"]}),_.W("design:type",Object)],cY.prototype,"isVideoDeletedByUser",void 0);_.k([_.H({selector:G4X,selectorArgs:["videoId"]}),_.W("design:type",Object)],cY.prototype,"offlineabilityState",void 0);
_.k([_.H({value:!0}),_.W("design:type",Boolean)],cY.prototype,"showTooltips",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],cY.prototype,"sendCommandWhenDisabled",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],cY.prototype,"disabled",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cY.prototype,"dataChanged",null);
_.k([_.Tw("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cY.prototype,"showHideButton",null);_.k([_.Tw("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cY.prototype,"onTransferStateChanged",null);_.k([_.Tw("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cY.prototype,"updateProgress",null);
cY=_.k([_.N({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],cY);
_.u(cY,"ytd-download-button-renderer",function(){if(OS1!==void 0)return OS1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return OS1=v},{mode:2});var Gg4;var T91,iS6=function(){if(T91!==void 0)return T91;var v=document.createElement("template");_.q(v,'\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 T91=v};var zES=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live"),RE6=_.WG("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,yU=function(){var v=_.g.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.alignByText=!1;v.isShorts=!1;v.animatedText=!1;v.shouldAnimate=!1;v.JSC$12242_browserSupportsAnimation=_.Z("web_supports_animations_api");v.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};v.onTap=function(){var E;if((E=v.data)==null||!E.defaultNavigationEndpoint){var n;E=!((n=v.data)==null?0:n.isToggled);var f;if((f=v.data)==null||!f.preventAutoToggle){v.shouldAnimate=!1;v.disableTextUpdateJobId&&_.wh.cancelJob(v.disableTextUpdateJobId);v.disableTextUpdateJobId=_.wh.addLowPriorityJob(function(){v.disableTextUpdateJobId=void 0},RE6);
var x;v.set("data.isToggled",!((x=v.data)==null?0:x.isToggled));n=v.getInnertubeIcon();f={toggled:E,actions:{}};n&&(f.actions[n.toLowerCase()]=E);_.jK(v.hostElement,"yt-toggle-button",f)}}};
return v};
_.S(yU,_.g);_.c=yU.prototype;_.c.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.wh.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.toggle=function(v){var E;this.set("data.isToggled",v!==void 0?v:!((E=this.data)==null?0:E.isToggled))};
_.c.handleUpdateToggleButtonStateCommand=function(v){if(this.data){v=_.C(v,Zyg);var E,n,f,x=(E=this.data)==null?void 0:(n=E.toggleButtonSupportedData)==null?void 0:(f=n.toggleButtonIdData)==null?void 0:f.id;x&&v&&x===(v==null?void 0:v.buttonId)&&this.set("data.isToggled",v.toggled)}};
_.c.handleUpdateToggleButtonTextAction=function(v){if(this.data){v=_.C(v,GBS);var E,n,f,x=(E=this.data)==null?void 0:(n=E.toggleButtonSupportedData)==null?void 0:(f=n.toggleButtonIdData)==null?void 0:f.id;x&&v&&x===(v==null?void 0:v.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=v.defaultNumericalValue,this.set("data.defaultText",v.defaultText),this.set("data.toggledText",v.toggledText),this.shouldAnimate=!1)}};
_.c.getInnertubeIcon=function(){var v=this.data;if(v){var E,n,f=((E=v.defaultIcon)==null?0:E.iconType)?(n=v.defaultIcon)==null?void 0:n.iconType:null,x,y;E=((x=v.toggledIcon)==null?0:x.iconType)?(y=v.toggledIcon)==null?void 0:y.iconType:f;return v.isToggled?E:f}};
_.c.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.hK.Object.defineProperties(yU.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v={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$12242_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var E=v.renderer;var n=v.element;var f=v.toggled;var x=v.onTapCallback;var y=v.commandClientArgs;var Q=v.overrides;var e=v.forceIcon;var F=v.forceModernIconButton;var b=v.forceDisabled;var l=v.useAnimatedText;var r=v.animatedTextProps;v=nnA(E,f);e=!E.defaultIcon||!e&&E.defaultText?E.defaultIcon?"leading":void 0:F?"icon-only":"icon-only-40";e==="icon-only-40"&&(v.type="text");var a;F=Object;var M=F.assign,U;a:switch((U=
E.style)==null?void 0:U.styleType){case "STYLE_COMPACT_GRAY":U={size:"S"};break a;default:U={size:"M"}}var d=!!f;var Y=(Y=f&&E.toggledText||E.defaultText)?_.yI(Y):void 0;l?(l=_.JC(f&&E.toggledText||E.defaultText))&&r&&!isNaN(Number(r.numberValue))?(r.numberText=l,f&&(r.numberValue+=1),l=r):l=void 0:l=void 0;var V,O,T,L;var xX=(r=((O=f?E.toggledAccessibilityData||((xX=E.toggledText)==null?void 0:xX.accessibility):E.accessibilityData||((V=E.defaultText)==null?void 0:V.accessibility))==null?void 0:(T=
O.accessibilityData)==null?void 0:T.label)||((L=E.accessibility)==null?void 0:L.label))?r:_.JC(f&&E.toggledText||E.defaultText);b=b===void 0?E.isDisabled:b;n=EnX(E,f,x,n,y);f=vny(E,f);f!=null&&f.length?(f=_.wJ({innertubeCommand:LSA(f),forceNewState:!0}),f=bj(f)?f:void 0):f=void 0;E=M.call(F,{},v,U,{iconPosition:e},Q,{focused:!1,toggled:d,toggleable:!0,formattedButtonText:Y,animatedTextProps:l,accessibilityLabel:xX,disabled:b,onTap:n,aTagConfig:f},P01((a=E.colorData)==null?void 0:a.basicColorPaletteData));
E.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(E.type="filled");return E}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.getInnertubeIcon();if(v)return _.jI(v)}}});
yU.prototype.resetAnimation=yU.prototype.resetAnimation;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yU.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],yU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],yU.prototype,"isPressed",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"forceIconButton",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"forceIconOnly",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"forceModernIconButton",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"alignByText",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"overrides",void 0);
_.k([_.H(),_.W("design:type",Boolean)],yU.prototype,"disabled",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"isShorts",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"buttonTooltipPosition",void 0);_.k([_.H(),_.W("design:type",Object)],yU.prototype,"animatedText",void 0);_.k([_.H(),_.W("design:type",String)],yU.prototype,"textNumberValue",void 0);_.k([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.W("design:type",Object)],yU.prototype,"tooltip",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yU.prototype,"resetAnimation",null);_.k([_.A("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.W("design:type",Object),_.W("design:paramtypes",[])],yU.prototype,"computedButtonShape",null);_.k([_.A("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],yU.prototype,"computedIcon",null);
yU=_.k([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],yU);zES&&_.u(yU,"ytd-toggle-button-renderer",iS6,{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var F7F=[],mHA=!1;_.Nw(lpX);var t44,B9S;t44=_.qu(function(v){function E(b){var l;return _.X(function(r){if(r.nextAddress==1)return(l=!xHy(b,e())||!e().enabled)?r.jumpTo(2):_.m(r,Xw9(),3);r.nextAddress!=2&&(l=r.yieldResult);if(l)return r.return();n();setTimeout(function(){Q(!1)},1500);
_.yQ(r)})}
function n(){setTimeout(function(){Q(!0);var b;(b=f.lottieEl)==null||b.goToAndPlay(0)},150)}
var f=_.Gy(),x=_.p(_.t7(!1,void 0,"xffAp")),y=x.next().value,Q=x.next().value,e=_.SI(v.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.l5(function(){var b,l;((b=v.settings)==null?void 0:(l=b.call(v))==null?void 0:l.uniqueId)==="this is not intended behavior"&&_.li(new _.yc("Smartimation Settings is undefined"))});
_.Xp(function(){e().experimentEnabled&&(e().enabled?cDQ(E):(Q(!1),yD1(E)),_.Fp(function(){yD1(E)}))});
_.Xp(function(){e().timings.join("");e().experimentEnabled&&(pw$(e()),_.Fp(function(){Qts(e())}))});
var F=_.o0(function(){return onL(f,e())},void 0,"d96jJc");
x={};return _.w("yt-smartimation",{class:_.W8(v.className,"smartimation",(x["smartimation--experiment-enabled"]=function(){return e().experimentEnabled},x["smartimation--active-border"]=y,x["smartimation--enable-masking"]=stE(),x))},_.w(_.x6,{cond:function(){return e().experimentEnabled},
then:function(){return _.w("div",{class:"smartimation__border"},_.w(_.$z,{className:"smartimation__border-gradient",data:F,animationName:function(){return F().animationConfig.name}}))}}),_.w("div",{class:"smartimation__content"},v.children))},"x");
_.ndy=_.Z("web_enable_sink_smartimations")?t44:lpX;B9S=_.Z("web_enable_sink_smartimations")?t44:_.GG(lpX);t44.idomCompat=!0;_.Z("web_enable_sink_smartimations")?_.Yz(B9S,"yt-smartimation",{props:{className:_.Kt,settings:_.Kt}}):_.uj(_.ndy,"yt-smartimation",{propNames:["className","settings"]});var pi=function(){var v=_.g.apply(this,arguments)||this;v.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};v.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};v.shouldEnableSmartimation=!1;return v};
_.S(pi,_.g);pi.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
pi.prototype.onDataChanged=function(){var v,E;this.shouldEnableSmartimation=(((v=this.data)==null?void 0:(E=v.timedAnimationData)==null?void 0:E.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
pi.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var v=_.C(this.data.likeButton,_.J$),E=_.C(this.data.dislikeButton,_.J$);return!!((v==null?0:v.isToggled)||(E==null?0:E.isToggled))};
pi.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]]"}}}}}};
_.hK.Object.defineProperties(pi.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,E,n=((v=this.data)==null?void 0:(E=v.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"like-dislike",timings:n,enabled:this.shouldEnableSmartimation,experimentEnabled:n.length>0}}}});
pi.prototype.onDataChanged=pi.prototype.onDataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pi.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],pi.prototype,"likeButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],pi.prototype,"dislikeButtonOverride",void 0);
_.k([_.A("shouldEnableSmartimation"),_.W("design:type",Object),_.W("design:paramtypes",[])],pi.prototype,"smartimationSettings",null);_.k([_.On("data"),_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"onDataChanged",null);pi=_.k([_.N({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],pi);
_.u(pi,"ytd-segmented-like-dislike-button-renderer",function(){if(Gg4!==void 0)return Gg4;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Gg4=v},{mode:1});var vv6;var EvF;(EvF=document.body)==null||EvF.setAttribute("rounded-container","");var nvw={};nvw.YtToggleButtonBehavior=[_.N2.YtActionHandlerBehavior,t1.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 v=this.data.isToggled;if(!this.isModal_(v)){if(!this.data.preventAutoToggle){this.toggle();var E={toggled:this.data.isToggled,actions:{}};E.actions[this.buttonIcon]=this.data.isToggled;_.jK(this.hostElement,"yt-toggle-button",E)}E=this.data.defaultServiceEndpoint||null;var n=this.data.toggledServiceEndpoint||null;if(E&&n||E&&this.data.preventAutoToggle)v=v?n:E,E=this.disableCommandHandlerOverride,_.Z("killswitch_toggle_button_behavior_resolve_command")||E?_.$Z(this.hostElement,
[v]):_.WE(v,this.hostElement),_.jK(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:v})}},
stateChanged_:function(){var v=this.data;if(v){var E=v.isToggled;this._setEndpoint(this.computeEndpoint_(v));this._setServiceEndpoint(this.computeServiceEndpoint_(v));this._setButtonIcon(this.computeButtonIcon_(v,E));this._setButtonText(this.computeButtonText_(v,E));this._setButtonAccessibility(this.computeAccessibility_(v,E));this._setButtonTooltip(this.computeTooltip_(v,E));this._setButtonClass(this.computeButtonClass_(v,E));this._setIconPositionType(this.computeIconPositionType_(v));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=E):this.elements_.button.setAttribute("aria-pressed",E));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=E)}},
shouldSetIconActiveState_:function(){return _.Z("kevlar_system_icons")},
toggle:function(v){this.set("data.isToggled",v!==void 0?v:!this.data.isToggled);_.Z("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(v){if(v){var E,n;return!!((E=this.data)==null?0:(n=E.toggledServiceEndpoint)==null?0:n.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(v){return v&&v.defaultNavigationEndpoint||null},
computeButtonIcon_:function(v,E){var n=v&&v.defaultIcon?_.jI(v.defaultIcon.iconType):null;v=v&&v.toggledIcon?_.jI(v.toggledIcon.iconType):n;return E?v:n},
handleUpdateToggleButtonStateCommand_:function(v){v=v.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&this.toggle(v.toggled)},
computeButtonText_:function(v,E){return v?E&&v.toggledText||v.defaultText||null:null},
computeAccessibility_:function(v,E){return v?(E?this.get("toggledAccessibilityData.accessibilityData",v):this.get("accessibilityData.accessibilityData",v))||v.accessibility||null:null},
computeTooltip_:function(v,E){return v?E&&v.toggledTooltip||v.defaultTooltip||null:null},
computeButtonClass_:function(v,E){if(!v)return"";var n="",f=v.toggledStyle||v.style;if(E=E?f:v.style){E.styleType&&(E=E.styleType);try{n+=E.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.ss(x,E,typeof E),_.li(x)}}if(v=v.size){v.sizeType&&(v=v.sizeType);try{n+=v.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.ss(x,v,typeof v),_.li(x)}}return n.trim()},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeServiceEndpoint_:function(v){var E=v&&v.serviceEndpoint,n=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:n&&v.command?v.command:null},
handleUpdateToggleButtonTextAction_:function(v){v=v.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&(this.set("data.defaultText",v.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",v.toggledText),this.notifyPath("data.toggledText"))}}];_.ew("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ovl=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live"),QU=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.roundedContainer=!0;return v};
_.S(QU,_.g);QU.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
QU.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var v=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var E={toggled:!!this.data.isToggled,actions:{}};E.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var n,f;E.actions.playlistId=(n=this.data.defaultServiceEndpoint)==null?void 0:(f=n.playlistEditEndpoint)==null?void 0:f.playlistId;_.jK(this.hostElement,"yt-toggle-button",E)}(v=v?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(v)}};
QU.prototype.onYtNavigate=function(v){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);E&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.hK.Object.defineProperties(QU,{template:{configurable:!0,enumerable:!0,get:function(){if(vv6===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);vv6=v}v=vv6;return v}}});
QU.prototype.onYtNavigate=QU.prototype.onYtNavigate;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],QU.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(nvw.YtToggleButtonBehavior),_.W("design:type",Object)],QU.prototype,"ytToggleButtonBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],QU.prototype,"data",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],QU.prototype,"showTooltips",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QU.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QU.prototype,"roundedContainer",void 0);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],QU.prototype,"onYtNavigate",null);
QU=_.k([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:ovl})],QU);var fhU;_.XQ=new _.$Y("PANEL_CONTROLLER_TOKEN");_.eL=new _.$Y("SHEET_CONTROLLER_TOKEN");_.FQ=new _.$Y("DIALOG_CONTROLLER_TOKEN");fhU=new _.$Y("DIALOG_CONTAINER_TOKEN");var qRL=_.tQ("DOWNLOAD",{},"Download"),JD9=_.tQ("DOWNLOADING",{},"Downloading"),K7F=_.tQ("DOWNLOADED",{},"Downloaded"),dHE=_.tQ("RETRY",{},"Retry");var xV6=_.qu(function(v){var E=gnI,n=function(){return""},f=AD$(v.data),x=V4F(v.data),y=DH1(v.data),Q=HS$(v.data);
E=function(){var e=v.data(),F=SR1(e,f(),x(),y(),Q()),b=!!e.videoId,l=F.text;return{title:b?l:void 0,tooltip:b?void 0:l,accessibilityText:l,onTap:F.onTap,iconName:F.iconType,style:e.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:F.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:e.buttonSize}};
n={};n=_.W8("ytDownloadButtonViewModelHost",(n.ytDownloadButtonViewModelIsHidden=function(){var e=v.data(),F=Q();return e.playlistId||F()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||F()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},n));
return _.w("download-button-view-model",{class:n},_.w(_.C7,{data:E}))},"y");
xV6.idomCompat=!0;_.Nw(jtF);_.Nw(N9$);var yu6=_.qu(function(v){var E=v.backgroundLottieRef;var n=v.foregroundLottieRef;var f=v.children;var x=v.wrapperClass;var y=v.disableAnimation;v=function(){return(_.Z("web_animated_actions")||_.Z("web_animated_actions_v2"))&&!(y==null?0:y())};
return _.w("yt-animated-action",{class:_.W8("animated-action__container",x)},_.w("div",{class:"animated-action__content-with-background"},_.w(_.x6,{cond:v,then:function(){return _.w(cuX,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(OSQ()?"dark":"light")+"_v5.json"}}}})}}),f),_.w(_.x6,{cond:v,
then:function(){return _.w(cuX,{lottiePlayerProps:function(){return{animationRef:n==null?void 0:n(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(OSQ()?"dark":"light")+"_v4.json"}}}})}}))},"z");
yu6.idomCompat=!0;var ruF=_.Z("web_enable_sink_animated_actions")?yu6:jtF,ptw=_.Z("web_enable_sink_animated_actions")?yu6:_.GG(jtF),cuX=_.qu(function(v){var E=v.wrapperClass;var n=v.lottieClass;var f=v.lottiePlayerProps;return _.w("div",{class:_.W8("animated-action__lottie",E),"aria-hidden":"true"},_.w(_.$z,{className:n,data:f,animationName:function(){return f().animationConfig.name}}))},"A");var kgs={isOpen:!1};var $H1={isAllowed:!1};var Ggy={errorMessage:"",title:"",privacy:"",isDisabled:!0};var iSG={isOpen:!1};var REG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var QNF={response:void 0};var B9s=function(v,E){v=v===void 0?QNF:v;switch(E.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},v,{response:E.payload});default:return v}};var Xto={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var vvG=function(v,E){v=v===void 0?Xto:v;switch(E.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},v,{nextDisabled:E.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},v,{nextCommand:E.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},v,{footerSubmissionData:E.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},v,{isImpersonationValid:E.payload});default:return v}};var eNl={reportFormData:void 0,reportDetailsFormData:void 0};var Ev$=function(v,E){v=v===void 0?eNl:v;switch(E.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportFormData:E.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportDetailsFormData:E.payload});default:return v}};var FRi=void 0;_.Z("mweb_enable_redux_store_on_demand")||(FRi=new KC(nvX()));var sNI=_.qu(function(v){v=_.Ue(v,{themeOverride:void 0,animationRef:{}});var E=v.animatedIconType,n=v.active,f=v.themeOverride,x=v.animationRef;v=v.staticIconFn;var y=_.p(_.t7(void 0,void 0,"P5a72b")),Q=y.next().value,e=y.next().value,F=function(){a:{var Y=E();var V=f==null?void 0:f();var O;V=(V==null?void 0:V.useDarkTheme)||((O=_.P().resolve(_.jp(_.aj)))==null?void 0:O());switch(Y){case "LIKE":b:{FRi||(FRi=new KC(nvX()));if((Y=vKs(FRi.getState()))&&Y.animationStyle)switch(Y.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":Y=
fhI({name:V?"valentines25_heart_dark":"valentines25_heart_light",path:V?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":Y=fhI({name:V?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:V?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":Y=
fhI({name:V?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:V?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}Y=void 0}if(Y){V=Y;break a}V="animated_like_icon_"+(V?"dark_v4":"light_v4");V={lottiePlayerProps:{animationConfig:{name:V,path:ov1("animated_like_icon",V),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":V={lottiePlayerProps:{animationConfig:{name:V?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(V?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}V=void 0}return V},b=function(){var Y,V;
return(V=(Y=F())==null?void 0:Y.lottiePlayerProps.animationConfig.name)!=null?V:""},l=function(){if(F()){var Y=F().lottiePlayerProps.animationConfig.path;
return kz.get(Y)||Q()}};
y=_.p(_.t7(!1,void 0,"h6xR3c"));var r=y.next().value;y=y.next().value;var a=cuE(y),M=function(){var Y=F(),V,O,T;return(T=Y==null?void 0:(V=Y.lottiePlayerProps.animationConfig)==null?void 0:(O=V.rendererSettings)==null?void 0:O.className)!=null?T:""},U=void 0,d=void 0;
_.Xp(function(){var Y=F(),V=b(),O=l(),T=r(),L=n();if(Y&&(d!==V&&(d=V,U=L,V=x(),a.animationConfig=Y.lottiePlayerProps.animationConfig,a.animationRef=V,O&&(a.animationConfig.animationData=O,a.animationConfig.path=void 0),V=Y.lottiePlayerProps.animationConfig.path,!kz.get(V)&&Y.lazyLoad&&V&&xVG(V,e)),!(T||Y.lazyLoad&&!O))){if(O=!x().lottieEl)L?(T=Y.totalFrames,a.animationConfig.initialSegment=[T-1,T]):a.animationConfig.initialSegment=void 0;if(U!==L&&!O)if(O=x(),L){var xX;(xX=O.lottieEl)==null||xX.playSegments([0,
Y.totalFrames],!0)}else{var t;(t=O.lottieEl)==null||t.playSegments([0,1],!0)}U=L}});
return _.w("animated-icon",{class:"ytAnimatedIconHost"},_.w(_.x6,{cond:function(){var Y,V;return!((Y=F())==null||!Y.lottiePlayerProps.animationConfig.path||((V=F())==null?0:V.lazyLoad)&&!l()||r())},
then:function(){return _.w(_.$z,{data:a,animationName:b,className:M,animationRef:x})},
else:v}))},"B");_.Nw(PPA);var mVg,bJP;mVg=_.qu(function(v){var E=_.Ig(),n=_.Ig(),f=_.Ig(),x=_.Gy(),y=_.Gy(),Q=_.Gy(),e=_.Bi(_.Wi,function(){return v.data().stateEntityStoreKey}),F=_.Bi(G8N,function(){var fl,yP;
return(yP=(fl=v.data().notificationStateEntityStoreKeys)==null?void 0:fl.subsNotificationStateKey)!=null?yP:""}),b=function(){return!v.data().enableSubscribeButtonPostClickAnimation},l=_.p(_.t7(0,void 0,"LZz2ld")),r=l.next().value,a=l.next().value;
l=_.p(_.t7(0,void 0,"DTJZzd"));var M=l.next().value,U=l.next().value;l=_.p(_.t7(!1,void 0,"vYdJ9e"));var d=l.next().value,Y=l.next().value;l=_.p(_.t7(!1,void 0,"HsSmhb"));var V=l.next().value,O=l.next().value;l=_.p(_.t7(!1,void 0,"St29Yd"));var T=l.next().value,L=l.next().value,xX;l=_.p(_.t7(!1,void 0,"p20o0d"));var t=l.next().value,QE=l.next().value,MF=function(){O(!0);_.xa(_.wh,function(){O(!1)},1500)};
_.Xp(function(){var fl=V();Rc(function(){fl&&!b()&&e()&&UV$(x,y,Q)})});
_.Xp(function(){var fl=e();Rc(function(){if(!b()&&fl){var yP;((yP=v.animateWidth)==null?0:yP.call(v))&&S9s(E.value,!!fl.subscribed,r(),M());var IF,QP;((IF=xX)==null?0:IF.subscribed)||!fl.subscribed||fl.key!==((QP=xX)==null?void 0:QP.key)||MF();xX=fl}})});
l=_.o0(function(){var fl,yP,IF,QP=v.data(),T3=!((fl=e())==null||!fl.subscribed);fl=!((yP=v.isOverlay)==null||!yP.call(v));yP=d()?E.value:void 0;var aK=(IF=F())==null?void 0:IF.state;IF=t();MiF(QP,aK);return vT({model:QP,subscribed:T3,isOverlay:fl,element:yP,notificationState:aK,disableTextEllipsis:!0,focused:IF})},void 0,"xCVIse");
var K1=function(){var fl;if(!b()&&((fl=v.animateWidth)==null?0:fl.call(v))&&(n==null?0:n.value)&&(f==null?0:f.value)&&!T()){fl=e();var yP=_.p((fl==null?0:fl.subscribed)?[n,f]:[f,n]),IF=yP.next().value;yP=yP.next().value;IF=Math.ceil(IF.value.getBoundingClientRect().width);yP=Math.ceil(yP.value.getBoundingClientRect().width);a(IF);U(yP);S9s(E.value,!(fl==null||!fl.subscribed),IF,yP);L(!0)}},JG=_.ij(function(fl){K1();
var yP=e();yP&&(fl.detail.endpoint.subscribeEndpoint||fl.detail.endpoint.unsubscribeEndpoint)&&ZJF(E.value,!yP.subscribed,yP)}),$X=function(){var fl=_.P().resolve(_.jp(_.cT));
fl&&QE(fl.isKeyBoardInUse())},HI=function(){QE(!1)};
_.dt("yt-player-subscribe",function(fl){var yP=e();yP&&fl===v.data().channelId&&ZJF(E.value,!0,yP)});
_.dt("yt-player-unsubscribe",function(fl){var yP=e();yP&&fl===v.data().channelId&&ZJF(E.value,!1,yP)});
_.dt("yt-update-subscribe-button-action",function(fl){fl=_.C(fl,lhL);var yP=e();yP&&fl&&fl.channelId===v.data().channelId&&ZJF(E.value,!!fl.subscribed,yP)});
_.l5(function(){E.value&&(E.value.addEventListener("focusin",$X),E.value.addEventListener("focusout",HI));var fl=_.cP(_.wh,function(){K1()});
Y(!0);_.Fp(function(){_.wh.cancelJob(fl);E.value&&(E.value.removeEventListener("focusin",$X),E.value.removeEventListener("focusout",HI))})});
var uE=function(){var fl,yP,IF;if(IF=!((fl=e())==null||!fl.subscribed))fl=!!v.data().disableNotificationBell,IF=(yP=F())==null?void 0:yP.state,IF=!fl&&!!IF;return IF},WI=function(){var fl;
return!((fl=e())==null?0:fl.subscribed)},bX=function(){var fl,yP;
if(yP=WI()){yP=!!v.data().disableNotificationBell;var IF=(fl=F())==null?void 0:fl.state;yP=!yP&&!!IF}return yP},n0={},qi={};
return _.w("yt-subscribe-button-view-model",{class:_.W8("yt-subscribe-button-view-model-wiz",(n0["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var fl,yP;return!((fl=e())==null||!fl.subscribed)&&((yP=v.animateWidth)==null?void 0:yP.call(v))&&V()},n0["yt-subscribe-button-view-model-wiz--hidden"]=function(){var fl;
return!((fl=e())==null?0:fl.subscribed)&&v.data().hideWhenUnsubscribed},n0)),
el:E,"on:yt-service-request-sent":JG},_.w(ptw,{backgroundLottieRef:x,foregroundLottieRef:y,wrapperClass:_.W8("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(qi["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var fl;return((fl=v.animateWidth)==null?void 0:fl.call(v))&&V()},qi["yt-subscribe-button-view-model-wiz__static-width"]=function(){var fl;
return!((fl=v.animateWidth)==null?0:fl.call(v))},qi)),
disableAnimation:b},_.w("div",{el:n,class:"yt-subscribe-button-view-model-wiz__container"},_.w(WT,{data:l,icon:function(){return _.w(_.x6,{cond:uE,then:function(){var fl=function(){var yP;return ahX((yP=F())==null?void 0:yP.state)};
return _.w(_.x6,{cond:function(){return b()||fl()!=="NOTIFICATIONS_NONE"},
then:function(){return _.w(_.B8,{icon:fl})},
else:function(){return _.w(sNI,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Q})}})}})},
secondaryIconName:function(){return uE()?"EXPAND":void 0}}))),_.w("div",{el:f,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.w(_.x6,{cond:function(){var fl;return((fl=v.animateWidth)==null?void 0:fl.call(v))&&!b()&&!T()},
then:function(){return _.w(WT,{data:_.o0(function(){var fl;return vT({model:v.data(),subscribed:WI(),isOverlay:!((fl=v.isOverlay)==null||!fl.call(v)),element:E.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var fl;return bX()?ahX((fl=F())==null?void 0:fl.state):void 0},
secondaryIconName:function(){return bX()?"EXPAND":void 0}})}})))},"C");
_.wtS=_.Z("web_enable_sink_yt_subscribe_button_view_model")?mVg:PPA;bJP=_.Z("web_enable_sink_yt_subscribe_button_view_model")?mVg:_.GG(PPA);mVg.idomCompat=!0;var q9A=new _.$Y("RENDERER_STAMPER_OPTIONS_TOKEN");var eS;_.QX=new nzS;eS=new Map;var kHL="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),$Vy=["notificationTextRenderer","notificationMultiActionRenderer"],WRE="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
OJX=Vis(function(v){return _.ba(v==null?void 0:v.targetId)}).useUpdatableData;var jNE=0;_.mI.debugName="EjJbCe";var lh1=_.qu(function(v){var E=v.data;var n=_.Bi(_.Wi,function(){return E().subscriptionStateEntityKey});
return _.w(_.x6,{cond:function(){var f=E(),x=n();return!f.hideWhenUnsubscribed||(x==null?0:x.subscribed)?_.C(E().button,_.wQ):void 0},
then:function(f){return _.w("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.w(_.C7,{data:f,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var T8N=_.p7({buttonViewModel:_.C7,subscribeButtonViewModel:_.wtS,downloadButtonViewModel:xV6,toggleButtonViewModel:_.lS,subscribePlusButtonViewModel:lh1});_.Nw(zNs);var sNU=_.qu(function(v){return _.w(_.mI,{data:function(){return v.actionRow().actions}},{buttonViewModel:function(E){var n=E.data;
return _.w(m0,{isRow:v.isRow,isIconOnlyButton:function(){return RNs(n())},
useIntrinsicWidth:v.useIntrinsicWidth},_.w(_.C7,{data:n}))},
subscribeButtonViewModel:function(E){return _.w(m0,{isRow:v.isRow},_.w(bJP,{data:E.data,isOverlay:!1,animateWidth:function(){return!v.isRow()}}))},
downloadButtonViewModel:function(E){var n=E.data;return _.w(m0,{isRow:v.isRow,isIconOnlyButton:function(){return!!n().playlistId}},_.w(xV6,{data:n}))},
toggleButtonViewModel:function(E){var n=E.data;return _.w(m0,{isRow:v.isRow,isIconOnlyButton:function(){var f=n();return RNs(_.C(f.isToggled?f.toggledButtonViewModel:f.defaultButtonViewModel,_.wQ))}},_.w(_.lS,{data:n}))},
subscribePlusButtonViewModel:function(E){return _.w(m0,{isRow:v.isRow},_.w(lh1,{data:E.data}))}})},"E"),m0=_.qu(function(v){var E={};
return _.w("div",{class:_.W8("yt-flexible-actions-view-model-wiz__action",(E["yt-flexible-actions-view-model-wiz__action--row-action"]=v.isRow,E["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=v.useIntrinsicWidth,E["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,E["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=v.isIconOnlyButton,E))},v.children)},"F"),rui=_.qu(function(v){var E=function(){var f;
return((f=v.layout)==null?void 0:f.call(v))===1},n={};
return _.w("yt-flexible-actions-view-model",{class:_.W8("yt-flexible-actions-view-model-wiz",v.className,(n["yt-flexible-actions-view-model-wiz--inline"]=function(){return!E()},n["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return v.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},n))},_.w(_.cG,{each:function(){return v.data().actionsRows||[]}},function(f){return _.w(_.x6,{cond:E,
then:function(){return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.w(sNU,{actionRow:f,isRow:E,useIntrinsicWidth:function(){return!!v.data().respectActionIntrinsicWidth}}))},
else:function(){return _.w(sNU,{actionRow:f,isRow:E})}})}))},"G"),PPz=_.Z("web_enable_sink_yt_flexible_actions_view_model")?rui:zNs,wz=_.Z("web_enable_sink_yt_flexible_actions_view_model")?rui:_.GG(zNs);
rui.idomCompat=!0;_.Yz(wz,"yt-flexible-actions-view-model",{props:{data:_.Kt,layout:_.Kt,justifyContentOverride:_.Kt,className:_.Kt}});_.Nw(tiX);var ahw,fWy;ahw=_.qu(function(v){var E=_.Bi(wW,function(){var x;return(x=v.data().dislikeEntityKey)!=null?x:""}),n=_.o0(function(){var x=E();
return x?x.likeStatus==="DISLIKE":_.C(v.data().toggleButtonViewModel,_.bS).isToggled},void 0,"D8oIFb"),f=_.o0(function(){return Object.assign({},_.C(v.data().toggleButtonViewModel,_.bS),{isToggled:n()})},void 0,"shaCXe");
return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.lS,{data:f,buttonShapeOverrides:v.buttonShapeOverrideables,onToggle:function(x){var y=E();y&&x!==(y.likeStatus==="DISLIKE")&&y.key&&_.Mu(_.sI("likeStatusEntity",y.key,{likeStatus:x?"DISLIKE":"INDIFFERENT",hadUserInteraction:x}))}}))},"H");
fWy=_.Z("web_enable_sink_dislike_button_view_model")?ahw:tiX;_.bd=_.Z("web_enable_sink_dislike_button_view_model")?ahw:_.GG(tiX);ahw.idomCompat=!0;_.Nw(vds);var ZJi,odI;ZJi=_.qu(function(v){var E=_.Z("web_supports_animations_api"),n=KR(function(a){var M=b(),U,d=(M==null?void 0:(U=M.likeCountIfIndifferent)==null?void 0:U.content)!==a.numberText;if(e()||!d)return a;var Y,V;return{numberText:(M==null?void 0:(Y=M.likeCountIfIndifferent)==null?void 0:Y.content)||"",numberValue:Number((V=M==null?void 0:M.likeCountIfIndifferentNumber)!=null?V:0),heightPx:36,shouldAnimate:!!M}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),f=KR(function(a){var M=b(),U,d=(M==null?void 0:(U=M.likeCountIfIndifferent)==null?void 0:U.content)!==a.numberText;if(e()||!d)return a;var Y,V;return{numberText:(M==null?void 0:(Y=M.likeCountIfLiked)==null?void 0:Y.content)||"",numberValue:Number((V=M==null?void 0:M.likeCountIfLikedNumber)!=null?V:0),heightPx:36,shouldAnimate:!!M}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),x=_.p(_.t7(void 0,void 0,"T6jMHc")),y=x.next().value,Q=x.next().value,e=y,F=_.Bi(wW,function(){var a,M;return(M=(a=v.data())==null?void 0:a.likeStatusEntityKey)!=null?M:""}),b=_.Bi(UYN,function(){var a,M;
return((a=v.likeCountEntity)==null?void 0:(M=a.call(v))==null?void 0:M.key)||""}),l=_.o0(function(){var a;
return((a=F())==null?void 0:a.likeStatus)==="LIKE"},void 0,"WxQBcd"),r=function(){var a;
return E&&!((a=v.likeCountEntity)==null||!a.call(v))};
return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.lS,{data:function(){var a=Object,M=a.assign,U;var d=_.C((U=v.data())==null?void 0:U.toggleButtonViewModel,_.bS);return M.call(a,{},d||{},{isToggled:l()})},
buttonShapeOverrides:v.buttonShapeOverrideables,animatedTextPropsDefault:function(){return r()?n():void 0},
animatedTextPropsToggled:function(){return r()?f():void 0},
onToggle:function(a){EdG(a,F(),e(),Q)},
style:function(){var a;return((a=v.disableIconAnimation)==null?0:a.call(v))?void 0:{animateIcon:"true"}}}))},"I");
odI=_.Z("web_enable_sink_like_button_view_model")?ZJi:vds;_.ld=_.Z("web_enable_sink_like_button_view_model")?ZJi:_.GG(vds);_.Nw(xty);var CP1=_.qu(function(v){var E=function(){return _.C(v.data().likeButtonViewModel,rQ)},n=function(){var x;
return((x=E())==null?void 0:x.likeStatusEntityKey)||""},f=_.o0(function(){var x,y;
var Q=(y=_.Bi(wW,n)())!=null?y:(x=E())==null?void 0:x.likeStatusEntity;x=v.data();var e;x=(x==null?void 0:(e=x.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:(Q==null?void 0:Q.likeStatus)==="INDIFFERENT"&&x.length>0,experimentEnabled:x.length>0}},void 0,"e1fsz");
return _.w("segmented-like-dislike-button-view-model",{class:_.W8("ytSegmentedLikeDislikeButtonViewModelHost",v.className),"button-renderer":!0},_.w(B9S,{settings:f},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.w(_.x6,{cond:E,then:function(x){return _.w(_.ld,{data:x,likeCountEntity:function(){return v.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.w(_.x6,{cond:function(){return _.C(v.data().dislikeButtonViewModel,PT)},
then:function(x){return _.w(_.bd,{data:x,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),Mii=_.Z("web_enable_sink_segmented_like_dislike_button_view_model")?CP1:xty;
CP1.idomCompat=!0;_.uj(Mii,"segmented-like-dislike-button-view-model",{propNames:["data"]});var ehF=0;_.Yz(qNI,"account-link-button-view-model",{props:{data:_.Kt,className:_.Ij,setMinWidth:_.Ij,forceIconOnly:_.Ij}});_.ew("menuRenderer","menuRenderer","ytd-menu-renderer");
var S9S={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"}},
UVF=_.Z("web_fix_missing_action_buttons")?100:200,s$=function(){var v=_.g.apply(this,arguments)||this;v.safeArea=!_.Z("kevlar_flex_menu_safe_area_killswitch");v.tonalOverride=!1;v.threeDotSize="M";v.isOverlay=!1;v.useOverlayDark=!1;v.topLevelIconsOnly=!1;v.JSC$12391_lastWidth=0;v.maybeUpdateFlexibleMenu=function(){_.Z("web_fix_missing_action_buttons")?requestAnimationFrame(v.maybeUpdateFlexibleMenuImpl):v.maybeUpdateFlexibleMenuImpl()};
v.maybeUpdateFlexibleMenuImpl=function(){var E;if((E=v.data)!=null&&E.flexibleItems){v.maybeFlushDebouncer();E=v.hostElement.clientWidth;var n=E>v.JSC$12391_lastWidth,f,x=((f=v.topLevelButtonsContainer)==null?void 0:f.scrollHeight)||0,y;f=((y=v.flexibleItemButtonsContainer)==null?void 0:y.scrollHeight)||0;y=v.hostElement.scrollHeight>Math.max(x,f)+8;n?(v.resetFlexibleItems(),v.JSC$12391_lastWidth=v.hostElement.clientWidth,v.maybeUpdateFlexibleMenu()):y&&(v.shrinkFlexibleMenu(),v.JSC$12391_lastWidth=
E)}};
v.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){v.onOverflowTap()},
iconPosition:"icon-only",style:v.isOverlay?v.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:v.threeDotSize,state:"active",accessibilityLabel:v.computeAccessibilityLabel(v.data)},v.threeDotButtonOverride)};
v.onOverflowTap=function(){if(v.data.fetchMenuCommand)_.P().resolve(_.OO).resolveCommand(v.data.fetchMenuCommand,{form:{element:v.hostElement}});else if(v.data.isDisabled&&v.data.disabledCommand)_.WE(v.data.disabledCommand,v.hostElement);else{var E=v.createMenuRendererVe(),n={items:v.items};v.data.menuPopupAccessibility&&(n.menuPopupAccessibility=v.data.menuPopupAccessibility);v.data.footer&&(n.footer=v.data.footer);E={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:n},veData:E}};_.P().resolve(_.eL).openSheet({openPopupActionCommand:E},
v.hostElement)}};
return v};
_.S(s$,_.g);_.c=s$.prototype;_.c.updateButtonOverrides=function(){if(!_.Z("menu_renderer_label_update_upkillswitch")){var v=_.K(this.hostElement).querySelector("yt-button-view-model");v&&(v.buttonOverrides=this.buttonOverrides)}};
_.c.computeHasItems=function(){var v;return((v=this.topLevelButtonData)==null?void 0:v.length)||this.hasFlexibleItems};
_.c.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.c.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.NQ(this.hostElement,{"--ytd-menu-renderer-button-color":_.p2(this.data.iconColor)}))};
_.c.onStamperFinished=function(){this.JSC$12391_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.c.setupFlexibleMenu=function(){var v=this,E;(E=this.data)!=null&&E.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.ka(this.maybeUpdateFlexibleMenu,UVF,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){v.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))};
_.c.maybeFlushDebouncer=function(){if(_.Z("web_replace_formatted_with_attributed_string")){var v;(v=this.topLevelButtons)==null||v.forEach(function(n){var f;(n=(f=n.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&TIN(n)});
var E;(E=this.flexibleItemButtons)==null||E.forEach(function(n){var f;(n=(f=n.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&TIN(n)})}};
_.c.resetFlexibleItems=function(){var v;if((v=this.data)!=null&&v.flexibleItems){_.Z("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var E;this.flexAsTopLevelButtons=(E=this.data.flexibleItems)==null?void 0:E.map(function(n){return _.C(n,_.Kw1).topLevelButton});
_.Z("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.c.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.c.shrinkFlexibleMenu=function(){var v;(v=this.flexAsTopLevelButtons)!=null&&v.length&&(this.flexAsTopLevelButtons=[].concat(_.s8(this.flexAsTopLevelButtons.slice(0,-1))))};
_.c.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:S9S,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:S9S,events:!0}}};
_.c.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.c.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.c.detached=function(){this.icon="yt-icons:more_vert"};
_.c.computeTopLevelButtonData=function(v){if(!v)return[];var E;v=(E=v==null?void 0:v.topLevelButtons)!=null?E:[];return _.sh.unsafeClone([].concat(_.s8(v)))};
_.c.computeItems=function(v,E){if(!v)return[];var n=[];if(E){var f=(v.flexibleItems||[]).map(function(Q){return _.C(Q,_.Kw1)});
f=_.p(f);for(var x=f.next();!x.done;x=f.next())x=x.value,E.includes(x.topLevelButton)||(x=x.menuItem)&&n.push(x)}var y;v=(y=v==null?void 0:v.items)!=null?y:[];return[].concat(_.s8(n),_.s8(v))};
_.c.computeMenuActive=function(v,E){return v||E};
_.c.onPopupOpened=function(){this.overlayOpen=!0;_.jK(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.c.onPopupClosed=function(){this.overlayOpen=!1;_.jK(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.c.onPopupCanceled=function(){this.overlayOpen=!1;_.jK(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.c.computeAccessibilityLabel=function(v){return this.get("accessibility.accessibilityData.label",v)};
_.c.isHidden=function(v,E){return this.tonalOverride||!v?!0:v.fetchMenuCommand||v.isDisabled&&v.disabledCommand?!1:!(E==null?0:E.length)};
_.c.isModernOverflowHidden=function(v,E){return this.tonalOverride&&v?v.fetchMenuCommand?!1:!(E==null?0:E.length):!0};
_.c.createMenuRendererVe=function(){var v=this.data.trackingParams,E=_.lc(),n=_.bc();return v&&E&&n?(v=_.tx(v),n=_.ci(7591),_.Z("combine_ve_grafts")?_.t$(_.Tl(),n,v):_.aQ(E,v,n),n):null};
_.hK.Object.defineProperties(s$.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.flexAsTopLevelButtons)==null||!v.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
s$.prototype.onPopupCanceled=s$.prototype.onPopupCanceled;s$.prototype.onPopupClosed=s$.prototype.onPopupClosed;s$.prototype.onPopupOpened=s$.prototype.onPopupOpened;s$.prototype.tonalOverrideChanged=s$.prototype.tonalOverrideChanged;s$.prototype.resetFlexibleItems=s$.prototype.resetFlexibleItems;s$.prototype.setupFlexibleMenu=s$.prototype.setupFlexibleMenu;s$.prototype.iconButtonColorChanged=s$.prototype.iconButtonColorChanged;s$.prototype.updateButtonOverrides=s$.prototype.updateButtonOverrides;
_.k([_.h(_.YM),_.W("design:type",Object)],s$.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#button-shape"),_.W("design:type",Ws)],s$.prototype,"buttonShape",void 0);_.k([_.Wp("#button"),_.W("design:type",Object)],s$.prototype,"button",void 0);
_.k([_.H(),_.W("design:type",Object)],s$.prototype,"data",void 0);_.k([_.H({computed:"computeTopLevelButtonData(data)"}),_.W("design:type",Array)],s$.prototype,"topLevelButtonData",void 0);_.k([_.H(),_.W("design:type",Array)],s$.prototype,"flexAsTopLevelButtons",void 0);_.k([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.W("design:type",Array)],s$.prototype,"items",void 0);_.k([_.H({value:"yt-icons:more_vert"}),_.W("design:type",String)],s$.prototype,"icon",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"safeArea",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.W("design:type",Boolean)],s$.prototype,"menuActive",void 0);_.k([_.H(),_.W("design:type",Boolean)],s$.prototype,"menuFocused",void 0);_.k([_.H({value:"bottom"}),_.W("design:type",String)],s$.prototype,"buttonTooltipPosition",void 0);_.k([_.H(),_.W("design:type",Boolean)],s$.prototype,"overlayOpen",void 0);
_.k([_.H({value:!0}),_.W("design:type",Boolean)],s$.prototype,"forceIconButton",void 0);_.k([_.H(),_.W("design:type",Boolean)],s$.prototype,"styleActionButton",void 0);_.k([_.H(),_.W("design:type",Boolean)],s$.prototype,"disableTextTransformOnButtons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"tonalOverride",void 0);_.k([_.H(),_.W("design:type",Object)],s$.prototype,"threeDotSize",void 0);
_.k([_.H(),_.W("design:type",Object)],s$.prototype,"threeDotButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],s$.prototype,"isOverlay",void 0);_.k([_.H(),_.W("design:type",Object)],s$.prototype,"useOverlayDark",void 0);_.k([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.W("design:type",Object)],s$.prototype,"buttonOverride",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],s$.prototype,"hasCustomIconColor",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("flexAsTopLevelButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"hasFlexibleItems",null);_.k([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.W("design:type",Boolean)],s$.prototype,"hasItems",void 0);_.k([_.H(),_.W("design:type",Object)],s$.prototype,"topLevelIconsOnly",void 0);
_.k([_.On("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"updateButtonOverrides",null);_.k([_.A("topLevelIconsOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"buttonOverrides",null);_.k([_.Wp("#top-level-buttons-computed"),_.W("design:type",HTMLElement)],s$.prototype,"topLevelButtonsContainer",void 0);_.k([_.$y(".top-level-buttons > *"),_.W("design:type",Array)],s$.prototype,"topLevelButtons",void 0);
_.k([_.Wp("#flexible-item-buttons"),_.W("design:type",HTMLElement)],s$.prototype,"flexibleItemButtonsContainer",void 0);_.k([_.$y("#flexible-item-buttons > *"),_.W("design:type",Array)],s$.prototype,"flexibleItemButtons",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"iconButtonColorChanged",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"setupFlexibleMenu",null);_.k([_.Tw("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"resetFlexibleItems",null);_.k([_.On("tonalOverride"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"tonalOverrideChanged",null);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"onPopupOpened",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"onPopupClosed",null);_.k([_.jk("yt-popup-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"onPopupCanceled",null);
_.u(s$,"ytd-menu-renderer",function(){if(gnU===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);gnU=v}v=gnU;return v},{mode:_.HE("kevlar_poly_si_batch_j030")?1:2});var q9z;var JuX;_.jS=_.qu(function(v){var E=v.data;var n=function(){if(E().icon)a:{var f={iconName:E().icon};for(var x=_.P().resolve(_.Oe),y=_.p([12,24]),Q=y.next();!Q.done;Q=y.next()){var e=Q.value;Q=Object.assign({},f,{iconStyle:"youtube_fill",iconSize:e});e=Object.assign({},f,{iconStyle:"youtube_outline",iconSize:e});if(x.resolveIcon(Q)){f=Q;break a}if(x.resolveIcon(e)){f=e;break a}}f=void 0}else f=void 0;return f};
v={};return _.w("badge-shape",{class:_.W8("badge-shape-wiz",function(){return dtA(E().type)},(v["badge-shape-wiz--overlay"]=function(){return E().isOverlay},v["badge-shape-wiz--ads-include-dot"]=function(){return E().adsIncludeDot},v["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(E().type){case 16:case 17:case 18:var f=!0;
break a;default:f=!1}return f},v["badge-shape-wiz--status-badge"]=function(){a:switch(E().type){case 11:case 12:case 13:case 14:case 15:var f=!0;
break a;default:f=!1}return f},v["badge-shape-wiz--no-text"]=function(){return!E().text},v["badge-shape-wiz--modern"]=function(){return E().modern},v)),
style:_.tZ({"background-color":function(){var f;return(f=E().customColors)==null?void 0:f.backgroundColor}}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},_.w(_.x6,{cond:function(){return E().animation},
then:function(f){return _.w(_.$z,{className:"badge-shape-wiz__icon",data:f,animationName:function(){return f().animationConfig.name||""}})}}),_.w(_.x6,{cond:function(){var f;
return n()&&!((f=E())==null?0:f.animation)},
then:function(){return _.w("div",{class:"badge-shape-wiz__icon"},_.w(wCG,{data:function(){return n()}}))}}),_.w("div",{class:"badge-shape-wiz__text"},function(){var f;
return(f=E())==null?void 0:f.text}))},"K");
_.jS.idomCompat=!0;_.Yz(_.jS,"badge-shape",{props:{data:_.Kt}});var rz=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.animated=_.Z("animated_live_badge_icon");v.useBadgeShape=_.Z("web_badge_shape_defrag");return v};
_.S(rz,_.g);_.c=rz.prototype;_.c.addTooltips=function(){for(var v=_.K(this.hostElement).querySelectorAll(".badge"),E=0,n;n=v[E++];){var f=this.repeatElement.itemForElement(n);n=_.K(n);n.lastChild&&n.lastChild.is==="tp-yt-paper-tooltip"&&n.removeChild(n.lastChild);if(f=f.metadataBadgeRenderer&&f.metadataBadgeRenderer.tooltip){var x=_.VB("tp-yt-paper-tooltip");(0,_.gn)(x).textContent=f;x.setAttribute("position","top");n.appendChild(x)}}};
_.c.badgesChanged=function(){var v=this;_.qs().parkOrScheduleJob(function(){v.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.c.standaloneRoundedBadgeChanged=function(){var v=this.useRoundedBadge?this.useRoundedBadge:void 0;v&&(this.useRoundedBadge=v)};
_.c.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.c.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.c.computeStyle=function(v){_.Z("enable_html5_teal_ad_badge")&&v==="BADGE_STYLE_TYPE_AD"&&(v="badge-style-type-ad-alternate");_.Z("kevlar_ytb_live_badges")&&v==="BADGE_STYLE_TYPE_LIVE_NOW"&&(v="badge-style-type-live-now-alternate");return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeRole=function(v){return this.computeAriaLabel(v)?"img":"status"};
_.c.computeAriaLabel=function(v){var E;return(v==null?void 0:(E=v.accessibilityData)==null?void 0:E.label)||(v==null?void 0:v.label)};
_.c.computeBadgeShape=function(v){var E;if(v){var n,f=Jp9(v.style),x=KK1(v.style),y=v.label,Q=((n=v.accessibilityData)==null?void 0:n.label)||v.label;v=(E=v.icon)==null?void 0:E.iconType;E={type:f,brNzRatingBadgeType:x,text:y,accessibilityText:Q,icon:v!=="PREMIUM"?v:void 0}}else E={};return E};
_.c.updateComputedBadges=function(v,E,n){var f=this;(E=E?[E]:n?[n]:void 0)?this.computedBadges=E:this.computedBadges=v==null?void 0:v.filter(function(x){var y;if((y=x.metadataBadgeRenderer)==null?0:y.groups){y=!1;x=_.p(x.metadataBadgeRenderer.groups);for(var Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var e=void 0;y=y||((e=f.hiddenBadgeGroups)==null?void 0:e.includes(Q))}return!y}return!0})};
_.c.useFilledIcons=function(v){return _.Z("kevlar_system_icons")&&(v==="AUDIO_BADGE"||v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE"||v==="SPONSORSHIP_STAR"||v==="PERSON_RADAR_FILLED"||v==="PERSON_RADAR")};
_.c.computeIcon=function(v){var E,n;v=v==null?void 0:(E=v.metadataBadgeRenderer)==null?void 0:(n=E.icon)==null?void 0:n.iconType;if(v!=="PREMIUM"&&v)return _.jI(v)};
_.c.computeStandaloneBadge=function(v){var E;v=v==null?void 0:(E=v.icon)==null?void 0:E.iconType;return v==="PREMIUM_STANDALONE"||v==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
rz.prototype.hiddenBadgeGroupsChanged=rz.prototype.hiddenBadgeGroupsChanged;rz.prototype.standaloneBadgeChanged=rz.prototype.standaloneBadgeChanged;rz.prototype.standaloneRoundedBadgeChanged=rz.prototype.standaloneRoundedBadgeChanged;rz.prototype.badgesChanged=rz.prototype.badgesChanged;_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"hidden",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],rz.prototype,"componentBehavior",void 0);
_.k([_.H(),_.W("design:type",Array)],rz.prototype,"badges",void 0);_.k([_.H(),_.W("design:type",Object)],rz.prototype,"topStandaloneBadge",void 0);_.k([_.H(),_.W("design:type",Object)],rz.prototype,"bottomStandaloneBadge",void 0);_.k([_.H(),_.W("design:type",Object)],rz.prototype,"computedBadges",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"mediumFontAdBadge",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"useRoundedBadge",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"largeFontAdBadge",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"overlayAd",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"overlayPremium",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"noDotAdBadge",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"collectionTruncate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"isThumbnailBadge",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rz.prototype,"wrapBadges",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rz.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rz.prototype,"animated",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rz.prototype,"useBadgeShape",void 0);_.k([_.H({value:[]}),_.W("design:type",Array)],rz.prototype,"hiddenBadgeGroups",void 0);_.k([_.Wp("#repeat"),_.W("design:type",n5)],rz.prototype,"repeatElement",void 0);_.k([_.Tw("badges"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rz.prototype,"badgesChanged",null);
_.k([_.Tw("useRoundedBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rz.prototype,"standaloneRoundedBadgeChanged",null);_.k([_.Tw("topStandaloneBadge","bottomStandaloneBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rz.prototype,"standaloneBadgeChanged",null);_.k([_.Tw("hiddenBadgeGroups"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rz.prototype,"hiddenBadgeGroupsChanged",null);
rz=_.k([_.N({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],rz);
var KRF=_.Dj()(rz,"ytd-badge-supported-renderer",function(){if(JuX===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);JuX=v}v=JuX;return v},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.HE("kevlar_poly_si_batch_j053")?1:2});var PY=function(){var v=_.g.apply(this,arguments)||this;v.iconType="STAR";v.standardizeIconSize=_.Z("kevlar_system_icons");v.mediaHoverOverlayInitialVisibility=_.Z("enable_top_landscape_image_button_command_web");v.noBottomMargin=!1;v.thumbnailObjectFit="CONTAIN";v.thumbnailFitHeight=!0;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.S(PY,_.g);_.c=PY.prototype;
_.c.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"}}}};
_.c.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",PY.JSC$12403_DEFAULT_CLICK_LOCATION_BEHAVIOR,PY.JSC$12403_CLICK_LOCATION_ID_MAP))};
_.c.onTap=function(v){if(!_.Z("use_on_click_for_desktop_display_ad"))this.onTapOrClick(v)};
_.c.onClick=function(v){if(_.Z("use_on_click_for_desktop_display_ad"))this.onTapOrClick(v)};
_.c.onTapOrClick=function(v){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,v,!1)};
_.c.updateMediaBackgroundImage=function(){var v=this.get("data.image.thumbnail.thumbnails");v&&(v=_.hZ(v,0))&&_.NQ(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+v+")"})};
_.c.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var v=0;v<this.data.impressionEndpoints.length;v++){var E=this.data.impressionEndpoints[v];E.clickTrackingParams&&delete E.clickTrackingParams;_.P().resolve(_.OO).resolveCommand(E,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var n;((n=this.data)==null?0:n.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.c.handleMuteAd=function(){};
_.c.attached=function(){var v=this;_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.detached=function(){_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hK.Object.defineProperties(PY.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.titleText)return"";var E;return _.tQ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((E=this.data)==null?void 0:E.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.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 v;return!((v=this.data)==null||!v.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"}}});
PY.prototype.onClick=PY.prototype.onClick;PY.prototype.onTap=PY.prototype.onTap;PY.prototype.dataChanged=PY.prototype.dataChanged;
PY.JSC$12403_CLICK_LOCATION_ID_MAP=_.Z("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"]]);
PY.JSC$12403_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Z("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"}];_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.Z7),_.W("design:type",Object)],PY.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],PY.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],PY.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],PY.prototype,"ytdActiveViewBehavior",void 0);_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],PY.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],PY.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],PY.prototype,"clickCommand",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],PY.prototype,"miniMode",void 0);_.k([_.H(),_.W("design:type",String)],PY.prototype,"iconType",void 0);_.k([_.A("data.titleText"),_.W("design:type",String),_.W("design:paramtypes",[])],PY.prototype,"titleAriaLabel",null);
_.k([_.A("data.rating"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"getRating",null);_.k([_.A("data.price"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"getPrice",null);_.k([_.A("data.thirdLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"getThirdLine",null);_.k([_.A("data.fourthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"getFourthLine",null);
_.k([_.A("data.fifthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"getFifthLine",null);_.k([_.A("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computeRatingHidden",null);_.k([_.A("getPrice"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computePriceHidden",null);_.k([_.A("getThirdLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computeThirdLineHidden",null);
_.k([_.A("getFourthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computeFourthLineHidden",null);_.k([_.A("getFifthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computeFifthLineHidden",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.energyIcon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"hasEnergyIcon",null);
_.k([_.A("computePriceHidden","computeRatingHidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"computeSecondaryTextHidden",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PY.prototype,"standardizeIconSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PY.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PY.prototype,"noBottomMargin",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.layout"),_.W("design:type",String),_.W("design:paramtypes",[])],PY.prototype,"layout",null);_.k([_.A("data.layout"),_.W("design:type",Object),_.W("design:paramtypes",[])],PY.prototype,"mediaThumbnailWidth",null);_.k([_.A("layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PY.prototype,"useRoundedBadge",null);_.k([_.H(),_.W("design:type",String)],PY.prototype,"thumbnailObjectFit",void 0);
_.k([_.H(),_.W("design:type",Object)],PY.prototype,"thumbnailFitHeight",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PY.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PY.prototype,"onTap",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PY.prototype,"onClick",null);
PY=_.k([_.N({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],PY);
_.u(PY,"ytd-display-ad-renderer",function(){if(q9z!==void 0)return q9z;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return q9z=v},{mode:1});var dVg;var Ihg;var Y9g;var IWA=new Map;var hNl=!1;var aa=function(){var v=_.g.apply(this,arguments)||this;v.DEFAULT_TOOLTIP_OFFSET="10";v.TOOLTIP_OFFSET_NO_BANNER="-8";v.badges=null;v.noEndpoints=!1;v.wrapText=!1;v.forceVerified=!1;v.tooltipPosition="top";v.compactStyle=!1;v.height=0;v.lineHeight=0;return v};
_.S(aa,_.g);_.c=aa.prototype;_.c.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.c.attached=function(){var v=this;this.observer=new MutationObserver(function(E,n){v.handleResized();n.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.c.detached=function(){this.observer&&this.observer.disconnect()};
_.c.logTooltipEvent=function(){_.Z("kevlar_wiz_tooltip_event_killswitch")||hNl||(_.YNI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),hNl=!0)};
_.c.handleWindowResized=function(){this.handleResized()};
_.c.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")))};
_.c.onHeightChanged=function(){if(this.verified){var v=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.MX("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=v:this.textContainerEl.style.marginRight=v}};
_.c.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.MX("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.c.handleResized=function(){var v=this;this.verified&&_.wh.addLowPriorityJob(function(){v.fitBackgroundToText();var E=getComputedStyle(v.hostElement).lineHeight;E&&(E=E.match(/\d+/))&&E.length&&(v.lineHeight=Number(E[0]));v.height=v.lineHeight&&!v.wrapText?v.lineHeight:v.textEl.offsetHeight})};
_.c.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var v=document.createRange(),E=_.K(this.textEl).children;E.length>0?v.selectNodeContents(E[0]):v.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(v.getBoundingClientRect().width)+"px"}};
_.c.computeChannelBadgeStyle=function(v){var E;if((v==null?0:(E=v.runs)==null?0:E.length)&&v.runs[0].textColor)return"--ytd-badge-icon-color:"+_.p2(v.runs[0].textColor)+";"};
_.hK.Object.defineProperties(aa.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"?_.qD(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var v=this.get("badges.0.metadataBadgeRenderer.tooltip");if(v)return v}return _.JC(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
aa.prototype.onLineHeightChanged=aa.prototype.onLineHeightChanged;aa.prototype.onHeightChanged=aa.prototype.onHeightChanged;aa.prototype.onChannelNameChanged=aa.prototype.onChannelNameChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"badges",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"channelName",void 0);
_.k([_.H(),_.W("design:type",Object)],aa.prototype,"noEndpoints",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"wrapText",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"forceVerified",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"tooltipPosition",void 0);_.k([_.H(),_.W("design:type",String)],aa.prototype,"tooltip",void 0);_.k([_.H(),_.W("design:type",Boolean)],aa.prototype,"hasChannelArt",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],aa.prototype,"compactStyle",void 0);_.k([_.Wp("#text-container"),_.W("design:type",HTMLElement)],aa.prototype,"textContainerEl",void 0);_.k([_.Wp("#text"),_.W("design:type",Object)],aa.prototype,"textEl",void 0);_.k([_.Wp("#verified-tooltip"),_.W("design:type",HTMLElement)],aa.prototype,"verifiedTooltip",void 0);_.k([_.H(),_.W("design:type",Object)],aa.prototype,"height",void 0);
_.k([_.H(),_.W("design:type",Object)],aa.prototype,"lineHeight",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("badges","forceVerified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aa.prototype,"verified",null);_.k([_.A("badges","verified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aa.prototype,"hideBadges",null);_.k([_.A("channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],aa.prototype,"formattedName",null);
_.k([_.A("badges","verified","formattedName"),_.W("design:type",String),_.W("design:paramtypes",[])],aa.prototype,"tooltipText",null);_.k([_.A("hasChannelArt"),_.W("design:type",String),_.W("design:paramtypes",[])],aa.prototype,"tooltipOffset",null);_.k([_.On("channelName"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aa.prototype,"onChannelNameChanged",null);
_.k([_.On("height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aa.prototype,"onHeightChanged",null);_.k([_.On("lineHeight","height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aa.prototype,"onLineHeightChanged",null);aa=_.k([_.N({is:"ytd-channel-name",disableElementRegistration:!0})],aa);
_.u(aa,"ytd-channel-name",function(){if(Y9g!==void 0)return Y9g;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Y9g=v},{mode:_.HE("kevlar_poly_si_batch_j036")?1:2});var Z8=function(){var v=_.g.apply(this,arguments)||this;v.standardizeIconSize=_.Z("kevlar_system_icons");v.enableModernCommentBadges=_.Z("enable_modern_comment_badges");return v};
_.S(Z8,_.g);Z8.prototype.basicPaletteChanged=function(){var v;(v=this.data.color)!=null&&v.basicColorPaletteData&&_.Q3(this.hostElement,this.data.color.basicColorPaletteData)};
Z8.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var v,E=this.get("basicColorPaletteData.backgroundColor",(v=this.data)==null?void 0:v.color),n;v=this.get("basicColorPaletteData.foregroundTitleColor",(n=this.data)==null?void 0:n.color);n={};E?(E=_.p2(E),n["--ytd-author-comment-badge-background-color"]=E):(n["--ytd-author-comment-badge-icon-background-color"]="transparent",n["--ytd-author-comment-badge-background-color"]="transparent");v?(E=_.p2(v),n["--ytd-author-comment-badge-name-color"]=
E,n["--ytd-author-comment-badge-icon-color"]=E):n["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(n).length>0&&_.NQ(this.hostElement,n)}};
Z8.prototype.useFilledIcons=function(v){return _.Z("kevlar_system_icons")&&(v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE")};
_.hK.Object.defineProperties(Z8.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")}}});
Z8.prototype.colorChanged=Z8.prototype.colorChanged;Z8.prototype.basicPaletteChanged=Z8.prototype.basicPaletteChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Z8.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Z8.prototype,"standardizeIconSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Z8.prototype,"enableModernCommentBadges",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.authorUnifiedVerified"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"verified",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"creator",null);_.k([_.On("data.color.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z8.prototype,"basicPaletteChanged",null);
_.k([_.On("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z8.prototype,"colorChanged",null);Z8=_.k([_.N({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Z8);
_.u(Z8,"ytd-author-comment-badge-renderer",function(){if(Ihg!==void 0)return Ihg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ihg=v},{mode:1});var Aug;var Ci=function(){return _.g.apply(this,arguments)||this};
_.S(Ci,_.g);Ci.prototype.computeThumbnailWidth=function(v){if(v==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ci.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],Ci.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ci.prototype,"surface",void 0);
_.k([_.H({reflectToAttribute:!0,value:_.Z("enable_shrink_image_size_on_web_posts_singleton")}),_.W("design:type",Boolean)],Ci.prototype,"searchSxsUx",void 0);Ci=_.k([_.N({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Ci);
_.u(Ci,"ytd-backstage-image-renderer",function(){if(Aug!==void 0)return Aug;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Aug=v},{mode:1});var ViS;var Mv=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;v.selectedItemIndex=-1;return v};
_.S(Mv,_.g);_.c=Mv.prototype;_.c.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.c.computeIsImagePoll=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.c.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.c.thumbnailSrc=function(v){var E,n,f,x;return(v==null?0:(E=v.thumbnails)==null?0:(n=E[0])==null?0:n.url)?_.bW((f=v.thumbnails)==null?void 0:(x=f[0])==null?void 0:x.url):void 0};
_.c.progressWidth=function(v){return"width:"+(v?v*100:0)+"%;"};
_.c.textAreaWidth=function(v){return this.isImagePoll?null:"width:"+(v?v*100:0)+"%;"};
_.c.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.c.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var v=this.data.choices,E=0;E<v.length;E++)if(v[E].selected){this.selectedItemIndex=E;break}};
_.c.onPopupClosed=function(v,E){v=Number(this.pollVotes.selected);E.confirmed&&(this.selectChoice(v,!1),_.OL(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.c.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.c.onYtCommentPollRevert=function(v,E){E&&(this.selectChoice(E.selectedChoiceIndex,!0),this.set("data.totalVotes",E.totalVotes))};
_.c.onYtServiceRequestSent=function(v,E){if(E.actions)for(v=0;v<E.actions.length;v++){var n=E.actions[v];_.C(n,sk)&&this.set("data.totalVotes",_.C(n,sk).totalVotes)}};
_.c.onYtServiceRequestCompleted=function(v){var E=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.jK(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.c.getEndpoint=function(v,E){return E===v?this.data.choices[E].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.c.selectChoice=function(v,E){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var n=0;n<this.data.choices.length;n++){var f;if(v===this.selectedItemIndex){var x=!1;var y=f=null}else f=(x=n===v)?this.data.choices[n].voteRatioIfSelected:this.data.choices[n].voteRatioIfNotSelected,y=x?this.data.choices[n].votePercentageIfSelected:this.data.choices[n].votePercentageIfNotSelected;this.set("data.choices."+n+".voteRatio",f);
this.set("data.choices."+n+".votePercentage",y);this.set("data.choices."+n+".selected",x)}E||(this.isLoading=!0,(E=this.getEndpoint(v,this.selectedItemIndex))&&_.P().resolve(_.OO).resolveCommand(E,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.hK.Object.defineProperties(Mv.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Mv.prototype.onYtServiceRequestCompleted=Mv.prototype.onYtServiceRequestCompleted;Mv.prototype.onYtServiceRequestSent=Mv.prototype.onYtServiceRequestSent;Mv.prototype.onYtCommentPollRevert=Mv.prototype.onYtCommentPollRevert;Mv.prototype.onPopupClosed=Mv.prototype.onPopupClosed;Mv.prototype.dataChanged=Mv.prototype.dataChanged;_.k([_.h(_.uI),_.W("design:type",Object)],Mv.prototype,"paperItemBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],Mv.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Mv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Mv.prototype,"isLoading",void 0);_.k([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],Mv.prototype,"isChannelOwner",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.W("design:type",Boolean)],Mv.prototype,"isImagePoll",void 0);_.k([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],Mv.prototype,"isTotalVotesDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],Mv.prototype,"previousPollInfo",void 0);_.k([_.H(),_.W("design:type",Object)],Mv.prototype,"selectedItemIndex",void 0);_.k([_.Wp("#poll-votes"),_.W("design:type",Object)],Mv.prototype,"pollVotes",void 0);
_.k([_.A("isChannelOwner"),_.W("design:type",Object),_.W("design:paramtypes",[])],Mv.prototype,"endpointStyle",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Mv.prototype,"dataChanged",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Mv.prototype,"onPopupClosed",null);
_.k([_.jk("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Mv.prototype,"onYtCommentPollRevert",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Mv.prototype,"onYtServiceRequestSent",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Mv.prototype,"onYtServiceRequestCompleted",null);Mv=_.k([_.N({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Mv);
_.u(Mv,"ytd-backstage-poll-renderer",function(){if(ViS!==void 0)return ViS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ViS=v},{mode:2});var DVi;var HJU={autoplay:!1,loop:!1},gv1={simpleText:""},SL=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;v.usesPanelLockup=!1;v.selectedItemIndex=-1;v.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},HJU,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});v.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},HJU,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});v.correctnessAnimationProps=[];v.correctnessAnimationRefs=[];return v};
_.S(SL,_.g);_.c=SL.prototype;_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.c.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.c.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.c.computeIsImageQuiz=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.c.onExplanationChanged=function(){this.expander.reset()};
_.c.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var v=this.data.choices;if(v){this.maybeInitializeQuizLotties(v);for(var E=0;E<v.length;E++)if(v[E].isSelected||this.isChannelOwner&&v[E].isCorrect){this.selectedItemIndex=E;return}this.selectedItemIndex=-1}}};
_.c.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var v=this.selectedItemIndex,E=Number(this.quizVotes.selected);this.selectChoice(E);this.sendVoteAction(E,v);this.quizVotes.selected=-1;var n;v=!((n=this.data)==null?0:n.enableAnimation);this.maybePlayAnswerAnimations(v)}};
_.c.onYtCommentPollRevert=function(v,E){E&&(this.selectChoice(E.selectedChoiceIndex),this.set("data.totalVotes",E.totalVotes))};
_.c.onYtServiceRequestSent=function(v,E){if(E.actions)for(v=_.p(E.actions),E=v.next();!E.done;E=v.next())(E=_.C(E.value,sk))&&this.set("data.totalVotes",E.totalVotes)};
_.c.onYtServiceRequestCompleted=function(v){var E=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.jK(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.c.getAnimationPropsForChoiceIndex=function(v,E){return E[v]};
_.c.maybePlayAnswerAnimations=function(v){v=v===void 0?!1:v;var E;if((E=this.data)!=null&&E.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){E=_.p(this.correctnessAnimationRefs);for(var n=E.next();!n.done;n=E.next()){var f=void 0,x=void 0;(f=n.value)==null||(x=f.lottieEl)==null||x.stop()}if(!(this.selectedItemIndex<0)){E=0;v&&(E=this.isCorrect?37:25);var y,Q;(y=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Q=y.lottieEl)==null||Q.goToAndPlay(v?E:0,!0);if(!(this.isCorrect||
(y=this.data.choices.findIndex(function(l){return l.isCorrect}),y<0))){var e,F;
(F=(e=this.correctnessAnimationRefs[y])==null?void 0:e.lottieEl)==null||F.goToAndPlay(37,!0);var b;e=(b=this.fadeContainers)==null?void 0:b.item(y);!v&&e&&this.fadeIn(e)}}}};
_.c.thumbnailSrc=function(v){var E,n,f,x;return(v==null?0:(E=v.thumbnails)==null?0:(n=E[0])==null?0:n.url)?_.bW((f=v.thumbnails)==null?void 0:(x=f[0])==null?void 0:x.url):void 0};
_.c.a11yVotedText=function(v,E){var n,f,x=((n=this.data)==null?void 0:(f=n.correctVotedText)==null?void 0:f.simpleText)||"",y,Q;n=((y=this.data)==null?void 0:(Q=y.votedText)==null?void 0:Q.simpleText)||"";if(!E)return"";var e,F;if((e=this.data)==null?0:(F=e.choices)==null?0:F[v].isCorrect)return x;var b,l;return((b=this.data)==null?0:(l=b.choices)==null?0:l[v].isSelected)?n:""};
_.c.getEndpoint=function(v,E){return E===v?this.data.choices[v].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.c.sendVoteAction=function(v,E){if(v=this.getEndpoint(v,E))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(v)};
_.c.selectChoice=function(v){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++)this.set("data.choices."+E+".isSelected",v===this.selectedItemIndex?!1:E===v);this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.c.maybeInitializeQuizLotties=function(v){var E=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=v.map(function(n){return{animationConfig:n.isCorrect?E.baseCorrectLottiePlayerAnimationConfig:E.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){E.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(n){return n.animationRef||{}})};
_.c.fadeIn=function(v){v.classList.add("fade-in");_.H8(_.wh,function(){v.classList.remove("fade-in")},900)};
_.hK.Object.defineProperties(SL.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Z("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.JC(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 v,E;return((v=this.data)==null?void 0:(E=v.choices)==null?void 0:E.some(function(n){return n.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?gv1:this.data.choices[this.selectedItemIndex].explanation||gv1}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
SL.prototype.onYtServiceRequestCompleted=SL.prototype.onYtServiceRequestCompleted;SL.prototype.onYtServiceRequestSent=SL.prototype.onYtServiceRequestSent;SL.prototype.onYtCommentPollRevert=SL.prototype.onYtCommentPollRevert;SL.prototype.dataChanged=SL.prototype.dataChanged;SL.prototype.onExplanationChanged=SL.prototype.onExplanationChanged;_.k([_.h(_.uI),_.W("design:type",Object)],SL.prototype,"paperItemBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],SL.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.A1.YtTaskEmitterBehavior),_.W("design:type",Object)],SL.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],SL.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],SL.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],SL.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Object)],SL.prototype,"usesPanelLockup",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],SL.prototype,"isChannelOwner",void 0);_.k([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],SL.prototype,"isTotalVotesDisabled",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.W("design:type",Boolean)],SL.prototype,"isImageQuiz",void 0);_.k([_.H(),_.W("design:type",Object)],SL.prototype,"previousQuizInfo",void 0);_.k([_.H(),_.W("design:type",Object)],SL.prototype,"selectedItemIndex",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data","usesPanelLockup"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"shouldUseModernUi",null);
_.k([_.$y(".fade-container"),_.W("design:type",Object)],SL.prototype,"fadeContainers",void 0);_.k([_.H(),_.W("design:type",Array)],SL.prototype,"correctnessAnimationProps",void 0);_.k([_.A("explanation","showCorrectAnswer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"showExplanation",null);_.k([_.A("isChannelOwner","isAttempted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"showCorrectAnswer",null);
_.k([_.A("isChannelOwner","isAttempted","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"isQuizAnsweringDisabled",null);_.k([_.A("isQuizAnsweringDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],SL.prototype,"endpointStyle",null);_.k([_.A("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"isAttempted",null);
_.k([_.A("data","selectedItemIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],SL.prototype,"explanation",null);_.k([_.A("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SL.prototype,"isCorrect",null);_.k([_.Wp("ytd-expander"),_.W("design:type",Object)],SL.prototype,"expander",void 0);_.k([_.Wp("#quiz-votes"),_.W("design:type",Object)],SL.prototype,"quizVotes",void 0);
_.k([_.On("explanation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SL.prototype,"onExplanationChanged",null);_.k([_.On("data","isChannelOwner"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SL.prototype,"dataChanged",null);_.k([_.jk("yt-comment-quiz-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],SL.prototype,"onYtCommentPollRevert",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],SL.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],SL.prototype,"onYtServiceRequestCompleted",null);SL=_.k([_.N({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],SL);
_.u(SL,"ytd-backstage-quiz-renderer",function(){if(DVi!==void 0)return DVi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return DVi=v},{mode:1});var N8U;var U$=function(){return _.g.apply(this,arguments)||this};
_.S(U$,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],U$.prototype,"data",void 0);U$=_.k([_.N({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],U$);
_.u(U$,"ytd-post-uploaded-video-renderer",function(){if(N8U!==void 0)return N8U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return N8U=v},{mode:1});var uGS;var qv=function(){return _.g.apply(this,arguments)||this};
_.S(qv,_.g);qv.prototype.useFilledIcons=function(v){return v==="SPONSORSHIP_STAR"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qv.prototype,"data",void 0);qv=_.k([_.N({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],qv);
_.u(qv,"ytd-sponsors-only-badge-renderer",function(){if(uGS!==void 0)return uGS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uGS=v},{mode:1});var jNP;var JL=function(){return _.g.apply(this,arguments)||this};
_.S(JL,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],JL.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],JL.prototype,"data",void 0);JL=_.k([_.N({is:"ytd-child-video-renderer",disableElementRegistration:!0})],JL);
_.u(JL,"ytd-child-video-renderer",function(){if(jNP!==void 0)return jNP;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jNP=v},{mode:1});var OJw;var kH1;var Ki=function(){var v=_.g.apply(this,arguments)||this;v.size=0;v.enableWebModernCollectionsV2=_.Z("web_modern_collections_v2");v.fallbackImageSize={height:void 0,width:9999};v.webModernCollections=!1;return v};
_.S(Ki,_.g);_.c=Ki.prototype;_.c.computeBlurredImageSize=function(v){return v?{height:v*2,width:v*2}:this.fallbackImageSize};
_.c.computeImageSize=function(v){return v?{height:v,width:v}:this.fallbackImageSize};
_.c.computeObjectFit=function(v){return v?"FILL":"CONTAIN"};
_.c.computePreserve=function(v){return v?!0:!1};
_.c.setBackground=function(){var v,E;_.Z("web_modern_collections_v2")&&((v=this.data)==null?0:(E=v.thumbnail)==null?0:E.sampledThumbnailColor)&&(v=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+v.red+","+v.green+","+v.blue+",1)")};
Ki.prototype.setBackground=Ki.prototype.setBackground;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ki.prototype,"watchFeedThumbnail",void 0);_.k([_.H(),_.W("design:type",Object)],Ki.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Ki.prototype,"size",void 0);
_.k([_.H({computed:"computeBlurredImageSize(size)"}),_.W("design:type",Object)],Ki.prototype,"blurredImageSize",void 0);_.k([_.H({computed:"computeImageSize(size)"}),_.W("design:type",Object)],Ki.prototype,"imageSize",void 0);_.k([_.H({computed:"computePreserve(size)"}),_.W("design:type",String)],Ki.prototype,"preserve",void 0);_.k([_.H({computed:"computeObjectFit(size)"}),_.W("design:type",String)],Ki.prototype,"objectFit",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ki.prototype,"enableWebModernCollectionsV2",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ki.prototype,"webModernCollections",void 0);_.k([_.On("data.thumbnail.sampledThumbnailColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ki.prototype,"setBackground",null);Ki=_.k([_.N({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Ki);
_.u(Ki,"ytd-playlist-custom-thumbnail-renderer",function(){if(kH1!==void 0)return kH1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return kH1=v},{mode:1});var WRX;var dz=function(){return _.g.apply(this,arguments)||this};
_.S(dz,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dz.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],dz.prototype,"width",void 0);dz=_.k([_.N({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],dz);
_.u(dz,"ytd-playlist-video-thumbnail-renderer",function(){if(WRX!==void 0)return WRX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return WRX=v},{mode:1});var $V4;var Ia=function(){return _.g.apply(this,arguments)||this};
_.S(Ia,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ia.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],Ia.prototype,"width",void 0);Ia=_.k([_.N({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Ia);
_.u(Ia,"ytd-show-custom-thumbnail-renderer",function(){if($V4!==void 0)return $V4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return $V4=v},{mode:1});var LRw;var YU=function(){return _.g.apply(this,arguments)||this};
_.S(YU,_.g);YU.prototype.useFilledIcons=function(v){return v==="MUSIC"||v==="COURSE"};
YU.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=XJ(this.overlayColor,"0.8");else if(this.overlayColor){var v=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+v.red+","+v.green+","+v.blue+",0.8)"}};
_.hK.Object.defineProperties(YU.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)}}});
YU.prototype.overlayColorChanged=YU.prototype.overlayColorChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YU.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],YU.prototype,"overlayColor",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],YU.prototype,"overlayStyle",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],YU.prototype,"overlayTextStyle",null);_.k([_.On("overlayColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YU.prototype,"overlayColorChanged",null);YU=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],YU);
_.u(YU,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(LRw!==void 0)return LRw;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return LRw=v},{mode:1});var GHl;var hL=function(){var v=_.g.apply(this,arguments)||this;v.active=!1;return v};
_.S(hL,_.g);hL.prototype.computeIsSpinnerHidden=function(v){return(v==null?void 0:v.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
hL.prototype.computeOverlayIcon=function(v){return(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hL.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],hL.prototype,"active",void 0);hL=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],hL);
_.u(hL,"ytd-thumbnail-overlay-downloading-renderer",function(){if(GHl!==void 0)return GHl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return GHl=v},{mode:1});var T81;var AL=function(){return _.g.apply(this,arguments)||this};
_.S(AL,_.g);_.hK.Object.defineProperties(AL.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],AL.prototype,"data",void 0);_.k([_.A("data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],AL.prototype,"text",null);AL=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],AL);
_.u(AL,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(T81!==void 0)return T81;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return T81=v},{mode:1});var iJF,zNS=function(){if(iJF!==void 0)return iJF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return iJF=v};var VU=function(){return _.g.apply(this,arguments)||this};
_.S(VU,_.g);_.hK.Object.defineProperties(VU,{template:{configurable:!0,enumerable:!0,get:function(){return zNS()}}});
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],VU.prototype,"animateEqualizer",void 0);VU=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],VU);_.Dj()(VU,"ytd-thumbnail-overlay-equalizer",function(){return zNS()},{allowedProps:["animateEqualizer"],
mode:1});var RNS;var D8=function(){var v=_.g.apply(this,arguments)||this;v.nowPlayingBadge=_.Z("web_now_playing_badge");v.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return v};
_.S(D8,_.g);D8.prototype.activeChanged=function(){var v=this;_.Z("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.IS(this,function(){_.jK(v.hostElement,"yt-playlist-lockup-now-playing-active",v)})};
D8.prototype.onMiniplayerPlayStateChanged=function(v){var E,n=(E=_.C(_.xo().currentEndpoint,_.dM))==null?void 0:E.videoId;this.isVideoPlaying=v&&(_.Z("web_limit_now_playing_animation_killswitch")||this.videoId===n)};
D8.prototype.activeChanged=D8.prototype.activeChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],D8.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],D8.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],D8.prototype,"isVideoPlaying",void 0);_.k([_.H(),_.W("design:type",String)],D8.prototype,"videoId",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],D8.prototype,"equalizerOnly",void 0);_.k([_.H(),_.W("design:type",Boolean)],D8.prototype,"isActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],D8.prototype,"nowPlayingBadge",void 0);_.k([_.On("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D8.prototype,"activeChanged",null);
D8=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],D8);
_.u(D8,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(RNS!==void 0)return RNS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RNS=v},{mode:1});var tig;var HY=function(){return _.g.apply(this,arguments)||this};
_.S(HY,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],HY.prototype,"data",void 0);HY=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],HY);
_.u(HY,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(tig!==void 0)return tig;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return tig=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var B8i;var gz=function(){return _.g.apply(this,arguments)||this};
_.S(gz,_.g);gz.prototype.onDurationChanged=function(){var v,E;_.K(this.hostElement).querySelector("#progress").style.width=((E=(v=this.data)==null?void 0:v.percentDurationWatched)!=null?E:0)+"%"};
gz.prototype.onDurationChanged=gz.prototype.onDurationChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],gz.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gz.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],gz.prototype,"isLive",void 0);_.k([_.On("data.percentDurationWatched"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gz.prototype,"onDurationChanged",null);
gz=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],gz);
_.u(gz,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(B8i!==void 0)return B8i;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return B8i=v},{mode:1});var vdS;var Nv=function(){var v=_.g.apply(this,arguments)||this;v.bottomPanel=!1;v.richGridOverlay=!1;v.watchFeedOverlay=!1;v.isCompact=!1;return v};
_.S(Nv,_.g);Nv.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.hK.Object.defineProperties(Nv.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.icon)==null?void 0:E.iconType)==="PLAY_ALL"&&_.Z("kevlar_system_icons")}}});
Nv.prototype.widthChanged=Nv.prototype.widthChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Nv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],Nv.prototype,"width",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Nv.prototype,"bottomPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Nv.prototype,"richGridOverlay",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Nv.prototype,"watchFeedOverlay",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Nv.prototype,"isCompact",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Nv.prototype,"isIconFilled",null);_.k([_.On("width","watchFeedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nv.prototype,"widthChanged",null);
Nv=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Nv);
_.u(Nv,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(vdS!==void 0)return vdS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vdS=v},{mode:1});var Ed6;var nd4=["CLIP","SHORTS"],ud=function(){var v=_.g.apply(this,arguments)||this;v.animated=_.Z("animated_live_badge_icon");v.hasIcon=!1;v.updateTimerIntervalId=0;v.timeSinceLive=0;return v};
_.S(ud,_.g);_.c=ud.prototype;_.c.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.c.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.c.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.c.hasIconOrText=function(){var v,E;return!!(((v=this.data)==null?0:v.icon)||((E=this.data)==null?0:E.text))};
_.c.initializeLiveBadgeTimer=function(){var v=this,E,n=(E=this.liveBadgeData)==null?void 0:E.startTimestampSec;if(n&&this.canShowLiveBadgeTimer()){var f;E=Number((f=this.liveBadgeData)==null?void 0:f.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(n);this.updateTimerIntervalId=_.i5(function(){v.canShowLiveBadgeTimer()?v.timeSinceLive++:(v.timeSinceLive=0,window.clearInterval(v.updateTimerIntervalId))},E)}else this.timeSinceLive=0};
_.c.canShowLiveBadgeTimer=function(){var v=Date.now(),E,n;return v<(Number((E=this.liveBadgeData)==null?void 0:E.endTimestampSec)-1)*1E3&&v>Number((n=this.liveBadgeData)==null?void 0:n.startTimestampSec)*1E3};
_.hK.Object.defineProperties(ud.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data;var E=this.timeSinceLive;var n,f,x,y;a:{var Q=v.style;if(Q===void 0)Q=16;else switch(Q){case "LIVE":Q=17;break a;default:Q=16}}E={type:Q,text:E?ooE({seconds:E}):_.JC(v.text),accessibilityText:(n=v.text)==null?void 0:(f=n.accessibility)==null?void 0:(x=f.accessibilityData)==null?void 0:x.label,icon:(y=v.icon)==null?void 0:y.iconType}}else E={};return E}},
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 v;return(v=this.data)==null?void 0:v.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 nd4.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ud.prototype.initializeLiveBadgeTimer=ud.prototype.initializeLiveBadgeTimer;ud.prototype.dataChanged=ud.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ud.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ud.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],ud.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],ud.prototype,"animated",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.W("design:type",Boolean)],ud.prototype,"hideTimeStatus",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ud.prototype,"hasIcon",void 0);_.k([_.H(),_.W("design:type",Object)],ud.prototype,"timeSinceLive",void 0);_.k([_.A("data","timeSinceLive"),_.W("design:type",Object),_.W("design:paramtypes",[])],ud.prototype,"badgeShapeData",null);
_.k([_.A("data","overlayType"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ud.prototype,"hideBadgeShape",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ud.prototype,"dataChanged",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],ud.prototype,"overlayStyle",null);
_.k([_.A("data.liveBadgeData"),_.W("design:type",Object),_.W("design:paramtypes",[])],ud.prototype,"liveBadgeData",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.type"),_.W("design:type",Object),_.W("design:paramtypes",[])],ud.prototype,"overlayType",null);_.k([_.A("overlayType","overlayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ud.prototype,"useFilledIcon",null);
_.k([_.Tw("liveBadgeData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ud.prototype,"initializeLiveBadgeTimer",null);ud=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ud);
_.u(ud,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Ed6!==void 0)return Ed6;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ed6=v},{mode:_.HE("kevlar_poly_si_batch_j035")?1:2});var odU;var jL=function(){return _.g.apply(this,arguments)||this};
_.S(jL,_.g);jL.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"}}}}};
jL.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(v){if(this.hasPlaybackProgressBar)return{percentDurationWatched:v.percentDurationWatched}};
jL.prototype.computeHasPlaybackProgressBar=function(v){return!!v.percentDurationWatched&&v.percentDurationWatched>0};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jL.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.W("design:type",Boolean)],jL.prototype,"hasPlaybackProgressBar",void 0);
jL=_.k([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],jL);
_.u(jL,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(odU!==void 0)return odU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return odU=v},{mode:1});var fW4;_.Nw(VnF);var xt4=_.qu(function(v){var E=v.data;var n=v.children;var f=function(){return!!E().doubleStack};
return _.w("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!E().experimentEnabled}},_.w(_.x6,{cond:E,
then:function(){return _.w("div",null,_.w(_.x6,{cond:f,then:function(){var x={};return _.w("div",{class:_.W8("collections-stack-wiz__collection-stack2",function(){return E().customClassName2ndStack},(x["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return E().enableResponsiveMode},x)),
style:_.tZ({"background-color":function(){return hhs(E())}})})}}),_.w("div",{class:_.W8("collections-stack-wiz__collection-stack1",function(){return E().customClassName1stStack},function(){return ApE(E().thumbnailSize?E().thumbnailSize:"medium")}),
style:_.tZ({"background-color":function(){return hhs(E())}})}),n)}}))},"L");_.Yz(xt4,"yt-collections-stack",{props:{data:_.Kt}});var O$=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};v.webModernCollections=!1;v.isSearch=!1;v.isDoubleStack=!1;v.thumbnailSize="medium";v.enableWebModernCollectionsV2=_.Z("web_modern_collections_v2");return v};
_.S(O$,_.g);_.c=O$.prototype;
_.c.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]]"}}}}}};
_.c.getThumbnailDetails=function(v){if(v!=null&&v.thumbnailRenderer){var E=v.thumbnailRenderer,n;if((n=E.playlistVideoThumbnailRenderer)==null?0:n.thumbnail)return E.playlistVideoThumbnailRenderer.thumbnail;var f;if((f=E.playlistCustomThumbnailRenderer)==null?0:f.thumbnail)return E.playlistCustomThumbnailRenderer.thumbnail;v=v.thumbnailRenderer;var x;if((x=v.showCustomThumbnailRenderer)==null?0:x.thumbnail)return v.showCustomThumbnailRenderer.thumbnail}};
_.c.computeOverlayColor=function(v){var E,n;if((E=this.getThumbnailDetails(v))==null?0:(n=E.darkColorPalette)==null?0:n.section2Color)return this.getThumbnailDetails(v).darkColorPalette.section2Color;var f;return(f=this.getThumbnailDetails(v))==null?void 0:f.sampledThumbnailColor};
_.c.computeWebModernCollections=function(v){if(v==null||!v.thumbnailOverlays)return!1;v=_.p(v.thumbnailOverlays);for(var E=v.next();!E.done;E=v.next()){var n=void 0;if((n=E.value)==null?0:n.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.c.computeNavigationEndpoint=function(v){return yTX(v==null?void 0:v.navigationEndpoint)};
_.hK.Object.defineProperties(O$.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:v==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:v==null?void 0:v.vibrantColorPalette,darkColorPalette:v==null?void 0:v.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(Q3z),_.W("design:type",Object)],O$.prototype,"ytdThumbnailBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],O$.prototype,"componentBehavior",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],O$.prototype,"watchFeedThumbnail",void 0);_.k([_.H(),_.W("design:type",Number)],O$.prototype,"customThumbnailSize",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],O$.prototype,"hideAria",void 0);_.k([_.H(),_.W("design:type",Object)],O$.prototype,"data",void 0);_.k([_.H({computed:"computeOverlayColor(data)"}),_.W("design:type",Object)],O$.prototype,"overlayColor",void 0);
_.k([_.H({computed:"computeWebModernCollections(data)"}),_.W("design:type",Object)],O$.prototype,"webModernCollections",void 0);_.k([_.H({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],O$.prototype,"computedNavigationEndpoint",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],O$.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],O$.prototype,"isDoubleStack",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],O$.prototype,"thumbnailSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],O$.prototype,"enableWebModernCollectionsV2",void 0);_.k([_.A("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],O$.prototype,"collectionStack",null);O$=_.k([_.N({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],O$);
_.u(O$,"ytd-playlist-thumbnail",function(){if(fW4!==void 0)return fW4;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return fW4=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var cpl;var kU=function(){var v=_.g.apply(this,arguments)||this;v.noEndpoints=!1;v.amsterdamPostMvp=_.Z("web_amsterdam_post_mvp_playlists");v.badges=[];v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.S(kU,_.g);_.c=kU.prototype;_.c.getMetadata=function(v){if(!v)return[];var E=[],n=v.shortViewCountText||v.viewCountText;n&&E.push(_.JC(n));v.publishedTimeText&&E.push(_.JC(v.publishedTimeText));v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&E.push(_.Ml(_.JC(v.upcomingEventData.upcomingEventText),Number(v.upcomingEventData.startTime)));return E};
_.c.observeDataForBylineSeparator=function(){this.data&&_.Vt(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.c.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.p2(this.metadataColor)};
_.c.getSimpleString=function(v){return _.JC(v)};
_.c.isBylineHidden=function(v){return this.noByline||!((v==null?0:v.longBylineText)||(v==null?0:v.shortBylineText))};
_.c.isMetadataHidden=function(v){var E;return((E=this.getMetadata(v))==null?void 0:E.length)===0};
_.c.isBylineMetadataSeparatorHidden=function(v){return this.isMetadataHidden(v)||!this.shouldShowVideoInfo};
_.c.isLongByline=function(v,E){return E&&!(v==null||!v.longBylineText)};
_.hK.Object.defineProperties(kU.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var v;return this.amsterdamPostMvp&&!((v=this.data)==null||!v.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 _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
kU.prototype.metadataColorChanged=kU.prototype.metadataColorChanged;kU.prototype.observeDataForBylineSeparator=kU.prototype.observeDataForBylineSeparator;_.k([_.h(_.PL),_.W("design:type",Object)],kU.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kU.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],kU.prototype,"noEndpoints",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"isSlimShort",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"radioMeta",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],kU.prototype,"isGridViewEnabled",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"richMeta",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],kU.prototype,"amsterdamPostMvp",void 0);_.k([_.H(),_.W("design:type",Boolean)],kU.prototype,"noByline",void 0);
_.k([_.H({computed:"isLongByline(data, radioMeta)"}),_.W("design:type",Boolean)],kU.prototype,"longByline",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"truncateMetadataLine",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"miniMode",void 0);_.k([_.H(),_.W("design:type",Number)],kU.prototype,"metadataColor",void 0);_.k([_.H(),_.W("design:type",Array)],kU.prototype,"badges",void 0);
_.k([_.H({selector:_.bx,selectorArgs:["data.videoId"]}),_.W("design:type",String)],kU.prototype,"transferState",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"isDownloading",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"typographyBump",void 0);_.k([_.Wp("#metadata-line"),_.W("design:type",HTMLElement)],kU.prototype,"metadataLine",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kU.prototype,"observeDataForBylineSeparator",null);_.k([_.On("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kU.prototype,"metadataColorChanged",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],kU.prototype,"shouldShowVideoInfo",null);
_.k([_.A("badges"),_.W("design:type",String),_.W("design:paramtypes",[])],kU.prototype,"inlineBadgeClass",null);_.k([_.A("longByline"),_.W("design:type",String),_.W("design:paramtypes",[])],kU.prototype,"longBylineClass",null);_.k([_.A("data","longByline"),_.W("design:type",Object),_.W("design:paramtypes",[])],kU.prototype,"bylineText",null);_.k([_.A("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kU.prototype,"watchFeedBigThumbs",null);
kU=_.k([_.N({is:"ytd-video-meta-block",disableElementRegistration:!0})],kU);
_.u(kU,"ytd-video-meta-block",function(){if(cpl!==void 0)return cpl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cpl=v},{mode:_.HE("kevlar_poly_si_batch_j080")?1:2});_.ew("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var WY=function(){var v=_.g.apply(this,arguments)||this;v.displayItemCount=2;v.isBackstagePlaylist=!1;v.isPostCompactPlaylist=!1;v.shouldShowChannelThumbnail=!1;v.useModernCollectionsV2=_.Z("web_modern_collections_v2");return v};
_.S(WY,_.g);_.c=WY.prototype;_.c.computeFirstVideos=function(v,E){return v===void 0||E===void 0?[]:v.slice(0,E)};
_.c.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var v=this.data.thumbnailRenderer;v.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",v.playlistVideoThumbnailRenderer.thumbnail);v.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",v.playlistCustomThumbnailRenderer.thumbnail)}};
_.c.computeThumbnailHeight=function(v,E,n,f,x){return f?x==="BIG"?280:x==="MASSIVE"?337:234:n?240:E?72:v?118:138};
_.c.computeThumbnailWidth=function(v,E,n,f,x){return f?x==="MEDIUM"?450:x==="BIG"?500:x==="MASSIVE"?600:420:n?360:E?128:v?210:246};
_.c.computeUseBiggerThumbs=function(v){return v&&_.Z("enable_desktop_search_bigger_thumbs")};
_.c.computeShouldShowChannelThumbnail=function(v,E){return v&&!(E==null||!E.channelThumbnail)};
_.hK.Object.defineProperties(WY.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
WY.prototype.dataChanged=WY.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],WY.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],WY.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WY.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],WY.prototype,"displayItemCount",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WY.prototype,"isBackstagePlaylist",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WY.prototype,"isPostCompactPlaylist",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],WY.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.W("design:type",Boolean)],WY.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],WY.prototype,"biggerThumbsStyle",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],WY.prototype,"isDownloads",void 0);_.k([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.W("design:type",Object)],WY.prototype,"shouldShowChannelThumbnail",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WY.prototype,"useModernCollectionsV2",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WY.prototype,"dataChanged",null);_.k([_.A("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],WY.prototype,"stackThumbnailSize",null);WY=_.k([_.N({is:"ytd-playlist-renderer",disableElementRegistration:!0})],WY);
_.u(WY,"ytd-playlist-renderer",function(){if(OJw===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);OJw=v}v=OJw;return v},{mode:1});var ypS;var pc1;var $U=function(){var v=_.g.apply(this,arguments)||this;v.collections=!!_.Z("web_modern_collections_v2");v.startX=0;return v};
_.S($U,_.g);$U.prototype.onEndpointMouseDown=function(v){this.startX=v.clientX};
$U.prototype.onEndpointClick=function(v){this.startX!==v.clientX&&(v.preventDefault(),v.stopPropagation())};
$U.prototype.computeObjectFit=function(v){return v==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
$U.prototype.computeCardStyle=function(v){return v?v.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.hK.Object.defineProperties($U.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var v,E;return this.collections&&((v=this.data)==null?void 0:(E=v.searchRefinementCardRendererStyle)==null?void 0:E.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}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$U.prototype,"data",void 0);_.k([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",Number)],$U.prototype,"objectFit",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",String)],$U.prototype,"cardStyle",void 0);
_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],$U.prototype,"roundContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],$U.prototype,"collections",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$U.prototype,"isAlbumCard",null);_.k([_.A("data","collections","isAlbumCard"),_.W("design:type",Object),_.W("design:paramtypes",[])],$U.prototype,"collectionStack",null);
$U=_.k([_.N({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],$U);
_.u($U,"ytd-search-refinement-card-renderer",function(){if(pc1!==void 0)return pc1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return pc1=v},{mode:1});var Qwi;var Li=function(){var v=_.g.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.S(Li,_.g);_.k([_.H(),_.W("design:type",Object)],Li.prototype,"data",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Li.prototype,"componentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Li.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Li.prototype,"isRichGrid",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],Li.prototype,"miniMode",void 0);
Li=_.k([_.N({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Li);
_.u(Li,"ytd-game-details-renderer",function(){if(Qwi!==void 0)return Qwi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Qwi=v},{mode:1});var Xc4;var ehi;var GR=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return v};
_.S(GR,_.g);_.c=GR.prototype;_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.currentStateData=function(v){var E=v||this.data;return E&&E.states&&E.currentStateId!=null?E.states.find(function(n){return n.stateId===E.currentStateId})||null:null};
_.c.currentStateRendererData=function(v){return(v=this.currentStateData(v))&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.c.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())};
_.c.computeButtonIcon=function(v){v=this.currentStateRendererData(v);var E;return(v==null?0:(E=v.icon)==null?0:E.iconType)?v.icon.iconType.toLowerCase():null};
_.c.computeAccessibility=function(v){return(v=this.currentStateRendererData(v))&&v.accessibilityData?v.accessibilityData.accessibilityData||null:null};
_.c.computeButtonClass=function(v){var E=this.currentStateRendererData(v);if(!E)return"";v="";var n=E.style;n&&(v+=n.toLowerCase().replace(/_/g,"-")+" ");(E=E.size)&&(v+=E.toLowerCase().replace(/_/g,"-")+" ");return v.trim()};
_.c.computeServiceEndpoint=function(v){if(!v)return null;var E=v&&v.serviceEndpoint,n=this.get("command.commandMetadata.webCommandMetadata.sendPost",v);return E?E:n&&v.command?v.command:null};
_.c.computeBellMenuItemParams=function(v){var E;v=(E=_.C(v==null?void 0:v.command,_.Tn))==null?void 0:E.commands;if(!v||v.length===0)return null;E=_.C(v[0],_.rR);var n,f;return(E==null?0:(n=E.popup)==null?0:(f=n.menuPopupRenderer)==null?0:f.items)?E.popup.menuPopupRenderer.items.map(function(x){return x.menuServiceItemRenderer.trackingParams}):null};
_.c.handleBellMenuOpenSelectedAction=function(v){var E=v.trackingParams,n=this.computeBellMenuItemParams(this.data);this.data&&E&&n&&n.includes(E)&&this.ytRenderButtonBehavior._setButtonIcon(v.icon.iconType.toLowerCase())};
_.c.onYtServiceRequestCompleted=function(v,E){(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))&&this.set("data",v)};
_.c.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.c.resetState=function(){this.set("data.currentStateId",3)};
_.c.onYtButtonTapHandler=function(){if(this.data){var v=this.currentStateRendererData(this.data);v&&this.ytRendererBehavior.logExplicitClick(v)}};
GR.prototype.onYtServiceRequestError=GR.prototype.onYtServiceRequestError;GR.prototype.onYtServiceRequestCompleted=GR.prototype.onYtServiceRequestCompleted;GR.prototype.stateChanged=GR.prototype.stateChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(t1.YtRenderButtonBehavior),_.W("design:type",Object)],GR.prototype,"ytRenderButtonBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GR.prototype,"data",void 0);_.k([_.Tw("data","data.currentStateId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GR.prototype,"stateChanged",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],GR.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GR.prototype,"onYtServiceRequestError",null);GR=_.k([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],GR);
_.u(GR,"ytd-subscription-notification-toggle-button-renderer",function(){if(ehi!==void 0)return ehi;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ehi=v},{mode:1});var FKF;var TR=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};v.tapHandler=function(){if(v.data){var E=v.currentStateRendererData();E&&v.ytRendererBehavior.logExplicitClick(E)}};
return v};
_.S(TR,_.g);_.c=TR.prototype;_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.currentStateData=function(){var v=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(E){return E.stateId===v.data.currentStateId})||null:null};
_.c.currentStateRendererData=function(){var v=this.currentStateData();return v&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.c.computeAccessibilityLabel=function(){var v,E,n;return(v=this.currentStateRendererData())==null?void 0:(E=v.accessibilityData)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label};
_.c.computeBellMenuItemParams=function(){var v,E,n=(E=_.C((v=this.data)==null?void 0:v.command,_.Tn))==null?void 0:E.commands;if(!n||n.length===0)return null;v=_.C(n[0],_.rR);var f,x;return(v==null?0:(f=v.popup)==null?0:(x=f.menuPopupRenderer)==null?0:x.items)?v.popup.menuPopupRenderer.items.map(function(y){return y.menuServiceItemRenderer.trackingParams}):null};
_.c.handleBellMenuOpenSelectedAction=function(v){var E=v.trackingParams,n=this.computeBellMenuItemParams();if(this.data&&E&&n&&n.includes(E)&&(v==null||!v.isDisabled)){var f;((f=_.C(v.serviceEndpoint,_.zn))==null?void 0:f.signal)!=="CLIENT_SIGNAL"&&(this.icon=v.icon.iconType)}};
_.c.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.c.onYtServiceRequestCompleted=function(v,E){if(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))this.icon=void 0,this.set("data",v)};
_.c.onYtServiceRequestError=function(){this.icon=void 0};
_.hK.Object.defineProperties(TR.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data,E=this.textLabel,n=this.hostElement,f=this.computeAccessibilityLabel(),x=this.tapHandler,y=this.isOverlay?"overlay":"mono",Q=(v==null?0:v.disableButton)?"disabled":"active";E=E?_.yI(E):void 0;return{style:y,type:"tonal",state:Q,size:"M",focused:!1,formattedButtonText:E,iconPosition:"leading-trailing",onTap:gd1(v,x,n),accessibilityLabel:f}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.currentStateRendererData(),E,n,f=(n=this.icon)!=null?n:v==null?void 0:(E=v.icon)==null?void 0:E.iconType;if(f)return _.jI(f)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.secondaryIcon)==null?void 0:E.iconType;if(n)return _.jI(n)}}});
TR.prototype.onYtServiceRequestError=TR.prototype.onYtServiceRequestError;TR.prototype.onYtServiceRequestCompleted=TR.prototype.onYtServiceRequestCompleted;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TR.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],TR.prototype,"textLabel",void 0);
_.k([_.H(),_.W("design:type",String)],TR.prototype,"icon",void 0);_.k([_.H(),_.W("design:type",Boolean)],TR.prototype,"isOverlay",void 0);_.k([_.A("data.*","textLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],TR.prototype,"computedButtonShape",null);_.k([_.A("data.*","icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],TR.prototype,"computedIcon",null);_.k([_.A("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],TR.prototype,"computedSecondaryIcon",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],TR.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],TR.prototype,"onYtServiceRequestError",null);TR=_.k([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],TR);
_.u(TR,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(FKF!==void 0)return FKF;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return FKF=v},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var mtX;_.Z("web_enable_sink_animated_actions")?_.Yz(ptw,"yt-animated-action",{props:{backgroundLottieRef:_.Kt,foregroundLottieRef:_.Kt,wrapperClass:_.Kt,disableAnimation:_.Kt},unsafeExternallySettableAttributes:new Set(["key"])}):_.uj(ruF,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var id=function(){var v=_.g.apply(this,arguments)||this;v.animatedActionEnabled=_.Z("web_animated_actions");v.foregroundLottieRef={};v.backgroundLottieRef={};v.forceIconOnly=!1;v.showTextWhileAnimating=!1;v.keyboardFocused=!1;v.isAnimating=!1;v.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return v};
_.S(id,_.g);_.c=id.prototype;_.c.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.c.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]]"}}}}}};
_.c.attached=function(){this.keyboardFocused=!1};
_.c.onYtServiceRequestSent=function(v,E){(this.get("endpoint.subscribeEndpoint",E)||this.get("endpoint.unsubscribeEndpoint",E))&&this.updateSubscriptionState(!this.subscribed)};
_.c.onYtServiceRequestCompleted=function(v,E){(v=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",E.data))&&this.bellButton&&(this.bellButton.data=v)};
_.c.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.NQ(this.hostElement)};
_.c.onPlayerSubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.c.onPlayerUnsubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||this.updateSubscriptionState(!1)};
_.c.handleUpdateSubscribeButtonAction=function(v){v=_.C(v,lhL);var E;v&&v.channelId===((E=this.data)==null?void 0:E.channelId)&&this.updateSubscriptionState(!!v.subscribed)};
_.c.computeButtonStyle=function(v){return this.get("style.styleType",v)||null};
_.c.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.c.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.c.updateSubscriptionState=function(v){if(v!==this.subscribed){this.set("data.subscribed",v);var E,n=(E=this.data)==null?void 0:E.subscribedEntityKey;n&&this.ytdReduxBehavior.dispatch(_.n7("subscriptionStateEntity",n,{key:n,subscribed:v}));this.isCompactRed()||_.jK(this.hostElement,"yt-subscription-changed",v);v||(_.OL(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!v),v&&this.hasBellButton&&this.startAnimation())}};
_.c.startAnimation=function(){var v=this;if(!this.isAnimating){var E=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var n;(n=this.backgroundLottieRef.lottieEl)==null||n.goToAndPlay(0);var f;(f=this.foregroundLottieRef.lottieEl)==null||f.goToAndPlay(0);_.wh.addJob(function(){v.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.wh.addJob(function(){v.updateContainerToFitContent(!!v.subscribed,!0)},2,1500);
_.wh.addJob(function(){v.isAnimating=!1},2,E)}};
_.c.maybeAnimateBellIcon=function(){var v=_.AV(this.hostElement).querySelector("yt-animated-icon");if(v){var E;(E=v.animationRef.lottieEl)==null||E.goToAndPlay(0)}};
_.c.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.c.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.c.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var v;this.unsubscribedWidth=(v=this.subscribeButtonShape)==null?void 0:v.getBoundingClientRect().width}var E;this.subscribedWidth=(E=this.bellButton)==null?void 0:E.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.c.updateContainerToFitContent=function(v,E){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(v?(v=this.subscribedWidth,E=this.isAnimating&&!E,this.subscribedIconOnlyWidth===void 0||E||(v=this.subscribedIconOnlyWidth),this.hostElement.style.width=v+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.c.clearContainerSize=function(){this.hostElement.style.width=""};
_.c.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.c.maybeSetSubscribedButtonIconOnlyWidth=function(){var v=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 E;v.subscribedIconOnlyWidth=(E=v.bellButton)==null?void 0:E.getBoundingClientRect().width;requestAnimationFrame(function(){if(v.bellButton){var n;v.bellButton.textLabel=
(n=v.data)==null?void 0:n.subscribedButtonText}})})))};
_.hK.Object.defineProperties(id.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 v;return(v=this.data)==null?void 0:v.subscribedButtonText}var E;return this.forceIconOnly?void 0:(E=this.data)==null?void 0:E.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,E,n=((v=this.data)==null?void 0:(E=v.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"subscribe",timings:n,enabled:n.length>0&&!this.subscribed,experimentEnabled:n.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!this.subscribed&&((v=this.data)==null?void 0:v.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 v={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var E=v.renderer;var n=v.element;var f=v.subscribed;var x=v.commandController;var y=v.isOverlay;v=v.config;var Q=OPX(E,f);y&&(Q.style="overlay");y=Object;var e=y.assign,F;a:switch((F=E.style)==null?void 0:F.styleType){case "COMPACT_GRAY":case "COMPACT_RED":F={size:"S"};break a;default:F={size:"M"}}var b=jwE(E,f);var l=
(l=f?E.subscribedButtonText:E.unsubscribedButtonText)?_.yI(l):void 0;return e.call(y,{},Q,F,{focused:!1,toggled:f,accessibilityLabel:b,formattedButtonText:l,onTap:ux$(E,v,f,n,x)})}}}});
id.prototype.onMouseDown=id.prototype.onMouseDown;id.prototype.onDataChanged=id.prototype.onDataChanged;id.prototype.observedSubscribed=id.prototype.observedSubscribed;id.prototype.onYtServiceRequestCompleted=id.prototype.onYtServiceRequestCompleted;id.prototype.onYtServiceRequestSent=id.prototype.onYtServiceRequestSent;id.prototype.maybeUpdateBellButtonText=id.prototype.maybeUpdateBellButtonText;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],id.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],id.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],id.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],id.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.subscribedEntityKey"],selector:_.Wi}),_.W("design:type",Object)],id.prototype,"subscriptionStateEntity",void 0);_.k([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.W("design:type",Boolean)],id.prototype,"subscribed",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],id.prototype,"branded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],id.prototype,"animatedActionEnabled",void 0);
_.k([_.H(),_.W("design:type",Object)],id.prototype,"foregroundLottieRef",void 0);_.k([_.H(),_.W("design:type",Object)],id.prototype,"backgroundLottieRef",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],id.prototype,"overlayButton",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.W("design:type",Object)],id.prototype,"buttonStyle",void 0);_.k([_.H(),_.W("design:type",Object)],id.prototype,"forceIconOnly",void 0);
_.k([_.H(),_.W("design:type",Object)],id.prototype,"showTextWhileAnimating",void 0);_.k([_.H({value:function(){return!!_.P().resolve(_.jp(_.cT))&&_.Z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],id.prototype,"useKeyboardFocused",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],id.prototype,"keyboardFocused",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],id.prototype,"isAnimating",void 0);_.k([_.A("data.notificationPreferenceButton.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"hasBellButton",null);
_.k([_.On("subscribedButtonText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],id.prototype,"maybeUpdateBellButtonText",null);_.k([_.A("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"subscribedButtonText",null);_.k([_.A("data.timedAnimationData.animationTiming","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"smartimationSettings",null);
_.k([_.H({reflectToAttribute:!0}),_.A("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"subscribeButtonHidden",null);_.k([_.H({reflectToAttribute:!0}),_.A("subscribed","hasBellButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"subscribeButtonInvisible",null);
_.k([_.H({reflectToAttribute:!0}),_.A("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"unsubscribeButtonHidden",null);_.k([_.Wp("ytd-subscription-notification-toggle-button-renderer-next"),_.W("design:type",Object)],id.prototype,"bellButton",void 0);_.k([_.Wp("#subscribe-button-shape"),_.W("design:type",HTMLElement)],id.prototype,"subscribeButtonShape",void 0);
_.k([_.A("overlayButton","subscribed","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],id.prototype,"buttonShape",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],id.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],id.prototype,"onYtServiceRequestCompleted",null);
_.k([_.On("subscribed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],id.prototype,"observedSubscribed",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],id.prototype,"onDataChanged",null);_.k([_.jk("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],id.prototype,"onMouseDown",null);
id=_.k([_.N({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],id);
_.u(id,"ytd-subscribe-button-renderer",function(){if(mtX!==void 0)return mtX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mtX=v},{mode:1});var zR=function(){var v=_.g.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.S(zR,_.g);zR.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zR.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zR.prototype,"isRichGrid",void 0);zR=_.k([_.N({is:"ytd-game-card-renderer",disableElementRegistration:!0})],zR);
_.u(zR,"ytd-game-card-renderer",function(){if(Xc4!==void 0)return Xc4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Xc4=v},{mode:1});var Ra={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Z("defer_menus")&&!EgS?0:void 0,waitForSignal:"eocs"};var wcF;var bPg;var tL=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return v};
_.S(tL,_.g);_.c=tL.prototype;_.c.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.c.onSeriesReminderStateEntityChange=function(){var v,E,n;((v=this.eventReminderStateEntity)==null?0:v.key)&&((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((n=this.eventReminderStateEntity)==null?void 0:n.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.n7("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.c.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.c.onYtServiceRequestError=function(){var v;this.updateReminderStateEntitiesFromButtonState((v=this.data)==null?void 0:v.currentState)};
_.c.handleUpdateUpcomingEventReminderButtonStateCommand=function(v){if(v=_.C(v,CH1)){var E,n=(E=this.data)==null?void 0:E.targetId;n&&v.targetId===n&&_.bz(this.updateReminderStateEntitiesFromButtonState.bind(this,v.state))}};
_.c.getButtonStateFromReminderState=function(){var v;if(((v=this.seriesReminderStateEntity)==null?void 0:v.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var E;if(((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var n,f;if(((n=this.seriesReminderStateEntity)==null?void 0:n.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((f=this.eventReminderStateEntity)==
null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var x;return(x=this.data)==null?void 0:x.currentState};
_.c.updateReminderStateEntitiesFromButtonState=function(v){if(v){switch(v){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":v="UPCOMING_EVENT_REMINDER_STATE_NONE";var E="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":v="UPCOMING_EVENT_REMINDER_STATE_SINGLE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":v="UPCOMING_EVENT_REMINDER_STATE_NONE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var n;
((n=this.eventReminderStateEntity)==null?0:n.key)&&this.ytdReduxBehavior.dispatch(_.n7("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:v})));var f;((f=this.seriesReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.n7("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:E})))}};
_.hK.Object.defineProperties(tL.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.getButtonStateFromReminderState(),E,n;if(v&&((E=this.data)==null?0:(n=E.states)==null?0:n.length))for(E=_.p(this.data.states),n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;if(((f=_.C(n,MY4))==null?void 0:f.state)===v)return _.C(n,MY4)}}}});
tL.prototype.onYtServiceRequestError=tL.prototype.onYtServiceRequestError;tL.prototype.onYtServiceRequestCompleted=tL.prototype.onYtServiceRequestCompleted;tL.prototype.onSeriesReminderStateEntityChange=tL.prototype.onSeriesReminderStateEntityChange;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],tL.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],tL.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tL.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Tes}),_.W("design:type",Object)],tL.prototype,"eventReminderStateEntity",void 0);
_.k([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(v,E){return _.LH(v.entities,"sportsSeriesReminderStateEntity",E)}}),
_.W("design:type",Object)],tL.prototype,"seriesReminderStateEntity",void 0);_.k([_.A("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],tL.prototype,"currentButtonStateRenderer",null);_.k([_.On("seriesReminderStateEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tL.prototype,"onSeriesReminderStateEntityChange",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tL.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tL.prototype,"onYtServiceRequestError",null);tL=_.k([_.N({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],tL);
_.u(tL,"ytd-upcoming-event-reminder-button-renderer",function(){if(bPg!==void 0)return bPg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return bPg=v},{mode:1});var lWl;var BY=function(){return _.g.apply(this,arguments)||this};
_.S(BY,_.g);BY.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.hK.Object.defineProperties(BY.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(_.Z("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],BY.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],BY.prototype,"shelfDismissal",void 0);_.k([_.A("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],BY.prototype,"text",null);
_.k([_.A("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],BY.prototype,"textAriaLabel",null);BY=_.k([_.N({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],BY);
_.u(BY,"ytd-notification-multi-action-renderer",function(){if(lWl!==void 0)return lWl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lWl=v},{mode:1});var swi;var vB=function(){return _.g.apply(this,arguments)||this};
_.S(vB,_.g);vB.prototype.ready=function(){var v=this;_.K(this.hostElement).querySelector("#undo").addEventListener("tap",function(){v.onUndoTap()})};
vB.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vB.prototype,"data",void 0);vB=_.k([_.N({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],vB);
_.u(vB,"ytd-notification-text-renderer",function(){if(swi!==void 0)return swi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return swi=v},{mode:1});var rpl;var E5=function(){var v=_.g.apply(this,arguments)||this;v.mouseOverDelayJobId=0;v.fadeInImageDelayJobId=0;v.startTimeMs=-1;v.loadingStartTimeMs=-1;v.loadingEndTimeMs=-1;v.hasVideoPreview=!1;return v};
_.S(E5,_.g);_.c=E5.prototype;_.c.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.c.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.c.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.c.showThumbnail=function(){var v=this;this.csn=_.lc();_.m5("fmth");_.wh.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.H8(_.wh,function(){v.loadingStartTimeMs=(0,_.gd)();var E=_.K(v.hostElement).querySelector("#thumbnail");E.complete?v.displayMouseOverImage():E.addEventListener("load",_.uo(v,v.displayMouseOverImage))},150):_.Vt(_.K(this.hostElement).querySelector("#play"),"show",!0)};
_.c.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.c.onTap=function(){this.removeVideoPreview()};
_.c.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var v=this.videoId,E=this.csn,n=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,f=this.startTimeMs,x=this.hasVideoPreview,y=_.tx(this.trackingParams),Q={isMovingThumbnail:x};x&&f>0&&(n>0&&(Q.movingThumbnailLoadingDurationMs=Math.round(n)),Q.durationHoveredMs=Math.round((0,_.gd)()-f));v&&(Q.videoId=v);_.Jc(E,y,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Q});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.c.removeVideoPreview=function(){_.wh.cancelJob(this.mouseOverDelayJobId);_.wh.cancelJob(this.fadeInImageDelayJobId);var v=_.K(this.hostElement).querySelector("#thumbnail");_.Vt(v,"fade-in",!1);v.removeEventListener("load",_.uo(this,this.displayMouseOverImage));v=_.K(this.hostElement).querySelector("#play");_.Vt(v,"fade-in",!1);_.Vt(v,"show",!1)};
_.c.displayMouseOverImage=function(){var v=_.K(this.hostElement).querySelector("#thumbnail"),E=_.K(this.hostElement).querySelector("#play");this.isImageAvailable(v)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.gd)(),this.startTimeMs=(0,_.gd)(),this.fadeInImageDelayJobId=_.H8(_.wh,function(){_.Vt(v,"fade-in",!0)},50)):_.Vt(E,"fade-in",!0)};
_.c.computeThumbnail=function(v,E){var n;v&&v.movingThumbnailDetails&&v.movingThumbnailDetails.thumbnails&&E?n=_.hZ(v.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):n=E?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(n)return _.bW(n)};
_.c.isImageAvailable=function(v){return!(!v.src||v.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||v.naturalWidth===120)};
E5.prototype.onTap=E5.prototype.onTap;E5.prototype.dataChanged=E5.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],E5.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],E5.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],E5.prototype,"csn",void 0);_.k([_.H(),_.W("design:type",Object)],E5.prototype,"trackingParams",void 0);
_.k([_.H(),_.W("design:type",String)],E5.prototype,"videoId",void 0);_.k([_.H(),_.W("design:type",Boolean)],E5.prototype,"isAttachedAndDataSet",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E5.prototype,"dataChanged",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E5.prototype,"onTap",null);E5=_.k([_.N({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],E5);
_.u(E5,"ytd-moving-thumbnail-renderer",function(){if(rpl!==void 0)return rpl;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rpl=v},{mode:1});var PkF;_.yw=function(v){this.hostElement=v;this.eventSink=null;this.eventList=[]};
_.yw.prototype.shouldForward=function(){var v,E;return(E=(v=this.eventSink)==null?void 0:v.isConnected)!=null?E:document.body.contains(this.eventSink)};
_.yw.prototype.start=function(v,E){this.eventSink&&this.stop();for(var n=0;n<v.length;n++)this.hostElement.addEventListener(v[n],_.uo(this,this.forwardEvent));var f;this.eventSink=(f=E.hostElement)!=null?f:E;this.eventList=v};
_.yw.prototype.stop=function(){for(var v=0;v<this.eventList.length;v++)this.hostElement.removeEventListener(this.eventList[v],_.uo(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.yw.prototype.forwardEvent=function(v,E){this.shouldForward()&&(v.stopPropagation(),this.eventSink instanceof Element?_.jK(this.eventSink,v.type,E):_.li(new _.yc("eventSink is not an element")))};_.nw={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.yw(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(v,E){this.forwarder_.start(v,E)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var oh=function(){return _.g.apply(this,arguments)||this};
_.S(oh,_.g);_.c=oh.prototype;_.c.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=_.MX("HTML_DIR")==="rtl"?"right":"left"};
_.c.dataChanged=function(){this.popupOpen=!1};
_.c.computeAriaLabel=function(v){return _.C(v,NOw).label};
_.c.onTap=function(v){v.stopPropagation();v.preventDefault();this.data.command&&_.P().resolve(_.OO).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.c.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.c.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
oh.prototype.onPopupClosed=oh.prototype.onPopupClosed;oh.prototype.onPopupOpened=oh.prototype.onPopupOpened;oh.prototype.onTap=oh.prototype.onTap;oh.prototype.dataChanged=oh.prototype.dataChanged;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],oh.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.Mh),_.W("design:type",Object)],oh.prototype,"ironButtonState",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],oh.prototype,"componentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],oh.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:-1}),_.W("design:type",Number)],oh.prototype,"tabindex",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.W("design:type",Object)],oh.prototype,"ariaLabel",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],oh.prototype,"disableTooltips",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],oh.prototype,"popupOpen",void 0);
_.k([_.H(),_.W("design:type",Element)],oh.prototype,"eventSink",void 0);_.k([_.Wp("#tooltip"),_.W("design:type",Object)],oh.prototype,"tooltip",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oh.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oh.prototype,"onTap",null);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oh.prototype,"onPopupOpened",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oh.prototype,"onPopupClosed",null);oh=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],oh);
_.u(oh,"ytd-thumbnail-overlay-button-renderer",function(){if(PkF!==void 0)return PkF;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return PkF=v},{mode:1});var aW1;var fw=function(){return _.g.apply(this,arguments)||this};
_.S(fw,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fw.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fw.prototype,"disableAnimation",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fw.prototype,"rounded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fw.prototype,"transparentBackground",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fw.prototype,"noPadding",void 0);fw=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],fw);
_.u(fw,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(aW1!==void 0)return aW1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return aW1=v},{mode:1});var ZPP;var xx=function(){return _.g.apply(this,arguments)||this};
_.S(xx,_.g);xx.prototype.computeIconPosition=function(v){return this.get("iconPosition",v)||null};
xx.prototype.computeIconStyle=function(v){return this.get("iconStyle",v)||null};
xx.prototype.computeIsIconStyleFilled=function(v){if(!v)return!1;var E;return v.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((E=v.icon)==null?void 0:E.iconType)==="ERROR_BLACK"};
_.k([_.H(),_.W("design:type",Object)],xx.prototype,"data",void 0);_.k([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.W("design:type",Object)],xx.prototype,"iconPosition",void 0);_.k([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.W("design:type",Object)],xx.prototype,"iconStyle",void 0);_.k([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],xx.prototype,"iconStyleFilled",void 0);
xx=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],xx);
_.u(xx,"ytd-thumbnail-overlay-icon-renderer",function(){if(ZPP!==void 0)return ZPP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZPP=v},{mode:1});var CkX;var cB=function(){return _.g.apply(this,arguments)||this};
_.S(cB,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cB.prototype,"data",void 0);cB=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],cB);
_.u(cB,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(CkX!==void 0)return CkX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return CkX=v},{mode:1});var Mn1;var yL=function(){var v=_.g.apply(this,arguments)||this;v.isPreviewLoading=!1;return v};
_.S(yL,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yL.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yL.prototype,"isPreviewLoading",void 0);yL=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],yL);
_.u(yL,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Mn1!==void 0)return Mn1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Mn1=v},{mode:1});var SNX;var pw=function(){return _.g.apply(this,arguments)||this};
_.S(pw,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pw.prototype,"data",void 0);pw=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],pw);
_.u(pw,"ytd-thumbnail-overlay-pinking-renderer",function(){if(SNX!==void 0)return SNX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SNX=v},{mode:1});var Ut4;var QL=function(){var v=_.g.apply(this,arguments)||this;v.disableTooltips=!1;v.isLoading=!1;v.useExpandableTooltip=!1;v.toggled=!1;v.hovered=!1;v.mouseoverDelayJobId=0;v.toggleDelayJobId=0;v.expandAnimationDelayJobId=0;return v};
_.S(QL,_.g);_.c=QL.prototype;_.c.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");_.K(this.hostElement).querySelector("#tooltip").position=_.MX("HTML_DIR")==="rtl"?"right":"left"};
_.c.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.wh.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.wh.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.wh.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.c.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.wh.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.wh.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.wh.cancelJob(this.expandAnimationDelayJobId)};
_.c.computeIcon=function(v,E,n){return(v=n?E:v)&&v.iconType?_.jI(v.iconType):void 0};
_.c.computeAriaLabel=function(v,E,n){return _.C(n?E:v,NOw).label};
_.c.computeTooltip=function(v,E,n){return n?E:v};
_.c.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.c.computeIconOnHover=function(v,E){if((v==null?0:v.iconType)&&!E)return _.jI(v.iconType)};
_.c.onTap=function(v){var E=this;v.stopPropagation();v.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(v),this.useExpandableTooltip&&(this.toggleDelayJobId=_.H8(_.wh,function(){E.hovered=!1;E.data&&!E.data.toggledServiceEndpoint&&(E.expandAnimationDelayJobId=_.H8(_.wh,function(){E.set("data.isToggled",
!1)},200))},2E3))};
_.c.onMouseenter=function(){var v=this;this.mouseoverDelayJobId=_.H8(_.wh,function(){v.hovered=!0},300)};
_.c.onMouseleave=function(){_.wh.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.c.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.c.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.c.onServiceRequestCompleted=function(v,E){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(E)||this.set("data.isToggled",!this.data.isToggled)};
_.c.serviceRequestWasSuccessful=function(v){return _.C(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Mb)?v.data.status==="STATUS_SUCCEEDED":!0};
QL.prototype.onServiceRequestCompleted=QL.prototype.onServiceRequestCompleted;QL.prototype.onPopupClosed=QL.prototype.onPopupClosed;QL.prototype.onPopupOpened=QL.prototype.onPopupOpened;QL.prototype.onMouseleave=QL.prototype.onMouseleave;QL.prototype.dataChanged=QL.prototype.dataChanged;_.k([_.h(_.Mh),_.W("design:type",Object)],QL.prototype,"ironButtonState",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],QL.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QL.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.W("design:type",Object)],QL.prototype,"ariaLabel",void 0);_.k([_.H(),_.W("design:type",Object)],QL.prototype,"disableTooltips",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QL.prototype,"popupOpen",void 0);_.k([_.H(),_.W("design:type",Object)],QL.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Element)],QL.prototype,"eventSink",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QL.prototype,"useExpandableTooltip",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.W("design:type",Object)],QL.prototype,"toggled",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QL.prototype,"hovered",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.W("design:type",Object)],QL.prototype,"iconOnHover",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"dataChanged",null);
_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"onMouseleave",null);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"onPopupOpened",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"onPopupClosed",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],QL.prototype,"onServiceRequestCompleted",null);QL=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],QL);
_.u(QL,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Ut4!==void 0)return Ut4;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ut4=v},{mode:_.HE("kevlar_poly_si_batch_j053")?1:2});var qNU;var Jpo=_.qu(function(v){var E=v.data;var n=function(){return E().enableSegmentView};
return _.w("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.w(_.x6,{cond:n,then:function(){return _.w("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.w("div",{class:_.LR("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+E().startPercent+"%"}}),_.w("div",{class:_.LR("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+E().segmentDurationPercent+"%"}},_.w("div",{class:_.LR("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.w("div",null," ",function(){return E().segmentLabel})),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.w("div",{class:_.LR("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.w(_.x6,{cond:function(){return!n()&&E().startPercent},
then:function(){var f={};return _.w("div",{class:_.LR("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(f.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Z("web_enable_modern_progress_bar_overlay"),f))},_.w("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+E().startPercent+"%"}}))}}))},"M");
Jpo.idomCompat=!0;var KKl=_.qu(function(v){var E=_.Gy(),n=_.mc(function(x){var y,Q,e;a:{var F=(y=v.data())==null?void 0:y.animationActivationTargetId;y=((Q=v.data())==null?void 0:Q.animationActivationEntityKey)||"";Q=(e=v.data())==null?void 0:e.animationActivationEntitySelectorType;if(y&&F)switch(Q){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":x=_.LH(x.entities,"playerStateEntity",y);e=_.P().resolve(_.jp(_.hf));F=!!(x&&x.videoId===F&&(e==null?0:e.isMiniplayerActive()));F={activated:F,playAnimation:F&&
x.playerState==="PLAYER_STATE_PLAYING"};break a}F=void 0}return F});
_.Xp(function(){var x;if((x=n())==null?0:x.activated){var y;if((y=n())==null?0:y.playAnimation){var Q;(Q=E.lottieEl)==null||Q.goToAndPlay(0)}else{var e;(e=E.lottieEl)==null||e.goToAndStop(0)}}});
var f=function(){var x,y=!((x=n())==null||!x.activated);if(v.data()){x=v.data();var Q=void 0;x.icon&&(Q=DCN(x.icon),Q=kMy(Q));var e=void 0,F;if((F=x.backgroundColor)==null?0:F.lightTheme){var b;e={backgroundColor:XJ((b=x.backgroundColor)==null?void 0:b.lightTheme,"0.8")}}if(x.text||Q||y){if(y&&x.lottieData&&E){b=x.lottieData;var l,r,a;F={animationConfig:{name:b.url,path:b.url,autoplay:(l=b.settings)==null?void 0:l.autoplay,loop:(a=(r=b.settings)==null?void 0:r.loop)!=null?a:!0},animationRef:E}}else F=
void 0;if(y)l=16;else b:switch(x.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":l=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":l=18;break b;default:l=16}y={type:l,text:y&&x.animatedText?x.animatedText:x.text,icon:Q,customColors:e,animation:F}}else y=void 0}else y=void 0;return y};
return _.w("yt-thumbnail-badge-view-model",{class:_.W8("yt-thumbnail-badge-view-model-wiz",v.class)},_.w(_.x6,{cond:f,then:function(){return _.w(_.jS,{data:function(){return f()}})}}))},"N");var dtz=_.qu(function(v){var E={};return _.w("yt-thumbnail-bottom-overlay-view-model",{class:_.W8("ytThumbnailBottomOverlayViewModelHost",(E.ytThumbnailBottomOverlayViewModelHostBackground=function(){return v.data().enableGradientBackground},E))},_.w("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.w(_.mI,{data:function(){return v.data().progressBar}},{thumbnailOverlayProgressBarViewModel:Jpo}),_.w(_.mI,{data:function(){return v.data().badge}},{thumbnailBadgeViewModel:function(n){return _.w(KKl,
{data:n.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.w(_.mI,{data:function(){return v.data().badges}},{thumbnailBadgeViewModel:function(n){return _.w(KKl,{data:n.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
dtz.idomCompat=!0;_.Yz(dtz,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Ij}});var tnL={calledOnce:!1,state:"visible"},BfX={calledOnce:!1,state:"hidden"};_.Nw(EjI);var IWz=_.qu(function(v){var E=v.data;var n=v.className;v=v.alwaysShow;var f=_.Ig();_.Ya(f,function(){return E().rendererContext});
var x=_.WKQ(),y={};return _.w("thumbnail-hover-overlay-view-model",{el:f,class:_.W8("ytThumbnailHoverOverlayViewModelHost",n,(y.ytThumbnailHoverOverlayViewModelHostForceHover=v,y)),"aria-label":function(){var Q;return(Q=_.C(E().rendererContext,_.AF))==null?void 0:Q.label},
role:function(){return _.K7(E().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.K7(E().rendererContext)!==void 0?0:void 0},
"on:keypress":x},_.w("div",{class:_.W8("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(E().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Q="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Q="ytThumbnailHoverOverlayViewModelStyleCover"}return Q})},_.w(_.x6,{cond:function(){return E().icon},
then:function(Q){return _.w(_.UZ,{data:Q,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.w(_.x6,{cond:function(){return E().text},
then:function(Q){return _.w(_.nh,{text:Q,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),YNU=_.Z("web_enable_sink_lockups_batch")?IWz:EjI,hhS=_.Z("web_enable_sink_lockups_batch")?IWz:_.GG(EjI);
IWz.idomCompat=!0;var Dk=_.qu(function(v){var E=v.data;return _.w(_.mI,{data:function(){return E==null?void 0:E().overlays}},{thumbnailHoverOverlayViewModel:hhS})},"Q");
Dk.idomCompat=!0;var ApP={};var VX=_.qu(function(v){var E=v.data;var n=v.image;var f=v.state;var x=v.iconType;var y=v.overlays;var Q=v.isOverlay;var e=_.Y$();v=_.p(_.t7(!0,void 0,"xOB8yb"));var F=v.next().value,b=v.next().value,l=function(){return!!E().onTap},r=_.SI(x,"LIVE");
_.Xp(function(){var M=E();requestAnimationFrame(function(){if(e.value===null)var U=!0;else{var d=e.value;U=M.badgeText;var Y=njA(M.size);U in ApP?d=ApP[U]:(d=d.clientWidth,ApP[U]=d);(U=d>Y)?e.value.style.display="none":e.value.style.visibility="visible"}b(U)})});
var a=function(){var M={};return M["yt-spec-avatar-shape__image"]=!0,M["yt-spec-avatar-shape__image--ads-app"]=E().type===1,M};
return _.w("yt-avatar-shape",null,_.w("div",{el:_.JZ(ojQ(l,{keydown:function(M){if(M.key==="Enter"){var U;(U=M.currentTarget)==null||U.click()}},
click:function(M){var U,d;return void((d=(U=E()).onTap)==null?void 0:d.call(U,M))}})),
class:function(){var M={};M=(M["yt-spec-avatar-shape"]=!0,M["yt-spec-avatar-shape__button"]=!0,M[xWF(E().size)]=!0,M["yt-spec-avatar-shape__button--tappable"]=l(),M);var U=E().avatarButtonCustomClassName;U&&(M[U]=!0);return _.LR(M)},
"aria-label":function(){return l()?E().accessibilityText:""},
role:function(){return l()?"button":void 0},
tabindex:function(){return l()?0:void 0}},_.w("div",{class:function(){var M,U=E(),d=f==null?void 0:f(),Y=Q==null?void 0:Q(),V=!((M=U.decorations)==null||!M.includes(2)||U.size!=="medium"&&U.size!=="large"),O=U.size==="tiny"||U.size==="extra-small",T,L,xX,t,QE={};
M=(QE["yt-spec-avatar-shape--live-ring"]=!!(((T=U.decorations)==null?0:T.includes(0))&&yaE(U.size)),QE["yt-spec-avatar-shape--stories-watched"]=V&&!(d==null||!d.storiesWatched),QE["yt-spec-avatar-shape--stories-unwatched"]=V&&!(d==null?0:d.storiesWatched),QE["yt-spec-avatar-shape--background-border"]=pe9(U.decorations)&&!O,QE["yt-spec-avatar-shape--background-border-thin"]=pe9(U.decorations)&&O,QE["yt-spec-avatar-shape__on-select-border"]=!((L=U.decorations)==null||!L.includes(4)),QE["yt-spec-avatar-shape__white-border"]=
!((xX=U.decorations)==null||!xX.includes(5)),QE["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((t=U.decorations)==null?0:t.includes(5))&&O),QE["yt-spec-avatar-shape--is-overlay"]=!!Y,QE);return _.LR(M)}},_.w("div",{class:function(){var M={};
M=(M[fCQ(E().size)]=!0,M["yt-spec-avatar-shape--no-margin"]=pe9(E().decorations),M);return _.LR(M)}},_.w(_.UZ,{data:n,
alt:function(){return!l()&&E().accessibilityText?E().accessibilityText:""},
targetWidth:function(){return ca1(E().size)},
targetHeight:function(){return ca1(E().size)},
className:function(){return _.LR(a())}}),_.w(_.x6,{cond:function(){var M;
return((M=E().decorations)==null?void 0:M.includes(0))&&yaE(E().size)},
then:function(){return _.w("div",{class:function(){var M={};M=(M["yt-spec-avatar-shape__live-badge"]=!0,M["yt-spec-avatar-shape__live-badge--badge-small"]=E().size==="small",M["yt-spec-avatar-shape__live-badge--badge-medium"]=E().size==="medium"||E().size==="48",M["yt-spec-avatar-shape__live-badge--badge-large"]=E().size==="large",M["yt-spec-avatar-shape__live-badge--badge-extra-large"]=E().size==="extra-large"||E().size==="extra-extra-large"||E().size==="giant",M);return _.LR(M)}},_.w(_.x6,{cond:function(){return E().badgeText},
then:function(M){return _.w("div",{class:"yt-spec-avatar-shape__badge-text",el:e},M)}}),_.w(_.x6,{cond:F,
then:function(){return _.w("div",{class:"yt-spec-avatar-shape__badge-icon"},_.w(_.B8,{icon:r,size:function(){a:switch(E().size){case "extra-large":var M=16;break a;default:M=13}return M}}))}}))}}),_.w(_.x6,{cond:function(){var M,U;
return((M=E().decorations)==null?void 0:M.includes(1))||((U=E().decorations)==null?void 0:U.includes(0))&&!yaE(E().size)},
then:function(){return _.w("div",{class:function(){var M=E(),U,d,Y={};var V=(Y["yt-spec-avatar-shape__live-dot"]=!((U=M.decorations)==null||!U.includes(0)||yaE(M.size)),Y["yt-spec-avatar-shape__new-content"]=!((d=M.decorations)==null||!d.includes(1)),Y);return _.LR(V)}})}}),A7(y,function(){return _.w("div",{class:function(){var M={};
M=Object.assign((M["yt-spec-avatar-shape__image-overlays"]=!0,M),a());return _.LR(M)}},y==null?void 0:y())})))))},"R");
VX.idomCompat={callbacks:{overlays:!0}};var Vni=_.qu(function(v){function E(){n().endpoint&&_.lj(n().endpoint)}
var n=v.data;var f=v.decorations;var x=v.avatarButtonCustomClassName;var y=v.isOverlay;return _.w("avatar-view-model",null,_.w(_.x6,{cond:function(){return n().image},
then:function(Q){return _.w(VX,{data:function(){return XeE({data:n(),onTap:n().endpoint?E:void 0,decorations:f==null?void 0:f(),badgeText:void 0,accessibilityText:n().accessibilityText,avatarButtonCustomClassName:x==null?void 0:x()})},
image:Q,iconType:"RADAR_LIVE",overlays:function(){return _.w(Dk,{data:n})},
isOverlay:y})}}))},"S");
Vni.idomCompat=!0;_.s_=_.Z("mweb_enable_sink_avatar_view_model")||!_.Z("web_enable_sink_avatars_batch_ks")?Vni:eB1;_.XK=_.Z("mweb_enable_sink_avatar_view_model")||!_.Z("web_enable_sink_avatars_batch_ks")?Vni:_.GG(_.s_);_.Nw(eB1);_.Nw(b8s);var DtF,HPS;DtF=_.qu(function(v){var E=v.data;v=v.className;var n=_.Y$(),f=function(){return _.C(E().avatar,_.HT)},x=_.o0(function(){var y,Q=E(),e=f(),F=_.K7(E().rendererContext),b=(y=n.value)!=null?y:void 0;
return e?mWE({data:Q,avatar:e,onTap:F,element:b}):{size:"medium"}},void 0,"v09a6");
return _.w("yt-decorated-avatar-view-model",{class:_.W8("yt-decorated-avatar-view-model-wiz",v),el:n},_.w(_.x6,{cond:function(){var y;return(y=f())==null?void 0:y.image},
then:function(y){return _.w(VX,{data:x,image:y,iconType:"RADAR_LIVE",overlays:function(){return _.w(Dk,{data:f})}})}}))},"T");
HPS=_.Z("web_enable_sink_avatars_batch_ks")?b8s:DtF;_.ez=_.Z("web_enable_sink_avatars_batch_ks")?_.GG(b8s):DtF;DtF.idomCompat=!0;var Psy=_.p7({avatarViewModel:_.s_,decoratedAvatarViewModel:HPS});_.Nw(aCE);var gdl,Nf6;gdl=_.qu(function(v){var E=_.Ig(),n=function(){return E&&_.dQ(v.data().rendererContext)};
_.Ya(E,function(){return v.data().rendererContext});
var f=function(){var y=v.data().avatars,Q,e;return(e=(Q=(y==null?0:y[0])?_.C(y[0],_.HT):void 0)==null?void 0:Q.avatarImageSize)!=null?e:"AVATAR_SIZE_UNKNOWN"},x={};
return _.w("yt-avatar-stack-view-model",{el:E,class:_.W8("yt-avatar-stack-view-model-wiz",v.className,(x["yt-avatar-stack-view-model-wiz--tappable"]=n,x["yt-avatar-stack-view-model-wiz--is-overlay"]=v.isOverlay,x["yt-avatar-stack-view-model-wiz--medium-text"]=v.useMediumText,x)),tabindex:function(){return n()?0:void 0},
role:function(){return n()?"link":void 0},
"aria-label":function(){var y,Q;return(Q=(y=_.C(v.data().rendererContext,_.AF))==null?void 0:y.label)!=null?Q:""}},_.w(_.x6,{cond:function(){var y;
return v.data().avatars&&!((y=v.hideAvatar)==null?0:y.call(v))},
then:function(){return _.w("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.w(_.x6,{cond:function(){return v.data().decoratedText},
then:function(y){var Q={};return _.w("div",{class:_.W8("yt-avatar-stack-view-model-wiz__text-container",(Q["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS"},Q["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var e;
return((e=v.isOverlay)==null?void 0:e.call(v))&&(f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS")},Q)),
style:_.tZ({width:function(){return Z8A(f())+"px"},
height:function(){return Z8A(f())+"px"}})},_.w(_.nh,{text:y,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.w(_.mI,{data:function(){return v.data().avatars.slice().reverse()}},{avatarViewModel:function(y){return _.w("div",{class:function(){return Cs$(f())}},_.w(_.XK,{data:y.data,
decorations:function(){var Q;if((Q=v.decorations)==null?0:Q.call(v))Q=v.decorations();else{Q=v.data();var e=0;Q.avatars&&(e+=Q.avatars.length);Q.decoratedText&&(e+=1);Q=e>1?[3]:[]}return Q},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:v.isOverlay}))},
decoratedAvatarViewModel:function(y){return _.w("div",{class:function(){return Cs$(f())}},_.w(_.ez,{data:y.data}))}}))}}),_.w(_.x6,{cond:function(){return v.data().text},
then:function(y){return _.w(_.nh,{text:y,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
Nf6=_.Z("web_enable_sink_avatars_batch_ks")?aCE:gdl;_.FK=_.Z("web_enable_sink_avatars_batch_ks")?_.GG(aCE):gdl;gdl.idomCompat=!0;_.Yz(_.qu(function(v){var E=v.data;var n=v.thumbnailSize;return _.w("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.w("div",{class:_.W8("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return MJF(n==null?void 0:n())})},_.w(_.mI,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(f){return _.w(_.FK,{data:f.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Kt,
thumbnailSize:_.Kt}});_.Nw(SXQ);var uxF=_.qu(function(v){v=_.Ue(v,{hidden:!1});var E=v.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:v.hidden},_.w(_.nh,{text:function(){return E().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(){return _.w(_.nh,{text:function(){return E().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),jwP=_.Z("web_enable_sink_lockups_batch")?uxF:SXQ,OPw=_.Z("web_enable_sink_lockups_batch")?uxF:_.GG(SXQ);
uxF.idomCompat=!0;_.Z("web_enable_sink_lockups_batch")?_.Yz(OPw,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Kt,hidden:_.Kt}}):_.uj(jwP,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var kCX=_.qu(function(v){v=_.Ue(v,{isClip:!1});var E=v.data,n=v.thumbnailSize,f={};return _.w("yt-thumbnail-overlay-badge-view-model",{class:_.W8("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(E().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var x="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:x="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return x},function(){return UWN(n==null?void 0:n())},(f["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
v.isClip,f))},_.w(_.mI,{data:function(){return E().thumbnailBadges}},{thumbnailBadgeViewModel:function(x){return _.w(KKl,{data:x.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
kCX.idomCompat=!0;_.Yz(kCX,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Kt,thumbnailSize:_.Kt,isClip:_.Kt}});_.Nw(qXX);_.uj(qXX,"yt-page-indicator-view-model",{propNames:["data"]});var mh=function(){var v=_.g.apply(this,arguments)||this;v.eventSink=function(){return v};
v.disableInteraction=!1;v.noRoundedCorners=!1;v.isPreviewLoading=!1;v.isOriginalAspectRatio=!1;v.computedObjectFit=!1;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return v};
_.S(mh,_.g);_.c=mh.prototype;
_.c.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:_.Z("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"}}};
_.c.onImageLoaded=function(){this.loaded=!0};
_.c.onImageUnloaded=function(){this.loaded=!1};
_.c.computeRichThumbnail=function(v,E,n,f){if(v&&E&&!f&&!_.Z("disable_moving_thumbs_handling")&&!n)return E};
_.c.computeImageWidth=function(v,E){return E||9999};
_.c.computeIsOriginalAspectRatio=function(v){return v};
_.c.computeIsLive=function(v){if(v==null?0:v.badges)for(var E=0;E<v.badges.length;E++){var n=v.badges[E];if(n.metadataBadgeRenderer&&n.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(v==null?0:v.thumbnailOverlays)for(E=0;E<v.thumbnailOverlays.length;E++)if(n=v.thumbnailOverlays[E],n.thumbnailOverlayTimeStatusRenderer&&n.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.c.computeObjectFit=function(v,E){return E||(v?"CONTAIN":"")};
_.c.computeNavigationEndpoint=function(v,E,n){return v?E:n};
_.c.computeHasClip=function(v){v=_.p(v||[]);for(var E=v.next();!E.done;E=v.next())if(E.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.c.computeOverlayColor=function(v){var E;return(v==null?0:(E=v.darkColorPalette)==null?0:E.section2Color)?v.darkColorPalette.section2Color:v==null?void 0:v.sampledThumbnailColor};
_.hK.Object.defineProperties(mh.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return IX(this.width)}}});
mh.prototype.onImageUnloaded=mh.prototype.onImageUnloaded;mh.prototype.onImageLoaded=mh.prototype.onImageLoaded;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],mh.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(Q3z),_.W("design:type",Object)],mh.prototype,"ytdThumbnailBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],mh.prototype,"componentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],mh.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mh.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],mh.prototype,"circular",void 0);
_.k([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.W("design:type",Object)],mh.prototype,"richThumbnail",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.W("design:type",Boolean)],mh.prototype,"hasClip",void 0);_.k([_.H(),_.W("design:type",Object)],mh.prototype,"eventSink",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],mh.prototype,"queued",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],mh.prototype,"richGridThumbnail",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],mh.prototype,"useExpandableTooltip",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],mh.prototype,"useUntranslatedNavigationEndpoint",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mh.prototype,"disableInteraction",void 0);
_.k([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.W("design:type",Object)],mh.prototype,"computedNavigationEndpoint",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],mh.prototype,"nowPlayingEqualizerOnly",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],mh.prototype,"hidePlaybackStatus",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],mh.prototype,"objectFit",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mh.prototype,"noRoundedCorners",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],mh.prototype,"watchFeedThumbnail",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mh.prototype,"isPreviewLoading",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.W("design:type",Object)],mh.prototype,"isOriginalAspectRatio",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.W("design:type",Object)],mh.prototype,"computedObjectFit",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.W("design:type",Boolean)],mh.prototype,"isLiveVideo",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],mh.prototype,"loaded",void 0);_.k([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.W("design:type",Object)],mh.prototype,"overlayColor",void 0);_.k([_.H({selector:_.VOL}),_.W("design:type",Boolean)],mh.prototype,"inlinePreviewIsEnabled",void 0);_.k([_.H(),_.W("design:type",Number)],mh.prototype,"width",void 0);
_.k([_.A("inlinePreviewIsEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mh.prototype,"isPreviewDisabled",null);_.k([_.A("width"),_.W("design:type",String),_.W("design:paramtypes",[])],mh.prototype,"thumbnailSize",null);_.k([_.jk("image-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mh.prototype,"onImageLoaded",null);
_.k([_.jk("image-unloaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mh.prototype,"onImageUnloaded",null);mh=_.k([_.N({disableElementRegistration:!0,is:"ytd-thumbnail"})],mh);
var WK1=_.Dj()(mh,"ytd-thumbnail",function(){if(qNU===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);qNU=v}v=qNU;return v},{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 ICN=function(v){var E=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12672_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12672_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(n){$t4(E,n)};
this.onLockupMouseLeaveFn=function(n){n=n.relatedTarget;var f,x;((f=document.getElementsByTagName("ytd-video-preview"))==null?0:(x=f.item(0))==null?0:x.contains(n))||(E.terminateVideoPreview(),wi(E))};
this.onThumbnailMouseDownFn=function(){E.terminateVideoPreview();wi(E)};
this.onTouchStart=function(){E.JSC$12672_touched=!0};
this.mediaRenderer=v.mediaRenderer;this.thumbnailElement=v.thumbnailElement;this.lockupElement=v.lockupElement;this.videoPreviewOptsInput=v.videoPreviewOpts;LKo(this);bv(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)):
_.li(Error("Bh")):_.li(Error("Ch")):GCw(this)},iS=function(v){GCw(v);
var E;(E=v.lockupElement)==null||E.removeEventListener("mouseenter",v.onMouseMoveFn);var n;(n=v.lockupElement)==null||n.removeEventListener("mouseleave",v.onLockupMouseLeaveFn);var f;(f=v.lockupElement)==null||f.removeEventListener("touchstart",v.onTouchStart);var x;(x=v.thumbnailElement)==null||x.removeEventListener("mousedown",v.onThumbnailMouseDownFn);wi(v)},LKo=function(v){v.inlinePreviewIsEnabledForUser=_.dG().getState().ui.inlinePreviewIsEnabled;
v.unsubscribeFromInlinePreviewIsEnabled=_.yC(_.dG(),_.VOL,function(E){(v.inlinePreviewIsEnabledForUser=E)||wi(v)});
v.JSC$12672_unsubscribeFromInlinePreviewIsActive=_.yC(_.dG(),_.A$F,function(E){(v.inlinePreviewIsActive=E)||wi(v)})},GCw=function(v){v.unsubscribeFromInlinePreviewIsEnabled();
v.unsubscribeFromInlinePreviewIsEnabled=function(){};
v.JSC$12672_unsubscribeFromInlinePreviewIsActive();v.JSC$12672_unsubscribeFromInlinePreviewIsActive=function(){}},$t4=function(v,E){E.buttons>0||(E=_.WG("kevlar_lockup_hover_delay",-1),v.JSC$12672_touched&&E>=0?(_.wh.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.H8(_.wh,function(){TfF(v)},E),v.JSC$12672_touched=!1):TfF(v))},iPg=function(v){v.videoPreviewJobId=_.H8(_.wh,function(){var E,n,f,x;
return _.X(function(y){if(y.nextAddress==1){if(!bv(v))return y.return();E=v.getVideoPreviewOpts();if(!E)return y.return();E.isAutoplay=!0;return(f=(n=_.kZ(v.mediaRenderer.hostElement,"yt-open-video-preview-action",[E]))&&n[0])?_.m(y,n[0],3):y.jumpTo(2)}y.nextAddress!=2&&(f=y.yieldResult===1);f&&KOI((x=v.mediaRenderer)==null?void 0:x.data);_.yQ(y)})})},TfF=function(v){!v.previewTriggered&&bv(v)&&(v.inlinePreviewIsActive&&v.terminateVideoPreview(),v.previewTriggered=!0,v.mediaRenderer.isInlinePreviewTriggered=
!0,_.wh.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.H8(_.wh,function(){var E,n,f,x;
return _.X(function(y){if(y.nextAddress==1){if(!bv(v))return y.return();E=v.getVideoPreviewOpts();return E?(f=(n=_.kZ(v.mediaRenderer.hostElement,"yt-open-video-preview-action",[E]))&&n[0])?_.m(y,n[0],3):y.jumpTo(2):y.return()}y.nextAddress!=2&&(f=y.yieldResult===1);f&&KOI((x=v.mediaRenderer)==null?void 0:x.data);_.yQ(y)})}))};
ICN.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var v,E;if((E=(v=this.videoPreviewOptsInput)==null?void 0:v.videoPreviewData)!=null)v=E;else if(v=this.mediaRenderer.data)if(JaG(v))v={inlinePlaybackEndpoint:_.F$(v.inlinePlayerData.onVisible),navigationEndpoint:_.F$(v.onTap),thumbnail:"image"in v?v.image:v.thumbnail,thumbnailOverlays:void 0,accessibilityText:dWy(v)};else if("multipleInlinePlaybackEndpoint"in v){var n=_.C(_.C(v.multipleInlinePlaybackEndpoint,uXS),jWg);if(n!=
null&&n.playerDescriptors){E=[];n=_.p(n.playerDescriptors);for(var f=n.next();!f.done;f=n.next())f=f.value,E.push({inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:dWy(v)});v=E}else v=void 0}else v={inlinePlaybackEndpoint:v.inlinePlaybackEndpoint,navigationEndpoint:v.navigationEndpoint,thumbnail:v.thumbnail,thumbnailOverlays:v.thumbnailOverlays,accessibilityText:dWy(v)};else v=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:v,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var bv=function(v){var E;if(E=v.inlinePreviewIsEnabledForUser)E=(v=v.mediaRenderer.data)?"inlinePlaybackEndpoint"in v&&v.inlinePlaybackEndpoint||JaG(v)&&v.inlinePlayerData||"multipleInlinePlaybackEndpoint"in v&&v.multipleInlinePlaybackEndpoint?!0:!1:!1;return E};
ICN.prototype.terminateVideoPreview=function(){_.OL(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var wi=function(v){_.wh.cancelJob(v.videoPreviewJobId);v.inlinePreviewIsActive=!1;v.previewTriggered=!1;v.mediaRenderer.isInlinePreviewTriggered=!1};var zh6=_.jU(["#"]),lv=function(){var v=_.g.apply(this,arguments)||this;v.isDisabled=!1;return v};
_.S(lv,_.g);_.c=lv.prototype;_.c.configureRendererStamper=function(){return{"data.menu":Ra,"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"}}}};
_.c.attached=function(){this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.getMetadata=function(v){var E=[];if(v.metadataText&&Object.keys(v.metadataText).length>0){var n=this.ytRendererBehavior.getSimpleString(v.metadataText);v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&(n=_.Ml(n,Number(v.upcomingEventData.startTime)));E.push(n)}else v.shortViewCountText&&E.push(this.ytRendererBehavior.getSimpleString(v.shortViewCountText)),v.publishedTimeText&&E.push(this.ytRendererBehavior.getSimpleString(v.publishedTimeText)),v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&
(n=this.ytRendererBehavior.getSimpleString(v.upcomingEventData.upcomingEventText),E.push(_.Ml(n,Number(v.upcomingEventData.startTime))));return E};
_.c.calculateBylineText=function(v){return v.shortBylineText?v.shortBylineText:v.bylineText?v.bylineText:null};
_.c.calculateIsDisabled=function(v){return!!v.isDisabled};
_.c.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.aC(zh6)};
_.c.onDetailsTap=function(v){var E=this.data&&this.data.navigationEndpoint;E&&!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Z("kevlar_grid_video_renderer_killswitch")?_.jK(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.c.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12677_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:_.K(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.K(this.hostElement).querySelector("ytd-thumbnail")})};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$12677_inlinePreviewHoverListener)==null||iS(v)};
_.c.computeThumbnailWidth=function(v,E){return E&&E>0?E:v?360:210};
_.c.computeShowChannelThumbnail=function(v,E){var n;return E&&!!(v==null?0:(n=v.channelThumbnailSupportedRenderers)==null?0:n.channelThumbnailWithLinkRenderer)};
_.hK.Object.defineProperties(lv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$12677_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lv.prototype.dataChanged=lv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],lv.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],lv.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.K4),_.W("design:type",Object)],lv.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],lv.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],lv.prototype,"noEndpoints",void 0);_.k([_.H({computed:"calculateBylineText(data)"}),_.W("design:type",Object)],lv.prototype,"bylineText",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],lv.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],lv.prototype,"isDownloading",void 0);_.k([_.H({reflectToAttribute:!0,value:0}),_.W("design:type",Number)],lv.prototype,"width",void 0);_.k([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.W("design:type",Object)],lv.prototype,"isDisabled",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lv.prototype,"dataChanged",null);_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lv.prototype,"isHovered",null);lv=_.k([_.N({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],lv);
_.u(lv,"ytd-grid-video-renderer",function(){if(wcF!==void 0)return wcF;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wcF=v},{mode:_.HE("kevlar_poly_si_batch_j047")?1:2});var Rh4;var s5=function(){var v=_.g.apply(this,arguments)||this;v.roundedContainer=!0;v.skipRoundingTop=!1;v.disableTopPadding=!1;v.amsterdamEnabled=_.Z("enable_desktop_amsterdam_info_panels");return v};
_.S(s5,_.g);s5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
s5.prototype.onClick=function(v){var E,n=(E=this.data)==null?void 0:E.sourceEndpoint;!_.Kh(_.MQ(v),this.hostElement,["A".toString()])&&n&&_.jK(this.hostElement,"yt-navigate",{endpoint:n})};
_.hK.Object.defineProperties(s5.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 v;return!((v=this.data)==null||!v.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.data)==null?void 0:v.paragraphMaxLines)!=null?E:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],s5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s5.prototype,"showVerticalDividers",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s5.prototype,"roundedContainer",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s5.prototype,"skipRoundingTop",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s5.prototype,"disableTopPadding",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],s5.prototype,"amsterdamEnabled",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s5.prototype,"showMetadataAtTop",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s5.prototype,"showMetadataBelowTitle",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],s5.prototype,"hasMenu",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.truncateParagraphs"),_.W("design:type",Object),_.W("design:paramtypes",[])],s5.prototype,"truncateParagraphs",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.paragraphMaxLines"),_.W("design:type",Number),_.W("design:paramtypes",[])],s5.prototype,"paragraphMaxLines",null);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],s5.prototype,"background",null);s5=_.k([_.N({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],s5);
_.u(s5,"ytd-info-panel-content-renderer",function(){if(Rh4!==void 0)return Rh4;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Rh4=v},{mode:_.HE("kevlar_poly_si_batch_j076")?1:2});var tn1;var Bfw;var vj1;var EjU;var ri=function(){return _.g.apply(this,arguments)||this};
_.S(ri,_.g);ri.prototype.computeStyle=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ri.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],ri.prototype,"style_",void 0);ri=_.k([_.p5({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],ri);
_.u(ri,"yt-channel-thumbnail-with-link-renderer",function(){if(EjU===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;vj1===void 0&&(vj1=document.createElement("template"));var f=vj1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);EjU=v}v=EjU;return v},{mode:2});var PB=function(){var v=_.g.apply(this,arguments)||this;v.modernTypography=_.Z("web_modern_typography");return v};
_.S(PB,_.g);PB.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"}}}};
PB.prototype.computeTitleStyle=function(v){return v||null};
PB.prototype.computeAvatarStyle=function(v){return v||null};
PB.prototype.computeShowNavigationButton=function(v,E){return!(v==null||!v.navigationButton||E)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],PB.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.W("design:type",String)],PB.prototype,"titleStyle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.W("design:type",String)],PB.prototype,"avatarStyle",void 0);_.k([_.H(),_.W("design:type",Boolean)],PB.prototype,"hideNavigationButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],PB.prototype,"isModernSd",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PB.prototype,"modernTypography",void 0);
PB=_.k([_.N({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],PB);
_.u(PB,"ytd-rich-list-header-renderer",function(){if(Bfw!==void 0)return Bfw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Bfw=v},{mode:_.HE("kevlar_poly_si_batch_j058")?1:2});var ah=function(){return _.g.apply(this,arguments)||this};
_.S(ah,_.g);ah.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]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ah.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ah.prototype,"isSearch",void 0);ah=_.k([_.N({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ah);
_.u(ah,"ytd-preview-card-renderer",function(){if(tn1!==void 0)return tn1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return tn1=v},{mode:1});var njz;var ZK=function(){return _.g.apply(this,arguments)||this};
_.S(ZK,_.g);ZK.prototype.configureRendererStamper=function(){return{"data.menu":Ra}};
ZK.prototype.dataChanged=function(){var v=this.get("colorExtractionPalette.section1Color",this.data);v=_.p2(v);_.NQ(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":v})};
ZK.prototype.computeCardStyle=function(v){return this.get("style.value",v)||null};
ZK.prototype.dataChanged=ZK.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],ZK.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ZK.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.W("design:type",String)],ZK.prototype,"cardStyle",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"dataChanged",null);ZK=_.k([_.N({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ZK);
_.u(ZK,"ytd-compact-channel-recommendation-card-renderer",function(){if(njz!==void 0)return njz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return njz=v},{mode:1});var oj1;var fC1;var Cw=function(){var v=_.g.apply(this,arguments)||this;v.alignAuto=!1;v.collapsed=!0;v.isToggled=!1;v.alwaysCollapsed=!1;v.canToggle=!0;v.collapsedHeight=80;v.disableToggle=!1;v.alwaysToggleable=!1;v.reversed=!1;v.shouldUseNumberOfLines=!1;v.recomputeOnResize=!1;v.canToggleJobId=0;v.lastReversed=!1;return v};
_.S(Cw,_.g);_.c=Cw.prototype;_.c.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.c.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.c.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var v=_.K(this.hostElement),E=v.childNodes,n=document.createDocumentFragment(),f=v.childNodes.length-1;f>=0;f--)_.K(n).appendChild(E[f]);_.Z("enable_shadydom_free_scoped_node_methods")?_.AV(this.hostElement).appendChild(n):v.appendChild(n)}};
_.c.ready=function(){var v=this;_.bz(function(){v.initChildrenObserver()},1)};
_.c.detached=function(){this.detachObserver()};
_.c.toggle=function(v,E){this.canToggle&&(this.isToggled=E,_.jK(this.hostElement,"yt-refit"),v&&v.stopPropagation())};
_.c.reset=function(){this.childrenChanged()};
_.c.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.c.computeIsMoreVisible=function(v,E){return v&&!E};
_.c.computeShouldUseNumberOfLines=function(v){try{return!!v&&window.CSS.supports("-webkit-line-clamp","1")}catch(E){}return!1};
_.c.computeIsLessVisible=function(v,E){return v&&E};
_.c.observeCollapsedHeightAndMaxLines=function(){var v=this.collapsedHeight,E=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.NQ(this.hostElement,{"--ytd-expander-max-lines":""+E,"--ytd-expander-collapsed-height":""}):_.NQ(this.hostElement,{"--ytd-expander-collapsed-height":v+"px","--ytd-expander-max-lines":""})};
_.c.handleMoreTap=function(v){this.disableToggle||(_.jK(this.hostElement,"yt-expander-more-tapped"),this.toggle(v,!0))};
_.c.handleLessTap=function(v){_.jK(this.hostElement,"yt-expander-less-tapped");this.toggle(v,!1)};
_.c.initChildrenObserver=function(){var v=this;this.observer=new MutationObserver(function(){v.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.c.childrenChanged=function(){var v=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Da(function(){v.canToggleJobId=0;v.calculateCanCollapse()})}))};
_.c.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};
_.c.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.c.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("collapsed-changed",this.collapsed))};
_.c.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("is-toggled-changed",this.isToggled))};
_.c.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("can-toggle-changed",this.canToggle))};
_.hK.Object.defineProperties(Cw.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Cw.prototype.canToggleChangedForBinding=Cw.prototype.canToggleChangedForBinding;Cw.prototype.isToggledChangedForBinding=Cw.prototype.isToggledChangedForBinding;Cw.prototype.collapsedChangedForBinding=Cw.prototype.collapsedChangedForBinding;Cw.prototype.observeCollapsedHeightAndMaxLines=Cw.prototype.observeCollapsedHeightAndMaxLines;Cw.prototype.onIronResize=Cw.prototype.onIronResize;Cw.prototype.reversedChanged=Cw.prototype.reversedChanged;Cw.prototype.toggledChanged=Cw.prototype.toggledChanged;
Cw.prototype.alwaysToggleableChanged=Cw.prototype.alwaysToggleableChanged;_.k([_.h(_.ZT),_.W("design:type",Object)],Cw.prototype,"ironResizableBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cw.prototype,"alignAuto",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cw.prototype,"collapsed",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"isToggled",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"alwaysCollapsed",void 0);
_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"canToggle",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"collapsedHeight",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"disableToggle",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"alwaysToggleable",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"reversed",void 0);_.k([_.H(),_.W("design:type",Number)],Cw.prototype,"maxNumberOfLines",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.W("design:type",Object)],Cw.prototype,"shouldUseNumberOfLines",void 0);_.k([_.H(),_.W("design:type",Object)],Cw.prototype,"recomputeOnResize",void 0);_.k([_.Wp("#content"),_.W("design:type",HTMLDivElement)],Cw.prototype,"content",void 0);_.k([_.Tw("alwaysToggleable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"alwaysToggleableChanged",null);
_.k([_.Tw("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"toggledChanged",null);_.k([_.A("canToggleJobId"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cw.prototype,"isResetting",null);_.k([_.On("reversed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"reversedChanged",null);
_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"onIronResize",null);_.k([_.On("maxNumberOfLines","collapsedHeight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"observeCollapsedHeightAndMaxLines",null);_.k([_.On("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"collapsedChangedForBinding",null);
_.k([_.On("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"isToggledChangedForBinding",null);_.k([_.On("canToggle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cw.prototype,"canToggleChangedForBinding",null);Cw=_.k([_.N({disableElementRegistration:!0,is:"ytd-expander"})],Cw);
_.u(Cw,"ytd-expander",function(){if(fC1!==void 0)return fC1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return fC1=v},{mode:1});var M8=function(){return _.g.apply(this,arguments)||this};
_.S(M8,_.g);M8.prototype.computeIsCarousel=function(v){return!!v.isCarousel};
M8.prototype.observeLightsourcePalette=function(){var v,E=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;E&&_.Q3(this.hostElement,E)};
M8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
M8.prototype.observeLightsourcePalette=M8.prototype.observeLightsourcePalette;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],M8.prototype,"data",void 0);_.k([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],M8.prototype,"isCarousel",void 0);
_.k([_.On("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M8.prototype,"observeLightsourcePalette",null);M8=_.k([_.N({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],M8);
_.u(M8,"ytd-media-upsell-renderer",function(){if(oj1!==void 0)return oj1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oj1=v},{mode:2});var xWi;var Sz=function(){var v=_.g.apply(this,arguments)||this;v.JSC$12705_playerEvents=new Map;v.listeningToPlayer=!1;v.startX=0;v.active=!1;v.shouldShowButtons=_.Z("web_buttons_hidden_killswitch");v.isHighlighted=!1;v.useHighlightStyling=_.Z("web_enable_deeper_metadata_highlight_styling");v.modern=_.Z("kevlar_modern_sd");v.enableProblemWalkthrough=_.Z("problem_walkthrough_sd");return v};
_.S(Sz,_.g);_.c=Sz.prototype;
_.c.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}}}}}};
_.c.created=function(){this.JSC$12705_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.c.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.uo(this,this.onRepeatButtonToggle));_.Z("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.uo(this,this.onActiveUpdate))};
_.c.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.uo(this,this.onRepeatButtonToggle));_.Z("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.uo(this,this.onActiveUpdate))};
_.c.onDataChanged=function(){this.removePlayerListeners()};
_.c.onColorPaletteChange=function(){var v={},E;if(_.bo()==="USER_INTERFACE_THEME_DARK"&&((E=this.data)==null?0:E.darkColorPalette)){var n=this.data.darkColorPalette;v["--ytd-macro-markers-list-item-background-color"]=_.Qt(this.get("section2Color",n))}else{var f;_.bo()==="USER_INTERFACE_THEME_LIGHT"&&((f=this.data)==null?0:f.lightColorPalette)&&(n=this.data.lightColorPalette,v["--ytd-macro-markers-list-item-background-color"]=_.Qt(this.get("section3Color",n)))}n?(v["--ytd-macro-markers-list-item-title-color"]=
_.Qt(this.get("primaryTitleColor",n)),v["--ytd-macro-markers-list-item-secondary-color"]=_.Qt(this.get("secondaryTitleColor",n)),v["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Qt(this.get("section1Color",n)),this.customButtonProperties={customColors:{color:_.Qt(this.get("primaryTitleColor",n))}},this.useColorSampling=!0):(v["--ytd-macro-markers-list-item-background-color"]="initial",v["--ytd-macro-markers-list-item-title-color"]="initial",v["--ytd-macro-markers-list-item-secondary-color"]=
"initial",v["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.NQ(this.hostElement,v)};
_.c.onEndpointMouseDown=function(v){this.startX=v.clientX};
_.c.onEndpointClick=function(v){var E=this,n,f,x;return _.X(function(y){if(y.nextAddress==1){if(E.startX!==v.clientX)return v.preventDefault(),y.return();E.data&&E.ytRendererBehavior.logExplicitClick(E.data);if(!E.seekWithAnimationOnClick)return y.jumpTo(0);if(v.button!==0||v.shiftKey||v.altKey||v.metaKey||v.ctrlKey||_.Kh(_.MQ(v),E.hostElement,["BUTTON".toString()]))return y.return();v.stopPropagation();v.preventDefault();return E.data?_.m(y,_.V3().getPlayerPromise(),3):y.return()}n=y.yieldResult;
x=(f=_.C(E.data.onTap,_.dM))==null?void 0:f.startTimeSeconds;x!==void 0&&n.seekToTimeWithAnimation(x*1E3,_.JC(E.data.title));_.yQ(y)})};
_.c.computeLayout=function(v){return v};
_.c.computeIsHighlighted=function(v){return!!v};
_.c.computeCarouselType=function(v){return v};
_.c.hideModernCarousel=function(v){return this.modern&&this.hideThumbnail(v)};
_.c.hideThumbnail=function(v){return this.enableProblemWalkthrough&&v!==null&&v==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.c.onRepeatButtonToggle=function(v){var E=this;v.detail.toggled&&_.V3().getPlayerPromise().then(function(n){E.ytPlayerListenerBehavior.listenToPlayerEvents(n,E.JSC$12705_playerEvents);E.listeningToPlayer=!0})};
_.c.onLoopRangeChange=function(v){var E=_.K(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(E){var n=E.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",E.polymerController.data);if(n){var f=Number(n.endTimeMs);if(Number(n.startTimeMs)!==(v==null?void 0:v.startTimeMs)||f!==(v==null?void 0:v.endTimeMs))E.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.c.removePlayerListeners=function(){var v=this;this.listeningToPlayer&&_.V3().getPlayerPromise().then(function(E){v.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,v.JSC$12705_playerEvents);v.listeningToPlayer=!1})};
_.c.onActiveUpdate=function(v){this.active=v.detail.active};
Sz.prototype.onColorPaletteChange=Sz.prototype.onColorPaletteChange;Sz.prototype.onDataChanged=Sz.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Sz.prototype,"ytPlayerListenerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Sz.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Sz.prototype,"useCustomColors",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sz.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Sz.prototype,"shouldShowButtons",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.W("design:type",String)],Sz.prototype,"layout",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.W("design:type",Object)],Sz.prototype,"isHighlighted",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sz.prototype,"useHighlightStyling",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sz.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sz.prototype,"enableProblemWalkthrough",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.W("design:type",String)],Sz.prototype,"carouselType",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Sz.prototype,"useColorSampling",void 0);_.k([_.H(),_.W("design:type",Boolean)],Sz.prototype,"seekWithAnimationOnClick",void 0);_.k([_.H(),_.W("design:type",Object)],Sz.prototype,"customButtonProperties",void 0);
_.k([_.Wp("#repeat-button"),_.W("design:type",HTMLElement)],Sz.prototype,"repeatButton",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sz.prototype,"onDataChanged",null);_.k([_.On("data.lightColorPalette","data.darkColorPalette"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sz.prototype,"onColorPaletteChange",null);
Sz=_.k([_.N({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Sz);
_.u(Sz,"ytd-macro-markers-list-item-renderer",function(){if(xWi!==void 0)return xWi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xWi=v},{mode:1});var cal;var yaP;var U5=function(){var v=_.g.apply(this,arguments)||this;v.modernTypography=_.Z("web_modern_typography");return v};
_.S(U5,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],U5.prototype,"modernTypography",void 0);_.k([_.H(),_.W("design:type",Object)],U5.prototype,"data",void 0);U5=_.k([_.N({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],U5);
_.u(U5,"ytd-title-and-button-list-header-renderer",function(){if(yaP!==void 0)return yaP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yaP=v},{mode:1});var peo;var Qx4=new _.$Y("BUTTON_RENDERER_WIZ_TOKEN"),XeP=new _.$Y("BUTTON_RENDERER_TOKEN");_.q8=_.qu(function(v){var E=_.P().resolve(_.jp(Qx4));if(E)return _.w(E,Object.assign({},v));var n=_.P().resolve(XeP);return n?_.w(YdQ,null,function(){return _.w(ho,null,function(){var f,x,y,Q,e,F,b,l,r,a,M,U;return void n(v.data(),{onButtonClickCallback:v.onButtonClickCallback,shouldShowIcons:(f=v.shouldShowIcons)==null?void 0:f.call(v),icon:(x=v.icon)==null?void 0:x.call(v),processAllEndpoints:(y=v.processAllEndpoints)==null?void 0:y.call(v),preventDefault:(Q=v.preventDefault)==null?void 0:Q.call(v),
stopPropagation:(e=v.stopPropagation)==null?void 0:e.call(v),disableButtonRendererClickHandling:(F=v.disableButtonRendererClickHandling)==null?void 0:F.call(v),className:(b=v.className)==null?void 0:b.call(v),buttonOverrides:(l=v.buttonOverrides)==null?void 0:l.call(v),forceModernIconButton:(r=v.forceModernIconButton)==null?void 0:r.call(v),isSubscribe:(a=v.isSubscribe)==null?void 0:a.call(v),alignByText:(M=v.alignByText)==null?void 0:M.call(v),forceDisabled:(U=v.forceDisabled)==null?void 0:U.call(v)})})}):
_.w(_.gF,null)},"Y");
_.q8.idomCompat=!0;var eBl=_.qu(function(v){var E=v.notification,n=_.SI(v.useSquareAspectRatio,!1);return _.w(_.x6,{cond:function(){var f,x;return(f=E().responseText)==null?void 0:(x=f.runs)==null?void 0:x.length},
then:function(){var f={};return _.w("div",{class:_.W8("yt-mini-game-card-view-model__dismissed-card",(f["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!n()},f["yt-mini-game-card-view-model--dismissed-square-card"]=n,f))},_.w("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.w(_.x6,{cond:function(){return E().responseText.runs[0].text},
then:function(x){return _.w("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:x},x)}}),_.w(_.mI,{data:function(){return E().buttons}},{buttonRenderer:_.q8,
buttonViewModel:_.C7})))}})},"Z");var sx1=_.qu(function(v){v=_.Ue(v,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var E=v.data,n=v.useFullWidth,f=v.isDesktopWeb,x=v.addSearchResultTopMargin,y=function(){return E().layout},Q=function(){return E().title},e=function(){return E().genre},F=function(){return E().channelName},b=function(){return E().image},l=function(){return E().colorPalette},r=function(){return E().actionButton},a=function(){return E().overflowButton},M=function(){return E().avatar},
U=function(){var O={};
O=_.W8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(O["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return f()},O));
return _.w("div",{class:O},_.w(FOl,{imageData:b,colorPalette:l}),_.w(mWP,{onTap:function(){return E().onTap},
imageData:b,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.w(_.x6,{cond:function(){return!f()},
then:function(){return _.w(_.gF,null,_.w(weo,{layout:y,colorPalette:l,isDesktopWeb:f,overflowButton:a,avatar:M,onTap:function(){return E().onTap},
genre:e,title:Q,channelName:F,entityRedesignExperiments:function(){return E().entityRedesignExperiments}}),_.w(Jw,{actionButton:r}))}}))},d=function(){var O={};
O=_.W8((O["yt-mini-game-card-view-model--search-result-desktop"]=function(){return f()},O["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!f()},O["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return x()},O));
return _.w("div",{class:O},U(),_.w(b8S,{description:function(){return E().description},
isDesktopWeb:f,title:Q,genre:e,onTap:function(){return E().onTap},
actionButton:r,overflowButton:a,avatar:M,channelName:F}))},Y=function(){var O=function(){var L;
return(L=E().entityRedesignExperiments)==null?void 0:L.changePlayablesLayoutWithCta},T={};
T=_.W8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(T["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return O()},T["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return f()},T["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return f()&&E().width===135},T["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return f()},T["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!O()&&f()&&E().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--big-metadata-font"]=function(){return E().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--use-full-width"]=function(){return n()},T["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!r()},T));
return _.w("div",{class:T},_.w(_.x6,{cond:function(){return O()},
then:function(){return _.w(_.gF,null,_.w(lCo,{entityRedesignExperiments:function(){return E().entityRedesignExperiments},
colorPalette:l,isDesktopWeb:f,onTap:function(){return E().onTap},
accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
actionButton:r,imageData:b}),_.w(weo,{layout:y,colorPalette:l,isDesktopWeb:f,overflowButton:a,avatar:M,onTap:function(){return E().onTap},
genre:e,title:Q,channelName:F,entityRedesignExperiments:function(){return E().entityRedesignExperiments}}),_.w(_.x6,{cond:function(){return!!O()===!1&&r()},
then:function(){return _.w(Jw,{actionButton:r})}}))},
else:function(){return _.w(_.gF,null,_.w(FOl,{imageData:b,colorPalette:l}),_.w(mWP,{onTap:function(){return E().onTap},
imageData:b,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.w(weo,{layout:y,colorPalette:l,isDesktopWeb:f,overflowButton:a,avatar:M,onTap:function(){return E().onTap},
genre:e,title:Q,channelName:F,entityRedesignExperiments:function(){return E().entityRedesignExperiments}}),_.w(Jw,{actionButton:r}))}}))},V=function(){var O={};
O=_.W8("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(O["yt-mini-game-card-view-model--square-card-desktop"]=function(){return f()},O["yt-mini-game-card-view-model--use-full-width"]=function(){return n()},O));
return _.w("div",{class:O},_.w(mWP,{onTap:function(){return E().onTap},
imageData:b,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.w(weo,{layout:y,colorPalette:l,isDesktopWeb:f,overflowButton:a,avatar:M,onTap:function(){return E().onTap},
genre:e,title:Q,channelName:F,entityRedesignExperiments:function(){return E().entityRedesignExperiments}}))};
return _.w("mini-game-card-view-model",{class:v.className},_.w(_.Q1,null,_.w(_.y1,{when:function(){return y()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Y()}),_.w(_.y1,{when:function(){return y()==="MINI_APP_LAYOUT_SQUARE"}},function(){return V()}),_.w(_.y1,{when:function(){return y()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return d()})))},"$");
sx1.idomCompat=!0;var Jw=_.qu(function(v){var E=_.SI(v.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.w(_.mI,{data:v.actionButton},{buttonViewModel:function(n){return _.w("div",{class:E},_.w(_.C7,{data:n.data}))}})},"aa"),mWP=_.qu(function(v){var E=v.onTap;
var n=v.imageData;var f=v.accessibilityText;var x=v.overlayBadgeText;var y=v.iconName;var Q=v.unplayableInlinePlaybackIconName;v=v.isDesktopWeb;return _.w(_.Ed,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:E},_.w(_.UZ,{data:n,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(f==null?void 0:f())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.w(rao,{overlayBadgeText:x,iconName:y,unplayableInlinePlaybackIconName:Q,isDesktopWeb:v}))},"ba"),rao=_.qu(function(v){var E=v.overlayBadgeText;
var n=v.iconName;var f=v.unplayableInlinePlaybackIconName;var x=v.isDesktopWeb;return _.w("div",{class:"yt-mini-game-card-view-model__badge-container"},_.w(_.x6,{cond:n,then:function(y){return _.w("div",{class:"yt-mini-game-card-view-model__badge"},_.w("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.w(_.B8,{icon:y,className:"yt-mini-game-card-view-model__icon"}),_.w("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},E)))}}),_.w(_.x6,{cond:function(){return!n()&&
E()},
then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},E)}}),_.w(_.x6,{cond:function(){return f()&&x()},
then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.w(_.B8,{icon:f,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),FOl=_.qu(function(v){var E=v.colorPalette;
var n=v.imageData;var f=function(){return E().vibrantColorPalette?E().vibrantColorPalette.section2Color:E().sectionTwoColor};
return _.w(_.gF,null,_.w("div",{class:"yt-mini-game-card-view-model__background-base",style:_.tZ({"background-color":function(){return XJ(f(),"1")}})}),_.w("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.tZ({"background-image":function(){return"url("+n().sources[0].url+")"}})}),_.w("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.tZ({background:function(){return"linear-gradient(180deg,\n    "+XJ(f(),".8")+" 0%,\n    "+XJ(f(),".4")+" 25%,\n    "+XJ(E().vibrantColorPalette?E().vibrantColorPalette.section4Color:E().sectionFourColor,".8")+" 100%)"}})}))},"da"),weo=_.qu(function(v){var E=v.layout;
var n=v.colorPalette;var f=v.overflowButton;var x=v.avatar;var y=v.onTap;var Q=v.title;var e=v.channelName;var F=v.entityRedesignExperiments;var b=v.genre;var l=function(){var a;return E()!=="MINI_APP_LAYOUT_SQUARE"&&((a=n())==null?0:a.textPrimaryColor)?"color: "+XJ(n().textPrimaryColor,".7"):""},r=function(){var a;
return F==null?void 0:(a=F())==null?void 0:a.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.w(_.x6,{cond:x,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.mI,{data:x},{avatarViewModel:_.XK}))}}),_.w(_.Ed,{command:y,
className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:Q},Q),_.w(_.x6,{cond:x,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.w("span",{class:"yt-mini-game-card-view-model__genre",title:e,style:l},e),_.w("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:l},b))},
else:function(){return _.w(_.x6,{cond:r,then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)},
else:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:b,style:l},b)}})}})),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.mI,{data:f},{buttonViewModel:function(a){var M=a.data;
return _.w(_.C7,{data:function(){return Object.assign({},M(),{customFontColor:r()?void 0:M().customFontColor})}})}})))},"ea"),lCo=_.qu(function(v){var E=v.entityRedesignExperiments;
var n=v.colorPalette;var f=v.isDesktopWeb;var x=v.onTap;var y=v.accessibilityText;var Q=v.overlayBadgeText;var e=v.iconName;var F=v.unplayableInlinePlaybackIconName;var b=v.actionButton;v=v.imageData;var l=function(){var r;return E==null?void 0:(r=E())==null?void 0:r.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.w(FOl,{imageData:v,colorPalette:n}),_.w(mWP,{onTap:x,imageData:v,accessibilityText:y,overlayBadgeText:Q,iconName:e,unplayableInlinePlaybackIconName:F,isDesktopWeb:f}),_.w(_.x6,{cond:function(){return(l==null?void 0:l())&&(b==null?void 0:b())},
then:function(){return _.w(Jw,{actionButton:b})}}))},"fa"),b8S=_.qu(function(v){var E=v.description;
var n=v.isDesktopWeb;var f=v.title;var x=v.genre;var y=v.onTap;var Q=v.actionButton;var e=v.overflowButton;var F=v.avatar;v=v.channelName;var b={};b=_.W8("yt-mini-game-card-view-model--search-result-metadata-wrapper",(b["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=n,b["yt-mini-game-card-view-model--show-unplayable-on-hover"]=n,b["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!n()},b));
var l={};l=_.W8("yt-mini-game-card-view-model__search-result-info-row",(l["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!n()},l));
return _.w("div",{class:b},_.w("div",{class:l},_.w(_.Ed,{command:y,className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:f},f),_.w("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)),_.w(Jw,{actionButton:Q,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.mI,{data:e},{buttonViewModel:_.C7}))),_.w("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.w("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.mI,{data:F},{avatarViewModel:function(r){var a=r.data;return _.w(_.XK,{data:function(){return Object.assign({},a(),{avatarImageSize:n()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.w(_.Ed,{command:y,
className:"yt-mini-game-card-view-model__description"},_.w("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},v)),_.w(_.Ed,{command:y,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.w("div",null)))),_.w(_.x6,{cond:n,then:function(){return _.w(_.Ed,{command:y,className:"yt-mini-game-card-view-model__description"},E)}}))},"ga");var Ps4={isAdsVideo:!0},aCP={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Z8z={showPlayerControls:!1,videoPreviewDurationMs:15E3},qJX={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.Z("web_shorts_imp_fullwidth_killswitch")},CsF={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var Kw=function(){var v=_.g.apply(this,arguments)||this;v.isSearch=!1;v.isRichGrid=!1;return v};
_.S(Kw,_.g);_.c=Kw.prototype;_.c.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.c.dismissibleItemOnYtServiceRequestSent=function(v,E){E.actions&&this.dismissibleItemProcessActions(v,E.actions)};
_.c.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.c.attached=function(){this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.c.dismissibleItemProcessActions=function(v,E){for(var n=0;n<E.length;n++){var f=E[n];_.C(f,_.mD)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.C(f,_.mD)),v.stopPropagation())}};
_.c.dismissibleItemHandleReplaceEnclosingAction=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12737_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:CsF}))};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$12737_inlinePreviewHoverListener)==null||iS(v)};
_.c.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.c.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var v=this.data.layout==="MINI_APP_LAYOUT_SQUARE";Md(eBl)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:v===void 0?!1:v})}else Md(sx1)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
Kw.prototype.experimentalPropertiesChanged=Kw.prototype.experimentalPropertiesChanged;Kw.prototype.dataChanged=Kw.prototype.dataChanged;Kw.prototype.dismissibleItemOnRequestSent=Kw.prototype.dismissibleItemOnRequestSent;Kw.prototype.dismissibleItemOnYtServiceRequestSent=Kw.prototype.dismissibleItemOnYtServiceRequestSent;_.k([_.h(LqF),_.W("design:type",Object)],Kw.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Kw.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kw.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Kw.prototype,"isDismissed",void 0);_.k([_.H(),_.W("design:type",Object)],Kw.prototype,"dismissedRenderer",void 0);_.k([_.Wp(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.W("design:type",HTMLElement)],Kw.prototype,"thumbnailWrapper",void 0);
_.k([_.Wp("mini-game-card-view-model"),_.W("design:type",HTMLElement)],Kw.prototype,"miniGameCardViewModel",void 0);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Kw.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.k([_.jk("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Kw.prototype,"dismissibleItemOnRequestSent",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kw.prototype,"dataChanged",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kw.prototype,"isRichGrid",void 0);_.k([_.On("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kw.prototype,"experimentalPropertiesChanged",null);
Kw=_.k([_.p5({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Kw);
_.u(Kw,"ytd-mini-game-card-view-model",function(){if(peo!==void 0)return peo;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return peo=v},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var MJi;var SX1;var di=function(){return _.AK.apply(this,arguments)||this};
_.S(di,_.AK);di.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
di.prototype.getContinuationUrl=function(v){var E={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.V1(v,E)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],di.prototype,"data",void 0);di=_.k([_.p5({is:"yt-reload-continuation",noInjection:!0})],di);var UW1;var qXg;var Ih=function(){var v=_.g.apply(this,arguments)||this;v.notificationData={};return v};
_.S(Ih,_.g);_.c=Ih.prototype;_.c.isMenuExpanded=function(v){return v&&v.length<=1?"undefined":"false"};
_.c.dataChanged_=function(){this.selected=void 0;var v=this.computeSelectedIndex_(this.data);v>=0&&(this.selected=v);v=this.data&&this.data.length>1;_.Vt(this.hostElement,"has-items",v);_.K(this.hostElement).querySelector("#label").tabIndex=v?0:-1};
_.c.onDropdownOpen=function(){var v=_.lc();if(this.parentTrackingParams&&this.data){var E=_.tx(this.parentTrackingParams);this.data.forEach(function(n){v&&E&&n.trackingParams&&(n=_.tx(n.trackingParams),_.aQ(v,E,n),_.CH(v,[n]))})}else this.parentTrackingParams||_.li(new _.yc("No parent tracking params passed in for yt-dropdown-menu."))};
_.c.hasNotification=function(v){var E;if(v.targetId&&((E=this.notificationData)==null?0:E.targetId)){var n;return v.targetId===((n=this.notificationData)==null?void 0:n.targetId)}};
_.c.computeSelectedIndex_=function(v){if(v)for(var E=0,n=v.length;E<n;E++)if(v[E].selected)return E;return-1};
_.c.computeLabel_=function(v){return this.data&&v!=void 0?this.data[v].title:""};
_.c.computeShowIcon_=function(v,E){return!E&&!!v};
_.c.computeVerticalOffset_=function(v){return v?36:0};
_.c.computeEndpoint_=function(v){return v.endpoint||v.navigationEndpoint};
_.c.onLabelClick_=function(v){this.data&&this.data.length<=1?v.stopPropagation():this.menuExpanded="true"};
_.c.onIronActivate_=function(v){v=v.detail.item;var E=_.K(this.hostElement).querySelector("#repeat").itemForElement(v);if(E&&E.trackingParams){var n=_.lc(),f=_.tx(E.trackingParams);n&&_.qx(n,f)}if(E&&E.serviceEndpoint)_.Z("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(E.serviceEndpoint):_.$Z(this.hostElement,[E.serviceEndpoint]),_.jK(this.hostElement,"yt-playlist-reloading");else a:{if((E=v.querySelector("yt-supported-renderers"))&&(E=
E.rendererElement)&&E.is=="yt-reload-continuation"){E.trigger();break a}(v=v.querySelector("yt-reload-continuation"))&&v.trigger()}};
_.c.onTap_=function(v){v.preventDefault()};
_.c.onItemTap_=function(v){this.ytEndpointBehavior.onEndpointTap_(v)};
_.c.onLinkFocus_=function(v){try{var E=v.target}catch(f){}if(E){var n=E.querySelector("tp-yt-paper-item");n&&_.lz(this,"focus",function(){n.focus()})}};
_.c.onMenuClose_=function(){this.menuExpanded="false"};
_.c.isLabelIconActive_=function(v){return v==="true"};
_.c.computeHasSubtitle_=function(v){return!!v};
_.c.computeHrefForItem_=function(v){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(v))};
_.c.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
Ih.prototype.onMenuClose_=Ih.prototype.onMenuClose_;Ih.prototype.onTap_=Ih.prototype.onTap_;Ih.prototype.onIronActivate_=Ih.prototype.onIronActivate_;Ih.prototype.onDropdownOpen=Ih.prototype.onDropdownOpen;Ih.prototype.dataChanged_=Ih.prototype.dataChanged_;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ih.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],Ih.prototype,"ytEndpointBehavior",void 0);
_.k([_.H(),_.W("design:type",Array)],Ih.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Ih.prototype,"parentTrackingParams",void 0);_.k([_.H(),_.W("design:type",Object)],Ih.prototype,"selected",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Ih.prototype,"useLabel",void 0);_.k([_.H(),_.W("design:type",String)],Ih.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ih.prototype,"iconLabel",void 0);
_.k([_.H(),_.W("design:type",String)],Ih.prototype,"ariaLabel",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Ih.prototype,"disabled",void 0);_.k([_.H({computed:"isMenuExpanded(data)"}),_.W("design:type",String)],Ih.prototype,"menuExpanded",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Ih.prototype,"closeOnActivate",void 0);_.k([_.H({reflectToAttribute:!0,value:_.Z("web_modern_buttons")}),_.W("design:type",Boolean)],Ih.prototype,"modernButtons",void 0);
_.k([_.H(),_.W("design:type",Object)],Ih.prototype,"notificationData",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ih.prototype,"dataChanged_",null);_.k([_.jk("paper-dropdown-open"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ih.prototype,"onDropdownOpen",null);
_.k([_.jk("iron-activate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ih.prototype,"onIronActivate_",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ih.prototype,"onTap_",null);_.k([_.jk("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ih.prototype,"onMenuClose_",null);
Ih=_.k([_.p5({is:"yt-dropdown-menu",disableElementRegistration:!0})],Ih);
_.u(Ih,"yt-dropdown-menu",function(){if(qXg===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;UW1===void 0&&(UW1=document.createElement("template"));var f=UW1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qXg=v}v=qXg;return v},{mode:2});var Yx=function(){var v=_.g.apply(this,arguments)||this;v.hasNotification=!1;return v};
_.S(Yx,_.g);Yx.prototype.computeId=function(v){return v};
Yx.prototype.computeHorizontalAlign=function(v){return v?"right":"left"};
Yx.prototype.computeAccessibilityLabel=function(v){var E,n;return((E=v.accessibility)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label)||null};
Yx.prototype.notificationDataChanged=function(){var v;this.hasNotification=!!this.notificationData&&!((v=this.data)==null?0:v.icon)};
Yx.prototype.notificationDataChanged=Yx.prototype.notificationDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Ps.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],Yx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Yx.prototype,"data",void 0);_.k([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],Yx.prototype,"id",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],Yx.prototype,"isRightAligned",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Yx.prototype,"disabled",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Yx.prototype,"closeOnActivate",void 0);_.k([_.H(),_.W("design:type",Object)],Yx.prototype,"notificationData",void 0);_.k([_.H(),_.W("design:type",Object)],Yx.prototype,"hasNotification",void 0);
_.k([_.On("notificationData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yx.prototype,"notificationDataChanged",null);Yx=_.k([_.p5({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Yx);
_.u(Yx,"yt-sort-filter-sub-menu-renderer",function(){if(SX1===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;MJi===void 0&&(MJi=document.createElement("template"));var f=MJi;n.call(E,f.content.cloneNode(!0),v.content.firstChild);SX1=v}v=SX1;return v},{mode:2});_.Nw(hBX);
var Ja6=_.qu(function(v){var E=v.children;var n=v.className;var f=v.style;var x=v.role;var y=v.ariaSelected;var Q=v.ariaLabel;var e=v.ariaHidden;var F=v.ariaLabelledby;var b=v.ariaDescribedby;var l=v.command;var r=v.elementsCommand;var a=v.forceNewState;var M=v.tabIdentifier;var U=v.target;var d=v.tabIndex;var Y=v.stopPropagation;v=_.o0(function(){var V=_.wJ({innertubeCommand:l==null?void 0:l(),elementsCommand:r==null?void 0:r(),forceNewState:a==null?void 0:a(),stopPropagation:(Y==null?void 0:Y())!==
!1});V||(V={});V["aria-hidden$"]=e==null?void 0:e();var O;V.tabindex$=(O=d==null?void 0:d())!=null?O:V.tabindex$;var T;V["force-new-state$"]=(T=a==null?void 0:a())!=null?T:V["force-new-state$"];var L;V.role$=(L=x==null?void 0:x())!=null?L:V.role$;var xX;V["aria-hidden$"]=(xX=e==null?void 0:e())!=null?xX:V["aria-hidden$"];var t;V.target$=(t=U==null?void 0:U())!=null?t:V.target$;return V},void 0,"SU0Mnc");
return _.w(_.Ed,{aTagConfig:v,className:n,style:f,ariaLabel:Q,ariaLabelledby:F,ariaDescribedby:b,ariaSelected:y,tabIdentifier:M},E)},"ha");var AaX=_.Z("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",KOU=_.GG(VJF);_.Nw(VJF);_.Yz(KOU,"place-data-view-model",{props:{data:_.Kt}});var dW4=new _.$Y("INLINE_PLAYBACK_HOOK_TOKEN");var i89=function(v){this.setActiveSlideIndex=v;this.jobIds=[];this.isSlideshowPlaying=!1},RBs=function(v){if(v.isSlideshowPlaying){v.isSlideshowPlaying=!1;
for(var E=v.jobIds,n=0,f=E.length;n<f;n++)_.wh.cancelJob(E[n]);v.jobIds.length=0}},zB1=function(v,E){v.isSlideshowPlaying||(v.isSlideshowPlaying=!0,IC1(v),YX4(v,E,0))},IC1=function(v){_.H8(_.wh,function(){v.setActiveSlideIndex(0)},1)},YX4=function(v,E,n){v.jobIds.push(_.H8(_.wh,function(){var f=n<E-1?n+1:0;
v.setActiveSlideIndex(f);YX4(v,E,f)},1800))};var O8y=new _.$Y("IMAGE_ON_LOAD_HANDLER_TOKEN");var hBg=_.qu(function(v){return _.w("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.w(_.x6,{cond:function(){var E;return(E=v.data())==null?void 0:E.thumbnail},
then:function(E){return _.w(_.UZ,{data:E,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.hw=_.qu(function(v){var E=v.data;var n=v.lockupExperiments;v={};return _.w("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.w("div",{class:_.W8("ytThumbnailOverlayButtonViewModelButton",(v.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var f;return n&&((f=n())==null?void 0:f.useLegacySizedIconButton)},v))},_.w(_.mI,{data:function(){return E().overlayButton}},{buttonViewModel:function(f){return _.w(_.C7,{data:f.data,
buttonOverrides:function(){var x;return n&&((x=n())==null?0:x.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.hw.idomCompat=!0;var Aaw=_.qu(function(v){var E=_.ij(function(n){n.preventDefault();return!1});
return _.w("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":E},_.w(_.mI,{data:function(){return v.data().buttons}},{toggleButtonViewModel:function(n){return _.w("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.w(_.lS,{data:n.data}))}}))},"ka");
Aaw.idomCompat=!0;var VJi=_.qu(function(v){var E=function(){var n;return((n=_.C(v.data().rendererContext,_.AF))==null?void 0:n.label)||""};
return _.w("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.w(_.x6,{cond:function(){return v.data().image},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.w(_.UZ,{data:function(){return v.data().image},
alt:E}))}}),_.w(_.x6,{cond:function(){return v.data().text},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return v.data().text})}}))},"la");var WOy=_.p7({thumbnailOverlayTitleViewModel:jwP,thumbnailOverlayBadgeViewModel:kCX,thumbnailBottomOverlayViewModel:dtz,thumbnailOverlayFullViewModel:VJi,thumbnailOverlayButtonViewModel:_.hw}),$WA=_.p7({thumbnailHoverOverlayViewModel:YNU,thumbnailHoverOverlayToggleActionsViewModel:Aaw}),LO9=_.p7({animatedThumbnailOverlayViewModel:hBg});_.Nw(GJF);var DWS,H81;DWS=_.qu(function(v){var E=[],n=function(){var a,M;return IX((a=v.width)==null?void 0:a.call(v),(M=v.height)==null?void 0:M.call(v))},f=_.P().resolve(_.jp(O8y)),x=_.Ig(function(){E.push("elRef.value set");
var a;(a=v.playbackRef)==null||a.call(v,{thumbnailElRef:x,thumbnail:v.data().image,thumbnailOverlays:v.data().overlays,thumbnailSize:n()})});
_.l5(function(){E.push("onInit");_.Fp(function(){E.push("onCleanup")})});
var y=_.mc(H8L),Q=function(){var a,M;return(M=(a=v.aspectRatio)==null?void 0:a.call(v))!=null?M:0},e=function(){return(v.data().image?_.V3E(v.data().image):Q())<=1&&Q()===0},F=function(){return e()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},b=function(){x.value||_.li(new _.yc("Thumbnail elRef.value is null",E.join("\n")));
f&&x.value&&f(x.value)},l=function(){var a,M;
return((a=v.hovered)==null?void 0:a.call(v))&&n()!=="large"&&((M=v.data().overlays)==null?void 0:M.some(function(U){return _.C(U,kJF)}))},r={};
return _.w("yt-thumbnail-view-model",{class:_.W8("yt-thumbnail-view-model",v.className,function(){return TKQ(Q())},function(){var a,M;
a:{var U=n(),d=(a=v.disableRounding)==null?void 0:a.call(v);a=(M=v.isClip)==null?void 0:M.call(v);if(!d&&!a)switch(U){case "large":M="yt-thumbnail-view-model--large";break a;case "small":M="yt-thumbnail-view-model--small";break a;default:M="yt-thumbnail-view-model--medium";break a}M=void 0}return M},(r["yt-thumbnail-view-model--cinematic"]=e,r)),
style:_.tZ({"background-color":function(){var a,M=e()?(a=v.data().backgroundColor)==null?void 0:a.lightTheme:void 0;return M?XJ(M,"1"):void 0}}),
el:x},_.w(_.x6,{cond:e,then:function(){return _.w("div",{class:"yt-thumbnail-view-model__blurred-image"},_.w(_.UZ,{data:function(){return v.data().image},
alt:"",contentMode:F,targetWidth:v.width,onload:b}))}}),_.w("div",{class:"yt-thumbnail-view-model__image"},_.w(_.UZ,{data:function(){return v.data().image},
alt:"",contentMode:F,targetWidth:v.width,onload:b}),null),_.w(_.mI,{data:function(){return l()?void 0:v.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:OPw,thumbnailOverlayBadgeViewModel:function(a){return _.w(kCX,{data:a.data,thumbnailSize:n,isClip:v.isClip})},
thumbnailBottomOverlayViewModel:dtz,thumbnailOverlayFullViewModel:VJi,thumbnailOverlayButtonViewModel:function(a){return _.w(_.hw,{data:a.data,lockupExperiments:v.lockupExperiments})}}),_.w(_.mI,{data:function(){var a;
return((a=v.hovered)==null?0:a.call(v))?v.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(a){return _.w(hhS,{data:a.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Aaw}),_.w(_.mI,{data:function(){var a;return((a=v.hovered)==null?0:a.call(v))&&y()?v.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:hBg}),_.w(_.x6,{cond:v.isClip,then:function(){return uvy()}}))},"ma");
H81=_.Z("web_enable_sink_lockups_batch")?DWS:GJF;_.Aw=_.Z("web_enable_sink_lockups_batch")?DWS:_.GG(H81,{callbacks:{playbackRef:!0}});DWS.idomCompat={callbacks:{playbackRef:!0}};var tJX=_.p7({thumbnailViewModel:H81});_.Nw(BK$);var gjz=_.qu(function(v){var E=_.p(_.t7(-1,void 0,"GEkecf")),n=E.next().value,f=E.next().value;_.l5(function(){var x=new i89(f);zB1(x,v.data().thumbnails.length);_.Fp(function(){RBs(x)})});
return _.w("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.w(_.mI,{data:function(){return v.data().thumbnails}},{thumbnailViewModel:function(x,y){return _.w("div",{class:function(){var Q=!v.data().primaryThumbnail,e=y(),F=n(),b=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Q&&e===0&&b.push("yt-collection-thumbnail-slideshow--first-slide");e<=F&&b.push("yt-collection-thumbnail-slideshow--show-slide");return b.join(" ")}},_.w(_.Aw,{data:x.data,
disableRounding:v.disableRounding}))}}))},"na"),fnE=_.Z("web_enable_sink_lockups_batch")?gjz:BK$,NKX=_.Z("web_enable_sink_lockups_batch")?gjz:_.GG(BK$);
gjz.idomCompat=!0;var vPE=new _.$Y("DWELL_DETECTOR_REGISTRY_TOKEN");var oPE=_.p7({thumbnailViewModel:H81});_.Nw(xL1);var jxg=_.qu(function(v){var E=nP9(v.triggeringElement),n=function(){return!!v.data().primaryThumbnail};
return _.w("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.w(uv4,{stackEnabled:n,thumbnailSize:function(){var f,x;return IX((f=v.width)==null?void 0:f.call(v),(x=v.height)==null?void 0:x.call(v))},
doubleStack:v.doubleStack,stackColor:function(){return v.data().stackColor}},_.w("div",null,_.w(_.mI,{data:function(){return v.data().primaryThumbnail}},{thumbnailViewModel:function(f){var x={};
return _.w(_.Aw,{data:f.data,width:v.width,height:v.height,aspectRatio:v.aspectRatio,disableRounding:v.disableRounding,className:_.W8((x["yt-collection-thumbnail-view-model--has-stacks"]=n,x)),hovered:v.hovered,playbackRef:v.playbackRef})}}),_.w(_.x6,{cond:function(){var f;
return E()&&((f=v.data().thumbnails)==null?void 0:f.length)},
then:function(){return _.w("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.w(NKX,{data:v.data,disableRounding:function(){return!n()}}))}}))))},"oa"),O84=_.Z("web_enable_sink_lockups_batch")?jxg:_.GG(xL1,{callbacks:{playbackRef:!0}});
jxg.idomCompat={callbacks:{playbackRef:!0}};
var uv4=_.qu(function(v){var E=v.children;var n=v.stackEnabled;var f=v.thumbnailSize;var x=v.doubleStack;var y=v.stackColor;var Q,e=(Q=_.P().resolve(_.jp(_.aj)))==null?void 0:Q();return _.w(_.x6,{cond:n,then:function(){return _.w(xt4,{data:function(){var F,b;return{experimentEnabled:!0,thumbnailSize:f(),doubleStack:x==null?void 0:x(),color:e?y==null?void 0:(F=y())==null?void 0:F.darkTheme:y==null?void 0:(b=y())==null?void 0:b.lightTheme,enableResponsiveMode:!1}}},E)},
else:function(){return E}})},"pa");var kJi=new _.$Y("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var DK;_.VL={calledOnce:!0,state:"visible"};DK={calledOnce:!0,state:"hidden"};_.HB=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;var f=v.className;var x=v.delayedClassName;v=v.animationEntityKey;var y=_.Ig(),Q=_.SI(v,""),e=_.Bi(tBL,Q),F=function(){var t,QE;return(QE=(t=e())==null?void 0:t.value)!=null?QE:!1},b=function(){_.Mu(_.n7("booleanEntity",Q(),{key:Q(),
value:!0}));V=void 0};
v=_.p(_.Rj(F));var l=v.next().value,r=v.next().value;v=_.p(_.Rj(F));var a=v.next().value,M=v.next().value;v=_.p(_.Rj(function(){var t;return F()?(t=E().styleTransitionConfig)==null?void 0:t.destinationStyle:void 0}));
var U=v.next().value,d=v.next().value,Y=function(){var t=Object.assign({},E(),U()&&{style:U()}),QE,MF,K1=t.label,JG=(QE=t.interaction)==null?void 0:(MF=QE.accessibility)==null?void 0:MF.label;QE=t.iconImage?t.label&&t.label.content?t.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:K1,accessibilityLabel:JG,style:Q8E(t.style),type:XQE(t.style),state:"active",size:pQE(t.size),iconPosition:QE,disabled:!1,aTagConfig:yBE(t,n)}},V;
_.gt(y,{visibilityCallback:function(t){var QE,MF=(QE=E().interaction)==null?void 0:QE.onFirstVisible;t&&MF&&_.lj(MF)},
showOption:_.VL});var O=function(){return vi(Y(),!!E().iconImage)};
f=_.W8(function(){return"ytwAdButtonViewModelHost"},function(){return E().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var t=!!E().delayedAppearanceConfig,QE=l();
return t?QE?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var t=!!E().delayedAppearanceConfig,QE=a();
return t?QE?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!E().delayedAppearanceConfig||l()?x==null?void 0:x():""},f!=null?f:"");
var T=function(){var t,QE=(t=E().delayedAppearanceConfig)==null?void 0:t.delayedInvisibleSeconds;QE&&(V=_.xa(_.wh,function(){r(!0);L()},QE*1E3))},L=function(){var t,QE=(t=E().delayedAppearanceConfig)==null?void 0:t.delayedVisibleSeconds;
QE&&(V=_.xa(_.wh,function(){M(!0);xX()},QE*1E3))},xX=function(){var t,QE=(t=E().styleTransitionConfig)==null?void 0:t.styleTransitionSeconds,MF,K1=(MF=E().styleTransitionConfig)==null?void 0:MF.destinationStyle;
QE&&K1?V=_.xa(_.wh,function(){d(K1);b()},QE*1E3):b()};
_.l5(function(){var t;((t=E().delayedAppearanceConfig)==null?0:t.transitionDurationSeconds)&&y.value.style.setProperty("transition-duration",E().delayedAppearanceConfig.transitionDurationSeconds+"s");T()});
_.Fp(function(){V&&_.wh.cancelJob(V)});
return _.w("ad-button-view-model",{class:f,el:y},_.w(_.x6,{cond:Y,then:function(){return _.w(WT,{data:Y,icon:function(){return _.w(_.x6,{cond:function(){return E().iconImage},
then:function(t){return _.w(_.UZ,{data:t,alt:"",targetWidth:O,targetHeight:O,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var WO4=_.qu(function(v){var E=v.data;v=_.Ig();_.gt(v,{visibilityCallback:function(n){var f,x=(f=E().interaction)==null?void 0:f.onFirstVisible;n&&x&&_.lj(x)},
showOption:_.VL});return _.w("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:v},_.w("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.w(_.mI,{data:function(){return E().secondaryAdButton}},{adButtonViewModel:function(n){return _.w(_.HB,{data:n.data})}})),_.w("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.w(_.mI,{data:function(){return E().primaryAdButton}},{adButtonViewModel:function(n){return _.w(_.HB,{data:n.data})}})))},"ra");var $Wz=_.qu(function(v){var E=function(){var n;return((n=v.data())==null?void 0:n.answers)||[]};
return _.w("yt-survey-icons",{class:"ytSurveyIconsHost"},_.w("div",{class:"ytSurveyIconsHeader"},_.w("div",{class:"ytSurveyIconsTitle"},function(){var n;return(n=v.data())==null?void 0:n.text}),_.w("div",null,_.w(WT,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var n;(n=v.onDismiss)==null||n.call(v)}}},
iconName:"DISMISSAL"}))),_.w("div",null,_.w("div",{class:"ytSurveyIconsAnswers"},_.w(_.cG,{each:function(){return E()},
keyBy:"INDEX"},function(n,f){return _.w("div",null,_.w(WT,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var x;(x=v.onSelect)==null||x.call(v,n(),f)}}},
icon:function(){return _.w(_.B8,{icon:function(){var x,y;return(x=n())==null?void 0:(y=x.icon)==null?void 0:y.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.w("div",{class:"ytSurveyIconsAnswersText"},_.w("div",null,function(){return E().length?E()[0].text:""}),_.w("div",null,function(){return E().length?E()[E().length-1].text:""}))))},"sa");var LOo=_.qu(function(v){var E=_.p(_.t7(!1,void 0,"s8HkOb")),n=E.next().value,f=E.next().value,x=_.Bi(Pk$,function(){var e;return(e=v.data().keys)==null?void 0:e.surveyEntityKey}),y=_.Bi(aWL,function(){var e;
return(e=v.data().keys)==null?void 0:e.surveyStateEntityKey});
_.dt("ytd-slimline-survey-show-action",function(){f(!1)});
var Q=function(){var e,F;var b=(e=y())==null?void 0:(F=e.questionStack)==null?void 0:F[0];if(b!==void 0){var l,r;return(l=x())==null?void 0:(r=l.questions)==null?void 0:r[b]}};
E={};return _.w("yt-slimline-survey-view-model",{class:_.W8("ytSlimlineSurveyViewModelHost",(E.ytSlimlineSurveyViewModelCollapsed=function(){return n()},E))},_.w("div",{class:"ytSlimlineSurveyViewModelContainer"},_.w(_.x6,{cond:function(){var e;
return((e=Q())==null?void 0:e.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.w($Wz,{data:function(){return Q()},
onSelect:function(e,F){var b,l;return _.X(function(r){f(!0);if(l=(b=v.data())==null?void 0:b.onSelectRating)_.lj(l),_.Mu(nxi(F));_.yQ(r)})},
onDismiss:function(){f(!0)}})}})))},"ta");var GJi=_.qu(function(v){return _.w("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.w(_.mI,{data:function(){var E;return(E=v.data())==null?void 0:E.attachments}},{flexibleActionsViewModel:function(E){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(rui,{data:E.data,
layout:function(){var n;return((n=v.lockupStyle())==null?void 0:n.arrangement)===1?0:1},
justifyContentOverride:function(){var n;return((n=v.lockupStyle())==null?void 0:n.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(E){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(LOo,{data:E.data}))},
expandableMetadataViewModel:function(E){E=E.data;var n;return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},(n=_.P().resolve(_.jp(kJi)))==null?void 0:n({data:E}))},
adButtonGroupViewModel:function(E){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(WO4,{data:E.data}))}}))},"ua");var ln1=_.WG("rich_grid_min_item_width",310),wQL=_.WG("rich_grid_max_item_width",500);var KyL=_.qu(function(v){var E=v.data;return _.w("br-nz-badge-shape",{class:_.W8(function(){return S3A(E().brNzRatingBadgeType)}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},function(){var n;
return(n=E())==null?void 0:n.text})},"va");_.Nw(dLG);var TK1,a3Q;TK1=_.qu(function(v){var E=function(){var n=v.data(),f,x;return n?JB1(n,!((f=v.workaroundShortsIsThumbnailBadge)==null||!f.call(v)),(x=v.modern)==null?void 0:x.call(v)):void 0};
return _.w("yt-badge-view-model",{class:_.W8("yt-badge-view-model-wiz",v.class)},_.w(_.Q1,null,_.w(_.y1,{when:function(){var n;return!((n=E())==null||!n.brNzRatingBadgeType)}},function(){return _.w(KyL,{data:function(){return E()}})}),_.w(_.y1,{when:function(){return!!E()&&!E().brNzRatingBadgeType}},function(){return _.w(_.jS,{data:function(){return E()}})})))},"wa");
a3Q=_.Z("web_enable_sink_yt_badge_view_model")?TK1:dLG;_.gi=_.Z("web_enable_sink_yt_badge_view_model")?TK1:_.GG(dLG);TK1.idomCompat=!0;var Y3$,In$;Y3$=16/9;In$=2/3;_.N8=_.qu(function(v){var E=v.data;var n=v.className;var f=v.imageSizeConfig;var x=v.notifyOnLoaded;v=_.Ig();var y=function(){return E().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Q=function(){var l;
return _.dQ((l=E())==null?void 0:l.rendererContext)},e={};
e=(e["yt-content-preview-image-view-model-wiz"]=!0,e["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return y()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},e["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Q()},e);
var F=function(){var l,r;return(r=(l=_.C(E().rendererContext,_.AF))==null?void 0:l.label)!=null?r:""},b=function(){return ABs(E())};
_.Ya(v,function(){var l;return(l=E())==null?void 0:l.rendererContext});
return _.w("yt-content-preview-image-view-model",{el:v,role:function(){return Q()?"link":void 0},
tabindex:function(){return Q()?0:void 0},
class:_.W8(n,e,function(){var l=y();var r=f==null?void 0:f();l=l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(r==null?void 0:r.size)!=null&&r.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(r==null?void 0:r.size)!=null&&r.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 l}),
style:function(){return hvL(y(),E().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",f==null?void 0:f(),VFX(b()),E().layoutWidth,E().layoutHeight)}},_.w(_.x6,{cond:b,
then:function(l){return _.w(_.UZ,{data:l,alt:F,"data-disabled$":function(){return!F()},
notifyOnLoaded:x})}}),_.w(_.mI,{data:function(){var l;
return(l=E())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:hhS,
thumbnailOverlayButtonViewModel:_.hw}))},"xa");
_.N8.idomCompat=!0;var uv=_.qu(function(v){var E=v.data;var n=v.className;var f=v.useSmallLayout;var x=v.useMediumText;v=_.Ig();var y={};x=(y["yt-attribution-view-model-wiz"]=!0,y["yt-attribution-view-model-wiz--medium-text"]=x,y);_.Ya(v,function(){var Q;return(Q=E())==null?void 0:Q.rendererContext});
return _.w("yt-attribution-view-model",{el:v,class:_.W8(n,x)},_.w(_.x6,{cond:function(){return _.dQ(E().rendererContext)},
then:function(){return _.w("button",{class:"yt-attribution-view-model-wiz--tappable"},_.w(i8o,{data:E,useSmallLayout:f}))},
else:function(){return _.w(i8o,{data:E,useSmallLayout:f})}}))},"ya"),i8o=_.qu(function(v){var E=v.data;
var n=v.useSmallLayout;var f=function(){return{size:(n==null?0:n())?16:24}};
return _.w(_.gF,null,_.w(_.mI,{data:function(){return E().contentPreviewImage}},{contentPreviewImageViewModel:function(x){return _.w(_.N8,{data:x.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:f})}}),_.w(_.mI,{data:function(){return E().badge}},{badgeViewModel:function(x){return _.w(_.gi,{data:x.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.w(_.x6,{cond:function(){return E().text},
then:function(){return _.w(_.nh,{text:function(){return E().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.w(_.x6,{cond:function(){return E().suffix},
then:function(){return _.w(_.nh,{text:function(){return E().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
uv.idomCompat=!0;var ObA=_.p7({avatarStackViewModel:Nf6,badgeViewModel:a3Q});_.Nw($L$);var zBl,RBS,tJg,BKF,vPP,EPF,nPo;zBl=_.qu(function(v){var E=v.delimiter;var n=v.max;var f=v.index;var x=v.isStandalone;return _.w(_.x6,{cond:function(){return n()-1>f()},
then:function(){var y={};return _.w("span",{class:_.W8("yt-content-metadata-view-model-wiz__delimiter",(y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=x,y)),"aria-hidden":!0},E)}})},"Aa");
RBS=_.qu(function(v){var E=v.metadataPart;var n=v.maxLines;return _.w(_.nh,{text:function(){return E().text},
linkInheritColor:!0,className:function(){return LyG(n())},
userInput:!0})},"Ba");
tJg=_.qu(function(v){var E=v.metadataPart;var n=v.maxLines;return _.w(_.x6,{cond:function(){return E().tooltip},
then:function(f){return _.w("span",{title:f,role:"tooltip"},_.w(RBS,{metadataPart:E,maxLines:n}))},
else:function(){return _.w(RBS,{metadataPart:E,maxLines:n})}})},"Ca");
BKF=_.qu(function(v){var E=v.metadataPart;var n=v.isOverlay;var f=v.useMediumText;var x=v.hideAvatar;var y=function(){return E().maxLines!==void 0?E().maxLines:1};
return _.w(_.gF,null,_.w(_.mI,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(Q){return _.w(_.FK,{data:Q.data,
isOverlay:n,useMediumText:f,hideAvatar:x})},
badgeViewModel:_.gi}),_.w(_.x6,{cond:function(){return E().text},
then:function(){return _.w(tJg,{metadataPart:E,maxLines:y})}}))},"Da");
vPP=_.qu(function(v){var E=v.metadataRow;var n=v.isInline;var f=v.delimiter;var x=v.isOverlay;var y=v.useMediumText;var Q=v.extensions;var e=function(){var b;return HbX(Q==null?void 0:(b=Q())==null?void 0:b.lockupMetadata,E())},F=function(){return E().metadataParts||[]};
v={};return _.w("div",{class:_.W8("yt-content-metadata-view-model-wiz__metadata-row",(v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=n,v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var b;return gPE(Q==null?void 0:(b=Q())==null?void 0:b.lockupMetadata,E())},v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var b;
return!!(Q==null?0:(b=Q())==null?0:b.lockupMetadata)&&E().badges},v))},_.w(_.mI,{data:function(){return E().badges}},{badgeViewModel:function(b){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.w(_.gi,{data:b.data}))}}),_.w(_.cG,{each:F},function(b,l){return _.w(_.gF,null,_.w(BKF,{metadataPart:b,
isOverlay:x,useMediumText:y,hideAvatar:e}),_.w(zBl,{delimiter:f,max:function(){return F().length},
index:l,isStandalone:!1}))}),_.w(_.x6,{cond:function(){return E().isSpacerRow&&!n()},
then:function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
EPF=_.qu(function(v){var E=_.Ue(v,{layout:0,isOverlay:!1});v=E.className;var n=E.data,f=E.layout,x=E.isOverlay,y=E.useMediumText,Q=E.extensions;E=_.Ig();var e=function(){return f()===0};
_.Ya(E,function(){return n().rendererContext});
var F=function(){return n().metadataRows||[]},b={};
return _.w("yt-content-metadata-view-model",{class:_.W8(v,"yt-content-metadata-view-model-wiz",(b["yt-content-metadata-view-model-wiz--inline"]=e,b["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.dQ(n().rendererContext)},b["yt-content-metadata-view-model-wiz--medium-text"]=y,b)),
el:E},_.w(_.cG,{each:F},function(l,r){return _.w(_.gF,null,_.w(vPP,{metadataRow:l,isInline:e,delimiter:function(){return n().delimiter},
isOverlay:x,useMediumText:y,extensions:Q}),_.w(_.x6,{cond:function(){return e()&&!l.isSpacerRow},
then:function(){return _.w(zBl,{delimiter:function(){return n().delimiter},
max:function(){return F().length},
index:r,isStandalone:!0})}}))}))},"Fa");
nPo=_.Z("web_enable_sink_yt_content_metadata_view_model")?EPF:$L$;_.oPP=_.Z("web_enable_sink_yt_content_metadata_view_model")?EPF:_.GG($L$);EPF.idomCompat=!0;var ib9=_.p7({avatarViewModel:_.s_,decoratedAvatarViewModel:HPS,contentMetadataViewModel:nPo,buttonViewModel:_.C7,attributionViewModel:uv});_.Nw(zvX);var fnP=_.qu(function(v){var E={};return _.w("yt-lockup-metadata-view-model",{class:_.W8("yt-lockup-metadata-view-model-wiz",function(){a:{var n=v.lockupStyle();if(n==null?0:n.isOverlay)n="yt-lockup-metadata-view-model-wiz--overlay";else switch(n==null?void 0:n.arrangement){case 1:n="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:n="yt-lockup-metadata-view-model-wiz--vertical"}}return n},function(){a:{var n=v.lockupStyle();
if(n==null?0:n.isTiny)n="yt-lockup-metadata-view-model-wiz--tiny";else switch(n==null?void 0:n.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":n="yt-lockup-metadata-view-model-wiz--compact";break a;default:n="yt-lockup-metadata-view-model-wiz--standard"}}return n},(E["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.isOverlay},E["yt-lockup-metadata-view-model-wiz--card"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.isCard},E["yt-lockup-metadata-view-model-wiz--centered"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.isCentered},E["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.typographyBump},E["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.useLegacyTypography},E["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var n;
return(n=v.lockupStyle())==null?void 0:n.useRichGridLegacyTypography},E))},_.w(_.mI,{data:function(){return v.data().image}},{avatarViewModel:function(n){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.XK,{data:n.data}))},
decoratedAvatarViewModel:function(n){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.ez,{data:n.data}))}}),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var n;return(n=v.data().title)==null?void 0:n.content}},_.w(_.x6,{cond:function(){return v.data().title},
then:function(n){return _.w(_.Ed,{command:v.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:v.lockupAccessibilityLabel},_.w(_.nh,{text:n}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.w(_.mI,{data:function(){return v.data().metadata}},{contentMetadataViewModel:function(n){return _.w(_.oPP,{data:n.data,
layout:1,useMediumText:function(){var f,x;return((f=v.lockupStyle())==null?void 0:f.typographyBump)||((x=v.lockupStyle())==null?void 0:x.useRichGridLegacyTypography)},
extensions:function(){var f,x;return{lockupMetadata:{byline:{hideAvatar:((f=v.lockupStyle())==null?void 0:f.arrangement)===0,addPadding:((x=v.lockupStyle())==null?void 0:x.arrangement)===1}}}}})}})),_.w(_.mI,{data:function(){return v.data().attribution}},{attributionViewModel:function(n){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.w(uv,{data:n.data,
useSmallLayout:!0}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.w(_.mI,{data:function(){return v.data().menuButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
buttonOverrides:function(){var f;return((f=v.lockupStyle())==null?0:f.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),xLl=_.Z("web_enable_sink_lockups_batch")?fnP:_.GG(zvX);
fnP.idomCompat=!0;var cBi=_.qu(function(v){var E=_.Ig();_.mM(function(){requestAnimationFrame(function(){_.IY(E.value)})});
var n={},f={},x={};return _.w("notification-multi-action-renderer",{class:_.W8("ytNotificationMultiActionRendererHost",(n.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var y;return(y=v.useLegacyShelfStyle)==null?void 0:y.call(v)},n)),
el:E},_.w("span",{"aria-live":"polite",class:_.W8("ytNotificationMultiActionRendererTextContainer",(f.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var y;return(y=v.useLegacyShelfStyle)==null?void 0:y.call(v)},f))},_.w(_.nh,{text:function(){return v.data().responseText}})),_.w("div",{class:_.W8("ytNotificationMultiActionRendererButtonContainer",(x.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var y;
return(y=v.useLegacyShelfStyle)==null?void 0:y.call(v)},x))},_.w(_.mI,{data:function(){var y;
return(y=v.data().buttons)==null?void 0:y.map(function(Q){if(Q=Q.buttonRenderer){var e,F=Object,b=F.assign,l=(e=Q.icon)==null?void 0:e.iconType;e=(e=Q.command||Q.serviceEndpoint||Q.navigationEndpoint)?{innertubeCommand:e}:void 0;Q={buttonViewModel:b.call(F,{},{iconName:l,onTap:e,trackingParams:Q.trackingParams,titleFormatted:Q.text?_.yI(Q.text):void 0},RvI(Q))}}else Q=void 0;return Q}).filter(function(Q){return!!Q})}},{buttonViewModel:function(y,Q){return _.w("div",null,_.w(_.C7,{data:y.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var e;return((e=v.useModernStyles)==null?0:e.call(v))?{type:Q()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var yBP=_.qu(function(v){var E=_.Ig();_.mM(function(){requestAnimationFrame(function(){_.IY(E.value)})});
return _.w("notification-text-renderer",{el:E,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.w(_.nh,{text:function(){return v.data().successResponseText}}))},"Ia");_.pQP=_.qu(function(v){var E=_.Bi(BeX,function(){var f;return tFE((f=v.contentId)==null?void 0:f.call(v))}),n=function(){var f;
return _.C((f=E())==null?void 0:f.command,_.mD)};
return _.w(_.x6,{cond:function(){var f;if(!(f=n())){var x;f=_.C((x=E())==null?void 0:x.command,Gjz)}return f},
then:function(){return _.w(_.x6,{cond:n,then:function(){var f={};return _.w("div",{class:_.W8("ytDismissibleItemReplacedContent",function(){var x;return B3E((x=v.aspectRatio)==null?void 0:x.call(v))})},_.w("div",{class:_.W8((f.ytDismissibleItemAspectRatioContainer=function(){var x;
return((x=v.aspectRatio)==null?void 0:x.call(v))!==void 0},f))},_.w(_.mI,{data:function(){var x;
return(x=n())==null?void 0:x.item}},{notificationMultiActionRenderer:function(x){return _.w(cBi,{data:x.data,
useModernStyles:v.useModernStyle,useLegacyShelfStyle:v.useLegacyShelfStyle})},
notificationTextRenderer:yBP})))}})},
else:v.children})},"Ja");_.Q8X=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;v=_.Y$();var f=function(){var y;return((y=E().interaction)==null?0:y.onTap)?function(Q){var e;cBF(Q,(e=E().interaction)==null?void 0:e.onTap,n)}:void 0},x=function(){var y,Q=E(),e=f(),F=(y=_.C(E().rendererContext,_.AF))==null?void 0:y.label;
a:switch(Q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":y=1;break a;default:y=0}return{size:nWX(Q.size),type:y,onTap:e,accessibilityText:F}};
_.gt(v,{visibilityCallback:function(y){var Q,e=(Q=E().interaction)==null?void 0:Q.onFirstVisible;y&&e&&_.lj(e)},
showOption:_.VL});return _.w("ad-avatar-view-model",{class:function(){var y;return((y=E().interaction)==null?0:y.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:v},_.w(_.x6,{cond:function(){return E().image},
then:function(y){return _.w(VX,{data:x,image:y})}}))},"Ka");_.jz=_.qu(function(v){v=_.Ue(v,{hasDot:!1});var E=Object.assign({},v),n=v.data,f=v.hasDot;v=v.customCommandResolver;var x=(delete E.data,delete E.hasDot,delete E.customCommandResolver,E);E=function(){return n().style};
E!==void 0&&E!==null||_.Kk(Error("Dh"));E=_.Ig();_.Nl(E,function(){return n().interaction},v);
return _.w("ad-badge-view-model",{class:_.W8(function(){var y;return((y=n().interaction)==null?0:y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var y=x.adRenderingContextType();
n();return y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:E},_.w(_.jS,{data:function(){var y;n();return{type:2,text:(y=n().label)==null?void 0:y.content,adsIncludeDot:f(),isOverlay:n().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var XQX;_.O5=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;var f=v.adRenderingContextType;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(x){var y,Q=(y=E().interaction)==null?void 0:y.onFirstVisible;x&&Q&&_.lj(Q)},
showOption:_.VL});return _.w("ad-details-line-view-model",{class:function(){var x;return((x=E().interaction)==null?0:x.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:v},_.w(_.x6,{cond:function(){return E().style},
then:function(x){return _.w(_.cG,{each:function(){var y;return((y=E())==null?void 0:y.attributes)||[]},
keyBy:"INDEX"},function(y){return _.w(XQX,{attribute:y,style:x,adRenderingContextType:function(){return f()}})})}}))},"Ma");
XQX=_.qu(function(v){var E=v.attribute;var n=v.style;var f=v.adRenderingContextType;return _.w(_.x6,{cond:function(){return E().text},
then:function(x){return _.w(_.nh,{text:x,className:function(){var y=f();n();return y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var evl=_.qu(function(v){var E=v.data;var n=v.typographyBump;var f=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
v={};return _.w(_.gF,null,_.w("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.w(_.nh,{text:function(){return E().headline},
className:_.W8("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return f==null?void 0:f()},v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(n==null?void 0:n())&&!(f==null?0:f())},v)),
linkInheritColor:!0}),_.w(_.x6,{cond:function(){return E().description},
then:function(x){var y={};return _.w(_.nh,{text:x,className:_.W8("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return f==null?void 0:f()},y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(n==null?void 0:n())&&!(f==null?0:f())},y)),
linkInheritColor:!0})}}),_.w("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.w(_.mI,{data:function(){return E().adBadge}},{adBadgeViewModel:function(x){return _.w(_.jz,{data:x.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.w(_.mI,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(x){return _.w(_.O5,{data:x.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}}))),_.w("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
buttonOverrides:function(){a:switch(E().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var y="S";break a;default:y="M"}return{size:y}}})}})))},"Oa"),Fy1=_.qu(function(v){var E=v.data;
var n=v.noBottomMargin;var f=v.useVideoLockupTopPadding;var x=v.typographyBump;v={};v=_.W8("ytwFeedAdMetadataViewModelHostMetadata",(v.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return n==null?void 0:n()},v.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},v));
var y=function(){return E().adBadge};
y!==void 0&&y!==null||_.Kk(Error("Eh"));y={};var Q={};return _.w(_.gF,null,_.w(_.x6,{cond:function(){return E().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.w(_.mI,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(e){return _.w(_.Q8X,{data:e.data})}}))}}),_.w("div",{class:v},_.w("div",{class:_.W8("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return x==null?void 0:x()},y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(x==
null?void 0:x())&&_.Z("web_enable_typography_bump_v2")},y))},_.w(_.nh,{text:function(){return E().headline},
linkInheritColor:!0})),_.w(_.x6,{cond:function(){return E().description},
then:function(e){return _.w(_.nh,{text:e,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.w("div",{class:function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Z("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.w(_.mI,{data:function(){return E().adBadge}},
{adBadgeViewModel:function(e){return _.w(_.jz,{data:e.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.w(_.mI,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(e){return _.w(_.O5,{data:e.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}})),_.w(_.x6,{cond:function(){return E().secondaryDescription},
then:function(e){return _.w(_.nh,{text:e,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.w("div",{class:_.W8("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},Q))},_.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:_.C7})))},"Pa"),mLw=_.qu(function(v){var E=v.data;
var n=v.noBottomMargin;var f=v.listenToTapEvent;var x=v.setTouchEndHandler;var y=v.useVideoLockupTopPadding;var Q=v.typographyBump;var e=_.Ig();_.Nl(e,function(){return E().interaction},void 0,function(){return f==null?void 0:f()});
v=_.p(_.t7(!1,void 0,"v9Bv8e"));var F=v.next().value,b=v.next().value;v=_.ij(function(){(x==null?0:x())&&!F()&&(e.value.click(),b(!0),setTimeout(function(){b(!1)},100));
return!1});
_.gt(e,{visibilityCallback:function(l){var r,a=(r=E().interaction)==null?void 0:r.onFirstVisible;l&&a&&_.lj(a)},
showOption:_.VL});return _.w("feed-ad-metadata-view-model",{class:function(){var l;return((l=E().interaction)==null?0:l.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:e,"on:touchend":v},_.w(_.Q1,null,_.w(_.y1,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.w(evl,{data:E,
typographyBump:Q})}),_.w(_.y1,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.w(Fy1,{data:E,
noBottomMargin:n,useVideoLockupTopPadding:y,typographyBump:Q})})))},"Qa");var wQ1;_.kx=_.qu(function(v){return _.w("yt-lockup-view-model",{class:_.W8(v.className)},_.w(_.pQP,{contentId:function(){return v.data().contentId},
useModernStyle:!0,aspectRatio:function(){var E,n;return((E=v.containerType)==null?void 0:E.call(v))!==3?C4Q(v.data().contentType,(n=v.force16By9ThumbnailAspectRatio)==null?void 0:n.call(v)):void 0}},function(){return _.w(wQ1,Object.assign({},v))}))},"Ra");
wQ1=_.qu(function(v){v=_.Ue(v,{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 E=v.data,n=v.containerLayoutConfig,f=v.containerType,x=v.sizing,y=v.protectBackground,Q=v.typographyBump,e=v.force16By9ThumbnailAspectRatio,F=v.thumbnailFixedWidth,b=v.thumbnailTargetWidth,l=v.lockupExperiments,r=v.elementsPerRow;
v=_.Ig();_.Ya(v,function(){var HI;return(HI=E())==null?void 0:HI.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 a=_.mc(gjA),M=_.P().resolve(_.jp(dW4)),U=M?{}:void 0,d=function(){var HI,uE,WI;return(WI=(uE=_.C((HI=E())==null?void 0:HI.rendererContext,_.AF))==null?void 0:uE.label)!=null?WI:void 0},Y=function(){var HI=n==null?void 0:n(),uE;
if(HI==null?0:HI.containerType){var WI=(uE=E())==null?void 0:uE.contentType;uE=l();var bX=Q(),n0=b(),qi=y();HI=Object.assign({},MFE(P4y(HI),s8L(HI.responsiveSize),bX,WI,HI.force16By9ThumbnailAspectRatio,n0,qi,uE),{thumbnailFixedWidth:HI.contentPreviewWidth})}else HI=MFE(f(),x(),Q(),(WI=E())==null?void 0:WI.contentType,e(),b(),y(),l());return HI};
M&&U&&M({enabled:function(){return a()},
itemPlaybackModel:function(){return E().itemPlayback},
thumbnailElRef:function(){return U.thumbnailElRef},
containerElRef:v,options:function(){var HI,uE=(HI=_.C(E().metadata,dsP))==null?void 0:HI.endorsement;HI=U.thumbnailOverlays||[];uE&&HI.push(uE);var WI,bX;return{thumbnail:U.thumbnail,thumbnailOverlays:HI,accessibilityText:d(),thumbnailSize:U.thumbnailSize,enableRounding:Y().isCollection,containPlayerWithinThumbnail:Y().isCollection,trackingParams:(WI=_.C(E().rendererContext,_.xS9))==null?void 0:(bX=WI.loggingDirectives)==null?void 0:bX.trackingParams}}});
var V=0;M=_.p(_.t7(!1,void 0,"HzAs3"));var O=M.next().value,T=M.next().value;M=_.p(_.t7(!1,void 0,"ujOXud"));var L=M.next().value,xX=M.next().value;M=_.ij(function(){var HI=a()&&E().itemPlayback;L()?(_.wh.cancelJob(V),V=_.wh.addJob(function(){T(!HI)},8,32)):T(!HI);
return!0});
var t=_.ij(function(){V&&(_.wh.cancelJob(V),V=0);T(!1)});
_.Fp(function(){V&&(_.wh.cancelJob(V),V=0)});
var QE=EWI(function(){xX(!0)}),MF=QE.touchFeedbackEvents,K1=QE.touchFeedbackOnPointerUp,JG=QE.touchFeedbackOnPointerDown;
QE=QE.touchFeedbackOnPointerLeave;var $X={};return _.w("div",{el:v,class:_.W8("yt-lockup-view-model-wiz",function(){a:{var HI=Y();if(HI.isOverlay)HI="yt-lockup-view-model-wiz--overlay";else switch(HI.arrangement){case 1:HI="yt-lockup-view-model-wiz--horizontal";break a;default:HI="yt-lockup-view-model-wiz--vertical"}}return HI},function(){a:{var HI=Y();
if(HI.isOverlay)HI="yt-lockup-view-model-wiz--overlay";else{switch(HI.collectionStackNumber){case 1:HI="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:HI="yt-lockup-view-model-wiz--collection-stack-2";break a}HI=void 0}}return HI},($X["yt-lockup-view-model-wiz--card"]=function(){return Y().isCard},$X["yt-lockup-view-model-wiz--compact"]=function(){return Y().isTiny||Y().sizing!=="STANDARD"},$X["yt-lockup-view-model-wiz--protect-background"]=y,$X["yt-lockup-view-model-wiz--add-margins"]=
function(){return Y().addMarginForFullbleed},$X["yt-lockup-view-model-wiz--centered"]=function(){return Y().isCentered},$X["yt-lockup-view-model-wiz--fullbleed"]=function(){return Y().fullbleed},$X["yt-lockup-view-model-wiz--single-column-grid"]=function(){return r()===1&&f()===2},$X["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var HI;
return(HI=l())==null?void 0:HI.useRichGridLegacyMargin},$X)),
"on:mousedown":JG,"on:mouseleave":t,"on:mouseup":K1,"on:mouseover":M,"on:touchstart":JG,"on:touchend":K1,"on:pointerleave":QE},_.w(_.Ed,{command:function(){var HI;return _.K7((HI=E())==null?void 0:HI.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return F()&&Y().arrangement===1?"width: "+F():""}},_.w(_.mI,{data:function(){var HI;
return(HI=E())==null?void 0:HI.contentImage}},{thumbnailViewModel:function(HI){return _.w(_.Aw,{data:HI.data,
aspectRatio:function(){return Y().aspectRatio},
disableRounding:function(){return Y().disableRounding},
width:b,hovered:O,isClip:function(){var uE;return((uE=E())==null?void 0:uE.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:DWs(U),lockupExperiments:function(){return l()}})},
collectionThumbnailViewModel:function(HI){return _.w(O84,{data:HI.data,aspectRatio:function(){return Y().aspectRatio},
disableRounding:function(){return Y().disableRounding},
width:b,doubleStack:function(){return Y().collectionStackNumber===2},
hovered:O,playbackRef:DWs(U)})},
decoratedAvatarViewModel:_.ez})),_.w("div",{class:"yt-lockup-view-model-wiz__metadata"},_.w(_.mI,{data:function(){var HI;return(HI=E())==null?void 0:HI.metadata}},{lockupMetadataViewModel:function(HI){return _.w(xLl,{data:HI.data,
lockupStyle:Y,lockupCommand:function(){var uE;return _.K7((uE=E())==null?void 0:uE.rendererContext)},
lockupAccessibilityLabel:function(){return d()}})},
feedAdMetadataViewModel:function(HI){return _.w(mLw,{data:HI.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Q})}}),_.w(_.mI,{data:function(){var HI;
return(HI=E())==null?void 0:HI.attachmentSlot}},{lockupAttachmentsViewModel:function(HI){return _.w(GJi,{data:HI.data,
lockupStyle:Y})}})),_.w(_.oX,{model:function(){a:{switch(Y().collectionStackNumber){case 1:var HI=8;
break a;case 2:HI=12;break a}HI=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:HI}},
pointerDownEvent:MF.pointerDownEvent,pointerUpEvent:MF.pointerUpEvent,pointerLeaveEvent:MF.pointerLeaveEvent}))},"Sa");
_.kx.idomCompat=!0;_.Yz(_.kx,"yt-lockup-view-model",{props:{data:_.Kt,containerLayoutConfig:_.Kt,containerType:_.Kt,sizing:_.Kt,protectBackground:_.Kt,typographyBump:_.Kt,thumbnailFixedWidth:_.Kt,thumbnailTargetWidth:_.Kt,force16By9ThumbnailAspectRatio:_.Kt,className:_.Kt,lockupExperiments:_.Kt,elementsPerRow:_.Kt}});_.Nw(puE);var bbU=_.GG(puE,{callbacks:{onExpandClick:!0}});var wuE=_.p7({buttonViewModel:_.C7}),lnl=_.GG(FB9);_.Nw(FB9);_.Nw(XuE);_.Nw(eXI);_.Yz(lnl,"yt-video-attribute-view-model",{props:{data:_.Kt,className:_.Kt}});var WB=function(){var v=_.g.apply(this,arguments)||this;v.useHighlightStyling=_.Z("web_enable_deeper_metadata_highlight_styling");v.isSearch=!1;v.JSC$12927_lastScrollContainerWidth=NaN;v.pageLoadingFromNavigation=!1;v.currentIndex=0;v.supportComponentResize=!1;return v};
_.S(WB,_.g);_.c=WB.prototype;
_.c.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}}}}}};
_.c.attached=function(){document.addEventListener("yt-page-type-changed",_.uo(this,this.onPageChange))};
_.c.detached=function(){document.removeEventListener("yt-page-type-changed",_.uo(this,this.onPageChange))};
_.c.getItemsPath=function(){return"data.cards"};
_.c.onIronResize=function(){this.updateListStyles()};
_.c.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var v;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(v=this.data)==null?void 0:v.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Z("problem_walkthrough_sd")&&!!this.centerItems};
_.c.computeCardListStyle=function(v){return v||null};
_.c.computeEmpty=function(v){return!this.get("cards.length",v)};
_.c.computeThumbnailStyle=function(v){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",v)||null};
_.c.computeHasSubtitle=function(v){return!!this.get("header.richListHeaderRenderer.subtitle",v)};
_.c.computeInitialCountNumber=function(v){return this.hasSquareMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.c.computeUseFloorScrolling=function(v){return v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.c.computeHasGameCard=function(v){return(v=this.get("cards",v))?v.some(function(E){return E.gameCardRenderer}):!1};
_.c.computeCenterHeaderTitle=function(v){return!(v==null||!v.centerHeaderTitle)};
_.c.computeHasPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.c.computeHasSquareMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.c.computeHasSkinnyWidthPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.width===135}):!1};
_.c.computeCenterItems=function(v){return!!v};
_.c.computeHasInfoPanel=function(v){var E;return v==null?void 0:(E=v.cards)==null?void 0:E.some(function(n){return n.infoPanelContentRenderer})};
_.c.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.c.getItemByIndex=function(v){var E=this.items.children;return E&&E.length>v?E[v]:void 0};
_.c.onPageChange=function(){var v=this;this.pageLoadingFromNavigation=!0;_.wh.addJob(function(){v.pageLoadingFromNavigation=!1;_.kZ(v.hostElement,"yt-terminate-video-preview-action")},8)};
_.c.updateListStyles=function(){if(_.Z("problem_walkthrough_sd")&&this.JSC$12927_scrollContainer!==void 0){var v=this.JSC$12927_scrollContainer.clientWidth;v!==this.JSC$12927_lastScrollContainerWidth&&(this.JSC$12927_lastScrollContainerWidth=v,_.NQ(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(v*.8,415)+"px"}),_.jK(this.hostElement,"iron-resize"))}};
_.hK.Object.defineProperties(WB.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Z("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return _.Z("kevlar_modern_sd")&&!!((v=this.data)==null?0:(E=v.cards)==null?0:(n=E[0])==null?0:n.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return!!((v=this.data)==null?0:(E=v.cards)==null?0:(n=E[0])==null?0:n.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return _.Z("enable_desktop_amsterdam_info_panels")&&!!((v=this.data)==null?0:(E=v.cards)==null?0:(n=E[0])==null?0:n.infoPanelContentRenderer)}}});
WB.prototype.dataChanged=WB.prototype.dataChanged;WB.prototype.onIronResize=WB.prototype.onIronResize;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],WB.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.h(_.Z7),_.W("design:type",Object)],WB.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WB.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],WB.prototype,"useCustomColors",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WB.prototype,"useHighlightStyling",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.W("design:type",Object)],WB.prototype,"cardListStyle",void 0);_.k([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.W("design:type",Boolean)],WB.prototype,"empty",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasSubtitle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.W("design:type",Boolean)],WB.prototype,"thumbnailStyle",void 0);_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasGameCard",void 0);_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.W("design:type",Boolean)],WB.prototype,"centerHeaderTitle",void 0);
_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasPortraitMiniApp",void 0);_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasSquareMiniApp",void 0);_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.k([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.W("design:type",Boolean)],WB.prototype,"hasInfoPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WB.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],WB.prototype,"inlineStructuredDescription",void 0);_.k([_.Wp("#scroll-container"),_.W("design:type",HTMLDivElement)],WB.prototype,"JSC$12927_scrollContainer",void 0);
_.k([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.W("design:type",Number)],WB.prototype,"initialCount",void 0);_.k([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.W("design:type",Boolean)],WB.prototype,"useFloorScrolling",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.W("design:type",Boolean)],WB.prototype,"centerItems",void 0);_.k([_.H(),_.W("design:type",Object)],WB.prototype,"pageLoadingFromNavigation",void 0);
_.k([_.H(),_.W("design:type",Object)],WB.prototype,"currentIndex",void 0);_.k([_.H(),_.W("design:type",Number)],WB.prototype,"scrollCount",void 0);_.k([_.H(),_.W("design:type",Object)],WB.prototype,"supportComponentResize",void 0);_.k([_.Wp("#items"),_.W("design:type",HTMLDivElement)],WB.prototype,"items",void 0);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WB.prototype,"onIronResize",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WB.prototype,"dataChanged",null);_.k([_.H({reflectToAttribute:!0}),_.A("inlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WB.prototype,"hideNavigationButton",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WB.prototype,"modernChapters",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WB.prototype,"hasVideoAttributeViewModels",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WB.prototype,"modernInfoPanels",null);WB=_.k([_.N({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],WB);
_.u(WB,"ytd-horizontal-card-list-renderer",function(){if(cal!==void 0)return cal;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return cal=v},{mode:_.HE("kevlar_poly_si_batch_j072")?1:2});_.Nw(l0N);var s81=_.qu(function(v){var E=v.data;var n={};return _.w("video-summary-content-view-model",{class:_.W8("video-summary-content-view-model-wiz",v.className,(n["video-summary-content-view-model-wiz--is-search"]=v.isSearch,n))},_.w(_.cG,{each:function(){var f=[],x=E().paragraphs;if(x==null||!x.length)return[];for(var y=0;y<x.length;y++){var Q=_.C(x[y],b$$),e=void 0;y>0&&(e=_.C(x[y-1],b$$));e&&!!e.marker===!!Q.marker?f[f.length-1].paragraphs.push(Q):f.push({isList:!!Q.marker,paragraphs:[Q]})}return f},
keyBy:"INDEX"},function(f){return _.w(_.x6,{cond:function(){return f().isList},
then:function(){return _.w("ul",{class:"video-summary-content-view-model-wiz__list"},_.w(_.cG,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(x){return _.w("li",{class:"video-summary-content-view-model-wiz__list-item"},_.w(_.nh,{text:function(){return x().text}}))}))},
else:function(){return _.w(_.cG,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(x){return _.w("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.w(_.nh,{text:function(){return x().text}}))})}})}),_.w(_.x6,{cond:function(){return!!_.C(E().likeButtonViewModel,rQ)&&!!_.C(E().dislikeButtonViewModel,PT)},
then:function(){return _.w("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.w("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.w(_.ld,{data:function(){return _.C(E().likeButtonViewModel,rQ)},
disableIconAnimation:!0})),_.w(_.bd,{data:function(){return _.C(E().dislikeButtonViewModel,PT)}}))}}))},"Ta"),rB1=_.Z("web_enable_sink_video_summary_content_view_model")?s81:l0N,P44=_.Z("web_enable_sink_video_summary_content_view_model")?s81:_.GG(l0N);
s81.idomCompat=!0;_.Z("web_enable_sink_video_summary_content_view_model")?_.Yz(rB1,"video-summary-content-view-model",{props:{data:_.Kt,isSearch:_.Kt,className:_.Kt}}):_.uj(rB1,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var $x=function(){var v=_.g.apply(this,arguments)||this;var E,n;v.isExpanded=(n=(E=v.data)==null?void 0:E.isExpanded)!=null?n:!1;v.disableExpand=!1;v.showProminentLabel=!1;v.showRightSideLabel=!0;v.toggleExpandableContent=function(f){v.disableExpand||(f.stopPropagation(),_.dW(_.MQ(f),v.hostElement,["info","expanded-subtitle"])||(v.isExpanded=!v.isExpanded,v.ytRendererBehavior.logExplicitClick(v.data),v.JSC$12940_cardList&&!_.Z("expandable_metadata_a11y_fix_ks")&&_.IS(v,function(){_.dh(v.hostElement)})))};
v.useSquareThumbnail=!1;v.startX=0;return v};
_.S($x,_.g);_.c=$x.prototype;_.c.computeUseSquareThumbnail=function(){var v;return(v=this.data)==null?void 0:v.useSquareThumbnail};
_.c.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"}}}}};
_.c.dataChanged=function(){if(this.data){var v,E;this.isExpanded=(E=(v=this.data)==null?void 0:v.isExpanded)!=null?E:!1;var n,f,x,y;if(v=this.isDarkTheme()?(n=this.data)==null?void 0:(f=n.colorData)==null?void 0:f.darkColorPalette:(x=this.data)==null?void 0:(y=x.colorData)==null?void 0:y.lightColorPalette){var Q,e;if((Q=this.data)==null?0:(e=Q.colorData)==null?0:e.vibrantColorPalette)v.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Q3(this.hostElement,v)}}};
_.c.isExpandedChanged=function(){this.isExpanded&&this.JSC$12940_cardList&&_.jK(this.JSC$12940_cardList,"iron-resize")};
_.c.computeIsExpanded=function(v){return!!v.isExpanded};
_.c.computeShowProminentLabel=function(v,E){var n;return!!(v==null?0:(n=v.header)==null?0:n.showLeadingCollapsedLabel)&&!E};
_.c.computeShowRightSideLabel=function(v,E){var n;return!(v==null?0:(n=v.header)==null?0:n.showLeadingCollapsedLabel)&&!E};
_.c.captureContentClick=function(v){if(!this.disableExpand)if(_.Z("expandable_metadata_fix_killswitch")){var E=v.target;_.WUU(E,"ytd-macro-markers-list-item-renderer")||v.stopPropagation();(E==null?void 0:E.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dW(_.MQ(v),this.hostElement,["items"])||_.Kh(_.MQ(v),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.c.timestampClick=function(v){v.stopPropagation();var E,n;(v=(E=this.data)==null?void 0:(n=E.header)==null?void 0:n.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(v)};
_.c.onDown=function(v){v.stopPropagation();this.startX=v.detail?v.detail.x:0};
_.c.onUp=function(v){this.skipKeyInteraction(v)&&v.stopPropagation()};
_.c.skipKeyInteraction=function(v){var E=v.target;if((E==null?void 0:E.id)==="scroll-container"||(E==null?void 0:E.id)==="items"||v.detail&&v.detail.x!==this.startX)return!0;v=_.MQ(v);v=_.p(v);for(E=v.next();!E.done;E=v.next()){E=E.value;if(E===this.hostElement)break;if(E.hasAttribute&&E.hasAttribute("skip-key-interaction"))return!0}return!1};
_.c.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.hK.Object.defineProperties($x.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.C((v=this.data)==null?void 0:v.expandedContent,j9F)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.C((v=this.data)==null?void 0:v.expandedContent,_.ID1)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.useCustomColors)&&!((E=this.data)==null||!E.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.data)==null?0:(E=v.header)==null?0:E.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.data)==null?0:(E=v.header)==null?0:E.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.data)==null?0:(E=v.header)==null?0:E.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
$x.prototype.onUp=$x.prototype.onUp;$x.prototype.onDown=$x.prototype.onDown;$x.prototype.isExpandedChanged=$x.prototype.isExpandedChanged;$x.prototype.dataChanged=$x.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$x.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$x.prototype,"isExpanded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$x.prototype,"disableExpand",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],$x.prototype,"isSearch",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],$x.prototype,"isWatch",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.W("design:type",Object)],$x.prototype,"showProminentLabel",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.W("design:type",Object)],$x.prototype,"showRightSideLabel",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"hasVideoSummary",null);_.k([_.H({value:!1,reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"hasLockupViewModel",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"useCustomColors",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"showInfoButton",null);_.k([_.A("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"showTimestamp",null);_.k([_.A("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"showExpandedSubtitle",null);
_.k([_.A("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$x.prototype,"showThumbnail",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$x.prototype,"useVppShoppingDestinationStyle",null);_.k([_.H(),_.W("design:type",Object)],$x.prototype,"toggleExpandableContent",void 0);_.k([_.Wp("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],$x.prototype,"JSC$12940_cardList",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.W("design:type",Object)],$x.prototype,"useSquareThumbnail",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$x.prototype,"dataChanged",null);_.k([_.On("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$x.prototype,"isExpandedChanged",null);
_.k([_.jk("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$x.prototype,"onDown",null);_.k([_.jk("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$x.prototype,"onUp",null);$x=_.k([_.N({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],$x);
_.u($x,"ytd-expandable-metadata-renderer",function(){if(ypS!==void 0)return ypS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ypS=v},{mode:1});var ani,Zb1=function(){if(ani!==void 0)return ani;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ani=v};_.ew("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Lw=function(){var v=_.g.apply(this,arguments)||this;v.disableExpand=!1;v.shouldShowChannelInfo=!1;v.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return v};
_.S(Lw,_.g);_.c=Lw.prototype;_.c.computeUseSearchUi=function(){var v,E;return this.isSearch||((v=this.data)==null?void 0:(E=v.style)==null?void 0:E.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.c.computeUseThreeLineTitle=function(){var v;return((v=this.data)==null?void 0:v.maxTitleLines)===3};
_.c.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Z("polymer_video_renderer_defer_menu")&&!EgS?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]]"}}}}}};
_.c.attached=function(){_.Vt(this.hostElement,"blue-links",_.Z("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.D_(_.K(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;v&&((E=_.C(v.commandMetadata,_.PD))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v);this.updateInlinePreviewHoverListeners()};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12945_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.JSC$12945_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$12945_inlinePreviewHoverListener)==null||iS(v)};
_.c.onTextWrapperClick=function(v){var E,n,f=this.hideTranslation?(E=this.data)==null?void 0:E.untranslatedNavigationEndpoint:(n=this.data)==null?void 0:n.navigationEndpoint;E=_.dW(_.MQ(v),this.hostElement,["expandable-metadata"]);!f||E&&!_.Z("expandable_metadata_fix_killswitch")||_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString()])||_.jK(this.hostElement,"yt-navigate",{endpoint:f})};
_.c.computeThumbnailWidth=function(v,E,n,f,x){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:f?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:n?360:E?128:v?210:246};
_.c.computeUseBiggerThumbs=function(v){return v&&_.Z("enable_desktop_search_bigger_thumbs")};
_.c.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.c.computeVideoStyle=function(){if(_.Z("enable_video_style")){var v,E;return(v=this.data)==null?void 0:(E=v.style)==null?void 0:E.value}};
_.c.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.c.handleHideItemSectionVideosByIdCommand=function(v){var E;v=(E=_.C(v,XN6))==null?void 0:E.videoId;this.data&&this.data.videoId===v&&(this.isHidden=!0)};
_.c.getMetadataSnippetContainerClass=function(v){return v?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.c.computeTitleText=function(v,E,n){return v?n:E};
_.c.computeDescriptionSnippet=function(v,E,n){return v?n:E};
_.c.computeSnippetText=function(v,E,n){return v?n:E};
_.c.computeNavigationEndpoint=function(v,E){return v?E==null?void 0:E.untranslatedNavigationEndpoint:E==null?void 0:E.navigationEndpoint};
_.c.hideInlineTitleIcon=function(v,E){return v||!E};
_.hK.Object.defineProperties(Lw.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 v;return(v=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?v:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$12945_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.hK.Object.defineProperties(Lw,{template:{configurable:!0,enumerable:!0,get:function(){return Zb1()}}});
Lw.prototype.dataChanged=Lw.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Lw.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.K4),_.W("design:type",Object)],Lw.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Lw.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Lw.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Lw.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Lw.prototype,"isBackstageVideo",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Lw.prototype,"isPostCompactVideo",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Lw.prototype,"isHistory",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Lw.prototype,"isRichGridVideoPost",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Lw.prototype,"isHidden",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Lw.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.W("design:type",Boolean)],Lw.prototype,"useSearchUi",void 0);_.k([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.W("design:type",Boolean)],Lw.prototype,"useThreeLineTitle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.W("design:type",Boolean)],Lw.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.W("design:type",Object)],Lw.prototype,"videoStyle",void 0);_.k([_.H({computed:"computeDisableExpand(videoStyle)"}),_.W("design:type",Object)],Lw.prototype,"disableExpand",void 0);
_.k([_.H({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.W("design:type",Object)],Lw.prototype,"shouldShowChannelInfo",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],Lw.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.W("design:type",String)],Lw.prototype,"inlineTitleIcon",void 0);_.k([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.W("design:type",Object)],Lw.prototype,"computedNavigationEndpoint",void 0);_.k([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(v,E){return _.LH(v.entities,"searchVideoResultEntity",E)}}),
_.W("design:type",Object)],Lw.prototype,"searchVideoResultEntity",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],Lw.prototype,"thumbnail",void 0);_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],Lw.prototype,"JSC$12945_dismissibleMedia",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Lw.prototype,"dataChanged",null);
_.k([_.A("searchVideoResultEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lw.prototype,"hideTranslation",null);_.k([_.A("searchVideoResultEntity"),_.W("design:type",Array),_.W("design:paramtypes",[])],Lw.prototype,"hiddenBadgeGroups",null);_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lw.prototype,"isHovered",null);Lw=_.k([_.N({is:"ytd-video-renderer",disableElementRegistration:!0})],Lw);
_.u(Lw,"ytd-video-renderer",function(){return Zb1()},{mode:_.HE("kevlar_poly_si_batch_j047")?1:2});var GP=function(){var v=_.g.apply(this,arguments)||this;v.editDialog=null;v.roundedContainer=!0;v.isLoading=!1;v.isRichGrid=!1;v.isRichGridRepost=!1;v.reduceSidePaddings=_.Z("reduce_side_paddings_in_shelf");v.JSC$12951_spinnerEl=null;return v};
_.S(GP,_.g);_.c=GP.prototype;
_.c.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"}}}};
_.c.contentTextChanged=function(){this.expander.reset()};
_.c.dataChanged=function(){var v=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var E=0,n=this.data.actions&&this.data.actions.length;E<n;E++)this.openEditDialog(_.C(this.data.actions[E],APw));if((E=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(E=this.get("buttonRenderer.hint.hintRenderer.hintId",E))&&E.startsWith("share-post-hint")){var f=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(f){_.ko.getInstance();var x=Wg(_.qD(_.tQ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.wh.addLowPriorityJob(function(){_.LG(v.hostElement,x,f)})}}}};
_.c.updatePoll=function(v){v>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.c.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12951_spinnerEl||(this.JSC$12951_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12951_spinnerEl));this.JSC$12951_spinnerEl&&(this.JSC$12951_spinnerEl.active=this.isLoading)};
_.c.onYtNavigate=function(v){var E=this.get("updateCommentDialogEndpoint",v.detail.endpoint);E&&(this.openEditDialog(E),v.stopPropagation())};
_.c.onYtCommentboxDismiss=function(){this.editDialog=null};
_.c.onYtCommentPollRevert=function(v,E){E&&this.updatePoll(E.selectedChoiceIndex)};
_.c.onYtServiceRequestSent=function(v,E){var n;E.endpoint&&(_.C(E.endpoint,zAw)||_.C(E.endpoint,iMX)&&((n=_.C(E.endpoint,iMX))==null||!n.clientActions))&&(this.isLoading=!0);if(E.actions)for(v=0;v<E.actions.length;v++)n=E.actions[v],_.C(n,sk)&&(n=this.get("updateBackstagePollAction.selectedChoiceIndex",n),n==void 0&&(n=-1),this.updatePoll(n))};
_.c.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.c.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.c.computeIsPostHidden=function(v,E){return!!v||E};
_.c.computeSurfaceType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.c.computeShowWithoutToolbar=function(v){return!v.actionButtons&&!v.actionMenu};
_.c.computePostAttachment=function(v){if(v.backstageAttachment){if(_.C(v.backstageAttachment,dhU))return"poll";if(_.C(v.backstageAttachment,mh1))return"quiz";if(_.C(v.backstageAttachment,_.gOF))return"video";if(_.C(v.backstageAttachment,wkl))return"uploaded-videos";if(_.C(v.backstageAttachment,pMX))return v.contentText?"image":"image-only";if(_.C(v.backstageAttachment,Q11))return"playlist"}return"none"};
_.c.computePostTabIndex=function(v){return v?0:-1};
_.c.computeButtonTooltipPosition=function(v){return this.computeUsesCompactLockup(v)?"top":"bottom"};
_.c.computeHasText=function(v){return!(v==null||!v.contentText)};
_.c.onTap=function(v){var E,n;if(((E=this.data)==null?0:E.navigationEndpoint)&&((n=this.data)==null?void 0:n.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.hK.Object.defineProperties(GP.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.qD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,dhU))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,wkl))}}});
GP.prototype.onYtServiceRequestCompleted=GP.prototype.onYtServiceRequestCompleted;GP.prototype.onYtServiceRequestSent=GP.prototype.onYtServiceRequestSent;GP.prototype.onYtCommentPollRevert=GP.prototype.onYtCommentPollRevert;GP.prototype.onYtCommentboxDismiss=GP.prototype.onYtCommentboxDismiss;GP.prototype.onYtNavigate=GP.prototype.onYtNavigate;GP.prototype.isLoadingChanged=GP.prototype.isLoadingChanged;GP.prototype.dataChanged=GP.prototype.dataChanged;GP.prototype.contentTextChanged=GP.prototype.contentTextChanged;
_.k([_.h(_.Z7),_.W("design:type",Object)],GP.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GP.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],GP.prototype,"editDialog",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"roundedContainer",void 0);_.k([_.H(),_.W("design:type",Object)],GP.prototype,"isLoading",void 0);_.k([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.W("design:type",String)],GP.prototype,"surface",void 0);
_.k([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"usesCompactLockup",void 0);_.k([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"showWithoutToolbar",void 0);_.k([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.W("design:type",String)],GP.prototype,"attachment",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"isRichGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"isRichGridRepost",void 0);_.k([_.H({reflectToAttribute:!0,value:_.Z("use_better_post_dismissals")}),_.W("design:type",Boolean)],GP.prototype,"useBetterPostDismissals",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"reduceSidePaddings",void 0);
_.k([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"hasText",void 0);_.k([_.Wp("#expander"),_.W("design:type",Object)],GP.prototype,"expander",void 0);_.k([_.Wp("#action-buttons"),_.W("design:type",Object)],GP.prototype,"actionButtons",void 0);_.k([_.Wp("#edit-dialog"),_.W("design:type",HTMLElement)],GP.prototype,"editDialogEl",void 0);
_.k([_.On("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"contentTextChanged",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"dataChanged",null);_.k([_.On("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"isLoadingChanged",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GP.prototype,"onYtNavigate",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"onYtCommentboxDismiss",null);_.k([_.jk("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],GP.prototype,"onYtCommentPollRevert",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],GP.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],GP.prototype,"onYtServiceRequestCompleted",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"voteCount",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"commentCount",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GP.prototype,"hasPoll",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GP.prototype,"hasUploadedVideo",null);GP=_.k([_.N({is:"ytd-post-renderer",disableElementRegistration:!0})],GP);
_.u(GP,"ytd-post-renderer",function(){if(dVg!==void 0)return dVg;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return dVg=v},{mode:1});var C41;var MFX;var TP=function(){return _.g.apply(this,arguments)||this};
_.S(TP,_.g);TP.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],TP.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],TP.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TP.prototype,"data",void 0);
_.k([_.H({value:"$.items.children"}),_.W("design:type",String)],TP.prototype,"itemsPath",void 0);_.k([_.H({value:1}),_.W("design:type",Number)],TP.prototype,"initialCount",void 0);_.k([_.H(),_.W("design:type",String)],TP.prototype,"surface",void 0);TP=_.k([_.N({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],TP);
_.u(TP,"ytd-post-multi-image-renderer",function(){if(MFX!==void 0)return MFX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return MFX=v},{mode:_.HE("kevlar_poly_si_batch_j079")?1:2});var S3z={"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"}}},iv=function(){var v=_.g.apply(this,arguments)||this;v.hasInlineCommentSection=!1;v.editDialog=null;v.isLoading=!1;v.shouldHideAuthor=!1;v.shouldShowVideoTime=!1;
v.isInEngagementPanel=!1;v.hideBorder=!1;v.usesFullLockup=!1;v.shouldShowMenuInCompactView=!1;v.JSC$12967_spinnerEl=null;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.S(iv,_.g);_.c=iv.prototype;_.c.configureRendererStamper=function(){return S3z};
_.c.computeIsPollHeaderEnabled=function(v){return(v==null?void 0:v.pollMetadataIcon)!=null};
_.c.getPublishTimeStampString=function(v,E){E=new Date((Number(E)-60*((new Date).getTimezoneOffset()-(new Date(Number(E)*1E3)).getTimezoneOffset()))*1E3);E=(new SN(10)).format(E);if(v&&v.runs&&v.runs.length)for(var n=0;n<v.runs.length;n++)v.runs[n].text&&(v.runs[n].text=v.runs[n].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",E));return v};
_.c.created=function(){this.JSC$12967_spinnerEl=null};
_.c.contentTextChanged=function(){this.expander.reset()};
_.c.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var v;if((v=this.data)==null?0:v.actions){v=_.p(this.data.actions);for(var E=v.next();!E.done;E=v.next())this.openEditDialog(_.C(E.value,APw))}};
_.c.handleSignalActionOpenPostCommentDialogAction=function(){_.K(this.hostElement).querySelector("#action-buttons").reply()};
_.c.updatePoll=function(v,E){E&&this.set("data.pollMetadataVoteCountText",E);this.hasInlineCommentSection&&(v=v>=0,E=_.K(this.hostElement).querySelector("#action-buttons"),v?E.reply():E.hideReplyDialog())};
_.c.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12967_spinnerEl||(this.JSC$12967_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12967_spinnerEl));this.JSC$12967_spinnerEl&&(this.JSC$12967_spinnerEl.active=this.isLoading)};
_.c.onYtNavigate=function(v){var E=this.get("updateCommentDialogEndpoint",v.detail.endpoint);E&&(this.openEditDialog(E),v.stopPropagation())};
_.c.onYtCommentboxDismiss=function(){this.editDialog=null};
_.c.onYtCommentPollRevert=function(v,E){E&&this.updatePoll(E.selectedChoiceIndex,E.totalVotes)};
_.c.onYtServiceRequestSent=function(v,E){v.stopPropagation();v=_.C(E.endpoint,iMX);if(_.C(E.endpoint,zAw)||v&&!v.clientActions)this.isLoading=!0;if(E.actions)for(v=0;v<E.actions.length;v++){var n=E.actions[v],f=_.C(n,sk);f&&(n=this.get("updateBackstagePollAction.selectedChoiceIndex",n),n===void 0&&(n=-1),this.updatePoll(n,f.totalVotes))}};
_.c.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.c.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogElement.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.c.computeIsBodyHidden=function(v,E){return!!v||E};
_.hK.Object.defineProperties(iv.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var v,E;if((v=this.data)==null?0:(E=v.pollMetadataIcon)==null?0:E.iconType)return _.jI(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.qD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,dhU))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,mh1))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,wkl))}}});
iv.prototype.onYtServiceRequestCompleted=iv.prototype.onYtServiceRequestCompleted;iv.prototype.onYtServiceRequestSent=iv.prototype.onYtServiceRequestSent;iv.prototype.onYtCommentPollRevert=iv.prototype.onYtCommentPollRevert;iv.prototype.onYtCommentboxDismiss=iv.prototype.onYtCommentboxDismiss;iv.prototype.onYtNavigate=iv.prototype.onYtNavigate;iv.prototype.isLoadingChanged=iv.prototype.isLoadingChanged;iv.prototype.dataChanged=iv.prototype.dataChanged;iv.prototype.contentTextChanged=iv.prototype.contentTextChanged;
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],iv.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iv.prototype,"rendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iv.prototype,"rendererstamperBehavior",void 0);_.k([_.Wp("#contentTextExpander"),_.W("design:type",Object)],iv.prototype,"expander",void 0);
_.k([_.Wp("#edit-dialog"),_.W("design:type",Element)],iv.prototype,"editDialogElement",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"hasInlineCommentSection",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"editDialog",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"isLoading",void 0);
_.k([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.W("design:type",Boolean)],iv.prototype,"isPollHeaderEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"shouldHideAuthor",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"shouldShowVideoTime",void 0);_.k([_.H(),_.W("design:type",Object)],iv.prototype,"isInEngagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iv.prototype,"hideBorder",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iv.prototype,"usesFullLockup",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iv.prototype,"shouldShowMenuInCompactView",void 0);_.k([_.A("isInEngagementPanel"),_.W("design:type",Number),_.W("design:paramtypes",[])],iv.prototype,"postTextMaxLines",null);_.k([_.A("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],iv.prototype,"pollIcon",null);
_.k([_.On("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iv.prototype,"contentTextChanged",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iv.prototype,"dataChanged",null);_.k([_.On("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iv.prototype,"isLoadingChanged",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iv.prototype,"onYtNavigate",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iv.prototype,"onYtCommentboxDismiss",null);_.k([_.jk("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],iv.prototype,"onYtCommentPollRevert",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],iv.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iv.prototype,"onYtServiceRequestCompleted",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iv.prototype,"voteCount",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iv.prototype,"commentCount",null);_.k([_.A("data.backstageAttachment"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iv.prototype,"hasPoll",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iv.prototype,"hasQuiz",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iv.prototype,"hasUploadedVideo",null);
iv=_.k([_.N({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],iv);
_.u(iv,"ytd-backstage-post-renderer",function(){if(C41!==void 0)return C41;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return C41=v},{mode:1});var ULw;var zP=function(){var v=_.g.apply(this,arguments)||this;v.editDialog=null;v.showExpandButton=!1;v.isRichGrid=!1;v.usesFullLockup=!1;return v};
_.S(zP,_.g);_.c=zP.prototype;_.c.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"}}}};
_.c.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.c.computeShowExpandButton=function(v){return this.usesCompactLockup||v&&v.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.c.computeUsesCompactLockup=function(v){return!!v.condensedContent};
_.c.computeShowFullContentText=function(v){return!v};
_.c.onYtNavigate=function(v){v=this.get("updateCommentDialogEndpoint",v.detail.endpoint);this.openEditDialog(v)};
_.c.onYtCommentboxDismiss=function(){this.editDialog=null};
_.c.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.repostEditDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.c.onTap=function(v){if(this.data){var E=null;this.usesCompactLockup&&!_.Kh(_.MQ(v)||[],this.hostElement,["YT-IMG-SHADOW"])?E=this.get("navigationEndpoint",this.data):v.target===this.moreButtonEl&&(E=this.get("navigationEndpoint",v.target.data));E&&_.jK(this.hostElement,"yt-navigate",{endpoint:E})}};
zP.prototype.onYtCommentboxDismiss=zP.prototype.onYtCommentboxDismiss;zP.prototype.onYtNavigate=zP.prototype.onYtNavigate;zP.prototype.dataChanged=zP.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zP.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],zP.prototype,"editDialog",void 0);_.k([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zP.prototype,"usesCompactLockup",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"showExpandButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"isRichGrid",void 0);
_.k([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zP.prototype,"showFullContentText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"usesFullLockup",void 0);_.k([_.Wp("#more"),_.W("design:type",Object)],zP.prototype,"moreButtonEl",void 0);_.k([_.Wp("#repost-content-text"),_.W("design:type",HTMLElement)],zP.prototype,"repostContentTextEl",void 0);
_.k([_.Wp("#repost-edit-dialog"),_.W("design:type",HTMLElement)],zP.prototype,"repostEditDialogEl",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zP.prototype,"dataChanged",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],zP.prototype,"onYtNavigate",null);
_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zP.prototype,"onYtCommentboxDismiss",null);zP=_.k([_.N({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],zP);
_.u(zP,"ytd-shared-post-renderer",function(){if(ULw!==void 0)return ULw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ULw=v},{mode:1});var q3U;var JBl;var Rh=function(){return _.g.apply(this,arguments)||this};
_.S(Rh,_.g);Rh.prototype.attached=function(){var v=this;this.networkStatusManager||(this.networkStatusManager=new _.q1,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){v.onlineHandler()}))};
Rh.prototype.detached=function(){var v=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){v.onlineHandler()}),delete this.networkStatusManager)};
Rh.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Rh.prototype,"data",void 0);Rh=_.k([_.N({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Rh);
_.u(Rh,"ytd-reload-page-button-renderer",function(){if(JBl!==void 0)return JBl;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return JBl=v},{mode:1});var Ky1={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"},tw=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(tw,_.g);_.c=tw.prototype;_.c.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.c.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.c.computeHasBodyText=function(v){return!!v.bodyText};
_.c.computeButtons=function(v){var E=[];v.ctaButton&&E.push(v.ctaButton);v.secondaryButton&&E.push(v.secondaryButton);return E};
_.c.computeRendererStyle=function(v){return v.style?v.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():v.icon?"":"no-icon"};
_.c.getIconName=function(v,E){E=E===void 0?!1:E;if(v===void 0)return"";v=this.get("icon.iconType",v);var n;_.Z("enable_hlp_client_icon_pick")?n=this.getThemedIcon(v,E):n=v;(E=Ky1[n])||(E="yt-icons");return[E,n].join(":")};
_.c.getThemedIcon=function(v,E){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(v)?E?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(v)?E?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":v};
_.c.isThumbnail=function(v){return!!v.thumbnail};
_.c.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.c.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tw.prototype,"data",void 0);
_.k([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],tw.prototype,"rendererStyle",void 0);_.k([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.W("design:type",String)],tw.prototype,"iconName",void 0);_.k([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],tw.prototype,"thumbnail",void 0);_.k([_.H({computed:"computeButtons(data)"}),_.W("design:type",Array)],tw.prototype,"buttons",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],tw.prototype,"isDarkTheme",void 0);_.k([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],tw.prototype,"hasBodyText",void 0);tw=_.k([_.N({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],tw);
_.u(tw,"ytd-background-promo-renderer",function(){if(q3U!==void 0)return q3U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return q3U=v},{mode:1});var dL6;var BB=function(){var v=_.g.apply(this,arguments)||this;v.collections=_.Z("web_modern_collections_v2");return v};
_.S(BB,_.g);_.hK.Object.defineProperties(BB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(E=v.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(n=this.data)==null?void 0:(f=n.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(y=x.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],BB.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],BB.prototype,"collections",void 0);_.k([_.A("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],BB.prototype,"collectionStack",null);BB=_.k([_.N({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],BB);
_.u(BB,"ytd-compact-station-renderer",function(){if(dL6!==void 0)return dL6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return dL6=v},{mode:1});var InF;var v$=function(){var v=_.g.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.S(v$,_.g);v$.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]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],v$.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],v$.prototype,"isRichGrid",void 0);v$=_.k([_.N({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],v$);
_.u(v$,"ytd-grid-channel-renderer",function(){if(InF!==void 0)return InF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return InF=v},{mode:1});var Y3F;var EA=function(){return _.g.apply(this,arguments)||this};
_.S(EA,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EA.prototype,"data",void 0);EA=_.k([_.N({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],EA);
_.u(EA,"ytd-grid-movie-playlist-renderer",function(){if(Y3F!==void 0)return Y3F;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Y3F=v},{mode:1});var hv1;var nX=function(){var v=_.g.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.modernButtons=_.Z("web_modern_buttons");v.useModernCollectionsV2=_.Z("web_modern_collections_v2");return v};
_.S(nX,_.g);nX.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
nX.prototype.configureRendererStamper=function(){return{"data.menu":Ra}};
nX.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
nX.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Z("woffle_playlist_renderer_killswitch")){var v,E=KpG(this.entityInfo,this.transferState,this.downloadProgress,(v=this.data)==null?void 0:v.playlistId,this.isOnline);v=E.viewPlaylistText;var n=E.badges;E=E.thumbnailOverlays;this.isDownloads=!!v||!!n;this.set("data.viewPlaylistText",v);n&&n.length>0&&this.set("data.badges",n);E&&E.length>0&&this.set("data.thumbnailOverlays",
E)}};
_.hK.Object.defineProperties(nX.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 v;return!((v=this.data)==null?0:v.menu)}}});
nX.prototype.transferStateChanged=nX.prototype.transferStateChanged;nX.prototype.dataChanged=nX.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],nX.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],nX.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H({selector:_.WD$,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],nX.prototype,"downloadProgress",void 0);_.k([_.H({selector:_.lx,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],nX.prototype,"transferState",void 0);_.k([_.H({selector:k4X,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],nX.prototype,"entityInfo",void 0);_.k([_.H({selector:HgI}),_.W("design:type",Boolean)],nX.prototype,"isOnline",void 0);
_.k([_.H(),_.W("design:type",Object)],nX.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],nX.prototype,"downloadRenderData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],nX.prototype,"modernButtons",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],nX.prototype,"isDownloads",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],nX.prototype,"useModernCollectionsV2",void 0);
_.k([_.A("transferState"),_.H({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],nX.prototype,"downloadState",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nX.prototype,"menuHidden",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nX.prototype,"dataChanged",null);
_.k([_.Tw("transferState","downloadProgress","isOnline"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nX.prototype,"transferStateChanged",null);nX=_.k([_.N({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],nX);
_.u(nX,"ytd-grid-playlist-renderer",function(){if(hv1!==void 0)return hv1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hv1=v},{mode:1});var ABS;var oB=function(){var v=_.g.apply(this,arguments)||this;v.collections=_.Z("web_modern_collections_v2");return v};
_.S(oB,_.g);oB.prototype.configureRendererStamper=function(){return{"data.menu":Ra,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hK.Object.defineProperties(oB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(E=v.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(n=this.data)==null?void 0:(f=n.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(y=x.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],oB.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],oB.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oB.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],oB.prototype,"collections",void 0);_.k([_.A("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],oB.prototype,"collectionStack",null);oB=_.k([_.N({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],oB);
_.u(oB,"ytd-grid-radio-renderer",function(){if(ABS!==void 0)return ABS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ABS=v},{mode:1});var VFg;var fX=function(){var v=_.g.apply(this,arguments)||this;v.useModernCollectionsV2=_.Z("web_modern_collections_v2");return v};
_.S(fX,_.g);fX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
fX.prototype.computeNavigationEndpoint=function(v){return yTX(v==null?void 0:v.navigationEndpoint)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],fX.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fX.prototype,"data",void 0);_.k([_.H({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],fX.prototype,"computedNavigationEndpoint",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fX.prototype,"useModernCollectionsV2",void 0);fX=_.k([_.N({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],fX);
_.u(fX,"ytd-grid-show-renderer",function(){if(VFg!==void 0)return VFg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return VFg=v},{mode:1});var DLS;_.xF=function(v){this.playerClient=v};
_.Hbg=function(v,E,n){n=n===void 0?{}:n;return v.playerClient.setOption("ad",E,n)};
_.xF.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.xF.prototype.executeCommand=function(v,E){this.getOptions().includes("executeCommand")?_.Hbg(this,"executeCommand",{command:v,layoutId:E}):_.$a("Calling executeCommand when adModule is not loaded")};var c$=function(){return _.g.apply(this,arguments)||this};
_.S(c$,_.g);c$.prototype.getLayoutId=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
c$.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var v=_.Aq(),E=this.getLayoutId(),n=this.data.clickthroughEndpoint;v&&E&&_.Z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(f){(new _.xF(f)).executeCommand(n,E)}):_.jK(this.hostElement,"yt-navigate",{endpoint:n})}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],c$.prototype,"data",void 0);c$=_.k([_.N({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],c$);
_.u(c$,"ytd-shopping-companion-item-renderer",function(){if(DLS!==void 0)return DLS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DLS=v},{mode:1});var gPX;var yZ=function(){var v=_.g.apply(this,arguments)||this;v.isExpandableContent=!1;return v};
_.S(yZ,_.g);_.hK.Object.defineProperties(yZ.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?void 0:v.price)||((E=this.data)==null?void 0:(n=E.dealsData)==null?void 0:n.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var v,E;if((v=this.data)!=null&&v.dealsData&&((E=this.data)==null||!E.priceReplacementText)){v=this.data.dealsData;var n,f,x;return((n=v.salesData)==null?void 0:n.originalPrice)||((f=v.priceDropData)==null?void 0:f.referencePrice)||((x=v.promotionData)==null?void 0:x.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var v,E;return(v=this.data)==null?void 0:(E=v.dealsData)==null?void 0:E.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yZ.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yZ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yZ.prototype,"isExpandableContent",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"showCta",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"ctaText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"hasPriceTopPosition",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"hasPriceBottomPosition",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"useNewStyle",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"showPriceReplacementText",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"priceValue",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"showDeal",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"showAffiliateDisclaimer",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"useSaleStyle",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"useFromBrandCtaStyle",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"useFromVendorCtaStyle",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yZ.prototype,"useShoppingCollectionCtaStyle",null);yZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],yZ);
_.u(yZ,"ytd-vertical-product-card-renderer",function(){if(gPX!==void 0)return gPX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gPX=v},{mode:1});var N3F;var pX=function(){return _.g.apply(this,arguments)||this};
_.S(pX,_.g);pX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],pX.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pX.prototype,"data",void 0);pX=_.k([_.N({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],pX);
_.u(pX,"ytd-grid-movie-renderer",function(){if(N3F!==void 0)return N3F;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return N3F=v},{mode:1});var uW1;var QZ=function(){var v=_.g.apply(this,arguments)||this;v.rounded=!0;v.itemStyle="small-item";return v};
_.S(QZ,_.g);QZ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,E,n,f,x=(E=_.C((v=this.data)==null?void 0:v.buttonCommand,_.LkF))==null?void 0:(n=E.item)==null?void 0:(f=n.notificationTextRenderer)==null?void 0:f.successResponseText;x&&_.szX(this.hostElement,x)}};
_.hK.Object.defineProperties(QZ.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.isProductPlaceholder)!==void 0&&((E=this.data)==null?void 0:E.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QZ.prototype,"rounded",void 0);_.k([_.H(),_.W("design:type",Object)],QZ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],QZ.prototype,"itemStyle",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"hasPrice",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"hasPriceReplacementText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"hasAdditionalFeesText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"hasAffiliateDisclaimer",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"isProductPlaceholder",null);
_.k([_.H(),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"hideOpenInNewIcon",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],QZ.prototype,"ariaLabel",null);QZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],QZ);
_.u(QZ,"ytd-merch-shelf-item-renderer",function(){if(uW1!==void 0)return uW1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uW1=v},{mode:1});var j8w=_.qu(function(v){var E=_.Ig();_.Ya(E,function(){return v.data().rendererContext});
return _.w("button-card-view-model",{el:E,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return v.data().title},
role:"button"},_.w(_.oX,{model:{}}),_.w("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.w("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.w(_.x6,{cond:function(){return v.data().image},
then:function(n){return _.w(_.UZ,{data:n,alt:function(){var f;return(f=v.data().title)!=null?f:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.w("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return v.data().title})))},"Ua");_.Z("web_button_view_model_wcw_registration_killswitch")||_.Yz(j8w,"button-card-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){v=_.Ue(v,{className:void 0});var E=v.data;v=v.className;var n=_.o0(function(){return E().onTapCommand},void 0,"NprDr");
return _.w("ytd-shopping-item-card",{class:_.W8("ytdShoppingItemCardHost",v)},_.w(_.Ed,{command:n,className:"ytdShoppingItemCardHostLink"},_.w("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.w(_.mI,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(f){return _.w(_.Aw,{data:f.data,
aspectRatio:3})}})),_.w("div",null,_.w("p",{class:"ytdShoppingItemCardHostItemTitle"},_.w(_.nh,{text:function(){return E().itemTitle}})),_.w("p",{class:"ytdShoppingItemCardHostPrice"},_.w(_.nh,{text:function(){return E().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.Kt,
className:_.Kt}});var L7=null,rYL={};var Z$G="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(" "),X4={},C7y=(X4.FEwhat_to_watch="home",X4.FEhashtag="hashtag",X4.FEtrending="trending",X4.FEhistory="history",X4.SPunlimited="premium",X4.FEmemberships_and_purchases="paid_memberships",X4.SPredeem_code="redeem",X4.SPverify_location="locate",X4.SPminor_moment="minor_moment",
X4.FEmini_app_container="mini_app",X4.FEnews_destination="news",X4.SPopen_in_app="open_in_app",X4.FEexplore="explore",X4.FEsubscriptions="subscriptions",X4.FEsfv_audio_pivot="sfv_audio_pivot",X4.FEplaylist_aggregation="playlist_aggregation",X4);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");_.Gn("init");var Obz=function(){},Ly6=_.qu(function(v){var E=v.data;
var n=v.inlineMetadata;var f=v.aspectRatio;var x=v.scrimStyle;var y=v.className;var Q=v.useDefaultStyle;var e=new Obz,F=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",b=_.o0(function(){return(Q==null?0:Q())?F==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),l=_.o0(function(){return _.ba(n)||b()||!1},void 0,"pcPnBf"),r=function(){return(x==null?void 0:x())!==void 0?x==null?void 0:x():1};
v=_.Ig(function(T){e&&(e.hostElement=T,d())});
_.gt(v,{visibilityCallback:function(T){var L=E().onFirstVisible;T&&L&&_.lj(L)},
showOption:{calledOnce:!0,state:"visible"}});y=_.W8("shortsLockupViewModelHost",y);var a=_.Ig(),M={};M=_.W8(function(){return b(),"shortsLockupViewModelHostThumbnailContainer"},(M.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ba(f)===1},M.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ba(f)===2},M.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!b()},M.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.Z("web_shorts_2_by_3_lockups_study")&&!_.Z("desktop_search_enable_two_by_three_shorts_aspect_ratio")},M));
var U,d=function(){if(e){var T;(T=U)==null||iS(T);var L;e.hostElement&&((L=e.data)==null?0:L.inlinePlayerData)&&(U=gQ({mediaRenderer:e,lockupElement:e.hostElement,thumbnailElement:a.value,videoPreviewOpts:qJX}))}};
_.Xp(function(){e&&(e.data=E(),d())});
var Y=_.o0(function(){return E().thumbnail},void 0,"FXJKOd"),V=_.o0(function(){return E().badge},void 0,"RHSDwe"),O=_.o0(function(){return E().onTap},void 0,"twXQme");
return _.w("ytm-shorts-lockup-view-model",{el:v,class:y},_.w(_.gF,null,_.w(_.Ed,{command:O,className:_.W8("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!l()},
tabIndex:function(){return l()?0:-1}},_.w("div",{el:a,
class:M},_.w(_.x6,{cond:Y,then:function(){return _.w(_.UZ,{data:function(){return Y()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.w(_.x6,{cond:l,
then:function(){return _.w(k_6,{data:E,scrimStyle:r,useDefaultStyle:Q})}}),_.w(_.mI,{data:V},{badgeViewModel:function(T){return _.w(_.gi,{data:T.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.w(_.x6,{cond:function(){return l()&&E().menuOnTap},
then:function(){return _.w(WyP,{data:E,inlineMetadata:!0})}}),_.w(_.x6,{cond:function(){return!l()},
then:function(){return _.w($LF,{data:E,useDefaultStyle:Q})}})))},"Wa"),k_6=_.qu(function(v){var E=v.data;
var n=v.scrimStyle;var f=v.useDefaultStyle;var x=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",y=f&&_.Z("web_hide_primary_text_for_pivot_panel"),Q=_.o0(function(){return(f==null?0:f())?x==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
v={};v=_.W8("shortsLockupViewModelHostInlineMetadata",(v.shortsLockupViewModelHostMetadataRounded=function(){return!Q()},v.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(n==null?void 0:n())===3&&!_.Z("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(n==null?void 0:n())===3&&_.Z("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(n==null?void 0:n())===2||(n==null?void 0:
n())===4},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
var e={};return _.w("div",{class:v},_.w("h3",{class:_.W8("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(n==null?void 0:n())===4},e)),
"aria-label":function(){return E().accessibilityText}},_.w(_.x6,{cond:function(){var F;
return!((F=E().overlayMetadata)==null||!F.primaryText)&&!y},
then:function(){return _.w(_.nh,{text:function(){var F;return(F=E().overlayMetadata)==null?void 0:F.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.w(_.x6,{cond:function(){var F;
return(F=E().overlayMetadata)==null?void 0:F.secondaryText},
then:function(){return _.w(G_1,{data:E,scrimStyle:n,className:void 0})}}))},"Xa"),$LF=_.qu(function(v){var E=v.data;
var n=v.useDefaultStyle;var f=_.Z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",x=_.o0(function(){return(n==null?0:n())?f==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
v=_.W8(function(){return x()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var y,Q=_.ij(function(){var F;(F=y)==null||F.click();return!1}),e={};
return _.w("div",{class:v,"on:click":Q},_.w("h3",{class:_.W8("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(e.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var F,b;return!((F=E().overlayMetadata)==null?0:(b=F.primaryText)==null?0:b.content)},e)),
"aria-label":function(){return E().accessibilityText}},_.w(_.Ed,{ref:function(F){return void(y=F)},
command:function(){return E().onTap},
className:_.W8("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var F,b;return(F=E().overlayMetadata)==null?void 0:(b=F.primaryText)==null?void 0:b.content}},_.w(_.x6,{cond:function(){return!!E().overlayMetadata},
then:function(){return _.w(_.nh,{text:function(){var F;return(F=E().overlayMetadata)==null?void 0:F.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.w(_.x6,{cond:function(){var F;
return(F=E().overlayMetadata)==null?void 0:F.secondaryText},
then:function(){return _.w(G_1,{data:E,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.w(_.x6,{cond:function(){return E().menuOnTap},
then:function(){return _.w(WyP,{data:E,inlineMetadata:!1})}}))},"Ya"),G_1=_.qu(function(v){var E=v.data;
var n=v.scrimStyle;v=v.className;var f={};return _.w("div",{class:_.W8((f.shortsLockupViewModelHostMetadataSubhead=function(){return(n==null?void 0:n())!==4},f.shortsLockupViewModelHostMetadataSubheadNew=_.Z("enable_shorts_lockup_new_scrim"),f.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(n==null?void 0:n())===4},f),v),
"aria-hidden":"true"},_.w(_.nh,{text:function(){var x;return(x=E().overlayMetadata)==null?void 0:x.secondaryText},
noStyleRuns:!0}))},"Za"),WyP=_.qu(function(v){var E=v.data;
var n=v.inlineMetadata;v={};v=_.W8((v.shortsLockupViewModelHostInlineMetadataMenu=function(){return n()},v.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!n()},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
return _.w("div",{class:v},_.w(WT,{data:function(){return{style:n()?"overlay":"mono",accessibilityLabel:E().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(f){f.preventDefault();f.stopPropagation();var x=_.wJ({elementsCommand:E().menuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(f)}}},
iconName:"MORE_VERT"}))},"$a");var KBy=_.p7({badgeViewModel:a3Q}),UZ$=function(){},T31=_.GG(YJs),ibo=_.qu(function(v){var E=v.data;
var n=v.inlineMetadata;var f=v.aspectRatio;var x=v.scrimStyle;var y=v.className;var Q=v.useDefaultStyle;v=_.o0(function(){var F=E().entityId;return F?F.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var e=_.Z("web_shorts_lockup_view_model_sink")?Ly6:T31;return _.w("ytm-shorts-lockup-view-model-v2",{class:_.W8("shortsLockupViewModelHost",y)},_.w(_.pQP,{contentId:v,aspectRatio:function(){return(f==null?void 0:f())===1?1:(f==null?void 0:f())===2?2:4}},function(){return _.w(e,{data:E,
inlineMetadata:n,aspectRatio:f,scrimStyle:x,className:y,useDefaultStyle:Q})}))},"ab");
_.Nw(YJs);_.Nw(JYs);_.Nw(I09);_.Nw(hXQ);_.Nw(dZA);_.Yz(ibo,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Ij,inlineMetadata:_.Ij,aspectRatio:_.Ij,scrimStyle:_.Ij,className:_.Ij,useDefaultStyle:_.Ij}});var zvw=16/9*210,e6=function(){var v=_.g.apply(this,arguments)||this;v.isExpandableContent=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.buttonClasses=["arrow"];v.isSearch=!1;v.disableScrollEventListener=!1;v.containsLockup=!1;v.overrideArrowPositionForProductCard=!1;v.overrideArrowPositionForShoppingItemCard=!1;v.overrideArrowPositionForReelItems=!1;v.overrideArrowPositionForGridMovie=!1;v.overrideArrowPositionToCenter=!1;v.isSearchPostShelf=!1;v.overrideArrowPositionForMixedShelf=!1;v.overrideArrowPositionForMixedShelfShortsOnly=
!1;v.hasBigThumbsReelItems=!1;v.shouldUseMixedListHeight=!1;v.shouldUseShortsListHeight=!1;v.gridVideoWidth=0;v.isSearchVodShelf=!1;v.disableWheelScroll=!1;v.sizing="COMPACT";v.shortsLockupAspectRatio=0;return v};
_.S(e6,_.g);_.c=e6.prototype;
_.c.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]]"}}}}};
_.c.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Z("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.c.computeInitialCountNumber=function(v){if(!v)return 6;var E=v.items.some(function(y){return!!y.topicRecommendationsChipRenderer}),n=v.items.some(function(y){return!!y.displayAdRenderer}),f=this.computeShouldListItemsHaveEqualHeight(v),x=v.items.some(function(y){return!!y.gridPlaylistRenderer});
v=v.items.some(function(y){return!!y.shoppingItemCardViewModel});
return E?9:n?8:x||f?10:v?7:6};
_.c.computeContainsPost=function(v){return!!v&&!!v.items&&v.items.some(function(E){return!!E.postRenderer})};
_.c.computeContainsLockup=function(){if(_.Z("web_horizontal_list_lockup_arrow_killswitch"))return!1;var v,E;return(v=this.data)==null?void 0:(E=v.items)==null?void 0:E.some(function(n){return!!n.lockupViewModel})};
_.c.maybeUpdateLockupAspectRatio=function(){var v,E;if(this.computeContainsLockup()&&((v=this.data)==null?0:(E=v.items)==null?0:E.length)){var n;v=C4Q((n=this.data.items[0].lockupViewModel)==null?void 0:n.contentType,this.data.force16By9ThumbnailAspectRatio);n=fNX(v);n=this.computeLockupWidth()/n;_.NQ(this.hostElement,{"--yt-horizontal-list-content-height":n+"px"})}};
_.c.computeOverrideArrowPositionForProductCard=function(v){if(this.isExpandableContent)return!1;var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){return!!n.verticalProductCardRenderer}))};
_.c.computeOverrideArrowPositionForShoppingItemCard=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){return!!n.shoppingItemCardViewModel}))};
_.c.computeOverrideArrowPositionForReelItemRenderer=function(v){return this.containsReelItemRenderer(v)};
_.c.computeHasBigThumbsReelItems=function(v,E){return v&&this.containsReelItemRenderer(E)};
_.c.computeShouldListItemsHaveEqualHeight=function(v){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(v==null?void 0:v.itemSizeConstraint)};
_.c.computeShouldListItemsHaveShortsHeight=function(v){return this.computeShouldListItemsHaveEqualHeight(v)&&!this.containsGridVideoRenderer(v)};
_.c.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.c.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.c.containsReelItemRenderer=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){return!(!n.reelItemRenderer&&!n.shortsLockupViewModel)}))};
_.c.containsGridVideoRenderer=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){return!!n.gridVideoRenderer||!!n.lockupViewModel}))};
_.c.computeContainsGridMovieRenderer=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){return!!n.gridMovieRenderer}))};
_.c.computeOverrideArrowPositionToCenter=function(v){return this.computeIsSearchPostShelf(v)};
_.c.computeIsSearchPostShelf=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){var f,x;return((x=(f=n.postRenderer)==null?void 0:f.surface)!=null?x:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.c.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(v){var E;return!!(v==null?0:(E=v.items)==null?0:E.some(function(n){var f,x,y;return((y=(f=n.backgroundPromoRenderer)==null?void 0:(x=f.style)==null?void 0:x.value)!=null?y:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.c.computeIsSearchVodShelf=function(v,E){return v&&this.containsGridVideoRenderer(E)};
_.c.computeDisableWheelScroll=function(v,E){return this.computeIsSearchVodShelf(v,E)};
_.c.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.c.computeShortsLockupAspectRatio=function(v){return v&&_.Z("web_shorts_2_by_3_lockups_no_search")&&!_.Z("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.c.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.NQ(this.hostElement,{"--ytd-reel-item-thumbnail-height":zvw+"px"})};
e6.prototype.dataChanged=e6.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],e6.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],e6.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],e6.prototype,"isExpandableContent",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"hideShelfHeader",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"engagementPanel",void 0);_.k([_.H(),_.W("design:type",Array)],e6.prototype,"buttonClasses",void 0);_.k([_.H(),_.W("design:type",Object)],e6.prototype,"isSearch",void 0);
_.k([_.H(),_.W("design:type",Object)],e6.prototype,"disableScrollEventListener",void 0);_.k([_.H({computed:"computeInitialCountNumber(data)"}),_.W("design:type",Number)],e6.prototype,"initialCount",void 0);_.k([_.H({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],e6.prototype,"supportComponentResize",void 0);_.k([_.H({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],e6.prototype,"containsPost",void 0);
_.k([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"containsLockup",void 0);_.k([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],e6.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.k([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForProductCard",void 0);_.k([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.k([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForReelItems",void 0);_.k([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForGridMovie",void 0);
_.k([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionToCenter",void 0);_.k([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"isSearchPostShelf",void 0);_.k([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.k([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.k([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"hasBigThumbsReelItems",void 0);
_.k([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"shouldUseMixedListHeight",void 0);_.k([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"shouldUseShortsListHeight",void 0);_.k([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"gridVideoWidth",void 0);
_.k([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"isSearchVodShelf",void 0);_.k([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],e6.prototype,"disableWheelScroll",void 0);_.k([_.H({computed:"computeSizing(isSearch)"}),_.W("design:type",Object)],e6.prototype,"sizing",void 0);
_.k([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.W("design:type",Object)],e6.prototype,"shortsLockupAspectRatio",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e6.prototype,"dataChanged",null);
_.u(e6,"yt-horizontal-list-renderer",function(){if(HSF===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);HSF=v}v=HSF;return v},{mode:1});var RvU;var tFX=[10,12,14,16,18,20,24,28,32,36],B3X=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],F4=function(){var v=_.g.apply(this,arguments)||this;v.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";v.hideOverflow=!1;v.useRoboto=!1;v.fontClass="";v.overflown=!1;v.actionMap={"yt-window-resized":"resize"};return v};
_.S(F4,_.g);_.c=F4.prototype;
_.c.attached=function(){var v=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();_.IS(this,function(){v.resize()});
if(!_.n9){var E,n,f;(E=document)==null||(n=E.fonts)==null||(f=n.ready)==null||f.then(function(){v.resize()})}};
_.c.dataChanged=function(){this.resize()};
_.c.guideIsExpandedChanged=function(){this.resize()};
_.c.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 v=this.getMaxNumLines(),E=this.getMinFont(),n=this.getMaxFont(),f=this.useRoboto?tFX:B3X;for(f=f.filter(function(y){return y<=n&&y>=E});f.length>1;){var x=Math.floor(f.length/2);
this.updateFontSize(f[x]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=v)f=f.slice(x,f.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>v)f=f.slice(0,x);else break}this.updateFontSize(f[f.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(v)}};
_.c.handleOverflow=function(v){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>v&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",v.toString()))};
_.c.updateFontSize=function(v){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+v;this.textNode.classList.add(this.fontClass)};
_.c.getMaxFont=function(){var v=this.useRoboto?tFX:B3X;v=v[v.length-1];return this.maxFontSize&&this.maxFontSize<=v?this.maxFontSize:v};
_.c.getMinFont=function(){var v=(this.useRoboto?tFX:B3X)[0];return this.minFontSize&&this.minFontSize>=v?this.minFontSize:v};
_.c.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.c.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.c.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.JC(this.text).split("\n").length-1:Infinity};
_.c.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("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
F4.prototype.guideIsExpandedChanged=F4.prototype.guideIsExpandedChanged;F4.prototype.dataChanged=F4.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],F4.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],F4.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],F4.prototype,"text",void 0);
_.k([_.H(),_.W("design:type",String)],F4.prototype,"fontFamily",void 0);_.k([_.H(),_.W("design:type",Number)],F4.prototype,"maxWidth",void 0);_.k([_.H(),_.W("design:type",Number)],F4.prototype,"maxHeight",void 0);_.k([_.H(),_.W("design:type",Number)],F4.prototype,"maxFontSize",void 0);_.k([_.H(),_.W("design:type",Number)],F4.prototype,"minFontSize",void 0);_.k([_.H(),_.W("design:type",Number)],F4.prototype,"maxLines",void 0);_.k([_.H(),_.W("design:type",Object)],F4.prototype,"hideOverflow",void 0);
_.k([_.H({selector:_.IOQ}),_.W("design:type",Boolean)],F4.prototype,"guideIsExpanded",void 0);_.k([_.Wp("#container"),_.W("design:type",HTMLElement)],F4.prototype,"containerNode",void 0);_.k([_.Wp("#text"),_.W("design:type",HTMLElement)],F4.prototype,"textNode",void 0);_.k([_.Tw("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"dataChanged",null);
_.k([_.Tw("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"guideIsExpandedChanged",null);F4=_.k([_.N({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],F4);
_.u(F4,"yt-dynamic-sizing-formatted-string",function(){if(RvU!==void 0)return RvU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RvU=v},{mode:1});var vWz;_.EWU=function(v){_.vI.call(this,v)};
_.S(_.EWU,_.vI);var nWw=function(v){_.vI.call(this,v)};
_.S(nWw,_.EWU);var mC=function(){return _.g.apply(this,arguments)||this};
_.S(mC,_.g);mC.prototype.onTapSuspendedChannel=function(){var v;if((v=this.data)!=null&&v.serviceEndpoint){var E,n;(v=(n=_.C((E=this.data)==null?void 0:E.serviceEndpoint,_.Us))==null?void 0:n.url)?_.mo(v,void 0,void 0,window.top):(E=new nWw("Did not handle suspended account tap. No appealUrl."),_.mb(E))}else E=new nWw("Did not handle suspended account tap. No serviceEndpoint."),_.mb(E)};
mC.prototype.onTap=function(){var v=this,E=_.Tl(),n,f=(n=_.Gl(E,{veType:7116}))!=null?n:void 0;_.aX(E,{visualElement:f});_.ek();this.saveRoleText();var x;if((x=this.data)==null?0:x.youtubeSuspended)this.onTapSuspendedChannel();else{var y=!1,Q,e;(E=(e=_.C((Q=this.data)==null?void 0:Q.serviceEndpoint,_.ch6))==null?void 0:e.supportedTokens)&&E.forEach(function(F){if(F.accountSigninToken)if(y=!0,v.onAccountItemTap)v.onAccountItemTap(F.accountSigninToken.signinUrl);else _.mo(F.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!y){if(Q=this.get("serviceEndpoint",this.data))y=!0,this.ytComponentBehavior.resolveCommand(Q);y||_.bi(new nWw("Did not handle account switch tap. No token."))}}};
mC.prototype.saveRoleText=function(){if(this.data){var v=this.data,E=v.channelDelegationRole;if(E){var n,f=(n=_.C(v==null?void 0:v.serviceEndpoint,_.ch6))==null?void 0:n.supportedTokens;if(!f){var x,y,Q,e;f=(x=_.C(v==null?void 0:v.serviceEndpoint,_.rR))==null?void 0:(y=x.popup)==null?void 0:(Q=y.confirmDialogRenderer)==null?void 0:(e=Q.confirmButton)==null?void 0:e.buttonRenderer;var F;f=(F=_.C(f==null?void 0:f.command,_.Tn))==null?void 0:F.commands;if(!f)return;var b;f=(b=_.C(f[1],_.ch6))==null?
void 0:b.supportedTokens}if(f){F=void 0;b=_.p(f);for(f=b.next();!f.done;f=b.next())if(f=f.value,f.datasyncIdToken){F=f.datasyncIdToken.datasyncIdToken;break}if(F){var l;a:{if(_.wL9()&&(b=_.qLQ(F+"::pom"))){b=new nt(b);break a}b=void 0}(l=b)==null||l.set("role_text",E);if((Jz$?Jz$:window.location).href.indexOf("studio")!==-1&&(l=b41())){b=l.src?(new URL(l.src)).origin:"*";var r;(r=l.contentWindow)==null||r.postMessage({action:"save_pom_role",datasyncId:F,roleText:E},b)}}}}}};
_.hK.Object.defineProperties(mC.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.accountPhoto)==null?void 0:E.thumbnails;return n&&n.length>0&&(n[0].height===36||n[0].height===48)?n[0].height:40}}});
mC.prototype.onTap=mC.prototype.onTap;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],mC.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mC.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Function)],mC.prototype,"onAccountItemTap",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mC.prototype,"enableRingForActiveAccount",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],mC.prototype,"thumbnailSize",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mC.prototype,"onTap",null);mC=_.k([_.N({is:"ytd-account-item-renderer",disableElementRegistration:!0})],mC);
_.u(mC,"ytd-account-item-renderer",function(){if(vWz!==void 0)return vWz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return vWz=v},{mode:1});var oWw;var wI=function(){return _.g.apply(this,arguments)||this};
_.S(wI,_.g);wI.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.P().resolve(_.OO).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wI.prototype,"data",void 0);wI=_.k([_.N({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],wI);
_.u(wI,"ytd-identity-chip-renderer",function(){if(oWw!==void 0)return oWw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oWw=v},{mode:1});var f04;var xZP;var cYi;var yYz;var bO=function(){var v=_.g.apply(this,arguments)||this;v.richItemMinWidth=_.WG("wn_grid_min_item_width",310);v.isShorts=!1;v.isWatchNext=!1;v.isExploreHub=!1;return v};
_.S(bO,_.g);_.hK.Object.defineProperties(bO.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var v=[],E=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.NQ(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var n;if(((n=this.data)==null?0:n.rows)&&E)for(E*=this.data.rows,n=0;n<E;n++)v.push({});return v}}});
_.k([_.h(_.PL),_.W("design:type",Object)],bO.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bO.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.Fq,value:3}),_.W("design:type",Number)],bO.prototype,"itemsPerRow",void 0);_.k([_.H({selector:_.dbX,value:6}),_.W("design:type",Number)],bO.prototype,"slimItemsPerRow",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Number)],bO.prototype,"richItemMinWidth",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],bO.prototype,"miniMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bO.prototype,"isShorts",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bO.prototype,"isWatchNext",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bO.prototype,"isExploreHub",void 0);
_.k([_.A("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.W("design:type",Array),_.W("design:paramtypes",[])],bO.prototype,"cardItems",null);bO=_.k([_.N({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],bO);
_.puP=_.Dj()(bO,"ytd-ghost-grid-renderer",function(){if(yYz===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);yYz=v}v=yYz;return v},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Yz(_.qu(function(v){var E=_.Ue(v,{numberOfComments:3}).numberOfComments,n=_.Ue(v,{isInitialLoad:!1}).isInitialLoad,f=_.mc(_.wG),x=function(){return Math.min(Number(E==null?void 0:E())||20,20)};
return _.w("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.w(_.x6,{cond:function(){return(f==null?void 0:f())&&(n==null?void 0:n())},
then:function(){return _.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.w("div",{class:_.W8("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.w("div",{class:_.W8("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.W8("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.w("div",{class:_.W8("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.w("div",{class:"ytGhostCommentsComments"},_.w(_.cG,{each:function(){return Array((x==null?void 0:x())||3)}},function(){return _.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsHost"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.W8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.w("div",{class:_.W8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.W8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:"ytGhostCommentsGhostLikeDislike"},_.w("div",{class:_.W8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.W8("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.Kt,
isInitialLoad:_.Kt}});_.ew("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var lO=function(){var v=_.g.apply(this,arguments)||this;v.isOverridable=!1;v.spinnerActive=!1;v.showButton=!1;v.isCommentsSection=!1;v.isShortsGrid=!1;v.isShortsPage=!1;v.isWatchPage=!1;v.ghostCardExperimentEnabled=_.Z("show_ghost_comments_shorts_watch")||_.Z("show_ghost_comments_desktop_watch");v.originalShowButton=!1;v.endOfList=!1;return v};
_.S(lO,_.g);_.c=lO.prototype;_.c.resetIntersectionObserver=function(){var v;(v=this.observer)==null||v.disconnect();this.observer=void 0};
_.c.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var v,E;((v=this.data)==null?void 0:v.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((E=this.data)==null?0:E.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.c.initializeIntersectionObserver=function(){var v=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(E){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n.value.isIntersecting&&(v.triggerContinuation(),v.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.c.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.c.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var v;((v=this.data)==null?0:v.continuationEndpoint)&&(v=_.C(this.data.continuationEndpoint,_.bG))&&this.ytdReduxBehavior.dispatch(_.un({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:v}}))};
_.c.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.c.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.c.onServiceRequestCompleted=function(v,E){if(!_.Z("kevlar_hide_spinner_on_empty_continuation_killswitch")){var n;(n=E.actions)!=null&&n.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.c.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.c.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.c.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.c.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var v=3;if(this.isShortsPage){var E,n,f;v=Math.floor(((((E=this.hostElement)==null?void 0:(n=E.parentElement)==null?void 0:(f=n.parentElement)==null?void 0:f.scrollHeight)||108)-108)/108);v=this.isInitialLoad?Math.max(v,3):3}E=[].concat(_.s8(this.hostElement.querySelectorAll("yt-ghost-comments")));E=_.p(E);for(n=E.next();!n.done;n=E.next())n=n.value,n.numberOfComments=v,n.isInitialLoad=this.isInitialLoad}};
_.c.detached=function(){this.resetIntersectionObserver()};
_.hK.Object.defineProperties(lO.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.Z("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.Z("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
lO.prototype.numberOfGhostCommentsChanged=lO.prototype.numberOfGhostCommentsChanged;lO.prototype.continuationTriggerOffsetChanged=lO.prototype.continuationTriggerOffsetChanged;lO.prototype.showButtonChanged=lO.prototype.showButtonChanged;lO.prototype.onYtServiceRequestCompletedForButtonRenderer=lO.prototype.onYtServiceRequestCompletedForButtonRenderer;lO.prototype.onServiceRequestCompleted=lO.prototype.onServiceRequestCompleted;lO.prototype.onYtServiceRequestSentForButtonRenderer=lO.prototype.onYtServiceRequestSentForButtonRenderer;
lO.prototype.observeData=lO.prototype.observeData;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],lO.prototype,"ytVisibilityBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],lO.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],lO.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],lO.prototype,"isOverridable",void 0);_.k([_.H(),_.W("design:type",Object)],lO.prototype,"spinnerActive",void 0);_.k([_.H(),_.W("design:type",Object)],lO.prototype,"showButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],lO.prototype,"isCommentsSection",void 0);
_.k([_.H(),_.W("design:type",Object)],lO.prototype,"isShortsGrid",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.hrX}),_.W("design:type",Object)],lO.prototype,"isShortsPage",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.wG}),_.W("design:type",Object)],lO.prototype,"isWatchPage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],lO.prototype,"ghostCardExperimentEnabled",void 0);_.k([_.H(),_.W("design:type",Number)],lO.prototype,"continuationTriggerOffset",void 0);
_.k([_.H(),_.W("design:type",Object)],lO.prototype,"endOfList",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],lO.prototype,"isInitialLoad",void 0);_.k([_.Wp("ytd-button-renderer"),_.W("design:type",_.Ad)],lO.prototype,"buttonRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],lO.prototype,"buttonOverrides",void 0);
_.k([_.H(),_.A("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.W("design:type",Object),_.W("design:paramtypes",[])],lO.prototype,"isShortsCommentsSection",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"observeData",null);
_.k([_.jk("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],lO.prototype,"onServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-completed-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.k([_.Tw("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"showButtonChanged",null);
_.k([_.Tw("continuationTriggerOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"continuationTriggerOffsetChanged",null);_.k([_.On("isInitialLoad","isShortsPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lO.prototype,"numberOfGhostCommentsChanged",null);lO=_.k([_.N({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],lO);
_.u(lO,"ytd-continuation-item-renderer",function(){if(cYi!==void 0)return cYi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return cYi=v},{mode:1});var Qzz;var sA=function(){var v=_.g.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;v.downloadedVideoPlaybackPosition=0;return v};
_.S(sA,_.g);sA.prototype.dataChanged=function(){var v;this.videoData=_.C((v=this.data)==null?void 0:v.renderer,VHX);this.transferStateChanged()};
sA.prototype.downloadProgressChanged=function(){if(this.entityInfo){var v=Object.assign({},this.videoData),E=dsE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),n=E.publishedTimeText,f=E.badges;v.shortViewCountText=E.shortViewCountText;v.publishedTimeText=n;v.badges=f;this.set("videoData",v)}};
sA.prototype.transferStateChanged=function(){if(this.entityInfo){var v=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",E=_.nC(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Eb(this.entityInfo.policyEntity),n=Object.assign({},this.videoData),f=dsE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=f.publishedTimeText,y=f.badges;n.shortViewCountText=
f.shortViewCountText;n.publishedTimeText=x;n.badges=y;n.isDisabled=E;n.isWatched=this.downloadedVideoPlaybackPosition>0;n.navigationEndpoint=E?void 0:x71(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Q;v&&((Q=this.videoData)==null?0:Q.videoId)&&!_.Z("dl_resume_click_killswitch")&&(n.isDisabled=!1,n.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});n.thumbnailOverlays=JhL(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",n)}};
sA.prototype.transferStateChanged=sA.prototype.transferStateChanged;sA.prototype.downloadProgressChanged=sA.prototype.downloadProgressChanged;sA.prototype.dataChanged=sA.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],sA.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sA.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],sA.prototype,"videoData",void 0);_.k([_.H({selector:sb,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"downloadProgress",void 0);_.k([_.H(),_.W("design:type",Number)],sA.prototype,"relativeDateReference",void 0);_.k([_.H({selector:_.bx,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"transferState",void 0);
_.k([_.H({selector:BRF,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"downloadState",void 0);_.k([_.H({selector:NRA,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"offlinePolicyAction",void 0);_.k([_.H({selector:u01,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.k([_.H({selector:rG,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"downloadedVideoPlaybackPosition",void 0);_.k([_.H({selector:OgX,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],sA.prototype,"entityInfo",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],sA.prototype,"isDownloading",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sA.prototype,"dataChanged",null);
_.k([_.Tw("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sA.prototype,"downloadProgressChanged",null);_.k([_.Tw("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sA.prototype,"transferStateChanged",null);
sA=_.k([_.N({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],sA);
_.u(sA,"ytd-downloaded-video-grid-video-renderer",function(){if(Qzz!==void 0)return Qzz;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Qzz=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var XuP;var rI=function(){};
rI.prototype.resolve=function(v,E){var n=this;return _.X(function(f){return _.m(f,n.resolveCommand(v,E),0)})};var eXU,P$;eXU=Vis(function(v){return v.targetId},{shouldPersist:!1});
P$=eXU.updateData;_.FBo=eXU.useUpdatableData;var mZS,wuX;mZS=Vis(function(v){return v.targetId});
wuX=mZS.updateData;_.b$F=mZS.useUpdatableData;var l01=AYE.bind(null,P$),szg=AYE.bind(null,wuX);(function(v,E,n){var f=_.C(n==null?void 0:n.updatedRenderer,_.XkS);return f?v({targetId:E},function(){return f}):!1}).bind(null,P$);var Zt=function(){};
_.S(Zt,rI);Zt.prototype.resolveCommand=function(v){var E;return _.X(function(n){E=_.C(v,_.iBX);if(!E)return n.return();l01(E.targetId,E);_.yQ(n)})};var CX=function(){var v=_.L2.apply(this,arguments)||this;v.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return v};
_.S(CX,_.L2);_.c=CX.prototype;_.c.configureContinuationPathMap=function(){return{}};
_.c.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.c.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.c.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.c.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.c.handleAppendContinuationItemsAction=function(v){var E=_.C(v,_.Wez);if(this.data&&this.data.targetId&&E&&this.continuationPathMap&&E.targetId===this.data.targetId){var n=TJs(v);if((v=n&&this.continuationPathMap[n])&&n){n=this.get(v,this.data);var f;a:{for(f=0;f<n.length;f++){var x=n[f],y=void 0,Q=!!_.C((y=_.C(x,qow))==null?void 0:y.content,_.ITl);if(_.C(x,_.ty)||Q)break a}f=n.length}v="data."+v;E.continuationItems?f===n.length-1?(this.pop(v),this.push.apply(this,[v].concat(_.s8(E.continuationItems)))):
f===n.length?this.push.apply(this,[v].concat(_.s8(E.continuationItems))):this.splice.apply(this,[v,f,1].concat(_.s8(E.continuationItems))):this.splice(v,f,1);(_.Z("web_enable_voting_animation")||_.Z("enable_music_web_cairo_voting_animation"))&&_.jK(this.hostElement,"yt-append-continuation-items-action-finished");_.jK(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.li(new _.yc("append continuation path does not exist",n))}};
_.c.handleReloadContinuationItemsCommand=function(v){var E=_.C(v,_.iBX);if(this.data&&E){if(_.Z("web_explore_hub")||_.Z("web_client_explore_hub")||_.Z("web_explore_hub_on_hover")||_.Z("web_client_explore_hub_on_hover"))try{_.P().resolve(Zt).resolveCommand(v)}catch(y){}if(this.data.targetId&&this.continuationPathMap&&E.targetId===this.data.targetId&&(!_.Z("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||E.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var n,f=(n=
E.slot)==null?void 0:n.replace("RELOAD_CONTINUATION_SLOT_","");n=(v=TJs(v)+"-"+(f==null?void 0:f.toLowerCase()))&&this.continuationPathMap[v];if(!n||!v||!f)_.li(new _.yc("reload continuation path does not exist",v));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(E)){if(E.replaceWithFirstItem){var x;this.set("data."+n,((x=E.continuationItems)==null?0:x.length)?E.continuationItems[0]:{})}else this.set("data."+n,E.continuationItems?E.continuationItems:
[]);this.continuationIsReloading=!1;_.jK(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.c.handleShowReloadUiCommand=function(v){v=_.C(v,frF);var E;((E=this.data)==null?0:E.targetId)&&(v==null?0:v.targetId)&&v.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
CX.prototype.observeData=CX.prototype.observeData;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],CX.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],CX.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CX.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],CX.prototype,"continuationIsReloading",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CX.prototype,"observeData",null);CX=_.k([_.Gw()],CX);_.MU=[_.aD.YtComponentBehavior,_.N2.YtActionHandlerBehavior,CX.prototype];_.S6={};_.S6.YtNextContinuationBehavior=[_.A1.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",_.uo(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.uo(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(v,E){v.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,E,{}):(v={locationRetrieved:function(n){this.makeNextContinuationRequest_(n,E,{})}.bind(this)},_.jK(this.hostElement,"yt-retrieve-location",v))},
makeNextContinuationRequest_:function(v,E,n){_.m5("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();v=E(v);var f;this.canUseContextualNetworkManager_()&&(f=this.getNetworkManager());f||(f=_.P().resolve(_.n2));E=_.Zg.instance;if(_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&E){f=_.Yt([v.startsWith("/")?v.substr(1):v]);var x,y;n=_.Ms(E,{},f,n==null?void 0:(x=n.context)==null?void 0:(y=x.clickTracking)==null?void 0:y.clickTrackingParams).then(function(Q){return{response:Q}})}else n=
this.nextContinuation.usePost?f.postData(v,n):f.fetchData(v);
n.then(this.updateNextContinuationData_.bind(this,v));this.pendingContinuationRequest_=n;this.startListeningForNavigate_()},
updateNextContinuationData_:function(v,E){var n=this;_.m5("ncl");this.pendingContinuationRequest_=void 0;if(E){var f={};this.nextContinuation&&(f=this.nextContinuation);if(E.response&&E.response.continuationContents&&E.response.continuationContents[f.continuationType]){v=E.response.continuationContents[f.continuationType];var x=f.header||"data.header",y=v[f.responseHeaderKey||"header"];y&&this.set(x,y);x=f.contentsArray||"data.contents";y=this.getContents_(v,f.responseContentsKey||"contents")||[];
this.pathExists_(x)?(y.unshift(x),this.push.apply(this,y)):this.set(x,y);y&&(Vm1(_.Tl(),E.response,this.hostElement,function(Q){_.OL(n.hostElement,"yt-store-grafted-ve-action",[Q])}),_.jK(this.hostElement,"yt-next-continuation-data-updated",{continuationData:E,
page:this,contentsArray:x}));this.set(f.continuationsArray||"data.continuations",v[f.responseContinuationsKey||"continuations"]||[])}else E.reload?_.li(new _.yc("Reloading from continuation is unsupported")):E.responseContext&&E.responseContext.errors||(delete E.xsrf_token,delete E.timing,delete E.endpoint,delete E.csn,E.responseContext&&delete E.responseContext.serviceTrackingParams,x={request:_.AM(v,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(E).sort()},E.response&&(x.responseContentKeys=
Object.keys(E.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(x.continuationType=this.nextContinuation.continuationType.substr(0,256)),E=new _.yc("Malformed continuation",x),v.indexOf("/comment_service_ajax")==0?_.li(E):_.mb(E)),this.set(f.continuationsArray||"data.continuations",[])}else _.bi(new _.yc("Missing continuation response",v))},
getContents_:function(v,E){E=E.split(".");return _.sh.getValueByKeys(v,E)},
pathExists_:function(v){var E=this;v=v.toString().split(".");for(var n=0;n<v.length;n++)if(E=E[v[n]],E===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var rY1;var P71;var UA=function(){var v=_.g.apply(this,arguments)||this;v.triggered_=!1;return v};
_.S(UA,_.g);_.c=UA.prototype;_.c.attached=function(){this.maybeTriggerAutoload()};
_.c.detached=function(){this.hasBeenTriggered_=!1};
_.c.onPrescanVisible=function(){this.onShow()};
_.c.onShow=function(){this.showButton||this.trigger()};
_.c.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.jK(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.c.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.c.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.c.computeLabel_=function(v,E){return v===void 0?null:v.label||!E?v.label:this.showMoreText_};
_.c.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.c.getContinuationUrl=function(v){var E={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.V1(v,E)};
_.c.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
UA.prototype.showButtonChanged_=UA.prototype.showButtonChanged_;UA.prototype.observeData_=UA.prototype.observeData_;_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],UA.prototype,"ytVisibilityBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UA.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],UA.prototype,"showButton",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],UA.prototype,"showIcon",void 0);_.k([_.H({computed:"computeLabel_(data, showButton)"}),_.W("design:type",Object)],UA.prototype,"label",void 0);_.k([_.H({value:_.qD(_.tQ("SHOW_MORE",void 0,"Show More"))}),_.W("design:type",Object)],UA.prototype,"showMoreText_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],UA.prototype,"spinnerActive_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],UA.prototype,"hasBeenTriggered_",void 0);
_.k([_.H({value:void 0}),_.W("design:type",String)],UA.prototype,"observeVisibleOption",void 0);_.k([_.H({value:void 0}),_.W("design:type",String)],UA.prototype,"observeHiddenOption",void 0);_.k([_.H({value:"observe_once"}),_.W("design:type",Object)],UA.prototype,"observePrescanOption",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UA.prototype,"observeData_",null);
_.k([_.On("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UA.prototype,"showButtonChanged_",null);UA=_.k([_.p5({is:"yt-next-continuation",disableElementRegistration:!0})],UA);
_.u(UA,"yt-next-continuation",function(){if(P71===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;rY1===void 0&&(rY1=document.createElement("template"));var f=rY1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);P71=v}v=P71;return v},{mode:2});var a01;var Z$6;var qU=function(){return _.g.apply(this,arguments)||this};
_.S(qU,_.g);qU.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qU.prototype,"data",void 0);qU=_.k([_.p5({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],qU);
_.u(qU,"yt-music-pass-small-feature-info-renderer",function(){if(Z$6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;a01===void 0&&(a01=document.createElement("template"));var f=a01;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Z$6=v}v=Z$6;return v},{mode:2});_.ew("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Jk=function(){var v=_.g.apply(this,arguments)||this;v.isCollapsible=!1;v.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return v};
_.S(Jk,_.g);_.c=Jk.prototype;_.c.computeIsCollapsible=function(v){return!!(((v==null?0:v.showMoreText)||(v==null?0:v.visibleRowCount))&&(v==null?0:v.isCollapsible))};
_.c.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"}}}};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.c.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.c.onIronResize=function(){var v=this;_.lz(this,"updateGridInitItems",function(){v.maybeUpdateInitialItemsDisplayed()})};
_.c.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var v=this.getVisibleWidth();v!==0&&(v=Math.floor(v/214)*(this.data.visibleRowCount||2),v!==this.initialCount&&(this.initialCount=v,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.c.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.c.computeExpandVisible=function(v,E,n,f){return v&&E&&n&&!!f&&!!f.showMoreText};
_.c.computeShowMoreButton=function(v){return{text:v,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.c.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.c.initCollapsed=function(){var v=this;this.ytLazyListBehavior.canShowMore=!1;var E;(this.collapsed=!((E=this.data)==null||!E.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.IS(this,function(){_.kZ(v.hostElement,"yt-refit-popups-action")})};
_.c.fillRestIfNotCollapsible=function(){var v=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!v||this.ytLazyListBehavior.fillRemainingListItems()};
_.c.computeViewAllHidden=function(v,E){return v||!E.viewAllEndpoint};
Jk.prototype.fillRestIfNotCollapsible=Jk.prototype.fillRestIfNotCollapsible;Jk.prototype.initCollapsed=Jk.prototype.initCollapsed;Jk.prototype.onIronResize=Jk.prototype.onIronResize;Jk.prototype.persistentGuideChanged=Jk.prototype.persistentGuideChanged;_.k([_.h(_.ZT),_.W("design:type",Object)],Jk.prototype,"ironResizableBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Jk.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],Jk.prototype,"ytNextContinuationBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Jk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.h(_.MU),_.W("design:type",Object)],Jk.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Jk.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Jk.prototype,"collapsed",void 0);_.k([_.H(),_.W("design:type",Number)],Jk.prototype,"initialCount",void 0);_.k([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.W("design:type",Object)],Jk.prototype,"showMoreButton",void 0);
_.k([_.H({computed:"computeIsCollapsible(data)"}),_.W("design:type",Object)],Jk.prototype,"isCollapsible",void 0);_.k([_.Wp("#items"),_.W("design:type",HTMLElement)],Jk.prototype,"items",void 0);_.k([_.Tw("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jk.prototype,"persistentGuideChanged",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jk.prototype,"onIronResize",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jk.prototype,"initCollapsed",null);_.k([_.Tw("canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jk.prototype,"fillRestIfNotCollapsible",null);Jk=_.k([_.N({is:"ytd-grid-renderer",disableElementRegistration:!0})],Jk);
_.u(Jk,"ytd-grid-renderer",function(){if(XuP!==void 0)return XuP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return XuP=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var KX=function(){return _.g.apply(this,arguments)||this};
_.S(KX,_.g);
KX.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"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],KX.prototype,"data",void 0);KX=_.k([_.N({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],KX);
_.u(KX,"ytd-carousel-ad-renderer",function(){if(xZP!==void 0)return xZP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xZP=v},{mode:1});var C74;var dI=function(){return _.g.apply(this,arguments)||this};
_.S(dI,_.g);_.c=dI.prototype;_.c.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"}}}};
_.c.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,dI.JSC$13143_CLICK_LOCATION_ID_MAP))};
_.c.onSitelinkTap=function(v){v.stopPropagation();var E,n,f=v==null?void 0:(E=v.model)==null?void 0:(n=E.item)==null?void 0:n.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,v,!1)};
_.c.onTap=function(v){var E=this.data&&this.data.content&&this.data.content.navigationEndpoint;E&&this.ytSparklesClickLocationBehavior.handleClick(E,v,!1)};
_.c.sendImpression=function(){if(this.data&&this.data.content)for(var v=_.p(this.data.content.impressionEndpoints||[]),E=v.next();!E.done;E=v.next()){E=_.p(E.value.loggingUrls||[]);for(var n=E.next();!n.done;n=E.next())n=n.value,n.baseUrl&&UU(n.baseUrl,n.attributionSrcMode)}};
dI.prototype.onTap=dI.prototype.onTap;dI.prototype.dataChanged=dI.prototype.dataChanged;dI.JSC$13143_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"]]);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],dI.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dI.prototype,"data",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dI.prototype,"onTap",null);dI=_.k([_.N({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],dI);
_.u(dI,"ytd-promoted-sparkles-text-search-renderer",function(){if(C74!==void 0)return C74;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return C74=v},{mode:1});var MmF;var IB=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.S(IB,_.g);_.c=IB.prototype;
_.c.configureRendererStamper=function(){return{"data.menu":{id:_.Z("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]]"}}}}}};
_.c.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.c.computeHasAdBadge=function(v){return!(v==null||!v.adBadge)};
_.c.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",IB.JSC$13152_DEFAULT_AD_BADGE_RENDERER),_.Vt(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,IB.JSC$13152_CLICK_LOCATION_ID_MAP))};
_.c.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var v;(((v=this.data)==null?void 0:v.impressionCommands)||[]).forEach(function(E){E=_.p(E.loggingUrls||[]);for(var n=E.next();!n.done;n=E.next())n=n.value,n.baseUrl&&UU(n.baseUrl,n.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.c.onTap=function(v){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint,f;(E=(f=this.data)==null?void 0:f.thumbnailNavigationEndpoint)&&_.dW(_.MQ(v),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(E,v,!1):n&&this.ytSparklesClickLocationBehavior.handleClick(n,v,!1)};
_.c.handleMuteAd=function(){this.collapsed=!0};
_.c.attached=function(){var v=this;_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.detached=function(){_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hK.Object.defineProperties(IB.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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}}});
IB.prototype.dataChanged=IB.prototype.dataChanged;
IB.JSC$13152_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"]]);
IB.JSC$13152_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.tQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],IB.prototype,"ytdActiveViewBehavior",void 0);
_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],IB.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],IB.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IB.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],IB.prototype,"collapsed",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],IB.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],IB.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.W("design:type",Boolean)],IB.prototype,"fixAlignmentSmallScreens",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs_square")}}),
_.W("design:type",Boolean)],IB.prototype,"useBiggerThumbsSquare",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.mediaHoverOverlay"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"hideHoverOverlay",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"webSearchLayout",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"webSearchLayoutLandscape",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"webSearchLayoutSquare",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"sparklesCtaNoBackground",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.actionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"hideActionButton",null);_.k([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],IB.prototype,"buttonOverride",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.W("design:type",Boolean)],IB.prototype,"hasNewAdBadge",void 0);_.k([_.A("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IB.prototype,"useRoundedBadge",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IB.prototype,"dataChanged",null);IB=_.k([_.N({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],IB);
_.u(IB,"ytd-promoted-sparkles-web-renderer",function(){if(MmF!==void 0)return MmF;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return MmF=v},{mode:1});var SJU;var YF=function(){return _.g.apply(this,arguments)||this};
_.S(YF,_.g);_.c=YF.prototype;_.c.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]]"}}}}}};
_.c.computeShowCta=function(v){return!(v==null||!v.ctaRenderer)};
_.c.onCtaClick=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.ctaRenderer)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.c.onWatchButtonClick=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.watchButtonRenderer)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.c.onTap=function(){};
_.c.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",YF.JSC$13155_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",YF.JSC$13155_DEFAULT_CLICK_LOCATION_BEHAVIOR,YF.JSC$13155_CLICK_LOCATION_ID_MAP),this.thumbnail)){var v=this.thumbnail.getElementsByTagName("a");v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href")}};
_.c.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var v=_.p(this.data.impressionUrls),E=v.next();!E.done;E=v.next())E=E.value,Yny(E,AVs(E));this.data.impressionsFired=!0}};
_.c.maybeComputeHref=function(){return null};
_.c.computeIsShortDR=function(v){return!(v==null||!v.watchButtonRenderer)&&!(v==null||!v.ctaRenderer)&&!!this.enableShortDR};
_.c.computeIsNewUiOrShortDr=function(v){return!!this.enableUiUpdate||this.computeIsShortDR(v)};
_.c.computeIsNewUiAndNotShortDr=function(v){return!!this.enableUiUpdate&&!this.computeIsShortDR(v)};
_.c.computeHideAvatar=function(v){return!((v==null?0:v.channelThumbnail)&&this.computeIsNewUiOrShortDr(v))};
_.c.onClick=function(v){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint;if(this.enableShortDR&&n&&(_.C(n,_.dM)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(n,v,!!_.C(n,_.dM)),v.stopPropagation();else if(n&&_.C(n,_.dM))this.ytSparklesClickLocationBehavior.handleClick(n,v,!0),v.stopPropagation();else if(n){var f,x;((f=this.data)==null?0:f.navigationEndpoint)&&((x=this.data)==null?0:x.adPlaybackContextParams)&&M0A(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(n)}};
_.c.computeButtonOverride=function(v){if(this.computeIsNewUiOrShortDr(v))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.c.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.c.onThumbnailContainerClick=function(v){this.onClick(v)};
_.c.computeThumbnailWidth=function(v,E){return v?E==="MASSIVE"?600:E==="BIG"?500:E==="MEDIUM"?450:420:360};
_.c.attached=function(){var v=this;_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.detached=function(){_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
YF.prototype.dataChanged=YF.prototype.dataChanged;YF.prototype.onTap=YF.prototype.onTap;YF.JSC$13155_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.tQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};YF.JSC$13155_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
YF.JSC$13155_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"}];_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],YF.prototype,"ytdActiveViewBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],YF.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],YF.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YF.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],YF.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_video_display_compact_button_group_for_desktop_search")}}),
_.W("design:type",Boolean)],YF.prototype,"enableShortDR",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_vac_ui_update_for_desktop_search")}}),
_.W("design:type",Boolean)],YF.prototype,"enableUiUpdate",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],YF.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.W("design:type",Boolean)],YF.prototype,"showCta",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.W("design:type",Boolean)],YF.prototype,"isShortDr",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.W("design:type",Boolean)],YF.prototype,"isShortDrOrNewUi",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.W("design:type",Boolean)],YF.prototype,"isNewUiAndNotShortDr",void 0);_.k([_.H({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],YF.prototype,"buttonOverride",void 0);_.k([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.W("design:type",Object)],YF.prototype,"secondaryButtonOverride",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],YF.prototype,"thumbnail",void 0);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YF.prototype,"onTap",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YF.prototype,"dataChanged",null);YF=_.k([_.N({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],YF);
_.u(YF,"ytd-promoted-video-renderer",function(){if(SJU!==void 0)return SJU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SJU=v},{mode:1});var UZF;var hk=function(){var v=_.g.apply(this,arguments)||this;v.useRoundedBadge=!0;v.sitelinkIds=[];return v};
_.S(hk,_.g);_.c=hk.prototype;
_.c.configureRendererStamper=function(){return{"data.menu":{id:_.Z("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]]"}}}}}};
_.c.dataChanged=function(){var v;(v=this.data)!=null&&v.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,hk.JSC$13162_CLICK_LOCATION_ID_MAP)};
_.c.onTap=function(v){var E,n=(E=this.data)==null?void 0:E.navigationCommand;n&&!_.dW(_.MQ(v),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(n,v,!1)};
_.c.onSitelinkTap=function(v){var E,n,f=v==null?void 0:(E=v.model)==null?void 0:(n=E.item)==null?void 0:n.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,v,!1)};
_.c.configureSitelinkClickTargets=function(){var v=this,E,n,f=(E=this.data)==null?void 0:(n=E.clickLocationTargets)==null?void 0:n.find(function(x){return x.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
f&&_.K(this.hostElement).querySelectorAll(".sitelink").forEach(function(x){_.Vt(x,"yt-simple-endpoint",!0);v.sitelinkIds.push(x.id);var y,Q;(y=v.ytSparklesClickLocationBehavior)==null||(Q=y.clickTargetMap)==null||Q.set(x.id,f)})};
_.c.sendImpression=function(){var v,E,n=((v=this.data)==null?void 0:(E=v.impressionCommand)==null?void 0:E.loggingUrls)||[];v=_.p(n);for(E=v.next();!E.done;E=v.next())E=E.value,E.baseUrl&&UU(E.baseUrl,E.attributionSrcMode)};
_.c.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.hK.Object.defineProperties(hk.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
hk.prototype.onTap=hk.prototype.onTap;hk.prototype.dataChanged=hk.prototype.dataChanged;hk.JSC$13162_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"]]);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],hk.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hk.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hk.prototype,"showFavicon",null);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],hk.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],hk.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.W("design:type",Boolean)],hk.prototype,"enableThumbnailScalingFix",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hk.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hk.prototype,"onTap",null);hk=_.k([_.N({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],hk);
_.u(hk,"ytd-text-image-no-button-layout-renderer",function(){if(UZF!==void 0)return UZF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return UZF=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var qJw;var Ak=function(){var v=_.g.apply(this,arguments)||this;v.isInlinePlaybackState=!1;v.uiUpdate=_.Z("web_modern_buttons");v.hideCta=_.Z("hide_cta_for_home_web_video_ads");v.noBottomMargin=!1;v.animateInTimeStamp=_.WG("hide_cta_for_home_web_video_ads_animate_in_time");v.animateInCta=!1;v.isHovered=!1;v.player=null;v.JSC$13169_playerEvents=new Map;v.JSC$13169_preventProgressSaveTimer=null;v.delayedCtaJobId=null;return v};
_.S(Ak,_.g);_.c=Ak.prototype;_.c.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]]"}}}}}};
_.c.attached=function(){this.JSC$13169_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13169_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Z("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.c.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13169_playerEvents)};
_.c.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ak.JSC$13168_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ak.JSC$13168_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.c.hoverChanged=function(){var v=this;this.delayedCtaJobId&&(_.wh.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Z("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.xa(_.wh,function(){v.buttonContainer.classList.add("show-delayed-buttons")},_.WG("delayed_cta_on_web_delay_milliseconds")))};
_.c.setPlayer=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return(E=_.kZ(v.hostElement,"yt-get-inline-preview-player-action"))&&E[0]?_.m(n,E[0].getPlayerPromise(),3):n.jumpTo(0);v.player=n.yieldResult;v.ytPlayerListenerBehavior.listenToPlayerEvents(v.player,v.JSC$13169_playerEvents);_.yQ(n)})};
_.c.onPlaybackStart=function(){var v=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13169_preventProgressSaveTimer=_.H8(_.wh,function(){v.JSC$13169_preventProgressSaveTimer=null},1E4))};
_.c.onVideoProgress=function(v){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&v>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.c.resetPreventProgressSaveTimer=function(){_.wh.cancelJob(this.JSC$13169_preventProgressSaveTimer);this.JSC$13169_preventProgressSaveTimer=null};
_.c.getSimpleString=function(v){return _.JC(v)};
_.c.onClick=function(v){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint,f;E=(f=this.data)==null?void 0:f.channelEndpoint;var x,y;(f=(y=_.C((x=this.data)==null?void 0:x.adCtaButton,_.qb))==null?void 0:y.command)&&_.dW(_.MQ(v),this.hostElement,["call-to-action"])?_.Z("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(f,v,!1):E&&_.dW(_.MQ(v),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(E,v,!1):!_.dW(_.MQ(v),this.hostElement,["secondary-button"])&&n&&(_.Z("enable_short_dr_for_desktop_launchable")?(x=!!_.C(n,_.dM),this.isInlinePlaybackState&&x&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(n,v,x)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(n,v,!0)))}};
_.c.updateWatchEndpointStartTime=function(){var v,E;this.player&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&((E=this.data)==null?0:E.navigationEndpoint)&&!this.JSC$13169_preventProgressSaveTimer&&(v=Math.floor(this.player.getCurrentTime()),_.C(this.data.navigationEndpoint,_.dM).startTimeSeconds=v,_.C(this.data.inlinePlaybackEndpoint,_.dM).startTimeSeconds=v)};
_.c.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.c.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.hK.Object.defineProperties(Ak.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Z("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.watchButton)&&!((E=this.data)==null||!E.adCtaButton)}}});
Ak.prototype.hoverChanged=Ak.prototype.hoverChanged;Ak.prototype.dataChanged=Ak.prototype.dataChanged;
Ak.JSC$13168_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"]]);
Ak.JSC$13168_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"}];
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Ak.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Ak.prototype,"ytSparklesClickLocationBehavior",void 0);
_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Ak.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ak.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"isInlinePlaybackState",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ak.prototype,"miniMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"uiUpdate",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"hideCta",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"noBottomMargin",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"animateInCta",void 0);_.k([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],Ak.prototype,"buttonOverride",void 0);
_.k([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.W("design:type",Object)],Ak.prototype,"secondaryButtonOverride",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ak.prototype,"isHovered",void 0);_.k([_.Wp("#button-container"),_.W("design:type",HTMLElement)],Ak.prototype,"buttonContainer",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ak.prototype,"typographyBump",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("typographyBump"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ak.prototype,"typographyBumpV2",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ak.prototype,"dataChanged",null);_.k([_.On("isHovered"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ak.prototype,"hoverChanged",null);
_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ak.prototype,"isButtonGroup",null);Ak=_.k([_.N({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ak);
_.u(Ak,"ytd-ad-inline-playback-meta-block",function(){if(qJw!==void 0)return qJw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return qJw=v},{mode:_.HE("kevlar_poly_si_batch_j065")?1:2});var JYS;var VZ=function(){var v=_.g.apply(this,arguments)||this;v.noBottomMargin=!1;v.isInlinePreviewTriggered=!1;v.JSC$13174_activeViewMeasurementDataResolver=_.Sw();return v};
_.S(VZ,_.g);_.c=VZ.prototype;_.c.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.c.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$13174_activeViewMeasurementDataResolver.promise.then(function(E){v.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.detached=function(){this.clearInlinePreviewHoverListeners();_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13174_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.JSC$13174_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ps4})};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$13174_inlinePreviewHoverListener)==null||iS(v)};
_.c.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$13174_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",VZ.JSC$13173_DEFAULT_CLICK_LOCATION_BEHAVIOR,VZ.JSC$13173_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"));var E;if((E=this.data)==
null?0:E.hasAutoplay){var n;(n=this.JSC$13174_inlinePreviewHoverListener)==null||iPg(n)}};
_.c.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.c.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(n,v,!!_.C(n,_.dM));v.stopPropagation()}};
_.c.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.c.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,n,f=(n=_.C((E=this.data)==null?void 0:E.onImpression,_.Tn))==null?void 0:n.commands;f&&(f.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;v.ytComponentBehavior.resolveCommand(x)}),this.data.impressionsFired=!0)}};
_.hK.Object.defineProperties(VZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$13174_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
VZ.prototype.onTypographyBumpChanged=VZ.prototype.onTypographyBumpChanged;VZ.prototype.onDataChanged=VZ.prototype.onDataChanged;VZ.JSC$13173_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);VZ.JSC$13173_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"}];
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],VZ.prototype,"ytdActiveViewBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],VZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.K4),_.W("design:type",Object)],VZ.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],VZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],VZ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],VZ.prototype,"noBottomMargin",void 0);
_.k([_.H(),_.W("design:type",Object)],VZ.prototype,"isInlinePreviewTriggered",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],VZ.prototype,"miniMode",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],VZ.prototype,"typographyBump",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],VZ.prototype,"thumbnail",void 0);_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],VZ.prototype,"JSC$13174_dismissibleMedia",void 0);
_.k([_.Wp("ytd-ad-inline-playback-meta-block"),_.W("design:type",HTMLElement)],VZ.prototype,"adInlinePlaybackMetaBlock",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VZ.prototype,"onDataChanged",null);_.k([_.Tw("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VZ.prototype,"onTypographyBumpChanged",null);
_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VZ.prototype,"isHovered",null);VZ=_.k([_.N({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],VZ);
_.u(VZ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(JYS!==void 0)return JYS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JYS=v},{mode:1});var KB4;var Dt=function(){var v=_.g.apply(this,arguments)||this;v.isInlinePreviewTriggered=!1;v.JSC$13177_activeViewMeasurementDataResolver=_.Sw();return v};
_.S(Dt,_.g);_.c=Dt.prototype;_.c.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.c.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$13177_activeViewMeasurementDataResolver.promise.then(function(E){v.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)})};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13177_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.JSC$13177_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ps4})};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$13177_inlinePreviewHoverListener)==null||iS(v)};
_.c.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$13177_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Dt.JSC$13176_DEFAULT_CLICK_LOCATION_BEHAVIOR,Dt.JSC$13176_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"))};
_.c.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(n,v,!0);v.stopPropagation()}};
_.c.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.c.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,n,f=(n=_.C((E=this.data)==null?void 0:E.onImpression,_.Tn))==null?void 0:n.commands;f&&(f.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.P().resolve(_.OO).resolveCommand(x,{form:{element:v.hostElement}})}),this.data.impressionsFired=!0)}};
_.hK.Object.defineProperties(Dt.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$13177_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Dt.prototype.onDataChanged=Dt.prototype.onDataChanged;Dt.JSC$13176_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Dt.JSC$13176_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"}];_.k([_.h(sq),_.W("design:type",Object)],Dt.prototype,"ytdActiveViewBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Dt.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],Dt.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Dt.prototype,"ytdReduxBehavior",void 0);
_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Dt.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dt.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Dt.prototype,"isInlinePreviewTriggered",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],Dt.prototype,"miniMode",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],Dt.prototype,"thumbnail",void 0);
_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],Dt.prototype,"JSC$13177_dismissibleMedia",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Dt.prototype,"onDataChanged",null);_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Dt.prototype,"isHovered",null);Dt=_.k([_.N({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Dt);
_.u(Dt,"ytd-video-display-full-buttoned-renderer",function(){if(KB4!==void 0)return KB4;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return KB4=v},{mode:1});var vj=function(v,E,n,f){f=f===void 0?!1:f;_.vI.call(this,v);this.adsClientErrorMessage=n;this.aggressivelySample=f;this.args=[];E&&this.args.push(E)};
_.S(vj,_.vI);var tF=function(v,E,n,f){f=f===void 0?!1:f;_.vI.call(this,v);this.adsClientErrorMessage=n;this.aggressivelySample=f;this.args=[];E&&this.args.push(E)};
_.S(tF,_.vI);var dZz=function(v){_.QK.call(this);var E=this;this.initializationFunction=v;this.instance=null;this.addOnDisposeCallback(function(){_.uU(E.instance);E.instance=null})};
_.S(dZz,_.QK);dZz.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.$a("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var k$s=function(){var v=new Map;[].forEach(function(E){v.set(E.JSC$26700_getType(),E)})};new Promise(function(){});var gW1=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"]]),DZ$=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"}]]),I0o=function(v){this.experimentApiProvider=v;v=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=v<.1};var H$=function(v,E,n,f){_.QK.call(this);this.adsControlFlowEventListeners=E;this.adEventLogger=n;this.experimentApiProvider=f;this.adsControlFlowManagerHelper=v(this,this,this,this,this);_.BV(this,this.adsControlFlowManagerHelper);v=_.p(E);for(E=v.next();!E.done;E=v.next())_.BV(this,E.value)};
_.S(H$,_.QK);var YJS=function(v,E,n,f){gI(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",E,n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f);v=_.p(v.adsControlFlowEventListeners);for(f=v.next();!f.done;f=v.next())YJS(f.value,E,n)};
_.c=H$.prototype;_.c.onOpportunityProcessedExternallyManaged=function(v,E,n,f){gI(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",v,n,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)};
_.c.onSlotReceivedExternallyManaged=function(v,E){NU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",v,E)};
_.c.onSlotEntered=function(v){if(uO(this.adsControlFlowManagerHelper,v)!=null){NU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",v);this.adsControlFlowManagerHelper.onSlotEntered(v);for(var E=_.p(this.adsControlFlowEventListeners),n=E.next();!n.done;n=E.next())n.value.onSlotEntered(v);if(uO(this.adsControlFlowManagerHelper,v)!=null&&uO(this.adsControlFlowManagerHelper,v).isOccupyingSlotType()&&j6(this.adsControlFlowManagerHelper,v)&&!hX1(this.adsControlFlowManagerHelper,v)){var f;OA(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",v,(f=j6(this.adsControlFlowManagerHelper,v))!=null?f:void 0);v=uO(this.adsControlFlowManagerHelper,v);v.slotLifecycleStage!=="entered"&&kF(v.slot,v.slotLifecycleStage,"enterLayoutForSlot");v.slotLifecycleStage="rendering";v.registeredLayoutRenderingAdapter.startRendering(v.layout)}}};
_.c.onSlotExited=function(v){if(uO(this.adsControlFlowManagerHelper,v)!=null){NU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",v);this.adsControlFlowManagerHelper.onSlotExited(v);for(var E=_.p(this.adsControlFlowEventListeners),n=E.next();!n.done;n=E.next())n.value.onSlotExited(v);uO(this.adsControlFlowManagerHelper,v)!=null&&uO(this.adsControlFlowManagerHelper,v).markedForUnscheduleAfterOutboundAdapterRequests&&AYX(this,v)}};
_.c.onLayoutReceivedExternallyManaged=function(v,E,n){v.managerLayer!=="core"&&OA(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",v,E,n)};
var Vml=function(v,E,n){if(uO(v.adsControlFlowManagerHelper,E)!=null){OA(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,n);v=_.p(v.adsControlFlowEventListeners);for(var f=v.next();!f.done;f=v.next())Vml(f.value,E,n)}};
H$.prototype.onLayoutExited=function(v,E,n){if(uO(this.adsControlFlowManagerHelper,v)!=null){OA(this.adEventLogger,H$N(n),v,E);this.adsControlFlowManagerHelper.onLayoutExited(v,E);for(var f=_.p(this.adsControlFlowEventListeners),x=f.next();!x.done;x=f.next())x.value.onLayoutExited(v,E,n);(n=j6(this.adsControlFlowManagerHelper,v))&&E.layoutId===n.layoutId&&DZF(this,v)}};
H$.prototype.disposeInternal=function(){var v=H$1(this.adsControlFlowManagerHelper);v=_.p(v);for(var E=v.next();!E.done;E=v.next())AYX(this,E.value);_.QK.prototype.disposeInternal.call(this)};
var AYX=function(v,E){if(uO(v.adsControlFlowManagerHelper,E)!=null)if(uO(v.adsControlFlowManagerHelper,E).JSC$26731_isSlotExitRequested()||uO(v.adsControlFlowManagerHelper,E).JSC$26731_isLayoutExitRequested())uO(v.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(uO(v.adsControlFlowManagerHelper,E).isOccupyingSlotType())uO(v.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0,DZF(v,E);else if(uO(v.adsControlFlowManagerHelper,E).JSC$26731_isSlotFillRequested())uO(v.adsControlFlowManagerHelper,
E).markedForUnscheduleAfterOutboundAdapterRequests=!0,uO(v.adsControlFlowManagerHelper,E)!=null&&(NU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",E),E=uO(v.adsControlFlowManagerHelper,E),E.fulfillmentLifecycleStage="fill_cancel_requested",E.registeredFulfillmentAdapter.cancelSlotFilling());else{var n=j6(v.adsControlFlowManagerHelper,E),f;v.experimentApiProvider.get();(f=_.Z("h5_enable_layout_unscheduling_events"))&&(n?gWl(v,E,n):_.$a(Error("Hh"),E,n,void 0,!1));NU(v.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",E);var x=uO(v.adsControlFlowManagerHelper,E),y=E.slotEntryTrigger,Q=x.registeredSlotEntryTriggerAdapters.get(y.triggerId);Q&&(Q.unregisterTrigger(y),x.registeredSlotEntryTriggerAdapters.delete(y.triggerId));y=_.p(E.slotFulfillmentTriggers);for(Q=y.next();!Q.done;Q=y.next()){Q=Q.value;var e=x.registeredFulfillmentTriggerAdapters.get(Q.triggerId);e&&(e.unregisterTrigger(Q),x.registeredFulfillmentTriggerAdapters.delete(Q.triggerId))}y=_.p(E.slotExpirationTriggers);
for(Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,e=x.registeredExpirationTriggerAdapters.get(Q.triggerId))e.unregisterTrigger(Q),x.registeredExpirationTriggerAdapters.delete(Q.triggerId);x.hasLayout()&&(y=x.layout,W$(x,y.layoutExitNormalTriggers),W$(x,y.layoutExitSkipTriggers),W$(x,y.layoutExitMuteTriggers),W$(x,y.layoutExitUserInputSubmittedTriggers),W$(x,y.layoutExitUserCancelledTriggers));x.registeredFulfillmentAdapter=void 0;x.registeredSlotAdapter!=null&&(x.registeredSlotAdapter.release(),x.registeredSlotAdapter=
void 0);x.registeredLayoutRenderingAdapter!=null&&(x.registeredLayoutRenderingAdapter.release(),x.registeredLayoutRenderingAdapter=void 0);x=v.adsControlFlowManagerHelper;uO(x,E)&&(x=N0g(x,E.slotType+"_"+E.slotPhysicalPosition))&&x.delete(E.slotId);NU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);v=_.p(v.adsControlFlowEventListeners);for(x=v.next();!x.done;x=v.next())x=x.value,x.onSlotUnscheduled(E),n&&!f&&gWl(x,E,n)}},gWl=function(v,E,n){OA(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
E,n);
OA(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",E,n);v=_.p(v.adsControlFlowEventListeners);for(var f=v.next();!f.done;f=v.next())f=f.value,n&&gWl(f,E,n)},DZF=function(v,E){if(uO(v.adsControlFlowManagerHelper,E)!=null&&uO(v.adsControlFlowManagerHelper,E).isOccupyingSlotType()){var n=j6(v.adsControlFlowManagerHelper,E);
if(n&&hX1(v.adsControlFlowManagerHelper,E)){if(uO(v.adsControlFlowManagerHelper,E)!=null){var f=v.adEventLogger,x;var y=((x=DZ$.get("abandoned"))==null?void 0:x.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";OA(f,y,E,n);v=uO(v.adsControlFlowManagerHelper,E);v.slotLifecycleStage!=="rendering"&&kF(v.slot,v.slotLifecycleStage,"exitLayout");v.slotLifecycleStage="rendering_stop_requested";v.registeredLayoutRenderingAdapter.stopRendering(n,"abandoned")}}else{NU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
E);try{f=uO(v.adsControlFlowManagerHelper,E);if(!f)throw new tF("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");f.slotLifecycleStage!=="enter_requested"&&f.slotLifecycleStage!=="entered"&&f.slotLifecycleStage!=="rendering"&&kF(f.slot,f.slotLifecycleStage,"exitSlot");f.slotLifecycleStage="exit_requested";if(f.registeredSlotAdapter===void 0)throw f.slotLifecycleStage="scheduled",new tF("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
f.registeredSlotAdapter.exit()}catch(Q){Q instanceof tF&&Q.adsClientErrorMessage?(uno(v.adEventLogger,Q.adsClientErrorMessage,E),_.$a(Q,E,void 0,void 0,Q.aggressivelySample)):(uno(v.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",E),_.$a(Q,E))}}}};var $F=function(v,E,n,f,x,y){_.QK.call(this);this.registry=v;this.experimentApiProvider=y;this.slotMap=new Map};
_.S($F,_.QK);var N0g=function(v,E){return(v=v.slotMap.get(E))?v:new Map},uO=function(v,E){return N0g(v,E.slotType+"_"+E.slotPhysicalPosition).get(E.slotId)},H$1=function(v){var E=[];
v.slotMap.forEach(function(n){n=_.p(n.values());for(var f=n.next();!f.done;f=n.next())E.push(f.value.slot)});
return E};
$F.prototype.onSlotEntered=function(v){v=uO(this,v);v.slotLifecycleStage!=="enter_requested"&&kF(v.slot,v.slotLifecycleStage,"onSlotEntered");v.slotLifecycleStage="entered"};
var hX1=function(v,E){v=uO(v,E);return v.hasLayout()&&v.isRendering()},j6=function(v,E){(v=uO(v,E))?v.hasLayout()&&!v.layout&&_.$a("Unexpected empty layout",E):_.$a("Unexpected undefined slotState",E);
return(v==null?void 0:v.layout)||null};
$F.prototype.onSlotExited=function(v){v=uO(this,v);v.slotLifecycleStage!=="exit_requested"&&kF(v.slot,v.slotLifecycleStage,"onSlotExited");v.slotLifecycleStage="scheduled"};
$F.prototype.onLayoutExited=function(v,E){v=uO(this,v);v.isPrimaryLayout(E)&&(v.slotLifecycleStage!=="rendering_stop_requested"&&kF(v.slot,v.slotLifecycleStage,"onLayoutExited"),v.slotLifecycleStage="entered")};
var W$=function(v,E){E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=v.registeredLayoutExitTriggerAdapters.get(n.triggerId);f&&(f.unregisterTrigger(n),v.registeredLayoutExitTriggerAdapters.delete(n.triggerId))}},kF=function(v,E,n){_.$a("Slot stage was "+E+" when calling method "+n,v)};var O$i=function(v){_.QK.call(this);this.deps=v;this.JSC$13226_adsControlFlowManager=jzU(this)};
_.S(O$i,_.QK);var jzU=function(v){var E=new H$(function(n,f,x,y){return new $F(v.deps.registry,n,f,x,y,v.deps.experimentApiProvider)},new Set(O$F(v.deps.registry).concat(v.deps.listeners)),v.deps.adEventLogger,v.deps.experimentApiProvider);
_.BV(v,E);return E};var k$S=function(v,E){_.QK.call(this);this.experimentApiProvider=v;this.eventLoggingSettingsProvider=E;this.eventCount=0};
_.S(k$S,_.QK);k$S.prototype.logEvent=function(v){gI(this,v)};
var NU=function(v,E,n,f){gI(v,E,void 0,void 0,void 0,n,void 0,void 0,void 0,n.adSlotLoggingData,void 0,void 0,f)},OA=function(v,E,n,f,x){gI(v,E,void 0,void 0,void 0,n,f?f:void 0,void 0,void 0,n.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,void 0,x)},uno=function(v,E,n){gI(v,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,n,void 0,void 0,void 0,n.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:E})},gI=function(v,E,n,f,x,y,Q,e,F,b,l,r,a){a=a===void 0?0:a;
WBP(v.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"slot:",y,"layout:",Q,"ping:",e,"Opportunity:",{opportunityType:n,associatedSlotId:f,slotsFromOpportunity:x,triggerBundle:F,adSlotLoggingData:b,adLayoutLoggingData:l});try{var M=function(){v.experimentApiProvider.get();if(E!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){E||_.$a("Empty PACF event type",y,Q);var U=v.eventLoggingSettingsProvider.get();var d;(d=U.alwaysIncludeDebugData)||(U.experimentApiProvider.get(),d=
!1);U=d;d={eventType:E,eventOrder:++v.eventCount};var Y={};y&&(Y.slotData=un9(U,y));if(Q){var V={type:Q.layoutType,controlFlowManagerLayer:gW1.get(Q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U&&(V.debugData={layoutId:Q.layoutId});Y.layoutData=V}e&&(Y.pingData={pingDispatchStatus:e.dispatchStatus,serializedAdPingMetadata:e.ping.serializedAdPingMetadata,pingIndex:e.index});F&&(Y.triggerData=N0X(F.trigger,F.category));n&&(Y.opportunityData=jzI(U,n,f,x));d.adClientData=Y;b&&(d.serializedSlotAdServingData=
b.serializedSlotAdServingDataEntry);l&&(d.serializedAdServingData=l.serializedAdServingDataEntry);r&&(d.errorInfo=r);_.eQ("adsClientStateChange",{adsClientEvent:d})}};
a&&a>0?_.cP(_.Ce(),function(){return M()},a):M()}catch(U){WBP(v.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.cP(_.Ce(),function(){_.$a(U instanceof Error?U:String(U),y,Q,{pacf_message:"exception during pacf logging"})})}};var $Z4=function(v,E){k$S.call(this,v,E)};
_.S($Z4,k$S);var LBo=function(){},WBP=function(v,E){return _.Z(E)};var T0o=function(){var v=new G$P;this.JSC$13245_adsControlFlowManager=(new O$i(v)).JSC$13226_adsControlFlowManager},G$P=function(){_.QK.call(this);
var v=this;this.experimentApiProvider=new dZz(function(){return new LBo});
var E=new dZz(function(){return new I0o(v.experimentApiProvider)});
this.adEventLogger=new $Z4(this.experimentApiProvider,E);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.S(G$P,_.QK);var i$g=function(){},zX1,LX=function(){zX1||(zX1=new i$g);
return zX1},Gm=function(v){if(!v.JSC$13256_externallyManagedSlotAdapterCallback){var E=(new T0o).JSC$13245_adsControlFlowManager;
v.JSC$13256_externallyManagedSlotAdapterCallback=E}return v.JSC$13256_externallyManagedSlotAdapterCallback},RX1=function(v,E,n){var f=E.opportunityType,x=Error("Ih");
if(f!==void 0){var y=Gm(v);YJS(y,f,void 0,n)}else _.$a(x,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});y=[];if(E.adSlotAndLayoutMetadata!==void 0){E=_.p(E.adSlotAndLayoutMetadata);for(var Q=E.next();!Q.done;Q=E.next()){var e=Q.value;if(Q=e.adSlotMetadata)if(y.push(Q),v.onSlotReceivedExternallyManaged(Q,n),e.adLayoutMetadata){e=_.p(e.adLayoutMetadata);for(var F=e.next();!F.done;F=e.next())v.onLayoutReceivedExternallyManaged(Q,F.value,n)}else n>0&&_.$a("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else n>0&&_.$a("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else n>0&&_.$a("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(f!==void 0)v.onOpportunityProcessedExternallyManaged(f,y,void 0,n);else _.$a(x,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
i$g.prototype.onSlotReceivedExternallyManaged=function(v,E){v=BT(v);if(v instanceof tF)_.$a(v,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Gm(this).onSlotReceivedExternallyManaged(v,E)};
i$g.prototype.onLayoutReceivedExternallyManaged=function(v,E,n){v=BT(v);E=WBE(E);if(v instanceof tF)_.$a(v,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(E instanceof vj)_.$a(E,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Gm(this).onLayoutReceivedExternallyManaged(v,E,n)};
i$g.prototype.onOpportunityProcessedExternallyManaged=function(v,E,n,f){var x=[];E=_.p(E);for(var y=E.next();!y.done;y=E.next())y=BT(y.value),y instanceof tF?_.$a(y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):x.push(y);Gm(this).onOpportunityProcessedExternallyManaged(v,x,n,f)};
var tm4=function(v,E){E=BT(E);if(E instanceof tF)_.$a(E,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var n=Gm(v);NU(n.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",E);n=_.p(n.adsControlFlowEventListeners);for(var f=n.next();!f.done;f=n.next())f=uO(f.value,E),f.slotLifecycleStage!=="not_scheduled"&&kF(f.slot,f.slotLifecycleStage,"onSlotScheduled"),f.slotLifecycleStage="scheduled";v=Gm(v);NU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",E);v=_.p(v.adsControlFlowEventListeners);
for(n=v.next();!n.done;n=v.next())n.value.onSlotEntered(E)}},B0P=function(v,E){E=BT(E);
if(E instanceof tF)_.$a(E,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var n=Gm(v);NU(n.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",E);n=_.p(n.adsControlFlowEventListeners);for(var f=n.next();!f.done;f=n.next())f.value.onSlotExited(E);v=Gm(v);NU(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);v=_.p(v.adsControlFlowEventListeners);for(n=v.next();!n.done;n=v.next())n.value.onSlotUnscheduled(E)}},v4X=function(v,E,n){E=BT(E);
n=WBE(n);if(E instanceof tF)_.$a(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(n instanceof vj)_.$a(n,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var f=Gm(v);OA(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",E,n);f=_.p(f.adsControlFlowEventListeners);for(var x=f.next();!x.done;x=f.next())x.value.onLayoutScheduled(E,n);v=Gm(v);OA(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,n);v=_.p(v.adsControlFlowEventListeners);
for(f=v.next();!f.done;f=v.next())Vml(f.value,E,n)}},Tm=function(v,E,n){E=BT(E);
n=WBE(n);if(E instanceof tF)_.$a(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(n instanceof vj)_.$a(n,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var f=Gm(v);OA(f.adEventLogger,H$N("normal"),E,n);f=_.p(f.adsControlFlowEventListeners);for(var x=f.next();!x.done;x=f.next())x.value.onLayoutExited(E,n,"normal");v=Gm(v);v=_.p(v.adsControlFlowEventListeners);for(f=v.next();!f.done;f=v.next())gWl(f.value,E,n)}};_.iO=_.qu(function(v){var E=_.Ue(v,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});v=Object.assign({},E);var n=E.data;E=E.customCommandResolver;var f=(delete v.data,delete v.customCommandResolver,v),x=_.Ig();_.Nl(x,function(){return n().interaction},E,function(){var e;
return(e=f.listenToTapEvent)==null?void 0:e.call(f)});
_.gt(x,{visibilityCallback:function(e){var F,b=(F=n().interaction)==null?void 0:F.onFirstVisible;e&&(b&&_.lj(b),f.setOnErrorHandler()&&$Zy(x))},
showOption:_.VL});v=_.p(_.t7(!1,void 0,"eiYvIe"));var y=v.next().value,Q=v.next().value;v=_.ij(function(){var e;((e=f.setTouchEndHandler)==null?0:e.call(f))&&!y()&&(x.value.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1});
return _.w("ad-image-view-model",{class:function(){var e,F=[((e=n().interaction)==null?0:e.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],b;((b=f.isGridViewEnabled)==null?0:b.call(f))&&F.push("ytwAdImageViewModelHostInGridView");return F.join(" ")},
el:x,"on:touchend":v},_.w("div",{class:"ytwAdImageViewModelHostImageContainer"},_.w(_.UZ,{data:function(){var e;return{sources:n().imageSources,contentMode:(e=n().imageProperties)==null?void 0:e.contentMode}},
alt:function(){var e,F;return((e=n().interaction)==null?void 0:(F=e.accessibility)==null?void 0:F.label)||""},
targetHeight:f.targetHeight,targetWidth:f.targetWidth,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,useWidth:f.useWidth,style:function(){var e,F;return"vertical-align: bottom;"+(((e=n().background)==null?0:e.color)?"background-color:"+_.p2((F=n().background)==null?void 0:F.color)+";":"")},
className:function(){return f.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var e,F;return(F=(e=f.setDraggable)==null?void 0:e.call(f))!=null?F:void 0}})))},"cb");var E4S=_.qu(function(v){var E=v.data,n=v.listenToTapEvent,f=_.Ig();_.Z("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Nl(f,function(){return E().interaction},void 0,function(){return n==null?void 0:n()});
_.gt(f,{visibilityCallback:function(y){var Q,e=(Q=E().interaction)==null?void 0:Q.onFirstVisible;y&&e&&_.lj(e)},
showOption:_.VL});v=_.ij(function(){if(_.Z("enable_web_home_top_landscape_image_layout_legacy_click_command")){var y,Q=(y=E().interaction)==null?void 0:y.onTap;Q&&_.jK(f.value,"yt-navigate",{endpoint:_.F$(Q)})}});
var x=function(){};
return _.w("ad-button-hover-overlay-view-model",{"on:click":v,class:function(){var y;return((y=E().interaction)==null?0:y.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:f},function(){return _.Z("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.w(_.mI,{data:function(){return E().button}},{adButtonViewModel:function(y){return _.w(_.HB,{data:y.data,
customCommandResolver:x})}}):_.w(_.mI,{data:function(){return E().button}},{adButtonViewModel:_.HB})}())},"db");var E_;_.Yz(_.qu(function(v){var E=v.data;var n=_.Ig();_.Z("stop_av_measurement_on_detach")&&_.Fp(function(){oV(n)});
_.Nl(n,function(){return E().interaction},void 0,function(){return!0});
_.gt(n,{visibilityCallback:function(Q){if(Q){var e;(Q=(e=E().interaction)==null?void 0:e.onFirstVisible)&&_.lj(Q);var F;if(e=(F=E().adLayoutData)==null?void 0:F.activeViewData)nU(n,e),_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oV(n)})}else _.Z("stop_av_measurement_on_detach")&&oV(n)},
showOption:_.VL,hideOption:DK});v=_.p(_.t7(!1,void 0,"yzu6qe"));var f=v.next().value,x=v.next().value;v=_.ij(function(){x(!0)});
var y=_.ij(function(){x(!1)});
return _.w("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:n,"on:mouseenter":v,"on:mouseleave":y},_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.tZ({"max-width":function(){return _.Z("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.w("div",{class:function(){var Q;
a:{var e;switch((Q=_.C(E().thumbnailImage,wR))==null?void 0:(e=Q.imageProperties)==null?void 0:e.renderingAspect){case "RENDERING_ASPECT_SQUARE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Q=void 0}return Q}},_.w(_.mI,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(Q){return _.w(_.iO,
{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.Z("enable_top_landscape_image_experiment_dom_id_web")})}})),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.x6,{cond:function(){var Q,e,F;
return(Q=_.C(E().thumbnailImage,wR))==null?void 0:(e=Q.imageProperties)==null?void 0:(F=e.overlayIcon)==null?void 0:F.iconImage},
then:function(Q){return _.w(_.UZ,{data:Q,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.w("div",{class:function(){return f()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.w(_.mI,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Q){return _.w(E4S,
{data:Q.data,
listenToTapEvent:!0})}}))),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.w(_.mI,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.w(mLw,{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.Z("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=_.Ig();_.Z("stop_av_measurement_on_detach")&&_.Fp(function(){oV(n)});
var f=_.mc(_.SS);_.Nl(n,function(){return E().interaction});
_.gt(n,{visibilityCallback:function(b){if(b){var l;(b=(l=E().interaction)==null?void 0:l.onFirstVisible)&&_.lj(b);var r;if(l=(r=E().adLayoutData)==null?void 0:r.activeViewData)nU(n,l),_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oV(n)})}else _.Z("stop_av_measurement_on_detach")&&oV(n)},
showOption:_.VL,hideOption:DK});var x=_.ij(function(b){var l,r,a=(l=_.C(E().adImage,wR))==null?void 0:(r=l.interaction)==null?void 0:r.onTap;a&&(_.Z("enable_square_image_components_ui_web_with_custom_event")?_.jK(n.value,"yt-navigate",{endpoint:_.F$(a)}):cBF(b,a))}),y=_.ij(function(){var b,l,r=(b=_.C(E().adButton,fb1))==null?void 0:(l=b.interaction)==null?void 0:l.onTap;
r&&_.jK(n.value,"yt-navigate",{endpoint:_.F$(r)})}),Q=function(){};
v={};var e={},F={};return _.w("square-image-layout-view-model",{class:_.W8("ytwSquareImageLayoutViewModelHost",(v.ytwSquareImageLayoutViewModelHostColumn=f,v)),el:n},_.w("div",{class:_.W8("ytwSquareImageLayoutViewModelHostImage",(e.ytwSquareImageLayoutViewModelHostColumnImage=f,e))},function(){return _.Z("enable_square_image_components_ui_web_with_native_img")?_.w("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var b,l,r;return((b=_.C(E().adImage,wR))==null?void 0:(l=b.imageSources)==
null?void 0:(r=l[0])==null?void 0:r.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":x}):_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(b){return _.w(_.iO,{data:b.data,
isGridViewEnabled:f,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.w("div",{class:_.W8("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(F.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=f,F))},_.w(_.mI,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:mLw}),function(){return _.Z("enable_square_image_components_ui_web_with_float_button")?_.w("div",{"on:click":y},_.w(_.mI,{data:function(){return E().adButton}},
{adButtonViewModel:function(b){var l={};
return _.w(_.HB,{data:b.data,customCommandResolver:Q,className:_.W8((l.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,l.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=f,l))})}})):_.w(_.mI,{data:function(){return E().adButton}},{adButtonViewModel:function(b){var l={};
return _.w(_.HB,{data:b.data,className:_.W8((l.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,l.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=f,l))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=v.noBottomMargin;var f=v.typographyBump;var x=_.Ig();_.Z("stop_av_measurement_on_detach")&&_.Fp(function(){oV(x)});
_.Z("enable_web_home_top_landscape_image_layout_level_click")&&_.Nl(x,function(){return E().interaction},void 0,function(){return!0});
v=function(){return E().interaction};
v!==void 0&&v!==null||_.Kk(Error("Jh"));_.gt(x,{visibilityCallback:function(l){if(l){var r;(l=(r=E().interaction)==null?void 0:r.onFirstVisible)&&_.lj(l);var a;if(r=(a=E().adLayoutData)==null?void 0:a.activeViewData)nU(x,r),_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oV(x)})}else _.Z("stop_av_measurement_on_detach")&&oV(x)},
showOption:_.VL,hideOption:DK});var y=function(){var l,r,a;return(l=_.C(E().thumbnailImage,wR))==null?void 0:(r=l.background)==null?void 0:(a=r.backgroundImageSource)==null?void 0:a.imageSources};
v=_.p(_.t7(!1,void 0,"GIwTMc"));var Q=v.next().value,e=v.next().value;v=_.ij(function(){e(!0)});
var F=_.ij(function(){e(!1)}),b=function(){return Q()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.w("top-landscape-image-layout-view-model",{class:function(){var l;return((l=E().interaction)==null?0:l.onTap)&&_.Z("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:x,"on:mouseenter":v,"on:mouseleave":F},_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.w(_.x6,{cond:function(){return y()&&y().length>0},
then:function(){return _.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.tZ({top:"0","background-image":function(){return"url("+String(y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.w(_.x6,{cond:function(){return!!E().adButtonHoverOverlay},
then:function(){return _.w("div",{class:b},_.w(_.mI,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:E4S}))}}),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.w(_.mI,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(l){return _.w(_.iO,{data:l.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Z("enable_web_home_top_landscape_image_layout_level_click")})}})),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.UZ,{data:{sources:[{clientResource:{imageName:_.Z("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.w(_.mI,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(l){return _.w(mLw,{data:l.data,
noBottomMargin:function(){return n==null?void 0:n()},
listenToTapEvent:function(){return _.Z("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return f==null?void 0:f()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.Kt,
noBottomMargin:_.Kt,typographyBump:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=v.typographyBump;var f=_.Ig();_.Z("stop_av_measurement_on_detach")&&_.Fp(function(){oV(f)});
_.gt(f,{visibilityCallback:function(x){if(x){var y;(x=(y=E().interaction)==null?void 0:y.onFirstVisible)&&_.lj(x);var Q;if(y=(Q=E().adLayoutData)==null?void 0:Q.activeViewData)nU(f,y),_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oV(f)})}else _.Z("stop_av_measurement_on_detach")&&oV(f)},
showOption:_.VL,hideOption:DK});return _.w("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:f},_.w("div",null,_.w(_.mI,{data:function(){return E().videoLockup}},{lockupViewModel:function(x){return _.w(_.kx,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:n})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.Kt,
noBottomMargin:_.Kt,typographyBump:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=v.typographyBump;var f=_.Ig();_.Z("stop_av_measurement_on_detach")&&_.Fp(function(){oV(f)});
_.gt(f,{visibilityCallback:function(x){if(x){var y;(x=(y=E().interaction)==null?void 0:y.onFirstVisible)&&_.lj(x);var Q;if(y=(Q=E().adLayoutData)==null?void 0:Q.activeViewData)nU(f,y),_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oV(f)})}else _.Z("stop_av_measurement_on_detach")&&oV(f)},
showOption:_.VL,hideOption:DK});return _.w("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:f},_.w("div",null,_.w(_.mI,{data:function(){return E().videoLockup}},{lockupViewModel:function(x){return _.w(_.kx,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:n})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.Kt,
noBottomMargin:_.Kt,typographyBump:_.Kt}});_.n4l=_.qu(function(v){var E=v.data;v=_.Ig();return _.w("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:v},_.w(_.x6,{cond:function(){return E().imageBadge},
then:function(n){return _.w(_.UZ,{data:n,alt:""})}}))},"jb");var o4g=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});return _.w("carousel-ad-card-image-view-model",{class:function(){var f;return((f=E().interaction)==null?0:f.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:v,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(f){return _.w(_.iO,{data:f.data,
customCommandResolver:n})}}),_.w("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.w(_.mI,{data:function(){return E().badge}},{adCardBadgeViewModel:_.n4l})),_.w(_.oX,{model:{color:4}}))},"kb");var fZS=_.qu(function(v){var E=_.p(_.t7(0,void 0,"o9Bzd")),n=E.next().value;E.next();var f=E.next().value,x=_.p(_.t7(!1,void 0,"KLdzYe"));E=x.next().value;var y=x.next().value,Q;_.Fp(function(){clearTimeout(Q)});
x=_.ij(function(){var b;((b=v.animate)==null?0:b.call(v))?(y(!0),Q=setTimeout(function(){y(!1);e()},200)):e();
return!1});
var e=function(){f(function(b){return(b+v.numShownItems())%v.data().length})},F={};
return _.w("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.w("div",{class:_.W8("ytwHorizontalCarouselCarouselWrapper")},_.w("div",{class:_.W8("ytwHorizontalCarouselCarouselInnerWrapper",(F.ytwHorizontalCarouselAnimating=E,F))},_.w(_.cG,{each:v.data,keyBy:"INDEX"},function(b,l){return _.w("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.tZ({"flex-basis":function(){return"calc((100% - (8px * "+(v.numShownItems()-1)+")) / "+v.numShownItems()+")"},
order:function(){var r=l-n();r<0&&(r+=v.data().length);return r}})},v.children(b,l))}))),_.w("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":x},v.nextButton()))},"lb");var xJS=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;var f=v.expansive;v=_.Ig();_.gt(v,{visibilityCallback:function(x){var y,Q=(y=E().interaction)==null?void 0:y.onFirstVisible;x&&Q&&_.lj(Q)},
showOption:_.VL});return _.w("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:v},_.w(fZS,{data:function(){var x;return((x=E())==null?void 0:x.carouselAdCards)||[]},
nextButton:function(){return _.w(_.mI,{data:function(){return E().nextButton}},{buttonViewModel:function(x){var y=x.data;
return _.w(_.C7,{data:function(){return(f==null?0:f())?Object.assign({},y(),{style:"mono"}):y()},
className:_.Z("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(x){return _.w(_.mI,{data:x},{carouselAdCardImageViewModel:function(y){return _.w(o4g,{data:y.data,customCommandResolver:n})}})}))},"mb");var cio=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;var f=v.className;var x=v.buttonClassName;var y=v.animationEntityKey;var Q=v.expansive;return _.w("carousel-button-view-model",{class:_.W8("ytwCarouselButtonViewModelHost",f)},_.w(_.mI,{data:function(){return E().carousel}},{carouselAdCardCollectionViewModel:function(e){return _.w(xJS,{data:e.data,
customCommandResolver:n,expansive:Q})}}),_.w(_.mI,{data:function(){return E().button}},{adButtonViewModel:function(e){var F=e.data;
return _.w(_.HB,{data:function(){return(Q==null?0:Q())?Object.assign({},F(),{style:"AD_BUTTON_STYLE_TONAL"}):F()},
className:x,customCommandResolver:n,animationEntityKey:y})}}))},"nb");_.yil=_.qu(function(v){var E=v.data;v=v.className;var n=_.Ig();_.l5(function(){var f;((f=E())==null?0:f.backgroundColor)&&n.value.setAttribute("data-background-color",String(E().backgroundColor))});
return _.w("pivot-button-view-model",{el:n,class:_.W8("ytwPivotButtonViewModelHost",v)},_.w(_.Ed,{command:function(){var f=E();f=f.onClickCommand?_.F$(f.onClickCommand):f.contentDescription?_.AC(f.contentDescription):void 0;return f},
ariaLabel:function(){return E().contentDescription}},_.w(_.x6,{cond:function(){return E().thumbnail},
then:function(f){return _.w(_.UZ,{data:f,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.w(_.x6,{cond:function(){return E().icon},
then:function(f){return _.w(_.B8,{icon:function(){return f().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.p46=_.qu(function(v){var E=v.data;var n=v.buttonShapeOverrideables;return _.w("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.w(_.mI,{data:function(){return E().buttonViewModels}},{buttonViewModel:function(f){return _.w(_.C7,{data:f.data,
buttonOverrides:n})},
likeButtonViewModel:function(f){return _.w(_.ld,{data:f.data,buttonShapeOverrideables:n})},
dislikeButtonViewModel:function(f){return _.w(_.bd,{data:f.data,buttonShapeOverrideables:n})}}))},"pb");var QIg=_.qu(function(v){var E=v.avatar;var n=v.headline;var f=v.badge;var x=v.description;var y=v.expansive;v={};return _.w("yt-ad-metadata-shape",{class:_.W8("ytAdMetadataShapeHost",(v.ytAdMetadataShapeHostLarge=y,v))},_.w("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.w(_.x6,{cond:E,then:function(Q){return _.w(_.Q8X,{data:function(){return(y==null?0:y())?Object.assign({},Q(),{size:"AD_AVATAR_SIZE_MPLUS"}):Q()}})}}),_.w("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.w(_.nh,{text:n,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.w(_.x6,{cond:f,then:function(Q){return _.w(_.jz,{data:function(){return(y==null?0:y())?Object.assign({},Q(),{style:"AD_BADGE_STYLE_STARK"}):Q()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.w("h2",{class:"ytAdMetadataShapeHostDescription"},_.w(_.nh,{text:x,
linkInheritColor:!0})))},"qb");var X4U=_.qu(function(v){var E=v.data;var n=v.onShow;var f=v.expansive;v=_.Ig();_.Nl(v,function(){return E().interaction});
_.l5(function(){var y,Q=(y=E().animatedRenderingConfig)==null?void 0:y.delayedSecondsToVisible;if(Q){var e=setTimeout(n,Q*1E3);_.Fp(function(){clearTimeout(e)})}});
var x={};return _.w("reels-ad-card-buttoned-view-model",{class:_.W8(function(){var y;return((y=E().interaction)==null?0:y.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(x.ytwReelsAdCardButtonedViewModelHostExpansive=f,x)),
el:v},_.w(QIg,{avatar:function(){return _.C(E().avatar,nDP)},
headline:function(){return E().headline},
badge:function(){return _.C(E().adBadge,oDS)},
description:function(){return E().description},
expansive:f}),_.w(_.mI,{data:function(){return E().ctaButton}},{adButtonViewModel:function(y){var Q=y.data;
return _.w(_.HB,{data:function(){return(f==null?0:f())?Object.assign({},Q(),{style:"AD_BUTTON_STYLE_FILLED"}):Q()}})}}))},"rb");var edg=_.qu(function(v){var E=v.data;v=v.expansive;var n=_.Ig();_.Z("web_ad_metadata_clickable")&&_.Nl(n,function(){return E().interaction});
var f={};f=_.LR("ytwReelsAdMetadataViewModelHost",(f.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Z("web_ad_metadata_clickable"),f));return _.w("reels-ad-metadata-view-model",{class:f,el:n},_.w(QIg,{avatar:function(){return _.C(E().avatar,nDP)},
headline:function(){return E().headline},
badge:function(){return _.C(E().adBadge,oDS)},
description:function(){return E().description},
expansive:v}))},"sb");var F61={iconPosition:"icon-with-label",size:"L"},mJS=_.qu(function(v){var E=v.data;v=v.overlayDensity;var n=_.Ig(),f=_.SI(v,0);_.Xp(function(){n.value.setAttribute("overlay-density",String(f()))});
var x=function(){var r;return(r=E().reelsAdCardButtonedEntityKey)!=null?r:""},y=function(){return x()+"/ad_button"},Q=_.Bi(tBL,x),e=function(){var r,a;
return(a=(r=Q())==null?void 0:r.value)!=null?a:!1},F=_.mc(RXL),b=function(){return Object.assign({},F61,(F()||f()===2)&&{style:"overlay-dark"})};
v={};var l={};return _.w("reels-player-overlay-layout-view-model",{class:_.W8("ytwReelsPlayerOverlayLayoutViewModelHost",(v.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!E().extension},v.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},v)),
el:n},_.w("div",{class:_.W8("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(l.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},l))},_.w("div",{"aria-hidden":function(){return e()},
class:_.W8("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return e()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.tZ({"transition-duration":function(){return v4E(E())}})},_.w(_.mI,{data:function(){return E().adMetadata}},{reelsAdMetadataViewModel:function(r){return _.w(edg,{data:r.data,
expansive:function(){return f()===1}})}}),_.w(_.x6,{cond:function(){return E().extension},
then:function(r){return _.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.w(_.mI,{data:r},{adButtonViewModel:function(a){return _.w(_.HB,{data:a.data,animationEntityKey:y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(a){return _.w(cio,{data:a.data,animationEntityKey:y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return f()===1}})}}))}})),_.w("div",{"aria-hidden":function(){return!e()},
class:_.W8("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return e()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.tZ({"transition-duration":function(){return v4E(E())}})},_.w(_.mI,{data:function(){return E().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(r){return _.w(X4U,{data:r.data,
onShow:function(){_.Mu(_.n7("booleanEntity",x(),{key:x(),value:!0}))},
expansive:function(){return f()===1}})}}))),_.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.w(_.mI,{data:function(){return E().actions}},{reelActionBarViewModel:function(r){return _.w(_.p46,{data:r.data,
buttonShapeOverrideables:b})}}),_.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:function(r){return _.w(_.C7,{data:r.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},b(),{type:"tonal"})}})}}),_.w(_.mI,{data:function(){return E().pivotButton}},{pivotButtonViewModel:function(r){return _.w(_.yil,{data:r.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.Yz(mJS,"reels-player-overlay-layout-view-model",{props:{data:_.Kt,overlayDensity:_.Kt}});var zm=function(){var v=_.g.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;return v};
_.S(zm,_.g);_.c=zm.prototype;
_.c.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.Z("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]]"}}}}}};
_.c.ready=function(){var v=this;S0Q(function(){v.isAttached&&zK(v.JSC$13299_storedAdSlotMetadata,v.JSC$13299_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&Tm(LX(),v.JSC$13299_storedAdSlotMetadata,v.JSC$13299_storedAdLayoutMetadata)})};
_.c.attached=function(){zK(this.JSC$13299_storedAdSlotMetadata,this.JSC$13299_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&v4X(LX(),this.JSC$13299_storedAdSlotMetadata,this.JSC$13299_storedAdLayoutMetadata)};
_.c.detached=function(){zK(this.JSC$13299_storedAdSlotMetadata,this.JSC$13299_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Tm(LX(),this.JSC$13299_storedAdSlotMetadata,this.JSC$13299_storedAdLayoutMetadata)};
_.c.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.c.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13299_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13299_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13299_storedAdLayoutMetadata!==void 0&&this.JSC$13299_storedAdSlotMetadata!==void 0&&Tm(LX(),this.JSC$13299_storedAdSlotMetadata,this.JSC$13299_storedAdLayoutMetadata),v4X(LX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13299_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13299_storedAdSlotMetadata=this.adSlotMetadata)};
_.hK.Object.defineProperties(zm.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
zm.prototype.onAdMetadataChanged=zm.prototype.onAdMetadataChanged;zm.prototype.onTypographyBumpChanged=zm.prototype.onTypographyBumpChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zm.prototype,"rendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],zm.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],zm.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],zm.prototype,"noBottomMargin",void 0);_.k([_.H(),_.W("design:type",Object)],zm.prototype,"overlayDensity",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],zm.prototype,"typographyBump",void 0);_.k([_.A("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],zm.prototype,"adLayoutMetadata",null);_.k([_.H(),_.W("design:type",Object)],zm.prototype,"adSlotMetadata",void 0);
_.k([_.Wp("ytd-video-display-full-buttoned-and-button-group-renderer"),_.W("design:type",HTMLElement)],zm.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.k([_.On("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zm.prototype,"onTypographyBumpChanged",null);_.k([_.On("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zm.prototype,"onAdMetadataChanged",null);
zm=_.k([_.N({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],zm);
_.u(zm,"ytd-in-feed-ad-layout-renderer",function(){if(f04!==void 0)return f04;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return f04=v},
{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var w41;var b6U;var RB=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return v};
_.S(RB,_.g);_.c=RB.prototype;_.c.computeHasLiveDescription=function(v){return!(v==null||!v.liveDescription)};
_.c.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.c.onYtToggleButton=function(v){var E,n=(E=this.data)==null?void 0:E.videoReminderEntityKey;n&&this.ytdReduxBehavior.dispatch(_.n7("upcomingEventReminderStateEntity",n,{key:n,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.c.attached=function(){this.updateChannelBanner()};
_.c.dataChanged=function(){this.updateChannelBanner()};
_.c.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.C((v=this.data)==null?void 0:v.cta,_.J$)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.c.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var v=_.hZ(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);v&&(v.startsWith("//")&&(v="https:"+v),this.hostElement.classList.add("channel-banner"),_.NQ(this.hostElement,{"--ytvmh-channel-banner":"url("+v+")"}))}else _.Z("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.c.onPlayerReady=function(){this.onIronResize()};
_.c.maybeFlushDebouncer=function(){_.Z("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(v){var E;v=(E=v.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0];TIN(v==null?void 0:v.polymerController)})};
_.c.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var v=_.K(this.hostElement).querySelector("#live-description"),E;v&&((E=this.data)==null?0:E.shortLiveDescription)&&v.clientWidth<v.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
RB.prototype.onIronResize=RB.prototype.onIronResize;RB.prototype.videoReminderStateChanged=RB.prototype.videoReminderStateChanged;RB.prototype.dataChanged=RB.prototype.dataChanged;RB.prototype.onYtToggleButton=RB.prototype.onYtToggleButton;_.k([_.h(_.ZT),_.W("design:type",Object)],RB.prototype,"ironResizableBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],RB.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RB.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:Tes}),_.W("design:type",Object)],RB.prototype,"videoReminderState",void 0);
_.k([_.H({reflectToAttribute:!0,value:_.Z("web_modern_buttons")}),_.W("design:type",Boolean)],RB.prototype,"rounded",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.W("design:type",Boolean)],RB.prototype,"hasLiveDescription",void 0);_.k([_.H({reflectToAttribute:!0,value:_.Z("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.W("design:type",Boolean)],RB.prototype,"resizableAdBannerSafariFix",void 0);
_.k([_.H({reflectToAttribute:!0,value:_.Z("align_three_dot_menu_with_title_description")}),_.W("design:type",Boolean)],RB.prototype,"menuFix",void 0);_.k([_.$y("yt-formatted-string"),_.W("design:type",Array)],RB.prototype,"formattedStrings",void 0);_.k([_.Wp("#cta-button"),_.W("design:type",HTMLElement)],RB.prototype,"ctaButton",void 0);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RB.prototype,"onYtToggleButton",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RB.prototype,"dataChanged",null);_.k([_.On("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RB.prototype,"videoReminderStateChanged",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RB.prototype,"onIronResize",null);
RB=_.k([_.N({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],RB);
_.u(RB,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(b6U!==void 0)return b6U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return b6U=v},{mode:1});var lZ6;var tk=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.isLocked=!1;return v};
_.S(tk,_.g);_.c=tk.prototype;_.c.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.c.onExpandedChanged=function(){this.expanded&&_.kZ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.c.onMouseOver=function(){this.maybeExpand()};
_.c.onTap=function(){this.maybeExpand()};
_.c.onExpandableTileExpanding=function(v){v!==this&&(this.expanded=!1)};
_.c.onExpandableTileLockAndCollapse=function(v){this.isLocked=!0;v!==this&&(this.expanded=!1)};
_.c.onExpandableTileUnlock=function(){this.isLocked=!1};
tk.prototype.onTap=tk.prototype.onTap;tk.prototype.onMouseOver=tk.prototype.onMouseOver;tk.prototype.onExpandedChanged=tk.prototype.onExpandedChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],tk.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tk.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],tk.prototype,"expanded",void 0);_.k([_.Tw("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tk.prototype,"onExpandedChanged",null);_.k([_.jk("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tk.prototype,"onMouseOver",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tk.prototype,"onTap",null);
tk=_.k([_.N({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],tk);
_.u(tk,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(lZ6!==void 0)return lZ6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lZ6=v},{mode:1});var sI4;var B$=function(){var v=_.g.apply(this,arguments)||this;v.buttonOverrides={style:"overlay"};v.useYtdPlayer=_.Z("use_ytd_player_for_desktop_masthead");v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.playbackFinished=!1;v.JSC$13311_playerManager=null;v.JSC$13311_mastheadCounter=new c71;return v};
_.S(B$,_.g);_.c=B$.prototype;_.c.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"}}}};
_.c.created=function(){this.JSC$13311_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13311_playerManager=new oD)};
_.c.ready=function(){var v=this;this.JSC$13311_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var E=_.K(this.hostElement).querySelector("#player");this.useYtdPlayer?E.style.display="none":(this.ytdPlayer.style.display="none",lMo(this.JSC$13311_playerManager,E,function(){v.onPlaybackEnded()}),_.K(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var n;
((n=v.data)==null?0:n.navigationEndpoint)&&_.jK(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})}))};
_.c.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13311_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.c.attached=function(){var v=this;_.bz(function(){v.maybePlayVideo()})};
_.c.maybePlayVideo=function(){var v=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$13311_playerManager.playVideo(),this.getPlayerPromise().then(function(){v.JSC$13311_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.c.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13311_playerManager.stopVideo()};
_.c.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var v,E={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((v=this.data.playbackStartMs)!=null?v:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else rWg(this.JSC$13311_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(sH1(this.JSC$13311_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.c.getPlayerPromise=function(){return this.JSC$13311_playerManager.getPlayerPromise()};
_.c.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$13311_playerManager.mute():this.JSC$13311_playerManager.unMute()};
_.c.onYtNavigate=function(v){var E=djL(v.detail.endpoint),n=I7X(this.data.clickthroughReportingData);E&&n&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=n:_.AQ(E,n,30))};
_.c.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.c.onExpandedChanged=function(){this.expanded?(_.kZ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.c.onMouseOver=function(){this.maybeExpand()};
_.c.onTap=function(){this.maybeExpand()};
_.c.onExpandableTileExpanding=function(v){v!==this&&(this.stopVideo(),this.expanded=!1)};
_.c.onExpandableTileLockAndCollapse=function(v){v!==this&&(this.isLocked=!0,this.expanded=!1)};
_.c.onExpandableTileUnlock=function(){this.isLocked=!1};
_.c.lockAndCollapseExpandableTiles=function(){_.OL(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.c.unlockExpandableTiles=function(){_.OL(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.c.setupYtdPlayer=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.ytdPlayer.getPlayerPromise(),2);E=n.yieldResult;E.addEventListener("onStateChange",function(f){v.onPlayerStateChange(f)});
E.addEventListener("onCueRangeExit",function(f){v.onCueRangeExit(f)});
_.yQ(n)})};
_.c.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var E=v.getCurrentTime(),n,f,x=E+((f=(n=this.data)==null?void 0:n.playbackDurationMs)!=null?f:0)/1E3;v.addCueRange("playback",E,x);this.JSC$13311_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.c.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.c.toggleMute=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.ytdPlayer.getPlayerPromise(),2);n=f.yieldResult;v?n.mute():n.unMute();_.yQ(f)})};
B$.prototype.onTap=B$.prototype.onTap;B$.prototype.onMouseOver=B$.prototype.onMouseOver;B$.prototype.onExpandedChanged=B$.prototype.onExpandedChanged;B$.prototype.onYtNavigate=B$.prototype.onYtNavigate;B$.prototype.onYtToggleButton=B$.prototype.onYtToggleButton;B$.prototype.dataChanged=B$.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],B$.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],B$.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],B$.prototype,"expanded",void 0);_.k([_.H(),_.W("design:type",Object)],B$.prototype,"buttonOverrides",void 0);
_.k([_.H(),_.W("design:type",Object)],B$.prototype,"useYtdPlayer",void 0);_.k([_.Wp("#ytd-player"),_.W("design:type",Object)],B$.prototype,"ytdPlayer",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"dataChanged",null);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],B$.prototype,"onYtToggleButton",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],B$.prototype,"onYtNavigate",null);_.k([_.Tw("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"onExpandedChanged",null);_.k([_.jk("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"onMouseOver",null);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"onTap",null);B$=_.k([_.N({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],B$);
_.u(B$,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(sI4!==void 0)return sI4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return sI4=v},{mode:1});var riS;var vK=function(){return _.g.apply(this,arguments)||this};
_.S(vK,_.g);vK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vK.prototype.onShow=function(){var v=_.K(this.hostElement).querySelector("#live-description"),E;v&&((E=this.data)==null?0:E.shortLiveDescription)&&v.clientWidth<v.scrollWidth&&this.hostElement.classList.add("short-live-description")};
vK.prototype.onYtToggleButton=function(v){var E,n=(E=this.data)==null?void 0:E.videoReminderEntityKey;n&&this.ytdReduxBehavior.dispatch(_.n7("upcomingEventReminderStateEntity",n,{key:n,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
vK.prototype.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.C((v=this.data)==null?void 0:v.cta,_.J$)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
vK.prototype.videoReminderStateChanged=vK.prototype.videoReminderStateChanged;vK.prototype.onYtToggleButton=vK.prototype.onYtToggleButton;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vK.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:Tes}),_.W("design:type",Object)],vK.prototype,"videoReminderState",void 0);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vK.prototype,"onYtToggleButton",null);_.k([_.On("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vK.prototype,"videoReminderStateChanged",null);
vK=_.k([_.N({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],vK);
_.u(vK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(riS!==void 0)return riS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return riS=v},{mode:_.HE("kevlar_poly_si_batch_j065")?1:2});var P81;var EE=function(){var v=_.g.apply(this,arguments)||this;v.useYtdPlayer=_.Z("use_ytd_player_for_desktop_masthead");v.buttonOverrides={style:"overlay"};v.JSC$13319_playerManager=null;v.JSC$13319_mastheadCounter=new c71;v.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return v};
_.S(EE,_.g);_.c=EE.prototype;_.c.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"}}}};
_.c.created=function(){this.JSC$13319_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13319_playerManager=new oD)};
_.c.ready=function(){var v=this;this.JSC$13319_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var E;(E=this.embeddedPlayer)==null||E.remove()}else{var n;(n=this.ytdPlayer)==null||n.remove();lMo(this.JSC$13319_playerManager,this.embeddedPlayer,function(){v.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){v.data&&v.data.navigationEndpoint&&_.jK(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})})}};
_.c.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13319_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.c.dataChanged=function(){var v=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var E=!this.data.disableAutoPlayback,n,f={autoplay:E,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((n=this.data.playbackStartMs)!=null?n:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(E?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else rWg(this.JSC$13319_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(sH1(this.JSC$13319_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13319_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.OL(v.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");v.JSC$13319_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.c.getPlayerPromise=function(){return this.JSC$13319_playerManager.getPlayerPromise()};
_.c.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$13319_playerManager.mute():this.JSC$13319_playerManager.unMute()};
_.c.onYtNavigate=function(v){var E=djL(v.detail.endpoint),n=I7X(this.data.clickthroughReportingData);E&&n&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=n:_.AQ(E,n,30))};
_.c.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13319_playerManager.stopVideo()};
_.c.setupYtdPlayer=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.ytdPlayer.getPlayerPromise(),2);E=n.yieldResult;E.addEventListener("onStateChange",function(f){v.onPlayerStateChange(f)});
E.addEventListener("onCueRangeExit",function(f){v.onCueRangeExit(f)});
_.yQ(n)})};
_.c.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var E=v.getCurrentTime(),n,f,x=E+((f=(n=this.data)==null?void 0:n.playbackDurationMs)!=null?f:0)/1E3;v.addCueRange("playback",E,x);_.OL(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13319_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.c.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.c.toggleMute=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.ytdPlayer.getPlayerPromise(),2);n=f.yieldResult;v?n.mute():n.unMute();_.yQ(f)})};
_.hK.Object.defineProperties(EE.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v,E;if(!((v=this.data)==null?0:(E=v.accessibilityData)==null?0:E.label))return"Ad primary link";var n,f;return _.tQ("AD_TITLE",{title:(n=this.data)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label})}}});
EE.prototype.onYtMastheadHidden=EE.prototype.onYtMastheadHidden;EE.prototype.onYtNavigate=EE.prototype.onYtNavigate;EE.prototype.onYtToggleButton=EE.prototype.onYtToggleButton;EE.prototype.dataChanged=EE.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EE.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],EE.prototype,"useYtdPlayer",void 0);_.k([_.Wp("ytd-toggle-button-renderer"),_.W("design:type",Object)],EE.prototype,"muteButton",void 0);_.k([_.H(),_.W("design:type",Object)],EE.prototype,"buttonOverrides",void 0);
_.k([_.A("data.accessibilityData.label"),_.W("design:type",String),_.W("design:paramtypes",[])],EE.prototype,"titleAriaLabel",null);_.k([_.Wp("#replay-button"),_.W("design:type",Object)],EE.prototype,"replayButton",void 0);_.k([_.Wp("#player-container"),_.W("design:type",Object)],EE.prototype,"playerContainer",void 0);_.k([_.Wp("#player"),_.W("design:type",Object)],EE.prototype,"embeddedPlayer",void 0);_.k([_.Wp("#ytd-player"),_.W("design:type",Object)],EE.prototype,"ytdPlayer",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EE.prototype,"dataChanged",null);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],EE.prototype,"onYtToggleButton",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],EE.prototype,"onYtNavigate",null);
_.k([_.jk("yt-masthead-hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EE.prototype,"onYtMastheadHidden",null);EE=_.k([_.N({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],EE);
_.u(EE,"ytd-video-masthead-ad-primary-video-renderer",function(){if(P81!==void 0)return P81;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return P81=v},{mode:2});var aZX;var nq=function(){var v=_.g.apply(this,arguments)||this;v.collapsed=!1;v.impressionResolver=_.Sw();v.JSC$13323_activeViewMeasurementDataResolver=_.Sw();v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.S(nq,_.g);_.c=nq.prototype;_.c.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"}}}};
_.c.ready=function(){var v=this;_.K(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){v.expandAd()});
this.hostElement.addEventListener("yt-action",function(E){if(E.detail.actionName==="yt-service-request"){var n=E.detail.args[1];n.videoMastheadAdMuteCommand&&(v.collapseAd(n.videoMastheadAdMuteCommand.encryptedMastheadId),E.stopPropagation())}})};
_.c.attached=function(){var v=this;_.bz(function(){v.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(E){if(!v.collapsed){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,UU(n.baseUrl,n.attributionSrcMode);v.data.impressionCommand=void 0}});
this.JSC$13323_activeViewMeasurementDataResolver.promise.then(function(E){v.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.dataChanged=function(){var v;((v=this.data.impressionCommand)==null?0:v.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var E;((E=this.data)==null?0:E.activeView)&&this.JSC$13323_activeViewMeasurementDataResolver.resolve(this.data.activeView);(v=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(v.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.c.computeWidescreen=function(v){var E;return!!(v&&((E=_.C(v,RsX))==null?0:E.isWidescreen))};
_.c.computeExpandable=function(v){return!!(v&&v.length>0)};
_.c.onIronResize=function(){if(this.expandable){var v=_.K(this.hostElement).querySelector("#expandable-tile-container :first-child");v&&!v.expanded&&(v.expanded=!0)}};
_.c.handleMuteAd=function(){this.collapseAd(null)};
_.c.restoreCollapsedState=function(v){this.collapsed=_.Ef().get("HIDDEN_MASTHEAD_ID")===v};
_.c.collapseAd=function(v){if(v){var E=_.Ef();E.set("HIDDEN_MASTHEAD_ID",v);E.save()}(v=_.K(this.hostElement).querySelector("#video"))&&_.jK(v,"yt-masthead-hidden");this.collapsed=!0};
_.c.expandAd=function(){var v=_.Ef();v.set("HIDDEN_MASTHEAD_ID",!1);v.save();location.reload()};
_.c.detached=function(){_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
nq.prototype.onIronResize=nq.prototype.onIronResize;nq.prototype.dataChanged=nq.prototype.dataChanged;_.k([_.h(_.ZT),_.W("design:type",Object)],nq.prototype,"ironResizableBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],nq.prototype,"ytdActiveViewBehavior",void 0);_.k([_.h(_.Mj),_.W("design:type",Object)],nq.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nq.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.W("design:type",Boolean)],nq.prototype,"widescreen",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.W("design:type",Boolean)],nq.prototype,"expandable",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],nq.prototype,"collapsed",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nq.prototype,"dataChanged",null);
_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nq.prototype,"onIronResize",null);nq=_.k([_.N({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],nq);
_.u(nq,"ytd-video-masthead-ad-v3-renderer",function(){if(aZX!==void 0)return aZX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return aZX=v},{mode:2});var oH=function(){return _.g.apply(this,arguments)||this};
_.S(oH,_.g);_.c=oH.prototype;_.c.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.c.ready=function(){var v=this;S0Q(function(){v.isAttached&&zK(v.JSC$13328_storedAdSlotMetadata,v.JSC$13328_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&Tm(LX(),v.JSC$13328_storedAdSlotMetadata,v.JSC$13328_storedAdLayoutMetadata)})};
_.c.attached=function(){zK(this.JSC$13328_storedAdSlotMetadata,this.JSC$13328_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&v4X(LX(),this.JSC$13328_storedAdSlotMetadata,this.JSC$13328_storedAdLayoutMetadata)};
_.c.detached=function(){zK(this.JSC$13328_storedAdSlotMetadata,this.JSC$13328_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Tm(LX(),this.JSC$13328_storedAdSlotMetadata,this.JSC$13328_storedAdLayoutMetadata)};
_.c.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13328_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13328_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13328_storedAdLayoutMetadata!==void 0&&this.JSC$13328_storedAdSlotMetadata!==void 0&&Tm(LX(),this.JSC$13328_storedAdSlotMetadata,this.JSC$13328_storedAdLayoutMetadata),v4X(LX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13328_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13328_storedAdSlotMetadata=this.adSlotMetadata)};
_.hK.Object.defineProperties(oH.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
oH.prototype.onAdMetadataChanged=oH.prototype.onAdMetadataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oH.prototype,"data",void 0);_.k([_.A("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],oH.prototype,"adLayoutMetadata",null);
_.k([_.H(),_.W("design:type",Object)],oH.prototype,"adSlotMetadata",void 0);_.k([_.On("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oH.prototype,"onAdMetadataChanged",null);oH=_.k([_.N({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],oH);
_.u(oH,"ytd-page-top-ad-layout-renderer",function(){if(w41!==void 0)return w41;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return w41=
v},{mode:_.HE("kevlar_poly_si_batch_j070")?1:2});var Z6P;var fq=function(){var v=_.g.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;v.typographyBump=!1;return v};
_.S(fq,_.g);_.c=fq.prototype;
_.c.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]]"}}}}}};
_.c.ready=function(){var v=this;S0Q(function(){v.isAttached&&v.adSlotMetadata&&B0P(LX(),v.adSlotMetadata)})};
_.c.attached=function(){if(this.adSlotMetadata){var v;if(this.adSlotMetadata===((v=this.data)==null?void 0:v.adSlotMetadata))tm4(LX(),this.adSlotMetadata);else{var E;_.li(Error("Kh`"+this.adSlotMetadata+"`"+((E=this.data)==null?void 0:E.adSlotMetadata)))}}};
_.c.detached=function(){this.adSlotMetadata&&B0P(LX(),this.adSlotMetadata)};
_.c.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.c.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&B0P(LX(),this.adSlotMetadata),tm4(LX(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.hK.Object.defineProperties(fq.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.BO1),f;return(v=(f=_.C(n==null?void 0:n.renderingContent,tfi))==null?void 0:f.layout)?v.toLowerCase().replace(/_/g,"-"):""}}});
fq.prototype.onAdSlotMetadataChanged=fq.prototype.onAdSlotMetadataChanged;fq.prototype.onTypographyBumpChanged=fq.prototype.onTypographyBumpChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],fq.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fq.prototype,"rendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],fq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],fq.prototype,"noBottomMargin",void 0);_.k([_.H(),_.W("design:type",Object)],fq.prototype,"overlayDensity",void 0);_.k([_.H(),_.W("design:type",Object)],fq.prototype,"typographyBump",void 0);_.k([_.Wp("ytd-in-feed-ad-layout-renderer"),_.W("design:type",HTMLElement)],fq.prototype,"inFeedAdLayoutRenderer",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],fq.prototype,"layout",null);_.k([_.On("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fq.prototype,"onTypographyBumpChanged",null);_.k([_.On("data.adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fq.prototype,"onAdSlotMetadataChanged",null);
fq=_.k([_.N({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],fq);
_.u(fq,"ytd-ad-slot-renderer",function(){if(Z6P!==void 0)return Z6P;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Z6P=v},{mode:_.HE("kevlar_poly_si_batch_j077")?
1:2});var C8S;var xg=function(){return _.g.apply(this,arguments)||this};
_.S(xg,_.g);_.c=xg.prototype;_.c.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"}}}};
_.c.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&M0A(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.c.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var v=_.p(this.data.impressionUrls),E=v.next();!E.done;E=v.next())E=E.value,Yny(E,AVs(E));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.c.attached=function(){var v=this;_.Z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.c.detached=function(){_.Z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hK.Object.defineProperties(xg.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
xg.prototype.dataChanged=xg.prototype.dataChanged;xg.prototype.onTap=xg.prototype.onTap;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.k([_.h(sq),_.W("design:type",Object)],xg.prototype,"ytdActiveViewBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],xg.prototype,"ytdReduxBehavior",void 0);
_.k([_.H({selector:_.SS}),_.W("design:type",Object)],xg.prototype,"isGridViewEnabled",void 0);_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"watchFeedBigThumbs",null);_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],xg.prototype,"thumbnailWidth",null);_.k([_.H(),_.W("design:type",Object)],xg.prototype,"data",void 0);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xg.prototype,"onTap",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xg.prototype,"dataChanged",null);xg=_.k([_.N({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],xg);
_.u(xg,"ytd-compact-promoted-video-renderer",function(){if(C8S!==void 0)return C8S;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return C8S=v},{mode:1});var Meo;_.ew("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var cK=function(){return _.g.apply(this,arguments)||this};
_.S(cK,_.g);cK.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cK.prototype,"data",void 0);cK=_.k([_.N({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],cK);
_.u(cK,"ytd-search-pyv-renderer",function(){if(Meo!==void 0)return Meo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Meo=v},{mode:1});var Sjo;_.ew("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var yD=function(){var v=_.g.apply(this,arguments)||this;v.roundedContainer=!0;v.JSC$13344_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.S(yD,_.g);_.c=yD.prototype;
_.c.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}}};
_.c.onStampFinished=function(){this.JSC$13344_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.c.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.K(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");v?v.openDialog():this.JSC$13344_handleOpenPostCommentDialogActionAfterStamp=!0};
_.c.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.c.computeHideBorder=function(){return this.isInEngagementPanel};
_.c.computeIsCompact=function(){return this.isInEngagementPanel};
_.c.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.c.computeUsesFullLockup=function(){var v,E=(v=this.data)==null?void 0:v.post,n;v=(n=_.C(E,Qyo))==null?void 0:n.surface;var f;n=(f=_.C(E,e$X))==null?void 0:f.originalPost;var x;if(f=v||((x=_.C(n,Qyo))==null?void 0:x.surface))return!this.computeUsesCompactLockup(f)&&this.useUpdatedRepostUi;var y;return((y=_.C(E,e$X))==null?void 0:y.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.hK.Object.defineProperties(yD.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var v,E;return((E=_.C((v=this.data)==null?void 0:v.post,Qyo))==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useUpdatedRepostUi}}});
yD.prototype.onYtCommentModerationPanelEmpty=yD.prototype.onYtCommentModerationPanelEmpty;yD.prototype.onStampFinished=yD.prototype.onStampFinished;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],yD.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],yD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yD.prototype,"roundedContainer",void 0);_.k([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yD.prototype,"hideBorder",void 0);_.k([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yD.prototype,"isCompact",void 0);
_.k([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yD.prototype,"usesFullLockup",void 0);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yD.prototype,"onStampFinished",null);
_.k([_.jk("ytd-comment-moderation-panel-empty"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yD.prototype,"onYtCommentModerationPanelEmpty",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yD.prototype,"isInEngagementPanel",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yD.prototype,"useUpdatedRepostUi",null);
yD=_.k([_.N({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],yD);
_.u(yD,"ytd-backstage-post-thread-renderer",function(){if(Sjo!==void 0)return Sjo;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Sjo=v},{mode:1});var UJi;var pq=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(pq,_.g);pq.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
pq.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var v=this.data.thumbnail.thumbnails;this.isDarkTheme&&(v=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(v=_.hZ(v,24,void 0,"height"))?v:void 0}};
pq.prototype.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
pq.prototype.computeHasText=function(){var v;return!((v=this.data)==null||!v.text)};
_.hK.Object.defineProperties(pq.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.bW(this.bannerImageUrl))+'");'}}});
pq.prototype.computeHasText=pq.prototype.computeHasText;pq.prototype.computeBannerImageUrl=pq.prototype.computeBannerImageUrl;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],pq.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],pq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],pq.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",String)],pq.prototype,"bannerImageUrl",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.W("design:type",Boolean)],pq.prototype,"hasText",void 0);_.k([_.On("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pq.prototype,"computeBannerImageUrl",null);
_.k([_.On("data.text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pq.prototype,"computeHasText",null);_.k([_.A("bannerImageUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],pq.prototype,"bannerStyle",null);pq=_.k([_.N({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],pq);
_.u(pq,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(UJi!==void 0)return UJi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return UJi=v},{mode:1});var qj1;var QD=function(){return _.g.apply(this,arguments)||this};
_.S(QD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QD.prototype,"data",void 0);QD=_.k([_.N({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],QD);
_.u(QD,"ytd-backstage-zero-state-renderer",function(){if(qj1!==void 0)return qj1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return qj1=v},{mode:1});var JiU;var X2=function(){return _.g.apply(this,arguments)||this};
_.S(X2,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],X2.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],X2.prototype,"icon",void 0);X2=_.k([_.N({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],X2);
_.u(X2,"ytd-post-filter-zero-state-renderer",function(){if(JiU!==void 0)return JiU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return JiU=v},{mode:1});var K61;var dJo={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},eA=function(){return _.g.apply(this,arguments)||this};
_.S(eA,_.g);eA.prototype.configureRendererStamper=function(){return dJo};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eA.prototype,"rendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eA.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],eA.prototype,"icon",void 0);eA=_.k([_.N({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],eA);
_.u(eA,"ytd-post-scheduling-zero-state-renderer",function(){if(K61!==void 0)return K61;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return K61=v},{mode:1});var IZS;var F2=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return v};
_.S(F2,_.g);F2.prototype.onTabsActivate=function(v){this.data&&this.data.tabs&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[v.detail.selected].navigationEndpoint})};
F2.prototype.shouldShowTotalCount=function(v){return v&&v.totalCount!==void 0};
F2.prototype.handleUpdatePostsTotalCountAction=function(v){var E=this.get(["data.tabs",1,"totalCount"]),n=this.get("updatePostsTotalCountAction.updateType",v);v=this.get("updatePostsTotalCountAction.number",v);E!==void 0&&n!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&v&&(n==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(E)+v):n==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(E)-v))};
_.hK.Object.defineProperties(F2.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var v=0,E=this.data.tabs.length;v<E;v++)if(this.data.tabs[v].selected)return v;return 0}}});
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],F2.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],F2.prototype,"rendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],F2.prototype,"data",void 0);_.k([_.A("data.tabs"),_.W("design:type",Number),_.W("design:paramtypes",[])],F2.prototype,"selected",null);F2=_.k([_.N({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],F2);
_.u(F2,"ytd-post-stream-filter-renderer",function(){if(IZS!==void 0)return IZS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return IZS=v},{mode:1});var YjU;var mr=function(){return _.g.apply(this,arguments)||this};
_.S(mr,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mr.prototype,"kevlarBehaviors",void 0);_.k([_.H(),_.W("design:type",Object)],mr.prototype,"data",void 0);mr=_.k([_.N({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],mr);
_.u(mr,"ytd-channel-age-gate-renderer",function(){if(YjU!==void 0)return YjU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YjU=v},{mode:1});var hdz;_.ew("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var wv=function(){var v=_.g.apply(this,arguments)||this;v.data=null;return v};
_.S(wv,_.g);wv.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hK.Object.defineProperties(wv.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?0:(E=v.title)==null?0:(n=E.runs)==null?0:n.length)?147:160}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],wv.prototype,"imageSizePx",null);wv=_.k([_.N({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],wv);
_.u(wv,"ytd-channel-owner-empty-state-renderer",function(){if(hdz!==void 0)return hdz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return hdz=v},{mode:1});var Ai1;var Ve1;var bV=function(){var v=_.g.apply(this,arguments)||this;v.boundSubmitSearch=function(){v.submitSearch()};
v.boundClearSearch=function(){v.clearSearch()};
return v};
_.S(bV,_.g);_.c=bV.prototype;_.c.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]]"}}}}}};
_.c.toggleClearButton=function(){this.hideClearButton=Qoy||!this.input.value};
_.c.submitOnEnterKeyUp=function(v){v.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.c.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.c.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.c.submit=function(){_.jK(this.hostElement,"search-query-changed",this.input.value)};
bV.prototype.toggleClearButton=bV.prototype.toggleClearButton;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bV.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],bV.prototype,"hideClearButton",void 0);_.k([_.H(),_.W("design:type",Object)],bV.prototype,"boundSubmitSearch",void 0);_.k([_.H(),_.W("design:type",Object)],bV.prototype,"boundClearSearch",void 0);_.k([_.Wp("#input"),_.W("design:type",Object)],bV.prototype,"input",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bV.prototype,"toggleClearButton",null);
bV=_.k([_.N({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],bV);
_.u(bV,"ytd-channel-switcher-search-box-renderer",function(){if(Ve1!==void 0)return Ve1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ve1=v},{mode:1});var DJ1;var lV=function(){var v=_.g.apply(this,arguments)||this;v.boundSubmit=function(){v.submit()};
return v};
_.S(lV,_.g);_.c=lV.prototype;_.c.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"}}}}};
_.c.ready=function(){var v=this;this.form.addEventListener("submit",function(E){return v.onSubmit(E)})};
_.c.onSubmit=function(v){v.preventDefault();return!1};
_.c.toggleClearButton=function(){this.hideClearButton=Qoy||!this.input.value};
_.c.submitOnEnterKeyUp=function(v){v.keyCode===13&&this.submit()};
_.c.submit=function(){var v=this.data.endpoint,E=(0,_.sh.unsafeClone)(v);_.C(E,_.ix)?_.C(E,_.ix).query=this.input.value:_.C(E,_.ze)&&(_.C(E,_.ze).query=this.input.value);var n=_.C(E.commandMetadata,_.Dl);(n==null?0:n.url)?(n.url=_.PP(n.url,"query",this.input.value),_.jK(this.hostElement,"yt-navigate",{endpoint:E})):_.C(E,$r4)?(_.C(E,$r4).channelSwitcherQuery=this.input.value,_.P().resolve(_.OO).resolveCommand(E,{form:{element:this.hostElement}})):(v=Error("Lh`"+JSON.stringify(v)),_.mb(v))};
_.c.getUrl=function(v){return this.get("commandMetadata.webCommandMetadata.url",v)};
lV.prototype.toggleClearButton=lV.prototype.toggleClearButton;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lV.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],lV.prototype,"hideClearButton",void 0);
_.k([_.H(),_.W("design:type",Object)],lV.prototype,"boundSubmit",void 0);_.k([_.Wp("#form"),_.W("design:type",HTMLFormElement)],lV.prototype,"form",void 0);_.k([_.Wp("#input"),_.W("design:type",Object)],lV.prototype,"input",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lV.prototype,"toggleClearButton",null);lV=_.k([_.N({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],lV);
_.u(lV,"ytd-search-box-renderer",function(){if(DJ1!==void 0)return DJ1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return DJ1=v},{mode:2});var sE=function(){var v=_.g.apply(this,arguments)||this;v.showSearchBox=!0;return v};
_.S(sE,_.g);sE.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sE.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],sE.prototype,"showSearchBox",void 0);sE=_.k([_.N({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],sE);
_.u(sE,"ytd-channel-switcher-header-renderer",function(){if(Ai1!==void 0)return Ai1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Ai1=v},{mode:1});var H6l;var g4P;var rv=function(){var v=_.g.apply(this,arguments)||this;v.isDisplayed=!0;return v};
_.S(rv,_.g);_.c=rv.prototype;_.c.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.dataChanged=function(){this.isDisplayed=!0};
_.c.computeType=function(v){return v||"UNKNOWN"};
_.c.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isDisplayed=!1};
_.c.onClose=function(){this.isDisplayed=!1};
rv.prototype.onYtServiceRequestCompleted=rv.prototype.onYtServiceRequestCompleted;rv.prototype.dataChanged=rv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rv.prototype,"data",void 0);
_.k([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.W("design:type",String)],rv.prototype,"type",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rv.prototype,"isDisplayed",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rv.prototype,"dataChanged",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rv.prototype,"onYtServiceRequestCompleted",null);rv=_.k([_.N({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],rv);
_.u(rv,"ytd-alert-with-button-renderer",function(){if(g4P!==void 0)return g4P;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return g4P=v},{mode:1});var PK=function(){var v=_.g.apply(this,arguments)||this;v.noResult=!1;v.enableAlertBanner=!1;v.dismissedAlertBanner=!1;v.hideCreateChannelButton=!1;v.boundDismissAlertBanner=function(){v.dismissAlertBanner()};
v.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return v};
_.S(PK,_.g);_.c=PK.prototype;_.c.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.c.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.c.updateChannelSwitcherAction=function(v){var E;v=(E=_.C(v,U9g))==null?void 0:E.page;_.C(v,Sog)!==void 0&&(this.data=_.C(v,Sog))};
_.c.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]]"}}}}}};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c.searchQueryChanged=function(v,E){if(this.data&&this.data.contents&&this.data.contents.length){v=[];var n=[];this.hideCreateChannelButton=this.noResult=!1;for(var f=document.querySelectorAll("ytd-account-item-renderer"),x=_.p(f),y=x.next();!y.done;y=x.next())y=y.value,n.push(y),y.style.display="block";this.resetRightBorder(n);if(E){this.hideCreateChannelButton=!0;for(n=1;n<this.data.contents.length;n++)if(y=this.data.contents[n],_.C(y,O9P)){var Q=void 0,e=void 0;x=(Q=_.C(y,O9P))==null?void 0:(e=
Q.accountName)==null?void 0:e.simpleText;e=Q=void 0;y=(Q=_.C(y,O9P))==null?void 0:(e=Q.channelHandle)==null?void 0:e.simpleText;(Q=f[n-1])&&x&&_.mX(x,E)?v.push(Q):_.Z("enable_handle_search_on_channel_switcher")&&Q&&y&&_.mX(y.toString(),E.toString())?v.push(Q):Q.style.display="none"}v.length===0&&(this.noResult=!0);this.resetRightBorder(v)}}};
_.c.resetRightBorder=function(v){for(var E=0;E<v.length;E++)v[E].style.borderRight=!this.hideCreateChannelButton&&(E+2)%3===0||this.hideCreateChannelButton&&(E+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.c.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.c.setShowSearchBox=function(v){if(v&&v.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var E=0;E<v.contents.length;E++)_.C(v.contents[E],_.ty)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.c.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.hK.Object.defineProperties(PK.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.contents)}}});
PK.prototype.onContinuationItemsUpdated=PK.prototype.onContinuationItemsUpdated;PK.prototype.searchQueryChanged=PK.prototype.searchQueryChanged;PK.prototype.onDataChanged=PK.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],PK.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],PK.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],PK.prototype,"data",void 0);_.k([_.Wp("ytd-channel-switcher-header-renderer"),_.W("design:type",Object)],PK.prototype,"channelSwitcherHeaderRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],PK.prototype,"noResult",void 0);
_.k([_.H(),_.W("design:type",Object)],PK.prototype,"enableAlertBanner",void 0);_.k([_.H(),_.W("design:type",Object)],PK.prototype,"dismissedAlertBanner",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PK.prototype,"hideCreateChannelButton",void 0);_.k([_.A("data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PK.prototype,"isLoading",null);_.k([_.H(),_.W("design:type",Object)],PK.prototype,"boundDismissAlertBanner",void 0);
_.k([_.H({computed:"computeButtonOverride()"}),_.W("design:type",Object)],PK.prototype,"buttonOverride",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PK.prototype,"onDataChanged",null);_.k([_.jk("search-query-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],PK.prototype,"searchQueryChanged",null);
_.k([_.jk("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PK.prototype,"onContinuationItemsUpdated",null);PK=_.k([_.N({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],PK);
_.u(PK,"ytd-channel-switcher-page-renderer",function(){if(H6l!==void 0)return H6l;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return H6l=v},{mode:1});var NUo;var uE1;var aH=function(){var v=_.g.apply(this,arguments)||this;v.images=[];v.selectedImageIndex=0;return v};
_.S(aH,_.g);_.c=aH.prototype;
_.c.ready=function(){_.v8(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.v8(this.JSC$13389_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.v8(this.JSC$13389_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.v8(this.JSC$13389_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.c.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.c.updateImageThumbnails=function(v){v=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:v.event_.detail});this.images.splice(this.selectedImageIndex,1,v);this.images=[].concat(_.s8(this.images))};
_.c.cancelImageRepositions=function(){this.selectedImageIndex=0;_.jK(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.c.saveImageRepositions=function(){this.selectedImageIndex=0;_.jK(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.hK.Object.defineProperties(aH.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var v=this;return(this.images||[]).map(function(E,n){return{image:E,selected:n===v.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("ytd-backstage-image-preview-renderer"),_.W("design:type",Object)],aH.prototype,"JSC$13389_imagePreviewContainer",void 0);_.k([_.Wp(".thumbnail-images-container"),_.W("design:type",HTMLElement)],aH.prototype,"thumbnailImagesContainer",void 0);_.k([_.H(),_.W("design:type",Array)],aH.prototype,"images",void 0);
_.k([_.H(),_.W("design:type",Object)],aH.prototype,"repositionInstructions",void 0);_.k([_.H(),_.W("design:type",Object)],aH.prototype,"selectedImageIndex",void 0);_.k([_.A("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],aH.prototype,"thumbnailRendererDatas",null);_.k([_.A("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],aH.prototype,"selectedImageData",null);
aH=_.k([_.N({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],aH);
_.u(aH,"ytd-backstage-multi-image-reposition-renderer",function(){if(uE1!==void 0)return uE1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uE1=v},{mode:1});var ZM=function(v,E){_.mP.call(this);this.uploadUrl=v;this.channelId=E;this.imagesUploadData=[]};
_.S(ZM,_.mP);ZM.prototype.getAllUploadStatuses=function(){var v=this,E,n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,jIP(v),2);E=x.yieldResult;n=E.get("succeed");f=E.get("failed");return x.return(n.concat(f))})};
var kLF=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,jIP(v),2);E=f.yieldResult;n=E.get("failed");n.length>0&&O6X(v,n);return f.return(v.getAllUploadStatuses())})},jIP=function(v){var E,n,f,x,y,Q,e;
return _.X(function(F){if(F.nextAddress==1)return E=new Map,_.m(F,Promise.allSettled(v.imagesUploadData.map(function(b){return b.uploadPromise})),2);
n=F.yieldResult;f=[];x=_.p(n);for(y=x.next();!y.done;y=x.next())Q=y.value,Q.status==="fulfilled"&&f.push(Q.value);e=v.imagesUploadData.map(function(b){return b.image}).filter(function(b){return f.every(function(l){return l.id!==b.id})});
E.set("succeed",f);E.set("failed",e);return F.return(E)})},O6X=function(v,E){E=_.p(E);
for(var n=E.next();!n.done;n=E.next()){var f=v;n=n.value;W6l(f,n.id)>=0&&f.cancel(n.id);var x=new $J6(n),y=_.dr4(f.uploadUrl,{"X-YouTube-ChannelId":f.channelId},n.imageBlob);x.transfer=y;x.uploadPromise=L64(y,n);f.imagesUploadData.push(x);y.run()}};
ZM.prototype.cancel=function(v){var E=W6l(this,v);E!==-1&&((E=this.imagesUploadData[E].transfer)&&E.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(n){return n.image.id!==v}))};
var W6l=function(v,E){return v.imagesUploadData.findIndex(function(n){return n.image.id===E})},L64=function(v,E){return new Promise(function(n,f){v.listen("l",function(){var x=v.getResponseText();
x?(x=JSON.parse(x).encryptedBlobId,E.encryptedBlobId=x,n(E)):f("upload failed")});
v.listen("n",function(){f("upload failed")})})},$J6=function(v){this.image=v};var E4s=function(v,E,n,f,x){this.id=v;this.imageBlob=E;this.localImageSrc=n;this.naturalWidth=f;this.naturalHeight=x;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 GLl=[".jpeg",".jpg",".png"],Cq=function(){var v=_.g.apply(this,arguments)||this;v.showImagesPreview=!1;v.pollOptions=[];v.errorMessage="";v.optionPlaceholderText="";v.optionDefaultText="";v.JSC$13400_imageId=0;v.maxFileSizeMb=0;v.maxAspectRatio=0;v.invalidFileSizeError="";v.invalidAspectRatioError="";v.invalidFileTypeError="";v.imageSelector=new xV(null,"single_file",GLl);return v};
_.S(Cq,_.g);_.c=Cq.prototype;_.c.ready=function(){_.v8(this.imageSelector,"j",this.onImageSelect,!1,this);_.v8(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.v8(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.c.dataChanged=function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.cellTemplate)==null?void 0:E.onEmptyCellTap,MuF);if(n&&n.uploadUrl&&n.channelId){var f;this.maxFileSizeMb=((f=n.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0;var x;this.maxAspectRatio=((x=n.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0;var y;this.invalidFileSizeError=this.getSimpleString((y=this.data)==null?void 0:y.invalidFileSizeError);var Q;this.invalidAspectRatioError=this.getSimpleString((Q=this.data)==
null?void 0:Q.invalidAspectRatioError);var e;this.invalidFileTypeError=this.getSimpleString((e=this.data)==null?void 0:e.invalidFileTypeError);this.uploadManager=new ZM(n.uploadUrl,n.channelId)}};
_.c.onEditorInfoChange=function(){this.optionPlaceholderText=_.JC(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.JC(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.c.observeAddImageError=function(){this.errorMessage!==""&&_.jK(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.c.onPollOptionsChange=function(){for(var v=!1,E=[],n=0;n<this.pollOptions.length;n++){var f=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(n+1);this.pollOptions[n].placeholderText!==f?(v=!0,E.push(Object.assign({},this.pollOptions[n],{placeholderText:f}))):E.push(this.pollOptions[n])}v&&(this.pollOptions=E);this.isValid()?_.jK(this.hostElement,"yt-commentbox-post-enable"):_.jK(this.hostElement,"yt-commentbox-post-disable")};
_.c.createPollOptions=function(v){var E=[],n;v=(n=v==null?void 0:v.minPollOptions)!=null?n:0;for(n=0;n<v;n++)E.push(this.createPollOption());return E};
_.c.onImageSelect=function(v){var E=this,n,f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1){if(E.selectedImageIndex===void 0)return F.jumpTo(0);n=v.files[0];E.errorMessage="";f=E.validateImage(n);if(f!=="")return E.errorMessage=f,F.return();x=new DO(E.maxAspectRatio,!1,!0);return _.m(F,x.transform(n),3)}if(F.nextAddress!=4)return y=F.yieldResult,y.transformedData?y.invalidAspectRatio?(E.errorMessage=E.invalidAspectRatioError,F.return()):_.m(F,n41(E.JSC$13400_imageId,v.files[0],y.transformedData),
4):(E.errorMessage=E.invalidFileTypeError,F.return());Q=F.yieldResult;E.JSC$13400_imageId++;O6X(E.uploadManager,[Q]);e=Object.assign({},E.pollOptions[E.selectedImageIndex],{image:Q});E.pollOptions.splice(E.selectedImageIndex,1,e);E.refreshPollOptions();_.jK(E.hostElement,"yt-backstage-poll-image-select");_.yQ(F)})};
_.c.validateImage=function(v){return v.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.c.refreshPollOptions=function(){this.pollOptions=[].concat(_.s8(this.pollOptions))};
_.c.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.s8(this.pollOptions),[this.createPollOption()]))};
_.c.onRemovePollOption=function(v){var E=this.pollOptions[v.model.index];E&&E.image&&this.uploadManager.cancel(E.image.id);this.pollOptions.splice(v.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.jK(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.c.onTextInput=function(){this.refreshPollOptions()};
_.c.onImageButtonClick=function(v){this.selectedImageIndex=v.model.index;this.imageSelector.click()};
_.c.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.c.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.c.saveImageRepositions=function(v){v=v.event_.detail;for(var E=0,n=[],f=_.p(this.pollOptions),x=f.next();!x.done;x=f.next())x=x.value,x.image!==void 0?(x=Object.assign({},x,{image:v[E]}),n.push(x),E++):n.push(x);this.showImagesPreview=!1;this.pollOptions=[].concat(_.s8(n))};
_.c.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 v=0,E=_.p(this.pollOptions),n=E.next();!n.done;n=E.next())if(n=n.value,n.optionText.trim()!==""||n.image!==void 0){if(!n.image||this.hasCustomOptionText&&n.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;v++}return v>=Number(this.editorInfo.minPollOptions)};
_.c.getAllUploadStatuses=function(){var v=this,E,n,f,x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.uploadManager.getAllUploadStatuses(),2);E=y.yieldResult;n=_.p(E);for(f=n.next();!f.done;f=n.next())if(x=f.value,x.encryptedBlobId===void 0)return y.return(kLF(v.uploadManager));return y.return(E)})};
_.c.getPostCreateOptions=function(){for(var v=[],E=_.p(this.pollOptions),n=E.next();!n.done;n=E.next())n=n.value,n.image!==void 0&&v.push({text:this.hasCustomOptionText?n.optionText:n.placeholderText,image:n.image});return v};
_.c.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.c.createButtonRenderer=function(v,E){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleString(v)}},isDisabled:E}};
_.c.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.c.computeThumbnailRendererData=function(v){return v?{image:v,selected:!1}:void 0};
_.c.getSimpleString=function(v){return _.JC(v)};
_.c.updateOptionTextFromBinding=function(v){if(v.target){var E=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(v.target);if(E>=0){var n;this.pollOptions[E].optionText=(n=v.detail.value)!=null?n:""}}};
_.hK.Object.defineProperties(Cq.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var v,E;return this.pollOptions.length<((E=(v=this.editorInfo)==null?void 0:v.maxPollOptions)!=null?E:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(v){return v.image}).map(function(v){return v.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.data)==null?void 0:v.addOptionButtonText;return E?this.createButtonRenderer(E,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.data)==null?void 0:v.repositionImagesButtonLabel;return E?this.createButtonRenderer(E,!this.hasImages):void 0}}});
Cq.prototype.onPollOptionsChange=Cq.prototype.onPollOptionsChange;Cq.prototype.observeAddImageError=Cq.prototype.observeAddImageError;Cq.prototype.onEditorInfoChange=Cq.prototype.onEditorInfoChange;Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("ytd-backstage-multi-image-reposition-renderer"),_.W("design:type",Object)],Cq.prototype,"imageRepositionContainer",void 0);
_.k([_.H(),_.W("design:type",Object)],Cq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Cq.prototype,"editorInfo",void 0);_.k([_.H(),_.W("design:type",ZM)],Cq.prototype,"uploadManager",void 0);_.k([_.H(),_.W("design:type",Object)],Cq.prototype,"showImagesPreview",void 0);_.k([_.H(),_.W("design:type",Array)],Cq.prototype,"pollOptions",void 0);_.k([_.H(),_.W("design:type",Object)],Cq.prototype,"errorMessage",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cq.prototype,"dataChanged",null);_.k([_.Tw("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cq.prototype,"onEditorInfoChange",null);_.k([_.On("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cq.prototype,"observeAddImageError",null);
_.k([_.Tw("pollOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cq.prototype,"onPollOptionsChange",null);_.k([_.A("pollOptions","editorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"isAllowedToAddOption",null);_.k([_.A("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"hasImages",null);
_.k([_.A("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"imagesToReposition",null);_.k([_.A("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"hasCustomOptionText",null);_.k([_.A("data","isAllowedToAddOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"addOptionButton",null);_.k([_.A("data","hasImages"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cq.prototype,"repositionImagesButton",null);
Cq=_.k([_.N({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Cq);
_.u(Cq,"ytd-backstage-image-poll-editor-renderer",function(){if(NUo!==void 0)return NUo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return NUo=v},{mode:2});var TUo={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 i61;var MM=function(){var v=_.g.apply(this,arguments)||this;v.a11yConfig=TUo;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.showPreviewContainer=!0;v.startPicker=!1;v.repositionOptional=!1;v.editOnlyMode=!1;v.savedImageDisplayOffsetTop=0;v.savedImageDisplayOffsetLeft=0;return v};
_.S(MM,_.g);_.c=MM.prototype;_.c.created=function(){_.YO.requestAvailability()};
_.c.ready=function(){};
_.c.onArrowKeysDown=function(v){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var E=0,n=0,f="";switch(v.detail.keyboardEvent.key){case "ArrowUp":o4X(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":o4X(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":o4X(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:n=this.imageWidth*.05*-1;break;case "ArrowRight":o4X(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:n=this.imageWidth*.05}f&&_.tQ(f)&&_.jK(this.hostElement,"iron-announce",{text:_.tQ(f)});if(n||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.tQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+n)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.tQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.jK(this.hostElement,"iron-announce",{text:v})}};
_.c.getPreviewPosition=function(v,E,n,f){return Math.round(100*(v+E*.5-n)/f)};
_.c.calculateDisplayPosition=function(){var v=this.imageData.naturalWidth,E=this.imageData.naturalHeight;this.displayScale=Math.max(200/v,200/E);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var n=v*this.displayScale*this.imageData.previewCoordinates.left,f=E*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=E>v?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-n;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=v>E?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-f;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=v*this.displayScale;this.imageHeight=E*this.displayScale};
_.c.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.c.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.c.getSignedPosition=function(v,E,n){return E==="X"&&_.MX("HTML_DIR")==="rtl"?n==="-"?v+"px":v*-1+"px":n==="-"?v*-1+"px":v+"px"};
_.c.pickerMove=function(v){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-v.clientX,n=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
n)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.c.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.c.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var v=this.generateCropPreview();v&&_.jK(this.hostElement,"ytd-backstage-image-preview-coordinates-update",v)};
_.c.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.jK(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.c.deleteImage=function(){_.jK(this.hostElement,"ytd-backstage-image-preview-delete")};
_.c.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.c.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var v=this.generateCropPreview();v&&_.jK(this.hostElement,"ytd-backstage-image-preview-coordinates-save",v)};
_.c.getPreviewOffset=function(v,E,n){return E&&v?(n==="X"&&_.MX("HTML_DIR")==="rtl"?300/E*v:300/E*v*-1)+"px":"0px"};
_.c.getSimpleText=function(v){return v?_.JC(v):""};
_.c.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}};
_.hK.Object.defineProperties(MM.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.tQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.tQ(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.tQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.tQ(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 v,E,n=(v=this.instruction)==null?void 0:(E=v.previewInstruction)==null?void 0:E.editButtonLabel;return n?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:n,accessibilityData:{accessibilityData:{label:this.getSimpleText(n)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x=this.editOnlyMode?(v=this.instruction)==null?void 0:(E=v.editInstruction)==null?void 0:E.saveImagesButtonLabel:(n=this.instruction)==null?void 0:(f=n.editInstruction)==null?void 0:f.saveButtonLabel;return x?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.instruction)==null?void 0:(E=v.previewInstruction)==null?void 0:E.deleteButtonLabel;return n?{size:"SIZE_SMALL",text:n,accessibilityData:{accessibilityData:{label:this.getSimpleText(n)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.instruction)==null?void 0:(E=v.editInstruction)==null?void 0:E.cancelButtonLabel;v=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return n?{style:v,size:"SIZE_SMALL",text:n,accessibilityData:{accessibilityData:{label:this.getSimpleText(n)}}}: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"}}});
MM.prototype.onEditOnlyModeUpdate=MM.prototype.onEditOnlyModeUpdate;MM.prototype.onImageChange=MM.prototype.onImageChange;_.k([_.H(),_.W("design:type",E4s)],MM.prototype,"imageData",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"instruction",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"a11yConfig",void 0);_.k([_.H(),_.W("design:type",Number)],MM.prototype,"imageWidth",void 0);_.k([_.H(),_.W("design:type",Number)],MM.prototype,"imageHeight",void 0);
_.k([_.H(),_.W("design:type",Number)],MM.prototype,"displayScale",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"imageDisplayOffsetTop",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"imageDisplayOffsetLeft",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"pickerDisplayOffsetTop",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"pickerDisplayOffsetLeft",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"showPreviewContainer",void 0);
_.k([_.H(),_.W("design:type",Object)],MM.prototype,"startPicker",void 0);_.k([_.H(),_.W("design:type",Number)],MM.prototype,"pickerOffsetX",void 0);_.k([_.H(),_.W("design:type",Number)],MM.prototype,"pickerOffsetY",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"repositionOptional",void 0);_.k([_.H(),_.W("design:type",Object)],MM.prototype,"editOnlyMode",void 0);_.k([_.Wp("#picker-container"),_.W("design:type",HTMLElement)],MM.prototype,"JSC$13413_pickerContainer",void 0);
_.k([_.Wp("#picker"),_.W("design:type",HTMLElement)],MM.prototype,"picker",void 0);_.k([_.Wp("#preview-clipper"),_.W("design:type",HTMLElement)],MM.prototype,"previewClipper",void 0);_.k([_.Wp("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],MM.prototype,"JSC$13413_imageInBackground",void 0);_.k([_.Wp("#image-in-picker"),_.W("design:type",HTMLImageElement)],MM.prototype,"JSC$13413_imageInPicker",void 0);
_.k([_.Wp("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],MM.prototype,"JSC$13413_imageInPreviewClipper",void 0);_.k([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"altLabelForImage",null);_.k([_.A("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],MM.prototype,"pickerSize",null);
_.k([_.A("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"imageOrientationStyle",null);_.k([_.A("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"editButton",null);_.k([_.A("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"saveButton",null);_.k([_.A("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"deleteButton",null);
_.k([_.A("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"cancelButton",null);_.k([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],MM.prototype,"cropOffsetTop",null);_.k([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],MM.prototype,"cropOffsetLeft",null);
_.k([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"pickerBackgroundStyle",null);_.k([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"pickerDisplayStyle",null);_.k([_.A("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"imageInPickerStyle",null);
_.k([_.A("cropOffsetLeft","cropOffsetTop","pickerSize"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"previewClipperStyle",null);_.k([_.Tw("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"onImageChange",null);_.k([_.Tw("editOnlyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"onEditOnlyModeUpdate",null);
_.k([_.A("showPreviewContainer"),_.W("design:type",String),_.W("design:paramtypes",[])],MM.prototype,"pickerModeStyle",null);MM=_.k([_.N({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],MM);
_.u(MM,"ytd-backstage-image-preview-renderer",function(){if(i61!==void 0)return i61;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return i61=v},{mode:1});var zdo;var RdS={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 teU;var BU1;var SA=function(){var v=_.g.apply(this,arguments)||this;v.a11yConfig=RdS;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.cropCoordinatesSaved=!1;v.previewSize=0;v.startPicker=!1;v.repositionOptional=!1;return v};
_.S(SA,_.g);_.c=SA.prototype;_.c.created=function(){_.YO.requestAvailability()};
_.c.ready=function(){};
_.c.onArrowKeysDown=function(v){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var E=0,n=0,f="";switch(v.detail.keyboardEvent.key){case "ArrowUp":fZs(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":fZs(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":fZs(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:n=this.imageWidth*.05*-1;break;case "ArrowRight":fZs(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:n=this.imageWidth*.05}f&&_.tQ(f)&&_.jK(this.hostElement,"iron-announce",{text:_.tQ(f)});if(n||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.tQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+n)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.tQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.jK(this.hostElement,"iron-announce",{text:v})}};
_.c.getPreviewPosition=function(v,E,n,f){return Math.round(100*(v+E*.5-n)/f)};
_.c.displayImage=function(){var v=this.JSC$13424_pickerContainer.getBoundingClientRect().width,E=this.JSC$13424_pickerContainer.getBoundingClientRect().height,n=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),f=this.JSC$13424_imageInBackground.naturalWidth,x=this.JSC$13424_imageInBackground.naturalHeight;this.displayScale=Math.max(n/f,n/x);this.imageWidth=f*this.displayScale;this.imageHeight=x*this.displayScale;this.pickerDisplayOffsetLeft=(v-n)/2;this.pickerDisplayOffsetTop=
(E-n)/2;this.imageDisplayOffsetLeft=x>f?this.pickerDisplayOffsetLeft:(v-this.imageWidth)/2;this.imageDisplayOffsetTop=f>x?this.pickerDisplayOffsetTop:(E-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.c.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13424_imageInBackground.src=this.imageData.toString(),this.JSC$13424_imageInPicker.src=this.imageData.toString(),this.JSC$13424_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.c.getSignedPosition=function(v,E,n){return E==="X"&&_.MX("HTML_DIR")==="rtl"?n==="-"?v+"px":v*-1+"px":n==="-"?v*-1+"px":v+"px"};
_.c.pickerMove=function(v){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-v.clientX,n=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
n)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.c.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.c.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.c.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.jK(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.c.getPreviewOffset=function(v,E,n,f){return E&&v&&n?(f==="X"&&_.MX("HTML_DIR")==="rtl"?n/E*v:n/E*v*-1)+"px":"0px"};
_.c.getSimpleText=function(v){return v?_.JC(v):""};
_.c.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var v=this.cropOffsetTop/this.imageHeight,E=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,n=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,f=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.K(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.jK(this.hostElement,"yt-img-crop-coordinates-update",{top:v,right:E,bottom:n,left:f})}};
_.hK.Object.defineProperties(SA.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.tQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.tQ(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.tQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.tQ(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 v,E=(v=this.learnMore.runs[0])==null?void 0:v.navigationEndpoint,n;return((n=_.C(E,_.Us))==null?void 0:n.url)||void 0}}}});
SA.prototype.onImageDataChange=SA.prototype.onImageDataChange;_.k([_.H(),_.W("design:type",Object)],SA.prototype,"imageData",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"instruction",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"a11yConfig",void 0);_.k([_.H(),_.W("design:type",Number)],SA.prototype,"imageWidth",void 0);_.k([_.H(),_.W("design:type",Number)],SA.prototype,"imageHeight",void 0);_.k([_.H(),_.W("design:type",Number)],SA.prototype,"displayScale",void 0);
_.k([_.H(),_.W("design:type",Object)],SA.prototype,"imageDisplayOffsetTop",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"imageDisplayOffsetLeft",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"pickerDisplayOffsetTop",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"pickerDisplayOffsetLeft",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"cropCoordinatesSaved",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"previewSize",void 0);
_.k([_.H(),_.W("design:type",Object)],SA.prototype,"startPicker",void 0);_.k([_.H(),_.W("design:type",Number)],SA.prototype,"pickerOffsetX",void 0);_.k([_.H(),_.W("design:type",Number)],SA.prototype,"pickerOffsetY",void 0);_.k([_.H(),_.W("design:type",Object)],SA.prototype,"repositionOptional",void 0);_.k([_.Wp("#picker-container"),_.W("design:type",HTMLElement)],SA.prototype,"JSC$13424_pickerContainer",void 0);_.k([_.Wp("#picker"),_.W("design:type",HTMLElement)],SA.prototype,"picker",void 0);
_.k([_.Wp("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],SA.prototype,"JSC$13424_imageInBackground",void 0);_.k([_.Wp("#image-in-picker"),_.W("design:type",HTMLImageElement)],SA.prototype,"JSC$13424_imageInPicker",void 0);_.k([_.Wp("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],SA.prototype,"JSC$13424_imageInPreviewClipper",void 0);_.k([_.Wp("#full-image-as-preview"),_.W("design:type",HTMLImageElement)],SA.prototype,"imageAsPreview",void 0);
_.k([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"altLabelForImage",null);_.k([_.A("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],SA.prototype,"pickerSize",null);_.k([_.A("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],SA.prototype,"imageOrientationStyle",null);
_.k([_.A("instruction.previewInstruction.editButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],SA.prototype,"editButton",null);_.k([_.A("instruction.editInstruction.saveButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],SA.prototype,"saveButton",null);_.k([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],SA.prototype,"cropOffsetTop",null);
_.k([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],SA.prototype,"cropOffsetLeft",null);_.k([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"pickerBackgroundStyle",null);_.k([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"pickerDisplayStyle",null);
_.k([_.A("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"imageInPickerStyle",null);_.k([_.A("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"previewClipperStyle",null);_.k([_.On("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SA.prototype,"onImageDataChange",null);
_.k([_.A("cropCoordinatesSaved"),_.W("design:type",String),_.W("design:paramtypes",[])],SA.prototype,"pickerModeStyle",null);_.k([_.A("instruction.editInstruction.learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],SA.prototype,"learnMore",null);_.k([_.A("learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],SA.prototype,"learnMoreUrl",null);SA=_.k([_.p5({is:"yt-img-crop-picker",disableElementRegistration:!0})],SA);
_.u(SA,"yt-img-crop-picker",function(){if(BU1===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;teU===void 0&&(teU=document.createElement("template"));var f=teU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);BU1=v}v=BU1;return v},{mode:2});var UE=function(){var v=_.g.apply(this,arguments)||this;v.errorMessage="";v.hasPreview=!1;v.isBackstagePost=!1;v.dismissButtonOverrides={size:"XS"};return v};
_.S(UE,_.g);_.c=UE.prototype;_.c.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"}}}};
_.c.detached=function(){this.removeOverlay()};
_.c.setPreview=function(v){_.K(this.hostElement).querySelector("#preview-picker").imageData=v;this.hasPreview=!0;_.jK(this.hostElement,"yt-backstage-image-select-preview")};
_.c.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var v=_.K(this.hostElement).querySelector("#dropzone");v.classList.remove("dragover");v.classList.remove("error");_.jK(this.hostElement,"yt-backstage-image-select-cancel")};
_.c.setupOverlay=function(){var v=this.imageUploadEndpoint;this.removeOverlay();if(v&&v.imageValidationInfo){var E=_.K(this.hostElement).querySelector("#dropzone"),n=_.K(this.hostElement).querySelector("#select");this.overlay=new gR(v.uploadUrl,v.channelId,v.imageValidationInfo.maxFileSizeMb,v.imageValidationInfo.allowedMaxAspectRatio,E,n,!0);_.v8(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.v8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.v8(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.v8(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.v8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.c.removeOverlay=function(){this.overlay&&(_.FX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.FX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.FX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.FX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.FX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.c.onDragOver=function(v){var E=_.K(this.hostElement).querySelector("#dropzone");_.Vt(E,"dragover",v.value)};
_.c.onPreview=function(v){this.setPreview(v.value)};
_.c.onImageError=function(v){if(v.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var E;v=(E=this.data)==null?void 0:E.fileSizeError}else if(v.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var n;v=(n=this.data)==null?void 0:n.invalidError}else if(v.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var f;v=(f=this.data)==null?void 0:f.invalidAspectRatioError}else return;this.errorMessage=_.JC(v);_.K(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.c.onImageAlert=function(v){this.onImageError(v)};
_.c.uploadPromise=function(){var v=this,E=this.overlay&&this.overlay.uploadPromise();if(E)return E.catch(function(){throw Error(v.data?_.JC(v.data.uploadFailureError):"");})};
_.hK.Object.defineProperties(UE.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var v,E;if((v=this.data)==null?0:(E=v.icon)==null?0:E.iconType)return _.jI(this.data.icon.iconType)}}});
UE.prototype.setupOverlay=UE.prototype.setupOverlay;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],UE.prototype,"rendererStamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UE.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],UE.prototype,"imageUploadEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],UE.prototype,"errorMessage",void 0);
_.k([_.H(),_.W("design:type",gR)],UE.prototype,"overlay",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],UE.prototype,"hasPreview",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],UE.prototype,"isBackstagePost",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],UE.prototype,"selectionCancel",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],UE.prototype,"previewCancel",null);
_.k([_.A("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],UE.prototype,"icon",null);_.k([_.H(),_.W("design:type",Object)],UE.prototype,"dismissButtonOverrides",void 0);_.k([_.On("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UE.prototype,"setupOverlay",null);UE=_.k([_.N({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],UE);
_.u(UE,"ytd-backstage-image-select-renderer",function(){if(zdo!==void 0)return zdo;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return zdo=v},{mode:1});var vTU;var ETP;var qM=function(){var v=_.g.apply(this,arguments)||this;v.selected=!1;return v};
_.S(qM,_.g);_.c=qM.prototype;_.c.computeSelected=function(v){return v==null?void 0:v.selected};
_.c.computeTransform=function(v,E,n){var f,x,y=(x=(f=this.imageContainer)==null?void 0:f.getBoundingClientRect())!=null?x:{width:0,height:0};f=Math.max(y.width/E,y.height/n);n=n*f*v.top;return"translateX("+this.getSignedPosition(E*f*v.left,"X","-")+") translateY("+this.getSignedPosition(n,"Y","-")+")"};
_.c.getSignedPosition=function(v,E,n){return E==="X"&&_.MX("HTML_DIR")==="rtl"?n==="-"?v+"px":v*-1+"px":n==="-"?v*-1+"px":v+"px"};
_.c.onClick=function(){var v;_.jK(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(v=this.data)==null?void 0:v.image)};
_.c.onKeyPress=function(v){if(v.keyCode===13)this.onClick()};
_.hK.Object.defineProperties(qM.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.image)==null?void 0:E.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.image){var E;v=(E=this.data)==null?void 0:E.image;return v.previewCoordinates.top!==0||v.previewCoordinates.left!==0?(E=this.computeTransform(v.previewCoordinates,v.naturalWidth,v.naturalHeight),v.naturalHeight>=v.naturalWidth?"width:inherit;transform:"+E+";":"height:inherit;transform:"+E+";"):v.naturalHeight>=v.naturalWidth?"width:inherit;":"height:inherit;"}}}});
qM.prototype.onKeyPress=qM.prototype.onKeyPress;_.k([_.Wp(".image-container"),_.W("design:type",HTMLElement)],qM.prototype,"imageContainer",void 0);_.k([_.H(),_.W("design:type",Object)],qM.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.W("design:type",Object)],qM.prototype,"selected",void 0);_.k([_.A("data.image"),_.W("design:type",Object),_.W("design:paramtypes",[])],qM.prototype,"thumbnailUrl",null);
_.k([_.A("data.image","data.image.previewCoordinates"),_.W("design:type",Object),_.W("design:paramtypes",[])],qM.prototype,"thumbnailStyle",null);_.k([_.jk("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],qM.prototype,"onKeyPress",null);qM=_.k([_.N({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],qM);
_.u(qM,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(ETP!==void 0)return ETP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ETP=v},{mode:2});var JW=function(v,E,n){n=n===void 0?!1:n;_.mP.call(this);var f=this;this.dropZoneOverlay=new fg(v);this.selectOverlay=n?new xV(E,"multiple_file",["image/*"]):new xV(E,"single_file",["image/*"]);this.handler=new _.u$(this);_.BV(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(E,"click",function(){f.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.S(JW,_.mP);JW.prototype.onChange=function(v){var E;(E=v.files)!=null&&E.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:v.files}))};var Kq=function(){var v=_.g.apply(this,arguments)||this;v.addImageErrorMessage="";v.errorMessage="";v.images=[];v.selectedImageIndex=0;v.modern=_.Z("web_modern_buttons");v.maxNumImagesPerPost=_.WG("max_num_images_per_post_web_ui");v.JSC$13439_imageId=0;return v};
_.S(Kq,_.g);_.c=Kq.prototype;_.c.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.jK(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.c.observeDragToReorder=function(){var v=this;if(this.showImagesPreview){var E,n=w$S(_.ko.getInstance(),(E=this.data)==null?void 0:E.dragToReorderTooltip);_.wh.addLowPriorityJob(function(){_.LG(v.hostElement,n,v.thumbnailDragDropArea)})}};
_.c.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}}};
_.c.computeThumbnail=function(v){return(v==null?void 0:v.localImageSrc)||void 0};
_.c.onRendererstamperFinished=function(){_.j31(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.c.handleDrop=function(v){var E=v.currDragItem;if(E!=null&&E.data){v=this.images[this.selectedImageIndex];var n=E.data.image,f=this.images.indexOf(n)||0;E=_.OQ(E.parentNode.children,E);this.images.splice(f,1);this.images.splice(E,0,n);this.images=[].concat(_.s8(this.images));this.selectedImageIndex=this.images.indexOf(v)}};
_.c.setUpImagePicker=function(){var v=this.imageUploadEndpoint;v&&v.imageValidationInfo&&(this.uploadManager=new ZM(v.uploadUrl,v.channelId),this.initialPicker||(this.initialPicker=new JW(this.dropzone,this.selectLink,!0),_.v8(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new JW(this.addImageButtonContainer,this.addImageSelectButton),_.v8(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.v8(this.JSC$13439_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.v8(this.JSC$13439_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.v8(_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.c.detached=function(){this.initialPicker&&(_.FX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.FX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.c.onInitialSelectImages=function(v){var E=this;return _.X(function(n){return _.m(n,E.onSelectImages(v,!1),0)})};
_.c.onAddImage=function(v){var E=this;return _.X(function(n){return _.m(n,E.onSelectImages(v,!0),0)})};
_.c.onSelectImages=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t;return _.X(function(QE){switch(QE.nextAddress){case 1:E?n.addImageErrorMessage="":(n.images=[],n.errorMessage="");f=v.detail;x=n.validateImages([].concat(_.s8(f)));if(x!=="")return E?n.addImageErrorMessage=x:n.errorMessage=x,QE.return();y=[].concat(_.s8(f)).map(function(MF){return(new DO(n.maxAspectRatio,!1,!0)).transform(MF)});
return _.m(QE,Promise.allSettled(y),2);case 2:Q=QE.yieldResult,e=_.p(Q.entries()),F=e.next();case 3:if(F.done){QE.jumpTo(5);break}b=F.value;l=_.p(b);r=l.next().value;a=l.next().value;M=r;U=a;if(U.status!=="fulfilled"){V=Y=d=void 0;E?n.addImageErrorMessage=_.JC((d=n.data)==null?void 0:d.invalidError):n.errorMessage=n.errorMessage===""?_.JC((Y=n.data)==null?void 0:Y.invalidError):_.JC((V=n.data)==null?void 0:V.multiFileError);QE.jumpTo(4);break}O=U.value;O.cropped&&_.jK(n.hostElement,"yt-backstage-multi-image-cropped");
if(O.invalidAspectRatio){xX=L=T=void 0;E?n.addImageErrorMessage=_.JC((T=n.data)==null?void 0:T.invalidAspectRatioError):n.errorMessage=n.errorMessage===""?_.JC((L=n.data)==null?void 0:L.invalidAspectRatioError):_.JC((xX=n.data)==null?void 0:xX.multiFileError);QE.jumpTo(4);break}return _.m(QE,n41(n.JSC$13439_imageId,v.detail[M],O.transformedData),8);case 8:t=QE.yieldResult,n.images.push(t),n.JSC$13439_imageId++;case 4:F=e.next();QE.jumpTo(3);break;case 5:if(n.errorMessage!==""||n.addImageErrorMessage!==
"")return QE.return();E?O6X(n.uploadManager,[n.images[n.images.length-1]]):O6X(n.uploadManager,n.images);n.images=[].concat(_.s8(n.images));n.selectedImageIndex=E?Math.max(n.images.length-1,0):0;_.jK(n.hostElement,"yt-backstage-multi-image-select");_.yQ(QE)}})};
_.c.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.c.validateImages=function(v){if(v.length>this.maxNumImagesPerPost){var E;return _.JC((E=this.data)==null?void 0:E.multiImageExceedMaxImageCountError)}var n=1048576*this.maxFileSizeMb;v=v.filter(function(y){return y.size>n}).length;
if(v===0)return"";var f,x;v=v>1?(f=this.data)==null?void 0:f.multiFileError:(x=this.data)==null?void 0:x.fileSizeError;return _.JC(v)};
_.c.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.s8(this.images));this.selectedImageIndex=0};
_.c.repositionImage=function(v){this.images[this.selectedImageIndex].previewCoordinates=v.event_.detail;this.images=[].concat(_.s8(this.images))};
_.c.getAllUploadStatuses=function(){var v=this,E,n,f,x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.uploadManager.getAllUploadStatuses(),2);E=y.yieldResult;n=_.p(E);for(f=n.next();!f.done;f=n.next())if(x=f.value,x.encryptedBlobId===void 0)return y.return(kLF(v.uploadManager));return y.return(E)})};
_.c.hasImages=function(){return this.images.length>0};
_.c.cancel=function(){for(var v=this.uploadManager,E=_.p(v.imagesUploadData),n=E.next();!n.done;n=E.next())v.cancel(n.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.jK(this.hostElement,"yt-backstage-multi-image-cancel")};
_.hK.Object.defineProperties(Kq.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.imageUploadEndpoint)==null?void 0:(E=v.imageValidationInfo)==null?void 0:E.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.imageUploadEndpoint)==null?void 0:(E=v.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var v,E;if((v=this.data)==null?0:(E=v.icon)==null?0:E.iconType)return _.jI(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.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 v=this;return(this.images||[]).map(function(E,n){return{renderer:{image:E,selected:n===v.selectedImageIndex}}})}}});
Kq.prototype.setUpImagePicker=Kq.prototype.setUpImagePicker;Kq.prototype.onRendererstamperFinished=Kq.prototype.onRendererstamperFinished;Kq.prototype.observeDragToReorder=Kq.prototype.observeDragToReorder;Kq.prototype.observeAddImageError=Kq.prototype.observeAddImageError;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Kq.prototype,"rendererStamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.OxS),_.W("design:type",Object)],Kq.prototype,"ytReorderableBehavior",void 0);_.k([_.Wp("#dropzone"),_.W("design:type",HTMLElement)],Kq.prototype,"dropzone",void 0);_.k([_.Wp("#select-link"),_.W("design:type",HTMLElement)],Kq.prototype,"selectLink",void 0);_.k([_.Wp("#thumbnail-drag-drop-area"),_.W("design:type",HTMLElement)],Kq.prototype,"thumbnailDragDropArea",void 0);_.k([_.Wp("#add-image-button-container"),_.W("design:type",HTMLElement)],Kq.prototype,"addImageButtonContainer",void 0);
_.k([_.Wp("#add-image-button"),_.W("design:type",HTMLElement)],Kq.prototype,"addImageSelectButton",void 0);_.k([_.Wp("#image-preview-container"),_.W("design:type",Object)],Kq.prototype,"JSC$13439_imagePreviewContainer",void 0);_.k([_.H(),_.W("design:type",Object)],Kq.prototype,"addImageErrorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],Kq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Kq.prototype,"errorMessage",void 0);
_.k([_.H(),_.W("design:type",Object)],Kq.prototype,"imageUploadEndpoint",void 0);_.k([_.H(),_.W("design:type",Array)],Kq.prototype,"images",void 0);_.k([_.H(),_.W("design:type",JW)],Kq.prototype,"initialPicker",void 0);_.k([_.H(),_.W("design:type",JW)],Kq.prototype,"addImagePicker",void 0);_.k([_.H(),_.W("design:type",ZM)],Kq.prototype,"uploadManager",void 0);_.k([_.H(),_.W("design:type",Object)],Kq.prototype,"selectedImageIndex",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kq.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kq.prototype,"maxNumImagesPerPost",void 0);_.k([_.A("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],Kq.prototype,"maxAspectRatio",null);_.k([_.A("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],Kq.prototype,"maxFileSizeMb",null);
_.k([_.A("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kq.prototype,"dropIcon",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kq.prototype,"selectionCancel",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kq.prototype,"previewCancel",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kq.prototype,"dataForAddImageButton",null);
_.k([_.A("errorMessage"),_.W("design:type",String),_.W("design:paramtypes",[])],Kq.prototype,"dropzoneClass",null);_.k([_.A("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Kq.prototype,"showImagesPreview",null);_.k([_.A("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Kq.prototype,"containMaxImages",null);_.k([_.On("addImageErrorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kq.prototype,"observeAddImageError",null);
_.k([_.On("showImagesPreview"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kq.prototype,"observeDragToReorder",null);_.k([_.A("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kq.prototype,"selectedImageData",null);_.k([_.A("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],Kq.prototype,"thumbnailRenderers",null);
_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kq.prototype,"onRendererstamperFinished",null);_.k([_.On("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kq.prototype,"setUpImagePicker",null);Kq=_.k([_.N({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Kq);
_.u(Kq,"ytd-backstage-multi-image-select-renderer",function(){if(vTU!==void 0)return vTU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return vTU=v},{mode:1});var nT1;var oTP;var f31;var dv=function(){var v=_.g.apply(this,arguments)||this;v.boundCaptureFocus=function(E){v.onCaptureFocus(E)};
return v};
_.S(dv,_.g);_.c=dv.prototype;_.c.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.c.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.c.onCaptureFocus=function(v){_.MQ(v).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.c.getIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.c.onSelect=function(){var v;if((v=this.data)==null?0:v.onSelectCommand)if(_.Z("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var E;((E=_.C(this.data.onSelectCommand.commandMetadata,_.Dl))==null?0:E.url)?_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.P().resolve(_.OO).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.hK.Object.defineProperties(dv.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.JC(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}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],dv.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dv.prototype,"data",void 0);_.k([_.Wp("#item"),_.W("design:type",HTMLElement)],dv.prototype,"item",void 0);_.k([_.A("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],dv.prototype,"label",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dv.prototype,"value",null);dv=_.k([_.N({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],dv);
_.u(dv,"ytd-privacy-dropdown-item-renderer",function(){if(f31!==void 0)return f31;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return f31=v},{mode:1});var IH=function(){var v=_.g.apply(this,arguments)||this;v.value="";v.label="";v.disabled=!1;return v};
_.S(IH,_.g);_.c=IH.prototype;_.c.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"}}}};
_.c.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.c.dataChanged=function(){this.reset()};
_.c.valueChanged=function(){var v;if(this.value&&(v=this.data)!=null&&v.entries){v=_.p(this.data.entries);for(var E=v.next();!E.done;E=v.next())if((E=this.getRendererForEntry(E.value))&&this.getItemRendererValue(E)===this.value){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}}};
_.c.setInitialLabel=function(){if(this.data&&this.data.entries)for(var v=_.p(this.data.entries),E=v.next();!E.done;E=v.next())if(E=this.getRendererForEntry(E.value)){if(E.isSelected){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}this.data.label&&(this.label=this.data.label)}};
_.c.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var v=_.p(this.data.entries),E=v.next();!E.done;E=v.next()){E=this.getRendererForEntry(E.value);var n=void 0;if((n=E)==null?0:n.isSelected)return this.getItemRendererValue(E)||-1}return-1};
_.c.getItemRendererValue=function(v){return"stringValue"in v||"int32Value"in v?v.stringValue||v.int32Value||null:null};
_.c.getRendererForEntry=function(v){return v.dropdownItemRenderer||v.privacyDropdownItemRenderer||v.navigationDropdownItemRenderer||null};
_.c.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("value-changed",this.value))};
_.c.updateValueFromBinding=function(v){this.value=v.detail.value};
IH.prototype.valueChangedForBinding=IH.prototype.valueChangedForBinding;IH.prototype.valueChanged=IH.prototype.valueChanged;IH.prototype.dataChanged=IH.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],IH.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],IH.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],IH.prototype,"value",void 0);_.k([_.H(),_.W("design:type",Object)],IH.prototype,"label",void 0);_.k([_.Wp("#entries"),_.W("design:type",Object)],IH.prototype,"entries",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IH.prototype,"disabled",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IH.prototype,"dataChanged",null);
_.k([_.Tw("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IH.prototype,"valueChanged",null);_.k([_.On("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IH.prototype,"valueChangedForBinding",null);IH=_.k([_.N({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],IH);
_.u(IH,"ytd-flat-dropdown-renderer",function(){if(oTP!==void 0)return oTP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oTP=v},{mode:1});var xkl;var Yg=function(){var v=_.g.apply(this,arguments)||this;v.quizOptions=[];v.explanationPlaceholderText="";v.optionPlaceholderText="";v.correctAnswerIndex=-1;v.isMarkAnswerTooltipShown=!1;v.timer=0;return v};
_.S(Yg,_.g);_.c=Yg.prototype;_.c.dataChanged=function(){this.optionPlaceholderText=_.JC(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.JC(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.c.onMarkCorrectAnswer=function(v){var E,n=((E=this.quizOptions[this.correctAnswerIndex])==null?void 0:E.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[v.model.index]=Object.assign({},this.quizOptions[v.model.index],{explanationText:n,isCorrect:!0});this.correctAnswerIndex=v.model.index;this.quizOptions=[].concat(_.s8(this.quizOptions))};
_.c.updatePlaceholderTexts=function(){for(var v=!1,E=[],n=0;n<this.quizOptions.length;n++){var f=this.optionPlaceholderText+" "+(n+1),x=void 0;((x=this.quizOptions[n])==null?void 0:x.placeholderText)!==f?(v=!0,E.push(Object.assign({},this.quizOptions[n],{placeholderText:f}))):E.push(this.quizOptions[n])}v&&(this.quizOptions=E);this.isValid()?_.jK(this.hostElement,"yt-commentbox-post-enable"):_.jK(this.hostElement,"yt-commentbox-post-disable")};
_.c.getSimpleString=function(v){return _.JC(v)};
_.c.createQuizOptions=function(v){var E=[],n;v=(n=v==null?void 0:v.minQuizOptions)!=null?n:0;for(n=0;n<v;n++)E.push(this.createQuizOption());return E};
_.c.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.s8(this.quizOptions),[this.createQuizOption()]))};
_.c.onInput=function(){this.quizOptions=[].concat(_.s8(this.quizOptions))};
_.c.onExplanationInput=function(){_.jK(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.c.onRemoveQuizOption=function(v){this.quizOptions.splice(v.model.index,1);v.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:v.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.s8(this.quizOptions));this.quizOptions.length===0&&_.jK(this.hostElement,"yt-quiz-attachment-dismiss")};
_.c.updateHintRenderer=function(){var v=this;clearTimeout(this.timer);this.timer=setTimeout(function(){v.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.c.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var v=0,E=0,n=_.p(this.quizOptions),f=n.next();!f.done;f=n.next()){f=f.value;var x=void 0;if(((x=f.optionText)==null?void 0:x.trim())!==""||f.isCorrect){f.isCorrect&&E++;x=void 0;if(this.hasCustomOptionText&&((x=f.optionText)==null?void 0:x.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;v++}}return v>=
Number(this.editorInfo.minQuizOptions)&&E===1};
_.c.getPostCreateOptions=function(){for(var v=[],E=_.p(this.quizOptions),n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;((f=n.optionText)==null?void 0:f.trim())!==""&&v.push({pollOption:{text:n.optionText,explanation:n.explanationText},isCorrect:n.isCorrect})}return v};
_.c.getExplanationText=function(){var v;return((v=this.quizOptions[this.correctAnswerIndex])==null?void 0:v.explanationText)||""};
_.c.maybeDisplayMarkAnswerEduToolTip=function(){var v,E,n,f,x,y,Q;this.shouldShowMarkAnswerTooltip()&&((v=this.editorInfo)==null?0:(E=v.markAnswerButton)==null?0:(n=E.buttonRenderer)==null?0:(f=n.hint)==null?0:(x=f.hintRenderer)==null?0:(y=x.content)==null?0:(Q=y.bubbleHintRenderer)==null?0:Q.text)&&(_.ko.getInstance(),v=Wg(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,(v==null?void 0:v.length)>0&&this.optionSelectors&&_.WE(v[0],this.optionSelectors[0]))};
_.c.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var v=0,E=_.p(this.quizOptions),n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;((f=n.optionText)==null?void 0:f.trim())!==""&&v++;if(n.isCorrect)return!1}return v<2?!1:!0};
_.c.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.c.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.c.updateOptionTextFromBinding=function(v){if(v.target){var E=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(v.target);if(E>=0){var n;this.quizOptions[E].optionText=(n=v.detail.value)!=null?n:""}}};
_.hK.Object.defineProperties(Yg.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.editorInfo)==null?void 0:(E=v.addOptionButton)==null?void 0:E.buttonRenderer;n&&(n.style="STYLE_SUGGESTIVE",n.size="SIZE_SMALL",n.isDisabled=!this.isAllowedToAddOption);return(n==null?0:n.text)?n:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var v,E;return this.quizOptions.length<((E=(v=this.editorInfo)==null?void 0:v.maxQuizOptions)!=null?E:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(v){var E;return(E=v.optionText)==null?void 0:E.trim()})}}});
Yg.prototype.updatePlaceholderTexts=Yg.prototype.updatePlaceholderTexts;Yg.prototype.dataChanged=Yg.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],Yg.prototype,"editorInfo",void 0);_.k([_.H(),_.W("design:type",Array)],Yg.prototype,"quizOptions",void 0);_.k([_.H(),_.W("design:type",Object)],Yg.prototype,"explanationPlaceholderText",void 0);_.k([_.$y(".option-selector-button"),_.W("design:type",Array)],Yg.prototype,"optionSelectors",void 0);
_.k([_.Tw("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yg.prototype,"dataChanged",null);_.k([_.A("editorInfo","isAllowedToAddOption","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yg.prototype,"addAnswerButton",null);_.k([_.A("editorInfo","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yg.prototype,"isAllowedToAddOption",null);
_.k([_.Tw("quizOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yg.prototype,"updatePlaceholderTexts",null);_.k([_.A("quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yg.prototype,"hasCustomOptionText",null);Yg=_.k([_.N({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Yg);
_.u(Yg,"ytd-backstage-quiz-editor-renderer",function(){if(xkl!==void 0)return xkl;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xkl=v},{mode:2});var cE1;var yEw=(wN.FIRSTDAYOFWEEK+1)%7;var pro;var Qn1=[],XrF=0,eJ1=0;XrF=0;eJ1=24;if(.25*(eJ1-XrF)<0)pro=[];else{for(var F11=XrF;F11<eJ1;F11+=.25)Qn1.push(F11);pro=Qn1}var mk1=pro.map(function(v){v=v*60*60;return{secondsSinceMidnight:v,text:(new SN(7)).format(new Date(0,0,0,0,0,v))}});var wrg;var hW=function(){var v=_.g.apply(this,arguments)||this;v.skipNextOpenDialog=!1;v.errorMessage="";return v};
_.S(hW,_.g);_.c=hW.prototype;_.c.attached=function(){var v=this,E=new MutationObserver(function(){v.JSC$13482_calendarMain.scrollHeight>0&&(E.disconnect(),v.calendarConfig&&v.calendarConfig.selectedDate&&v.scrollToDate())});
E.observe(this.JSC$13482_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){E.disconnect()},1E3)};
_.c.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.c.onDateTextChange=function(){if(this.calendarConfig){var v=this.validateDateText();v.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(v.details)):this.textbox.setAttribute("invalid","")}};
_.c.handleDayClick=function(v){v.model.day.date&&(this.commitDate(v.model.day.date),this.dialog.close())};
_.c.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var v=mJs(this.calendarConfig.selectedDate,this.renderData);v!==void 0&&this.JSC$13482_calendarMain.scrollToIndex(v)}};
_.c.scrollToNextMonth=function(){this.JSC$13482_calendarMain.scrollToIndex(this.JSC$13482_calendarMain.firstVisibleIndex+1)};
_.c.scrollToPrevMonth=function(){this.JSC$13482_calendarMain.firstVisibleIndex===0&&this.JSC$13482_calendarMain.scrollTo(0,0);this.JSC$13482_calendarMain.scrollToIndex(this.JSC$13482_calendarMain.firstVisibleIndex-1)};
_.c.onFormSubmit=function(v){v.preventDefault();this.calendarConfig&&(v=this.validateDateText(),v.isValid&&(this.commitDate(v.details),this.dialog.close()))};
_.c.onEscOrClickingOutside=function(v){v=v.detail.path&&!!v.detail.path.length&&v.detail.path[0];if(v.classList.contains("ytd-calendar-date-picker")){v===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var E=0;E<this.dropdownButton.children.length;E++)this.dropdownButton.children[E]===v&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}v=this.textbox.value!==this.dateText;E=this.validateDateText();v&&E.isValid&&this.commitDate(E.details);this.dialog.close();this.textbox.value=
this.dateText};
_.c.commitDate=function(v){this.calendarConfig&&(this.set("calendarConfig.selectedDate",v),_.jK(this.hostElement,"ytd-calendar-date-selected",v))};
_.c.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var v=this.textbox.value;var E=new Date;v=(new hdA(2)).parse(v,E,{validate:!0})===v.length?edX(E):void 0;if(!v)return this.errorMessage=_.tQ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};E=this.calendarConfig.start;var n=this.calendarConfig.end;if(ci9(v,E))return this.errorMessage=_.tQ("ENTER_DATE_OR_LATER",{allowed_date:X4I(E)}),{isValid:!1,details:void 0};if(ci9(n,v))return this.errorMessage=
_.tQ("ENTER_DATE_OR_EARLIER",{allowed_date:X4I(n)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:v}};
_.hK.Object.defineProperties(hW.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?X4I(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var v=this.calendarConfig,E=[],n=0;n<7;n++)E.push(wN.NARROWWEEKDAYS[(n+yEw)%7]);n=[];for(var f=new Date(v.start.year,v.start.month);f.getFullYear()<v.end.year||f.getFullYear()===v.end.year&&f.getMonth()<=v.end.month;){var x=n,y=x.push,Q=f.getFullYear(),e=f.getMonth(),F=v,b=void 0,l=[],r=Object.freeze({extraCssClass:"invisible",debugClass:""}),a=new Date(Q,e),M=edX(a);a=a.getDay();for(var U=edX(new Date);M.month===
e;){a!==yEw&&b||(b=Array.from({length:7}).fill(r),l.push(b));var d={date:{year:Q,month:e,day:M.day},extraCssClass:"",debugClass:""};F.selectedDate&&d.date&&xJs(d.date,F.selectedDate)&&(d.extraCssClass+=" selected");if(ci9(M,F.start)||ci9(F.end,M))d.extraCssClass+=" disabled";xJs(M,U)&&(d.extraCssClass+=" today");d.extraCssClass=d.extraCssClass.trim();b[(a-yEw+7)%7]=d;M=p4G(M);a=(a+1)%7}y.call(x,{weeks:l,monthLabel:wN.SHORTMONTHS[e]+" "+Q,year:Q,month:e,monthLabelExtraCssClass:l[0][2]===r?"shift-down-label":
""});f.setMonth(f.getMonth()+1)}return{months:n,daysOfWeekLabel:E}}}}});
hW.prototype.onEscOrClickingOutside=hW.prototype.onEscOrClickingOutside;hW.prototype.scrollToDate=hW.prototype.scrollToDate;_.k([_.H(),_.W("design:type",Object)],hW.prototype,"calendarConfig",void 0);_.k([_.H(),_.W("design:type",Object)],hW.prototype,"skipNextOpenDialog",void 0);_.k([_.H(),_.W("design:type",Object)],hW.prototype,"errorMessage",void 0);_.k([_.Wp("#textbox"),_.W("design:type",HTMLInputElement)],hW.prototype,"textbox",void 0);
_.k([_.Wp("#calendar-dialog"),_.W("design:type",Object)],hW.prototype,"dialog",void 0);_.k([_.Wp("#calendar-main"),_.W("design:type",Object)],hW.prototype,"JSC$13482_calendarMain",void 0);_.k([_.Wp("#date-picker"),_.W("design:type",HTMLElement)],hW.prototype,"dropdownButton",void 0);_.k([_.A("calendarConfig.selectedDate"),_.W("design:type",String),_.W("design:paramtypes",[])],hW.prototype,"dateText",null);
_.k([_.A("calendarConfig","calendarConfig.selectedDate"),_.W("design:type",Object),_.W("design:paramtypes",[])],hW.prototype,"renderData",null);_.k([_.On("renderData","calendarConfig.selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"scrollToDate",null);_.k([_.jk("iron-overlay-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hW.prototype,"onEscOrClickingOutside",null);
hW=_.k([_.p5({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],hW);
_.u(hW,"ytd-calendar-date-picker",function(){if(wrg!==void 0)return wrg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wrg=v},{mode:2});var bOF=_.tQ("UTC_OFFSET_FORMAT",{utc_offset:(new SN("Z")).format(new Date)}),l3w=(new Date).getTimezoneOffset()*-60,snF=new Date,rEg,Ppz=MD(snF.getTimezoneOffset());rEg=H21(Nn6(Ppz,snF));var a31=_.tQ("LOCAL_TIME_GMT_LABEL",{gmt_text:rEg.replace("+0","+").replace("-0","-").replace(":00","")}),AW=function(){var v=_.g.apply(this,arguments)||this;v.selectedTimeIndex=0;v.selectedTimezoneIndex=0;v.timeOfDayOptions=mk1;return v};
_.S(AW,_.g);_.c=AW.prototype;_.c.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var v=QIX();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=v,this.selectedTimeIndex=0;else{var E=F6N(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},v,{selectedDate:E.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(n){return n.secondsSinceMidnight===E.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.c.onDatePicked=function(v){this.selectedDate=v.detail};
_.c.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.jK(this.hostElement,"ytd-date-time-selection-cancelled")};
_.c.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var v=this.selectedDate;v=new Date(v.year,v.month,v.day);_.jK(this.hostElement,"ytd-date-time-selection-update",Math.floor(v.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+v.getTimezoneOffset()*60))}};
_.c.getTimezoneFormat=function(v){return v.localizedDisplayText?v.localizedDisplayText:_.tQ("TIMEZONE_FORMAT",{utc_offset_text:""+v.localizedUtcOffset,city_name:""+v.localizedName})};
_.c.updateSelectedTimeIndexFromBinding=function(v){this.selectedTimeIndex=v.detail.value};
_.c.updateSelectedTimezoneIndexFromBinding=function(v){this.selectedTimezoneIndex=v.detail.value};
_.hK.Object.defineProperties(AW.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data.timezoneOptions;var E={name:"Etc/Unknown",localizedName:_.tQ("LOCAL_TIME_LABEL"),localizedUtcOffset:bOF,utcOffsetSec:""+l3w,localizedDisplayText:a31};v?v.length&&v[0].name!==E.name&&(v[0].localizedDisplayText||(E.localizedDisplayText=""),v.unshift(E)):v=[E];return v}}},
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]}}});
AW.prototype.onDateTimeTimezoneChange=AW.prototype.onDateTimeTimezoneChange;AW.prototype.onDatePicked=AW.prototype.onDatePicked;AW.prototype.updateDefaultSelectedValue=AW.prototype.updateDefaultSelectedValue;_.k([_.H(),_.W("design:type",Object)],AW.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],AW.prototype,"calendarConfig",void 0);_.k([_.H(),_.W("design:type",Object)],AW.prototype,"selectedDate",void 0);_.k([_.H(),_.W("design:type",Object)],AW.prototype,"selectedTimeIndex",void 0);
_.k([_.H(),_.W("design:type",Object)],AW.prototype,"selectedTimezoneIndex",void 0);_.k([_.Wp("#time-listbox"),_.W("design:type",Object)],AW.prototype,"timeListBox",void 0);_.k([_.Wp("#timezone-listbox"),_.W("design:type",Object)],AW.prototype,"timezoneListBox",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],AW.prototype,"rendererStamperBehavior",void 0);_.k([_.A("data.timezoneOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],AW.prototype,"timeZones",null);
_.k([_.Tw("data","timeZones"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AW.prototype,"updateDefaultSelectedValue",null);_.k([_.A("selectedTimezoneIndex","timeZones"),_.W("design:type",Object),_.W("design:paramtypes",[])],AW.prototype,"selectedTimezone",null);_.k([_.A("selectedTimeIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],AW.prototype,"selectedTime",null);
_.k([_.jk("ytd-calendar-date-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AW.prototype,"onDatePicked",null);_.k([_.On("selectedTimezone","selectedTime","selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AW.prototype,"onDateTimeTimezoneChange",null);AW=_.k([_.N({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],AW);
_.u(AW,"ytd-date-time-picker-renderer",function(){if(cE1!==void 0)return cE1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return cE1=v},{mode:1});var ZOz;var VD=function(){var v=_.g.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.dismissTapHandler()};
v.dismissButtonOverrides={size:"XS"};return v};
_.S(VD,_.g);VD.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}}}}}};
VD.prototype.dismissTapHandler=function(){_.jK(this.hostElement,"yt-backstage-attachment-dismissed")};
VD.prototype.computeAttachmentType=function(v){return v?v.backstageImageRenderer?"image":v.videoRenderer?"video":"none":"none"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],VD.prototype,"attachmentPreview",void 0);_.k([_.H(),_.W("design:type",Object)],VD.prototype,"dismissButton",void 0);_.k([_.H(),_.W("design:type",Object)],VD.prototype,"boundOnTapDismissButton",void 0);
_.k([_.H(),_.W("design:type",Object)],VD.prototype,"dismissButtonOverrides",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.W("design:type",String)],VD.prototype,"attachmentType",void 0);VD=_.k([_.N({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],VD);
_.u(VD,"ytd-backstage-dismissable-attachment",function(){if(ZOz!==void 0)return ZOz;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZOz=v},{mode:1});var Cp4;var DM=function(){var v=_.g.apply(this,arguments)||this;v.selectedVideoId=void 0;v.picker=void 0;v.dismissButtonOverrides={size:"XS"};v.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return v};
_.S(DM,_.g);_.c=DM.prototype;_.c.onServiceRequestCompleted=function(v){v.stopPropagation()};
_.c.handleAddVideoPreviewAction=function(v){v=this.get("addVideoPreviewAction",v);this.onGetVideoPreviewSuccess(v)};
_.c.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}}}}}};
_.c.onLaunchVideoPicker=function(v){var E=this,n=_.JC(this.get("addVideoLinkAction.title",v)),f=this.get("addVideoLinkAction.onePickHostId",v);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",v);f&&(this.picker||(n=_.DXw(_.Ad9(f).setTitle(n).addView(YOX()).addView(IU1()),function(x){E.onPickVideo(x)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",v)||n.addView("youtube"),this.picker=n.build()),this.picker.setVisible(!0))};
_.c.onPickVideo=function(v){if(v)if(v.action==="cancel")_.jK(this.hostElement,"yt-video-link-button-cancel");else if(v.action==="picked"){v=v.docs;if(!v||v.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(v=(v==null?0:v.length)?v[0]:void 0)?v.id:void 0;this.setVideoPreview()}};
_.c.setVideoPreview=function(){var v=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){v.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.c.onGetVideoPreviewSuccess=function(v){if(v&&v.videoPreview&&v.cancelButton)this.videoPreview=v.videoPreview,this.cancelButton=v.cancelButton,_.jK(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.c.onGetVideoPreviewError=function(){this.cancel()};
_.c.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.jK(this.hostElement,"yt-video-link-cancel")};
_.c.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
DM.prototype.onServiceRequestCompleted=DM.prototype.onServiceRequestCompleted;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],DM.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],DM.prototype,"videoPreview",void 0);_.k([_.H(),_.W("design:type",Object)],DM.prototype,"cancelButton",void 0);_.k([_.H(),_.W("design:type",Object)],DM.prototype,"getVideoPreviewCommand",void 0);_.k([_.H(),_.W("design:type",Object)],DM.prototype,"dismissButtonOverrides",void 0);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],DM.prototype,"onServiceRequestCompleted",null);DM=_.k([_.N({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],DM);
_.u(DM,"ytd-backstage-video-link-attachment",function(){if(Cp4!==void 0)return Cp4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Cp4=v},{mode:1});var MdP;var SFz;var Uk1;var HK=function(){return _.g.apply(this,arguments)||this};
_.S(HK,_.g);HK.prototype.dataChanged=function(){this.active=!1};
HK.prototype.onTap=function(){_.jK(this.hostElement,"yt-select-emoji-suggestion",this.data)};
HK.prototype.identity=function(v){return v};
_.hK.Object.defineProperties(HK.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;if((v=this.data)==null?0:(E=v.image)==null?0:(n=E.thumbnails)==null?0:(f=n[0])==null?0:f.url)return v=this.data.image.thumbnails[0].url,v.startsWith("data:image/svg+xml")?Qv(v):_.bW(v)}}});
HK.prototype.dataChanged=HK.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],HK.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],HK.prototype,"active",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HK.prototype,"dataChanged",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HK.prototype,"imageSrc",null);
HK=_.k([_.N({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],HK);
_.u(HK,"ytd-emoji-suggestion",function(){if(Uk1!==void 0)return Uk1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Uk1=v},{mode:1});var qFi=/.*([:@#].*?)$/,kg=function(){var v=_.g.apply(this,arguments)||this;v.suggestions=[];v.suggestionIndex=-1;v.JSC$13510_lastSuggestionRange=null;return v};
_.S(kg,_.g);_.c=kg.prototype;_.c.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.c.getSuggestions=function(v){var E=[],n=Go4(this.emojiManager,v.substr(0,3));if(n)for(var f in n)if(f.toLocaleLowerCase().indexOf(v)===0){var x=n[f];if(x&&x.emojiId){x=Pm(this.emojiManager,x.emojiId);var y=void 0,Q=void 0,e=void 0,F=void 0,b=((y=x)==null?0:y.isCustomEmoji)?(Q=x)==null?void 0:(e=Q.shortcuts)==null?void 0:e[0]:(F=x)==null?void 0:F.emojiId;y=void 0;E.push({suggestion:{image:(y=x)==null?void 0:y.image,alt:b,text:f}});if(E.length>=64)break}}return E?E.sort(function(l,r){return r.suggestion.text<
l.suggestion.text?-1:r.suggestion.text===l.suggestion.text?0:1}):null};
_.c.insertSuggestion=function(v){_.jK(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13510_lastSuggestionRange,text:v.alt});this.dropdown.opened=!1};
_.c.updateSuggestionsAtCaret=function(v){this.updateSuggestions(v,this.retrieveTextBeforeRange(v))};
_.c.offsetStartOfRangeBy=function(v,E){v.startOffset>=E&&v.setStart(v.startContainer,v.startOffset-E)};
_.c.updateSuggestions=function(v,E){var n=this;this.JSC$13510_lastSuggestionRange&&(this.JSC$13510_lastSuggestionRange.detach(),this.JSC$13510_lastSuggestionRange=null);if((E=qFi.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2||E===":_")&&(this.offsetStartOfRangeBy(v,E.length),this.JSC$13510_lastSuggestionRange=v,(v=this.getSuggestions(E))&&v.length)){this.suggestions=v;_.IS(this,function(){n.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.c.onKeyDown=function(v){if(this.dropdown.opened)switch(v.key){case "Escape":this.dropdown.opened=!1;v.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);v.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.c.onKeyUp=function(v,E){switch(v.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(E);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(E)}};
_.c.onKeyPress=function(v){v.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),v.preventDefault())};
_.c.changeSuggestionIndex=function(v){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(v+this.suggestions.length)%this.suggestions.length,v=this.dropdownContent.children[this.suggestionIndex],v.active=!0,this.dropdownContent.scrollTop=v.offsetTop)};
_.c.retrieveTextBeforeRange=function(v){var E=v.startContainer;return E&&E.nodeType===Node.TEXT_NODE?E.textContent.substr(0,v.startOffset):""};
kg.prototype.onKeyPress=kg.prototype.onKeyPress;kg.prototype.onKeyUp=kg.prototype.onKeyUp;kg.prototype.onKeyDown=kg.prototype.onKeyDown;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Array)],kg.prototype,"suggestions",void 0);_.k([_.H(),_.W("design:type",_.sp)],kg.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Number)],kg.prototype,"verticalSuggestionsOffset",void 0);
_.k([_.Wp("#dropdown"),_.W("design:type",Object)],kg.prototype,"dropdown",void 0);_.k([_.Wp("#dropdown-content"),_.W("design:type",HTMLDivElement)],kg.prototype,"dropdownContent",void 0);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],kg.prototype,"onKeyDown",null);_.k([_.jk("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent,Range]),_.W("design:returntype")],kg.prototype,"onKeyUp",null);
_.k([_.jk("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],kg.prototype,"onKeyPress",null);kg=_.k([_.N({disableElementRegistration:!0,is:"ytd-emoji-input"})],kg);
_.u(kg,"ytd-emoji-input",function(){if(SFz!==void 0)return SFz;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SFz=v},{mode:2});var JES;var WK=function(){var v=_.g.apply(this,arguments)||this;v.hasMaxOptions=!1;return v};
_.S(WK,_.g);_.c=WK.prototype;_.c.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.c.setPrefilledChoices=function(v){var E=this;this.set("pollOptions",[]);var n;for(n=0;n<Math.min(v.length,this.data.maxPollOptions);n++)this.push("pollOptions",v[n].substring(0,this.data.maxPollOptionChars));for(;n<this.data.minPollOptions;n++)this.push("pollOptions","");this.hasMaxOptions=n>=this.data.maxPollOptions;_.IS(this,function(){for(var f=E.pollOptions,x=_.K(E.hostElement).querySelectorAll(".poll-option-input"),y=0;y<x.length;y++)x[y].value=f[y]})};
_.c.focusChanged=function(){_.NQ(this.hostElement)};
_.c.onInput=function(){var v=this;_.lz(this,"onInput",function(){v.isValid()?_.jK(v.hostElement,"yt-commentbox-post-enable"):_.jK(v.hostElement,"yt-commentbox-post-disable")},300)};
_.c.setPollOptions=function(){var v=[],E,n=((E=this.data)==null?0:E.minPollOptions)?this.data.minPollOptions:0;for(E=0;E<n;E++)v.push("");return v};
_.c.addPollOption=function(){var v=this;_.jK(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.wh.addLowPriorityJob(function(){var E;(E=_.K(v.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||E.focus()})};
_.c.onRemovePollOption=function(v){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.jK(this.hostElement,"yt-poll-attachment-dismiss")):(v=this.repeat.indexForElement(v.target.parentNode),v!==null&&(this.splice("pollOptions",v,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.jK(this.hostElement,"yt-commentbox-post-enable"))))};
_.c.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.c.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var v=0,E=this.pollOptions.length;v<E;v++)if(this.pollOptions[v].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.c.getPollOptions=function(){return this.pollOptions};
_.c.setPollOptionsFromInputs=function(){for(var v=_.K(this.hostElement).querySelectorAll(".poll-option-input"),E=0;E<v.length;E++)this.pollOptions[E]=v[E].value.trim()};
_.c.clearPollOptions=function(){var v=_.K(this.hostElement).querySelectorAll(".poll-option-input");v=_.p(v);for(var E=v.next();!E.done;E=v.next())E.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.c.getSimpleString=function(v){return _.JC(v)};
_.c.updateValueFromBinding=function(v){if(v.target&&this.pollOptions){var E=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(v.target);if(E>=0){var n;this.pollOptions[E]=(n=v.detail.value)!=null?n:"";this.notifyPath("pollOptions."+E)}}};
WK.prototype.dataChanged=WK.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WK.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],WK.prototype,"pollOptions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],WK.prototype,"hasMaxOptions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],WK.prototype,"enableCreationBox",void 0);
_.k([_.Wp("#repeat"),_.W("design:type",n5)],WK.prototype,"repeat",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WK.prototype,"dataChanged",null);WK=_.k([_.N({disableElementRegistration:!0,is:"ytd-poll-attachment"})],WK);
_.u(WK,"ytd-poll-attachment",function(){if(JES!==void 0)return JES;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JES=v},{mode:2});var K1o;var dkl;var I31;var YFo;var $g=function(){return _.g.apply(this,arguments)||this};
_.S($g,_.g);_.hK.Object.defineProperties($g.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$g.prototype,"rendererBehaviors",void 0);_.k([_.H(),_.W("design:type",Object)],$g.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],$g.prototype,"focused",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("focused"),_.W("design:type",Object),_.W("design:paramtypes",[])],$g.prototype,"ariaSelected",null);$g=_.k([_.p5({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],$g);
_.u($g,"yt-user-mention-suggestion-renderer",function(){if(YFo===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;I31===void 0&&(I31=document.createElement("template"));var f=I31;n.call(E,f.content.cloneNode(!0),v.content.firstChild);YFo=v}v=YFo;return v},{mode:2});var hJl;var AEi;var Lq=function(){var v=_.g.apply(this,arguments)||this;v.focusedSuggestionIndex=-1;return v};
_.S(Lq,_.g);_.c=Lq.prototype;_.c.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.c.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.c.setFocusedSuggestionIndex=function(v){!this.data||!this.data.suggestions||v<0||v>=this.data.suggestions.length||(this.focusedSuggestionIndex=v,v=this.getSuggestionId(v),this._setFocusedSuggestionId(v))};
_.c.advanceSuggestion=function(v){this.focusedSuggestionIndex===-1||v!==-1&&v!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+v),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.c.ensureSuggestionVisible=function(v){v=this.getSuggestionId(v);v=_.K(this.hostElement).querySelector("[id="+v+"]");v!=null&&(v.offsetTop<this.hostElement.scrollTop?v.scrollIntoView(!0):v.offsetTop+v.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&v.scrollIntoView(!1))};
_.c.getSuggestionId=function(v){return"user-mention-suggestion-"+v};
_.c.onSuggestionTap=function(v){var E=_.C(v.model.item,rh4);this.ytRendererBehavior.logExplicitClick(E);_.jK(this.hostElement,"yt-user-mention-suggestion-selected",{data:E,index:v.model.index})};
_.c.onSuggestionMouseMove=function(v){v.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(v.model.index)};
_.c.isSuggestionFocused=function(v,E){return v===E};
_.c.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.c.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("focused-suggestion-id-changed",this.focusedSuggestionId))};
Lq.prototype.focusedSuggestionIdChangedForBinding=Lq.prototype.focusedSuggestionIdChangedForBinding;Lq.prototype.onDomChange=Lq.prototype.onDomChange;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Lq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Lq.prototype,"focusedSuggestionIndex",void 0);_.k([_.H({readOnly:!0}),_.W("design:type",String)],Lq.prototype,"focusedSuggestionId",void 0);
_.k([_.jk("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Lq.prototype,"onDomChange",null);_.k([_.On("focusedSuggestionId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Lq.prototype,"focusedSuggestionIdChangedForBinding",null);Lq=_.k([_.p5({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Lq);
_.u(Lq,"yt-user-mention-suggestions-dropdown",function(){if(AEi===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;hJl===void 0&&(hJl=document.createElement("template"));var f=hJl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);AEi=v}v=AEi;return v},{mode:2});var GI=function(){var v=_.g.apply(this,arguments)||this;v.suggestionsResponse=null;v.activeMention=null;v.selectionChangeListener=v.onSelectionChange.bind(v);v.handlesEnabled=_.Z("enable_handles_in_mention_suggest_posts");v.handlesInMentionSuggestionsEnabled=_.Z("handles_in_mention_suggest_posts");v.zeroPrefixMentionSuggestionEnabled=_.Z("enable_zero_prefix_mention_suggestion_web");v.pendingQuery=null;v.flowNonce=null;return v};
_.S(GI,_.g);_.c=GI.prototype;_.c.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.c.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.c.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.c.hasSuggestions=function(v){return!!(v&&v.suggestions&&v.suggestions.length>0)};
_.c.onInput=function(){var v=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var E=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),n=this.activeMention.JSC$9144_getText().slice(-1)===" ",f=this.activeMention.JSC$9144_getText().slice(-2,-1)===" ",x="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9144_getText().slice(-2,-1))>=
0;x=this.zeroPrefixMentionSuggestionEnabled&&x;if(this.activeMention.isCollapsed()||(E||f||x)&&n)this.cancelActiveMention();else{var y=this.activeMention.JSC$9144_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.lz(this,"requestSuggestions",function(){v.requestSuggestions(y)},100)}}}};
_.c.onServiceRequestSent=function(v){v.stopPropagation()};
_.c.onServiceRequestCompleted=function(v){v.stopPropagation();v=v.detail.data;v.query&&(!this.pendingQuery||this.pendingQuery!==v.query)||!this.zeroPrefixMentionSuggestionEnabled&&v.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=v,this.hasSuggestions(v)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.c.onServiceRequestError=function(v){v.stopPropagation()};
_.c.onUserMentionSuggestionSelected=function(v){this.selectSuggestion(v.detail.data,v.detail.index)};
_.c.onSelectionChange=function(){if(this.activeMention){var v=_.Qe(),E=this.activeMention.JSC$9144_containsRange(v);v=v&&this.containsHelper(this.dropdown,v.getContainer());E||v||this.cancelActiveMention()}};
_.c.containsHelper=function(v,E){var n;if(((n=window.ShadyDOM)==null?void 0:n.noPatch)===!0)return v.contains(E);for(;E;){if(E===v)return!0;E=E instanceof ShadowRoot?E.host:E.parentNode}return!1};
_.c.maybeStartSuggest=function(){var v=_.Qe();if(v&&v.isCollapsed()){var E=v.JSC$9144_getStartNode(),n=v.JSC$9144_getStartOffset();if(E instanceof Text&&!(n<1)){var f=E.textContent;!(f=f&&f.charAt(n-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(f)<0||(this.activeMention=_.JT(E,n-1,v.JSC$9144_getEndNode(),v.JSC$9144_getEndOffset()),this.flowNonce=mu(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.c.updateActiveMention=function(){if(this.activeMention){var v=_.Qe();v&&v.isCollapsed()&&(this.activeMention=_.JT(this.activeMention.JSC$9144_getStartNode(),this.activeMention.JSC$9144_getStartOffset(),v.JSC$9144_getEndNode(),v.JSC$9144_getEndOffset()))}};
_.c.requestSuggestions=function(v){if(this.activeMention){var E={suggestions_query:v};this.pendingQuery=v;_.$Z(this.hostElement,[this.suggestionsEndpoint,E])}};
_.c.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()};
_.c.focusPreviousSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),v.preventDefault())};
_.c.focusNextSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),v.preventDefault())};
_.c.selectFocusedSuggestion=function(v){if(this.hasSuggestions(this.suggestionsResponse)){var E=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.C(E,rh4)&&(this.selectSuggestion(_.C(E,rh4),this.dropdown.focusedSuggestionIndex),v.preventDefault())}};
_.c.selectSuggestion=function(v,E){if(v){var n=this.activeMention;if(n){var f=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&v.handle?_.qm(f,"\u00a0\u2068@"+v.handle+"\u2069\u00a0"):this.handlesEnabled?_.qm(f,"\u00a0"+v.displayName+"\u00a0"):_.qm(f,"\u00a0@"+v.displayName+"\u00a0");Cc(f,"/channel/"+v.channelId);f.classList.add("yt-formatted-string","yt-simple-endpoint");f.setAttribute("spellcheck","false");n.isCollapsed()||n.JSC$9144_removeContents();n.insertNode(f,!0);v=document.createTextNode(" ");
f.parentNode.insertBefore(v,f.nextSibling);window.getSelection().collapse(v,1);E={suggestionSelected:{suggestionIndex:E}};if(this.zeroPrefixMentionSuggestionEnabled){var x;E.suggestionSelected.isZeroPrefix=((x=this.suggestionsResponse)==null?void 0:x.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",E);this.cancelActiveMention();_.jK(this.hostElement,"yt-mention-inserted")}}};
_.c.getPositionTarget=function(v){return v&&v.getBrowserRangeObject()};
_.c.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.c.onFocusedSuggestionIdChanged=function(v){var E=_.kRX(this.hostElement)[0];E&&(v.detail.value?E.setAttribute("aria-activedescendant",v.detail.value):E.removeAttribute("aria-activedescendant"))};
_.c.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.c.logGELEvent=function(v,E){v={eventType:v,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};E&&(v=Object.assign(v,E));_.eQ("userMentionAutoCompleteBoxEvent",v)};
GI.prototype.onDomChange=GI.prototype.onDomChange;GI.prototype.onUserMentionSuggestionSelected=GI.prototype.onUserMentionSuggestionSelected;GI.prototype.onServiceRequestError=GI.prototype.onServiceRequestError;GI.prototype.onServiceRequestCompleted=GI.prototype.onServiceRequestCompleted;GI.prototype.onServiceRequestSent=GI.prototype.onServiceRequestSent;GI.prototype.onInput=GI.prototype.onInput;_.k([_.h(_.Ff),_.W("design:type",Object)],GI.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],GI.prototype,"suggestionsEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],GI.prototype,"suggestionsResponse",void 0);_.k([_.H(),_.W("design:type",Object)],GI.prototype,"activeMention",void 0);_.k([_.Wp("#dropdown"),_.W("design:type",Object)],GI.prototype,"dropdown",void 0);_.k([_.Wp("#iron-dropdown"),_.W("design:type",Object)],GI.prototype,"ironDropdown",void 0);
_.k([_.jk("input"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],GI.prototype,"onInput",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GI.prototype,"onServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GI.prototype,"onServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GI.prototype,"onServiceRequestError",null);_.k([_.jk("yt-user-mention-suggestion-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GI.prototype,"onUserMentionSuggestionSelected",null);
_.k([_.jk("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GI.prototype,"onDomChange",null);GI=_.k([_.p5({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],GI);
_.u(GI,"yt-user-mention-autosuggest-input",function(){if(dkl===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;K1o===void 0&&(K1o=document.createElement("template"));var f=K1o;n.call(E,f.content.cloneNode(!0),v.content.firstChild);dkl=v}v=dkl;return v},{mode:2});var TI=null;
_.Ee({is:"ytd-commentbox",_template:function(){if(MdP!==void 0)return MdP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return MdP=v},
behaviors:[_.U8I.YtHostElementBehavior,_.Ff,_.N2.YtActionHandlerBehavior,_.aD.YtComponentBehavior,_.gm.YtRendererstamperBehavior,_.p1i.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(v,E){return _.LH(v.entities,"aadcGuidelinesStateEntityPayload",E)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(v,E){return _.LH(v.entities,"commentboxStateEntity",E)},
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 _.af}},
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:_.Z("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Z("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",_.uo(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(v){this.fire(v?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(v){this.set("submitButtonDisabled",void 0);this.clear();v&&this.computeIsEmojiButtonDisplayed_(v)&&(v=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&v.updateEmojiCategories()},
observePrefilledImage_:function(v,E,n){this.isValidPrefilledImage_(v,E,n)&&(this.prefilledAttachment_="image",this.prefilledImageData_=E,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(v,E){this.isValidPrefilledVideo_(v,E)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(v){v&&v.pollData&&v.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(v.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.o4();this.focus()},
detached:function(){document.removeEventListener("tap",_.uo(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(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,v);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var v=_.Qe();if(v){v=v.getBrowserRangeObject();for(var E=v.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return v;E=E.parentNode}}v=this.getEditableTextArea_();v=_.q7(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,E,n){(E=this.emojiManager.createDocumentFragment(E,!0,!1,n===void 0?!0:n))&&E.childNodes.length!==0&&(v.collapsed||v.deleteContents(),n=E.lastChild,v.insertNode(E),_.f_X(n).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var v=_.Qe();if(v){var E=v.JSC$9144_getStartNode(),n=v.JSC$9144_getEndNode();if(w4L(E)&&w4L(n)){var f=v.JSC$9144_getStartOffset(),x;if(_.c2&&E.nodeType===Node.ELEMENT_NODE&&(x=_.a1o(E)))_.q7(x,0).select();else{x=cj(E)?E:_.Ss(E,cj);var y=cj(n)?n:_.Ss(n,cj);if(x||y)if(v.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){v=!0;f===E.length&&(v=!1);if(TI==="end"||TI==="right")v=!1;E=E.parentNode;v=[].concat(_.s8(E.parentNode.childNodes)).indexOf(E)+(v?0:1);_.q7(E.parentNode,v).select()}}else x?
x.previousSibling&&x.previousSibling.length>0?_.JT(n,v.JSC$9144_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),x.parentNode.insertBefore(E,x),_.JT(n,v.JSC$9144_getEndOffset(),E,0).select()):y&&(y.nextSibling&&y.nextSibling.length>0?_.JT(E,v.JSC$9144_getStartOffset(),y.nextSibling,1).select():(n=document.createTextNode("\u200b"),y.parentNode.insertBefore(n,y.nextSibling),_.JT(E,v.JSC$9144_getStartOffset(),n,n.length).select()));TI=null}}else TI=
null}else TI=null},
leftKeyPressed_:function(){TI="left"},
rightKeyPressed_:function(){TI="right"},
endKeyPressed_:function(){TI="end"},
maybeDeleteChip_:function(){var v=aZE(!0);if(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();_.Ze(n,E,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=aZE(!1);if(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();_.Ze(n,E,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var E=_.Qe();if(E.isCollapsed()){var n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();var f=Z6E(n,E,!0);f&&(_.Ze(n,E,f,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var E=_.Qe();if(E.isCollapsed()){var n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();var f=Z6E(n,E,!1);f&&(_.Ze(n,E,f,f.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onTap_:function(v){if(!v.defaultPrevented&&(v.currentTarget.tagName==="YTD-COMMENTBOX"&&cj(v.target)&&v.preventDefault(),this.isEmojiPickerDisplayed)){var E=this.$$("#emojis"),n=this.$$("#emoji-button"),f=this.getEditableTextArea_();if((v=v.path?v.path:v.composedPath&&v.composedPath())&&!v.includes(E)&&!v.includes(f)&&!v.includes(n))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(v,E,n){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E!==void 0&&E.encryptedBlobId!==null&&E.sourceExternalVideoId!==null&&n!==void 0&&n.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(v,E){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!E&&!!E.videoRenderer&&!!E.videoRenderer.videoId},
isValidPrefilledAttachment_:function(v,E,n){return this.isValidPrefilledImage_(v,E,n)||this.isValidPrefilledVideo_(v,n)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Z("enable_multi_image_post_creation")){var v=this.$$("ytd-backstage-multi-image-select-renderer");v&&v.hasImages()&&v.cancel()}else(v=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&v.cancel();(v=this.$["poll-attachment"])&&this.hasPoll_&&v.clearPollOptions();(v=this.$["image-poll-attachment"])&&this.hasImagePoll_&&v.resetPollOptions();(v=this.$["quiz-attachment"])&&this.hasQuiz_&&v.resetQuizOptions();
(v=this.$["video-link-attachment"])&&this.hasVideo_&&v.cancel();(v=this.$["access-restrictions-selector"].firstElementChild)&&v.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 _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(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(v,E){v=lZG(v,this.emojiManager,E).cloneNode(!0);for(E=v.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var n=_.ay();_.KUF(n,E);E=n.nextSibling;break;case "DIV":(n=E.lastChild)&&E.nextSibling&&_.Sr(_.ay(),n);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.Mm(_.ay(),E);n&&n.nodeName==="BR"&&_.fT(n);n=E;E.hasChildNodes()?(E=E.firstChild,
_.dPX(n)):(E=E.nextSibling,_.fT(n));break;default:E=E.nextSibling}return C8s(v)},
onAddImageError_:function(v){v.stopPropagation();this.errorMessage_=_.qD(v.detail)},
setTextAreaValue_:function(v){v||(v="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});E.text=v},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();TI=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.q7(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.MX("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",E)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var v;return SoX((v=this.$["quiz-attachment"])==null?void 0:v.getExplanationText())||SoX(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(v=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(v,!0);this.updateCharCount_();this.setSubmitButton_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
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(v){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(v)},
onPasteEmoji_:function(v){v.preventDefault();v.stopImmediatePropagation();v=v.clipboardData.getData("text/plain");this.insertText_(v,!1,!1)},
insertText_:function(v,E,n){E=E===void 0?!1:E;n=n===void 0?!0:n;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(E&&this.emojiInput.offsetStartOfRangeBy(f,v.length),this.insertTextWithEmojis_(f,v,n),b6I(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,v),this.updateSuggestionOffset_(f)))}},
setSubmitButton_:function(){if(this.data){var v=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",E=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(v||E){var n=this.getTextAreaValue().trim();E=n===this.previousText_;n=!n||this.aboveCharLimit_;v&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(n=this.aboveCharLimit_);this.submitButtonDisabled=
E||n||!this.getTextLength();v&&_.Z("enable_post_scheduling")&&(this.submitButtonDisabled=E&&!this.scheduledPublishTimeSec_||n)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.JC,computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computeFooterMessageClass_:function(v,E){return E?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(v,E){return E?E:v},
computeFooterMessageHidden_:function(v,E){return!E&&!v},
computePlaceholderText_:function(v,E,n){return(n==="video"||n==="image")&&(v==null?0:v.prefilledPlaceholderText)?v==null?void 0:v.prefilledPlaceholderText:E==="poll"||E==="image-poll"?v==null?void 0:v.pollPostPlaceholderText:E==="quiz"?v==null?void 0:v.quizPostPlaceholderText:E==="image"?v==null?void 0:v.imagePostPlaceholderText:v==null?void 0:v.placeholderText},
computeHideAttachmentButtons_:function(v,E,n,f){return v===void 0?!1:f&&this.getSimpleString(f)===this.getSimpleString(v.rateLimitErrorMessage)?!0:E!=="none"||n!=="none"||!v.videoLinkButton&&!v.pollButton&&!v.imagePollButton&&!v.quizButton&&!v.imageButton},
computeHideDismissableAttachment_:function(v){return v!=="image"&&v!=="video"},
computeHasVideo_:function(v){return v==="video"},
computeHasImage_:function(v){return v==="image"},
computeHasPoll_:function(v){return v==="poll"},
computeHasImagePoll_:function(v){return v==="image-poll"},
computeHasQuiz_:function(v){return v==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(v){return v&&v.backstageAttachment?v.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!v.backstageAttachment.quizRenderer&&!v.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(v){if(this.isValidPrefilledAttachment_(v.purpose,v.prefilledImageData,v.backstageAttachment))return v.backstageAttachment},
computeEditAttachment_:function(v){if(this.computePrefilledContent_(v)===void 0)return v.backstageAttachment},
computeAuthorThumbnailDimension_:function(v,E){return v&&!E?24:40},
computeImageUploadEndpoint_:function(v){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",v)},
computeRateLimitErrorCommands_:function(v){var E,n;return v==null?void 0:(E=v.advancedTierFeatures)==null?void 0:(n=E.rateLimit)==null?void 0:n.rateLimitCommands},
computeIsBackstageComment_:function(v){return!(!v||v!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)||this.get("replyButton.buttonRenderer.serviceEndpoint",v)||this.get("postButton.buttonRenderer.serviceEndpoint",v)},
computeSubmitButtonOverride:function(){if(_.Z("web_modern_buttons")){var v,E;return{segmentedPosition:this.dropdownSchedulePanel_||!((v=this.data)==null?0:(E=v.postOptionsMenu)==null?0:E.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Z("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(v,E){v=this.get("submitButton.buttonRenderer",v)||this.get("replyButton.buttonRenderer",v)||this.get("postButton.buttonRenderer",v);E&&(v=E);v&&(v=Object.assign({},v),v.serviceEndpoint=void 0,v.isDisabled=this.submitButtonDisabled);return v},
computeHasExternalLinksAccess_:function(v){if(_.Z("enable_rfa_external_links")){var E,n,f;return(f=v==null?void 0:(E=v.advancedTierFeatures)==null?void 0:(n=E.externalLinks)==null?void 0:n.allowExternalLinks)!=null?f:!0}return!0},
computeIsEmojiButtonDisplayed_:function(v){return v.emojiButton&&v.emojiPicker&&v.emojiPicker.emojiPickerRenderer&&v.emojiPicker.emojiPickerRenderer.categories?v.emojiPicker.emojiPickerRenderer.categories.find(function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(v){return v.charLimit?v.charLimit:null},
computeDropdownSchedulingPanel_:function(v,E){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E)return E},
computeInlineSchedulingPanel_:function(v,E){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E)return E},
computeHideAuthorThumbnail_:function(v,E){return v||this.computeUseIdentityChip_(E)},
computeHideIdentityChipRenderer_:function(v,E){return v||!this.computeUseIdentityChip_(E)},
computeUseIdentityChip_:function(v){return!!v&&!!v.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(v){var E,n,f,x;(v==null?0:(E=v.detail)==null?0:(n=E.endpoint)==null?0:n.ypcGetOffersEndpoint)||(v==null?0:(f=v.detail)==null?0:(x=f.endpoint)==null?0:x.ypcOffersEndpoint)?(v.stopPropagation(),_.$Z(this,[v.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(v.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(v){this.addedAttachment="video";this.selectedVideoId_=v.detail.videoId},
commentboxStateEntityChanged_:function(v){var E=this;(v==null?void 0:v.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(v==null?void 0:v.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){E.focus()})},
onYtServiceRequestSent_:function(v,E){if(E.actions)for(v=_.p(E.actions),E=v.next();!E.done;E=v.next())E.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(v){this.isLoading=!1;var E=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",v),n,f,x,y=v==null?void 0:(n=v.detail)==null?void 0:(f=n.data)==null?void 0:(x=f.actionResult)==null?void 0:x.commentboxStateEntityKey;if(E)this.errorMessage_=E;else if(y){var Q;this.dismissData_=v==null?void 0:(Q=v.detail)==null?void 0:Q.data;this.commentboxStateKey_=y}else{this.clear();var e;this.fire("yt-commentbox-dismiss",v==null?void 0:(e=v.detail)==
null?void 0:e.data)}},
onYtServiceRequestError_:function(v){v.stopPropagation();this.isLoading=!1;var E,n;if(((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((n=this.data)==null?void 0:n.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(E=this.get("detail.error.args",v)||[],E.length>1&&E[1].message){this.handlePostsServiceRequestError_(E[1].message);return}(v=this.get("detail.error.message",v))?this.errorMessage_=this.data.errorMessage||_.qD(v):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(v){if(_.Z("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var E=_.p(this.rateLimitErrorCommands),n=E.next();!n.done;n=E.next())if(n=n.value,n.errorLabel===v){_.WE(n.command,this.hostElement);return}this.errorMessage_=_.qD(v)},
submitIfNotBackstagePost_:function(v){if(!this.isBackstagePost)this.onSubmit_(v)},
onSubmit_:function(v){var E=this,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y;return _.X(function(V){switch(V.nextAddress){case 1:v.stopPropagation();if(!E.serviceEndpoint||!E.isValidInput_())return V.return();if(E.shouldShowPostAadcNotice_())return E.showPostAadcNotice_(),V.return();if(E.shouldShowCommentAadcNotice_())return E.showCommentAadcNotice_(),V.return();if(!(E.$$("ytd-backstage-multi-image-select-renderer")&&E.hasImage_&&_.Z("enable_multi_image_post_creation"))){V.jumpTo(2);break}n=E.$$("ytd-backstage-multi-image-select-renderer");
return _.m(V,n.getAllUploadStatuses(),3);case 3:f=V.yieldResult;if(!f)return V.return();x=_.p(f);for(y=x.next();!y.done;y=x.next())if(Q=y.value,Q.encryptedBlobId===void 0)return E.isLoading=!1,F=e=void 0,E.errorMessage_=(F=(e=E.imageUploadEndpoint_)==null?void 0:e.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?F:null,V.return();return V.return(E.submitForm_(void 0,void 0,void 0,void 0,n.images,E.taggedVideoId_));case 2:if(!E.hasImagePoll_||!E.$["image-poll-attachment"]){V.jumpTo(4);
break}return _.m(V,E.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:b=V.yieldResult;if(!b)return V.return();l=_.p(b);for(r=l.next();!r.done;r=l.next())if(a=r.value,!a.encryptedBlobId)return E.isLoading=!1,M=void 0,E.errorMessage_=(M=E.data.errorMessage)!=null?M:null,V.return();case 4:d=(U=E.$$("ytd-backstage-image-select-renderer"))&&U.uploadPromise(),Y=E.getSharedPostId_(),d?d.then(function(){E.submitForm_.apply(E,_.s8(_.rV.apply(0,arguments)))}).catch(function(O){E.isLoading=!1;
E.errorMessage_=_.qD(O.message)}):E.selectedVideoId_?E.submitForm_(void 0,E.selectedVideoId_):E.prefilledAttachment_==="image"?E.submitForm_(E.prefilledImageData_.encryptedBlobId,void 0,void 0,E.prefilledImageData_.sourceExternalVideoId,void 0,E.taggedVideoId_):E.prefilledAttachment_==="video"?E.submitForm_(void 0,E.data.backstageAttachment.videoRenderer.videoId):Y?E.submitForm_(void 0,void 0,Y):E.taggedVideoId_!==void 0?E.submitForm_(void 0,void 0,void 0,void 0,void 0,E.taggedVideoId_):E.submitForm_(),
_.yQ(V)}})},
openSchedulingPanel:function(v){v&&v.scheduleButton&&v.scheduleButton.buttonRenderer&&(this.scheduleButton_=v.scheduleButton.buttonRenderer);v&&v.dateTimePicker&&this.set("data.schedulingDateTimePicker",v.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(v){v.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(v){v.stopPropagation();v.detail.alertMessage&&(this.alertMessage_=v.detail.alertMessage)},
onImageSelected_:function(v){v.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(v){v.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(v.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(v){var E=this.$["video-link-attachment"];E&&E.onLaunchVideoPicker(v)},
onAttachmentDismiss_:function(v){v.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"&&_.Z("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Z("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 v;if(this.addedAttachment==="image-poll"&&((v=this.$["image-poll-attachment"])==null||!v.isValid()))return!1;var E;if(this.addedAttachment==="quiz"&&((E=this.$["quiz-attachment"])==null||!E.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;v=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(v=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")v=!0;return v||!!this.getTextAreaValue().trim()},
submitForm_:function(v,E,n,f,x,y){var Q=this.getTextAreaValue().trim(),e={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Q===this.previousText_&&(Q=void 0);Q!==void 0&&(e.comment_text=Q);this.isLoading=!0;y!=void 0&&(e.tagged_video_id=y);v?(e.image_blob_id=v,this.imagePreviewCoordinates_&&(e.image_preview_coordinates=this.imagePreviewCoordinates_)):E?e.attached_video_id=E:n?e.shared_post_id=n:x&&x.length>0&&(e.images_data=x.map(function(F){return{encryptedBlobId:F.encryptedBlobId,
previewCoordinates:F.previewCoordinates}}));
f&&(e.source_video_id=f);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(e.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(e.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(e.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.Z("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(e.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.Z("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(e.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.$Z(this,[this.serviceEndpoint,e])},
onIsInputFocusChanged_:function(v,E){v?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var E=this.getEditableTextArea_();[].concat(_.s8(v.dataTransfer.items)).forEach(function(n){n.kind==="string"&&n.type.match("^text/plain")&&n.getAsString(function(f){E.appendChild(document.createTextNode(f))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
computeSubmitButtonClass_:function(v,E){return!E||v?"":"with-options"},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,n=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-n)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-E;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(v){if(_.Z("enable_post_scheduling")&&this.data&&this.data.purpose){v=v.detail;if(Math.floor(Date.now()/1E3)>=v)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var E=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(E)||E!==v?this.scheduledPublishTimeSec_=v:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=v;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var v=["image-button","image-poll-button","poll-button"];_.Z("enable_quiz_creation")&&v.push("quiz-button");_.Z("auto_convert_posts_video_tag")||v.push("video-link-button");return v},
getButtonRenderer:function(v,E){if(v)switch(E){case "video-link-button":var n;return((n=v.videoLinkButton)==null?void 0:n.buttonRenderer)||void 0;case "image-button":var f;return((f=v.imageButton)==null?void 0:f.buttonRenderer)||void 0;case "poll-button":var x;return((x=v.pollButton)==null?void 0:x.buttonRenderer)||void 0;case "image-poll-button":var y;return((y=v.imagePollButton)==null?void 0:y.buttonRenderer)||void 0;case "quiz-button":var Q;return((Q=v.quizButton)==null?void 0:Q.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var v;return(v=this.data)==null||!v.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var v,E;return!((v=this.data)==null||!v.openAadcDialog)&&!((E=this.aadcGuidelinesState_)==null||!E.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.MX("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var v;((v=this.data)==null?0:v.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.P7("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(v){v.clickTrackingParams&&_.Tl().clickCommand(v);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.OL(this,"yt-close-popup-action")},
onHideIdentityChip:function(v){var E;this.set("data.placeholderText",(E=v.hideIdentityChipAction)==null?void 0:E.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var iV=function(){var v=_.g.apply(this,arguments)||this;v.isOpen=!1;v.modern=_.Z("web_modern_buttons");v.roundedContainer=!0;v.dropdownButtonOverride=_.Z("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;v.inPopupContainer=!1;v.isCommentboxLoading=!1;var E=["image-button","image-poll-button","poll-button"];_.Z("enable_quiz_creation")&&E.push("quiz-button");_.Z("auto_convert_posts_video_tag")||E.push("video-link-button");v.attachmentButtonIds=E;v.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 v};
_.S(iV,_.g);_.c=iV.prototype;_.c.computeButtonOverride=function(){var v;return((v=this.data)==null?0:v.postOptionsMenu)&&_.Z("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.c.configureRendererStamper=function(){var v={"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]]"}}}}};_.Z("auto_convert_posts_video_tag")||(v["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return v};
_.c.ready=function(){var v=this,E=_.K(this.hostElement).querySelector("#placeholder-area"),n=function(f){v.onOpen(f)};
E.addEventListener("tap",n);E.addEventListener("keypress",n)};
_.c.showButtonEduTooltip=function(){var v,E,n,f,x,y,Q;if(_.Z("enable_quiz_creation")&&((v=this.data)==null?0:(E=v.quizButton)==null?0:(n=E.buttonRenderer)==null?0:(f=n.hint)==null?0:(x=f.hintRenderer)==null?0:(y=x.content)==null?0:(Q=y.bubbleHintRenderer)==null?0:Q.text)&&(_.ko.getInstance(),v=Wg(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(v==null?void 0:
v.length)>0)){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.quizButton}});return}var e;if((e=this.data)==null?0:e.imagePollButtonTooltip)if(_.ko.getInstance(),e=Wg(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(e==null?void 0:e.length)>0){this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.imagePollButton}});return}var F;_.Z("enable_multi_image_post_creation")&&
((F=this.data)==null?0:F.multiImageButtonTooltip)&&(_.ko.getInstance(),F=Wg(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(F==null?void 0:F.length)>0&&this.ytComponentBehavior.resolveCommand(F[0],{form:{element:this.imageButton}}))};
_.c.onCreatePollAction=function(v){_.C(v,YP4)&&(this.JSC$13565_commentbox.addedAttachment="poll",this.openDialog())};
_.c.onAddVideoLinkAction=function(v){if(_.C(v,Ibl))this.JSC$13565_commentbox.onAddVideoLink(v)};
_.c.onShowSchedulingPanelCommand=function(v){(v=_.C(v,cPS))&&this.openSchedulingPanel(v)};
_.c.onCreateImagePollCommand=function(v){_.C(v,eAU)&&(this.JSC$13565_commentbox.openImagePollComponent(),this.openDialog())};
_.c.onCreateQuizCommand=function(v){_.C(v,Fwo)&&(this.JSC$13565_commentbox.openQuizComponent(),this.openDialog())};
_.c.openSchedulingPanel=function(v){_.Z("enable_post_scheduling")&&(this.openDialog(),this.JSC$13565_commentbox.openSchedulingPanel(v))};
_.c.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.JSC$13565_commentbox.clear(),this.closeDialog())};
_.c.onOpen=function(v){v instanceof KeyboardEvent&&v.type==="keypress"&&v.keyCode!==13&&v.keyCode!==32||(this.data.prepareAccountEndpoint?_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.c.onYtCommentboxDismiss=function(){this.closeDialog()};
_.c.onYtCommentboxLoadingStart=function(v){v.stopPropagation();this.isCommentboxLoading=!0};
_.c.onYtCommentboxLoadingEnd=function(v){v.stopPropagation();this.isCommentboxLoading=!1};
_.c.onYtVideoLinkButtonCancel=function(v){v.stopPropagation();this.onOpen(v)};
_.c.onYtVideoLinkSelected=function(v){v.stopPropagation();this.onOpen(v)};
_.c.onIronSelect=function(v){v.stopPropagation();v.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=v.detail.item.value&&(this.accessRestriction?(this.accessRestriction=v.detail.item.value,this.onOpen(v)):this.accessRestriction=v.detail.item.value)};
_.c.onYtNavigate=function(v){this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(this.JSC$13565_commentbox.addedAttachment="image",this.JSC$13565_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.c.onRequestSent=function(v){if(_.Z("web_button_rework"))for(var E=_.p(v.detail),n=E.next();!n.done;n=E.next())_.C(n.value,MuF)&&(this.JSC$13565_commentbox.addedAttachment="image",this.JSC$13565_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.c.openDialog=function(){this.JSC$13565_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13565_commentbox.focus()};
_.c.onPopupClosed=function(){_.ko.getInstance()};
_.c.computeCreationDisabled=function(v){return!!v};
_.c.computeIsCreationDialog=function(v){return!!v&&v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.c.computeDisabledPostButton=function(v){if(!v)return null;v.isDisabled=!0;return v};
_.c.computeIsCreationDialogWithHeader=function(v){return!this.inPopupContainer&&!!v&&!!v.authorText&&v.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.c.computeIsHeaderHidden=function(v,E){return!v||E};
_.c.computeDropdownRendererClasses=function(v){return v?["text-secondary-style"]:[]};
_.c.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var v=_.K(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;v&&v.reset()};
iV.prototype.onPopupClosed=iV.prototype.onPopupClosed;iV.prototype.onRequestSent=iV.prototype.onRequestSent;iV.prototype.onYtNavigate=iV.prototype.onYtNavigate;iV.prototype.onIronSelect=iV.prototype.onIronSelect;iV.prototype.onYtVideoLinkSelected=iV.prototype.onYtVideoLinkSelected;iV.prototype.onYtVideoLinkButtonCancel=iV.prototype.onYtVideoLinkButtonCancel;iV.prototype.onYtCommentboxLoadingEnd=iV.prototype.onYtCommentboxLoadingEnd;iV.prototype.onYtCommentboxLoadingStart=iV.prototype.onYtCommentboxLoadingStart;
iV.prototype.onYtCommentboxDismiss=iV.prototype.onYtCommentboxDismiss;iV.prototype.showButtonEduTooltip=iV.prototype.showButtonEduTooltip;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],iV.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],iV.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iV.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iV.prototype,"isOpen",void 0);_.k([_.H({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],iV.prototype,"buttonOverride",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iV.prototype,"modern",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iV.prototype,"roundedContainer",void 0);_.k([_.H(),_.W("design:type",Object)],iV.prototype,"dropdownButtonOverride",void 0);_.k([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.W("design:type",Boolean)],iV.prototype,"creationDisabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],iV.prototype,"enableCreationBox",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.W("design:type",Boolean)],iV.prototype,"isCreationDialog",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iV.prototype,"inPopupContainer",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.W("design:type",Boolean)],iV.prototype,"isCreationDialogWithHeader",void 0);_.k([_.H(),_.W("design:type",Object)],iV.prototype,"accessRestriction",void 0);
_.k([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.W("design:type",Array)],iV.prototype,"dropdownRendererClasses",void 0);_.k([_.H(),_.W("design:type",Object)],iV.prototype,"isCommentboxLoading",void 0);_.k([_.H(),_.W("design:type",Array)],iV.prototype,"attachmentButtonIds",void 0);_.k([_.Wp("#image-button"),_.W("design:type",HTMLElement)],iV.prototype,"imageButton",void 0);
_.k([_.Wp("#image-poll-button"),_.W("design:type",HTMLElement)],iV.prototype,"imagePollButton",void 0);_.k([_.Wp("#quiz-button"),_.W("design:type",HTMLElement)],iV.prototype,"quizButton",void 0);_.k([_.Wp("#commentbox"),_.W("design:type",Object)],iV.prototype,"JSC$13565_commentbox",void 0);_.k([_.On("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iV.prototype,"showButtonEduTooltip",null);
_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtCommentboxDismiss",null);_.k([_.jk("yt-commentbox-loading-start"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtCommentboxLoadingStart",null);
_.k([_.jk("yt-commentbox-loading-end"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtCommentboxLoadingEnd",null);_.k([_.jk("yt-video-link-button-cancel"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtVideoLinkButtonCancel",null);
_.k([_.jk("yt-video-link-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtVideoLinkSelected",null);_.k([_.jk("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onIronSelect",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onYtNavigate",null);
_.k([_.jk("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iV.prototype,"onRequestSent",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iV.prototype,"onPopupClosed",null);iV=_.k([_.N({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],iV);
_.u(iV,"ytd-backstage-post-dialog-renderer",function(){if(nT1!==void 0)return nT1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return nT1=v},{mode:1});var Vdl;var DkU;var zI=function(){return _.g.apply(this,arguments)||this};
_.S(zI,_.g);_.c=zI.prototype;_.c.computeHeartButtonStyle=function(v){return(v==null?0:v.styleType)?v.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.c.onYtButtonTap=function(){if(this.data.isEnabled){var v=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(v=this.getEndpoint(v))&&_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})}else(v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(v)};
_.c.toggle=function(v){this.set("data.isHearted",v!==void 0?v:!this.data.isHearted)};
_.c.getEndpoint=function(v){var E,n=(E=this.data)==null?void 0:E.heartEndpoint,f;E=(f=this.data)==null?void 0:f.unheartEndpoint;if(n&&E)return v?E:n};
_.c.computeButtonAccessibility=function(v,E){var n,f,x=v==null?void 0:(n=v.heartedAccessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label,y,Q;v=v==null?void 0:(y=v.unheartedAccessibility)==null?void 0:(Q=y.accessibilityData)==null?void 0:Q.label;return E?x:v};
_.hK.Object.defineProperties(zI.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 v;return _.Z("kevlar_system_icons")&&!((v=this.data)==null||!v.isHearted)}}});
zI.prototype.onYtButtonTap=zI.prototype.onYtButtonTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],zI.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zI.prototype,"data",void 0);_.k([_.A("data.isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],zI.prototype,"heartTooltip",null);
_.k([_.A("data.isHearted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zI.prototype,"iconFilled",null);_.k([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.W("design:type",String)],zI.prototype,"buttonAccessibility",void 0);_.k([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],zI.prototype,"heartButtonStyle",void 0);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zI.prototype,"onYtButtonTap",null);zI=_.k([_.N({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],zI);
_.u(zI,"ytd-creator-heart-renderer",function(){if(DkU!==void 0)return DkU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DkU=v},{mode:1});var RH=function(){var v=_.g.apply(this,arguments)||this;v.hasCreatorReply=!1;v.buttonOverrides={size:"S",iconPosition:"icon-only"};v.replyButtonOverrides={size:"S",type:"text"};v.forceIconButton=!_.Z("web_modern_buttons");v.modern=_.Z("web_modern_buttons");v.buttonTooltipPosition="bottom";v.systemIcons=_.Z("kevlar_system_icons");v.replyDialog=null;return v};
_.S(RH,_.g);_.c=RH.prototype;
_.c.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]]"}}}}}};
_.c.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.c.dataChange=function(){this.replyDialog&&_.K(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var v,E,n;this.isLiked=this.systemIcons&&!!((v=this.data)==null?0:(E=v.likeButton)==null?0:(n=E.toggleButtonRenderer)==null?0:n.isToggled)};
_.c.computeShowVoteCountBeginning=function(v,E){return v===void 0||E===void 0?!0:v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.c.computeShowVoteCountEnd=function(v,E){return v===void 0||E===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.c.computeShowCommentCount=function(v,E){return v===void 0||E===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.c.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.c.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.c.showReplyDialog=function(v){v&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.K(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=v,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.c.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.c.onRequestSent=function(v){if(_.Z("web_button_rework")){v=_.p(v.detail);for(var E=v.next();!E.done;E=v.next())(E=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",E.value))&&this.showReplyDialog(E)}};
_.c.onYtNavigate=function(v){var E,n;(v=(E=_.C(v.detail.endpoint,_.U7g))==null?void 0:(n=E.dialog)==null?void 0:n.commentReplyDialogRenderer)&&this.showReplyDialog(v)};
_.c.onYtServiceRequestSent=function(v,E){v.stopPropagation();if(E.actions)for(v=0;v<E.actions.length;v++){var n=_.C(E.actions[v],Vrg);n&&this.handleUpdateCommentVoteAction(n)}};
_.c.handleUpdateCommentVoteAction=function(v){this.voteCount=v.voteCount||_.qD("0");v.voteStatus==="LIKE"?this.JSC$13576_ytdDislikeToggleButtonRenderer.toggle(!1):v.voteStatus==="DISLIKE"?this.JSC$13576_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13576_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13576_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.c.computeReplyButtonHidden=function(v){return v};
_.c.computeReplyButtonBeginning=function(v){return(v==null?0:v.replyButton)&&v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.c.computeReplyButtonEnd=function(v){return(v==null?0:v.replyButton)&&v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.c.computeActionButtonStyle=function(v){return(v==null?0:v.style)?v.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.c.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.c.onYtToggleButton=function(v){var E,n;this.isLiked=this.systemIcons&&!!((E=v.detail)==null?0:(n=E.actions)==null?0:n.like)};
RH.prototype.onYtToggleButton=RH.prototype.onYtToggleButton;RH.prototype.onButtonTooltipPositionChanged=RH.prototype.onButtonTooltipPositionChanged;RH.prototype.onYtServiceRequestSent=RH.prototype.onYtServiceRequestSent;RH.prototype.onYtNavigate=RH.prototype.onYtNavigate;RH.prototype.onRequestSent=RH.prototype.onRequestSent;RH.prototype.onYtCommentboxDismiss=RH.prototype.onYtCommentboxDismiss;RH.prototype.dataChange=RH.prototype.dataChange;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"voteCount",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"commentCount",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"replyThumbnail",void 0);
_.k([_.H(),_.W("design:type",Object)],RH.prototype,"hasCreatorReply",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],RH.prototype,"enableCreationBox",void 0);_.k([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],RH.prototype,"actionButtonsStyle",void 0);_.k([_.H({computed:"computeReplyButtonBeginning(data)"}),_.W("design:type",Object)],RH.prototype,"replyButtonBeginning",void 0);
_.k([_.H({computed:"computeReplyButtonEnd(data)"}),_.W("design:type",Object)],RH.prototype,"replyButtonEnd",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"buttonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"replyButtonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"forceIconButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],RH.prototype,"useCommentIcon",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],RH.prototype,"modern",void 0);_.k([_.H(),_.W("design:type",Object)],RH.prototype,"buttonTooltipPosition",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],RH.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],RH.prototype,"isLiked",void 0);_.k([_.Wp("ytd-button-renderer"),_.W("design:type",Object)],RH.prototype,"ytdReplyButtonRenderer",void 0);
_.k([_.Wp("#like-button"),_.W("design:type",Object)],RH.prototype,"JSC$13576_ytdLikeToggleButtonRenderer",void 0);_.k([_.Wp("#dislike-button"),_.W("design:type",Object)],RH.prototype,"JSC$13576_ytdDislikeToggleButtonRenderer",void 0);_.k([_.Wp("#reply-dialog"),_.W("design:type",HTMLElement)],RH.prototype,"replyDialogElement",void 0);_.k([_.Wp("#reply-button"),_.W("design:type",HTMLElement)],RH.prototype,"replyButtonElement",void 0);
_.k([_.Wp("#reply-button-end"),_.W("design:type",HTMLElement)],RH.prototype,"replyButtonEndElement",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RH.prototype,"dataChange",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RH.prototype,"onYtCommentboxDismiss",null);
_.k([_.jk("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RH.prototype,"onRequestSent",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RH.prototype,"onYtNavigate",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],RH.prototype,"onYtServiceRequestSent",null);_.k([_.On("buttonTooltipPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RH.prototype,"onButtonTooltipPositionChanged",null);
_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RH.prototype,"onYtToggleButton",null);RH=_.k([_.N({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],RH);
_.u(RH,"ytd-comment-action-buttons-renderer",function(){if(Vdl!==void 0)return Vdl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Vdl=v},{mode:1});var HO1;var tW=function(){return _.g.apply(this,arguments)||this};
_.S(tW,_.g);tW.prototype.focus=function(){_.K(this.hostElement).querySelector("#commentbox").focus()};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tW.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],tW.prototype,"zeroStepChannelCreationRenderer",void 0);tW=_.k([_.N({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],tW);
_.u(tW,"ytd-comment-dialog-renderer",function(){if(HO1!==void 0)return HO1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return HO1=v},{mode:1});var gTF;var BK=function(){var v=_.g.apply(this,arguments)||this;v.buttonOverrides={size:"S",iconPosition:"icon-only"};v.replyButtonOverrides={size:"S",type:"text"};return v};
_.S(BK,_.g);_.c=BK.prototype;_.c.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.c.detached=function(){this.replyBox&&this.replyBox.remove()};
_.c.showReplyDialog=function(v){if(v){var E=this.replyBox;E||(E=document.createElement("ytd-comment-reply-dialog-renderer"),E.id="replybox",_.K(this.replyDialogDiv).appendChild(E));E.data=v;this.replyDialogDiv.hidden=!1;E.openDialog()}};
_.c.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.c.onYtServiceRequestSent=function(v,E){v.stopPropagation();if(E.actions)for(var n=0;n<E.actions.length;n++){var f=_.C(E.actions[n],Vrg);f?this.handleUpdateCommentVoteAction(f):v.target===this.heartButton&&this.toggleHeartState()}};
_.c.handleUpdateCommentVoteAction=function(v){var E;(E=this.toolbarState)!=null&&E.key&&this.ytdReduxBehavior.dispatch(_.sI("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:v.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":v.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.c.toggleHeartState=function(){var v;(v=this.toolbarState)!=null&&v.key&&this.ytdReduxBehavior.dispatch(_.sI("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.hK.Object.defineProperties(BK.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return(((v=this.toolbarState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(E=this.toolbarData)==null?void 0:E.likeCountLiked:(n=this.toolbarData)==null?void 0:n.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand)!==void 0&&!_.Z("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E=_.C((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.eg),n,f,x,y,Q,e,F,b,l;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((n=this.toolbarSharedData)==null||!n.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:E!=null?E:_.C((x=this.toolbarSurface)==null?void 0:x.likeCommand,_.eg),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.C((y=this.toolbarSurface)==null?void 0:y.unlikeCommand,_.eg),defaultCommand:this.isVisiblyDisabled?_.C((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.eg):void 0,defaultTooltip:(e=this.toolbarData)==null?void 0:e.likeInactiveTooltip,toggledTooltip:(F=this.toolbarData)==null?void 0:F.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(b=this.toolbarData)==null?void 0:b.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E=_.C((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.eg),n,f,x,y,Q,e,F,b,l,r;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((n=this.toolbarSharedData)==null||!n.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.C((x=this.toolbarSurface)==null?void 0:x.dislikeCommand,_.eg),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.C((y=this.toolbarSurface)==null?void 0:y.undislikeCommand,_.eg),defaultCommand:this.isVisiblyDisabled?_.C((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.eg):void 0,defaultTooltip:(e=this.toolbarData)==null?void 0:e.dislikeInactiveTooltip,toggledTooltip:(F=this.toolbarData)==null?void 0:
F.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(b=this.toolbarSharedData)==null?void 0:b.dislikeReplyButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E,n;if(((v=this.toolbarState)==null?void 0:v.heartState)!==void 0&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((n=this.toolbarState)==null?void 0:n.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var f,x,y,Q,e,F,b,l,r,a,M,U,d,Y;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(f=this.toolbarData)==null?void 0:f.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.C((F=this.toolbarSurface)==null?void 0:F.heartCommand,
_.eg),unheartEndpoint:this.isVisiblyDisabled?void 0:_.C((b=this.toolbarSurface)==null?void 0:b.unheartCommand,_.eg),disabledEndpoint:this.isVisiblyDisabled?_.C((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.eg):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(r=this.toolbarData)==null?void 0:r.heartActiveTooltip,unheartedTooltip:(a=this.toolbarData)==null?void 0:a.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((M=
this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(U=this.toolbarSharedData)==null?void 0:U.unheartButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(Y=this.toolbarSharedData)==null?void 0:Y.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.toolbarSurface)==null||!v.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(v=this.commentStrings)==null?void 0:v.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.C((E=this.toolbarSurface)==null?void 0:E.replyCommand,_.eg),command:this.isVisiblyDisabled?_.C((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.eg):void 0}}}});
BK.prototype.onYtServiceRequestSent=BK.prototype.onYtServiceRequestSent;BK.prototype.hideReplyDialogDiv=BK.prototype.hideReplyDialogDiv;_.k([_.H(),_.W("design:type",Object)],BK.prototype,"commentStrings",void 0);_.k([_.H(),_.W("design:type",Boolean)],BK.prototype,"isReply",void 0);_.k([_.H(),_.W("design:type",Object)],BK.prototype,"toolbarData",void 0);_.k([_.H(),_.W("design:type",Object)],BK.prototype,"toolbarSharedData",void 0);
_.k([_.H(),_.W("design:type",String)],BK.prototype,"toolbarStateKey",void 0);_.k([_.H(),_.W("design:type",String)],BK.prototype,"toolbarSurfaceKey",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.Wp("#reply-dialog"),_.W("design:type",HTMLElement)],BK.prototype,"replyDialogDiv",void 0);_.k([_.Wp("#replybox"),_.W("design:type",Object)],BK.prototype,"replyBox",void 0);_.k([_.Wp("ytd-creator-heart-renderer"),_.W("design:type",Object)],BK.prototype,"heartButton",void 0);_.k([_.H({selector:function(v,E){return _.LH(v.entities,"engagementToolbarStateEntityPayload",E)},
selectorArgs:["toolbarStateKey"]}),_.W("design:type",Object)],BK.prototype,"toolbarState",void 0);_.k([_.H({selector:ixL,selectorArgs:["toolbarSurfaceKey"]}),_.W("design:type",Object)],BK.prototype,"toolbarSurface",void 0);_.k([_.H(),_.W("design:type",Object)],BK.prototype,"buttonOverrides",void 0);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BK.prototype,"hideReplyDialogDiv",null);
_.k([_.A("toolbarData","toolbarState"),_.W("design:type",String),_.W("design:paramtypes",[])],BK.prototype,"likeCount",null);_.k([_.A("likeCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BK.prototype,"showLikeCount",null);_.k([_.A("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BK.prototype,"isVisiblyDisabled",null);_.k([_.A("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BK.prototype,"hasPrepareAccountCommand",null);
_.k([_.A("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],BK.prototype,"likeToggleButtonRenderer",null);_.k([_.A("isReply","toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],BK.prototype,"dislikeToggleButtonRenderer",null);_.k([_.A("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],BK.prototype,"creatorHeartSupportedRenderer",null);
_.k([_.A("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BK.prototype,"hasReplyCommand",null);_.k([_.A("toolbarSurface","commentStrings","isVisiblyDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],BK.prototype,"replyButtonRenderer",null);_.k([_.H(),_.W("design:type",Object)],BK.prototype,"replyButtonOverrides",void 0);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],BK.prototype,"onYtServiceRequestSent",null);BK=_.k([_.N({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],BK);
_.u(BK,"ytd-comment-engagement-bar",function(){if(gTF!==void 0)return gTF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gTF=v},{mode:1});var NS4;var v0=function(){return _.g.apply(this,arguments)||this};
_.S(v0,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],v0.prototype,"data",void 0);v0=_.k([_.N({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],v0);
_.u(v0,"ytd-comment-inline-thumbnail-renderer",function(){if(NS4!==void 0)return NS4;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return NS4=v},{mode:1});var ujX;var E4=function(){return _.g.apply(this,arguments)||this};
_.S(E4,_.g);_.k([_.H(),_.W("design:type",Object)],E4.prototype,"data",void 0);E4=_.k([_.N({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],E4);
_.u(E4,"ytd-comment-pause-composer-renderer",function(){if(ujX!==void 0)return ujX;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ujX=v},{mode:1});var jn1;var OOl;var na=function(){var v=_.g.apply(this,arguments)||this;v.isOpen=!1;return v};
_.S(na,_.g);_.c=na.prototype;_.c.dataChanged=function(){this.isOpen=!1};
_.c.onTap=function(){this.data&&(this.data.navigationEndpoint?_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.c.focus=function(){this.JSC$13602_commentbox.focus()};
_.c.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.c.openDialog=function(){this.isOpen=!0;this.JSC$13602_commentbox.focus();this.JSC$13602_commentbox.maybeHeightChanged()};
na.prototype.onYtCommentboxDismiss=na.prototype.onYtCommentboxDismiss;na.prototype.dataChanged=na.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],na.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],na.prototype,"isOpen",void 0);_.k([_.Wp("#commentbox"),_.W("design:type",Object)],na.prototype,"JSC$13602_commentbox",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],na.prototype,"dataChanged",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],na.prototype,"onYtCommentboxDismiss",null);na=_.k([_.N({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],na);
_.u(na,"ytd-comment-reply-dialog-renderer",function(){if(OOl!==void 0)return OOl;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return OOl=v},{mode:1});var kbl;var oR=function(){return _.g.apply(this,arguments)||this};
_.S(oR,_.g);_.hK.Object.defineProperties(oR.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.icon)==null?void 0:E.iconType;return n?"yt-icons:"+n.toLowerCase():null}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oR.prototype,"data",void 0);_.k([_.H(),_.A("data.icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],oR.prototype,"icon",null);oR=_.k([_.N({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],oR);
_.u(oR,"ytd-pinned-comment-badge-renderer",function(){if(kbl!==void 0)return kbl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return kbl=v},{mode:1});var W16;var $kS={},L1S={input:!0,meta:!0,br:!0,link:!0,img:!0},fa=null;$kS.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(){fa==null&&(fa=document.createElement("tp-yt-paper-tooltip"),fa.offset=8,fa.fitToVisibleBounds=!0)},
onMouseOver_:function(v){if(v=_.Ss(v.target,function(x){return x==this||x.getAttribute&&x.getAttribute("shared-tooltip-text")}.bind(this),!0)){var E=v.getAttribute("shared-tooltip-text");
if(E){var n=this,f=null;v!=this&&(v.tagName.toLowerCase()in L1S?n=v.parentElement:n=v,v.id&&(f=v.id));this.polymerController.createTooltipIfRequired_();if(fa.parentElement!=n||fa.for!=f)(0,_.gn)(fa).textContent=E,_.K(n).appendChild(fa),fa.for=f,fa.animationDelay=this.polymerController.sharedTooltipAnimationDelay,fa.position=this.polymerController.sharedTooltipPosition}}}};var x5=function(){return _.g.apply(this,arguments)||this};
_.S(x5,_.g);x5.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]]"}}}}}};
x5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
x5.prototype.colorChanged=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.color)==null?void 0:(n=E.basicColorPaletteData)==null?void 0:n.foregroundBodyColor;f&&(this.rgbBadgeColor=_.p2(f));_.K(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
x5.prototype.tooltipChanged=function(){var v;((v=this.data)==null?0:v.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
x5.prototype.tooltipChanged=x5.prototype.tooltipChanged;x5.prototype.colorChanged=x5.prototype.colorChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h($kS.YtSharedTooltipBehavior),_.W("design:type",Object)],x5.prototype,"ytSharedTooltipBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],x5.prototype,"data",void 0);
_.k([_.H({value:"#4285F4"}),_.W("design:type",String)],x5.prototype,"rgbBadgeColor",void 0);_.k([_.On("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x5.prototype,"colorChanged",null);_.k([_.On("data.tooltip"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x5.prototype,"tooltipChanged",null);x5=_.k([_.N({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],x5);
_.u(x5,"ytd-sponsor-comment-badge-renderer",function(){if(W16!==void 0)return W16;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return W16=v},{mode:1});var Gb6;var TS1;var c0=function(){return _.g.apply(this,arguments)||this};
_.S(c0,_.g);c0.prototype.computeState=function(v){switch(v==null?void 0:v.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"}};
c0.prototype.updateStateIdentifier=function(v){if(this.viewModel.triStateKey){var E=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.sI("triStateButtonStateEntityPayload",E,{key:E,stateIdentifier:v}))}};
c0.prototype.onClick=function(){var v=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(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.hK.Object.defineProperties(c0.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 v;return((v=this.data)==null?void 0:v.buttonText)||""}}});
_.k([_.H(),_.W("design:type",Object)],c0.prototype,"viewModel",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],c0.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.k([_.H({selector:zcy,selectorArgs:["viewModel.triStateKey"]}),_.W("design:type",Object)],c0.prototype,"triStateButtonStateEntity",void 0);
_.k([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.W("design:type",String)],c0.prototype,"state",void 0);_.k([_.A("viewModel","state"),_.W("design:type",Object),_.W("design:paramtypes",[])],c0.prototype,"data",null);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],c0.prototype,"buttonText",null);c0=_.k([_.N({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],c0);
_.u(c0,"ytd-tri-state-button-view-model",function(){if(TS1!==void 0)return TS1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return TS1=v},{mode:1});var iOz;var zJS;var y7=function(){var v=_.g.apply(this,arguments)||this;v.defaultIconToFilled=!_.Z("kevlar_fill_comment_chip_icon_killswitch");return v};
_.S(y7,_.g);y7.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
y7.prototype.dataChanged=function(){if(this.data){var v,E;((v=this.data.chipColorPalette)==null?0:v.backgroundColor)&&((E=this.data.chipColorPalette)==null?0:E.foregroundTitleColor)&&_.NQ(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Qt(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Qt(this.data.chipColorPalette.foregroundTitleColor)});var n;((n=this.data)==null?0:n.command)?(_.NQ(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.NQ(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}};
y7.prototype.onTap=function(){var v;if(this.data&&(v=this.data)!=null&&v.command){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.command)}};
y7.prototype.getIconSize=function(){return _.Z("kevlar_fill_comment_chip_icon_killswitch")?24:12};
y7.prototype.onTap=y7.prototype.onTap;y7.prototype.dataChanged=y7.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],y7.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Ff),_.W("design:type",Object)],y7.prototype,"ironA11yKeysBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],y7.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],y7.prototype,"basePriceText",void 0);_.k([_.H(),_.W("design:type",Object)],y7.prototype,"chipIcon",void 0);_.k([_.H(),_.W("design:type",Object)],y7.prototype,"defaultIconToFilled",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"onTap",null);
y7=_.k([_.p5({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],y7);
_.u(y7,"yt-pdg-comment-chip-renderer",function(){if(zJS===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;iOz===void 0&&(iOz=document.createElement("template"));var f=iOz;n.call(E,f.content.cloneNode(!0),v.content.firstChild);zJS=v}v=zJS;return v},{mode:2});var pa=function(){var v=_.g.apply(this,arguments)||this;v.useSmallAvatars=_.Z("small_avatars_for_comments");v.webWatchCompactComments=_.Z("web_watch_compact_comments");v.editDialog=null;return v};
_.S(pa,_.g);_.c=pa.prototype;_.c.onShow=function(){_.m5("cmv",void 0,"wn_comments")};
_.c.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"}}}};
_.c.detached=function(){this.editDialog=null;this.expander.reset()};
_.c.updateBackgroundColor=function(){if(this.backgroundColor){var v={"--ytd-comment-paid-background-color":_.Qt(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.NQ(this.hostElement,v)}else _.NQ(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.c.resetExpander=function(){var v;(v=this.expander)==null||v.reset()};
_.c.openEditDialog=function(v){v.dialog&&(this.editDialog=v.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.c.onYtNavigate=function(v){var E=v.detail.endpoint;if(E=_.C(E,_.qGo)||_.C(E,_.JTX))v.stopPropagation(),this.openEditDialog(E)};
_.c.onYtCommentboxDismiss=function(){this.editDialog=null;_.NQ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.c.onAuthorThumbnailClicked=function(){var v=this;_.Z("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(E,n){v.onAuthorThumbnailEndpointSuccess(n)},
onServerError:function(E,n){_.li(new _.yc("Failed to resolve the command",n))}}})};
_.c.onAuthorThumbnailEndpointSuccess=function(v){if((v=v==null?void 0:v.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(v,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();v=v==null?void 0:v.clickTrackingParams;var E=_.bc();v&&E&&_.Tl().graftServerVe(v,E)}};
_.c.logScreenVe=function(){_.Rs(_.Tl(),66557)};
_.c.onYtCommentboxResize=function(v){var E;(v==null?0:(E=v.detail)==null?0:E.height)&&_.NQ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":v.detail.height+"px"})};
_.hK.Object.defineProperties(pa.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 v,E=(v=this.commentEntity)==null?void 0:v.author;return E&&(E.isCreator||E.isVerified||E.isArtist)?{renderer:{authorEndpoint:E.channelPageEndpoint?_.C(E.channelPageEndpoint,_.eg):_.C(E.channelCommand,_.eg),authorText:{runs:[{text:E.displayName}]},color:E.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:E.isArtist?{iconType:"AUDIO_BADGE"}:
E.isVerified?{iconType:E.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:E.isArtist||E.isVerified?E.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.commentEntity)==null?void 0:v.author;return E!=null&&E.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:E.sponsorBadgeUrl}]},tooltip:E.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return _.C((v=this.commentSurfaceEntity)==null?void 0:v.pdgCommentChip,_.nO4)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&((v=this.voiceReplyContainerViewModel)==null?void 0:v.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return _.C((v=this.commentSurfaceEntity)==null?void 0:v.voiceReplyContainerViewModel,OoF)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&(v=this.voiceReplyContainerViewModel)!=null&&v.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.commentSurfaceEntity)==null?void 0:v.commentBackgroundColor)!=null?E:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var v,E;return(((v=this.commentEntity)==null?void 0:(E=v.properties)==null?void 0:E.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,E;if(_.Z("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(E=v.author)==null?0:E.profileCardEndpoint)&&this.viewModel.allowProfileCard){var n,f;return _.C((n=this.commentEntity)==null?void 0:(f=n.author)==null?void 0:f.profileCardEndpoint,_.eg)}var x,y;return _.C((x=this.commentEntity)==null?void 0:(y=x.avatar)==null?void 0:y.endpoint,_.eg)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,E;if(_.Z("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(E=v.author)==null?0:E.channelPageEndpoint)){var n,f;return _.C((n=this.commentEntity)==null?void 0:(f=n.author)==null?void 0:f.channelPageEndpoint,_.eg)}var x,y;return _.C((x=this.commentEntity)==null?void 0:(y=x.avatar)==null?void 0:y.endpoint,_.eg)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x=(v=this.commentEntity)==null?void 0:(E=v.avatar)==null?void 0:(n=E.image)==null?void 0:(f=n.sources)==null?void 0:f[0];return x?{thumbnails:[{url:x.url,width:x.width,height:x.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.commentEntity)==null?0:(E=v.author)==null?0:E.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.commentEntity)==null?void 0:(E=v.author)==null?void 0:E.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.commentEntity)==null?void 0:(E=v.properties)==null?void 0:E.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.C((v=this.commentSurfaceEntity)==null?void 0:v.publishedTimeCommand,_.eg)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var v,E;if(((v=this.commentEntity)==null?0:v.translatedContent)&&((E=this.translateButtonState)==null?void 0:E.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var n;if((n=this.voiceReplyContainerViewModel)==null?0:n.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var f,x;return((f=this.commentEntity)==null?void 0:(x=f.properties)==null?void 0:x.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.commentSharedEntity)==null?void 0:(E=v.strings)==null?void 0:E.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.commentSharedEntity)==null?void 0:(E=v.strings)==null?void 0:E.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentEntity)==null||!v.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var v,E,n=(E=_.C((v=this.viewModel)==null?void 0:v.translateButton,jyS))!=null?E:{},f,x,y,Q,e,F,b,l,r,a,M;return Object.assign({},n,{untoggledStateData:Object.assign({},n.untoggledStateData,{buttonText:(f=this.commentEntity)==null?void 0:(x=f.translateData)==null?void 0:x.text}),togglingStateData:Object.assign({},n.togglingStateData,{buttonText:(y=this.commentSharedEntity)==null?
void 0:(Q=y.strings)==null?void 0:Q.translatingText}),toggledStateData:Object.assign({},n.toggledStateData,{buttonText:(e=this.commentSharedEntity)==null?void 0:(F=e.strings)==null?void 0:F.seeOriginalText}),transitionCommand:((b=this.commentEntity)==null?0:b.translatedContent)?void 0:_.C((l=this.commentEntity)==null?void 0:(r=l.translateData)==null?void 0:r.translateComment,_.eg),triStateKey:(a=this.commentEntity)==null?void 0:(M=a.properties)==null?void 0:M.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((E=_.C(_.C((v=this.toolbarSurface)==null?void 0:v.menuCommand,_.eg),K46))==null?void 0:(n=E.menu)==null?void 0:n.menuRenderer)||null}}});
pa.prototype.onYtCommentboxResize=pa.prototype.onYtCommentboxResize;pa.prototype.onYtCommentboxDismiss=pa.prototype.onYtCommentboxDismiss;pa.prototype.onYtNavigate=pa.prototype.onYtNavigate;pa.prototype.resetExpander=pa.prototype.resetExpander;pa.prototype.updateBackgroundColor=pa.prototype.updateBackgroundColor;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],pa.prototype,"ytdReduxBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#author-thumbnail > button"),_.W("design:type",HTMLElement)],pa.prototype,"authorThumbnailAnchor",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pa.prototype,"linked",null);
_.k([_.A("viewModel","linked"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"linkedCommentBadge",null);_.k([_.H({reflectToAttribute:!0}),_.A("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pa.prototype,"pinned",null);_.k([_.A("viewModel","pinned"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"pinnedCommentBadge",null);
_.k([_.A("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"authorCommentBadge",null);_.k([_.H({reflectToAttribute:!0}),_.A("authorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"hasAuthorBadge",null);_.k([_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"sponsorCommentBadge",null);
_.k([_.H({reflectToAttribute:!0}),_.A("sponsorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"hasSponsorBadge",null);_.k([_.A("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"pdgCommentChipRenderer",null);_.k([_.H({reflectToAttribute:!0}),_.A("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"hasVoiceReply",null);
_.k([_.A("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"voiceReplyContainerViewModel",null);_.k([_.A("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"voiceReplyUnavailableText",null);_.k([_.H(),_.W("design:type",Object)],pa.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"viewModel",null);
_.k([_.H({selector:function(v,E){return _.LH(v.entities,"commentSharedEntityPayload",E)},
selectorArgs:["viewModel.sharedKey"]}),_.W("design:type",Object)],pa.prototype,"commentSharedEntity",void 0);_.k([_.H({selector:function(v,E){return _.LH(v.entities,"commentEntityPayload",E)},
selectorArgs:["viewModel.commentKey"]}),_.W("design:type",Object)],pa.prototype,"commentEntity",void 0);_.k([_.H({selector:function(v,E){return _.LH(v.entities,"commentSurfaceEntityPayload",E)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.W("design:type",Object)],pa.prototype,"commentSurfaceEntity",void 0);_.k([_.H({selector:ixL,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.W("design:type",Object)],pa.prototype,"toolbarSurface",void 0);_.k([_.H({selector:zcy,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.W("design:type",Object)],pa.prototype,"translateButtonState",void 0);
_.k([_.A("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"backgroundColor",null);_.k([_.H({reflectToAttribute:!0}),_.A("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pa.prototype,"optimalReadingWidthComments",null);_.k([_.Wp("ytd-expander"),_.W("design:type",Object)],pa.prototype,"expander",void 0);
_.k([_.On("backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pa.prototype,"updateBackgroundColor",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pa.prototype,"useSmallAvatars",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pa.prototype,"webWatchCompactComments",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"isReply",null);
_.k([_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"authorThumbnailEndpoint",null);_.k([_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"authorNameEndpoint",null);_.k([_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"authorThumbnail",null);_.k([_.A("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],pa.prototype,"authorTextClass",null);
_.k([_.A("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],pa.prototype,"authorChannelName",null);_.k([_.A("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"publishedTime",null);_.k([_.A("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"publishedTimeCommand",null);
_.k([_.A("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"contentText",null);_.k([_.On("contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pa.prototype,"resetExpander",null);_.k([_.A("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pa.prototype,"shouldShowReadMoreInitially",null);
_.k([_.A("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],pa.prototype,"expandText",null);_.k([_.A("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],pa.prototype,"collapseText",null);_.k([_.A("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pa.prototype,"shouldShowTranslateButton",null);
_.k([_.A("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"translateButton",null);_.k([_.A("toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],pa.prototype,"overflowMenuRenderer",null);_.k([_.H(),_.W("design:type",Object)],pa.prototype,"editDialog",void 0);_.k([_.Wp("ytd-comment-dialog-renderer"),_.W("design:type",Object)],pa.prototype,"editCommentDialogContainer",void 0);
_.k([_.Wp("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],pa.prototype,"editReplyDialogContainer",void 0);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pa.prototype,"onYtNavigate",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pa.prototype,"onYtCommentboxDismiss",null);
_.k([_.jk("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pa.prototype,"onYtCommentboxResize",null);pa=_.k([_.N({disableElementRegistration:!0,is:"ytd-comment-view-model"})],pa);
_.u(pa,"ytd-comment-view-model",function(){if(Gb6!==void 0)return Gb6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Gb6=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var Q7=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_modern_buttons");v.isWatchGrid=_.Z("kevlar_watch_grid");v.buttonOverrides={style:"call-to-action"};v.JSC$13648_spinnerEl=null;return v};
_.S(Q7,_.g);_.c=Q7.prototype;_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.c.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]]"}}}}}};
_.c.attached=function(){this.isShowRepliesVisible=!0};
_.c.dataChanged=function(){var v=this.expanderContents;v&&(v.hidden=!0);this.isLoading=!1};
_.c.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.c.isLoadingChanged=function(){this.isLoading&&!this.JSC$13648_spinnerEl&&(this.JSC$13648_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.expanderContents).appendChild(this.JSC$13648_spinnerEl));this.JSC$13648_spinnerEl&&(this.JSC$13648_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var v;(v=this.contents)==null||v.classList.remove("reloading")}};
_.c.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var v=_.C(this.data.viewReplies,_.qb);v&&this.ytRendererBehavior.logExplicitClick(v)};
_.c.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var v=_.C(this.data.hideReplies,_.qb);v&&this.ytRendererBehavior.logExplicitClick(v)};
_.c.isShowMoreChanged=function(){var v=_.K(this.hostElement).querySelector("#expander-contents");v&&(v.hidden=this.isShowRepliesVisible)};
_.c.computeAlign=function(){if(this.modern){var v;return!((v=this.data)==null?0:v.viewRepliesCreatorThumbnail)}};
_.hK.Object.defineProperties(Q7.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.data)==null?void 0:v.contents;return!!E&&E.length>0&&!!E[E.length-1].continuationItemRenderer}}});
Q7.prototype.isShowMoreChanged=Q7.prototype.isShowMoreChanged;Q7.prototype.isLoadingChanged=Q7.prototype.isLoadingChanged;Q7.prototype.triggerFirstContinuation=Q7.prototype.triggerFirstContinuation;Q7.prototype.dataChanged=Q7.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.MU),_.W("design:type",Object)],Q7.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Q7.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Q7.prototype,"modern",void 0);_.k([_.H(),_.W("design:type",Boolean)],Q7.prototype,"isLoading",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Q7.prototype,"isShowRepliesVisible",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Q7.prototype,"useNewFormatting",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Q7.prototype,"isWatchGrid",void 0);_.k([_.H(),_.W("design:type",Object)],Q7.prototype,"buttonOverrides",void 0);_.k([_.Wp("#expander-contents"),_.W("design:type",HTMLElement)],Q7.prototype,"expanderContents",void 0);_.k([_.Wp("ytd-continuation-item-renderer"),_.W("design:type",Object)],Q7.prototype,"continuationItemRenderer",void 0);_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],Q7.prototype,"contents",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q7.prototype,"dataChanged",null);_.k([_.A("data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Q7.prototype,"hasContinuation",null);_.k([_.jk("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q7.prototype,"triggerFirstContinuation",null);
_.k([_.On("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q7.prototype,"isLoadingChanged",null);_.k([_.On("isShowRepliesVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q7.prototype,"isShowMoreChanged",null);Q7=_.k([_.N({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Q7);
_.u(Q7,"ytd-comment-replies-renderer",function(){if(jn1!==void 0)return jn1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return jn1=v},{mode:1});var RJF;var Xa=function(){var v=_.g.apply(this,arguments)||this;v.isOpen=!1;v.commentDialog=null;v.useSmallAvatars=_.Z("small_avatars_for_comments");v.useSmallAvatarsEngagementPanelOnly=_.Z("small_avatars_for_comments_ep");v.placeholderFocusListener=null;v.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return v};
_.S(Xa,_.g);_.c=Xa.prototype;_.c.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]]"}}}}}};
_.c.ready=function(){var v=this,E=_.K(this.hostElement).querySelector("#placeholder-area"),n=_.K(this.hostElement).querySelector("#simplebox-placeholder"),f=function(x){x.stopPropagation();x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||v.openDialog()};
this.placeholderFocusListener=f;n.addEventListener("focus",this.placeholderFocusListener);E.addEventListener("tap",f);E.addEventListener("keypress",f)};
_.c.maybeRemoveFocusEventListener=function(){var v;(v=this.data)!=null&&v.prepareAccountEndpoint&&!_.Z("web_comments_simplebox_modal_focus_on_tap_ks")&&(v=_.K(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(v.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.c.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.c.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.Z("web_comment_simplebox_resolve_polymer_command_ks")?_.ki.instance.resolveCommand(this.data.prepareAccountEndpoint):_.WE(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.K(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.c.onYtCommentboxDismiss=function(v){v.stopPropagation();this.isOpen=!1};
_.c.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.isOpen=!1)};
_.c.computeCommentDialog=function(v){return{placeholderText:v.placeholderText,authorThumbnail:v.authorThumbnail,submitButton:v.submitButton,imageButton:v.imageButton,cancelButton:v.cancelButton,emojiButton:v.emojiButton,emojis:v.emojis,emojiPicker:v.emojiPicker,aadcGuidelinesStateEntityKey:v.aadcGuidelinesStateEntityKey,openAadcDialog:v.openAadcDialog,unicodeEmojisUrl:v.unicodeEmojisUrl}};
_.c.onHideIdentityChip=function(v){_.C(v,h$g)&&this.set("data.placeholderText",_.C(v,h$g).placeholderText)};
Xa.prototype.onYtCommentboxDismiss=Xa.prototype.onYtCommentboxDismiss;Xa.prototype.dataChanged=Xa.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Xa.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Xa.prototype,"isOpen",void 0);_.k([_.H(),_.W("design:type",Object)],Xa.prototype,"commentDialog",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Xa.prototype,"engagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Xa.prototype,"useSmallAvatars",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Xa.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Xa.prototype,"enableCreationBox",void 0);_.k([_.H(),_.W("design:type",Boolean)],Xa.prototype,"showCreateDialog",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Xa.prototype,"dataChanged",null);
_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Xa.prototype,"onYtCommentboxDismiss",null);Xa=_.k([_.N({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Xa);
_.u(Xa,"ytd-comment-simplebox-renderer",function(){if(RJF!==void 0)return RJF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RJF=v},{mode:1});var tdP;_.ew("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var eW=function(){var v=_.g.apply(this,arguments)||this;v.addHoverEffect=_.Z("swatcheroo_comments_hover_effect");return v};
_.S(eW,_.g);eW.prototype.onTap=function(v){if(this.addHoverEffect&&!this.engagementPanel&&!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||_.WE({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
eW.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.hK.Object.defineProperties(eW.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.commentViewModel)return _.C(this.data.commentViewModel,uT6)}}});
eW.prototype.onTap=eW.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],eW.prototype,"addHoverEffect",void 0);_.k([_.H(),_.W("design:type",Object)],eW.prototype,"data",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],eW.prototype,"commentViewModel",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],eW.prototype,"engagementPanel",void 0);_.k([_.jk("tap"),_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],eW.prototype,"onTap",null);eW=_.k([_.N({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],eW);
_.u(eW,"ytd-comment-thread-renderer",function(){if(tdP!==void 0)return tdP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return tdP=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var BSz;var Fa=function(){var v=_.g.apply(this,arguments)||this;v.modernTypography=_.Z("web_modern_typography");v.compactHeader=_.Z("web_watch_compact_comments_header");v.hidePanelButton=!1;v.isPostSchedulingEnabled=_.Z("enable_post_scheduling");v.hasFinishedStamping=!1;v.JSC$13666_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.S(Fa,_.g);_.c=Fa.prototype;
_.c.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"}}}};
_.c.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.c.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13666_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.c.onYtServiceRequestSent=function(v,E){if(!_.Z("kevlar_command_handler")&&E.actions)for(v=0;v<E.actions.length;v++){var n=E.actions[v];_.C(n,cPS)&&_.K(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.C(n,cPS))}};
_.c.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var v;if(this.getPrefilledBackstagePostDialog((v=this.data)==null?void 0:v.actions)){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var E=_.K(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;E&&_.IS(this,function(){E.focus();E.openDialog&&E.openDialog()})}}else this.hasActionsChange=!0};
_.c.computeIsBackstage=function(v){return v};
_.c.onYtCommentboxDismiss=function(){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.c.removePrefilledDialog=function(v){if(v==null?0:v.actions){for(var E=v.actions.length-1;E>=0;E--){var n=void 0;((n=_.C(v.actions[E],SGz))==null?0:n.dialog)&&delete v.actions[E]}this.set("data",void 0);this.set("data",v)}};
_.c.getPrefilledBackstagePostDialog=function(v){if(v)for(var E=0;E<v.length;E++){var n=v[E],f=void 0;if((f=_.C(n,SGz))==null?0:f.dialog)return _.C(n,SGz).dialog}return null};
_.c.computeBackstagePostDialog=function(v){return v&&(this.getPrefilledBackstagePostDialog(v.actions)||v.createRenderer)};
_.c.dataChanged=function(){if(this.data){var v=this.data.customEmojis,E=this.data.unicodeEmojisUrl;_.af.clear();E&&_.Onl(_.af,E);v&&_.af.load(v)}};
_.c.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.K(this.hostElement).querySelector("ytd-comment-simplebox-renderer");v?v.openDialog():this.JSC$13666_handleOpenPostCommentDialogActionAfterStamp=!0};
_.hK.Object.defineProperties(Fa.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Z("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y,Q;return!this.hidePanelButton&&_.Z("kevlar_watch_comments_panel_button")&&((Q=_.C((v=this.data)==null?void 0:(E=v.sortMenu)==null?void 0:(n=E.sortFilterSubMenuRenderer)==null?void 0:(f=n.subMenuItems)==null?void 0:(x=f[0])==null?void 0:(y=x.serviceEndpoint)==null?void 0:y.commandMetadata,_.Dl))==null?void 0:Q.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.tQ("MINIPLAYER_EXPAND_LABEL"),text:_.qD(_.tQ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Fa.prototype.dataChanged=Fa.prototype.dataChanged;Fa.prototype.onYtCommentboxDismiss=Fa.prototype.onYtCommentboxDismiss;Fa.prototype.observePrefilledBackstagePostDialog=Fa.prototype.observePrefilledBackstagePostDialog;Fa.prototype.onYtServiceRequestSent=Fa.prototype.onYtServiceRequestSent;Fa.prototype.onStampFinished=Fa.prototype.onStampFinished;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Fa.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fa.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fa.prototype,"modernTypography",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fa.prototype,"compactHeader",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Fa.prototype,"engagementPanel",void 0);_.k([_.H(),_.W("design:type",Object)],Fa.prototype,"hidePanelButton",void 0);_.k([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Fa.prototype,"isBackstage",void 0);_.k([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.W("design:type",Object)],Fa.prototype,"backstagePostDialog",void 0);
_.k([_.H(),_.W("design:type",Object)],Fa.prototype,"isPostSchedulingEnabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],Fa.prototype,"useSpaceBetween",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","hidePanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],Fa.prototype,"showCommentsPanelButton",null);
_.k([_.A("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],Fa.prototype,"commentsPanelButtonData",null);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fa.prototype,"onStampFinished",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Fa.prototype,"onYtServiceRequestSent",null);
_.k([_.On("data.actions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fa.prototype,"observePrefilledBackstagePostDialog",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Fa.prototype,"onYtCommentboxDismiss",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fa.prototype,"dataChanged",null);
Fa=_.k([_.N({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Fa);
_.u(Fa,"ytd-comments-header-renderer",function(){if(BSz!==void 0)return BSz;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return BSz=v},{mode:1});var vu4;var mq=function(){return _.g.apply(this,arguments)||this};
_.S(mq,_.g);_.k([_.H(),_.W("design:type",Object)],mq.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);mq=_.k([_.N({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],mq);
_.u(mq,"ytd-destination-button-renderer",function(){if(vu4!==void 0)return vu4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vu4=v},{mode:1});var Eul;var wu=function(){var v=_.g.apply(this,arguments)||this;v.isRichGrid=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};v.modernTypography=_.Z("web_modern_typography");return v};
_.S(wu,_.g);_.c=wu.prototype;_.c.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.c.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.c.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.c.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var v;if((v=this.data)==null||!v.isExpanded){v=this.hostElement.clientWidth;var E;if(v&&(E=this.data)!=null&&E.destinationButtons){E=Math.floor((v+4)/214);v=this.data.destinationButtons.length;var n=Math.ceil(v/E);this.fullyVisibleRows=v%E===1&&n===2?1:Math.min(n,2);this.isShowMoreVisible=this.fullyVisibleRows<n}}}};
_.c.updateRichGridDestinationButtonsVisibility=function(){var v,E;if(this.isRichGrid&&((v=this.data)==null||!v.isExpanded)&&(E=this.data)!=null&&E.destinationButtons){v=this.richGridItemsPerRow+1;E=this.data.destinationButtons.length;var n=Math.ceil(E/v);this.fullyVisibleRows=E%v===1&&n===2?1:Math.min(n,2);this.isShowMoreVisible=this.fullyVisibleRows<n}};
_.c.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
wu.prototype.updateRichGridDestinationButtonsVisibility=wu.prototype.updateRichGridDestinationButtonsVisibility;_.k([_.H(),_.W("design:type",Object)],wu.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Number)],wu.prototype,"fullyVisibleRows",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],wu.prototype,"isShowMoreVisible",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wu.prototype,"isRichGrid",void 0);
_.k([_.H({selector:_.Fq,value:0}),_.W("design:type",Number)],wu.prototype,"richGridItemsPerRow",void 0);_.k([_.H(),_.W("design:type",Object)],wu.prototype,"gridStateActionMap",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],wu.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wu.prototype,"modernTypography",void 0);_.k([_.On("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wu.prototype,"updateRichGridDestinationButtonsVisibility",null);
wu=_.k([_.N({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],wu);
_.u(wu,"ytd-destination-shelf-renderer",function(){if(Eul!==void 0)return Eul;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Eul=v},{mode:1});var nuz;var b1=function(){return _.g.apply(this,arguments)||this};
_.S(b1,_.g);b1.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],b1.prototype,"data",void 0);b1=_.k([_.N({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],b1);
_.u(b1,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(nuz!==void 0)return nuz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return nuz=v},{mode:1});var ouw;var l1=function(){var v=_.g.apply(this,arguments)||this;v.disableAnimation=!1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;return v};
_.S(l1,_.g);l1.prototype.onTap=function(v){v.preventDefault();this.data&&_.jK(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.hK.Object.defineProperties(l1.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 v,E,n,f,x;return((v=this.data)==null?0:v.checked)?(E=this.data)==null?void 0:(n=E.onStateIcon)==null?void 0:n.iconType:(f=this.data)==null?void 0:(x=f.defaultStateIcon)==null?void 0:x.iconType}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],l1.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],l1.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],l1.prototype,"disableAnimation",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l1.prototype,"isSlimlineSurvey",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l1.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l1.prototype,"isShortsStyle",void 0);_.k([_.A("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l1.prototype,"isAnimatedIcon",null);
_.k([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],l1.prototype,"iconSize",null);_.k([_.A("isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l1.prototype,"isDarkTheme",null);_.k([_.A("data.checked"),_.W("design:type",Object),_.W("design:paramtypes",[])],l1.prototype,"icon",null);l1=_.k([_.N({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],l1);
_.u(l1,"ytd-rating-survey-option-renderer",function(){if(ouw!==void 0)return ouw;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ouw=v},{mode:2});var fyo;var s4=function(){var v=_.g.apply(this,arguments)||this;v.firstResponseText=null;v.lastResponseText=null;v.selectedNonStarOption=null;v.hideOptions=!1;v.hideUndoButton=!0;v.disableAnimation=!1;v.showResponseRangeText=!1;v.selectedRatingIndex=-1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.slimlineSurveyRatingSelectedIndex=-1;return v};
_.S(s4,_.g);_.c=s4.prototype;_.c.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.c.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.c.onOptionChange=function(v,E){var n=this;v=E.onStateIcon&&E.defaultStateIcon&&E.onStateIcon.iconType===E.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Q,e){Q.responseText===E.responseText?n.isSlimlineSurvey?(n.selectedRatingIndex=e,n.ytdReduxBehavior.dispatch(nxi(e))):(n.setSurveyOptionValue(e,!0,"checked"),n.setSurveyOptionValue(e,!0,"selected")):(n.setSurveyOptionValue(e,!1,"checked"),n.setSurveyOptionValue(e,
!1,"selected"))});
else if(v)this.selectedNonStarOption=E,this.hideOptions=!0;else{var f=this.ytRendererBehavior.getSimpleString(E.responseText),x=!0;this.getOptionRenderers().forEach(function(Q,e){n.setSurveyOptionValue(e,x,"checked");n.setSurveyOptionValue(e,!1,"selected");n.ytRendererBehavior.getSimpleString(Q.responseText)===f&&(x=!1,n.setSurveyOptionValue(e,!0,"selected"))})}v=E.responseEndpoint;
var y;E.followUpCommand&&(y=_.C(E.followUpCommand,Bk1));this.isSlimlineSurvey?(this.resetComponent(),_.OL(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.OL(this.hostElement,"ytd-inline-survey-rating-select-action",[v,y])};
_.c.showSelectedOption=function(){var v=this;_.wh.addJob(function(){var E=v.getOptionRenderers()[v.slimlineSurveyRatingSelectedIndex];v.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),E)},8,100)};
_.c.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(v){var E;return(E=_.C(v,EYz))!=null?E:{}}):[]};
_.c.onUndoClick=function(){this.resetComponent();_.OL(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.c.setSurveyOptionValue=function(v,E,n){this.notifyPath("data.ratings."+v+".ratingSurveyOptionRenderer."+n);this.set("data.ratings."+v+".ratingSurveyOptionRenderer."+n,E)};
_.c.resetComponent=function(){var v=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var E=this.getOptionRenderers(),n,f;this.firstResponseText=(f=(n=E[0])==null?void 0:n.responseText)!=null?f:null;var x,y;this.lastResponseText=(y=(x=E[E.length-1])==null?void 0:x.responseText)!=null?y:null;E.forEach(function(Q,e){v.setSurveyOptionValue(e,!1,"checked");v.setSurveyOptionValue(e,!1,"selected")})};
_.hK.Object.defineProperties(s4.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
s4.prototype.onOptionChange=s4.prototype.onOptionChange;s4.prototype.dataChanged=s4.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],s4.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],s4.prototype,"firstResponseText",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"lastResponseText",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"selectedNonStarOption",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"hideOptions",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"hideUndoButton",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"disableAnimation",void 0);
_.k([_.H(),_.W("design:type",Object)],s4.prototype,"showResponseRangeText",void 0);_.k([_.H(),_.W("design:type",Object)],s4.prototype,"selectedRatingIndex",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s4.prototype,"isSlimlineSurvey",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s4.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s4.prototype,"isShortsStyle",void 0);_.k([_.H({selector:function(v){return v.ui.slimlineSurveyRatingSelectedIndex}}),
_.W("design:type",Object)],s4.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.k([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s4.prototype,"isSingleSelect",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"dataChanged",null);
_.k([_.jk("ytd-rating-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],s4.prototype,"onOptionChange",null);s4=_.k([_.N({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],s4);
_.u(s4,"ytd-rating-survey-renderer",function(){if(fyo!==void 0)return fyo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return fyo=v},{mode:1});var xcS;var cNS;var yNo;var dJ9=(wN.FIRSTDAYOFWEEK+1)%7,pJS=function(v,E,n,f){var x="";if(f.selection&&UJF(f.selection))eh(v,f.selection)&&(x+=" selected");else if(f.selection&&qjN(f.selection)){var y=f.selection.selectionState||"START_DATE";eh(v,f.selection.start)&&(x+=" period-start ",y==="START_DATE"&&(x+="selected"));eh(v,f.selection.end)&&(x+=" period-end ",y==="END_DATE"&&(x+="selected"));FH(v,f.selection.start)||FH(f.selection.end,v)||(x+=" highlighted")}if(FH(E,f.start)||FH(f.end,E))x+=" disabled";f.circleToday&&
eh(E,n)&&(x+=" today");return x};var ru=function(){return _.g.apply(this,arguments)||this};
_.S(ru,_.g);_.c=ru.prototype;_.c.attached=function(){var v=this;_.IS(this,function(){v.JSC$13700_calendarMain.scrollHeight>0&&(v.calendarConfig.selection?v.scrollToDate(JiI(v.calendarConfig.selection)):v.scrollToDate(v.calendarConfig.end))})};
_.c.updateSelection=function(v){v=IZs(Object.assign({},this.calendarConfig,{selection:v}),pJS);this.splice.apply(this,["renderData.months",0,v.length].concat(_.s8(v)))};
_.c.scrollToDate=function(v){this.renderData&&(v=YjI(v,this.renderData),v!==void 0&&this.JSC$13700_calendarMain.scrollToIndex(v))};
_.c.scrollToNextMonth=function(){this.JSC$13700_calendarMain.scrollToIndex(this.JSC$13700_calendarMain.firstVisibleIndex+1)};
_.c.scrollToPrevMonth=function(){this.JSC$13700_calendarMain.firstVisibleIndex===0&&this.JSC$13700_calendarMain.scrollTo(0,0);this.JSC$13700_calendarMain.scrollToIndex(this.JSC$13700_calendarMain.firstVisibleIndex-1)};
_.c.handleDayClick=function(v){_.OL(this.hostElement,"ytd-calendar-date-clicked",[v.model.day.date])};
_.c.handleDayMouseDown=function(v){v.preventDefault();_.OL(this.hostElement,"ytd-calendar-date-mousedown",[v.model.day.date])};
_.c.handleDayMouseUp=function(v){_.OL(this.hostElement,"ytd-calendar-date-mouseup",[v.model.day.date])};
_.c.handleDayMouseEnter=function(v){v.preventDefault();_.OL(this.hostElement,"ytd-calendar-date-mouseenter",[v.model.day.date])};
_.c.handleDayMouseLeave=function(v){_.OL(this.hostElement,"ytd-calendar-date-mouseleave",[v.model.day.date])};
_.hK.Object.defineProperties(ru.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var v=this.calendarConfig,E=pJS;E=E===void 0?pJS:E;for(var n=[],f=0;f<7;f++)n.push(wN.NARROWWEEKDAYS[(f+dJ9)%7]);return{months:IZs(v,E),daysOfWeekLabel:n}}}});
_.k([_.H(),_.W("design:type",Object)],ru.prototype,"calendarConfig",void 0);_.k([_.Wp("#calendar-main"),_.W("design:type",Object)],ru.prototype,"JSC$13700_calendarMain",void 0);_.k([_.A("calendarConfig"),_.W("design:type",Object),_.W("design:paramtypes",[])],ru.prototype,"renderData",null);ru=_.k([_.N({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ru);
_.u(ru,"ytd-scrollable-calendar",function(){if(yNo!==void 0)return yNo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yNo=v},{mode:2});var QMo;var XJ6;var P0=function(){var v=_.g.apply(this,arguments)||this;v.hideCharCounter=!1;v.hideLabel=!1;v.noLabelFloat=!1;v.autoValidate=!0;v.invalid=!1;v.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return v};
_.S(P0,_.g);_.c=P0.prototype;_.c.reset=function(v){this.value=v&&this.data?this.data.value=v:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.c.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.c.focusTextInput=function(){this.input.focus()};
_.c.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()};
_.c.valueChanged=function(){var v,E;if(((v=this.data)==null?0:v.value)||((E=this.data)==null?void 0:E.value)==="")this.value=this.data.value;else{var n;((n=this.data)==null?void 0:n.value)!==void 0||this.value||(this.value="")}};
_.c.computeLabel=function(v,E){return E?"":_.JC(v)};
_.c.computeAriaLabel=function(v,E){return E?_.JC(v):""};
_.c.computeErrorMessage=function(v,E,n,f){!v&&E?v=n||this.strings.REQUIRED_LABEL:(v=_.JC(f),v=_.FN(v,"&")?"document"in _.n1?FgS(v):miz(v):v);return v};
_.c.computeType=function(v){return v==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.c.onTextValueChanged=function(v){this.value=v.detail.value;var E;(E=this.onValueChanged)==null||E.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.c.handleUpdateTextInputFormFieldRendererCommand=function(v){(v=_.C(v,arX))&&this.data&&this.data.id===v.id&&(v.invalid!==void 0&&(this.invalid=v.invalid),v.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",v.invalidValueErrorMessage))};
_.c.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("value-changed",this.value))};
_.c.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.hK.Object.defineProperties(P0.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var v;return!((v=this.data)==null||!v.isMultiline)}}});
P0.prototype.valueChangedForBinding=P0.prototype.valueChangedForBinding;P0.prototype.valueChanged=P0.prototype.valueChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],P0.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],P0.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],P0.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],P0.prototype,"value",void 0);_.k([_.H(),_.W("design:type",String)],P0.prototype,"pattern",void 0);_.k([_.H(),_.W("design:type",String)],P0.prototype,"errorMessage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],P0.prototype,"componentStyle",void 0);_.k([_.H(),_.W("design:type",Object)],P0.prototype,"hideCharCounter",void 0);
_.k([_.H(),_.W("design:type",Object)],P0.prototype,"hideLabel",void 0);_.k([_.H(),_.W("design:type",Object)],P0.prototype,"noLabelFloat",void 0);_.k([_.H(),_.W("design:type",Function)],P0.prototype,"onValueChanged",void 0);_.k([_.H(),_.W("design:type",Boolean)],P0.prototype,"isMultilineOverride",void 0);_.k([_.H(),_.W("design:type",Object)],P0.prototype,"autoValidate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],P0.prototype,"invalid",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],P0.prototype,"enableOverlayTheme",void 0);_.k([_.H({value:{REQUIRED_LABEL:_.tQ("REQUIRED_LABEL",void 0,"Required")}}),_.W("design:type",Object)],P0.prototype,"strings",void 0);_.k([_.Wp("#input"),_.W("design:type",Object)],P0.prototype,"input",void 0);_.k([_.A("data","isMultilineOverride"),_.W("design:type",Object),_.W("design:paramtypes",[])],P0.prototype,"isMultiline",null);
_.k([_.Tw("data.value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P0.prototype,"valueChanged",null);_.k([_.On("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P0.prototype,"valueChangedForBinding",null);P0=_.k([_.p5({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],P0);
_.u(P0,"yt-text-input-form-field-renderer",function(){if(XJ6===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;QMo===void 0&&(QMo=document.createElement("template"));var f=QMo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);XJ6=v}v=XJ6;return v},{mode:2});var aR=function(){var v=_.g.apply(this,arguments)||this;v.data=void 0;v.selectionState="START_DATE";v.isStartDateInvalid=!1;v.isEndDateInvalid=!1;v.autoapply=!1;v.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 v};
_.S(aR,_.g);_.c=aR.prototype;_.c.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"}}}}};
_.c.focus=function(){this.startDateInput.focus()};
_.c.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:mH(this.data.selection.start),end:mH(this.data.selection.end)})};
_.c.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.c.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.p0(this.selectionState)}};
_.c.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.c.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.c.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.c.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,E=v.end;v=AiL({start:v.start,end:this.endDate||E},this.startDateInput.value||"");this.isStartDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection=this.endDate?{start:v,end:this.endDate}:v,this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.c.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,E=v.start;v=AiL({start:this.startDate||E,end:v.end},this.endDateInput.value||"");this.isEndDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection={start:this.startDate,end:v},this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.c.handleCalendarDateClicked=function(v){var E=this.selection&&JiI(this.selection),n=this.selection&&K6N(this.selection);E&&!FH(v,E)&&this.selectionState==="END_DATE"?(this.selection={start:E,end:v},this.selectionState="START_DATE"):(n&&!FH(n,v)?this.selection={start:v,end:n}:this.selection=v,this.selectionState="END_DATE")};
_.c.handleCalendarDateMouseDown=function(v){this.selection&&!UJF(this.selection)&&(this.dragPivot=eh(v,this.selection.start)?this.selection.end:eh(v,this.selection.end)?this.selection.start:v)};
_.c.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.c.handleCalendarDateMouseEnter=function(v){this.dragPivot&&(this.selection={start:function(E,n){return FH(E,n)?E:n}(this.dragPivot,v),
end:function(E,n){return FH(E,n)?n:E}(this.dragPivot,v)},this.dragPivot||(this.selectionState="START_DATE"))};
_.c.handleCalendarDateMouseLeave=function(){};
_.c.handleCalendarSubmitDateRange=function(){this.selection&&!UJF(this.selection)&&_.OL(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.c.updateInvalidState=function(){var v=function(E,n){n?E.setAttribute("invalid",""):E.removeAttribute("invalid")};
v(this.startDateInput,this.isStartDateInvalid);v(this.endDateInput,this.isEndDateInvalid)};
_.c.updateDateStrings=function(){this.selection&&(UJF(this.selection)?Sj9(this.selection):(Sj9(this.selection.start),Sj9(this.selection.end)))};
_.c.updateCalendarSelection=function(v){this.calendar.updateSelection(Object.assign({},v,{selectionState:this.selectionState}))};
_.c.updateIsStartDateInvalidFromBinding=function(v){this.isStartDateInvalid=v.detail.value};
_.c.updateIsEndDateInvalidFromBinding=function(v){this.isEndDateInvalid=v.detail.value};
_.c.updateStartDateStringFromBinding=function(){};
_.c.updateEndDateStringFromBinding=function(){};
_.hK.Object.defineProperties(aR.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:mH(this.data.dateRangeStart),end:mH(this.data.dateRangeEnd),selection:{start:mH(this.data.selection.start),end:mH(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&JiI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&K6N(this.selection)}}});
aR.prototype.resetTextboxes=aR.prototype.resetTextboxes;aR.prototype.observeSelection=aR.prototype.observeSelection;aR.prototype.dataChanged=aR.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],aR.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#calendar"),_.W("design:type",Object)],aR.prototype,"calendar",void 0);
_.k([_.Wp("#start-date"),_.W("design:type",Object)],aR.prototype,"startDateInput",void 0);_.k([_.Wp("#end-date"),_.W("design:type",Object)],aR.prototype,"endDateInput",void 0);_.k([_.H(),_.W("design:type",Object)],aR.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],aR.prototype,"selection",void 0);_.k([_.H(),_.W("design:type",String)],aR.prototype,"selectionState",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],aR.prototype,"calendarConfig",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],aR.prototype,"errorMessage",null);_.k([_.A("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],aR.prototype,"startDate",null);_.k([_.A("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],aR.prototype,"endDate",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aR.prototype,"dataChanged",null);
_.k([_.On("selection","selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aR.prototype,"observeSelection",null);_.k([_.On("selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aR.prototype,"resetTextboxes",null);aR=_.k([_.N({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],aR);
_.u(aR,"ytd-date-period-picker-renderer",function(){if(cNS!==void 0)return cNS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return cNS=v},{mode:1});var Z5=function(){var v=_.g.apply(this,arguments)||this;var E={};v.actionMap=(E["ytd-date-period-picker-apply"]="handleDateRangeUpdated",E);return v};
_.S(Z5,_.g);Z5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Z5.prototype.handleDateRangeUpdated=function(){};
_.k([_.H(),_.W("design:type",Object)],Z5.prototype,"data",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Z5.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Z5.prototype,"rendererstamperBehavior",void 0);Z5=_.k([_.N({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Z5);
_.u(Z5,"ytd-report-history-section-header-renderer",function(){if(xcS!==void 0)return xcS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return xcS=v},{mode:1});var e7S;var FTl;var mc1;var Ca=function(){return _.g.apply(this,arguments)||this};
_.S(Ca,_.g);_.hK.Object.defineProperties(Ca.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?0:(E=v.icon)==null?0:E.iconType)?_.jI(this.data.icon.iconType):""}}});
_.k([_.H(),_.W("design:type",Object)],Ca.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],Ca.prototype,"icon",null);Ca=_.k([_.N({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Ca);
_.u(Ca,"ytd-report-history-table-text-cell-renderer",function(){if(mc1!==void 0)return mc1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mc1=v},{mode:1});var MG=function(){return _.g.apply(this,arguments)||this};
_.S(MG,_.g);MG.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],MG.prototype,"data",void 0);MG=_.k([_.N({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],MG);
_.u(MG,"ytd-report-history-table-reason-cell-renderer",function(){if(FTl!==void 0)return FTl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FTl=v},{mode:1});var SW=function(){return _.g.apply(this,arguments)||this};
_.S(SW,_.g);SW.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"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],SW.prototype,"rendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],SW.prototype,"data",void 0);SW=_.k([_.N({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],SW);
_.u(SW,"ytd-report-history-table-cell-renderer",function(){if(e7S!==void 0)return e7S;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return e7S=v},{mode:1});var wJX;var U4=function(){var v=_.g.apply(this,arguments)||this;v.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 v};
_.S(U4,_.g);U4.prototype.onDataChanged=function(){var v;if((v=this.data)==null?0:v.style)this.componentStyle=this.getStyleName(this.data.style)};
U4.prototype.getCellForColumn=function(v){return this.cells.find(function(E){var n;return((n=_.C(E==null?void 0:E.cell,f61)||_.C(E==null?void 0:E.cell,oY4))==null?void 0:n.columnId)===v.type})};
U4.prototype.getClassForColumn=function(v){switch(v){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
U4.prototype.getStyleName=function(v){switch(v){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.hK.Object.defineProperties(U4.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.cells)||[]).map(function(E){return _.C(E,nYF)})}}});
U4.prototype.onDataChanged=U4.prototype.onDataChanged;_.k([_.H(),_.W("design:type",Object)],U4.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],U4.prototype,"columnRenderData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],U4.prototype,"componentStyle",void 0);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],U4.prototype,"cells",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U4.prototype,"onDataChanged",null);U4=_.k([_.N({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],U4);
_.u(U4,"ytd-report-history-table-row-renderer",function(){if(wJX!==void 0)return wJX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wJX=v},{mode:1});var bNo;var lyw;var VeQ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},DJQ={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var qG=function(){return _.g.apply(this,arguments)||this};
_.S(qG,_.g);qG.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"}}}}}};
qG.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.hK.Object.defineProperties(qG.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.columns)?jIE(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return NU9(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var v=this.tableSpec,E=VeQ;E=E===void 0?DJQ:E;E=uEQ(v.columnDimensions,v.columnsToShow||[],E);v=0;E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,v+=n.minWidth+n.paddingLeft+n.paddingRight;return v}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.k([_.h(_.MU),_.W("design:type",Object)],qG.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qG.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],qG.prototype,"tableSpec",null);_.k([_.A("tableSpec"),_.W("design:type",Array),_.W("design:paramtypes",[])],qG.prototype,"columnRenderData",null);
_.k([_.A("tableSpec"),_.W("design:type",Number),_.W("design:paramtypes",[])],qG.prototype,"totalMinWidth",null);_.k([_.A("totalMinWidth"),_.W("design:type",String),_.W("design:paramtypes",[])],qG.prototype,"tableWidthStyle",null);qG=_.k([_.N({is:"ytd-table-renderer",disableElementRegistration:!0})],qG);
_.u(qG,"ytd-table-renderer",function(){if(lyw!==void 0)return lyw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lyw=v},{mode:1});var JX=function(){return _.g.apply(this,arguments)||this};
_.S(JX,_.g);JX.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}}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],JX.prototype,"data",void 0);JX=_.k([_.N({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],JX);
_.u(JX,"ytd-report-reason-history-modal-renderer",function(){if(bNo!==void 0)return bNo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bNo=v},{mode:1});var sMw;var rNX;var PuF;var Ka=function(){return _.g.apply(this,arguments)||this};
_.S(Ka,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ka.prototype,"data",void 0);Ka=_.k([_.N({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ka);
_.u(Ka,"ytd-profile-column-stats-entry-renderer",function(){if(PuF!==void 0)return PuF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return PuF=v},{mode:1});var ayU;var du=function(){return _.g.apply(this,arguments)||this};
_.S(du,_.g);du.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],du.prototype,"data",void 0);du=_.k([_.N({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],du);
_.u(du,"ytd-profile-column-stats-renderer",function(){if(ayU!==void 0)return ayU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ayU=v},{mode:1});var ZNo;var IR=function(){return _.g.apply(this,arguments)||this};
_.S(IR,_.g);_.hK.Object.defineProperties(IR.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var E,n;v=(E=this.data)==null?void 0:(n=E.thumbnail)==null?void 0:n.thumbnails;var f;return v&&((f=v[0])==null?void 0:f.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var E,n;v=(E=this.data)==null?void 0:(n=E.thumbnail)==null?void 0:n.thumbnails;var f;return v&&((f=v[0])==null?void 0:f.height)||80}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IR.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],IR.prototype,"componentStyle",void 0);_.k([_.A("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],IR.prototype,"thumbnailWidth",null);
_.k([_.A("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],IR.prototype,"thumbnailHeight",null);IR=_.k([_.N({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],IR);
_.u(IR,"ytd-profile-column-user-info-renderer",function(){if(ZNo!==void 0)return ZNo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZNo=v},{mode:1});var Y5=function(){return _.g.apply(this,arguments)||this};
_.S(Y5,_.g);Y5.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]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Y5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Y5.prototype,"componentStyle",void 0);Y5=_.k([_.N({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Y5);
_.u(Y5,"ytd-profile-column-renderer",function(){if(rNX!==void 0)return rNX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rNX=v},{mode:1});var hX=function(){var v=_.g.apply(this,arguments)||this;v.componentStyle="NON_CENTERED_PROFILE";return v};
_.S(hX,_.g);hX.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
hX.prototype.getIcon=function(v){return v?"settings:"+v.toLowerCase():null};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hX.prototype,"data",void 0);hX=_.k([_.N({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],hX);
_.u(hX,"ytd-page-introduction-renderer",function(){if(sMw!==void 0)return sMw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return sMw=v},{mode:1});var Cu1;var AX=function(){return _.g.apply(this,arguments)||this};
_.S(AX,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],AX.prototype,"data",void 0);AX=_.k([_.N({is:"ytd-report-description-renderer",disableElementRegistration:!0})],AX);
_.u(AX,"ytd-report-description-renderer",function(){if(Cu1!==void 0)return Cu1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Cu1=v},{mode:1});var MXg;var SvU;var V7=function(){return _.g.apply(this,arguments)||this};
_.S(V7,_.g);V7.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],V7.prototype,"data",void 0);V7=_.k([_.N({is:"ytd-video-report-renderer",disableElementRegistration:!0})],V7);
_.u(V7,"ytd-video-report-renderer",function(){if(SvU!==void 0)return SvU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SvU=v},{mode:1});var Uc6;_.ew("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.ew("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var D5=function(){return _.g.apply(this,arguments)||this};
_.S(D5,_.g);D5.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]]"}}}}}};
D5.prototype.computeMessageStyle=function(v){return v};
D5.prototype.computeButtonOverride=function(v){var E;if((v==null?0:(E=v.style)==null?0:E.value)&&v.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],D5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],D5.prototype,"shelf",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],D5.prototype,"panel",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.W("design:type",Boolean)],D5.prototype,"componentStyle",void 0);_.k([_.H({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],D5.prototype,"buttonOverride",void 0);D5=_.k([_.N({is:"ytd-message-renderer",disableElementRegistration:!0})],D5);
_.u(D5,"ytd-message-renderer",function(){if(Uc6!==void 0)return Uc6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Uc6=v},{mode:1});var H0=function(){return _.g.apply(this,arguments)||this};
_.S(H0,_.g);H0.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"}}}};
H0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
H0.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.hK.Object.defineProperties(H0.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!(((v=this.data)==null?0:v.header)&&((E=this.data)==null?0:E.table))}}});
H0.prototype.onRequestError=H0.prototype.onRequestError;_.k([_.h(_.MU),_.W("design:type",Object)],H0.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],H0.prototype,"data",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],H0.prototype,"isUnifiedReportHistory",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H0.prototype,"onRequestError",null);H0=_.k([_.N({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],H0);
_.u(H0,"ytd-report-history-section-renderer",function(){if(MXg!==void 0)return MXg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return MXg=v},{mode:1});var qvF;var gu=function(){var v=_.g.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.S(gu,_.g);gu.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gu.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],gu.prototype,"answerExpanded",void 0);gu=_.k([_.N({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],gu);
_.u(gu,"ytd-handles-claiming-faq-renderer",function(){if(qvF!==void 0)return qvF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return qvF=v},{mode:1});var JNX;var NG=function(){return _.g.apply(this,arguments)||this};
_.S(NG,_.g);_.k([_.H(),_.W("design:type",Object)],NG.prototype,"data",void 0);NG=_.k([_.N({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],NG);
_.u(NG,"ytd-handles-claiming-faq-section-renderer",function(){if(JNX!==void 0)return JNX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JNX=v},{mode:1});var KTi;var u1=function(){var v=_.g.apply(this,arguments)||this;v.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";v.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";v.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";v.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";v.leftSquiggly=v.leftSquigglyLight;v.rightSquiggly=v.rightSquigglyLight;
v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return v};
_.S(u1,_.g);_.c=u1.prototype;_.c.updateLeftSquigglyStyle=function(){_.NQ(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.c.updateRightSquigglyStyle=function(){_.NQ(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.c.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),v?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.c.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
u1.prototype.updateRightSquigglyStyle=u1.prototype.updateRightSquigglyStyle;u1.prototype.updateLeftSquigglyStyle=u1.prototype.updateLeftSquigglyStyle;_.k([_.H(),_.W("design:type",Object)],u1.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],u1.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",String)],u1.prototype,"leftSquiggly",void 0);_.k([_.H(),_.W("design:type",String)],u1.prototype,"rightSquiggly",void 0);
_.k([_.On("leftSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u1.prototype,"updateLeftSquigglyStyle",null);_.k([_.On("rightSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u1.prototype,"updateRightSquigglyStyle",null);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],u1.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],u1.prototype,"actionButtonOverride",void 0);u1=_.k([_.N({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],u1);
_.u(u1,"ytd-handles-claiming-header-renderer",function(){if(KTi!==void 0)return KTi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return KTi=v},{mode:1});var dcl;var jW=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";v.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";v.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";v.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
v.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";v.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";v.image0SquigglyBackground=v.image0LightSquigglyBackground;v.image1SquigglyBackground=v.image1LightSquigglyBackground;v.image3SquigglyBackground=v.image3LightSquigglyBackground;return v};
_.S(jW,_.g);_.c=jW.prototype;_.c.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.c.onDataChanged=function(){this.updateTitleAndImages()};
_.c.onThemeChanged=function(){this.updateTitleAndImages()};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.c.updateImage0SquigglyBackground=function(){_.NQ(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.c.updateImage1SquigglyBackground=function(){_.NQ(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.c.updateImage3SquigglyBackground=function(){_.NQ(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.c.updateTitleAndImages=function(){var v,E;((v=this.data)==null?void 0:(E=v.titleImages)==null?void 0:E.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))};
jW.prototype.updateImage3SquigglyBackground=jW.prototype.updateImage3SquigglyBackground;jW.prototype.updateImage1SquigglyBackground=jW.prototype.updateImage1SquigglyBackground;jW.prototype.updateImage0SquigglyBackground=jW.prototype.updateImage0SquigglyBackground;jW.prototype.onThemeChanged=jW.prototype.onThemeChanged;jW.prototype.onDataChanged=jW.prototype.onDataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],jW.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],jW.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"title0",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"title1",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"title2",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"title3",void 0);
_.k([_.H(),_.W("design:type",Object)],jW.prototype,"title4",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"image0",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"image1",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"image2",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"image3",void 0);_.k([_.H(),_.W("design:type",Object)],jW.prototype,"image4",void 0);_.k([_.H(),_.W("design:type",String)],jW.prototype,"image0SquigglyBackground",void 0);
_.k([_.H(),_.W("design:type",String)],jW.prototype,"image1SquigglyBackground",void 0);_.k([_.H(),_.W("design:type",String)],jW.prototype,"image3SquigglyBackground",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jW.prototype,"onDataChanged",null);_.k([_.On("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jW.prototype,"onThemeChanged",null);
_.k([_.On("image0SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jW.prototype,"updateImage0SquigglyBackground",null);_.k([_.On("image1SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jW.prototype,"updateImage1SquigglyBackground",null);
_.k([_.On("image3SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jW.prototype,"updateImage3SquigglyBackground",null);jW=_.k([_.N({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],jW);
_.u(jW,"ytd-handles-claiming-title-images-section-renderer",function(){if(dcl!==void 0)return dcl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dcl=v},{mode:1});var Iy1;var O4=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(O4,_.g);O4.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
O4.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
O4.prototype.onCopyButtonClick=function(){var v=this,E,n,f;return _.X(function(x){return(E=v.data)!=null&&E.primaryChannelUrl?_.m(x,navigator.clipboard.writeText(((n=v.data)==null?0:n.encodedChannelUrl)?v.data.encodedChannelUrl:"https://"+_.JC((f=v.data)==null?void 0:f.primaryChannelUrl)),0):x.jumpTo(0)})};
_.k([_.H(),_.W("design:type",Object)],O4.prototype,"data",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],O4.prototype,"ytComponentBehavior",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],O4.prototype,"isDarkTheme",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],O4.prototype,"ytActionHandlerBehavior",void 0);O4=_.k([_.N({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],O4);
_.u(O4,"ytd-handles-claiming-update-social-renderer",function(){if(Iy1!==void 0)return Iy1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Iy1=v},{mode:1});var Yvl;var k5=function(){var v=_.g.apply(this,arguments)||this;v.JSC$13795_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";v.JSC$13795_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.squigglyBackground=v.JSC$13795_squigglyBackgroundLight;return v};
_.S(k5,_.g);k5.prototype.updateSquigglyBackgroundStyle=function(){_.NQ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
k5.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.squigglyBackground=v?this.JSC$13795_squigglyBackgroundDark:this.JSC$13795_squigglyBackgroundLight};
k5.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$13795_squigglyBackgroundDark:this.JSC$13795_squigglyBackgroundLight)};
k5.prototype.updateSquigglyBackgroundStyle=k5.prototype.updateSquigglyBackgroundStyle;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],k5.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],k5.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],k5.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",String)],k5.prototype,"squigglyBackground",void 0);_.k([_.On("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k5.prototype,"updateSquigglyBackgroundStyle",null);k5=_.k([_.N({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],k5);
_.u(k5,"ytd-handles-claiming-vanity-info-renderer",function(){if(Yvl!==void 0)return Yvl;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Yvl=v},{mode:1});var h7w;var W0=function(){var v=_.g.apply(this,arguments)||this;v.JSC$13798_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";v.JSC$13798_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";v.squigglyBackground=v.JSC$13798_squigglyBackgroundLight;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(W0,_.g);_.c=W0.prototype;_.c.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$13798_squigglyBackgroundDark:this.JSC$13798_squigglyBackgroundLight)};
_.c.updateSquigglyBackgroundStyle=function(){_.NQ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.c.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.c.detached=function(){this.stop()};
_.c.stop=function(){this.playerElement.stop()};
_.c.setupVideoPlayer=function(){var v=this,E,n;return _.X(function(f){E=v.data.videoId;n="http://i1.ytimg.com/vi/"+E+"/maxresdefault.jpg";v.playerElement.loadVideoWithPlayerVars({video_id:E,iurlhq:n});_.yQ(f)})};
W0.prototype.onDataChanged=W0.prototype.onDataChanged;W0.prototype.updateSquigglyBackgroundStyle=W0.prototype.updateSquigglyBackgroundStyle;_.k([_.H({value:!1}),_.W("design:type",Boolean)],W0.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",String)],W0.prototype,"squigglyBackground",void 0);_.k([_.Wp("#player"),_.W("design:type",Object)],W0.prototype,"playerElement",void 0);_.k([_.H(),_.W("design:type",Object)],W0.prototype,"data",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],W0.prototype,"ytActionHandlerBehavior",void 0);_.k([_.On("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W0.prototype,"updateSquigglyBackgroundStyle",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W0.prototype,"onDataChanged",null);
W0=_.k([_.N({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],W0);
_.u(W0,"ytd-handles-claiming-video-item-renderer",function(){if(h7w!==void 0)return h7w;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return h7w=v},{mode:1});var ANF;var La=function(){var v=_.L2.apply(this,arguments)||this;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.containerWidthDiff=0;v.boundPrevClick=function(){v.set("offset",$5(v,v.offset-(v.scrollDistance||320)))};
v.boundNextClick=function(){v.set("offset",$5(v,v.offset+(v.scrollDistance||320)))};
v.boundScrollContainerMouseDown=function(E){v.dragMouseStart=E.clientX;v.dragOffsetStart=v.offset;v.dragging=!0};
v.boundScrollContainerDrag=function(E){v.dragging&&v.set("offset",$5(v,v.dragOffsetStart-(E.clientX-v.dragMouseStart)))};
v.boundMouseUp=function(){v.onMouseUp()};
v.boundWheelScroll=function(E){var n=0;Math.abs(E.deltaX)>=Math.abs(E.deltaY)?n=E.deltaX:E.shiftKey&&(n=E.deltaY);n!==0&&(v.offset+=n,E.stopPropagation(),E.preventDefault())};
v.boundChipCloudChipScrollIntoView=function(E){(E=E.detail)&&v.scrollChipIntoView(E)};
return v};
_.S(La,_.L2);La.prototype.attached=function(){var v=_.K(this.hostElement).querySelector("#scroll-container");v.addEventListener("wheel",this.boundWheelScroll);v.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.style.touchAction="pan-y";v.addEventListener("pointerdown",this.boundScrollContainerMouseDown);v.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
La.prototype.detached=function(){var v=_.K(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.boundWheelScroll);v.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);v.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
La.prototype.reset=function(){this.set("offset",0);_.IS(this,this.setContainerWidthDiff);Gi(this)};
var $5=function(v,E){return Math.min(Math.max(E,0),v.containerWidthDiff)};
La.prototype.onMouseUp=function(){this.dragging=!1};
La.prototype.transformContainer=function(){this.offset=$5(this,this.offset);var v=_.MX("HTML_DIR")==="rtl"?"":"-";_.K(this.hostElement).querySelector("#chips").style.transform="translateX("+v+this.offset+"px)";Gi(this)};
var Gi=function(v){_.IS(v,v.setButtonsState)};
La.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=$5(this,this.offset));this.atStart=this.offset<=0};
La.prototype.setContainerWidthDiff=function(){var v=_.K(this.hostElement).querySelector("#scroll-container"),E=_.K(this.hostElement).querySelector("#chips");v&&E&&(this.containerWidthDiff=E.clientWidth-v.clientWidth)};
La.prototype.scrollChipIntoView=function(v){var E=_.K(this.hostElement).querySelector("#scroll-container");if(E){var n=this.atStart?0:106,f=this.atEnd?0:106;v.offsetLeft<this.offset+n?this.offset=$5(this,v.offsetLeft-n):v.offsetLeft+v.clientWidth>this.offset+E.clientWidth-f&&(this.offset=$5(this,v.offsetLeft+v.clientWidth+f-E.clientWidth))}};
La.prototype.transformContainer=La.prototype.transformContainer;_.k([_.H({value:0}),_.W("design:type",Number)],La.prototype,"offset",void 0);_.k([_.H({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],La.prototype,"atStart",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],La.prototype,"atEnd",void 0);_.k([_.H(),_.W("design:type",Number)],La.prototype,"scrollDistance",void 0);
_.k([_.On("offset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],La.prototype,"transformContainer",null);La=_.k([_.Gw()],La);var VXw;var Dcz;var NZ6=_.qu(function(v){var E=v.data;v=_.p(_.t7(!1,void 0,"icHmSe"));var n=v.next().value,f=v.next().value;v={};v=_.W8("ytChipShapeChip",function(){a:switch(E==null?void 0:E().state){case 0:var e="ytChipShapeActive";break a;case 1:e="ytChipShapeDisabled";break a;default:e="ytChipShapeInactive"}return e},function(){var e=E().type===1||E().type===2,F=E();
return e||F!=null&&F.startIcon?F==null||!F.startIcon||F!=null&&F.text?e?"ytChipShapeEndIconPadding":(F==null?0:F.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(v.ytChipShapeFocused=function(){var e;
return n()&&((e=E())==null?void 0:e.state)!==1},v));
var x=function(e){if((E==null?void 0:E().state)!==1){var F,b;(b=(F=E()).onTap)==null||b.call(F,e)}},y=_.ij(function(){var e=_.P().resolve(_.jp(_.cT));
if(e){f(e.isKeyBoardInUse());var F,b;(b=(F=E()).onFocusIn)==null||b.call(F)}return!1}),Q=_.ij(function(){f(!1);
return!1});
return _.w("chip-shape",{class:"ytChipShapeHost","on:focusin":y,"on:focusout":Q},_.w(HNU,{shouldWrapInButton:function(){return E().type!==2},
selected:function(){return E().state===0},
onClick:x,isDropdown:function(){return E().type===1},
accessibilityLabel:function(){return E().accessibilityLabel}},_.w("div",{class:v},_.w(_.x6,{cond:function(){return E().startIcon},
then:function(){return _.w(_.B8,{icon:function(){var e;return(e=E())==null?void 0:e.startIcon},
className:function(){return E().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return E().text},_.w(guF,{shape:E,
onClick:x}))))},"ub");
NZ6.idomCompat=!0;var HNU=_.qu(function(v){var E=_.ij(function(n){v.onClick(n);return!1});
return _.w(_.x6,{cond:v.shouldWrapInButton,then:function(){return _.w("button",{class:"ytChipShapeButtonReset","on:click":E,role:function(){return v.isDropdown()?"combobox":"tab"},
"aria-label":v.accessibilityLabel,"aria-selected":v.selected},v.children)},
else:function(){return v.children}})},"vb"),guF=_.qu(function(v){var E=v.shape;
var n=v.onClick;var f=_.ij(function(x){n(x);return!1});
return _.w(_.Q1,null,_.w(_.y1,{when:function(){return E().type===1}},function(){return _.w(_.B8,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.w(_.y1,{when:function(){return E().type===2}},function(){return _.w("button",{class:"ytChipShapeButtonReset",
"on:click":f},_.w(_.B8,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.w(_.y1,{when:function(){return E().type===0}},function(){return _.w(_.gF,null)}))},"wb");_.Yz(NZ6,"chip-shape",{props:{data:_.Kt}});var Ti=function(){var v=_.g.apply(this,arguments)||this;v.disableDeselectEvent=!1;v.modern=_.Z("web_modern_typography");v.useChipShape=_.Z("web_chip_shape_defrag");v.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return v};
_.S(Ti,_.g);_.c=Ti.prototype;_.c.beforeRegister=function(){_.Z("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.c.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.c.onSelectChipCommand=function(v){if(!this.selected&&this.data&&(v=_.C(v,euw),v.targetId&&v.targetId===this.data.targetId))this.onTap()};
_.c.onFilterChipTransformCommand=function(v){if(!this.selected&&this.data){var E;(v=(E=_.C(v,bo1))==null?void 0:E.chipUniqueId)&&v===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.c.dataChanged=function(){var v=this;_.IS(this,function(){v.data&&v.data.isSelected&&!v.selected&&(v.scrollChipIntoView(),v.onTap())})};
_.c.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.c.computeChipStyle=function(v){return v!=null?v:"STYLE_DEFAULT"};
_.c.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.OL(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.OL(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.c.onFocus=function(){var v=_.P().resolve(_.jp(_.cT));v&&v.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.c.scrollChipIntoView=function(){_.jK(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.hK.Object.defineProperties(Ti.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return GL1({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ti.prototype.onFocus=Ti.prototype.onFocus;Ti.prototype.onTap=Ti.prototype.onTap;Ti.prototype.selectionChanged=Ti.prototype.selectionChanged;Ti.prototype.dataChanged=Ti.prototype.dataChanged;_.k([_.h(_.bI),_.W("design:type",Object)],Ti.prototype,"ironButtonState",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ti.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Ff),_.W("design:type",Object)],Ti.prototype,"ironA11yKeysBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ti.prototype,"disableDeselectEvent",void 0);_.k([_.H(),_.W("design:type",Object)],Ti.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.icon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ti.prototype,"hasIcon",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.uniqueId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ti.prototype,"isGnomeChip",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ti.prototype,"modern",void 0);_.k([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.W("design:type",String)],Ti.prototype,"chipStyle",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Ti.prototype,"selected",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ti.prototype,"useChipShape",void 0);_.k([_.A("data","selected"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ti.prototype,"chipShapeData",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ti.prototype,"dataChanged",null);_.k([_.On("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ti.prototype,"selectionChanged",null);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ti.prototype,"onTap",null);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ti.prototype,"onFocus",null);Ti=_.k([_.p5({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ti);
_.u(Ti,"yt-chip-cloud-chip-renderer",function(){if(Dcz===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;VXw===void 0&&(VXw=document.createElement("template"));var f=VXw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Dcz=v}v=Dcz;return v},{mode:2});var i1=function(){var v=_.g.apply(this,arguments)||this;v.isDarkTheme=!1;v.notSticky=!1;v.transparentBackground=!1;v.shouldHide=!1;v.disableSticky=!1;v.fluidWidth=!1;v.isClipList=!1;v.defaultChipIndex=0;v.isPlaylist=!1;v.playlistVotingAnimationEnabled=_.Z("web_enable_voting_animation");v.toolbarHeight=0;v.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return v};
_.S(i1,_.g);_.c=i1.prototype;
_.c.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}}}}}};
_.c.attached=function(){var v=this;document.addEventListener("scroll",_.uo(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var E;this.toolbarHeight=((E=document.querySelector("ytd-masthead"))==null?void 0:E.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(n){v.handleIntersect(n)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){v.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.c.detached=function(){var v;(v=this.intersectionObserver)==null||v.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect();document.removeEventListener("scroll",_.uo(this,this.updateChipBarWidthAndTop))};
_.c.dataChanged=function(){var v=this,E,n,f;((f=_.C((E=this.data)==null?void 0:(n=E.contents)==null?void 0:n[0],hAi))==null?void 0:f.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var x=this.findSelectedChipIndex();this.selectedIndex!==x&&(this.selectedIndex=-1);_.IS(this,function(){v.selectedIndex=x;v.updating=!1;v.ytScrollableChipCloudBehavior.reset()})};
_.c.findSelectedChipIndex=function(){var v;if((v=this.data)==null||!v.contents)return 0;v=this.data.contents;for(var E=0;E<v.length;E++){var n=void 0;if((n=_.C(v[E],hAi))==null?0:n.isSelected)return E}return 0};
_.c.computeStyle=function(v){return v};
_.c.handleChipCloudChipSelectAction=function(v){v=this.JSC$13817_chipsSelector.indexOf(v);v>-1&&this.JSC$13817_chipsSelector.selectIndex(v)};
_.c.handleChipCloudChipDeselectAction=function(){if(_.Z("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],hAi))==null?void 0:n.navigationEndpoint;f&&_.OL(this.hostElement,"yt-browse-section-list-reload-endpoint",[f]);this.JSC$13817_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.c.onGuideIsExpandedChanged=function(){var v=this.ytScrollableChipCloudBehavior;_.IS(v,v.setContainerWidthDiff);Gi(this.ytScrollableChipCloudBehavior)};
_.c.onResize=function(){var v=this.ytScrollableChipCloudBehavior;_.IS(v,v.setContainerWidthDiff);Gi(this.ytScrollableChipCloudBehavior)};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.c.handleIntersect=function(v){_.Z("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||v[0].intersectionRatio===1)};
_.c.updateDimensions=function(){var v=this.ytRendererBehavior.parentComponent;if(v){var E,n=(E=v.headerElement)!=null?E:v;_.NQ(this.hostElement,{"--ytd-rich-grid-chips-bar-width":n.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.c.updateSelectedIndexFromBinding=function(v){this.selectedIndex=v.detail.value};
_.c.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var v;(v=this.sortFilterHeaderRendererElement)==null||v.setAttribute("is-playlist-page-with-filters","")}};
_.c.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.un({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.hK.Object.defineProperties(i1.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 v,E,n=(v=this.data)==null?void 0:(E=v.contents)==null?void 0:E.find(function(f){return _.C(f,HMl)});
return{sortFilterHeaderRenderer:_.C(n,HMl)}}}});
i1.prototype.dispatchChipBarIsSticky=i1.prototype.dispatchChipBarIsSticky;i1.prototype.isPlaylistPageChanged=i1.prototype.isPlaylistPageChanged;i1.prototype.updateChipBarWidthAndTop=i1.prototype.updateChipBarWidthAndTop;i1.prototype.onResize=i1.prototype.onResize;i1.prototype.onGuideIsExpandedChanged=i1.prototype.onGuideIsExpandedChanged;i1.prototype.dataChanged=i1.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],i1.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],i1.prototype,"ironResizableBehavior",void 0);_.k([_.h(),_.W("design:type",La)],i1.prototype,"ytScrollableChipCloudBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],i1.prototype,"data",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],i1.prototype,"selectedIndex",void 0);_.k([_.H({value:320}),_.W("design:type",Number)],i1.prototype,"scrollDistance",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"notSticky",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"transparentBackground",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.W("design:type",String)],i1.prototype,"componentStyle",void 0);_.k([_.H({selector:_.IOQ}),_.W("design:type",Boolean)],i1.prototype,"guideIsExpanded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"shouldHide",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"disableSticky",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"fluidWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"isClipList",void 0);_.k([_.H(),_.W("design:type",Object)],i1.prototype,"defaultChipIndex",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"isPlaylist",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],i1.prototype,"playlistVotingAnimationEnabled",void 0);_.k([_.Wp("#chips"),_.W("design:type",Object)],i1.prototype,"JSC$13817_chipsSelector",void 0);_.k([_.Wp("ytd-sort-filter-header-renderer"),_.W("design:type",HTMLElement)],i1.prototype,"sortFilterHeaderRendererElement",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],i1.prototype,"updating",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"dataChanged",null);_.k([_.On("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onGuideIsExpandedChanged",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onResize",null);
_.k([_.Tw("isChannelPageGrid","disableSticky","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"updateChipBarWidthAndTop",null);_.k([_.A("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i1.prototype,"isChannelPageGrid",null);_.k([_.A("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i1.prototype,"isHashtagLandingPage",null);
_.k([_.On("isPlaylistPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"isPlaylistPageChanged",null);_.k([_.A("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i1.prototype,"isPlaylistPage",null);_.k([_.A("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i1.prototype,"isDisableDeselectEvent",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],i1.prototype,"sortFilterHeaderRendererData",null);_.k([_.H({reflectToAttribute:!0,selector:_.gVN}),_.W("design:type",String)],i1.prototype,"frostedGlassMode",void 0);_.k([_.On("notSticky"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"dispatchChipBarIsSticky",null);i1=_.k([_.N({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],i1);
_.u(i1,"ytd-feed-filter-chip-bar-renderer",function(){if(ANF!==void 0)return ANF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ANF=v},{mode:1});var urP;var jM1=_.qu(function(v){var E=v.data;var n=v.buttonIndex;var f=v.selectedIndex;var x=v.onSelect;var y=function(){return n()===f()},Q=function(){var F,b;
return(b=(F=E().text)==null?void 0:F.content)!=null?b:""};
_.ij(function(){});
v=_.ql();var e=_.ij(function(){x(E().onSubmitCommand);return!1});
return _.w("yt-toggleable-image-button-view-model",{class:function(){var F={};F=(F["toggleable-image-button-view-model-wiz"]=!0,F[""]=!0,F["toggleable-image-button-view-model-wiz__semi-transparent"]=f()!==-1&&!y(),F);return _.LR(F)},
tabindex:0,"aria-label":Q,"aria-pressed":y,role:"button","on:keydown":v,"on:click":e},_.w(_.x6,{cond:function(){return E().logo},
then:function(F){return _.w(_.UZ,{data:F,className:function(){var b={};b=(b["toggleable-image-button-view-model-wiz__image"]=!0,b["toggleable-image-button-view-model-wiz__circular-radius"]=!(!E().backgroundColor||!E().backgroundColorDarkMode),b["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(y()&&E().backgroundColor&&E().backgroundColorDarkMode),b);return _.LR(b)},
alt:Q,useWidth:!1,style:function(){if(y()&&E().backgroundColor&&E().backgroundColorDarkMode){var b=XJ(Number(E().backgroundColorDarkMode),"1");var l=XJ(Number(E().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+l+") border-box;"}else b="";return b}})}}),_.w(_.oX,{model:{borderRadius:"16px"}}),_.w("p",{class:function(){var F={};
F=(F["toggleable-image-button-view-model-wiz__label"]=!0,F["toggleable-image-button-view-model-wiz__bold-text"]=y(),F);return _.LR(F)}},_.w(_.nh,{text:function(){return E().text}})))},"xb");
jM1.idomCompat=!0;var kF1=_.qu(function(v){var E=v.data;v=_.p(_.t7({index:-1,command:{}},void 0,"Zcqtsb"));var n=v.next().value,f=v.next().value;return _.w("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.w("div",{class:"nudge-form-view-model-wiz__form-options"},_.w(_.mI,{data:function(){return E().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(x,y){return _.w(jM1,{data:x.data,buttonIndex:y,selectedIndex:function(){return n().index},
onSelect:function(Q){f({index:y(),command:Q})}})}})),_.w(_.nh,{text:function(){return E().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.w("div",{class:"nudge-form-view-model-wiz__submit"},_.w(_.mI,{data:function(){return E().submitButton}},{buttonViewModel:function(x){return _.w(ONo,{data:x.data,
isDisabled:function(){return n().index===-1},
onClick:function(){_.lj(n().command)}})}})))},"yb");
kF1.idomCompat=!0;var ONo=_.qu(function(v){var E=_.o0(function(){return Object.assign({},v.data(),{state:v.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.w(_.C7,{data:E,onClick:v.onClick})},"zb");_.Yz(kF1,"yt-nudge-form-view-model",{props:{data:_.Kt}});var zi=function(){var v=_.g.apply(this,arguments)||this;v.roundedContainer=!0;v.buttonUpdate=_.Z("web_modern_buttons");v.isDarkMode=!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.S(zi,_.g);_.c=zi.prototype;_.c.computeNudgeStyle=function(v){return v?"modernized-nudge":""};
_.c.handleDarkModeToggledAction=function(v){this.isDarkMode=v};
_.c.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.c.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"}}}};
_.c.computeIsHorizontalButtons=function(v){return v?!!v.applyModernizedStyle&&!!v.enableHorizontalButtons&&!!v.secondaryButton:!1};
_.hK.Object.defineProperties(zi.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.data)==null?void 0:v.backgroundStyle)!=null?E:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.data)==null?void 0:v.contentsLocation)!=null?E:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.lightIconImage)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],zi.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],zi.prototype,"actionHandlerBehavior",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("isHideEnclosingAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zi.prototype,"isHidden",null);_.k([_.H(),_.W("design:type",Object)],zi.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zi.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zi.prototype,"buttonUpdate",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.W("design:type",String)],zi.prototype,"nudgeStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.trimStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],zi.prototype,"trimStyle",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.backgroundStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],zi.prototype,"backgroundStyle",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.contentsLocation"),_.W("design:type",String),_.W("design:paramtypes",[])],zi.prototype,"contentsLocation",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.disableDropShadow"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zi.prototype,"noShadow",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.lightIconImage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zi.prototype,"noIcon",null);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.W("design:type",Boolean)],zi.prototype,"isHorizontalButtons",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],zi.prototype,"isDarkMode",void 0);zi=_.k([_.N({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],zi);
_.u(zi,"ytd-feed-nudge-renderer",function(){if(urP!==void 0)return urP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return urP=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var WT1;var $cX;var RR=function(){var v=_.g.apply(this,arguments)||this;v.collapsed=!1;v.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return v};
_.S(RR,_.g);RR.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"}}}};
RR.prototype.handleRatingSelect=function(){var v;((v=this.data)==null?0:v.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
RR.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],RR.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.Z7),_.W("design:type",Object)],RR.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RR.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],RR.prototype,"collapsed",void 0);RR=_.k([_.N({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],RR);
_.u(RR,"ytd-slimline-survey-renderer",function(){if($cX!==void 0)return $cX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return $cX=v},{mode:1});var LTS;var tX=function(){return _.g.apply(this,arguments)||this};
_.S(tX,_.g);tX.prototype.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
tX.prototype.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v&&(v==null?0:v.secondaryTitleColor)&&this.maybeGetBackgroundColor(v)?(this.hostElement.style.backgroundColor=_.p2(this.maybeGetBackgroundColor(v)),this.hostElement.style.color=_.p2(v.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
tX.prototype.colorPaletteChanged=tX.prototype.colorPaletteChanged;_.k([_.h(_.PL),_.W("design:type",Object)],tX.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tX.prototype,"data",void 0);_.k([_.H({selector:function(v){return v.ui.darkModeIsEnabled}}),
_.W("design:type",Boolean)],tX.prototype,"isDarkMode",void 0);_.k([_.H(),_.W("design:type",Object)],tX.prototype,"lightColorPalette",void 0);_.k([_.H(),_.W("design:type",Object)],tX.prototype,"darkColorPalette",void 0);_.k([_.On("darkColorPalette","lightColorPalette","data","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tX.prototype,"colorPaletteChanged",null);tX=_.k([_.N({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],tX);
_.u(tX,"ytd-endorsement-header-renderer",function(){if(LTS!==void 0)return LTS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return LTS=v},{mode:1});_.Yz(_.ez,"yt-decorated-avatar-view-model",{props:{data:_.Kt,className:_.Kt}});var B0=function(){var v=_.g.apply(this,arguments)||this;v.fullHeight=_.Z("web_rich_grid_media_full_height");v.showChannelAvatar=!0;v.hasPlaylistThumbnail=!1;v.prepareThumbnailForPageTransition=function(){_.Z("web_thumbnail_to_watch_transition")&&(v.thumbnail.style.viewTransitionName="thumbnail-to-watch",v.cleanupThumbnailAfterPageTransition(v.thumbnail))};
return v};
_.S(B0,_.g);_.c=B0.prototype;
_.c.configureRendererStamper=function(){return{lazyLoadMenu:Ra,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.c.attached=function(){this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.shouldLazyLoadMenu=function(){var v=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Z("kevlar_modern_downloads_page")||!v};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13843_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.JSC$13843_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.c.getVideoPreviewOpts=function(){var v={},E;if((E=this.data)==null?0:E.multipleInlinePlaybackEndpoint)v=Z8z;this.isRadio&&(v=aCP);return _.Z("web_thumbnail_to_watch_transition")?Object.assign({},v,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):v};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$13843_inlinePreviewHoverListener)==null||iS(v)};
_.c.getOwner=function(){var v,E,n;return((v=this.data)==null?void 0:(E=v.channelThumbnailSupportedRenderers)==null?void 0:E.channelThumbnailWithLinkRenderer)||_.C((n=this.data)==null?void 0:n.showProviderChannelThumbnail,qPi)};
_.c.updateLockupSize=function(){var v;((v=this.getOwner())==null?0:v.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.c.getFeedbackEndpoint=function(v){if(_.C(v,_.qI))return v;var E,n;v=(n=(E=_.C(v,_.Tn))==null?void 0:E.commands)!=null?n:[];E=_.p(v);for(n=E.next();!n.done;n=E.next())if(n=this.getFeedbackEndpoint(n.value))return n;return null};
_.c.computeNavigationEndpoint=function(v){return yTX(v==null?void 0:v.navigationEndpoint)};
_.c.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var v=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(v)!==JSON.stringify(this.data)&&this.set("data",v)}};
_.c.onDataChanged=function(){var v=this,E=this.getOwner();if(E){this.set("data.owner",E);var n,f,x,y,Q,e=((n=this.data)==null?void 0:(f=n.shortBylineText)==null?void 0:(x=f.runs)==null?void 0:(y=x[0])==null?void 0:y.text)||((Q=E.name)==null?void 0:Q.simpleText);this.set("data.owner.title",e)}var F,b,l,r,a,M;E=((F=this.data)==null?void 0:(b=F.thumbnailRenderer)==null?void 0:b.playlistVideoThumbnailRenderer)||((l=this.data)==null?void 0:(r=l.thumbnailRenderer)==null?void 0:r.playlistCustomThumbnailRenderer)||
((a=this.data)==null?void 0:(M=a.thumbnailRenderer)==null?void 0:M.showCustomThumbnailRenderer);var U;((U=this.data)==null?0:U.thumbnail)||!E||this.set("data.thumbnail",E.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){v.updateLockupSize()});
var d;if(F=((d=this.data)==null?void 0:d.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(F);var Y;((Y=this.dismissActionToReplayEntity)==null?0:Y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.c.onHiddenChanged=function(){this.updateLockupSize()};
_.c.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.OL(this.hostElement,"yt-terminate-video-preview-action");else{var v;(v=this.videoTitleLink)==null||v.focus()}};
_.c.metadataColorChanged=function(){var v;if(this.metadataColor&&((v=this.videoTitle)==null?0:v.style))this.videoTitle.style.color=_.p2(this.metadataColor);else{var E,n;!this.metadataColor&&((E=this.videoTitle)==null?0:(n=E.style)==null?0:n.color)&&(this.videoTitle.style.color="")}};
_.c.onDetailsClick=function(v){var E=this.computedNavigationEndpoint;E&&(_.Kh(_.MQ(v),this.hostElement,["A","BUTTON"])||_.jK(this.hostElement,"yt-navigate",{endpoint:E}))};
_.c.cleanupThumbnailAfterPageTransition=function(v){_.oiE(document,"yt-page-type-changed",function(){v.style.viewTransitionName=""})};
_.c.onRendererTap=function(){this.prepareThumbnailForPageTransition();var v,E,n=((v=this.data)==null?void 0:v.serviceEndpoint)||this.getFeedbackEndpoint((E=this.data)==null?void 0:E.navigationEndpoint);n&&_.C(n,_.qI)&&this.ytComponentBehavior.resolveCommand(n)};
_.c.onMouseDown=function(v){var E=v.target,n=this.computedNavigationEndpoint,f;v=E.href||((f=_.C(n==null?void 0:n.commandMetadata,_.Dl))==null?void 0:f.url);f=E.data||n;v&&f&&w61(v,f)};
_.c.computeVideoTitleText=function(){var v;if((v=this.data)==null?0:v.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.c.computeHasPlaylistThumbnail=function(v){var E,n,f,x,y;if((((E=v.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((n=v.thumbnailRenderer)==null?0:n.playlistCustomThumbnailRenderer)||((f=v.thumbnailRenderer)==null?0:f.showCustomThumbnailRenderer)||((x=v.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((y=v.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(E=0;E<v.thumbnailOverlays.length;E++)if(n=void 0,(n=v.thumbnailOverlays[E])==
null?0:n.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hK.Object.defineProperties(B0.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Z("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$13843_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ZKI(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.videoId)||((E=this.data)==null?void 0:E.playlistId)||""}}});
B0.prototype.onMouseDown=B0.prototype.onMouseDown;B0.prototype.metadataColorChanged=B0.prototype.metadataColorChanged;B0.prototype.onIsDismissedChanged=B0.prototype.onIsDismissedChanged;B0.prototype.onHiddenChanged=B0.prototype.onHiddenChanged;B0.prototype.onDataChanged=B0.prototype.onDataChanged;B0.prototype.handleReloadDownloadsInfo=B0.prototype.handleReloadDownloadsInfo;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],B0.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],B0.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],B0.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],B0.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],B0.prototype,"entitySelectorType",void 0);_.k([_.H(),_.W("design:type",Boolean)],B0.prototype,"noEndpoints",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],B0.prototype,"isRadio",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],B0.prototype,"miniMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],B0.prototype,"fullHeight",void 0);
_.k([_.H(),_.W("design:type",Boolean)],B0.prototype,"showDarkVideoMetadata",void 0);_.k([_.H(),_.W("design:type",Boolean)],B0.prototype,"showLightVideoMetadata",void 0);_.k([_.H(),_.W("design:type",Number)],B0.prototype,"metadataColor",void 0);_.k([_.H(),_.W("design:type",Object)],B0.prototype,"showChannelAvatar",void 0);_.k([_.H(),_.W("design:type",Boolean)],B0.prototype,"hidden",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],B0.prototype,"showYtInteraction",void 0);
_.k([_.H(),_.W("design:type",String)],B0.prototype,"dismissedContentId",void 0);_.k([_.H({selectorArgs:["dismissedContentId"],selector:BeX}),_.W("design:type",Object)],B0.prototype,"dismissActionToReplayEntity",void 0);
_.k([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(v,E,n){if(_.Z("kevlar_modern_downloads_page")&&n&&E&&E!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var f=OgX(v,n);if(f){E=_.bx(v,n);var x=sb(v,n),y=BRF(v,n);v=rG(v,n);var Q=dsE(f,E,x,y);x=Q.shortViewCountText;var e=Q.publishedTimeText;Q=Q.badges;var F=v>0;y=JhL(f,E,y,v);f=_.nC(E)||E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Eb(f.policyEntity)?
void 0:x71(n,v,f.videoEntity.lengthSeconds);E==="TRANSFER_STATE_PAUSED_BY_USER"&&n&&!_.Z("dl_resume_click_killswitch")&&(f={offlineVideoEndpoint:{videoId:n,action:"ACTION_RESUME"}});n={shortViewCountText:x,publishedTimeText:e,badges:Q,isWatched:F,navigationEndpoint:f,thumbnailOverlays:y}}else n=void 0;return n;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(E=k4X(v,n))if(f=_.lx(v,n),y=_.WD$(v,n),f!=="TRANSFER_STATE_UNKNOWN"){n=KpG(E,f,y,n,HgI(v));break a}n=void 0}return n;default:_.li(new _.yc("Error: entitySelectorType defined but not matched in selector.",
v,E))}}}),
_.W("design:type",Object)],B0.prototype,"entityDrivenState",void 0);_.k([_.H({computed:"computeVideoTitleText(data)"}),_.W("design:type",Object)],B0.prototype,"videoTitleText",void 0);_.k([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],B0.prototype,"hasPlaylistThumbnail",void 0);_.k([_.H({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],B0.prototype,"computedNavigationEndpoint",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B0.prototype,"typographyBump",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("typographyBump"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B0.prototype,"typographyBumpV2",null);_.k([_.Wp("#video-title"),_.W("design:type",HTMLElement)],B0.prototype,"videoTitle",void 0);_.k([_.Wp("#video-title-link"),_.W("design:type",HTMLElement)],B0.prototype,"videoTitleLink",void 0);
_.k([_.Wp("#thumbnail"),_.W("design:type",HTMLElement)],B0.prototype,"thumbnail",void 0);_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],B0.prototype,"JSC$13843_dismissibleMedia",void 0);_.k([_.A("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],B0.prototype,"lazyLoadMenu",null);_.k([_.A("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],B0.prototype,"immediateLoadMenu",null);
_.k([_.Tw("entityDrivenState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B0.prototype,"handleReloadDownloadsInfo",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B0.prototype,"onDataChanged",null);_.k([_.Tw("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B0.prototype,"onHiddenChanged",null);
_.k([_.On("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B0.prototype,"onIsDismissedChanged",null);_.k([_.On("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B0.prototype,"metadataColorChanged",null);_.k([_.jk("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],B0.prototype,"onMouseDown",null);
_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B0.prototype,"isHovered",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B0.prototype,"useAvatar",null);_.k([_.A("data","entitySelectorType"),_.W("design:type",String),_.W("design:paramtypes",[])],B0.prototype,"mediaId",null);B0=_.k([_.N({is:"ytd-rich-grid-media",disableElementRegistration:!0})],B0);
var GFF=_.Dj()(B0,"ytd-rich-grid-media",function(){if(WT1!==void 0)return WT1;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" 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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return WT1=v},{mode:_.HE("kevlar_poly_si_batch_j072")?1:2});var TZP;var vn=function(){var v=_.g.apply(this,arguments)||this;v.removeMaxWidth=!0;v.insetMetadata=!1;return v};
_.S(vn,_.g);_.c=vn.prototype;_.c.configureRendererStamper=function(){return{innerMenu:Ra,outerMenu:Object.assign({},Ra,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.c.onDataChanged=function(){var v,E=((v=this.data)==null?void 0:v.trackingParams)||"";E&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E));var n;((n=this.dismissActionToReplayEntity)==null?0:n.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.c.attached=function(){this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13849_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.JSC$13849_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qJX})};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$13849_inlinePreviewHoverListener)==null||iS(v)};
_.c.onRendererTap=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.serviceEndpoints)==null?void 0:E[0];_.C(n,_.qI)&&this.componentBehavior.resolveCommand(n)};
_.c.onDetailsClick=function(v){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint;n&&(_.Kh(_.MQ(v),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(n))};
_.c.onShow=function(){var v=this.data;v.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(v.onFirstVisibleCommand),delete v.onFirstVisibleCommand)};
_.hK.Object.defineProperties(vn.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?void 0:(v=this.data)==null?void 0:v.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?(v=this.data)==null?void 0:v.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var v=this.data;if(v!=null&&v.badge&&(v=_.C(v.badge,UhP))){var E,n,f;return[{metadataBadgeRenderer:{label:((E=v.label)==null?void 0:(n=E.runs)==null?void 0:n[0].text)||((f=v.label)==null?void 0:f.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var v=this.data;return Object.assign({},v.headline,{accessibility:v.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return this.isSlimShort?(v=this.computedTitle)==null?void 0:(E=v.accessibility)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$13849_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vn.prototype.onDataChanged=vn.prototype.onDataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vn.prototype,"componentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],vn.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.Z7),_.W("design:type",Object)],vn.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],vn.prototype,"ytdReduxBehavior",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],vn.prototype,"thumbnail",void 0);_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],vn.prototype,"JSC$13849_dismissibleMedia",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],vn.prototype,"removeMaxWidth",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],vn.prototype,"insetMetadata",void 0);_.k([_.H(),_.W("design:type",String)],vn.prototype,"dismissedContentId",void 0);_.k([_.H({selectorArgs:["dismissedContentId"],selector:BeX}),_.W("design:type",Object)],vn.prototype,"dismissActionToReplayEntity",void 0);_.k([_.A("insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"thumbnailObjectFit",null);
_.k([_.A("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"innerMenu",null);_.k([_.A("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"outerMenu",null);_.k([_.H(),_.W("design:type",Object)],vn.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],vn.prototype,"miniMode",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vn.prototype,"onDataChanged",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"shortsBadges",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vn.prototype,"isShort",null);
_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vn.prototype,"isSlimShort",null);_.k([_.A("data","isShort"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"computedTitle",null);_.k([_.A("isSlimShort","computedTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],vn.prototype,"computedAccessibilityLabel",null);
_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vn.prototype,"isHovered",null);vn=_.k([_.N({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],vn);
_.u(vn,"ytd-rich-grid-slim-media",function(){if(TZP!==void 0)return TZP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return TZP=v},{mode:_.HE("kevlar_poly_si_batch_j063")?1:2});var iNX;var z7o;var EK=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(EK,_.g);EK.prototype.computeIcon=function(v){return v&&v.iconType?"yt-sys-icons:"+v.iconType.toLowerCase():""};
EK.prototype.onMouseEnter=function(){this.isHovered=!0};
EK.prototype.onMouseLeave=function(){this.isHovered=!1};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],EK.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EK.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],EK.prototype,"isHovered",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],EK.prototype,"darkerDarkTheme",void 0);EK=_.k([_.N({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],EK);
_.u(EK,"ytd-expand-on-hover-card-renderer",function(){if(z7o!==void 0)return z7o;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return z7o=v},{mode:1});var R7o,tXo=function(){if(R7o!==void 0)return R7o;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return R7o=v};_.ew("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var nj=function(){var v=_.g.apply(this,arguments)||this;v.compactStyle=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(nj,_.g);_.c=nj.prototype;_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.c.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"}}}};
_.c.computeHideDot=function(v){return!(v&&v.subscriberCountText&&v.videoCountText)||this.compactStyle};
_.c.hasDualButtons=function(v){return v&&v.purchaseButton&&v.subscribeButton};
_.c.backgroundColorChanged=function(){if(this.data!==void 0){var v=this.data.backgroundColor;this.isDarkTheme&&(v=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=v!=null?_.p2(v):"transparent"}};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.onTap=function(v){var E,n,f=((E=this.data)==null?void 0:E.navigationEndpoint)||((n=this.data)==null?void 0:n.serviceEndpoint);_.C(f,_.TK)&&(f&&_.P().resolve(_.OO).resolveCommand(f,{form:{element:this.hostElement}}),v.preventDefault())};
_.c.computeChannelEndpoint=function(v){return _.C(v,_.TK)?null:v};
_.c.computeHrefEndpoint=function(v){return _.C(v,_.TK)?null:this.componentBehavior.computeHref_(v)};
_.c.computeChannelRendererStyle=function(v){return v};
_.c.computeIconSize=function(v){return v?108:136};
_.hK.Object.defineProperties(nj,{template:{configurable:!0,enumerable:!0,get:function(){return tXo()}}});
nj.prototype.backgroundColorChanged=nj.prototype.backgroundColorChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],nj.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],nj.prototype,"componentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],nj.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],nj.prototype,"isDarkTheme",void 0);_.k([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.W("design:type",String)],nj.prototype,"channelRendererStyle",void 0);_.k([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],nj.prototype,"dualButtons",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],nj.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],nj.prototype,"biggerThumbStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],nj.prototype,"compactStyle",void 0);_.k([_.On("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nj.prototype,"backgroundColorChanged",null);nj=_.k([_.N({is:"ytd-channel-renderer",disableElementRegistration:!0})],nj);_.u(nj,"ytd-channel-renderer",function(){return tXo()},{mode:1});var BZ1;var vBw;_.ew("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var oe=function(){var v=_.g.apply(this,arguments)||this;v.displayItemCount=2;v.collections=_.Z("web_modern_collections_v2");v.hasPlaylistThumbnail=!1;v.stackThumbnailSize="large";return v};
_.S(oe,_.g);_.c=oe.prototype;_.c.attached=function(){this.updateInlinePreviewHoverListeners()};
_.c.detached=function(){this.clearInlinePreviewHoverListeners()};
_.c.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.c.computeFirstVideos=function(v,E){return v&&E?v.slice(0,E):[]};
_.c.computeThumbnailWidth=function(v,E){return v?E==="BIG"?500:E==="MASSIVE"?600:E==="MEDIUM"?450:420:360};
_.c.computeThumbnailHeight=function(v,E){return v?E==="BIG"?280:E==="MASSIVE"?337:234:202};
_.c.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$13862_inlinePreviewHoverListener)==null||iS(v)};
_.c.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13862_inlinePreviewHoverListener=gQ({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Z8z,thumbnailElement:this.thumbnail})};
_.c.computeHasPlaylistThumbnail=function(v){var E,n;if((((E=v.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((n=v.thumbnailRenderer)==null?0:n.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(E=0;E<v.thumbnailOverlays.length;E++)if(n=void 0,(n=v.thumbnailOverlays[E])==null?0:n.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hK.Object.defineProperties(oe.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$13862_inlinePreviewHoverListener)==null?0:bv(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oe.prototype.dataChanged=oe.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],oe.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oe.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],oe.prototype,"displayItemCount",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],oe.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],oe.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],oe.prototype,"collections",void 0);_.k([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],oe.prototype,"hasPlaylistThumbnail",void 0);_.k([_.H(),_.W("design:type",String)],oe.prototype,"stackThumbnailSize",void 0);_.k([_.Wp("ytd-thumbnail"),_.W("design:type",HTMLElement)],oe.prototype,"thumbnail",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oe.prototype,"dataChanged",null);_.k([_.A("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oe.prototype,"isHovered",null);oe=_.k([_.N({is:"ytd-radio-renderer",disableElementRegistration:!0})],oe);
_.u(oe,"ytd-radio-renderer",function(){if(vBw!==void 0)return vBw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vBw=v},{mode:_.HE("kevlar_poly_si_batch_j058")?1:2});var EBF;_.ew("itemSectionRenderer","showRenderer","ytd-show-renderer");var fj=function(){return _.g.apply(this,arguments)||this};
_.S(fj,_.g);fj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fj.prototype.computeThumbnailWidth=function(v){return v?360:246};
fj.prototype.computeUseProminentThumbs=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fj.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],fj.prototype,"isSearch",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.W("design:type",Boolean)],fj.prototype,"useProminentThumbs",void 0);fj=_.k([_.N({is:"ytd-show-renderer",disableElementRegistration:!0})],fj);
_.u(fj,"ytd-show-renderer",function(){if(EBF!==void 0)return EBF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return EBF=v},{mode:1});_.ew("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var xf=function(){var v=_.g.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.S(xf,_.g);xf.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"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xf.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],xf.prototype,"isRichGrid",void 0);xf=_.k([_.N({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],xf);
_.u(xf,"ytd-feed-entry-renderer",function(){if(BZ1!==void 0)return BZ1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return BZ1=v},{mode:1});var nBF;var cn=function(){return _.g.apply(this,arguments)||this};
_.S(cn,_.g);cn.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.k([_.h(_.PL),_.W("design:type",Object)],cn.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],cn.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cn.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.Fq,value:3}),_.W("design:type",Number)],cn.prototype,"itemsPerRow",void 0);
cn=_.k([_.N({is:"ytd-link-card-renderer",disableElementRegistration:!0})],cn);
_.u(cn,"ytd-link-card-renderer",function(){if(nBF!==void 0)return nBF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return nBF=v},{mode:1});var oB1;var yW=function(){return _.g.apply(this,arguments)||this};
_.S(yW,_.g);_.c=yW.prototype;_.c.configureRendererStamper=function(){return{"data.menu":Ra,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.c.onRendererTap=function(v){if(!this.ytdDismissibleItemBehavior.isDismissed){var E,n=(E=this.data)==null?void 0:E.navigationEndpoint;n&&!_.Kh(_.MQ(v),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(n)?_.Kh(_.MQ(v),this.hostElement,["A"])||_.jK(this.hostElement,"yt-navigate",{endpoint:n}):this.ytComponentBehavior.resolveCommand(n,{}))}};
_.c.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.c.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
_.c.isNavigationCommand=function(v){return v?_.C(v,_.ix)||_.C(v,_.dM)||_.C(v,_.Us)?!0:!1:!1};
yW.prototype.onRendererTap=yW.prototype.onRendererTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],yW.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yW.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],yW.prototype,"data",void 0);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yW.prototype,"onRendererTap",null);yW=_.k([_.N({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],yW);
_.u(yW,"ytd-lumiere-promo-item-image-renderer",function(){if(oB1!==void 0)return oB1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oB1=v},{mode:1});var fcl;var pj=function(){return _.g.apply(this,arguments)||this};
_.S(pj,_.g);pj.prototype.computeLandscapeThumbnail=function(){var v;return((v=this.data)==null?void 0:v.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],pj.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pj.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],pj.prototype,"miniMode",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.Fq}),_.W("design:type",Number)],pj.prototype,"itemsPerRow",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.W("design:type",Boolean)],pj.prototype,"landscapeThumbnail",void 0);pj=_.k([_.N({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],pj);
_.u(pj,"ytd-lumiere-shelf-details-renderer",function(){if(fcl!==void 0)return fcl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return fcl=v},{mode:_.HE("kevlar_poly_si_batch_j076")?1:2});var xyF;var QW=function(){return _.g.apply(this,arguments)||this};
_.S(QW,_.g);QW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QW.prototype,"data",void 0);QW=_.k([_.N({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],QW);
_.u(QW,"ytd-primetime-promo-details-renderer",function(){if(xyF!==void 0)return xyF;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return xyF=v},{mode:1});var c5U;var Xz=function(){return _.g.apply(this,arguments)||this};
_.S(Xz,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Xz.prototype,"data",void 0);Xz=_.k([_.N({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Xz);
_.u(Xz,"ytd-panel-show-style-metadata-renderer",function(){if(c5U!==void 0)return c5U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return c5U=v},{mode:1});var y5l;var eq=function(){return _.g.apply(this,arguments)||this};
_.S(eq,_.g);_.c=eq.prototype;_.c.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.c.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.c.computeThumbnail=function(v){if(v)return v.smallFormFactorBackgroundThumbnail||v.largeFormFactorBackgroundThumbnail};
_.c.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.c.isNavigationCommand=function(v){return v?_.C(v,_.ix)||_.C(v,_.dM)||_.C(v,_.Us)?!0:!1:!1};
_.c.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
eq.prototype.onPanelTap=eq.prototype.onPanelTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],eq.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eq.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],eq.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0,value:_.Z("web_modern_buttons")}),_.W("design:type",Boolean)],eq.prototype,"modernButtons",void 0);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eq.prototype,"onPanelTap",null);eq=_.k([_.N({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],eq);
_.u(eq,"ytd-primetime-promo-panel-renderer",function(){if(y5l!==void 0)return y5l;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return y5l=v},{mode:1});_.Yz(_.qu(function(v){v=_.Ue(v,{data:{},useFullWidth:!1});var E=v.data,n=v.useFullWidth,f=function(){return E().caption},x=function(){return E().image},y=function(){return _.F$(E().onTap)};
v={};v=_.W8("ytTeaserCardViewModelHost",(v.ytTeaserCardViewModelUseFullWidth=function(){return n()},v));
return _.w("teaser-card-view-model",{class:v},_.w(_.x6,{cond:function(){return y()},
then:function(){return _.w(Ja6,{className:"ytTeaserCardViewModelLink",command:y,forceNewState:!0,useATagConfig:!0},_.w("div",{class:"ytTeaserCardViewModelImageContainer"},_.w(_.x6,{cond:x,then:function(Q){return _.w(_.UZ,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.w("p",{class:"ytTeaserCardViewModelCaption"},f))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.Kt,
useFullWidth:_.Kt}});var pOi=new _.$Y("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Yz(_.qu(function(v){var E=v.data;var n=v.showYtInteractionInContent;var f=function(){return!!E().selectableFeedback};
v=_.p(_.t7(!1,void 0,"nblDw"));var x=v.next().value,y=v.next().value;_.l5(function(){var a=_.C(E().primaryButton,_.bS);(a==null?0:a.isToggled)&&y(a.isToggled)});
v=_.ij(function(a){if(!f())return!1;if(x()){var M;var U=(M=E().selectableFeedback)==null?void 0:M.onDeselect}else{var d;U=(d=E().selectableFeedback)==null?void 0:d.onSelect}U&&_.lj(U,{form:{element:a.target}});y(!x());if(a=_.C(E().primaryButton,_.bS))a.isToggled=x();return!1});
var Q=function(){if(!f()){var a,M=(a=E().loggingDirectives)==null?void 0:a.trackingParams;M&&_.El(_.P().resolve(_.nK),M)}},e=_.WKQ(),F=function(){var a;
return f()?(a=E().selectableFeedback)==null?void 0:a.a11yLabel:void 0},b=function(){return f()?{toggled:x()}:{}},l=_.P().resolve(_.jp(pOi)),r={};
return _.w("yt-feedback-item-renderer",{class:_.W8("ytFeedbackItemRendererHost",(r.ytFeedbackItemRendererSelectableFeedback=f,r)),"on:click":v,"on:keydown":e,title:F,"aria-label":F,"aria-pressed":function(){return f()?x():void 0},
tabindex:function(){return f()?0:void 0},
role:function(){return f()?"button":void 0}},_.w("div",{class:"ytFeedbackItemRendererContentContainer"},_.w(_.mI,{data:function(){return E().content}},{videoRenderer:function(a){return _.w(l,{data:a.data,
showYtInteraction:n})},
lockupViewModel:function(a){return _.w(_.kx,{data:a.data,containerType:2})}})),_.w("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.w(_.mI,{data:function(){return E().primaryButton}},{toggleButtonViewModel:function(a){return _.w(_.lS,{data:a.data,
buttonShapeOverrides:b,disableExplicitClickLogging:!0,onToggle:Q})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.Kt,
showYtInteractionInContent:_.Kt}});var Fz=function(){var v=_.g.apply(this,arguments)||this;v.isShortsGrid=!1;v.isCompactGrid=!1;v.isShortsPanelGrid=!1;v.renderedFromRichGrid=!1;v.isInFirstColumn=!1;v.noGutterMargins=!1;v.isInlineGroupItem=!1;v.insetMetadata=!1;v.noBottomMarginInAds=_.Z("web_no_bottom_margin_for_home_ad_buttons");v.force16By9ThumbnailAspectRatio=!1;v.useCompactList=!1;v.containerType=2;v.thumbnailTargetWidth=9999;v.isResponsiveGrid=!1;v.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};v.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};v.hoverListener=v.hover.bind(v);v.leaveListener=v.leave.bind(v);v.highlighted=!1;v.JSC$13897_unsubscribeFromInlinePreviewIsActive=function(){};
return v};
_.S(Fz,_.g);_.c=Fz.prototype;_.c.computeContainerType=function(){return this.useCompactList?3:2};
_.c.computeThumbnailTargetWidth=function(){var v;return(v=this.itemWidth)!=null?v:9999};
_.c.updateIsInFirstColumn=function(){var v;this.isInFirstColumn=((v=this.data)==null?void 0:v.colIndex)===0};
_.c.observerContainerType=function(){if(this.lockup){var v=this.lockup;v.containerType=this.containerType;v.sizing=this.sizing;v.typographyBump=this.typographyBump;v.itemWidth=this.itemWidth}this.richGridMedia&&_.Z("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Z("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.c.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]]"}}}}}};
_.c.leave=function(v){v=v.relatedTarget;var E=document.querySelector("ytd-video-preview");v&&E&&_.AV(E).contains(v)||this.removeAndCleanupHighlight()};
_.c.hover=function(){var v;if(!this.highlighted&&(!_.Z("web_enable_rich_item_on_focus_effect")||(v=this.data)!=null&&v.onFocusEffect)){var E,n;((E=this.data)==null?void 0:(n=E.onFocusEffect)==null?void 0:n.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(v=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:v,boxShadow:"0 0 0 10px "+v}));var f,x;((f=this.data)==null?void 0:(x=f.onFocusEffect)==null?void 0:
x.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.c.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};
_.c.registerHoverHighlightListeners=function(){var v=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13897_unsubscribeFromInlinePreviewIsActive=_.yC(_.dG(),_.A$F,function(E){v.highlighted&&!E&&v.removeAndCleanupHighlight()})};
_.c.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13897_unsubscribeFromInlinePreviewIsActive()};
_.c.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.c.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.c.getBackgroundColor=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.onFocusEffect)==null?void 0:E.onFocusColor;if(n){if(document.documentElement.hasAttribute("dark")&&(n==null?0:n.darkTheme))return _.p2(n==null?void 0:n.darkTheme);if(n==null?0:n.lightTheme)return _.p2(n==null?void 0:n.lightTheme)}};
_.c.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var v=_.lc(),E,n,f;v&&((E=this.data)==null?0:E.trackingParams)&&((n=this.data)==null?void 0:n.colIndex)!=null&&((f=this.data)==null?void 0:f.rowIndex)!=null&&_.KH(v,_.tx(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.c.isSlimMediaRenderer=function(v){return!!_.C(v==null?void 0:v.content,_.nq4)||!!_.C(v==null?void 0:v.content,Eq1)||!!_.C(v==null?void 0:v.content,_.Uk)||!!_.C(v==null?void 0:v.content,CIU)};
_.c.isPostRenderer=function(){var v,E;return!!_.C((v=this.data)==null?void 0:v.content,XM6)||!!_.C((E=this.data)==null?void 0:E.content,e$X)};
_.c.computeIsGameCardShelf=function(){var v;return!!_.C((v=this.data)==null?void 0:v.content,Xl1)};
_.c.computeIsMiniGameCardShelf=function(){var v,E;return!!_.C((v=this.data)==null?void 0:v.content,q6X)||!!_.C((E=this.data)==null?void 0:E.content,JtP)};
_.c.computeIsTeaserCard=function(){var v;return!!_.C((v=this.data)==null?void 0:v.content,JtP)};
_.c.computeIsSelectableFeedbackItem=function(){var v,E;return!((E=_.C((v=this.data)==null?void 0:v.content,_.dTX))==null||!E.selectableFeedback)};
_.c.computeContainsLumierePosters=function(){var v,E;return((E=_.C((v=this.data)==null?void 0:v.content,Zo1))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.c.computeIsExpandOnHoverCardShelf=function(){var v;return!!_.C((v=this.data)==null?void 0:v.content,abg)};
_.c.computeIsLinkCardShelf=function(){var v;return!!_.C((v=this.data)==null?void 0:v.content,aQg)};
_.c.computeIsReelItemStyleAvatarCircle=function(v){var E;return((E=_.C(v==null?void 0:v.content,_.Uk))==null?void 0:E.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.c.computeIsLinkCardFullWidth=function(v,E){var n;return((n=_.C(v==null?void 0:v.content,aQg))==null?void 0:n.useFullWidth)||E<=2};
_.hK.Object.defineProperties(Fz.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&&_.Z("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_enable_rich_item_on_focus_effect")||_.Z("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.Z("web_shorts_2_by_3_lockups_study")||_.Z("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Fz.prototype.richGridHoverHighlightChanged=Fz.prototype.richGridHoverHighlightChanged;Fz.prototype.observerContainerType=Fz.prototype.observerContainerType;Fz.prototype.updateIsInFirstColumn=Fz.prototype.updateIsInFirstColumn;_.k([_.h(_.PL),_.W("design:type",Object)],Fz.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],Fz.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fz.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isPost",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.W("design:type",Boolean)],Fz.prototype,"containsLumierePosters",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isSlimMedia",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isGameCardShelf",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isMiniGameCardShelf",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isTeaserCard",void 0);_.k([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isSelectableFeedbackItem",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isShortsGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Fz.prototype,"isSlimGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isCompactGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isShortsPanelGrid",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isExpandOnHoverCardShelf",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isLinkCardShelf",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.Fq,value:3}),_.W("design:type",Number)],Fz.prototype,"itemsPerRow",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"renderedFromRichGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isInFirstColumn",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"noGutterMargins",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isInlineGroupItem",void 0);_.k([_.H(),_.W("design:type",Object)],Fz.prototype,"insetMetadata",void 0);
_.k([_.H(),_.W("design:type",Object)],Fz.prototype,"noBottomMarginInAds",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Fz.prototype,"isShelfItem",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.W("design:type",Boolean)],Fz.prototype,"isReelItemStyleAvatarCircle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.W("design:type",Boolean)],Fz.prototype,"isLinkCardFullWidth",void 0);
_.k([_.H(),_.W("design:type",Object)],Fz.prototype,"force16By9ThumbnailAspectRatio",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"useCompactList",void 0);_.k([_.H(),_.W("design:type",String)],Fz.prototype,"sizing",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Fz.prototype,"typographyBump",void 0);_.k([_.H(),_.W("design:type",Number)],Fz.prototype,"itemWidth",void 0);_.k([_.H(),_.W("design:type",Boolean)],Fz.prototype,"isHomeShelf",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Fz.prototype,"isHomeGrid",void 0);_.k([_.Wp("yt-lockup-view-model"),_.W("design:type",HTMLElement)],Fz.prototype,"lockup",void 0);_.k([_.Wp("ytd-rich-grid-media"),_.W("design:type",HTMLElement)],Fz.prototype,"richGridMedia",void 0);_.k([_.Wp("ytd-ad-slot-renderer"),_.W("design:type",HTMLElement)],Fz.prototype,"adSlotRenderer",void 0);_.k([_.H({computed:"computeContainerType(useCompactList)"}),_.W("design:type",Object)],Fz.prototype,"containerType",void 0);
_.k([_.H({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.W("design:type",Object)],Fz.prototype,"thumbnailTargetWidth",void 0);_.k([_.A("showYtInteractionOnRichItem"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Fz.prototype,"showYtInteractionOnRichGridMedia",null);_.k([_.A("isSelectableFeedbackItem","richGridHoverHighlight"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Fz.prototype,"showYtInteractionOnRichItem",null);
_.k([_.A("typographyBump","isHomeGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Fz.prototype,"richTypographyBump",null);_.k([_.H({reflectToAttribute:!0}),_.A("isShortsGrid","isCompactGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Fz.prototype,"richGridHoverHighlight",null);_.k([_.A("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],Fz.prototype,"shortsLockupViewModelAspectRatio",null);
_.k([_.A("isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],Fz.prototype,"shortsLockupViewModelScrimStyle",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fz.prototype,"updateIsInFirstColumn",null);_.k([_.On("containerType","sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fz.prototype,"observerContainerType",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fz.prototype,"isResponsiveGrid",void 0);_.k([_.H(),_.W("design:type",Object)],Fz.prototype,"lockupExperiments",void 0);_.k([_.On("richGridHoverHighlight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fz.prototype,"richGridHoverHighlightChanged",null);Fz=_.k([_.N({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Fz);
_.QE1=_.Dj()(Fz,"ytd-rich-item-renderer",function(){if(iNX===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);iNX=v}v=iNX;return v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var nTQ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Xr$=_.qD(_.tQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XOS;var mS=function(){var v=_.g.apply(this,arguments)||this;v.useResponsiveGrid=!1;v.hidden=!1;v.standardShelfMargins=_.Z("web_rich_grid_standard_shelf_margins");v.isShowMoreHidden=!1;v.isExpanded=!1;v.isInnerShelf=!1;v.allVideosCount=0;v.allPlaylistCount=0;v.haveSmartDownloadsCompleted=!1;v.isShowLessHidden=!0;v.restrictContentsOverflow=!1;v.firstShownIndex=0;v.horizontalOffset=0;v.atEnd=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};v.nextClick=function(){var E;(E=v.data)!=null&&E.contents&&(v.firstShownIndex+=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
v.previousClick=function(){var E;(E=v.data)!=null&&E.contents&&(v.firstShownIndex-=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
return v};
_.S(mS,_.g);_.c=mS.prototype;
_.c.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:_.MX("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.c.attached=function(){this.requestElementsPerRow()};
_.c.refreshGridLayoutNew=function(){var v;if((v=this.data)!=null&&v.contents&&this.containerWidth){var E;((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize)?(v=_.mkN(this.data.responsiveContainerConfiguration,this.containerWidth),v=_.uS(Object.assign({},v,{standardUnitMinWidth:this.standardUnitMinWidth}))):v=_.uS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=v.typographyBump;if(this.elementsPerRow!==
v.numItems||this.gutter!==v.gutter)this.elementsPerRow=v.numItems,this.gutter=v.gutter,this.itemWidth=v.itemWidth,_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.gutter+"px"})}};
_.c.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.Z("web_use_layout_library_for_rich_grid_disable_shorts"))){var v=_.rBL(this.data);if(v)return v;if(_.Z("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.c.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.Z("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.c.computeButton=function(v){var E=_.C(v,_.qb);v=Object.assign({},_.C(v,_.qb));return E?(v.text||(v.text={simpleText:v.tooltip}),v.style="STYLE_MONO_OUTLINE",v.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",v):E};
_.c.onRowIndexChange=function(){var v=_.lc(),E,n;((E=this.data)==null?0:E.trackingParams)&&((n=this.data)==null?void 0:n.rowIndex)!=null&&v&&_.KH(v,_.tx(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.c.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var v,E=((v=this.getRichItemRenderers()[0])==null?void 0:v.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*E;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
_.c.onUpdateElementsPerRowAction=function(v,E,n,f,x,y){if(this.containerWidth!==y&&(this.containerWidth=y,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&v&&E&&n&&f&&x&&(this.elementsPerRow!==v||this.postsPerRow!==E||this.slimItemsPerRow!==n||this.gameCardsPerRow!==f||this.miniGameCardsPerRow!==x)&&(this.elementsPerRow=v,this.postsPerRow=E,this.slimItemsPerRow=n,this.gameCardsPerRow=f,this.miniGameCardsPerRow=x,this.updateItemVisibility())};
_.c.getRichItemRenderers=function(){return _.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.c.updateItemVisibility=function(){var v=this;if(this.data&&this.data.contents){var E=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(f,x){var y;((y=v.data)==null?0:y.isExpanded)?(f.hidden=x>E-1,f.ytRendererBehavior.markDirty()):f.hidden=x>v.currentElementsPerRow-1||x>E-1});
var n=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||n||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||n||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.c.setHeightToSingleRow=function(){var v=this.getRichItemRenderers(),E=Number.parseInt(getComputedStyle(v[0]).marginBottom,10)||0;v=v.slice(0,this.currentElementsPerRow).reduce(function(n,f){return Math.max(n,f.getBoundingClientRect().height+E)},0);
this.contents.style.height=v+"px"};
_.c.focusNextExpandedItem=function(){var v;((v=this.data)==null?0:v.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.c.focusItem=function(v,E){var n=this.getRichItemRenderers();if(n[v]&&(v=n[v].querySelector(".focus-on-expand"))){if(E){var f;(f=n[this.currentElementsPerRow])==null||f.scrollIntoView({behavior:"smooth",block:"center"})}v.focus({preventScroll:!0})}};
_.c.onDataChange=function(){var v=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.IS(this,function(){v.updateItemVisibility()});
var E;if((E=this.data)==null?0:E.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.NQ(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),E=0;E<this.data.contents.length;E++){var n=_.C(this.data.contents[E],_.as)||{};n.colIndex=E;n.rowIndex=this.data.rowIndex}};
_.c.handleRerenderDownloadsData=function(){_.Z("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())};
_.c.blockInlinePreview=function(v){var E=this,n;return _.X(function(f){(n=E.inlinePreviewIsEnabled)&&E.ytdReduxBehavior.dispatch(_.fKi(!1));return f.return(new Promise(function(x){v(function(){n&&E.ytdReduxBehavior.dispatch(_.fKi(!0));x()})}))})};
_.c.expandShelf=function(){var v=this;if(this.data){var E,n=(E=_.C(this.data.showMoreButton,_.qb))==null?void 0:E.trackingParams;n&&_.El(_.Tl(),n);this.data.isExpanded=!0;this.blockInlinePreview(function(f){v.setHeightToSingleRow();v.updateItemVisibility();v.contents.style.height=v.contents.scrollHeight+"px";_.wh.addJob(function(){v.contents.style.height="auto";v.focusNextExpandedItem();f()},2,200)})}};
_.c.collapseShelf=function(){var v=this;return _.X(function(E){if(E.nextAddress==1){if(!v.data)return E.return();v.data.isExpanded=!1;return _.m(E,v.blockInlinePreview(function(n){v.contents.style.height=v.contents.scrollHeight+"px";v.setHeightToSingleRow();_.wh.addJob(function(){v.updateItemVisibility();v.contents.style.height="auto";n()},2,200)}),2)}_.jK(v.hostElement,"yt-rich-shelf-renderer-collapse",v.data.trackingParams);
v.focusItem(0,!1);_.yQ(E)})};
_.c.updateArrowButtonStatus=function(){var v=this.getRichItemRenderers().length;if(!_.Z("web_rich_shelf_renderer_use_data_contents_killswitch")){var E,n;v=((E=this.data)==null?void 0:(n=E.contents)==null?void 0:n.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=v};
_.c.onChildElementFocus=function(v){this.hasChevronButtons&&(v=v.target.closest("#contents > *"),this.contents.contains(v)&&(v.offsetLeft<this.horizontalOffset?this.previousClick():v.offsetLeft+v.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.c.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.MX("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.c.updateHorizontalOffset=function(){var v=this.getRichItemRenderers(),E=v.length;if(!_.Z("web_rich_shelf_renderer_use_data_contents_killswitch")){var n,f;E=((n=this.data)==null?void 0:(f=n.contents)==null?void 0:f.length)||0}var x;v=((x=v[0])==null?void 0:x.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>E?this.firstShownIndex=E-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*v};
_.c.isSlimMediaShelfRenderer=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!(_.C(f,_.nq4)||_.C(f,Eq1)||_.C(f,_.Uk)||_.C(f,CIU))};
_.c.isGameCardShelf=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!_.C(f,Xl1)};
_.c.isGnomeShelf=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!_.C(f,_.dTX)};
_.c.isMiniGameCardShelf=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!_.C(f,q6X)||!!_.C(f,JtP)};
_.c.hasGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.c.hasRoundedGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.c.isShortsShelf=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!_.C(f,_.Uk)||!!_.C(f,CIU)};
_.c.isPostShelfRenderer=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!(!_.C(f,XM6)&&!_.C(f,e$X))};
_.c.isLumiereShelf=function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as);return!!_.C(n==null?void 0:n.content,Zo1)};
_.c.isLumiereShelfWithPosters=function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as),f;return((f=_.C(n==null?void 0:n.content,Zo1))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.c.isExpandOnHoverCardShelf=function(){var v,E,n,f=(n=_.C((v=this.data)==null?void 0:(E=v.contents)==null?void 0:E[0],_.as))==null?void 0:n.content;return!!_.C(f,abg)};
_.c.computeHasFeaturedBadge=function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.badges)==null?void 0:E[0],_.KP1);return n?n.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.c.computeHasPaygatedFeaturedBadge=function(){var v,E,n=_.C((v=this.data)==null?void 0:(E=v.badges)==null?void 0:E[0],_.KP1);return n?(n==null?void 0:n.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.c.computeHeaderHidden=function(){var v,E,n,f,x,y;return!((v=this.data)==null?0:v.icon)&&!((E=this.data)==null?0:E.title)&&!((n=this.data)==null?0:n.subtitle)&&!((f=this.data)==null?0:f.thumbnail)&&!((x=this.data)==null?0:x.badges)&&!((y=this.data)==null?0:y.menu)};
_.c.showCtaButton=function(){var v;return!((v=this.data)==null||!v.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.c.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.c.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.c.computeForce16By9ThumbnailAspectRatio=function(){var v,E;return((v=this.data)==null?void 0:(E=v.responsiveContainerConfiguration)==null?void 0:E.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.c.onSectionReactiveDismissal=function(v,E,n){var f,x;var y=(f=this.data)==null?void 0:(x=f.targetingContext)==null?void 0:x.targetGroupId;this&&y&&E.targetGroupId&&y.includes(E.targetGroupId)?(f=this.rowIndex,v=f===void 0?!1:!(E.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&f<=v)):v=!1;v&&(this.hidden=n)};
_.hK.Object.defineProperties(mS.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var v=this.elementsPerRow;this.isPostShelfRenderer()?v=this.postsPerRow:this.isSlimMediaShelfRenderer()?v=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?v=this.slimItemsPerRow-1:this.isGameCardShelf()?v=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(v=this.miniGameCardsPerRow);return v}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.Z("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.previousButton)&&!((E=this.data)==null||!E.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 v;return((v=_.P().resolve(_.Y_).getCurrentPage())==null?void 0:v.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return!((v=this.data)==null?0:(E=v.thumbnail)==null?0:(n=E.accessibility)==null?0:(f=n.accessibilityData)==null?0:f.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
mS.prototype.onChildElementFocus=mS.prototype.onChildElementFocus;mS.prototype.handleRerenderDownloadsData=mS.prototype.handleRerenderDownloadsData;mS.prototype.onDataChange=mS.prototype.onDataChange;mS.prototype.onRowIndexChange=mS.prototype.onRowIndexChange;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.Z7),_.W("design:type",Object)],mS.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],mS.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],mS.prototype,"ytdReduxBehavior",void 0);_.k([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.W("design:type",Object)],mS.prototype,"useResponsiveGrid",void 0);_.k([_.H(),_.W("design:type",Object)],mS.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Number)],mS.prototype,"standardUnitMinWidth",void 0);_.k([_.H({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],mS.prototype,"elementsPerRow",void 0);_.k([_.H({value:3}),_.W("design:type",Number)],mS.prototype,"postsPerRow",void 0);_.k([_.H({value:6}),_.W("design:type",Number)],mS.prototype,"slimItemsPerRow",void 0);_.k([_.H({value:6}),_.W("design:type",Number)],mS.prototype,"gameCardsPerRow",void 0);
_.k([_.H({value:6}),_.W("design:type",Number)],mS.prototype,"miniGameCardsPerRow",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"standardShelfMargins",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"isShowMoreHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"isExpanded",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"isInnerShelf",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.W("design:type",Boolean)],mS.prototype,"isShorts",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.W("design:type",Boolean)],mS.prototype,"isLumiere",void 0);_.k([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],mS.prototype,"hasBoxArtThumbnailStyle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],mS.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.W("design:type",Boolean)],mS.prototype,"hasFeaturedBadge",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.W("design:type",Boolean)],mS.prototype,"hasPaygatedFeaturedBadge",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.W("design:type",Boolean)],mS.prototype,"isHeaderHidden",void 0);_.k([_.H({selector:_.jsI}),_.W("design:type",Object)],mS.prototype,"allVideosCount",void 0);_.k([_.H({selector:F1Q}),_.W("design:type",Object)],mS.prototype,"allPlaylistCount",void 0);_.k([_.H({selector:RrG}),_.W("design:type",Object)],mS.prototype,"haveSmartDownloadsCompleted",void 0);
_.k([_.H({selectorArgs:["entitySelectorType"],selector:function(v,E){if(_.Z("kevlar_modern_downloads_page")&&E&&E!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var n=v.entities;switch(E){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":E=_.pC(n);v=lT(E);var f=_.ob(E);n=_.Xq(n);n=_.HR(f3Q(f,n,E.length));return{contents:v,subtitle:n};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return n=_.pC(n),{contents:lT(n)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return n=
_.QN(n),{contents:lT(n)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return n=_.r$E(n),{contents:lT(n)};default:_.li(new _.yc("Error: entitySelectorType defined but not matched in selector.",v,E))}}}}),
_.W("design:type",Object)],mS.prototype,"entityDrivenRichShelfData",void 0);_.k([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],mS.prototype,"hasTopCtaButton",void 0);_.k([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],mS.prototype,"hasBottomCtaButton",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.W("design:type",Boolean)],mS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"isShowLessHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"restrictContentsOverflow",void 0);_.k([_.H({selector:_.VOL}),_.W("design:type",Boolean)],mS.prototype,"inlinePreviewIsEnabled",void 0);
_.k([_.H({computed:"computeSizing(data)"}),_.W("design:type",String)],mS.prototype,"sizing",void 0);_.k([_.H(),_.W("design:type",Boolean)],mS.prototype,"typographyBump",void 0);_.k([_.H(),_.W("design:type",Number)],mS.prototype,"itemWidth",void 0);_.k([_.H(),_.W("design:type",Object)],mS.prototype,"firstShownIndex",void 0);_.k([_.H(),_.W("design:type",Object)],mS.prototype,"horizontalOffset",void 0);_.k([_.H(),_.W("design:type",Object)],mS.prototype,"atEnd",void 0);
_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],mS.prototype,"contents",void 0);_.k([_.On("data.rowIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mS.prototype,"onRowIndexChange",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mS.prototype,"onDataChange",null);
_.k([_.On("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mS.prototype,"handleRerenderDownloadsData",null);_.k([_.jk("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],mS.prototype,"onChildElementFocus",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","isHomePage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mS.prototype,"isTruncated",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mS.prototype,"hideBottomDivider",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mS.prototype,"hasChevronButtons",null);_.k([_.A("firstShownIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],mS.prototype,"previousButtonOverride",null);
_.k([_.A("atEnd"),_.W("design:type",Object),_.W("design:paramtypes",[])],mS.prototype,"nextButtonOverride",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mS.prototype,"isHomePage",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mS.prototype,"thumbnailAriaHidden",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mS.prototype,"initiallyIsExpanded",null);
_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],mS.prototype,"entitySelectorType",null);mS=_.k([_.N({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],mS);
_.eFo=_.Dj()(mS,"ytd-rich-shelf-renderer",function(){if(XOS===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);XOS=v}v=XOS;return v},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var FdU;_.Yz(LOo,"yt-slimline-survey-view-model",{props:{data:_.Kt}});var wy=function(){var v=_.g.apply(this,arguments)||this;v.tileLottieAnimationRef={};v.backgroundLottieAnimationRef={};v.isOnHoverBehaviorForLottieEnabled=!0;v.useBiggerShowcaseImage=_.Z("enable_desktop_search_bigger_thumbs");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return v};
_.S(wy,_.g);_.c=wy.prototype;_.c.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.c.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"}}}};
_.c.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var v=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);v!==this.hasTile&&this.set("hasTile",v);v=this.hasLogo(this.data)||!!this.data.badgeText;v!==this.hasMetadata&&this.set("hasMetadata",v);v=this.data.overflowButton?!1:v;v!==this.showLogoImage&&this.set("showLogoImage",v);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.c.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.c.currentColorChanged=function(){this.updateButtonPalette()};
_.c.computeBackgroundStyle=function(v){if(v&&this.data){var E=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var n=_.AZ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);n&&E.push('background-image: url("'+n+'");')}var f;((f=v.basicColorData)==null?void 0:f.backgroundColor)!==void 0&&E.push("background-color: "+_.Qt(v.basicColorData.backgroundColor)+";");return E.join("")}};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
_.c.getCurrentLogo=function(v,E){if(v)return E?v.darkLogoImage:v.lightLogoImage};
_.c.getCurrentStaticTileImage=function(v,E){if(this.hasStaticTile(v))return v.darkTileImage?E?v.darkTileImage:v.tileImage:v.tileImage};
_.c.computeTitleStyle=function(v){if(this.data&&this.data.title&&v&&v.basicColorData&&v.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.p2(v.basicColorData.foregroundTitleColor)+";"};
_.c.computeSubtitleStyle=function(v){if(this.data&&this.data.subtitle&&v&&v.basicColorData&&v.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.p2(v.basicColorData.foregroundBodyColor)+";"};
_.c.computeSupplementalStyle=function(v){if(this.data&&this.data.supplementalText&&v&&v.supplementalTextColor!==void 0)return v=_.p2(v.supplementalTextColor),"color:"+v+";--yt-endpoint-color:"+v+";--yt-endpoint-hover-color:"+v+";--yt-endpoint-visited-color:"+v+";--yt-formatted-string-bold-font-weight:700;"};
_.c.computeBadgeStyle=function(v){if(this.data&&this.data.badgeText&&v&&v.basicColorData&&v.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.p2(v.basicColorData.foregroundActivatedColor)+";"};
_.c.computeDismissIconStyle=function(v){var E,n;if((v==null?0:(E=v.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(v==null?0:(n=v.dismissButtonColorData)==null?0:n.backgroundColor))return"--yt-button-color:"+_.Qt(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qt(v.dismissButtonColorData.backgroundColor)+";"};
_.c.computeOverflowIconStyle=function(v){var E,n;if((v==null?0:(E=v.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(v==null?0:(n=v.dismissButtonColorData)==null?0:n.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Qt(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qt(v.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Qt(v.dismissButtonColorData.foregroundTitleColor)+";"};
_.c.computeBannerStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeLocation=function(v){switch(v==null?void 0:v.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.c.shouldShowTileSection=function(v,E,n){return!this.shouldExpandLogo(v,E,n)&&E};
_.c.shouldShowExpandedLogoSection=function(v,E,n){return this.shouldExpandLogo(v,E,n)&&v!==void 0&&this.hasLogo(v)};
_.c.shouldExpandLogo=function(v,E,n){return v&&E?!1:n>=2};
_.c.hasStaticTile=function(v){return!(v==null||!v.tileImage)};
_.c.hasTileLottie=function(v){var E;return!!(v==null?0:(E=v.tileLottie)==null?0:E.url)};
_.c.hasLogo=function(v){return this.getCurrentLogo(v,this.isDarkTheme)!==void 0};
_.c.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.c.getExpandedLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.c.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.c.hasBackgroundLottie=function(v){var E;return!!(v==null?0:(E=v.backgroundLottie)==null?0:E.url)};
_.c.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,E;(v=this.tileLottieAnimationRef)==null||(E=v.lottieEl)==null||E.play();var n,f;(n=this.backgroundLottieAnimationRef)==null||(f=n.lottieEl)==null||f.play()}};
_.c.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,E;(v=this.tileLottieAnimationRef)==null||(E=v.lottieEl)==null||E.pause();var n,f;(n=this.backgroundLottieAnimationRef)==null||(f=n.lottieEl)==null||f.pause()}};
_.c.pauseLottie=function(){var v,E;(v=this.tileLottieAnimationRef)==null||(E=v.lottieEl)==null||E.pause();var n,f;(n=this.backgroundLottieAnimationRef)==null||(f=n.lottieEl)==null||f.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.c.performPrimaryButtonAction=function(){var v,E,n;((v=this.data)==null?0:(E=v.primaryButton)==null?0:(n=E.buttonRenderer)==null?0:n.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
_.c.updateButtonPalette=function(){if(this.data&&this.currentColorData){var v;((v=this.data.dismissButton)==null?0:v.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 E;if((E=this.data.primaryButton)==null?0:E.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 n;if((n=this.data.secondaryButton)==
null?0:n.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 f;((f=this.data.primaryButton)==null?0:f.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var x;((x=this.data.secondaryButton)==null?0:x.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.c.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var v=this.getTileLottieDataBasedOnTheme(),E,n;if(v.url!==((E=this.tileLottiePlayerProps)==null?void 0:(n=E.animationConfig)==null?void 0:n.path)){var f,x;(f=this.tileLottieAnimationRef)==null||(x=f.lottieEl)==null||x.destroy();var y;this.isOnHoverBehaviorForLottieEnabled=!((y=v.settings)==null?0:y.autoplay);var Q,e;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(e=(Q=v.settings)==null?void 0:Q.autoplay)!=null?e:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.tileLottiePlayerProps.animationConfig.path=v.url:this.tileLottiePlayerProps.animationConfig.animationData=v.url}}};
_.c.getOverflowButton=function(v){return _.C(v.overflowButton,J8P)};
_.c.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var v=this.getBackgroundLottieDataBasedOnTheme(),E,n;if(v.url!==((E=this.backgroundLottiePlayerProps)==null?void 0:(n=E.animationConfig)==null?void 0:n.path)){var f,x;(f=this.backgroundLottieAnimationRef)==null||(x=f.lottieEl)==null||x.destroy();var y;this.isOnHoverBehaviorForLottieEnabled=!((y=v.settings)==null?0:y.autoplay);var Q,e;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(e=(Q=v.settings)==null?void 0:Q.autoplay)!=null?e:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=v.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
v.url}}};
_.c.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var v;((v=this.tileLottieAnimationRef)==null?void 0:v.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var E;((E=this.backgroundLottieAnimationRef)==null?void 0:E.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.c.getTileLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeTileLottie))return this.data.darkThemeTileLottie;var E;return((E=this.data)==null?0:E.tileLottie)?this.data.tileLottie:{}};
_.c.getBackgroundLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var E;return((E=this.data)==null?0:E.backgroundLottie)?this.data.backgroundLottie:{}};
_.c.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.c.getLottieLoopValue=function(v){return v?v.loop!==void 0?v.loop:v.loopCount?v.loopCount-1:!0:!0};
_.c.logoWithPadding=function(v){var E,n,f;return(v=(E=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(n=E.thumbnails)==null?void 0:(f=n[0])==null?void 0:f.height)&&v%31===0?!0:!1};
wy.prototype.currentColorChanged=wy.prototype.currentColorChanged;wy.prototype.themeChanged=wy.prototype.themeChanged;wy.prototype.dataChanged=wy.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],wy.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],wy.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"primaryButton",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"secondaryButton",void 0);
_.k([_.H({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],wy.prototype,"elementsPerRow",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],wy.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],wy.prototype,"hasTile",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],wy.prototype,"hasMetadata",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],wy.prototype,"showLogoImage",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"currentColorData",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.W("design:type",String)],wy.prototype,"bannerStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.W("design:type",String)],wy.prototype,"location",void 0);
_.k([_.H(),_.W("design:type",Object)],wy.prototype,"tileLottiePlayerProps",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"tileLottieAnimationRef",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"backgroundLottiePlayerProps",void 0);_.k([_.H(),_.W("design:type",Object)],wy.prototype,"backgroundLottieAnimationRef",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wy.prototype,"useBiggerShowcaseImage",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],wy.prototype,"isHideEnclosingAction",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wy.prototype,"dataChanged",null);_.k([_.Tw("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wy.prototype,"themeChanged",null);
_.k([_.Tw("currentColorData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wy.prototype,"currentColorChanged",null);wy=_.k([_.N({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],wy);
_.u(wy,"ytd-statement-banner-renderer",function(){if(FdU!==void 0)return FdU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FdU=v},{mode:1});var my4;var bb=function(){var v=_.g.apply(this,arguments)||this;v.isSearch=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.disableMouseScroll=!0;v.useFloorScrolling=!0;v.modernTypography=_.Z("web_modern_typography");return v};
_.S(bb,_.g);bb.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.tQ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.tQ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
bb.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bb.prototype.onDataChanged=bb.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bb.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bb.prototype,"hideShelfHeader",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bb.prototype,"engagementPanel",void 0);_.k([_.H(),_.W("design:type",Object)],bb.prototype,"disableMouseScroll",void 0);_.k([_.H(),_.W("design:type",Object)],bb.prototype,"useFloorScrolling",void 0);_.k([_.H(),_.W("design:type",Object)],bb.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bb.prototype,"modernTypography",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bb.prototype,"onDataChanged",null);bb=_.k([_.N({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],bb);
_.u(bb,"ytd-reel-shelf-renderer",function(){if(my4!==void 0)return my4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return my4=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var wOU;var bvP=_.qu(function(v){var E=v.data;v=v.useSmallFont;var n={},f={};return _.w("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.w(_.x6,{cond:function(){return E().favicon},
then:function(x){return _.w(_.UZ,{data:x,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.w("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.w(_.nh,{text:function(){return E().title},
className:_.W8("yt-channel-external-link-view-model-wiz__title",(n["yt-channel-external-link-view-model-wiz__title--title-small-font"]=v,n)),ellipsisTruncate:!0,userInput:!0}),_.w(_.nh,{text:function(){return E().link},
className:_.W8("yt-channel-external-link-view-model-wiz__link",(f["yt-channel-external-link-view-model-wiz__link--link-small-font"]=v,f)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
bvP.idomCompat=!0;_.Yz(bvP,"yt-channel-external-link-view-model",{props:{data:_.Kt,useSmallFont:_.Kt}});_.ew("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var lb=function(){var v=_.g.apply(this,arguments)||this;v.revealButtonClass="button";v.businessEmailDisplayState="HIDE_SECTION";return v};
_.S(lb,_.g);_.c=lb.prototype;_.c.refit=function(){var v=this;_.bz(function(){_.kZ(v.hostElement,"yt-refit-popups-action")});
_.IS(this,function(){_.kZ(v.hostElement,"yt-refit-popups-action")})};
_.c.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.CG("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.c.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"};
_.c.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.c.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"}}}};
_.c.computeEmailHref=function(v){return"mailto:"+v};
_.c.computeSafeUrl=function(v){if(v)return _.bW(v)};
_.c.linkEndpoint=function(v){return _.C(v.onTap,_.eg)};
_.c.linkEndpointToHref=function(v){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(v))};
_.c.onYtServiceRequestCompleted=function(v){var E;if((E=v.detail.data)==null?0:E.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var n;if((n=v.detail.data)==null?0:n.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.c.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var v=this.JSC$14000_captchaTextarea.value;if(v){v={recaptcha_response_token:v,channel_id:this.metadata.channelId};var E=_.C(this.metadata.onBusinessEmailRevealClickCommand,_.eg);E&&this.ytComponentBehavior.resolveCommand(E,{form:v})}}};
_.c.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hK.Object.defineProperties(lb.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var v;return _.C((v=this.data)==null?void 0:v.metadata,UmX)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.C(this.metadata.businessEmailRevealButton,_.wQ)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var v=new URL(this.metadata.canonicalChannelUrl);return v.host+v.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 _.C(this.metadata.learnMoreOnTap,_.eg)}}});
lb.prototype.onYtServiceRequestCompleted=lb.prototype.onYtServiceRequestCompleted;lb.prototype.businessEmailMetadataChanged=lb.prototype.businessEmailMetadataChanged;lb.prototype.refit=lb.prototype.refit;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],lb.prototype,"JSC$14000_captchaTextarea",void 0);_.k([_.H(),_.W("design:type",Object)],lb.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],lb.prototype,"revealButtonClass",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lb.prototype,"metadata",null);
_.k([_.A("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],lb.prototype,"revealButton",null);_.k([_.A("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],lb.prototype,"channelDisplayUrl",null);_.k([_.Tw("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lb.prototype,"refit",null);_.k([_.A("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],lb.prototype,"formattedDescription",null);
_.k([_.A("metadata","learnMoreCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lb.prototype,"shouldRendereVerifiedPhoneStatus",null);_.k([_.A("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],lb.prototype,"learnMoreCommand",null);_.k([_.H(),_.W("design:type",String)],lb.prototype,"businessEmailDisplayState",void 0);_.k([_.H(),_.W("design:type",String)],lb.prototype,"businessEmail",void 0);
_.k([_.H(),_.W("design:type",String)],lb.prototype,"businessEmailErrorMessage",void 0);_.k([_.Tw("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lb.prototype,"businessEmailMetadataChanged",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],lb.prototype,"onYtServiceRequestCompleted",null);
lb=_.k([_.N({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],lb);
_.u(lb,"ytd-about-channel-renderer",function(){if(wOU!==void 0)return wOU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wOU=v},{mode:1});var lc1;var sK=function(){return _.g.apply(this,arguments)||this};
_.S(sK,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sK.prototype,"data",void 0);sK=_.k([_.N({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],sK);
_.u(sK,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(lc1!==void 0)return lc1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lc1=v},{mode:1});var sEU;var ry=function(){return _.g.apply(this,arguments)||this};
_.S(ry,_.g);ry.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ry.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],ry.prototype,"aligment",void 0);ry=_.k([_.N({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ry);
_.u(ry,"ytd-channel-list-sub-menu-renderer",function(){if(sEU!==void 0)return sEU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return sEU=
v},{mode:1});var r5X;var Pn=function(){return _.g.apply(this,arguments)||this};
_.S(Pn,_.g);Pn.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Pn.prototype,"data",void 0);Pn=_.k([_.N({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Pn);
_.u(Pn,"ytd-channel-sub-menu-renderer",function(){if(r5X!==void 0)return r5X;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return r5X=v},{mode:1});var Pmo;var acF;var ae=function(){var v=_.g.apply(this,arguments)||this;v.isCompact=!1;return v};
_.S(ae,_.g);_.hK.Object.defineProperties(ae.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var v,E;return((E=_.C((v=this.data)==null?void 0:v.endpoint,_.Us))==null?void 0:E.target)==="TARGET_NEW_WINDOW"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ae.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ae.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ae.prototype,"isCompact",void 0);_.k([_.A("isCompact"),_.W("design:type",Number),_.W("design:paramtypes",[])],ae.prototype,"thumbnailWidth",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ae.prototype,"openNewWindow",null);ae=_.k([_.N({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],ae);
_.u(ae,"ytd-media-lockup-renderer",function(){if(acF!==void 0)return acF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return acF=v},{mode:1});var Zv1;var Zw=function(){return _.g.apply(this,arguments)||this};
_.S(Zw,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Zw.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Zw.prototype,"data",void 0);Zw=_.k([_.N({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Zw);
_.u(Zw,"ytd-structured-description-channel-lockup-renderer",function(){if(Zv1!==void 0)return Zv1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Zv1=v},{mode:1});var Cmi;var Cj=function(){var v=_.g.apply(this,arguments)||this;v.isCompact=!1;v.collections=_.Z("web_modern_collections_v2");v.collectionsStackColor=_.Z("modernize_structured_description_playlist_lockups_v2");return v};
_.S(Cj,_.g);Cj.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:_.Z("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.hK.Object.defineProperties(Cj.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(v=this.data)==null?void 0:(E=v.thumbnail)==null?void 0:E.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(n=this.data)==null?void 0:(f=n.thumbnail)==null?void 0:f.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(y=x.thumbnail)==
null?void 0:y.vibrantColorPalette:void 0}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Cj.prototype,"componentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Cj.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Cj.prototype,"showSidePanelThumbnailOverlay",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cj.prototype,"isCompact",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Cj.prototype,"collections",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cj.prototype,"collectionsStackColor",void 0);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Cj.prototype,"twoLineTitle",null);
_.k([_.A("data","collections","collectionsStackColor"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cj.prototype,"collectionStack",null);Cj=_.k([_.N({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Cj);
_.u(Cj,"ytd-structured-description-playlist-lockup-renderer",function(){if(Cmi!==void 0)return Cmi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Cmi=v},{mode:1});var MZz;var MS=function(){return _.g.apply(this,arguments)||this};
_.S(MS,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],MS.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],MS.prototype,"data",void 0);MS=_.k([_.N({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],MS);
_.u(MS,"ytd-structured-description-video-lockup-renderer",function(){if(MZz!==void 0)return MZz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return MZz=v},{mode:2});var Sq=function(){return _.g.apply(this,arguments)||this};
_.S(Sq,_.g);
Sq.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sq.prototype,"data",void 0);Sq=_.k([_.N({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Sq);
_.u(Sq,"ytd-compact-infocard-renderer",function(){if(Pmo!==void 0)return Pmo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Pmo=v},{mode:1});var SW1;var UK=function(){var v=_.g.apply(this,arguments)||this;v.useModernCollectionsV2=_.Z("web_modern_collections_v2");return v};
_.S(UK,_.g);UK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hK.Object.defineProperties(UK.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],UK.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],UK.prototype,"ytdReduxBehavior",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],UK.prototype,"isGridViewEnabled",void 0);
_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],UK.prototype,"watchFeedBigThumbs",null);_.k([_.A("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.W("design:type",String),_.W("design:paramtypes",[])],UK.prototype,"thumbnailWidth",null);_.k([_.A("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.W("design:type",String),_.W("design:paramtypes",[])],UK.prototype,"customThumbnailSize",null);
_.k([_.H(),_.W("design:type",Object)],UK.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],UK.prototype,"useModernCollectionsV2",void 0);UK=_.k([_.N({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],UK);
_.u(UK,"ytd-compact-playlist-renderer",function(){if(SW1!==void 0)return SW1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SW1=v},{mode:1});var UyS;var qS=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.roundedContainer=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.S(qS,_.g);_.c=qS.prototype;_.c.attached=function(){this.requestElementsPerRow()};
_.c.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"}}}};
_.c.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.c.computeViewStyle=function(v){return v.style?v.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.c.onUpdateElementsPerRowAction=function(v){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&v===1};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
qS.prototype.dataChanged=qS.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],qS.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],qS.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],qS.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],qS.prototype,"hideThumbnail",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.W("design:type",String)],qS.prototype,"viewStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qS.prototype,"darkerDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qS.prototype,"roundedContainer",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qS.prototype,"dataChanged",null);qS=_.k([_.N({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],qS);
_.u(qS,"ytd-compact-promoted-item-renderer",function(){if(UyS!==void 0)return UyS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return UyS=v},{mode:1});var qWo;var Jl=function(){var v=_.g.apply(this,arguments)||this;v.collections=_.Z("web_modern_collections_v2");return v};
_.S(Jl,_.g);Jl.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Jl.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Jl.prototype.onYtNavigate=function(v,E){var n=this;if(E.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",E)){var f=this.get("watchEndpoint.videoId",E.endpoint),x=_.kZ(this.hostElement,"yt-get-current-video-id-action")[0];_.Z("kevlar_mix_handle_first_endpoint_different")&&f&&x&&f!==x||(v.stopPropagation(),_.V3().getPlayerPromise().then(function(y){if(y.getPlayerState()===0&&n.data.secondaryNavigationEndpoint)var Q=n.data.secondaryNavigationEndpoint;else{Q=
Object.assign({},E.endpoint);var e=_.C(Q.commandMetadata,_.Dl);e&&(y=Math.floor(y.getCurrentTime()),e.url=_.V1(e.url,{t:y}),!_.Z("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(e=_.C(Q,_.dM)))&&(e.startTimeSeconds=y)}_.jK(n.hostElement,"yt-navigate",{endpoint:Q})}))}};
_.hK.Object.defineProperties(Jl.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(E=v.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(n=this.data)==null?void 0:(f=n.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(y=x.thumbnail)==null?void 0:y.darkColorPalette,experimentEnabled:this.collections}}}});
Jl.prototype.onYtNavigate=Jl.prototype.onYtNavigate;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],Jl.prototype,"ytEndpointBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Jl.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.K4),_.W("design:type",Object)],Jl.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Jl.prototype,"ytdReduxBehavior",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],Jl.prototype,"isGridViewEnabled",void 0);_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Jl.prototype,"watchFeedBigThumbs",null);
_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],Jl.prototype,"thumbnailWidth",null);_.k([_.H(),_.W("design:type",Object)],Jl.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Jl.prototype,"collections",void 0);_.k([_.A("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],Jl.prototype,"collectionStack",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Jl.prototype,"onYtNavigate",null);Jl=_.k([_.N({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Jl);
_.u(Jl,"ytd-compact-radio-renderer",function(){if(qWo!==void 0)return qWo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return qWo=v},{mode:1});var J5S;var Kj=function(){return _.g.apply(this,arguments)||this};
_.S(Kj,_.g);Kj.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Kj.prototype.computeRendererStyle=function(v){return v.style?v.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.k([_.H(),_.W("design:type",Object)],Kj.prototype,"data",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Kj.prototype,"rendererBehavior",void 0);_.k([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],Kj.prototype,"rendererStyle",void 0);
Kj=_.k([_.N({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Kj);
_.u(Kj,"ytd-compact-text-promo-renderer",function(){if(J5S!==void 0)return J5S;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return J5S=v},{mode:1});var Kdw;var dy=function(){var v=_.g.apply(this,arguments)||this;v.isShortsStyle=!1;return v};
_.S(dy,_.g);_.c=dy.prototype;_.c.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"}}}};
_.c.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.jK(this.hostElement,"yt-disable-lockup-interaction"):_.jK(this.hostElement,"yt-enable-lockup-interaction"))};
_.c.isMetaBlockEmpty=function(v){return!v||!v.longBylineText&&!v.shortBylineText&&!v.shortViewCountText&&!v.viewCountText};
_.c.computeHasOneLineTitle=function(v){return this.forceOneLineTitle||!(v==null||!v.buttons)};
_.c.computeDisableInteraction=function(){var v;return!((v=this.data)==null?0:v.navigationEndpoint)};
_.c.hasSingularTopStandaloneBadge=function(){var v;return!((v=this.data)==null||!v.topStandaloneBadge)};
_.hK.Object.defineProperties(dy.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("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 v;return this.hasSingularTopStandaloneBadge()?[(v=this.data)==null?void 0:v.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var v;return this.shouldShowTopBadges?((v=this.data)==null?void 0:v.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
dy.prototype.disableInteractionChanged=dy.prototype.disableInteractionChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],dy.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],dy.prototype,"ytdLockupBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],dy.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.W("design:type",Boolean)],dy.prototype,"metaBlockEmpty",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],dy.prototype,"isGridViewEnabled",void 0);_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dy.prototype,"watchFeedBigThumbs",null);
_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],dy.prototype,"thumbnailWidth",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],dy.prototype,"isShortsStyle",void 0);_.k([_.H(),_.W("design:type",Object)],dy.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.W("design:type",Boolean)],dy.prototype,"hasOneLineTitle",void 0);
_.k([_.H(),_.W("design:type",Boolean)],dy.prototype,"hideThumbnail",void 0);_.k([_.H(),_.W("design:type",Boolean)],dy.prototype,"forceOneLineTitle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.W("design:type",Boolean)],dy.prototype,"disableInteraction",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],dy.prototype,"musicMetadataVideoLockup",void 0);
_.k([_.On("disableInteraction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dy.prototype,"disableInteractionChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dy.prototype,"shouldShowTopBadges",null);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],dy.prototype,"topBadges",null);
_.k([_.A("shouldShowTopBadges","data"),_.W("design:type",Array),_.W("design:paramtypes",[])],dy.prototype,"inlineMetadataBadges",null);_.k([_.A("shouldShowTopBadges"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dy.prototype,"shouldShowBadgesBelowMetadata",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dy.prototype,"compactTitleClass",null);dy=_.k([_.N({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],dy);
_.u(dy,"ytd-compact-video-renderer",function(){if(Kdw!==void 0)return Kdw;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Kdw=v},{mode:_.HE("kevlar_poly_si_batch_j067")?1:2});var dyi;_.ew("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Ie=function(){return _.g.apply(this,arguments)||this};
_.S(Ie,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ie.prototype,"data",void 0);Ie=_.k([_.N({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Ie);
_.u(Ie,"ytd-counterfactual-renderer",function(){if(dyi!==void 0)return dyi;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return dyi=v},{mode:1});var Ic6;var Yf=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;return v};
_.S(Yf,_.g);Yf.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.P().resolve(_.OO).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Yf.prototype.computeHidden=function(v){return!!v};
_.hK.Object.defineProperties(Yf.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}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Yf.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.W("design:type",Object)],Yf.prototype,"hidden",void 0);_.k([_.A("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],Yf.prototype,"label",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yf.prototype,"value",null);
Yf=_.k([_.N({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Yf);
_.u(Yf,"ytd-dropdown-item-renderer",function(){if(Ic6!==void 0)return Ic6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ic6=v},{mode:1});var YWF;var hFP;var hl=function(){return _.g.apply(this,arguments)||this};
_.S(hl,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hl.prototype,"data",void 0);_.k([_.H({computed:"getSimpleString(data.label)"}),_.W("design:type",String)],hl.prototype,"label",void 0);hl=_.k([_.N({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],hl);
_.u(hl,"ytd-navigation-dropdown-item-renderer",function(){if(hFP!==void 0)return hFP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return hFP=v},{mode:1});var Al=function(){var v=_.g.apply(this,arguments)||this;v.disabled=!1;v.value="";v.noLabelFloat=!1;v.noUnderline=!1;v.usePrimaryColor=!1;v.hasBackground=!1;v.verticalAlign="top";v.autosize=!1;v.minAutosizeWidth=100;v.autosizeFont="14px Roboto";return v};
_.S(Al,_.g);_.c=Al.prototype;_.c.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"}}}};
_.c.open=function(){this.inputEl.open()};
_.c.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.c.dataChanged=function(){this.reset()};
_.c.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("value-changed",this.value))};
_.c.stopPropagation=function(v){v.stopPropagation()};
_.c.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var v=this.canvas.getContext("2d");v&&(v.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(v.measureText(this.inputEl.value).width)+24)+"px")}};
_.c.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var v=0,E=this.data.entries.length;v<E;v++){var n=this.data.entries[v],f;for(f in n)if(n.hasOwnProperty(f)){var x=n[f];if("isSelected"in x&&x.isSelected)return"stringValue"in x?x.stringValue||"":"int32Value"in x?x.int32Value||0:0}}return null};
_.c.updateValueFromBinding=function(v){this.value=v.detail.value};
_.hK.Object.defineProperties(Al.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 v=0,E=this.data.entries.length;v<E;v++){var n=this.data.entries[v],f;for(f in n)if(n.hasOwnProperty(f)){var x=n[f];if("isSelected"in x&&x.isSelected&&"label"in x)return this.ytRendererBehavior.getSimpleString(x.label)}}return null}}});
Al.prototype.autoSizeLabel=Al.prototype.autoSizeLabel;Al.prototype.stopPropagation=Al.prototype.stopPropagation;Al.prototype.valueChangedForBinding=Al.prototype.valueChangedForBinding;Al.prototype.dataChanged=Al.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Al.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Al.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Al.prototype,"disabled",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"value",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"noLabelFloat",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Al.prototype,"noUnderline",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Al.prototype,"theme",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Al.prototype,"usePrimaryColor",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Al.prototype,"hasBackground",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"verticalAlign",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"autosize",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"minAutosizeWidth",void 0);_.k([_.H(),_.W("design:type",Object)],Al.prototype,"autosizeFont",void 0);
_.k([_.Wp("#entries"),_.W("design:type",Object)],Al.prototype,"entries",void 0);_.k([_.Wp("#input"),_.W("design:type",Object)],Al.prototype,"inputEl",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Al.prototype,"dataChanged",null);_.k([_.Tw("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Al.prototype,"valueChangedForBinding",null);
_.k([_.jk("iron-overlay-opened"),_.jk("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Al.prototype,"stopPropagation",null);_.k([_.jk("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Al.prototype,"autoSizeLabel",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Al.prototype,"label",null);
Al=_.k([_.N({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Al);
_.u(Al,"ytd-dropdown-renderer",function(){if(YWF!==void 0)return YWF;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YWF=v},{mode:1});var A5X;var VW=function(){var v=_.g.apply(this,arguments)||this;v.isConstrainedList=!1;return v};
_.S(VW,_.g);VW.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"}}}};
VW.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
VW.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
VW.prototype.computeViewAllHidden=function(v,E){return v||!E.viewAllEndpoint};
VW.prototype.fillRestIfNoShowMore=VW.prototype.fillRestIfNoShowMore;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],VW.prototype,"ytLazyListBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],VW.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"isConstrainedList",void 0);_.k([_.Tw("data","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VW.prototype,"fillRestIfNoShowMore",null);VW=_.k([_.N({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],VW);
_.u(VW,"ytd-expanded-shelf-contents-renderer",function(){if(A5X!==void 0)return A5X;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return A5X=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var VZ6;var Dw=function(){return _.g.apply(this,arguments)||this};
_.S(Dw,_.g);Dw.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dw.prototype,"data",void 0);Dw=_.k([_.N({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Dw);
_.u(Dw,"ytd-feed-channel-filter-header-renderer",function(){if(VZ6!==void 0)return VZ6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return VZ6=v},{mode:1});var Dy6;var Hvz;var gB1;var Hn=function(){return _.g.apply(this,arguments)||this};
_.S(Hn,_.g);_.c=Hn.prototype;_.c.onClick=function(v){var E,n=(E=this.data)==null?void 0:E.sectionEndpoint;!_.Kh(_.MQ(v),this.hostElement,["A".toString()])&&n&&_.jK(this.hostElement,"yt-navigate",{endpoint:n})};
_.c.computeHasSectionEndpoint=function(v){return(v==null?void 0:v.sectionEndpoint)!==void 0};
_.c.computeShowHeaderAsLink=function(v){return(v==null?void 0:v.header)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0};
_.c.computeShowSubheaderAsLink=function(v){return(v==null?void 0:v.subheader)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0&&(v==null?void 0:v.header)===void 0};
_.c.getHeaderAsLinkClass=function(v){var E=[],n;(v==null?0:(n=v.headerIcon)==null?0:n.iconType)&&E.push("header-link-active");return E.join(" ")};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Hn.prototype,"data",void 0);
_.k([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Hn.prototype,"hasSectionEndpoint",void 0);_.k([_.H({computed:"computeShowHeaderAsLink(data)"}),_.W("design:type",Boolean)],Hn.prototype,"showHeaderAsLink",void 0);_.k([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.W("design:type",Boolean)],Hn.prototype,"showSubheaderAsLink",void 0);Hn=_.k([_.N({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Hn);
_.u(Hn,"ytd-medical-panel-section-renderer",function(){if(gB1!==void 0)return gB1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return gB1=v},{mode:1});var gy=function(){var v=_.g.apply(this,arguments)||this;v.isExpanded=!1;v.roundedContainer=!0;v.skipRoundingTop=!1;v.toggleExpandableSection=function(){v.isExpanded=!v.isExpanded};
return v};
_.S(gy,_.g);
gy.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]]"}}}}}};
gy.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
gy.prototype.dataChanged=gy.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gy.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],gy.prototype,"isExpanded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],gy.prototype,"roundedContainer",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],gy.prototype,"skipRoundingTop",void 0);_.k([_.H(),_.W("design:type",Object)],gy.prototype,"toggleExpandableSection",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gy.prototype,"dataChanged",null);gy=_.k([_.N({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],gy);
_.u(gy,"ytd-medical-panel-content-renderer",function(){if(Hvz!==void 0)return Hvz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Hvz=v},{mode:1});_.ew("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var NS=function(){var v=_.g.apply(this,arguments)||this;v.roundedContainer=!0;v.amsterdamEnabled=_.Z("enable_desktop_amsterdam_info_panels");v.hasTitle=!1;v.linkIcon="OPEN_IN_NEW";v.isDismissed=!1;return v};
_.S(NS,_.g);
NS.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"}}}};
NS.prototype.computeHasTitle=function(v){return!(v==null||!v.title)};
NS.prototype.onClick=function(v){var E,n=(E=this.data)==null?void 0:E.headerEndpoint;!_.Kh(_.MQ(v),this.hostElement,["BUTTON".toString()])&&n&&this.ytComponentBehavior.resolveCommand(n)};
_.hK.Object.defineProperties(NS.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 v;return((v=this.data)==null?void 0:v.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.disableBottomDivider)||!((E=this.data)==null?0:E.title)}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],NS.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],NS.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NS.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],NS.prototype,"amsterdamEnabled",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Object)],NS.prototype,"hasTitle",void 0);
_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],NS.prototype,"background",null);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],NS.prototype,"titleStyle",null);
_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],NS.prototype,"showLinkIcon",null);_.k([_.H(),_.W("design:type",String)],NS.prototype,"linkIcon",void 0);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NS.prototype,"hideDivider",null);
_.k([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(v,E){v=_.LH(v.entities,"dismissState",E);return(v==null?void 0:v.isDismissed)||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.W("design:type",Object)],NS.prototype,"isDismissed",void 0);NS=_.k([_.N({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],NS);
_.u(NS,"ytd-info-panel-container-renderer",function(){if(Dy6!==void 0)return Dy6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Dy6=v},{mode:1});var NPw;_.ew("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ub=function(){var v=_.g.apply(this,arguments)||this;v.modernTypography=_.Z("web_modern_typography");return v};
_.S(ub,_.g);ub.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ub.prototype.computeStyle=function(v){return v?v:""};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ub.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.W("design:type",String)],ub.prototype,"titleStyle",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ub.prototype,"modernTypography",void 0);ub=_.k([_.N({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ub);
_.u(ub,"ytd-item-section-header-renderer",function(){if(NPw!==void 0)return NPw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return NPw=v},{mode:1});var uMU;var jEl,OvP=function(){return jEl!==void 0?jEl:jEl=document.createElement("template")};
document.head.appendChild(OvP().content);var kWz;_.jq=new _.$Y("VOTING_ANIMATION_CONTROLLER_TOKEN");var $yg=_.qu(function(v){var E=v.data;var n=_.Ig(),f=_.Ig();v=_.p(_.t7("VOTE_STATUS_NONE",void 0,"FVF7mc"));var x=v.next().value,y=v.next().value,Q=_.Bi(wrX,function(){var a;return(a=E())==null?void 0:a.entityKey}),e=_.Z("web_enable_voting_animation")||_.Z("enable_music_web_cairo_voting_animation");
_.l5(function(){var a;((a=E().initialState)==null?0:a.status)&&y(E().initialState.status)});
var F=function(){var a,M,U=(M=(a=E().initialState)==null?void 0:a.votes)!=null?M:0,d;a=(d=E().initialState)==null?void 0:d.status;return a==="VOTE_STATUS_UPVOTED"?U-1:a==="VOTE_STATUS_DOWNVOTED"?U+1:U},b=function(){return x()==="VOTE_STATUS_UPVOTED"?F()+1:x()==="VOTE_STATUS_DOWNVOTED"?F()-1:F()},l=function(a){var M=a?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
y(M);var U=b(),d=_.P().resolve(_.jp(_.jq)),Y=Q();Y&&(a&&(Y==null?0:Y.upvoteDefaultButtonOnTap)?_.lj(Y.upvoteDefaultButtonOnTap,{form:{element:n.value},disableClickTracking:!0}):(Y==null?0:Y.upvoteToggledButtonOnTap)&&_.lj(Y.upvoteToggledButtonOnTap,{form:{element:n.value},disableClickTracking:!0}));var V;a=(V=Y==null?void 0:Y.enableOptimisticReordering)!=null?V:E().enableOptimisticReordering;e&&d&&E().itemId&&a&&Wd6(d,E().itemId,U,M)},r=function(a){var M=a?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
y(M);var U=b(),d=_.P().resolve(_.jp(_.jq)),Y=Q();Y&&(a&&(Y==null?0:Y.downvoteDefaultButtonOnTap)?_.lj(Y.downvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(Y==null?0:Y.downvoteToggledButtonOnTap)&&_.lj(Y.downvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var V;a=(V=Y==null?void 0:Y.enableOptimisticReordering)!=null?V:E().enableOptimisticReordering;e&&d&&E().itemId&&a&&Wd6(d,E().itemId,U,M)};
v={};v=_.W8("ytVotingViewModelVoteCount",(v.ytVotingViewModelVoteCountDisabled=function(){return E().isDisabled},v));
return _.w("voting-view-model",{class:"ytVotingViewModelHost"},_.w("div",{el:n},_.w(_.mI,{data:function(){var a=_.C(E().upvoteButton,_.bS);return{toggleButtonViewModel:Object.assign({},a,{isToggled:x()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(a){return _.w(_.lS,{data:a.data,
onToggle:l})}})),_.w("div",{class:v},function(){var a,M,U;
return x()==="VOTE_STATUS_UPVOTED"?(a=E().initialState)==null?void 0:a.compactVotesUpvoted:x()==="VOTE_STATUS_DOWNVOTED"?(M=E().initialState)==null?void 0:M.compactVotesDownvoted:(U=E().initialState)==null?void 0:U.compactVotes}),_.w("div",{el:f},_.w(_.mI,{data:function(){var a=_.C(E().downvoteButton,_.bS);
return{toggleButtonViewModel:Object.assign({},a,{isToggled:x()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(a){return _.w(_.lS,{data:a.data,
onToggle:r})}})))},"Db");_.Yz(_.qu(function(v){var E=v.data;return _.w("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.w("div",{class:_.W8("ytEngagementBarViewModelEngagementBarWrapper",v.className)},_.w(_.mI,{data:function(){return E().actions}},{votingViewModel:$yg})))},"Eb"),"engagement-bar-view-model",{props:{data:_.Kt,
className:_.Kt}});var OK=function(){var v=_.g.apply(this,arguments)||this;v.amsterdamPostMvp=_.Z("web_amsterdam_post_mvp_playlists");v.cairoCollabPlaylistPostMvp=_.Z("web_collab_playlist_thumbnail_size");v.playlistVotingAnimationEnabled=_.Z("web_enable_voting_animation");v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;return v};
_.S(OK,_.g);_.c=OK.prototype;_.c.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"}}}};
_.c.canReorderChanged=function(){this.persistentDragHandle=_.Z("kevlar_playlist_drag_handles")&&this.canReorder};
_.c.onDrag=function(){if(this.thumbnail){var v=_.K(this.thumbnail).querySelector("yt-image");v&&(v.shouldRenderLazy=!1)}};
_.c.onMenuOverlayChanged=function(v,E){this.menuOpened=E};
_.c.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.c.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.c.onContentsTap=function(v){var E,n=(E=this.data)==null?void 0:E.serviceEndpoints;if(n&&n.length===1&&_.C(n[0],Mm$)&&!_.Kh(_.MQ(v),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(n[0]);else{var f;(E=(f=this.data)==null?void 0:f.navigationEndpoint)&&_.Z("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?LdX(_.P().resolve(_.hf),E):(_.xo().playlistSuggestionsShelfActivation=
!0,_.GWS(_.P().resolve(_.hf),E)):E&&!_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Z("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.jK(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))}};
_.c.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeThumbnailWidth=function(v){return v==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.c.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=dsE(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))}};
_.c.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.c.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.c.dataChanged=function(){if(this.data){var v,E,n,f=((v=this.downloadRenderData)==null?void 0:v.badges)&&((E=this.downloadRenderData)==null?void 0:E.badges)!==((n=this.data)==null?void 0:n.badges),x,y,Q;v=((x=this.downloadRenderData)==null?void 0:x.thumbnailOverlays)&&((y=this.downloadRenderData)==null?void 0:y.thumbnailOverlays)!==((Q=this.data)==null?void 0:Q.thumbnailOverlays);(!this.downloadRenderData||f||v)&&this.downloadStateChanged()}};
_.c.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var v,E,n=(v=this.data.menu)==null?void 0:(E=v.menuRenderer)==null?void 0:E.items;if(n)for(v=_.p(n),E=v.next();!E.done;E=v.next())if(E=E.value,n=void 0,_.C((n=E.menuServiceItemRenderer)==null?void 0:n.serviceEndpoint,_.Mb)){var f=n=void 0,x=void 0;E=(n=E)==null?void 0:(f=n.menuServiceItemRenderer)==null?void 0:(x=f.serviceEndpoint)==null?void 0:x.playlistEditEndpoint;x=f=void 0;if(n=(f=E)==null?void 0:(x=f.actions)==null?void 0:
x[0])f=void 0,n.setVideoId=(f=this.data)==null?void 0:f.setVideoId;x=f=n=void 0;if(E=(n=E)==null?void 0:(f=n.clientActions)==null?void 0:(x=f[0])==null?void 0:x.playlistRemoveVideosAction)n=void 0,E.setVideoIds=[(n=this.data)==null?void 0:n.setVideoId]}}};
_.hK.Object.defineProperties(OK.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
OK.prototype.setVideoIdChanged=OK.prototype.setVideoIdChanged;OK.prototype.dataChanged=OK.prototype.dataChanged;OK.prototype.downloadStateChanged=OK.prototype.downloadStateChanged;OK.prototype.onMenuOverlayChanged=OK.prototype.onMenuOverlayChanged;OK.prototype.canReorderChanged=OK.prototype.canReorderChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],OK.prototype,"ytdReduxBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],OK.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],OK.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],OK.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],OK.prototype,"amsterdamPostMvp",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"canReorder",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"menuOpened",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"handleIsHovered",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"persistentDragHandle",void 0);
_.k([_.H(),_.W("design:type",Object)],OK.prototype,"downloadRenderData",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],OK.prototype,"styleType",void 0);_.k([_.H({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],OK.prototype,"thumbnailWidth",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"isDownloads",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],OK.prototype,"cairoCollabPlaylistPostMvp",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],OK.prototype,"playlistVotingAnimationEnabled",void 0);_.k([_.H({selector:sb,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"downloadProgress",void 0);_.k([_.H(),_.W("design:type",Number)],OK.prototype,"relativeDateReference",void 0);
_.k([_.H({selector:_.bx,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"transferState",void 0);_.k([_.H({selector:BRF,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"downloadState",void 0);_.k([_.H({selector:NRA,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"offlinePolicyAction",void 0);_.k([_.H({selector:u01,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.k([_.H({selector:OgX,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],OK.prototype,"entityInfo",void 0);_.k([_.H({selector:_.mW}),_.W("design:type",Boolean)],OK.prototype,"miniplayerIsActive",void 0);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],OK.prototype,"playlistVideoId",null);_.k([_.Wp("#thumbnail"),_.W("design:type",Object)],OK.prototype,"thumbnail",void 0);
_.k([_.Tw("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OK.prototype,"canReorderChanged",null);_.k([_.jk("yt-menu-overlay-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Boolean]),_.W("design:returntype")],OK.prototype,"onMenuOverlayChanged",null);
_.k([_.Tw("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OK.prototype,"downloadStateChanged",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OK.prototype,"dataChanged",null);
_.k([_.Tw("data.setVideoId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OK.prototype,"setVideoIdChanged",null);OK=_.k([_.N({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],OK);
_.u(OK,"ytd-playlist-video-renderer",function(){if(kWz!==void 0)return kWz;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);v.content.insertBefore(OvP().content.cloneNode(!0),v.content.firstChild);return kWz=v},{mode:1});var TPo;var kf=function(){return _.g.apply(this,arguments)||this};
_.S(kf,_.g);_.k([_.H(),_.W("design:type",Object)],kf.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],kf.prototype,"rendererBehavior",void 0);kf=_.k([_.N({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],kf);
_.u(kf,"ytd-premium-browse-footer-renderer",function(){if(TPo!==void 0)return TPo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return TPo=v},{mode:1});var ivz;var Wn=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.S(Wn,_.g);_.c=Wn.prototype;_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.c.handleDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.computeHeaderLogoThumbnail=function(v,E){if(v)return E?v.darkLogo:v.lightLogo};
_.c.computeHeaderLogoHeight=function(v,E){var n,f,x;return(v=(n=this.computeHeaderLogoThumbnail(v,E))==null?void 0:(f=n.thumbnails)==null?void 0:(x=f[0])==null?void 0:x.height)&&v%31===0?"31":"24"};
_.c.computeHeaderLogoMarginBottom=function(v,E){return this.computeHeaderLogoHeight(v,E)==="24"?"0":"-7"};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Wn.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Wn.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Wn.prototype,"isDarkTheme",void 0);_.k([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.W("design:type",Object)],Wn.prototype,"themeLogo",void 0);
_.k([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.W("design:type",String)],Wn.prototype,"logoHeight",void 0);_.k([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.W("design:type",String)],Wn.prototype,"logoMarginBottom",void 0);Wn=_.k([_.N({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Wn);
_.u(Wn,"ytd-primetime-promo-header-renderer",function(){if(ivz!==void 0)return ivz;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ivz=v},{mode:1});var zF6;_.Nw(sn$);var MdE;MdE=_.p7({flexibleActionsViewModel:PPz});_.$f=_.GG(SFA);_.Nw(SFA);_.Yz(_.$f,"yt-section-header-view-model",{props:{data:_.Kt,className:_.Kt,disableHorizontalPadding:_.Kt,disableVerticalPadding:_.Kt,forceSmallLayout:_.Kt,useResponsiveLayout:_.Kt,isOverlay:_.Kt}});_.ew("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Lj=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.S(Lj,_.g);_.c=Lj.prototype;_.c.attached=function(){this.requestElementsPerRow()};
_.c.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"}}}};
_.c.onDataChange=function(){var v=this;_.IS(this,function(){v.updateItemVisibility()})};
_.c.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v,this.updateItemVisibility())};
_.c.updateItemVisibility=function(){var v=this;this.data&&this.data.panels&&_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(E,n){E.hidden=n>v.elementsPerRow-1})};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
Lj.prototype.onDataChange=Lj.prototype.onDataChange;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Lj.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Lj.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Lj.prototype,"data",void 0);_.k([_.H({value:3}),_.W("design:type",Number)],Lj.prototype,"elementsPerRow",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Lj.prototype,"onDataChange",null);Lj=_.k([_.N({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Lj);
_.u(Lj,"ytd-primetime-promo-renderer",function(){if(zF6!==void 0)return zF6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return zF6=v},{mode:1});var RF4;var GX=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return v};
_.S(GX,_.g);GX.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
GX.prototype.handleButtonRefreshAction=function(v){if(v=_.C(v,_.TO1))this.set("data.button",v.membershipButton),this.notifyPath("data.button")};
_.hK.Object.defineProperties(GX.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.avatars)==null?void 0:E.slice(0,8))||[]}}});
_.k([_.H(),_.W("design:type",Object)],GX.prototype,"data",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],GX.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GX.prototype,"rendererBehavior",void 0);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],GX.prototype,"avatars",null);
GX=_.k([_.N({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],GX);
_.u(GX,"ytd-recognition-shelf-renderer",function(){if(RF4!==void 0)return RF4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RF4=v},{mode:1});var tZ4;var BPg;var TX=function(){var v=_.g.apply(this,arguments)||this;v.modernButtons=_.Z("web_modern_buttons");return v};
_.S(TX,_.g);_.c=TX.prototype;
_.c.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.c.dataChanged=function(){this.collapsed=!0};
_.c.computeVisibleItems=function(v,E){return v!==void 0&&v.items?E?v.items.slice(0,this.data.collapsedItemCount):v.items:[]};
_.c.computeHideShowMore=function(v,E,n){return v>=E||!n};
_.c.computeHideShowAll=function(v,E,n){return!(v&&E)||n};
_.c.onMoreClick=function(){this.collapsed=!1};
_.hK.Object.defineProperties(TX.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Z("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
TX.prototype.dataChanged=TX.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TX.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],TX.prototype,"isSearch",void 0);
_.k([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.W("design:type",Array)],TX.prototype,"visibleItems",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],TX.prototype,"collapsed",void 0);_.k([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.W("design:type",Boolean)],TX.prototype,"hideShowMore",void 0);
_.k([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.W("design:type",Boolean)],TX.prototype,"hideShowAll",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],TX.prototype,"modernButtons",void 0);_.k([_.A("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],TX.prototype,"typographyBump",null);
_.k([_.A("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],TX.prototype,"thumbnailWidth",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TX.prototype,"dataChanged",null);TX=_.k([_.N({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],TX);
_.u(TX,"ytd-vertical-list-renderer",function(){if(BPg!==void 0)return BPg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return BPg=v},{mode:1});var vcg=_.jU(["#"]);_.ew("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var ib=function(){var v=_.g.apply(this,arguments)||this;v.isConstrainedList=!1;v.modernTypography=_.Z("web_modern_typography");return v};
_.S(ib,_.g);_.c=ib.prototype;
_.c.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"}}}};
_.c.computeThumbnailStyle=function(v){return v||""};
_.c.computePlaceAnnotationUnderTitle=function(){var v;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((v=this.data)==null?void 0:v.thumbnailStyle)||"")};
_.c.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.aC(vcg)};
_.c.computeIsPromoShelf=function(v){var E;return(v=v==null?void 0:(E=v[0])==null?void 0:E.metadataBadgeRenderer)?v.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.c.computePlaceBadgeBesideTitle=function(v){var E;return(v==null?0:(E=v[0])==null?0:E.metadataBadgeRenderer)?!this.computeIsPromoShelf(v):!1};
_.c.computeMenuIcon=function(v){return this.computeIsPromoShelf(v)?"yt-icons:more_vert":"yt-icons:more"};
_.c.onDataChange=function(){var v,E;((v=this.data)==null?0:(E=v.content)==null?0:E.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.c.onLockupRequested=function(v){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&v.detail&&v.detail.videoIds){for(var E=this.data.content.gridRenderer.items,n=new Set,f=_.p(v.detail.videoIds),x=f.next();!x.done;x=f.next())n.add(x.value);v.detail.returnValue=E.filter(function(y){return y.gridVideoRenderer&&y.gridVideoRenderer.videoId&&n.has(y.gridVideoRenderer.videoId)}).map(function(y){return y.gridVideoRenderer})}};
_.c.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
ib.prototype.onLockupRequested=ib.prototype.onLockupRequested;ib.prototype.onDataChange=ib.prototype.onDataChange;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],ib.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],ib.prototype,"ironResizableBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ib.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ib.prototype,"isSearch",void 0);_.k([_.H(),_.W("design:type",Object)],ib.prototype,"isConstrainedList",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("kevlar_fluid_dismiss")}}),
_.W("design:type",Boolean)],ib.prototype,"enableFluidDismiss",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.W("design:type",String)],ib.prototype,"thumbnailStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ib.prototype,"modernTypography",void 0);_.k([_.H({computed:"computeMenuIcon(data.badges)"}),_.W("design:type",String)],ib.prototype,"menuIcon",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ib.prototype,"onDataChange",null);_.k([_.jk("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ib.prototype,"onLockupRequested",null);ib=_.k([_.N({is:"ytd-shelf-renderer",disableElementRegistration:!0})],ib);
_.u(ib,"ytd-shelf-renderer",function(){if(tZ4!==void 0)return tZ4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return tZ4=v},{mode:1});var Ec4;var zX=function(){return _.g.apply(this,arguments)||this};
_.S(zX,_.g);zX.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.hK.Object.defineProperties(zX.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zX.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],zX.prototype,"isPlaylist",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],zX.prototype,"isClipList",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],zX.prototype,"isPlaylistPageWithFilters",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zX.prototype,"hasTitle",null);_.k([_.H(),_.A("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.W("design:type",Object),_.W("design:paramtypes",[])],zX.prototype,"isRightAligned",null);
zX=_.k([_.N({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],zX);
_.u(zX,"ytd-sort-filter-header-renderer",function(){if(Ec4!==void 0)return Ec4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ec4=v},{mode:1});var ncP;var Re=function(){return _.g.apply(this,arguments)||this};
_.S(Re,_.g);
Re.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]]"}}}}}};
Re.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.hK.Object.defineProperties(Re.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Z("enable_creator_details_shelf_m2")){var v=[],E;((E=this.data)==null?0:E.creatorVideosButton)&&v.push(this.data.creatorVideosButton);var n;((n=this.data)==null?0:n.creatorAboutButton)&&v.push(this.data.creatorAboutButton);E=_.p(this.data.creatorCustomUrlButtons||[]);for(n=E.next();!n.done;n=E.next())v.push(n.value);return v}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Z("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],Re.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Re.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Re.prototype,"engagementPanel",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Re.prototype,"creatorCustomUrlButtons",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","creatorCustomUrlButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Re.prototype,"showCreatorCustomUrlButtons",null);_.k([_.A("showCreatorCustomUrlButtons"),_.W("design:type",Number),_.W("design:paramtypes",[])],Re.prototype,"channelAvatarSize",null);
Re=_.k([_.N({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Re);
_.u(Re,"ytd-video-description-infocards-section-renderer",function(){if(ncP!==void 0)return ncP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ncP=v},{mode:_.HE("kevlar_poly_si_batch_j067")?1:2});var oco;var tl=function(){return _.g.apply(this,arguments)||this};
_.S(tl,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tl.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],tl.prototype,"infoIcon",void 0);tl=_.k([_.N({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],tl);
_.u(tl,"ytd-eom-settings-disclaimer-renderer",function(){if(oco!==void 0)return oco;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return oco=v},{mode:1});var ffo;var Bn=function(){return _.g.apply(this,arguments)||this};
_.S(Bn,_.g);_.hK.Object.defineProperties(Bn.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.suppressPaddingDisclaimer)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Bn.prototype,"componentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Bn.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Bn.prototype,"suppressPaddingDisclaimer",null);Bn=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Bn);
_.u(Bn,"ytd-product-list-header-renderer",function(){if(ffo!==void 0)return ffo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ffo=v},{mode:1});var xNl;var vo=function(){return _.g.apply(this,arguments)||this};
_.S(vo,_.g);vo.prototype.computeThumbnailStyle=function(v){if(v&&(v=_.p2(v)))return"background-color:"+v+";"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vo.prototype,"rendererBehaviors",void 0);_.k([_.H(),_.W("design:type",Object)],vo.prototype,"data",void 0);vo=_.k([_.N({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],vo);
_.u(vo,"ytd-hashtag-tile-renderer",function(){if(xNl!==void 0)return xNl;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xNl=v},{mode:1});var cUS;var ED=function(){return _.g.apply(this,arguments)||this};
_.S(ED,_.g);ED.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ED.prototype,"data",void 0);ED=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ED);
_.u(ED,"ytd-sponsorships-alert-renderer",function(){if(cUS!==void 0)return cUS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cUS=v},{mode:1});var yUS;var nY=function(){return _.g.apply(this,arguments)||this};
_.S(nY,_.g);nY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.hK.Object.defineProperties(nY.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.k([_.h(_.Z7),_.W("design:type",Object)],nY.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],nY.prototype,"ytdLockupBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],nY.prototype,"isGridViewEnabled",void 0);
_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nY.prototype,"watchFeedBigThumbs",null);_.k([_.A("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],nY.prototype,"thumbnailWidth",null);_.k([_.H(),_.W("design:type",Object)],nY.prototype,"data",void 0);nY=_.k([_.N({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],nY);
_.u(nY,"ytd-compact-movie-renderer",function(){if(yUS!==void 0)return yUS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return yUS=v},{mode:1});var p9X;var Qv6;var X9o=_.MX("HTML_DIR")==="rtl",oZ=function(){var v=_.g.apply(this,arguments)||this;v.engagementPanel=!1;v.maxLines=2;v.expandButtonOffset=0;v.showExpandButton=!1;v.isTruncated=!1;v.isExpanded=!1;v.currentSnippetType=2;v.alwaysShowExpandButton=!1;v.JSC$14148_lastWidth=NaN;v.observer=null;v.left=0;v.right=0;v.mid=0;v.longestSnippetLength=0;v.isFinalSnippet=!1;v.isFirstMutation=!1;v.isResetMutation=!1;v.OVERFLOW_THRESHOLD=5;return v};
_.S(oZ,_.g);_.c=oZ.prototype;_.c.onClick=function(v){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;if((E=window.getSelection())==null||!E.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.c.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.c.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.c.updateTextOnSnippetTypeChange=function(){_.Z("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.c.setUpBinarySearch=function(v){v=v*this.maxLines/8;this.left=0;var E,n;this.right=Math.min(v*2,(n=(E=this.simpleText)==null?void 0:E.length)!=null?n:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.c.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.c.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.li(new _.yc("AttributedSnippet is empty when the description is not empty",this.text))};
_.c.mutationCallback=function(){if(this.observer!=null){var v=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var E=Math.floor(v*this.maxLines/8);this.setSnippetText(this.text,E);E!==0||this.attributedTextIsEmpty()||_.li(new _.yc("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;v=v*this.maxLines/8;this.left=0;var n;this.right=Math.min(v*2,(n=(E=this.simpleText)==null?void 0:E.length)!=null?n: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)}}};
_.c.mutationObserve=function(v){var E=this;this.observer||(this.observer=new MutationObserver(function(){E.mutationCallback()}));
this.observer.observe(v,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.c.attached=function(){var v=this;_.IS(this,function(){v.resize()})};
_.c.isExpandedChanged=function(){_.jK(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.c.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)};
_.c.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var v="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((X9o?"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",v);this.snippetContainer.style.setProperty("mask-image",
v)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(X9o?"right":"left",this.expandButtonOffset+"px")};
_.c.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.c.setSnippetText=function(v,E){v||(v={});if(_.Za(v)){var n=eTN(v,E);n.attachmentRuns||n.commandRuns||n.decorationRuns||n.styleRuns||n.alignment||n.lineBreakMode?this.attributedSnippetTextEl?(_.Z("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=eTN(v,E),this.attributedSnippetTextEl.headerRuns=Xos(E,this.headerRuns)):this.attributedSnippetText={data:eTN(v,E),headerRuns:Xos(E,this.headerRuns)},this.currentSnippetType=0):_.li(new _.yc("Tried to set snippet text when HTML element was null",
v)):(this.plainSnippetText.textContent=rJ(v.content||"",E),this.currentSnippetType=2)}else{a:{n=UkL(v,E);if(n.runs){n=_.p(n.runs);for(var f=n.next();!f.done;f=n.next())if(f=f.value,f.bold||f.deemphasize||f.italics||f.strikethrough||f.textColor||f.navigationEndpoint||_.C(f,QI)){n=!0;break a}}n=!1}n?this.formattedSnippetText?(this.formattedSnippetText.text=UkL(v,E),this.currentSnippetType=1):_.li(new _.yc("Tried to set snippet text when HTML element was null",v)):(this.plainSnippetText.textContent=
rJ(_.JC(v),E),this.currentSnippetType=2)}};
_.c.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.c.attributedTextIsEmpty=function(){var v=this.text;if(!_.Za(v))return!0;var E;return((E=v.content)==null?void 0:E.length)===0?!0:!1};
_.c.resize=function(v){if(this.snippetText){if(v===void 0?0:v)this.JSC$14148_lastWidth=NaN;var E=this.hostElement.offsetWidth;if(E!==this.JSC$14148_lastWidth&&!this.isExpanded)if(this.JSC$14148_lastWidth=E,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;v=0;var n,f;E=Math.min(E*this.maxLines/8*2,(f=(n=this.simpleText)==null?void 0:n.length)!=null?f:0)-1;for(n=0;v<=E;)f=Math.floor(v+(E-v)/2),this.setSnippetText(this.text,f),this.isOverflowing()?E=f-1:(v=f+1,n=f);this.setSnippetText(this.text,n);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.c.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.c.onExpandClick=function(){var v=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Z("inline_expander_reset_focus_killswitch")||_.IS(this,function(){var E;((E=_.P().resolve(_.jp(_.cT)))==null?0:E.isKeyBoardInUse())&&_.dh(v.hostElement)});
_.jK(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.c.onCollapseClick=function(){this.collapse();_.jK(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.c.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.c.computeExpandButtonOffset=function(){var v=this.expandSizer;return v?X9o?v.offsetParent?v.offsetParent.offsetWidth-v.offsetWidth-v.offsetLeft:0:v.offsetLeft:0};
_.hK.Object.defineProperties(oZ.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Za(this.text)?this.text.content||"":_.JC(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 _.Za(this.text)?!0:this.text&&_.Z("web_replace_formatted_with_attributed_string")&&hwQ(this.text)?(this.text=_.yI(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}}});
oZ.prototype.onTextChanged=oZ.prototype.onTextChanged;oZ.prototype.updateMaskAndExpandButtonOffset=oZ.prototype.updateMaskAndExpandButtonOffset;oZ.prototype.updateSnippetContainerMaxHeight=oZ.prototype.updateSnippetContainerMaxHeight;oZ.prototype.isExpandedChanged=oZ.prototype.isExpandedChanged;oZ.prototype.updateTextOnSnippetTypeChange=oZ.prototype.updateTextOnSnippetTypeChange;oZ.prototype.updateIsFormattedExpanded=oZ.prototype.updateIsFormattedExpanded;oZ.prototype.updateIsAttributedExpanded=oZ.prototype.updateIsAttributedExpanded;
oZ.prototype.onClick=oZ.prototype.onClick;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],oZ.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"text",void 0);_.k([_.H(),_.W("design:type",Array)],oZ.prototype,"headerRuns",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],oZ.prototype,"engagementPanel",void 0);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"maxLines",void 0);
_.k([_.H(),_.W("design:type",String)],oZ.prototype,"expandLabel",void 0);_.k([_.H(),_.W("design:type",String)],oZ.prototype,"collapseLabel",void 0);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"expandCommand",void 0);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"expandButtonOffset",void 0);_.k([_.A("text"),_.W("design:type",String),_.W("design:paramtypes",[])],oZ.prototype,"simpleText",null);
_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oZ.prototype,"onClick",null);_.k([_.A("text","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"expandedText",null);_.k([_.A("headerRuns","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"expandedHeaderRuns",null);
_.k([_.A("text"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oZ.prototype,"hasAttributedStringText",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],oZ.prototype,"showExpandButton",void 0);_.k([_.A("collapseLabel","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"showCollapseButton",null);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"isTruncated",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],oZ.prototype,"isExpanded",void 0);_.k([_.H(),_.W("design:type",Boolean)],oZ.prototype,"isAttributedExpanded",void 0);_.k([_.On("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"updateIsAttributedExpanded",null);_.k([_.H(),_.W("design:type",Boolean)],oZ.prototype,"isFormattedExpanded",void 0);
_.k([_.On("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"updateIsFormattedExpanded",null);_.k([_.H(),_.W("design:type",Number)],oZ.prototype,"currentSnippetType",void 0);_.k([_.A("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"useAttributedSnippet",null);
_.k([_.A("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"useFormattedSnippet",null);_.k([_.A("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oZ.prototype,"usePlainSnippet",null);_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"alwaysShowExpandButton",void 0);_.k([_.On("currentSnippetType"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"updateTextOnSnippetTypeChange",null);
_.k([_.H(),_.W("design:type",Object)],oZ.prototype,"attributedSnippetText",void 0);_.k([_.Wp("#snippet"),_.W("design:type",HTMLElement)],oZ.prototype,"snippetContainer",void 0);_.k([_.Wp("#snippet-text"),_.W("design:type",HTMLElement)],oZ.prototype,"snippetText",void 0);_.k([_.Wp("#plain-snippet-text"),_.W("design:type",HTMLElement)],oZ.prototype,"plainSnippetText",void 0);_.k([_.Wp("#formatted-snippet-text"),_.W("design:type",Object)],oZ.prototype,"formattedSnippetText",void 0);
_.k([_.Wp("#attributed-snippet-text"),_.W("design:type",Object)],oZ.prototype,"attributedSnippetTextEl",void 0);_.k([_.Wp("#expand"),_.W("design:type",HTMLElement)],oZ.prototype,"expandButton",void 0);_.k([_.Wp("#expand-sizer"),_.W("design:type",HTMLElement)],oZ.prototype,"expandSizer",void 0);_.k([_.Tw("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"isExpandedChanged",null);
_.k([_.On("isExpanded","maxLines"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"updateSnippetContainerMaxHeight",null);_.k([_.On("isTruncated","showExpandButton","expandButtonOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"updateMaskAndExpandButtonOffset",null);
_.k([_.Tw("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oZ.prototype,"onTextChanged",null);oZ=_.k([_.N({is:"ytd-text-inline-expander",disableElementRegistration:!0})],oZ);
_.u(oZ,"ytd-text-inline-expander",function(){if(Qv6===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);Qv6=v}v=Qv6;return v},{mode:2});var fY=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return v};
_.S(fY,_.g);fY.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
fY.prototype.handleUpdateDescriptionAction=function(v){if(v=_.C(v,_.LpP))if(v.attributedDescription)this.set("data.attributedDescriptionBodyText",v.attributedDescription);else if(v.description){var E;((E=this.data)==null?0:E.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.yI(v.description)):this.set("data.descriptionBodyText",v.description)}};
_.hK.Object.defineProperties(fY.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.attributedDescriptionBodyText)||!((E=this.data)==null||!E.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.collapsedLineCount){var E;return(E=this.data)==null?void 0:E.collapsedLineCount}v=_.WG("web_watch_description_collapsed_default_lines",12);if(_.Z("ww_desc_line_page_size_ks"))return v;E=Math.round(_.tC().height*_.WG("web_watch_description_screen_height_percentage",.5)/20);return Math.max(E,v)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return(n=(v=this.data)==null?void 0:v.descriptionBodyText)!=null?n:(E=this.data)==null?void 0:E.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.sourceAttributions}}});
fY.prototype.panelContentVisibleChanged=fY.prototype.panelContentVisibleChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],fY.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],fY.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fY.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Boolean)],fY.prototype,"panelContentVisible",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fY.prototype,"engagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fY.prototype,"shortsPanel",void 0);_.k([_.Wp("#inline-expander"),_.W("design:type",Object)],fY.prototype,"inlineExpander",void 0);
_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fY.prototype,"panelContentVisibleChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"hasDescriptionText",null);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],fY.prototype,"collapsedLines",null);
_.k([_.A("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.W("design:type",Object),_.W("design:paramtypes",[])],fY.prototype,"descriptionText",null);_.k([_.A("data","data.headerRuns"),_.W("design:type",Object),_.W("design:paramtypes",[])],fY.prototype,"headerRuns",null);_.k([_.A("data","data.sourceAttributions"),_.W("design:type",Object),_.W("design:paramtypes",[])],fY.prototype,"sourceAttributions",null);
fY=_.k([_.N({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],fY);
_.u(fY,"ytd-expandable-video-description-body-renderer",function(){if(p9X!==void 0)return p9X;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return p9X=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var e9l;var FQS=_.qu(function(v){var E=v.data;return _.w("factoid-renderer",{class:"ytwFactoidRendererHost"},_.w("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return E().accessibilityText}},_.w("span",{class:"ytwFactoidRendererValue"},_.w(_.nh,{text:function(){return E().value}})),_.w("span",{class:"ytwFactoidRendererLabel"},_.w(_.nh,{text:function(){return E().label}}))))},"Fb");_.Yz(FQS,"factoid-renderer",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;return _.w("upload-time-factoid-renderer",null,_.w(_.mI,{data:function(){return E().factoid}},{factoidRenderer:FQS}))},"Gb"),"upload-time-factoid-renderer",{props:{data:_.Ij}});_.Yz(_.qu(function(v){var E=v.data;return _.w("view-count-factoid-renderer",null,_.w(_.mI,{data:function(){return E().factoid}},{factoidRenderer:FQS}))},"Hb"),"view-count-factoid-renderer",{props:{data:_.Ij}});var xl=function(){var v=_.g.apply(this,arguments)||this;v.shortsPanel=!1;v.engagementPanel=!1;v.watchWhileSdp=_.Z("shorts_desktop_watch_while_sdp");return v};
_.S(xl,_.g);xl.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"}}}}};
_.hK.Object.defineProperties(xl.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var v;return(v=this.data)==null?void 0:v.channel}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],xl.prototype,"componentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xl.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],xl.prototype,"shortsPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],xl.prototype,"engagementPanel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],xl.prototype,"watchWhileSdp",void 0);_.k([_.A("shortsPanel","engagementPanel","data.channel"),_.W("design:type",Object),_.W("design:paramtypes",[])],xl.prototype,"showChannelInfo",null);xl=_.k([_.N({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],xl);
_.u(xl,"ytd-video-description-header-renderer",function(){if(e9l!==void 0)return e9l;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return e9l=v},{mode:1});var mN1;var co=function(){return _.g.apply(this,arguments)||this};
_.S(co,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],co.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],co.prototype,"noPadding",void 0);_.k([_.H(),_.W("design:type",Object)],co.prototype,"data",void 0);co=_.k([_.N({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],co);
_.u(co,"ytd-list-item-view-model",function(){if(mN1!==void 0)return mN1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return mN1=v},{mode:1});var w9P;var bm1;var lfw;var svw;var ym=function(){var v=_.g.apply(this,arguments)||this;v.adaptiveFullWidth=!1;v.modernButtons=_.Z("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return v};
_.S(ym,_.g);ym.prototype.handleSetTimestamp_=function(v){this.data&&this.data.shortUrl&&(_.K(this.hostElement).querySelector("#share-url").value=v.isSet?_.VS(this.data.shortUrl,"t",v.timestamp):this.data.shortUrl)};
ym.prototype.handleSignalActionCopyShareUrl_=function(v,E){(_.Z("killswitch_copy_link_target_check")||_.K(this.hostElement).querySelector("#copy-button")===E)&&this.copyUrlToClipboard()};
ym.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.K(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
ym.prototype.computeStyle_=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],ym.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ym.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.W("design:type",String)],ym.prototype,"rendererStyle",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ym.prototype,"adaptiveFullWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ym.prototype,"modernButtons",void 0);_.k([_.H(),_.W("design:type",Object)],ym.prototype,"buttonOverrides",void 0);ym=_.k([_.p5({is:"yt-copy-link-renderer",disableElementRegistration:!0})],ym);
_.u(ym,"yt-copy-link-renderer",function(){if(svw===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;lfw===void 0&&(lfw=document.createElement("template"));var f=lfw;n.call(E,f.content.cloneNode(!0),v.content.firstChild);svw=v}v=svw;return v},{mode:2});_.ew("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var pY=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return v};
_.S(pY,_.g);_.c=pY.prototype;_.c.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.c.attached=function(){this.keyboardFocused=!1};
_.c.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var v=_.P().resolve(_.jp(_.cT));v&&(this.keyboardFocused=v.isKeyBoardInUse())}};
_.c.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.c.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}};
_.c.onChange_=function(){if(this.data){var v=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;v&&this.ytComponentBehavior.resolveCommand(v);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.c.handleUpdateToggleAction_=function(v){(v=_.C(v,y_1))&&this.data&&v.targetId==this.data.targetId&&this.set("data.toggled",v.toggled)};
_.c.toBoolean_=function(v){return!!v};
_.c.reset=function(){};
_.c.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("data-changed",this.data))};
_.c.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
pY.prototype.dataChangedForBinding=pY.prototype.dataChangedForBinding;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],pY.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],pY.prototype,"data",void 0);_.k([_.H({computed:"computeDescription_(data.*)"}),_.W("design:type",Object)],pY.prototype,"description_",void 0);_.k([_.H({value:function(){return!!_.P().resolve(_.jp(_.cT))&&_.Z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],pY.prototype,"useKeyboardFocused",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],pY.prototype,"keyboardFocused",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pY.prototype,"dataChangedForBinding",null);pY=_.k([_.p5({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],pY);
_.u(pY,"yt-toggle-form-field-renderer",function(){if(bm1===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;w9P===void 0&&(w9P=document.createElement("template"));var f=w9P;n.call(E,f.content.cloneNode(!0),v.content.firstChild);bm1=v}v=bm1;return v},{mode:2});var rUX;var PZ1;var Qm=function(){var v=_.g.apply(this,arguments)||this;v.isDarkTheme=!1;v.isSearch=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.noTopMargin=_.Z("kevlar_watch_no_top_margin");v.maskFade=_.Z("web_watch_chips_mask_fade");v.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 v};
_.S(Qm,_.g);_.c=Qm.prototype;_.c.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}}}}}};
_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.c.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.c.dataChanged=function(){var v=this.getSelectedIndex();if(v>0)this.selected=v;else{this.selected=0;var E,n;(E=this.ytScrollableChipCloudBehavior)==null||(n=E.reset)==null||n.call(E)}};
_.c.getSelectedIndex=function(){var v;if((v=this.data)==null||!v.chips)return-1;v=-1;for(var E,n=0;n<((E=this.data)==null?void 0:E.chips.length);n++){var f=void 0,x=void 0;if((f=this.data)==null?0:(x=f.chips[n].chipCloudChipRenderer)==null?0:x.isSelected){v=n;break}}return v};
_.c.onResize=function(){var v=this.ytScrollableChipCloudBehavior;_.IS(v,v.setContainerWidthDiff);Gi(this.ytScrollableChipCloudBehavior)};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.handleRelatedChipCommand=function(v,E){v=this.JSC$14175_chipsSelector.indexOf(E);v!==-1&&this.JSC$14175_chipsSelector.selectIndex(v)};
_.c.handleChipCloudChipSelectAction=function(v){v=this.JSC$14175_chipsSelector.indexOf(v);v>-1&&this.JSC$14175_chipsSelector.selectIndex(v)};
_.c.handleChipCloudChipDeselectAction=function(){var v=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14175_chipsSelector&&((v==null?0:v.continuationCommand)?_.$Z(this.hostElement,[v]):(v==null?0:v.searchEndpoint)?this.ytComponentBehavior.resolveCommand(v):v&&_.LG(this.hostElement,[v],this.hostElement),this.JSC$14175_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.c.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
Qm.prototype.onResize=Qm.prototype.onResize;Qm.prototype.dataChanged=Qm.prototype.dataChanged;Qm.prototype.isSearchChanged=Qm.prototype.isSearchChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Qm.prototype,"actionHandlerBehavior",void 0);
_.k([_.h(_.ZT),_.W("design:type",Object)],Qm.prototype,"ironResizableBehavior",void 0);_.k([_.h(),_.W("design:type",La)],Qm.prototype,"ytScrollableChipCloudBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qm.prototype,"data",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],Qm.prototype,"selected",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qm.prototype,"isDarkTheme",void 0);_.k([_.H({value:160}),_.W("design:type",Number)],Qm.prototype,"scrollDistance",void 0);_.k([_.H(),_.W("design:type",Object)],Qm.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qm.prototype,"darkerDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qm.prototype,"noTopMargin",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qm.prototype,"maskFade",void 0);_.k([_.Wp("#chips"),_.W("design:type",Object)],Qm.prototype,"JSC$14175_chipsSelector",void 0);_.k([_.On("isSearch"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qm.prototype,"isSearchChanged",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qm.prototype,"dataChanged",null);
_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qm.prototype,"onResize",null);Qm=_.k([_.p5({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Qm);
_.u(Qm,"yt-chip-cloud-renderer",function(){if(PZ1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;rUX===void 0&&(rUX=document.createElement("template"));var f=rUX;n.call(E,f.content.cloneNode(!0),v.content.firstChild);PZ1=v}v=PZ1;return v},{mode:2});var afl,Zm1=function(){return afl!==void 0?afl:afl=document.createElement("template")};
document.head.appendChild(Zm1().content);var CZ1;var M_1=document.head,ST1=M_1.appendChild,UN1;if(CZ1===void 0){var qTg=document.createElement("template");_.q(qTg,"");qTg.content.insertBefore(Zm1().content.cloneNode(!0),qTg.content.firstChild);CZ1=qTg}UN1=CZ1;ST1.call(M_1,UN1.content);var JU4=_.qu(function(v){var E=v.data;return _.w("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.w(_.x6,{cond:function(){return _.OI(E().image)},
then:function(n){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.w(_.UZ,{data:n,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.w("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.w(_.nh,{text:function(){return E().subtitle}})))),_.w(_.x6,{cond:function(){var n;
return(n=E())==null?void 0:n.hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ib");var KQw=_.qu(function(v){var E=v.data;return _.w("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.w(_.mI,{data:function(){var n;return(n=E().offerPlanDetailsItem)!=null?n:[]}},{offerPlanDetailsItemViewModel:function(n){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.w(JU4,{data:n.data}))}})),_.w("div",null,_.w(_.x6,{cond:function(){return E().hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Jb");var dN1=_.qu(function(v){var E=v.data;v=_.p(_.t7(!1,void 0,"SpEGQd"));var n=v.next().value,f=v.next().value,x=_.ij(function(){f(!n());return!1}),y=function(){var Q;
return(Q=E().offerPlanDetailsContainer)!=null?Q:[]};
return _.w("lp-complex-offer-card-details-view-model",null,_.w("div",null,_.w(_.x6,{cond:function(){return n()},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":x,"aria-expanded":n},_.w(_.nh,{text:function(){return E().expandedTitle}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.w(_.mI,{data:y},{offerPlanDetailsContainerViewModel:function(Q){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.w(KQw,{data:Q.data}))}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.w(_.nh,{text:function(){return E().legalText}})))},
else:function(){return _.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":x,"aria-expanded":n},_.w(_.nh,{text:function(){return E().collapsedTitle}}),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.w(_.B8,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Kb");var Ifo=_.qu(function(v){var E=v.data;return _.w("lp-complex-offer-card-option-view-model",null,_.w("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.w(_.x6,{cond:function(){return E().topDividerText},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.w(_.nh,{text:function(){return E().topDividerText}}))))}}),_.w(_.x6,{cond:function(){return E().planPricingPrimary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.w(_.nh,{text:function(){return E().planPricingPrimary}}))}}),_.w(_.x6,{cond:function(){return E().planPricingSecondary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.w(_.nh,{text:function(){return E().planPricingSecondary}}))}}),_.w(_.x6,{cond:function(){return E().primaryButton},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.w(_.mI,{data:function(){return E().primaryButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Lb");var YTo=_.qu(function(v){var E=v.data;var n=function(){var y;return((y=E())==null?void 0:y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var f={},x={};return _.w("ytm-lp-complex-offer-card-view-model",null,_.w("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.w("div",{class:_.W8((v.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=n,v),"ytmLpComplexOfferCardViewModelCardContainer")},_.w(_.x6,{cond:function(){var y;return(y=E())==null?void 0:y.bannerText},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.w("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.w(_.nh,{text:function(){return E().bannerText}})))}}),_.w(_.x6,{cond:function(){return _.OI(E().logo)},
then:function(y){var Q={};return _.w("div",{class:_.W8((Q.ytmLpComplexOfferCardViewModelLogoAlignLeft=n,Q),"ytmLpComplexOfferCardViewModelLogo")},_.w(_.UZ,{data:y,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.w("div",{class:_.W8((f.ytmLpComplexOfferCardViewModelTitleAlignLeft=n,f),"ytmLpComplexOfferCardViewModelTitle")},_.w(_.nh,{text:function(){return E().title}})),_.w(_.x6,{cond:function(){var y;
return(y=E())==null?void 0:y.subtitle},
then:function(){var y={};return _.w("div",{class:_.W8((y.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=n,y),"ytmLpComplexOfferCardViewModelSubtitle")},_.w(_.nh,{text:function(){return E().subtitle}}))}}),_.w(_.x6,{cond:function(){return E().planPricingPrimary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.w(_.nh,{text:function(){return E().planPricingPrimary}}))}}),_.w(_.x6,{cond:function(){return E().planPricingSecondary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.w(_.nh,{text:function(){return E().planPricingSecondary}}))}}),_.w(_.x6,{cond:function(){return E().purchaseButton},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.w(_.mI,{data:function(){return E().purchaseButton}},{buttonViewModel:function(y){return _.w(_.C7,{data:y.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.w(_.x6,{cond:function(){var y;
return(y=E())==null?void 0:y.offerOptions},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.w(_.mI,{data:function(){return E().offerOptions}},{lpComplexOfferCardOptionViewModel:Ifo}))}}),_.w("div",{class:_.W8((x.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=n,x),"ytmLpComplexOfferCardViewModelLegalText")},_.w(_.nh,{text:function(){return E().legalText}})),_.w(_.x6,{cond:function(){var y;
return(y=E())==null?void 0:y.offerCardDetails},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.w(_.mI,{data:function(){return E().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:dN1}))}}))))},"Mb");var h9w=_.qu(function(v){var E=v.data;var n=function(){var Q;return((Q=E())==null?void 0:Q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var f={},x={},y={};return _.w("ytm-lp-complex-offer-card-section-view-model",null,_.w("div",{class:_.W8("ytmLpComplexOfferCardSectionViewModelHost")},_.w("div",{class:_.W8((v.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=n,v),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.w("div",{class:_.W8((f.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=n,f),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.w("h2",{class:_.W8((x.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
n,x),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.w(_.nh,{text:function(){return E().title}}))),_.w(_.x6,{cond:function(){var Q;
return(Q=E())==null?void 0:Q.subtitle},
then:function(){var Q={},e={};return _.w("div",{class:_.W8((Q.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=n,Q),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.w("div",{class:_.W8((e.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=n,e),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.w(_.nh,{text:function(){return E().subtitle}})))}}),_.w("div",{class:_.W8((y.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=n,y),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.w(_.mI,{data:function(){var Q;
return(Q=E().offerPlans)!=null?Q:[]}},{lpComplexOfferCardViewModel:function(Q){return _.w("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.w(YTo,{data:Q.data}))}})))))},"Nb");_.CU=M5i.getInstance();var AUw=_.qu(function(v){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":v.shouldAriaHideContent},_.w("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:v.questionId},_.w(_.nh,{text:v.question})))},"Ob"),V_w=_.qu(function(v){var E=v.data;
var n=v.themeOverride;v=_.p(_.t7(!1,void 0,"ljTVPd"));var f=v.next().value,x=v.next().value;v=_.ij(function(){x(!f());return!1});
var y=function(){return f()?"EXPAND_LESS":"EXPAND_MORE"},Q=("faq-container"+_.ZE(_.CU)).toString(),e="faq-question-and-answers-section-question"+_.ZE(_.CU),F={},b={};
return _.w("faq-entry-view-model-c3",null,_.w("div",{class:_.W8("yt-lp-faq-entry-view-model",(F["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return n==null?void 0:n().useDarkTheme},F))},_.w("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":v,role:"button","aria-expanded":f,"aria-labelledby":e.toString(),"tab-index":"0"},_.w(AUw,{question:function(){return E().question},
questionId:e,shouldAriaHideContent:!0}),_.w(_.x6,{cond:function(){return f()!==void 0},
then:function(){return _.w("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.w(_.B8,{icon:y,ariaHidden:!0}),_.w("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.w("div",{class:_.W8("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(b["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!f()},b))},_.w("div",{id:Q},_.w(_.cG,{each:function(){return E().answers||[]}},function(l){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.w(_.nh,{text:l}))})))))},"Pb");
V_w.idomCompat=!0;var DNz=_.qu(function(v){var E=v.data;var n=v.themeOverride;v={};return _.w("lp-faq-section-view-model-c3",null,_.w("div",{class:_.W8("yt-lp-faq-section-view-model",(v["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(n==null||!n().useDarkTheme)},v))},_.w("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.w(_.x6,{cond:function(){return E().header},
then:function(f){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.w(_.nh,{text:f}))}}),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.w(_.mI,{data:function(){return E().faqs}},{faqEntryViewModel:function(f){return _.w(V_w,{data:f.data,
themeOverride:n})}})),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.w(_.cG,{each:function(){return E().footers||[]}},function(f){return _.w(_.nh,{text:f})})),_.w(_.x6,{cond:function(){return E().legal},
then:function(f){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.w(_.nh,{text:f}))}}))))},"Qb");
DNz.idomCompat=!0;var Hmg=_.qu(function(v){var E=v.data;var n=v.themeOverride;_.l5(function(){var Q=E().gtmId;Q&&_.cs(Q,_.MX("GL",""))});
var f={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Q,e,F;return(F=(Q=E().logo)==null?void 0:(e=Q.accessibilityData)==null?void 0:e.label)!=null?F:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},x=_.P().resolve(_.jp(_.aj)),y=function(){return x&&x()||(n==null?void 0:n().useDarkTheme)};
return _.w("lp-header-section-view-model",null,_.w("div",{class:function(){var Q=E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",e=E().marginType==="LP_SECTION_MARGIN_TYPE_TOP",F=n==null?void 0:n().useDarkTheme,b=["lp-header-section-view-model"];Q&&b.push("lp-header-section-view-model--ptc-layout-type");e&&b.push("lp-header-section-view-model__lp-header-section-margin");F&&b.push("lp-header-section-view-model--premium-force-dark-mode");return b.join(" ")}},_.w(_.x6,{cond:function(){return E().logo},
then:function(){return _.w("div",null,_.w(_.x6,{cond:y,then:function(){return _.w(_.x6,{cond:function(){var Q;return(Q=E().logo)==null?void 0:Q.imageDark},
then:function(Q){return _.w(_.UZ,Object.assign({},{data:Q},f))}})},
else:function(){return _.w(_.x6,{cond:function(){var Q;return(Q=E().logo)==null?void 0:Q.imageLight},
then:function(Q){return _.w(_.UZ,Object.assign({},{data:Q},f))}})}}))}}),_.w(_.x6,{cond:function(){return E().title},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-title"},_.w(_.nh,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.w(_.x6,{cond:function(){return E().subtitles},
then:function(Q){return _.w(_.cG,{each:Q},function(e){return _.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.w(_.nh,{text:e}))})}})),_.w(_.x6,{cond:function(){return E().additionalInfo},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.w(_.nh,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.w(_.x6,{cond:function(){return E().primaryButton},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.w(_.mI,{data:Q},{buttonViewModel:_.C7}))}}),_.w(_.x6,{cond:function(){return E().secondaryButton},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.w(_.mI,{data:Q},{buttonViewModel:_.C7}))}})),_.w(_.x6,{cond:function(){return E().otherOffersInfo},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.w(_.nh,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.w(_.x6,{cond:function(){return E().billingInfo},
then:function(Q){return _.w(_.cG,{each:Q},function(e){return _.w("div",null,_.w(_.nh,{text:e}))})}}))))},"Rb");
Hmg.idomCompat=!0;var gcl=_.qu(function(v){var E=v.data;var n=_.SI(v.themeOverride,{useDarkTheme:!1});v={};v=_.W8("ytm-lp-headline-section-view-model",(v["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return n().useDarkTheme},v));
return _.w("lp-headline-section-view-model",null,_.w("div",{class:v},_.w("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.w(_.nh,{text:function(){return E().title}})),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(f){return _.w("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.w(_.nh,{text:f}))}})))},"Sb");var NaS=_.qu(function(v){var E=v.data;var n=v.themeOverride;var f=_.P().resolve(_.jp(_.aj)),x=function(){return f&&f()||(n==null?void 0:n().useDarkTheme)},y=function(){var b,l;
var r=x()?(b=E().textBackgroundImage)==null?void 0:b.imageDark:(l=E().textBackgroundImage)==null?void 0:l.imageLight;return AIy((r==null?void 0:r.sources)||[])},Q=function(){var b,l;
return x()?(b=E().featureImage)==null?void 0:b.imageDark:(l=E().featureImage)==null?void 0:l.imageLight},e=function(){return E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},F=function(){var b,l;
return x()?(b=E().logo)==null?void 0:b.imageDark:(l=E().logo)==null?void 0:l.imageLight};
return _.w("ytm-lp-large-feature-section-view-model",null,_.w("div",{class:function(){var b=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",l=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",r=(E().index||0)%2===1,a=n==null?void 0:n().useDarkTheme,M=["yt-lp-large-feature-section-view-model"];b?M.push("yt-lp-large-feature-section-view-model--music-feature-type"):l?M.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):r||M.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
a&&M.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return M.join(" ")}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.w(_.x6,{cond:Q,
then:function(){return _.w(_.UZ,{data:function(){return Q()},
alt:function(){var b,l,r;return(r=(b=E().featureImage)==null?void 0:(l=b.accessibilityData)==null?void 0:l.label)!=null?r:""},
contentMode:e})}})),_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var b;return((b=y())==null?0:b.url)?"background-image: url("+_.bW(y().url)+");":""}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.w(_.x6,{cond:F,
then:function(){return _.w(_.UZ,{data:function(){return F()},
alt:function(){var b,l,r;return(r=(b=E().logo)==null?void 0:(l=b.accessibilityData)==null?void 0:l.label)!=null?r:""},
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"})}}),_.w(_.x6,{cond:function(){return E().eyebrowText},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.w(_.nh,{text:function(){return E().eyebrowText}}))}}),_.w(_.x6,{cond:function(){return E().title},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.w(_.nh,{text:function(){return E().title}}))}}),_.w(_.x6,{cond:function(){return E().subtitles},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.w(_.cG,{each:function(){return E().subtitles||[]}},function(b){return _.w(_.nh,{text:b})}))}})))))},"Tb");
NaS.idomCompat=!0;var ueF=_.qu(function(v){return _.w("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.w("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.w(_.B8,{icon:function(){var E;return(E=v.data())==null?void 0:E.iconType},
className:function(){var E;return((E=v.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.w("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.w(_.nh,{text:function(){var E;
return(E=v.data())==null?void 0:E.text}}))))},"Ub");var jv4=_.qu(function(v){v=_.Ue(v,{config:void 0,themeOverride:void 0});var E=v.data,n=v.config,f=v.themeOverride;v={};v=_.W8("ytm-lp-offer-card-option-view-model",(v["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var F;return(F=f())==null?void 0:F.useDarkTheme},v));
var x=_.ij(function(){var F,b;(F=n())==null||(b=F.handleRadioButtonClick)==null||b.call(F,E());return!1}),y=function(){var F;
return(F=n())==null?void 0:F.shouldDisplayRadioButton},Q=_.ij(function(){if(y()){var F,b;
(F=n())==null||(b=F.handleRadioButtonClick)==null||b.call(F,E())}return!1}),e=function(){var F;
return(F=E().featureListItems)!=null?F:[]};
return _.w("ytm-lp-offer-card-option-view-model",null,_.w("div",{class:v,"on:click":Q},_.w(_.x6,{cond:y,then:function(){return _.w("div",null,_.w("input",{type:"radio","on:click":x,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var F;return!((F=n())==null||!F.isOptionSelected)}}))}}),_.w("div",null,_.w("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.w(_.nh,{text:function(){return E().eyebrowText}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.w(_.nh,{text:function(){return E().subtitle}})),_.w(_.x6,{cond:function(){return e().length>0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.w(_.mI,{data:e},{lpFeatureListItemViewModel:ueF}))}}),_.w("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.w(_.nh,{text:function(){return E().description}})))))},"Vb");
jv4.idomCompat=!0;var Omw=_.qu(function(v){var E=v.data;var n=v.themeOverride;v=_.p(_.Rj(function(){var y,Q=(y=E().offerOptions)==null?void 0:y[0];return _.C(Q,lTP)||{}}));
var f=v.next().value,x=v.next().value;v={};return _.w("ytm-lp-offer-card-view-model",null,_.w("div",{class:_.W8("ytm-lp-offer-card-view-model",(v["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(n==null||!n().useDarkTheme)},v))},_.w("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.w(_.x6,{cond:function(){return E().titleIconType},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.w(_.B8,{icon:function(){var y;return((y=E().titleIconType)==null?void 0:y.toString())||""}}))}}),_.w("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.w(_.nh,{text:function(){return E().title}})),_.w(_.mI,{data:function(){return E().titleBadge}},{badgeViewModel:function(y){return _.w("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.w(_.gi,{data:y.data}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.w(_.mI,{data:function(){return E().offerOptions}},{lpOfferCardOptionViewModel:function(y){var Q=y.data;
return _.w(_.gF,null,_.w("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.w(jv4,{data:Q,config:function(){var e;return{shouldDisplayRadioButton:(E().offerOptions||[]).length>1,isOptionSelected:Q().id===((e=f())==null?void 0:e.id),handleRadioButtonClick:function(F){return void x(F)}}},
themeOverride:n}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.w(_.mI,{data:function(){var y;
return(y=f())==null?void 0:y.purchaseButtonOverride}},{buttonViewModel:_.C7}))))},"Wb");
Omw.idomCompat=!0;var kE6=_.qu(function(v){var E=v.data;var n=v.themeOverride;v={};v=_.W8("ytm-lp-offer-card-section-view-model",(v["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var f;return n==null?void 0:(f=n())==null?void 0:f.useDarkTheme},v));
return _.w("ytm-lp-offer-card-section-view-model",null,_.w("div",{class:v},_.w(_.x6,{cond:function(){return E().title!==void 0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.w("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.w(_.nh,{text:function(){return E().title}})),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.w(_.nh,{text:function(){return E().subtitle}}))}}))}}),_.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.w(_.mI,{data:function(){return E().offerCards}},{lpOfferCardViewModel:function(f){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.w(Omw,{data:f.data,
themeOverride:n}))}})),_.w(_.x6,{cond:function(){return E().footer},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.w(_.nh,{text:function(){return E().footer}}))}})))},"Xb");var WQz=_.qu(function(v){var E=v.data;return _.w("lp-offer-table-cell-content-view-model",null,_.w("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.w(_.Q1,null,_.w(_.y1,{when:function(){return E().title}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return E().title}})}),_.w(_.y1,{when:function(){return E().subTitle}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return E().subTitle}})}),_.w(_.y1,{when:function(){return E().featureDescription}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return E().featureDescription}})}),_.w(_.y1,{when:function(){return E().description}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return E().description}})}),_.w(_.y1,{when:function(){return E().iconType}},function(){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.w(_.B8,{icon:function(){return E().iconType.toString()}}))}),_.w(_.y1,{when:function(){return E().purchaseButton}},function(){return _.w(_.mI,{data:function(){return E().purchaseButton}},{buttonViewModel:function(n){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.w(_.C7,{data:n.data}))}})}),_.w(_.y1,{when:function(){return E().note}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return E().note}})}),_.w(_.y1,{when:function(){return E().featureDetail}},function(){return _.w(_.nh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return E().featureDetail}})}),_.w(_.y1,{when:function(){return E().badge}},function(){return _.w(_.mI,{data:function(){return E().badge}},{badgeViewModel:_.gi})}))))},"Yb");
WQz.idomCompat=!0;var $NP=_.qu(function(v){var E=v.data;return _.w("lp-offer-table-cell-view-model",null,_.w("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(E().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;"}}},_.w(_.mI,{data:function(){return E().contents}},{lpOfferTableCellContentViewModel:WQz})))},
"Zb");
$NP.idomCompat=!0;var LQw=_.qu(function(v){var E=v.data;var n=v.lpTableIsFirstRow;var f=v.lpTableIsLastRow;var x=function(){return(n==null?0:n())?"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"},y=function(){return(n==null?0:n())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(f==null?0:f())?"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 _.w("ytm-lp-offer-table-row-view-model",null,_.w("div",{class:"yt-lp-offer-table-row-view-model"},_.w(_.mI,{data:function(){return E().rowHeaderCell}},{lpOfferTableCellViewModel:function(Q){return _.w("div",{class:x},_.w($NP,{data:Q.data}))}}),_.w(_.mI,{data:function(){return E().contentCells}},{lpOfferTableCellViewModel:function(Q){return _.w("div",{class:y},_.w($NP,{data:Q.data}))}})))},"$b");
LQw.idomCompat=!0;var GEw=_.qu(function(v){var E=v.data;var n=v.themeOverride;var f=_.P().resolve(_.jp(_.aj)),x=function(){return _.C(E().logo,CQF)||{}};
v={};return _.w("ytm-lp-offer-table-section-view-model",null,_.w("div",{class:"yt-lp-offer-table-view-model"},_.w(_.x6,{cond:function(){var y,Q;return f&&f()||(n==null?0:n().useDarkTheme)?(y=x())==null?void 0:y.imageDark:(Q=x())==null?void 0:Q.imageLight},
then:function(y){return _.w(_.UZ,{data:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Q,e,F;return(F=(Q=x())==null?void 0:(e=Q.accessibilityData)==null?void 0:e.label)!=null?F:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.w(_.nh,{text:function(){return E().subtitle}})),_.w(_.x6,{cond:function(){return E().disclaimers},
then:function(y){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.w(_.cG,{each:y},function(Q){return _.w("div",null,_.w(_.nh,{text:Q}))}))}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.w(_.mI,{data:function(){return E().rows}},{lpOfferTableRowViewModel:function(y,Q){return _.w(LQw,{data:y.data,
lpTableIsFirstRow:function(){return Q()===0},
lpTableIsLastRow:function(){return Q()===E().rows.length-1}})}})),_.w("div",{class:_.W8((v["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return E().hasFooterBackground},v))},_.w(_.x6,{cond:function(){return E().footer},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.w(_.nh,{text:function(){return E().footer}}))}}),_.w(_.x6,{cond:function(){return E().footerTitle},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.w(_.nh,{text:function(){return E().footerTitle}}))}}),_.w(_.x6,{cond:function(){return E().footerDescription},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.w(_.nh,{text:function(){return E().footerDescription}}))}}))))},"ac");
GEw.idomCompat=!0;var TaX=_.qu(function(v){var E=v.data;var n=v.themeOverride;var f=_.P().resolve(_.jp(_.aj)),x=function(){var e;return n==null?void 0:(e=n())==null?void 0:e.useDarkTheme},y=function(){var e,F;
return f&&f()||x()?(e=E().image)==null?void 0:e.imageDark:(F=E().image)==null?void 0:F.imageLight};
v={};v=_.W8("ytm-lp-small-feature-section-view-model",(v["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=x,v));var Q=function(){var e,F,b;return(b=(e=E().image)==null?void 0:(F=e.accessibilityData)==null?void 0:F.label)!=null?b:""};
return _.w("ytm-lp-small-feature-section-view-model",{class:v},_.w(_.x6,{cond:function(){return y()&&!TU9},
then:function(){return _.w("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.w(_.UZ,{data:function(){return y()},
alt:Q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.w("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.w("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.w(_.x6,{cond:function(){return E().title},
then:function(e){return _.w(_.nh,{text:e})}})),_.w("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.w(_.nh,{text:function(){return E().description}}))))},"bc");
TaX.idomCompat=!0;var im1=_.qu(function(v){var E=v.data;var n=v.themeOverride;v={};return _.w("ytm-lp-small-feature-section-group-view-model",null,_.w("div",{class:_.W8("ytm-lp-small-feature-section-group-view-model",(v["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(n==null||!n().useDarkTheme)},v))},_.w("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.w(_.mI,{data:function(){return E().smallFeatures}},{lpSmallFeatureSectionViewModel:function(f){return _.w("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.w(TaX,{data:f.data,
themeOverride:n}))}}))))},"cc");
im1.idomCompat=!0;_.Yz(_.qu(function(v){var E=v.data;var n=function(){return E().forcedTheme==="USER_INTERFACE_THEME_DARK"},f=function(){return E().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},x=function(){var Q="",e,F;
var b=_.P().resolve(_.jp(_.aj));b=n()||(b==null?0:b())?(e=E().themedImageViewModel)==null?void 0:e.imageDark:(F=E().themedImageViewModel)==null?void 0:F.imageLight;(e=AIy((b==null?void 0:b.sources)||[]))&&e.url&&(Q=f()?"background-image: linear-gradient(to bottom, transparent, "+(E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.bW(e.url)+");":"background-image: url("+_.bW(e.url)+");");return Q},y=function(){return{useDarkTheme:n()}};
v={};return _.w("yt-section-group-view-model",null,_.w("div",{class:_.W8("yt-lp-section-group-view-model",(v["yt-lp-section-group-view-model--premium-force-dark-mode"]=n,v["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v))},_.w(_.x6,{cond:function(){return x().length},
then:function(){var Q={};return _.w("div",{class:_.W8("yt-lp-section-group-view-model__bg-image",(Q["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=f,Q)),style:x})}}),_.w("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.w(_.mI,{data:function(){return E().sections}},{lpFaqSectionViewModel:function(Q){return _.w(DNz,{data:Q.data,
themeOverride:y})},
lpHeaderSectionViewModel:function(Q){return _.w(Hmg,{data:Q.data,themeOverride:y})},
lpHeadlineSectionViewModel:function(Q){return _.w(gcl,{data:Q.data,themeOverride:y})},
lpLargeFeatureSectionViewModel:function(Q){return _.w(NaS,{data:Q.data,themeOverride:y})},
lpOfferCardSectionViewModel:function(Q){return _.w(kE6,{data:Q.data,themeOverride:y})},
lpComplexOfferCardSectionViewModel:function(Q){return _.w(h9w,{data:Q.data})},
lpOfferTableSectionViewModel:function(Q){return _.w(GEw,{data:Q.data,themeOverride:y})},
lpSmallFeatureSectionGroupViewModel:function(Q){return _.w(im1,{data:Q.data,themeOverride:y})}}))))},"dc"),"yt-section-group-view-model",{props:{data:_.Kt}});var K19=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.z91=_.qu(function(v){function E(){if(K19.has(v.data().displayType)){var b=!f(),l;if((l=v.disableDeselection)==null||!l.call(v)||b){v.data().selected=b;l=Object.assign({},Q(),{selected:b});e(l);var r;(r=v.callback)==null||r.call(v,l,b)}}}
var n=_.Ig(),f=function(){var b,l;return!!(((b=v.selected)==null?void 0:b.call(v))!==void 0?(l=v.selected)==null?0:l.call(v):Q().selected)},x=_.p(_.Rj(v.data)),y=x.next().value;
x=x.next().value;var Q=y,e=x,F=_.Bi(JEs,function(){return v.data().chipEntityKey||""});
return _.w("chip-view-model",{class:"ytChipViewModelHost",el:n},_.w(NZ6,{data:function(){var b,l=Object.assign({},Q(),{selected:f()}),r=F(),a=(b=v.disableDeselection)==null?void 0:b.call(v);a:switch(l.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":b=1;break a;default:b=0}return{text:(r==null?void 0:r.text)||l.text,state:l.disabled?1:l.selected?0:2,type:b,onTap:dk1(l,n,E,a),accessibilityLabel:l.accessibilityLabel||l.text}}}))},"ec");
_.z91.idomCompat={callbacks:{callback:!0}};_.R9l=_.qu(function(v){var E=_.Bi(qFF,function(){var Q;return(Q=v.data())==null?void 0:Q.chipBarStateEntityKey}),n=function(){return v.data().disableDeselection},f=_.p(_.Rj(function(){var Q;
if(((Q=E())==null?void 0:Q.selectedIndex)!=void 0)return E().selectedIndex;var e,F;Q=_.p(((e=v.data())==null?void 0:(F=e.chips)==null?void 0:F.entries())||[]);for(e=Q.next();!e.done;e=Q.next()){e=_.p(e.value);F=e.next().value;e=e.next().value;var b=void 0;if((b=_.C(e,_.dR))==null?0:b.selected)return F}return-1})),x=f.next().value,y=f.next().value;
return _.w("chip-bar-view-model",{class:_.W8("ytChipBarViewModelHost",v.className),role:"tablist"},_.w(_.mI,{data:function(){return v.data().chips}},{chipViewModel:function(Q,e){return _.w("div",{class:"ytChipBarViewModelChipWrapper"},_.w(_.z91,{data:Q.data,
selected:function(){return e()===x()},
callback:function(F,b){F=!!b;b=e();y(F?b:-1);var l,r=(l=v.data())==null?void 0:l.chipBarStateEntityKey;r&&F&&_.Mu(_.n7("chipBarStateEntity",r,{key:r,selectedIndex:b}))},
disableDeselection:v.disableDeselection||n}))}}))},"fc");_.Yz(_.R9l,"chip-bar-view-model",{props:{data:_.Ij,className:_.Ij,disableDeselection:_.Ij}});_.t_1=_.qu(function(v){var E=v.data;v={};return _.w("divider-view-model",{class:_.W8("divider-view-model-wiz",(v["divider-view-model-wiz__inset-thin-padding"]=function(){return E().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},v))},_.w("div",{class:_.W8("divider-view-model-wiz__base-divider",function(){return I3L(E().dividerStyle)}),
style:_.tZ({"background-color":function(){return E().backgroundColor?_.p2(E().backgroundColor):void 0}})}))},"gc");
_.t_1.idomCompat=!0;_.Yz(_.t_1,"divider-view-model",{props:{data:_.Kt}});var Pj=new Map,rN=new Map,AEF=0,aV;var jnL=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],W1G={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Bai,v1g;Bai=function(v){return function(E){return function(){return String(E())+v}}};
_.XZ=Bai("px");v1g=Bai("s");var n1U=_.qu(function(v){function E(L){return function(){var xX=M().numItemsPerGridRow,t=L()*xX;xX=t+xX;var QE,MF;return(MF=(QE=f().contents)==null?void 0:QE.slice(t,xX))!=null?MF:[]}}
var n=_.Ue(v,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),f=n.data,x=n.layoutContainerWidth,y=n.shouldUseOwnContainerSize,Q=n.marginSettings;n=_.p(_.t7(!0,void 0,"qgr2Je"));var e=n.next().value,F=n.next().value,b=function(){var L,xX=(L=_.C(f().showMoreButton,_.wQ))==null?void 0:L.trackingParams;xX&&_.El(_.Tl(),xX);F(!1)},l=function(){var L,xX=(L=_.C(f().showLessButton,_.wQ))==null?void 0:L.trackingParams;
xX&&_.El(_.Tl(),xX);F(!0)};
n=_.Ig();var r=_.L1s(n,{canHaveZeroSize:!1}),a=function(){var L;return(L=f().contentAspectRatio)!=null?L:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},M=_.o0(function(){var L=_.uS({containerWidth:y()&&r.width()>0?r.width()||x():x(),
sizing:"EXTRA_COMPACT",marginSettings:Q(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L.maxContainerWidth,numItemsPerGridRow:L.numItems,contentPadding:y()?L.margin:L.contentMargin,itemWidth:L.itemWidth,itemMargin:L.gutter/2}},void 0,"pqVdjc"),U=function(){if(f().enableVerticalExpansion){if(e())return 1;
var L,xX,t=(xX=(L=f().contents)==null?void 0:L.length)!=null?xX:0;return Math.ceil(t/M().numItemsPerGridRow)}return M().numItemsPerGridRow<=2?2:1},d=function(){return f().enableVerticalExpansion&&f().showLessButton&&!e()&&U()>1},Y=function(){var L,xX;
return f().enableVerticalExpansion&&f().showMoreButton&&e()&&((xX=(L=f().contents)==null?void 0:L.length)!=null?xX:0)>M().numItemsPerGridRow},V=function(){return!d()},O=function(){return!Y()},T={};
return _.w("grid-shelf-view-model",{class:_.W8("ytGridShelfViewModelHost",v.className,(T.ytGridShelfViewModelHostHasBottomButton=function(){return d()||Y()},T)),
el:n,style:_.tZ({"margin-left":(0,_.XZ)(function(){return M().contentPadding}),
"margin-right":(0,_.XZ)(function(){return M().contentPadding})})},_.w(_.x6,{cond:function(){return _.C(f().header,VYX)},
then:function(L){return _.w(_.$f,{data:L,disableHorizontalPadding:!0})}}),_.w("div",null,_.w(_.cG,{each:function(){return Array(U())}},function(L,xX){return _.w(E1P,{className:v.className,
items:E(xX),responsiveGridShelfLayout:M,contentAspectRatio:a})})),_.w("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.w(_.mI,{data:function(){return f().showMoreButton}},{buttonViewModel:function(L){return _.w("div",{hidden:O},_.w(_.C7,{data:L.data,
onClick:b}))}}),_.w(_.mI,{data:function(){return f().showLessButton}},{buttonViewModel:function(L){return _.w("div",{hidden:V},_.w(_.C7,{data:L.data,
onClick:l}))}})))},"hc");
n1U.idomCompat=!0;var E1P=_.qu(function(v){var E=v.items;var n=v.responsiveGridShelfLayout;var f=v.contentAspectRatio;v=v.className;var x=_.Ig();hJ1(x,function(){a:{var Q=x.value;for(var e=E(),F=[],b=0;b<e.length;b++){var l=_.C(e[b],CIU);if(!l||l==null||!l.inlinePlayerData){Q=null;break a}var r=Q.children.item(b);if(!r){Q=null;break a}F.push({thumbnailElement:r,videoData:l})}Q={gridVideoPreviewData:{gridItems:F}}}return Q});
var y=(0,_.XZ)(function(){return-n().itemMargin});
return _.w("div",{el:x,class:_.W8("ytGridShelfViewModelGridShelfRow",v),style:_.tZ({"margin-left":y,"margin-right":y})},_.w(_.mI,{data:E,replacementWrapper:function(Q){return _.w(o1P,{responsiveGridShelfLayout:n},Q)}},{shortsLockupViewModel:function(Q){return _.w(o1P,{responsiveGridShelfLayout:n},_.w(ibo,{data:Q.data,
aspectRatio:function(){return f()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ic"),o1P=_.qu(function(v){return _.w("div",{style:_.tZ({width:(0,_.XZ)(function(){return v.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+v.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},v.children)},"jc");
n1U.idomCompat=!0;_.Yz(n1U,"grid-shelf-view-model",{props:{data:_.Kt,layoutContainerWidth:_.Kt,shouldUseOwnContainerSize:_.Kt,marginSettings:_.Kt,className:_.Kt}});_.fP4=_.qu(function(v){var E=_.p(_.t7(!1,void 0,"YYtxR")),n=E.next().value,f=E.next().value;E={};return _.w("yt-alert-banner-view-model",{class:_.W8("ytAlertBannerViewModelHost",function(){var x;a:switch((x=v.data())==null?void 0:x.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":x="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":x="ytAlertBannerViewModelWarning";break a;default:x="ytAlertBannerViewModelInformational"}return x},(E.ytAlertBannerViewModelDismissed=n,E.ytAlertBannerViewModelFullbleed=
v.fullbleed,E.ytAlertBannerViewModelNarrow=v.narrow,E.ytAlertBannerViewModelIsInRichGrid=v.isInRichGrid,E))},_.w(_.x6,{cond:function(){var x;
return!((x=v.data())==null?0:x.hideIcon)},
then:function(){return _.w("div",{class:"ytAlertBannerViewModelIcon"},_.w(_.B8,{icon:function(){return"info_circle"}}))}}),_.w("div",{class:"ytAlertBannerViewModelOuterContainer"},_.w("div",{class:"ytAlertBannerViewModelContainer"},_.w("div",{class:"ytAlertBannerViewModelContent"},_.w("div",{class:"ytAlertBannerViewModelHeading"},_.w(_.nh,{text:function(){var x;
return(x=v.data())==null?void 0:x.heading}})),_.w("div",{class:"ytAlertBannerViewModelBody"},_.w(_.nh,{text:function(){var x;
return(x=v.data())==null?void 0:x.body}})))),_.w(_.mI,{data:function(){var x;
return(x=v.data())==null?void 0:x.actionButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.w(_.mI,{data:function(){var x;
return(x=v.data())==null?void 0:x.dismissButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var y;((y=v.data())==null?0:y.disableLocalDismissBehavior)||f(!0)}})}}))},"kc");_.Yz(_.fP4,"yt-alert-banner-view-model",{props:{data:_.Kt,fullbleed:_.Kt,narrow:_.Kt,isInRichGrid:_.Kt}});var GbG;GbG=_.p7({chipViewModel:_.z91,buttonViewModel:_.C7});_.x51=_.GG(TSQ,{callbacks:{callback:!0}});_.Nw(TSQ);_.Yz(_.x51,"chips-shelf-view-model",{props:{data:_.Kt,callback:_.Ij,enableSingleChipSelection:_.Kt,disableChipsScrollAnimation:_.Kt}});var c31=_.qu(function(v){v=_.Ue(v,{disabled:!1});var E=v.active,n=v.disabled;v={};v=_.W8("ytSwitchShapeTrack",(v.ytSwitchShapeTrackActive=function(){return E()},v.ytSwitchShapeTrackDisabled=function(){return n()},v));
var f={};f=_.W8("ytSwitchShapeKnob",(f.ytSwitchShapeKnobActive=function(){return E()},f));
return _.w("switch-shape",{class:"ytSwitchShapeHost"},_.w("div",{class:v}),_.w("div",{class:f}))},"lc");var y31=_.qu(function(v){var E=_.Ue(v,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),n=E.data;v=E.className;var f=E.handleOnTapEventInParent,x=E.parentActive;E=_.p(_.Rj(function(){var r;return(r=x())!=null?r:n().switchedOnByDefault||!1}));
var y=E.next().value,Q=E.next().value,e=function(){return n().isDisabled},F=_.Ig();
E=_.ij(function(r){return r.key==="Enter"?(r.preventDefault(),F.value.click(),!1):!0});
var b=_.ij(function(r){if(n().handleOnTapEventInParent||f())return!0;if(e())return!1;tdE(n(),y(),r);Q(!y());return!1}),l={};
l=_.W8("ytSwitchButtonViewModelButton",(l.ytSwitchButtonViewModelTappable=function(){return!e()},l));
return _.w("switch-button-view-model",{class:_.W8("ytSwitchButtonViewModelHost",v)},_.w("button",{el:F,class:l,"on:click":b,"on:keydown":E,"aria-label":function(){return y()?n().a11yLabelSwitchedOn:n().a11yLabelSwitchedOff},
"aria-pressed":y,"aria-disabled":e},_.w(c31,{active:y,disabled:e})))},"mc");_.Nw(nuA);var QAo=_.qu(function(v){var E=_.Ue(v,{checked:!1});v=E.name;var n=E.onChange,f=E.onClick,x=E.checked,y=E.labelRenderable,Q=E.hasLeadingLabel,e=E.labelClass,F=E.isCompact,b=E.selectElementClass;E=E.disableHorizontalPadding;var l="checkbox"+_.ZE(_.CU),r=_.ij(function(U){f==null||f(U);return!1}),a=_.ij(function(U){n==null||n(U);
return!1}),M={};
return _.w("checkbox-shape",null,_.w("label",{class:_.W8("checkbox-shape-wiz",e,(M["checkbox-shape-wiz--compact"]=F,M["checkbox-shape-wiz--disable-horizontal-padding"]=E,M))},_.w("input",{class:"checkbox-shape-wiz__input",id:l,checked:x,name:v,type:"checkbox","prop:checked":x,"on:change":a,"on:click":r}),_.w(_.x6,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.w(pa4,{isLeading:!0,selectElementClass:b})}}),_.w(_.x6,{cond:function(){return!!y},
then:function(){return _.w("div",{class:"checkbox-shape-wiz__label"},y==null?void 0:y())}}),_.w(_.x6,{cond:Q,
then:function(){return _.w(pa4,{isLeading:!1,selectElementClass:b})}})))},"nc"),XJG=_.Z("web_enable_sink_checkbox_shape")?QAo:nuA,Xag=_.Z("web_enable_sink_checkbox_shape")?QAo:_.GG(nuA,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});QAo.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var pa4=_.qu(function(v){var E=v.selectElementClass;v={};return _.w("div",{class:_.W8("checkbox-shape-wiz__checkbox",E,(v["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(E==null?0:E())},v)),
"aria-hidden":"true"},_.w(_.B8,{icon:_.Z("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.B8,{icon:_.Z("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"oc");_.Nw(fy9);var FYF,e7s;FYF=_.qu(function(v){var E=v.name;var n=v.onChange;var f=v.onClick;var x=v.checked;var y=v.labelRenderable;var Q=v.useCheckIcon;var e=v.hasLeadingLabel;var F=v.labelClass;var b=v.isCompact;var l=v.selectElementClass;var r=v.ariaLabel;v=v.className;var a="radio"+_.ZE(_.CU),M=_.ij(function(L){n==null||n(L);return!1}),U=_.ij(function(L){f==null||f(L);
return!1}),d=_.p(_.t7(!1,void 0,"HG0s4c")),Y=d.next().value,V=d.next().value;
d=_.ij(function(){var L;((L=_.P().resolve(_.jp(_.cT)))==null?0:L.isKeyBoardInUse())&&V(!0)});
var O=_.ij(function(){V(!1)}),T={};
return _.w("radio-shape",{class:_.W8("radio-shape-wiz",v)},_.w("input",{class:"radio-shape-wiz__input",id:a,"prop:checked":x,name:E,type:"radio","on:change":M,"on:click":U,"aria-label":r,"on:focusin":d,"on:focusout":O}),_.w("label",{class:_.W8("radio-shape-wiz__label-container",F,(T["radio-shape-wiz--compact"]=b,T["radio-shape-wiz__label-container--keyboard-focused"]=Y,T)),for:a},_.w(_.x6,{cond:function(){return!(e==null?0:e())},
then:function(){return _.w(e2X,{checked:x,useCheckIcon:Q,isLeading:!0,selectElementClass:l})}}),_.w(_.x6,{cond:function(){return!!y},
then:function(){return _.w("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(r==null?0:r())?"true":"false"}},y==null?void 0:y())}}),_.w(_.x6,{cond:e,
then:function(){return _.w(e2X,{checked:x,useCheckIcon:Q,isLeading:!1,selectElementClass:l})}})))},"pc");
e7s=_.Z("web_enable_sink_radio_shape")?FYF:fy9;_.e3=_.Z("web_enable_sink_radio_shape")?FYF:_.GG(fy9,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});FYF.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var e2X=_.qu(function(v){var E=v.useCheckIcon;var n=v.selectElementClass;v=function(){return(E==null?0:E())?"CHECK":_.Z("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var f={};return _.w("div",{class:_.W8("radio-shape-wiz__radio",n,(f["radio-shape-wiz__radio--check-icon"]=E,f["radio-shape-wiz__radio--radio-default-style"]=function(){return!(n==null?0:n())},f)),
"aria-hidden":"true"},_.w(_.B8,{icon:v}),_.w(_.B8,{icon:v,active:function(){return!(E==null?0:E())}}))},"qc");var yN9=_.p7({buttonViewModel:_.C7,switchButtonViewModel:y31,avatarViewModel:_.s_,accountLinkButtonViewModel:qNI,subscribeButtonViewModel:_.wtS,collectionThumbnailViewModel:O84,toggleButtonViewModel:_.lS});_.Nw(FT1);var wag,bAF;wag=_.qu(function(v){function E(){var bX;((bX=_.P().resolve(_.jp(_.cT)))==null?0:bX.isKeyBoardInUse())&&WI(!0)}
function n(){WI(!1)}
var f=v.data;var x=v.isMenuItem;var y=v.isCompact;var Q=v.onTap;var e=v.trailingAccessory;var F=v.hideSelectionTextChevron;var b=v.disabled;var l=v.inPopup;var r=v.disableHorizontalPadding;v=v.isOverlay;var a=_.Z("apply_button_role_to_list_item"),M=_.mc(function(bX){return zJs(bX,f())}),U=function(){return _.Z("enable_web_shorts_captions_language_command")?Object.assign({},f(),M()):f()},d=function(){return!(U().isSelected===void 0||!U().selectionStyle||U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
Y=function(){return(_.dQ(U().rendererContext)||Q)&&!d()},V=function(){return _.dQ(U().rendererContext)||d()},O={};
v=_.W8("yt-list-item-view-model-wiz",(O["yt-list-item-view-model-wiz--is-overlay"]=v,O["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!a&&uE()},O));
O={};var T=_.W8("yt-list-item-view-model-wiz__label",(O["yt-list-item-view-model-wiz__container"]=function(){return!d()},O["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!U().isDisabled||!(b==null||!b())},O["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!U().subtitle},O["yt-list-item-view-model-wiz__container--compact"]=y,O["yt-list-item-view-model-wiz__container--tappable"]=Y,O["yt-list-item-view-model-wiz__container--in-popup"]=l,O["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return a&&uE()},O));
O={};var L=_.W8("yt-list-item-view-model-wiz__container",(O["yt-list-item-view-model-wiz__container--tappable"]=V,O["yt-list-item-view-model-wiz__container--compact"]=y,O["yt-list-item-view-model-wiz__container--in-popup"]=l,O["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=r,O)),xX=function(){return U().leadingImage||U().leadingAccessory},t=_.W8("yt-list-item-view-model-wiz__image-container",function(){return xX()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
l=_.Ig();var QE=_.Ig(),MF=a?QE:l,K1=_.qu(function(){return _.w(_.x6,{cond:function(){return a},
then:function(){return _.w("div",{class:T,el:QE,role:function(){return V()||Y()?"button":void 0},
tabindex:function(){return Q||Y()?0:void 0},
"on:keydown":$X,"on:click":JG},_.w(m5P,{data:U,hideSelectionTextChevron:F,trailingAccessory:e}))},
else:function(){return _.w("div",{class:T,el:QE},_.w(m5P,{data:U,hideSelectionTextChevron:F,trailingAccessory:e}))}})},"rc");
K1.idomCompat=!0;_.Ya(l,function(){return U().rendererContext});
var JG=_.ij(function(bX){return void(Q==null?void 0:Q(bX))}),$X=_.ql(),HI=_.p(_.t7(!1,void 0,"bOoKke"));
O=HI.next().value;HI=HI.next().value;var uE=O,WI=HI;_.l5(function(){Y()&&(MF.value.addEventListener("focusin",E),MF.value.addEventListener("focusout",n));_.Fp(function(){MF.value&&Y()&&(MF.value.removeEventListener("focusin",E),MF.value.removeEventListener("focusout",n))})});
O=_.ij(function(){return!1});
return _.w("yt-list-item-view-model",{el:l,class:v,role:function(){return(x==null?0:x())?"menuitem":"listitem"},
tabindex:function(){var bX=Y();bX=a?void 0:Q||bX?0:void 0;return bX},
"on:keydown":a?O:$X,"on:click":a?O:JG},_.w(_.x6,{cond:d,then:function(){return _.w(_.Q1,null,_.w(_.y1,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.w(Xag,{labelRenderable:function(){return _.w(K1,null)},
isCompact:y,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!xX()},
labelClass:L,selectElementClass:t,disableHorizontalPadding:r})}),_.w(_.y1,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.w(_.e3,{labelRenderable:function(){return _.w(K1,null)},
isCompact:y,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!xX()},
labelClass:L,selectElementClass:t})}),_.w(_.y1,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.w(_.e3,{labelRenderable:function(){return _.w(K1,null)},
isCompact:y,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!xX()},
labelClass:L,selectElementClass:t,useCheckIcon:!0})}),_.w(_.pk,null,function(){return _.w(K1,null)}))},
else:function(){return _.w(K1,null)}}))},"sc");
bAF=_.Z("web_enable_sink_list_view_models")?wag:FT1;_.FZ=_.Z("web_enable_sink_list_view_models")?wag:_.GG(FT1,{callbacks:{onTap:!0,trailingAccessory:!0}});wag.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var m5P=_.qu(function(v){var E=v.data;var n=v.hideSelectionTextChevron;var f=v.trailingAccessory;return _.w(_.gF,null,_.w(lPF,{data:E,isLeading:!0,hideSelectionTextChevron:function(){return!(n==null||!n())}}),_.w(sAz,{data:E}),_.w(_.x6,{cond:function(){return!!f},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__trailing"},f==null?void 0:f())},
else:function(){return _.w(lPF,{data:E,isLeading:!1,hideSelectionTextChevron:function(){return!(n==null||!n())}})}}))},"tc"),lPF=_.qu(function(v){var E=v.data;
var n=v.isLeading;var f=v.hideSelectionTextChevron;var x=_.W8("yt-list-item-view-model-wiz__button-container");v={};var y=_.W8("yt-list-item-view-model-wiz__image-container",(v["yt-list-item-view-model-wiz__leading"]=n,v["yt-list-item-view-model-wiz__trailing"]=function(){return!n()},v)),Q=function(){return n()?E().leadingImage:E().trailingImage},e=_.W8("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
v={};var F=_.W8("yt-list-item-view-model-wiz__accessory",(v["yt-list-item-view-model-wiz__leading"]=n,v["yt-list-item-view-model-wiz__trailing"]=function(){return!n()},v)),b=function(){return cNs(E().listItemIconAfterSelectionText)};
return _.w(_.x6,{cond:function(){return xcs(E(),n())},
then:function(){return _.w(_.gF,null,_.w(_.x6,{cond:Q,then:function(l){return _.w("div",{class:y,"aria-hidden":"true"},_.w(_.UZ,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:e}))}}),_.w(_.x6,{cond:function(){return n()&&E().leadingAccessory},
then:function(){return _.w("div",{class:y},_.w(_.mI,{data:function(){return E().leadingAccessory}},{avatarViewModel:function(l){return _.w(_.XK,{data:l.data,
avatarButtonCustomClassName:e})},
collectionThumbnailViewModel:O84}))}}),_.w(_.x6,{cond:function(){return!n()&&E().trailingButton},
then:function(){return _.w("div",{class:x},_.w(_.mI,{data:function(){return E().trailingButton}},{buttonViewModel:function(l){return _.w(_.C7,{data:l.data,
className:F})}}))}}),_.w(_.x6,{cond:function(){var l;
return!n()&&((l=E().trailingButtons)==null?void 0:l.buttons)},
then:function(){return _.w("div",{class:x},_.w(_.mI,{data:function(){var l;return(l=E().trailingButtons)==null?void 0:l.buttons}},{buttonViewModel:function(l){return _.w(_.C7,{data:l.data,
className:F})},
accountLinkButtonViewModel:function(l){return _.w(qNI,{data:l.data,className:function(){return F()||""}})},
switchButtonViewModel:function(l){return _.w(y31,{data:l.data,className:F})},
subscribeButtonViewModel:function(l){return _.w(bJP,{data:l.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(l){return _.w(_.lS,{data:l.data,className:F})}}))}}),_.w(_.x6,{cond:function(){return!n()&&!!E().selectionText},
then:function(){return _.w(_.gF,null,_.w(_.nh,{text:function(){return E().selectionText},
className:_.W8("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.w(_.x6,{cond:function(){return!f()},
then:function(){return _.w(_.B8,{icon:b,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"uc"),sAz=_.qu(function(v){var E=v.data;
return _.w(_.x6,{cond:function(){return E().title||E().subtitle},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.w("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.w(_.x6,{cond:function(){return E().title},
then:function(n){return _.w(_.nh,{text:n,className:"yt-list-item-view-model-wiz__title"})}})),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(n){return _.w(_.nh,{text:n,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"vc");_.ma=_.qu(function(v){var E=v.data;var n=v.onTap;var f=v.onSwitch;var x=v.overrideDisabled;v=_.p(_.Rj(function(){var l;return((l=vuy(b()))==null?void 0:l.switchedOnByDefault)||!1}));
var y=v.next().value,Q=v.next().value;v=_.p(_.t7(!1,void 0,"Ri8Twb"));var e=v.next().value,F=v.next().value,b=function(){var l;if(!(l=E().switchButton)){var r=E();l=x==null?void 0:x();r={switchOnCommand:r.switchOnCommand,switchOffCommand:r.switchOffCommand,switchedOnByDefault:r.switchedOnByDefault,isDisabled:r.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:r.a11yLabelSwitchedOn,a11yLabelSwitchedOff:r.a11yLabelSwitchedOff};l!==void 0&&(r.isDisabled=l);l={switchButtonViewModel:r}}return l};
return _.w("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.w(_.FZ,{data:function(){return{title:E().title,subtitle:E().attributedSubtitle,leadingImage:E().leadingImage,leadingAccessory:E().leadingAccessory,isDisabled:E().isDisabled}},
onTap:function(l){var r=vuy(b());!r||r.isDisabled||E().ignoreTapUntilCommandCompletes&&e()||(n==null||n(l),tdE(r,y(),l,E().ignoreTapUntilCommandCompletes,F),Q(!y()),f==null||f(y()))},
trailingAccessory:function(){return _.w(_.mI,{data:b},{switchButtonViewModel:function(l){return _.w(y31,{data:l.data,parentActive:y,handleOnTapEventInParent:!!n})}})}}))},"wc");var r3U=_.tQ("DOWNLOAD",{},"Download"),Ptg=_.tQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),aP6=_.tQ("RETRY",{},"Retry"),ZA1=_.tQ("PAUSE_DOWNLOADING",{},"Pause downloading"),CtP=_.tQ("RESUME_DOWNLOAD",{},"Resume download"),mcL={text:r3U,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Mo={text:Ptg,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},lyX={text:aP6,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
wJE={text:ZA1,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},bN9={text:CtP,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ME1=_.qu(function(v){var E=function(){var e=v.data();e=_.K7(e.rendererContext);var F;return(F=_.C(e,_.zy))==null?void 0:F.videoId},n=_.mc(function(e){var F=E(),b=Pu$(v.data());
return F?_.bx(e,F):b?_.lx(e,b):"TRANSFER_STATE_UNKNOWN"}),f=_.Bi(_.tOI,E),x=_.mc(function(e){return _.LDI(e,E(),Pu$(v.data()))}),y=function(){return rNE(n(),f(),_.K7(v.data().rendererContext),!!Pu$(v.data()))},Q=function(){return x()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.w("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Q},_.w(_.x6,{cond:function(){return!Q()},
then:function(){return _.w(_.x6,{cond:y,then:function(e){return _.w(_.cG,{each:e},function(F){return _.w(_.FZ,{data:F,isCompact:v.isCompact,isMenuItem:v.isMenuItem,inPopup:v.inPopup})})}})}}))},"xc");
ME1.idomCompat=!0;var ZN9=_.p7({listItemViewModel:bAF,downloadListItemViewModel:ME1,switchListItemViewModel:_.ma});_.Nw(CuQ);var S7P;S7P=_.qu(function(v){var E=v.data;var n=v.isCompact;var f=v.hideSelectionTextChevron;var x=v.inPopup;var y=v.isOverlay;var Q=function(){return ayI(E())&&(x==null?void 0:x())};
v={};return _.w("yt-list-view-model",{class:_.W8("yt-list-view-model-wiz",(v["yt-list-view-model-wiz--kaios-spat-nav"]=iOA(),v)),role:function(){return Q()?"menu":"list"}},_.w(_.mI,{data:function(){return E().listItems}},{listItemViewModel:function(e){return _.w(_.FZ,{data:e.data,
isMenuItem:Q,isCompact:n,hideSelectionTextChevron:f,inPopup:x,isOverlay:y})},
downloadListItemViewModel:function(e){return _.w(ME1,{data:e.data,isMenuItem:Q,isCompact:n,inPopup:x})},
switchListItemViewModel:_.ma}))},"yc");
_.U5U=_.Z("web_enable_sink_list_view_models")?S7P:_.GG(CuQ);S7P.idomCompat=!0;var q7S=_.qu(function(v){var E=v.data;var n=v.isOverlay;v={};return _.w("yt-course-perks-view-model",{class:_.W8("ytwCoursePerksViewModelHost",(v.ytwCoursePerksViewModelHostOverlay=n,v))},_.w("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",null,_.w(_.x6,{cond:function(){return E().perks},
then:function(f){return _.w(_.U5U,{data:function(){return{listItems:f()}},
isCompact:!0,isOverlay:n})}})))},"zc");_.Yz(q7S,"yt-course-perks-view-model",{props:{data:_.Ij,isOverlay:_.Ij}});_.Yz(_.qu(function(v){var E=v.data;return _.w("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.w("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.w(_.nh,{text:function(){return E().progressSummary}})),_.w("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.w("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.tZ({width:function(){return E().progressPercentage*100+"%"}})})))},"Ac"),"yt-course-progress-view-model",{props:{data:_.Kt}});var J36=_.qu(function(v){var E=_.Ue(v,{}).data;return _.w("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.w(_.x6,{cond:function(){return E().progressSummary},
then:function(n){return _.w("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.w(_.nh,{text:n}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressContainer"},_.w("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.w(_.nh,{text:function(){var n;
return(n=E())==null?void 0:n.leadingLabel}})),_.w("div",{class:"ytwProgressViewModelHostProgressBar"},_.w("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var n;return"width: "+(((n=E())==null?void 0:n.progressPercentage)||0)*100+"%"}}))))},"Bc");var w5=_.qu(function(v){var E=v.starNumber;var n=v.data;var f=function(){var x;return((x=n())==null?void 0:x.rating)||0};
return _.w(_.x6,{cond:function(){return E()},
then:function(x){return _.w(_.Q1,null,_.w(_.y1,{when:function(){return f()>=x()-.25}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.B8,{icon:"STAR_FILLED"}))}),_.w(_.y1,{when:function(){return f()>=x()-.75}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.B8,{icon:"STAR_HALF"}))}),_.w(_.pk,null,function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.B8,{icon:"STAR_BORDER"}))}))}})},"Cc"),KYX=_.qu(function(v){v=v.data;
return _.w("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.w(w5,{starNumber:1,data:v}),_.w(w5,{starNumber:2,data:v}),_.w(w5,{starNumber:3,data:v}),_.w(w5,{starNumber:4,data:v}),_.w(w5,{starNumber:5,data:v}))},"Dc");_.Yz(_.qu(function(v){var E=_.Ue(v,{}).data;return _.w("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.w("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.w(_.nh,{text:function(){var n;return(n=E())==null?void 0:n.title}})),_.w("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.w(_.x6,{cond:function(){return E().starProgressViewModels},
then:function(n){return _.w("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.w(_.mI,{data:n},{progressViewModel:J36}))}}),_.w("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.w("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.w(_.nh,{text:function(){var n;
return(n=E())==null?void 0:n.averageRatingLabel}})),_.w(_.x6,{cond:function(){return E().zeroStateText},
then:function(n){return _.w("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.w(_.nh,{text:n}))}}),_.w(_.x6,{cond:function(){return E().starRatingViewModel},
then:function(n){return _.w("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.w(_.mI,{data:n},{starRatingViewModel:KYX}))}}),_.w("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.w(_.nh,{text:function(){var n;
return(n=E())==null?void 0:n.totalRatingsCountLabel}})))))},"Ec"),"yt-course-ratings-view-model",{props:{data:_.Ij}});var d51;d51={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"}};_.IPw=_.qu(function(v){var E=_.Ig(),n=_.Gy();_.mM(function(){requestAnimationFrame(function(){var Q;(Q=n.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var e;(e=v.onLottieLoaded)==null||e.call(v)})});
var f,x={browseEndpoint:{params:(f=v.data)==null?void 0:f.call(v).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},y;((y=v.shouldSkipRequest)==null?0:y.call(v))||_.jK(E.value,"yt-navigate",{endpoint:x})});
return _.w("yt-learning-journey-loader-view-model",{class:_.W8("learningJourneyLoaderViewModelHost",v.className),"data-target-id":function(){var f;return((f=v.data)==null?void 0:f.call(v).targetId)||""},
el:E},_.w(_.$z,{className:_.W8("learningJourneyLoaderViewModelLoader",v.className),animationName:function(){return d51.animationConfig.name},
data:d51,animationRef:n}))},"Fc");_.Yz(_.IPw,"yt-learning-journey-loader-view-model",{props:{data:_.Kt,className:_.Ij,onLottieLoaded:_.Ij,shouldSkipRequest:_.Ij}});var Y7i=_.qu(function(v){var E=function(){return v.data()},n=_.p(_.t7(-1,void 0,"X3Tlgd")),f=n.next().value,x=n.next().value,y=function(b){return f()===b},Q=function(b){return E().correctAnswerIndex===b},e=function(){return f()!==-1},F=_.ij(function(){x(-1);
return!1});
return _.w("learning-journey-quiz-view-model",{class:_.W8("learningJourneyQuizViewModelHost",v.className),style:_.tZ({background:function(){return qo(Sh(E())).backgroundColor}})},_.w(_.x6,{cond:function(){return!!E().video},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.tZ({background:function(){return qo(Sh(E())).videoBackgroundColor}})},_.w(_.mI,{data:function(){return E().video}},{lockupViewModel:function(b){return _.w(_.kx,{data:b.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.w("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.tZ({color:function(){return qo(Sh(E())).primaryTextColor}})},_.w(_.nh,{text:function(){var b=E(),l=e(),r=f()===E().correctAnswerIndex;
return l?r?b.successTitle:b.failureTitle:b.questionHeaderText}})),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.w(_.x6,{cond:e,
then:function(){return _.w("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":F,role:"button","aria-label":"Reset","tab-index":"0"},_.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.tZ({fill:function(){return qo(Sh(E())).primaryTextColor}})},_.w("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"})))}}),
_.w(_.mI,{data:function(){return E().overflowMenu}},{buttonViewModel:function(b){return _.w(_.C7,{data:b.data})}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.tZ({color:function(){return qo(Sh(E())).secondaryTextColor}})},_.w(_.nh,{text:function(){var b=E();
return e()?b.explanationText:b.questionSubheaderText}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.w(_.cG,{each:function(){return E().optionsData||[]}},function(b,l){var r={};
return _.w("div",{class:_.W8("learningJourneyQuizViewModelHostQuizOptions",(r.learningJourneyQuizViewModelHostQuizHover=function(){return!e()},r.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return f()===E().correctAnswerIndex&&y(l())},r.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return f()!==E().correctAnswerIndex&&y(l())},r.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return e()&&!y(l())},r)),
"on:click":_.ij(function(){if(e())return!1;x(l());return!1}),
style:_.tZ({background:function(){return e()&&y(l())?"":qo(Sh(E())).optionColor}}),
role:"button","aria-disabled":e,"tab-index":"0"},_.w(_.x6,{cond:e,then:function(){return _.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var a=l();return Q(a)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.tZ({fill:function(){return qo(Sh(E())).primaryTextColor}})},_.w("path",{d:function(){var a=l();
return Q(a)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.w(_.nh,{text:b.optionText}))})))))},"Gc");
Y7i.idomCompat=!0;_.Yz(Y7i,"learning-journey-quiz-view-model",{props:{data:_.Kt,className:_.Kt}});var h2g=_.qu(function(v){var E=_.Ig();_.Ya(E,function(){return v.data().rendererContext});
var n=_.Ue(v,{palette:void 0,isLastItem:!1}),f=n.palette,x=n.isLastItem,y=function(){return v.data().isHighlighted},Q=function(){var b;
return MXX((b=f())==null?void 0:b.iconDisabledColor)},e=function(){var b;
return MXX((b=f())==null?void 0:b.primaryTitleColor)},F=function(){var b;
return MXX((b=f())==null?void 0:b.secondaryTitleColor)};
n={};return _.w("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:E},_.w(_.mI,{data:function(){return v.data().thumbnail}},{thumbnailViewModel:_.Aw}),_.w("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.w("div",{class:_.W8("ytMacroMarkerListItemViewModelTimeDescription",(n.ytMacroMarkerListItemViewModelHighlighted=y,n)),
style:_.tZ({"background-color":function(){return y()?e():Q()},
color:function(){return y()?"":F()}})},_.w(_.nh,{text:function(){return v.data().timestamp}})),_.w("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.tZ({"background-color":function(){return x()?"transparent":Q()}})}),_.w("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(y()?e():F())}},_.w(_.nh,{text:function(){return v.data().title}}))))},"Hc");_.bB=_.qu(function(v){function E(yP){V("transform:translateX("+(_.MX("HTML_DIR")==="rtl"?"":"-")+yP+"px)")}
function n(yP){return Math.min(Math.max(yP,0),Y()-t())}
function f(){var yP=L()+JG();return x()?(Math.round(t()/yP)||1)*yP:0}
var x=function(){return v.data().items||[]},y=function(){return v.data().previousButton},Q=function(){return v.data().nextButton},e=function(){var yP,IF;
return(IF=(yP=v.disableArrows)==null?void 0:yP.call(v))!=null?IF:!1},F=function(){var yP;
return!((yP=v.forceNarrowLayout)==null||!yP.call(v))},b=_.Ig(),l=_.Ig(),r=_.p(_.t7(0,void 0,"yngx7d")),a=r.next().value,M=r.next().value;
r=_.p(_.t7(0,void 0,"rUOyGb"));var U=r.next().value,d=r.next().value,Y=U;U=_.p(_.t7("",void 0,"jv2kWc"));r=U.next().value;var V=U.next().value;U=_.p(_.t7(0,void 0,"Xb0f0d"));var O=U.next().value,T=U.next().value,L=O;U=_.p(_.t7(0,void 0,"pt5wQ"));O=U.next().value;var xX=U.next().value,t=O;U=_.p(_.t7(!1,void 0,"FfPefe"));var QE=U.next().value,MF=U.next().value;U=_.p(_.t7(0,void 0,"kB5mhb"));O=U.next().value;var K1=U.next().value,JG=O;U=_.p(_.t7(0,void 0,"dnDmUd"));var $X=U.next().value,HI=U.next().value,
uE=function(){var yP,IF=(yP=v.data())==null?void 0:yP.responsiveContainerConfiguration,QP,T3;return IF?s8L(IF==null?void 0:IF.responsiveSize):(T3=(QP=v.sizing)==null?void 0:QP.call(v))!=null?T3:"STANDARD"};
U=_.o0(function(){return!e()&&a()>0},void 0,"ZIGxke");
O=_.o0(function(){return!e()&&a()<Y()-t()},void 0,"OJzhRd");
var WI=function(){M(n(a()-f()));E(a())},bX=function(){M(n(a()+f()));
E(a())},n0=function(){b.value!==null&&fl()},qi;
_.l5(function(){fl();window.ResizeObserver?(qi=new ResizeObserver(_.me(n0,0)),qi.observe(b.value)):window.addEventListener("resize",n0)});
_.Fp(function(){if(window.ResizeObserver){var yP;(yP=qi)==null||yP.disconnect()}else window.removeEventListener("resize",n0)});
var fl=function(){var yP=b.value.clientWidth,IF=v.includeMargin!==void 0?v.includeMargin():!1,QP;var T3=v.hasPeek!==void 0?v.hasPeek():!((QP=v.data())==null||!QP.hasPeek);yP=_.uS({containerWidth:yP,hasPeek:T3,sizing:uE(),marginSettings:IF?F()?4:1:0});K1(yP.gutter);HI(yP.margin);T(yP.itemWidth);MF(yP.maxContainerWidth<528||F());xX(yP.maxContainerWidth);x()&&d((yP.itemWidth+yP.gutter)*x().length-yP.gutter)};
return _.w("horizontal-shelf-view-model",{class:_.W8("ytwHorizontalShelfViewModelHost",v.className),el:b},_.w(_.x6,{cond:function(){return v.data().header},
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.tZ({width:function(){return t()+"px"},
padding:function(){return"0 "+$X()+"px"}})},_.w(_.mI,{data:function(){return v.data().header}},{sectionHeaderViewModel:function(yP){return _.w(_.$f,{data:yP.data,
disableHorizontalPadding:!0,forceSmallLayout:QE,useResponsiveLayout:!0})}}))}}),_.w("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.w("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.tZ({width:function(){return t()+"px"},
padding:function(){return"0 "+$X()+"px"},
overflow:function(){return e()?"auto":"hidden"}})},_.w("div",{class:"ytwHorizontalShelfViewModelItems",
el:l,style:r},_.w(_.mI,{data:x},{macroMarkerListItemViewModel:function(yP,IF){return _.w("div",{style:_.tZ({width:function(){return L()+"px"},
"margin-right":function(){return(IF()===x().length-1?0:JG())+"px"}})},_.w(h2g,{data:yP.data,
palette:_.SI(v.palette),isLastItem:function(){return IF()===x().length-1}}))},
lockupViewModel:function(yP,IF){var QP=yP.data;return _.w("div",{style:_.tZ({width:function(){return L()+"px"},
"margin-right":function(){return(IF()===x().length-1?0:JG())+"px"}})},_.w(_.kx,{data:QP,
containerType:4,sizing:uE,protectBackground:v.protectBackground,thumbnailFixedWidth:function(){return SvI(QP())+"px"},
thumbnailTargetWidth:function(){return SvI(QP())}}))}}))),_.w(_.x6,{cond:U,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.w(_.mI,{data:y},{buttonViewModel:function(yP){return _.w(_.C7,{data:yP.data,onClick:WI})}}))}}),_.w(_.x6,{cond:O,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.w(_.mI,{data:Q},{buttonViewModel:function(yP){return _.w(_.C7,{data:yP.data,onClick:bX})}}))}})))},"Ic");
_.bB.idomCompat=!0;var A3P=_.qu(function(v){var E=function(){return v.data().targetId||""},n=function(){var r;
return((r=v.data())==null?void 0:r.expansionEntityKey)||""},f=_.Bi(_.qgQ,n),x=function(){var r;
return((r=f())==null?void 0:r.value)===E()},y=function(r){_.Mu(_.n7("stringEntity",n(),{key:n(),
value:r?E():""}))};
_.mM(function(){v.data().isExpanded&&y(!0)});
var Q=function(){if(x()){var r=!0;v.onCollapse!==void 0&&(r=v.onCollapse());r&&y(!1)}else y(!0)},e=_.ij(Q),F=function(){var r;
return(((r=v.accordionStyle)==null?void 0:r.call(v))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},b={},l={};
return _.w("yt-accordion-item-view-model",{class:_.W8("ytAccordionItemViewModelHost",v.className,(b.ytAccordionItemViewModelExpanded=function(){return x()},b.ytAccordionItemViewModelHidden=function(){var r;
return(r=v.hideIfNotExpanded)==null?void 0:r.call(v)},b.ytAccordionItemViewModelMini=F,b)),
"data-target-id":E},_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:"ytAccordionItemViewModelLeftSection","on:click":e},_.w(_.nh,{text:function(){return v.data().title},
className:"ytAccordionItemViewModelLabel"})),_.w("div",{class:"ytAccordionItemViewModelRightSection"},_.w(_.mI,{data:function(){return x()?v.data().expandButton:v.data().collapseButton}},{buttonViewModel:function(r){return _.w(_.C7,{data:r.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Q})}}))),_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:_.W8("ytAccordionItemViewModelContent",(l.ytAccordionItemViewModelExpandedSubtitle=function(){return x()},l))},_.w(_.x6,{cond:function(){return!F()},
then:function(){return _.w(_.nh,{text:function(){return v.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.w(_.mI,{data:function(){return v.data().content}},{horizontalShelfViewModel:function(r){return _.w(_.bB,{data:r.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Jc");_.VEw=_.qu(function(v){var E=_.p((0,_.FBo)(v.data)).next().value,n=function(){return v.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},f=function(){return n()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x=_.p(_.t7(!0,void 0,"ewf0jb")),y=x.next().value,Q=x.next().value,e=function(){return f()&&y()},F=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Q(!y())}}};
x={};return _.w("yt-accordion-view-model",{class:_.W8("ytAccordionViewModelHost",(x.ytAccordionViewModelMinimized=function(){return e()},x)),
"data-target-id":function(){return v.data().targetId||""}},_.w(_.x6,{cond:function(){return f()||!!E().title},
then:function(){return _.w("div",{class:"ytAccordionViewModelHeader"},_.w(_.nh,{text:function(){return E().title},
className:"ytAccordionViewModelTitle"}),_.w(_.x6,{cond:f,then:function(){return _.w(WT,{data:F,iconName:function(){return e()?"chevron_down":"chevron_up"}})}}))}}),_.w("div",{class:"ytAccordionViewModelContent"},_.w(_.mI,{data:function(){return E().contents}},{accordionItemViewModel:function(b){return _.w(A3P,{data:b.data,
className:"ytAccordionViewModelRow",accordionStyle:n,hideIfNotExpanded:e,onCollapse:function(){return f()?(Q(!0),!1):!0}})}})),_.w("div",null,_.w(_.x6,{cond:function(){return!f()},
then:function(){return _.w(_.nh,{text:function(){return E().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Kc");_.Yz(_.VEw,"yt-accordion-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E,n=(E=_.P().resolve(_.jp(_.aj)))==null?void 0:E(),f=_.p(_.t7(!1,void 0,"XM2Sxc"));E=f.next().value;var x=f.next().value;f=_.p(_.t7(!0,void 0,"Jgzg2d"));var y=f.next().value,Q=f.next().value,e=_.Ig(),F=function(M){x(!0);M={learningJourneyFormData:{query:M}};_.lj(v.data().searchEndpoint||{},{form:{formData:M}});return!1};
f=_.ij(function(){Q(e.value.value.length===0)});
var b=_.ij(function(M){if(M.key==="Enter"&&!M.shiftKey&&!y()){var U=M.target;M.preventDefault();F(U.value)}}),l={},r={},a={};
return _.w("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.w("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.w(_.UZ,{data:function(){return v.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.w("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.w("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.w("div",{class:_.W8("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=n,l))},_.w("textarea",{class:_.W8("ytLearningJourneyZeroStateTextInput",(r.ytLearningJourneyZeroStateTextInputDark=n,r)),el:e,"on:keyup":f,"on:keydown":b,placeholder:"What do you want to learn?",
rows:1})),_.w("div",{class:_.W8("ytLearningJourneyZeroStateSearchButtonContainer",(a.ytLearningJourneyZeroStateSearchButtonContainerDark=n,a))},_.w(_.C7,{data:function(){return _.C(v.data().searchButton,_.wQ)},
className:"search-button",onClick:function(){return F(e.value.value)},
buttonOverrides:function(){return{disabled:y(),style:n?"mono-inverse":"mono",size:"XL"}}}))),_.w(_.x6,{cond:function(){return!!v.data().errorBanner},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.w(_.mI,{data:function(){return v.data().errorBanner}},{alertBannerViewModel:_.fP4}))}})),_.w(_.x6,{cond:E,
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.w(_.mI,{data:function(){return v.data().loader}},{learningJourneyLoaderViewModel:function(M){return _.w(_.IPw,{data:M.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.w("div",null,_.w(_.x6,{cond:function(){return!!v.data().learningJourneyShelf},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().learningJourneySectionTitle}),_.w(_.mI,{data:function(){return v.data().learningJourneyShelf}},{horizontalShelfViewModel:_.bB}))}}),_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().suggestedJourneySectionTitle}),
_.w(_.mI,{data:function(){return v.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(M){return _.w(wz,{data:M.data,
layout:1})}})))}}))},"Lc"),"yt-learning-journey-zero-state",{props:{data:_.Kt}});var D5o=_.qu(function(v){var E=v.data;return _.w("ytvl-live-leaderboard-item-action-content-view-model",{class:_.W8("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.w(_.nh,{text:function(){var n;return(n=E())==null?void 0:n.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.w(_.mI,{data:function(){return E().actionButton}},{buttonViewModel:function(n){return _.w(_.C7,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:n.data})}}))},"Mc");var HAl=_.qu(function(v){var E=v.data;return _.w("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.W8("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.w(_.nh,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var n;return(n=E())==null?void 0:n.displayName},
ellipsisTruncate:!0}),_.w(_.mI,{data:function(){return E().badge}},{buttonViewModel:function(n){return _.w(_.C7,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:n.data})}}))},"Nc");_.Yz(_.qu(function(v){var E=v.data;return _.w("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.w("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.w(_.nh,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var n;return(n=E())==null?void 0:n.rank}})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.w(_.mI,{data:function(){return E().avatar}},{avatarViewModel:_.XK})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.w(_.mI,{data:function(){return E().content}},{liveLeaderboardItemChannelContentViewModel:HAl,
liveLeaderboardItemActionContentViewModel:D5o})),_.w(_.nh,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var n;return(n=E())==null?void 0:n.points}}))},"Oc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;return _.w("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.w(_.nh,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var n,f;return(n=E())==null?void 0:(f=n.ranking)==null?void 0:f.rank}}),_.w("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.w(_.mI,{data:function(){return E().avatar}},{avatarViewModel:_.XK})),_.w(_.nh,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var n,f;return(n=E())==null?void 0:(f=n.channelContent)==null?void 0:f.channelName}}),_.w(_.nh,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var n;return(n=E())==null?void 0:n.points}}))},"Pc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Kt}});var g1z=_.qu(function(v){v=_.Ue(v,{wrapper:!1}).wrapper;return _.w(_.x6,{cond:v,then:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.w("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Qc");
g1z.idomCompat=!0;var NDg=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],uFw=_.qu(function(v){var E=v.data;var n=_.Ig(),f=_.o0(function(){return E().command},void 0,"CGDtVe");
_.Xp(function(){f()&&_.mG(f(),{form:{element:n.value}})});
return _.w("div",{el:n},_.w(_.x6,{cond:function(){return E().qrCodeImage},
then:function(x){return _.w(_.UZ,{data:x,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.w(_.x6,{cond:function(){return E().spinner},
then:function(){return _.w(g1z,null)}})}}),_.w(_.x6,{cond:function(){return E().label},
then:function(x){return _.w(_.nh,{text:x,className:"YtQrCodeRendererHostLabel"})}}),_.w(_.x6,{cond:function(){return E().labels},
then:function(x){return _.w("div",{class:"YtQrCodeRendererHostLabels"},_.w(_.cG,{each:x},function(y){return _.w(_.nh,{text:y})}))}}))},"Sc");_.Yz(_.qu(function(v){var E=v.data;var n=_.o0(function(){return E().qrEntityKey},void 0,"joYCxd"),f=_.o0(function(){return E().deleteEntityOnDismiss},void 0,"x3yAde"),x=_.o0(function(){return E().command},void 0,"dJe1Re"),y=_.Bi(BEs,n);
v=_.o0(function(){return E().style&&NDg.includes(E().style)},void 0,"rGILzf");
var Q=_.Ig();_.gt(Q,{visibilityCallback:function(e){e&&x()&&_.mG(x())},
showOption:{calledOnce:!0,state:"visible"}});_.l5(function(){_.Fp(function(){f()&&n()&&_.Zj().dispatch(_.n7("qrCodeEntity",n()))})});
return _.w("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Q},_.w(_.x6,{cond:v,then:function(){return _.w(_.x6,{cond:y,then:function(e){return _.w(uFw,{data:e})}})}}))},"Rc"),"yt-qr-code-renderer",{props:{data:_.Kt}});_.jAg=_.qu(function(v){var E=v.data;var n=v.topbarOffset;var f,x=((f=_.P().resolve(_.jp(_.aj)))==null?void 0:f())||!1;return _.w("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var y=E();var Q,e,F=x?(Q=y.config)==null?void 0:Q.darkThemeBackgroundColor:(e=y.config)==null?void 0:e.lightThemeBackgroundColor;y=F?_.p2(F):void 0;y="background-color: "+y+";";n!==void 0&&(y+="top: -"+n()+"px;");return y},
"aria-hidden":!0},_.w(_.x6,{cond:function(){var y,Q,e;return!!((y=E().backgroundImageConfig)==null?0:(Q=y.image)==null?0:(e=Q.sources)==null?0:e.length)},
then:function(){return _.w(_.UZ,{data:function(){var y;return(y=E().backgroundImageConfig)==null?void 0:y.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.w("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+UcG(x,E().gradientColorConfig)+";"}}))},"Tc");
_.jAg.idomCompat=!0;_.Nw(qv$);var OAP=_.qu(function(v){var E=v.className;var n=v.data;var f=v.isOverlay;var x=v.maxLinesOverride;var y=v.useMediumText;v=_.Ig();var Q=function(){return n().alwaysShowTruncationText},e=function(){return n().truncationText},F=function(){var M,U;
return(U=(M=_.C(n().rendererContext,_.AF))==null?void 0:M.label)!=null?U:""},b=_.p(_.t7(!1,void 0,"UGEJpb")),l=b.next().value,r=b.next().value;
_.Ya(v,function(){return n().rendererContext});
b=_.ij(function(){n().expandOnTap&&r(!l());return!1});
var a={};return _.w("yt-description-preview-view-model",{el:v,class:_.W8("yt-description-preview-view-model-wiz",E,(a["yt-description-preview-view-model-wiz--clickable"]=function(){var M;return!((M=_.C(n().rendererContext,hF))==null||!M.onTap)},a["yt-description-preview-view-model-wiz--is-overlay"]=f,a)),
"on:click":b},_.w(_.x6,{cond:function(){return n().description},
then:function(M){return _.w(_.x6,{cond:l,then:function(){var U={};return _.w("div",{class:_.W8("yt-description-preview-view-model-wiz__description",(U["yt-description-preview-view-model-wiz__description--medium-text"]=y,U))},_.w(_.nh,{text:M}))},
else:function(){return _.w(bbU,{text:M,alwaysShowTruncationText:Q,truncationText:e,maxLines:function(){var U;return(U=x==null?void 0:x())!=null?U:n().maxLines},
isOverlay:f,accessibilityLabel:F,useMediumText:y})}})}}))},"Uc"),kz6=_.Z("web_enable_sink_yt_description_preview_view_model")?OAP:qv$,WY1=_.Z("web_enable_sink_yt_description_preview_view_model")?OAP:_.GG(qv$);
OAP.idomCompat=!0;var $51=_.qu(function(v){var E=v.data;var n=v.isOverlay;return _.w("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.w("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.w(_.mI,{data:function(){return E().header}},{sectionHeaderViewModel:function(f){return _.w(_.$f,{data:f.data,
isOverlay:n})}})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.w(_.mI,{data:function(){return E().channelInfoButtons}},{flexibleActionsViewModel:wz})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.w(_.mI,{data:function(){return E().description}},{descriptionPreviewViewModel:function(f){return _.w(WY1,{data:f.data,
isOverlay:n})}})))},"Vc");
$51.idomCompat=!0;var LYw=_.qu(function(v){var E=v.data;var n={};return _.w("factoid-view-model",{class:_.W8("ytwFactoidViewModelHost",(n.ytwFactoidViewModelHostOverlay=v.isOverlay,n))},_.w(_.nh,{text:function(){return E().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.w(_.nh,{text:function(){return E().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Wc");
LYw.idomCompat=!0;var Gz1=_.qu(function(v){var E=v.data;var n=v.isOverlay;return _.w("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.w(_.mI,{data:function(){return E().factoids}},{factoidViewModel:function(f){return _.w(LYw,{data:f.data,
isOverlay:n})}}))},"Xc");
Gz1.idomCompat=!0;_.TDz=_.qu(function(v){var E=v.data;var n=v.isOverlay;return _.w("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.w(_.mI,{data:function(){return E().items}},{channelInfoViewModel:function(f){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w($51,{data:f.data,
isOverlay:n}))},
coursePerksViewModel:function(f){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(q7S,{data:f.data,isOverlay:n}))},
descriptionPreviewViewModel:function(f){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(WY1,{data:f.data,isOverlay:n}))},
factoidsRowViewModel:function(f){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(Gz1,{data:f.data,isOverlay:n}))}}))},"Yc");var iA1=_.qu(function(v){return _.w("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.w(_.mI,{data:function(){return v.data().content}},{courseMetadataViewModel:function(E){return _.w(_.TDz,{data:E.data,
isOverlay:v.isOverlay})}}))},"Zc");var z24=_.qu(function(v){var E=v.data;v=v.className;var n=_.Ig(),f=function(){var y;return _.dQ((y=E())==null?void 0:y.rendererContext)},x={};
x=(x["dynamic-text-view-model-wiz"]=!0,x["dynamic-text-view-model-wiz--tappable"]=function(){return f()},x);
_.Ya(n,function(){var y;return(y=E())==null?void 0:y.rendererContext});
return _.w("yt-dynamic-text-view-model",{el:n,role:function(){return f()?"link":void 0},
tabindex:function(){return f()?0:void 0},
class:_.W8(v,x)},_.w("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var y,Q,e;return(e=(Q=_.C((y=E())==null?void 0:y.rendererContext,_.AF))==null?void 0:Q.label)!=null?e:""}},_.w(_.nh,{text:function(){return E().text},
userInput:!0})))},"$c");
z24.idomCompat=!0;_.lB=_.qu(function(v){var E=v.data;var n=v.isPositionRelative;var f=_.Y$(),x=_.IyQ("(max-width: 527.9px)"),y=function(){var Q,e;return(e=(Q=E())==null?void 0:Q.style)!=null?e:"IMAGE_BANNER_STYLE_FULL_BLEED"};
v={};v=(v["yt-image-banner-view-model-wiz"]=!0,v["yt-image-banner-view-model-wiz--inset"]=function(){return Yv1(y())},v["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.ba(!0)&&!(n==null?0:n())},v["yt-image-banner-view-model-wiz--small-inset"]=function(){return Yv1(y())&&x()},v["yt-image-banner-view-model-wiz--tappable"]=function(){var Q;
return _.ba(f.value)&&_.dQ((Q=E())==null?void 0:Q.rendererContext)},v);
_.Ya(f,function(){var Q;return(Q=E())==null?void 0:Q.rendererContext});
return _.w("yt-image-banner-view-model",{el:f,class:_.W8(v)},_.w(_.x6,{cond:function(){var Q;return(Q=E())==null?void 0:Q.image},
then:function(){return _.w(_.UZ,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.w(_.mI,{data:function(){var Q;
return(Q=E())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:hhS}))},"ad");
_.lB.idomCompat=!0;var Jy=_.p7({descriptionPreviewViewModel:kz6,dynamicTextViewModel:z24,contentPreviewImageViewModel:_.N8,contentMetadataViewModel:nPo,flexibleActionsViewModel:PPz,attributionViewModel:uv,imageBannerViewModel:_.lB,decoratedAvatarViewModel:HPS,cinematicContainerViewModel:_.jAg,flexibleContainer:iA1});_.Nw(urE);var R21,tEX;R21=_.qu(function(v){var E=v.condition;var n=v.content;return _.w(_.x6,{cond:E,then:function(){return _.w("div",{class:"page-header-view-model-wiz__scroll-container"},n())},
else:function(){return n()}})},"bd");
tEX=_.qu(function(v){var E=v.data;var n=v.noPadding;var f=v.enableBanner;var x=v.cinematicContainerTopbarOffset;var y=v.allowCinematicContainerOverflow;var Q=v.displayAsSidebar;var e=v.displayAsPanel;var F=h7X(),b=function(){return!!E().image||!!E().animatedImage},l=function(){return!!E().background},r=function(){return(Q==null?0:Q())||(e==null?0:e())?1:F()},a=function(){return r()===1},M=function(){return a()||r()===2},U=function(){return r()===4},d=function(){return dc1(E(),!!E().heroImage,r(),
AN$(E()),Q==null?void 0:Q())};
v={};v=_.W8((v["page-header-view-model-wiz"]=!0,v["page-header-view-model-wiz--no-padding"]=function(){return!(n==null||!n())},v["page-header-view-model-wiz--small-top-padding"]=function(){return a()&&!E().actions||r()===2&&!(b()||E().heroImage)},v["page-header-view-model-wiz--small-bottom-padding"]=function(){return M()&&!E().actions},v["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(y==null?0:y())},v["page-header-view-model-wiz--display-as-sidebar"]=Q,v["page-header-view-model-wiz--display-as-panel"]=
e,v));
var Y={},V=_.W8((Y["page-header-view-model-wiz__page-header-headline"]=!0,Y["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return d().allowFullWidth},Y)),O=function(){return a()&&(!!E().heroImage||b())&&AN$(E())>0},T=function(){return O()&&(e==null?void 0:e())};
Y={};var L=_.W8((Y["page-header-view-model-wiz__page-header-title"]=!0,Y["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!O()},Y["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return O()&&!T()},Y["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=T,Y["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=l,Y));
Y={};var xX=_.W8((Y["page-header-view-model-wiz__page-header-headline-image"]=!0,Y["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!E().heroImage&&M()},Y));
Y={};var t=_.W8((Y["page-header-view-model-wiz__page-header-banner-container"]=f,Y["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var JG;return(f==null?void 0:f())&&((JG=_.C(E().banner,_.NZG))==null?void 0:JG.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Y));
Y={};var QE=_.W8((Y["page-header-view-model-wiz__page-header-content-metadata"]=!0,Y["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=l,Y));Y={};var MF=_.W8((Y["page-header-view-model-wiz__page-header-flexible-actions"]=!0,Y["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!E().metadata||M()},Y["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!M()},Y));
Y={};var K1=_.W8((Y["page-header-view-model-wiz__page-header-attribution"]=!0,Y["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=l,Y));return _.w("yt-page-header-view-model",{class:v},_.w(_.x6,{cond:l,then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-background"},_.w(_.mI,{data:function(){return E().background}},{cinematicContainerViewModel:function(JG){return _.w(_.jAg,{data:JG.data,
topbarOffset:x})}}))}}),_.w(R21,{condition:function(){return!(Q==null||!Q())},
content:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-content"},_.w(_.x6,{cond:function(){return(f==null?void 0:f())&&E().banner},
then:function(){return _.w("div",{class:t},_.w(_.mI,{data:function(){return E().banner}},{imageBannerViewModel:_.lB}))}}),_.w("div",{class:V},_.w(_.x6,{cond:b,
then:function(){return _.w(_.mI,{data:function(){var JG;(JG=E().animatedImage)||(JG=E(),b()&&(JG=Object.assign({},JG),DcA(JG,r(),AN$(E()))),JG=JG.image);return JG}},{contentPreviewImageViewModel:function(JG){return _.w(_.N8,{data:JG.data,
className:xX,imageSizeConfig:d})},
decoratedAvatarViewModel:function(JG){return _.w(_.ez,{data:JG.data,className:xX})}})}}),_.w(_.x6,{cond:function(){return!!E().heroImage&&!(M()&&!d().allowFullWidth)},
then:function(){return _.w(_.mI,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(JG){return _.w(_.N8,{data:JG.data,
className:xX,imageSizeConfig:d})}})}}),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.x6,{cond:function(){return!!E().heroImage&&M()&&!d().allowFullWidth},
then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.w(_.mI,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(JG){return _.w(_.N8,{data:JG.data,
className:xX,imageSizeConfig:d})}}))}}),_.w(_.mI,{data:function(){return E().title}},{dynamicTextViewModel:function(JG){return _.w(z24,{data:JG.data,
className:L})}}),_.w(_.mI,{data:function(){return E().metadata}},{contentMetadataViewModel:function(JG){return _.w(_.oPP,{data:JG.data,
layout:function(){return a()?1:0},
className:QE,isOverlay:l,useMediumText:U})}}),_.w(_.x6,{cond:function(){return E().description&&!a()},
then:function(){return _.w(_.mI,{data:function(){return E().description}},{descriptionPreviewViewModel:function(JG){return _.w(WY1,{data:JG.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:l,maxLinesOverride:function(){return a()?void 0:1},
useMediumText:U})}})}}),_.w(_.x6,{cond:function(){return E().attribution&&!M()},
then:function(){return _.w(_.mI,{data:function(){return E().attribution}},{attributionViewModel:function(JG){return _.w(uv,{data:JG.data,
className:K1,useMediumText:U})}})}}),_.w(_.x6,{cond:function(){return E().actions&&!M()},
then:function(){return _.w(_.mI,{data:function(){return E().actions}},{flexibleActionsViewModel:function(JG){return _.w(wz,{data:JG.data,
layout:function(){return HNI(r())},
className:MF})}})}}))),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.x6,{cond:function(){return E().description&&a()},
then:function(){return _.w(_.mI,{data:function(){return E().description}},{descriptionPreviewViewModel:function(JG){return _.w(WY1,{data:JG.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:l,maxLinesOverride:function(){return a()?void 0:1},
useMediumText:U})}})}}),_.w(_.x6,{cond:function(){return E().attribution&&M()},
then:function(){return _.w(_.mI,{data:function(){return E().attribution}},{attributionViewModel:function(JG){return _.w(uv,{data:JG.data,
className:K1,useMediumText:U})}})}}),_.w(_.x6,{cond:function(){return E().actions&&M()},
then:function(){return _.w(_.mI,{data:function(){return E().actions}},{flexibleActionsViewModel:function(JG){return _.w(wz,{data:JG.data,
layout:function(){return HNI(r())},
className:MF})}})}})),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.mI,{data:function(){return E().bottomMetadataFlexibleContainer}},{flexibleContainer:function(JG){return _.w(iA1,{data:JG.data,
isOverlay:l})}})))}}))},"cd");
_.BDP=_.Z("web_enable_sink_page_header_view_model")?tEX:urE;_.v36=_.Z("web_enable_sink_page_header_view_model")?tEX:_.GG(urE);tEX.idomCompat=!0;_.Yz(_.qu(function(v){var E=_.p(_.t7(!1,void 0,"vVRl3b")),n=E.next().value,f=E.next().value;return _.w("yt-official-card-view-model",{class:_.W8("ytOfficialCardViewModelHost",v.className),style:_.tZ({"background-color":function(){var x,y=bO$((x=v.data())==null?void 0:x.backgroundColor);return y?_.Qt(y):void 0}})},_.w(_.mI,{data:function(){return v.data().header}},{pageHeaderViewModel:function(x){return _.w(_.v36,{data:x.data,
noPadding:!0})}}),_.w("div",{class:"ytOfficialCardViewModelContents"},_.w(_.mI,{data:function(){return v.data().contents}},{horizontalShelfViewModel:_.bB})),_.w(_.x6,{cond:n,
then:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandedContent"},_.w(_.mI,{data:function(){return v.data().expandedContents}},{horizontalShelfViewModel:function(x){return _.w(_.bB,{data:x.data,
sizing:"MINI"})}}),_.w("div",{class:"ytOfficialCardViewModelCollapseButton"},_.w(_.mI,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
onClick:function(){f(!n())}})}})))},
else:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandButton"},_.w(_.mI,{data:function(){return v.data().expandButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
onClick:function(){f(!n())}})}}))}}))},"dd"),"yt-official-card-view-model",{props:{data:_.Kt,
className:_.Kt}});var jMN=_.p7({buttonViewModel:_.C7});_.Nw(ON9);_.uj(ON9,"ytw-search-friction-view-model",{propNames:["data"]});_.sD=_.qu(function(v){var E=_.Ig(),n,f=(n=_.P().resolve(_.jp(_.aj)))==null?void 0:n();_.Xp(function(){var x=E.value;var y=new QOX,Q=new Map(y.JSC$7197_sanitizerTable.globalAttributePolicies);Q.set("style",{policyAction:4});y.JSC$7197_sanitizerTable=new wx(y.JSC$7197_sanitizerTable.allowedElements,y.JSC$7197_sanitizerTable.elementPolicies,y.JSC$7197_sanitizerTable.allowedGlobalAttributes,Q,y.JSC$7197_sanitizerTable.globallyAllowedAttributePrefixes);var e=["data-time"];if(e===void 0)Q=new Set(y.JSC$7197_sanitizerTable.globallyAllowedAttributePrefixes),
Q.add("data-"),y.JSC$7197_sanitizerTable=new wx(y.JSC$7197_sanitizerTable.allowedElements,y.JSC$7197_sanitizerTable.elementPolicies,y.JSC$7197_sanitizerTable.allowedGlobalAttributes,y.JSC$7197_sanitizerTable.globalAttributePolicies,Q);else{Q=new Set(y.JSC$7197_sanitizerTable.allowedGlobalAttributes);e=_.p(e);for(var F=e.next();!F.done;F=e.next()){F=F.value;if(F.indexOf("data-")!==0)throw Error("qa`"+F);Q.add(F)}y.JSC$7197_sanitizerTable=new wx(y.JSC$7197_sanitizerTable.allowedElements,y.JSC$7197_sanitizerTable.elementPolicies,
Q,y.JSC$7197_sanitizerTable.globalAttributePolicies,y.JSC$7197_sanitizerTable.globallyAllowedAttributePrefixes)}Q=new Set(y.JSC$7197_sanitizerTable.allowedGlobalAttributes);Q.add("class");y.JSC$7197_sanitizerTable=new wx(y.JSC$7197_sanitizerTable.allowedElements,y.JSC$7197_sanitizerTable.elementPolicies,Q,y.JSC$7197_sanitizerTable.globalAttributePolicies,y.JSC$7197_sanitizerTable.globallyAllowedAttributePrefixes);_.Dd(x,_.f1g(y.build(),WTN(v.text())));$cE(E.value)});
n={};return _.w("div",null,_.w("markdown-div",{class:_.W8("ytwMarkdownDivHost",(n.ytwMarkdownDivDark=f,n.ytwMarkdownDivHostSmall=function(){var x;return((x=v.isSmallText)==null?void 0:x.call(v))||!1},n)),
el:E}))},"ed");
_.sD.idomCompat=!0;var E3l=_.qu(function(v){var E=v.imageData;var n=_.SI(v.isInList,!1),f=function(){return n()?{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 _.w("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.w(_.x6,{cond:function(){return E().image},
then:function(x){return _.w(_.UZ,{data:x,alt:function(){return f().alt},
contentMode:function(){return f().contentMode},
targetWidth:function(){return f().targetWidth},
targetHeight:function(){return f().targetHeight},
className:function(){return f().className}})}}),_.w("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.w("div",{class:_.W8("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.w(_.nh,{text:function(){return E().title}})),_.w(_.cG,{each:function(){var x;
return(x=E().description)!=null?x:[]}},function(x){return _.w("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.w(r5,{content:x}))})))},"fd"),n3w=_.qu(function(v){var E=v.list;
var n=function(){var f;return(f=E().items)!=null?f:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelListContent"},_.w(_.x6,{cond:function(){return E().title},
then:function(f){return _.w("div",{class:_.W8("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.w(_.nh,{text:f}))}}),_.w(_.x6,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.w("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.w(_.cG,{each:n},function(f){return _.w("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.w(r5,{content:f,isInList:!0}))}))}}),_.w(_.x6,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.w("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.w(_.cG,{each:n},function(f){return _.w("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.w(r5,{content:f,isInList:!0}))}))}}),_.w(_.x6,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelImageList"},_.w(_.cG,{each:n},function(f){return _.w("div",{class:"ytwGenAiRichTextViewModelListItem"},_.w(r5,{content:f,isInList:!0}))}))}}))},"gd"),o3S=_.qu(function(v){var E=v.table;
return _.w("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.w("thead",null,_.w("tr",null,_.w(_.cG,{each:function(){var n,f;return(f=(n=E().header)==null?void 0:n.cells)!=null?f:[]}},function(n){return _.w("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.w(_.cG,{each:function(){return n.contents}},function(f){return _.w(r5,{content:f})}))}))),_.w("tbody",null,_.w(_.cG,{each:function(){var n;
return(n=E().rows)!=null?n:[]}},function(n){return _.w("tr",null,_.w(_.cG,{each:function(){return n.cells}},function(f){return _.w("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.w(_.cG,{each:function(){return f.contents}},function(x){return _.w(r5,{content:x})}))}))})))},"hd"),r5=_.qu(function(v){var E=v.content;
var n=_.SI(v.isInList,!1),f=function(){var x,y;return(y=(x=E().contentBlock)==null?void 0:x.contents)!=null?y:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.w(_.x6,{cond:function(){return E().text},
then:function(x){return _.w(_.nh,{className:"ytwGenAiRichTextViewModelText",text:x})}}),_.w(_.x6,{cond:function(){return E().image},
then:function(x){return _.w(E3l,{imageData:x,isInList:n})}}),_.w(_.x6,{cond:function(){return E().list},
then:function(x){return _.w(n3w,{list:x})}}),_.w(_.x6,{cond:function(){return E().contentBlock},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.w(_.cG,{each:f},function(x){return _.w(r5,{content:x,isInList:!1})}))}}),_.w(_.x6,{cond:function(){return E().table},
then:function(x){return _.w(o3S,{table:x})}}))},"id"),fiX=_.qu(function(v){var E={};
E=_.LR("ytwGenAiRichTextViewModelHost",(E.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.$6("search_overview_link_style")),E));return _.w("gen-ai-rich-text-view-model",{class:E},_.w(r5,{content:function(){return v.data().content}}))},"jd");_.Nw(LTs);_.Nw(KU);_.xRg=_.qu(function(v){var E=v.data;var n=function(){var d;return((d=E().loadingUi)!=null?d:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},f=function(){return E().isLoading&&(n()==="UNSPECIFIED"||n()==="GHOST_CARD")},x=function(){return!E().isLoading},y=function(){return!!E().content&&!E().contents},Q=function(){return!!E().contents},e=function(){return!!E().nextQueryButtons},F=function(){return E().isLoading&&n()==="INVISIBLE"},b=function(){var d,Y;
return(Y=(d=E().headerIcon)==null?void 0:d.iconType)!=null?Y:""},l=function(){var d;
return(d=E().content)!=null?d:""},r=function(){return!!E().sourcesSection},a,M=!((a=_.P().resolve(_.jp(_.aj)))==null||!a()),U=_.o0(function(){var d=[],Y=E().contents;
if(Y)for(var V=0;V<Y.length;V++){var O=_.C(Y&&Y[V],OMP);O&&d.push(O)}return d},void 0,"ycU97e");
_.l5(function(){E().isLoading||_.FD("so_re",void 0,"search_overview_answer")});
return _.w("ytd-overview-answer-view-model",{class:function(){var d={};d=(d.ytdOverviewAnswerViewModelHost=!0,d.ytdOverviewAnswerViewModelDarkBackground=M&&!F(),d.ytdOverviewAnswerViewModelLightBackground=!M&&!F(),d);return _.LR(d)}},_.w(_.x6,{cond:function(){return!F()},
then:function(){return _.w(_.gF,null,_.w("h2",null,_.w("div",{class:"ytdOverviewAnswerViewModelHeader"},_.w(_.x6,{cond:b,then:function(d){return _.w("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.w(_.B8,{icon:d}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.w("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return E().headerText}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.w(_.nh,{text:function(){return E().headerSubtext}}))))),_.w(_.x6,
{cond:f,
then:function(){return LTs()}}),_.w(_.x6,{cond:x,
then:function(){return _.w(_.gF,null,_.w(_.x6,{cond:y,then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelText"},_.w(_.sD,{text:l,isSmallText:!0}))}}),_.w(_.x6,{cond:Q,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelRichText"},_.w(_.cG,{each:U},function(d){return _.w(fiX,{data:d})}))}}),_.w(_.x6,{cond:e,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.w(_.mI,{data:function(){return E().nextQueryButtons}},{buttonViewModel:function(d){return _.w(_.C7,{data:d.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.bB}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.w("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.w(_.x6,{cond:function(){return!!_.C(E().likeButtonViewModel,rQ)&&!!_.C(E().dislikeButtonViewModel,PT)},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.w(_.ld,{data:function(){return _.C(E().likeButtonViewModel,rQ)},
disableIconAnimation:!0}),_.w(_.bd,{data:function(){return _.C(E().dislikeButtonViewModel,PT)}}))}})),_.w(_.x6,{cond:function(){var d;
return(d=E().sourcesSection)==null?void 0:d.headerText},
then:function(d){return _.w("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.w(_.nh,{text:d}))}})),_.w(_.x6,{cond:r,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelSources"},_.w(_.mI,{data:function(){var d;return(d=E().sourcesSection)==null?void 0:d.sourcesShelf}},{buttonViewModel:_.C7,
horizontalShelfViewModel:function(d){return _.w(_.bB,{data:d.data,includeMargin:!0,hasPeek:!0})}}))}}),_.w(_.x6,{cond:function(){return E().disclaimerText},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.w(_.nh,{text:function(){return E().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"kd");var cg1=_.qu(function(v){var E=v.data;var n=v.active;var f=_.Ig();_.Xp(function(){var x,y,Q,e=((x=_.P().resolve(_.jp(_.aj)))==null?0:x())?(y=E())==null?void 0:y.darkThemeColorPalette:(Q=E())==null?void 0:Q.lightThemeColorPalette;e&&(e.additiveBackground&&f.value.style.setProperty("--timestamp-active-background-color",_.Qt(e.additiveBackground)),e.textSecondary&&f.value.style.setProperty("--timestamp-active-color",_.p2(e.textSecondary)))},"KHcbwb");
v={};return _.w("transcript-segment-view-model",{class:_.W8("ytwTranscriptSegmentViewModelHost",(v.ytwTranscriptSegmentViewModelHostActive=n,v.ytwTranscriptSegmentViewModelHostModern=_.Z("enable_timeline_view_modern_transcript")||_.Z("enable_timeline_view_modern_transcript_fe"),v)),el:f},_.w(_.x6,{cond:function(){var x;return(x=E())==null?void 0:x.timestamp},
then:function(x){var y={};return _.w("div",{class:_.W8("ytwTranscriptSegmentViewModelTimestamp",(y.ytwTranscriptSegmentViewModelTimestampActive=n,y))},x)}}),_.w(_.nh,{text:function(){var x,y,Q;
return(Q=(x=E())==null?void 0:x.attributedText)!=null?Q:{content:(y=E())==null?void 0:y.simpleText}},
linkInheritColor:!0}))},"ld");var yg1=_.qu(function(v){var E=v.data;return _.w("div",{class:"yt-video-attributes-section-view-model__header"},_.w("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return E().headerTitle}),_.w(_.x6,{cond:function(){return E().headerSubtitle},
then:function(){return _.w("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return E().headerSubtitle})}}))},"md"),pSg=_.qu(function(v){function E(U){return Math.max(Math.min(U,0),b()-e())}
var n=v.data;var f=_.Ig(),x=_.Ig();v=_.p(_.t7(0,void 0,"ucDlDf"));var y=v.next().value,Q=v.next().value,e=y;v=_.p(_.t7(0,void 0,"lHzSub"));y=v.next().value;var F=v.next().value,b=y;v=_.p(_.t7(0,void 0,"Q8fDIe"));var l=v.next().value,r=v.next().value;_.l5(function(){var U=function(){Q(x.value.scrollWidth);F(f.value.clientWidth)};
U();if(window.ResizeObserver){var d=new ResizeObserver(U);d.observe(f.value);_.Fp(function(){d.disconnect()})}});
var a=function(){r(E(l()+b()))},M=function(){r(E(l()-b()))};
return _.w("yt-video-attributes-section-view-model",null,_.w("div",{class:"yt-video-attributes-section-view-model"},_.w(_.x6,{cond:function(){return n().headerTitle},
then:function(){return _.w(yg1,{data:n})}}),_.w("div",{class:_.W8("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:f},_.w("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.tZ({transform:function(){var U=l();_.MX("HTML_DIR")==="rtl"&&(U*=-1);return"translateX("+U+"px)"}}),
el:x},_.w(_.mI,{data:function(){return n().videoAttributeViewModels}},{videoAttributeViewModel:lnl}))),_.w(_.mI,{data:function(){return n().footerButton}},{buttonViewModel:function(U){return _.w(_.C7,{data:U.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.w(_.x6,{cond:function(){return l()<0&&n().previousButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.w(_.mI,{data:function(){return n().previousButton}},{buttonViewModel:function(U){return _.w(_.C7,{data:U.data,
onClick:a})}}))}}),_.w(_.x6,{cond:function(){return l()>b()-e()&&n().nextButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.w(_.mI,{data:function(){return n().nextButton}},{buttonViewModel:function(U){return _.w(_.C7,{data:U.data,
onClick:M})}}))}})))},"nd");
pSg.idomCompat=!0;var Qdg=_.qu(function(v){var E=v.data;var n=v.active;var f={},x={};return _.w("timeline-item-view-model",{class:_.W8("ytwTimelineItemViewModelHost",(f.ytwTimelineItemViewModelHostChapterChild=v.chapterChild,f.ytwTimelineItemViewModelModern=_.Z("enable_timeline_view_modern_transcript")||_.Z("enable_timeline_view_modern_transcript_fe"),f))},_.w("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.w("div",{class:_.W8("ytwTimelineItemViewModelTimestamp",(x.ytwTimelineItemViewModelTimestampActive=
n,x))},function(){return E().timestamp})),_.w("div",{class:"ytwTimelineItemViewModelContentItems"},_.w(_.mI,{data:function(){return E().contentItems}},{transcriptSegmentViewModel:function(y){return _.w(cg1,{data:y.data,
active:n})},
videoAttributesSectionViewModel:pSg})))},"od");var XS1=_.qu(function(v){var E=v.data;v={};return _.w("timeline-chapter-view-model",{class:_.W8("ytwTimelineChapterViewModelHost")},_.w("div",{class:_.W8("ytwTimelineChapterViewModelTitle",(v.ytwTimelineChapterViewModelModern=_.Z("enable_timeline_view_modern_transcript")||_.Z("enable_timeline_view_modern_transcript_fe"),v))},function(){return E().title}),_.w(_.mI,{data:function(){return E().contents}},{timelineItemViewModel:function(n){return _.w(Qdg,{data:n.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(n){return _.w(pSg,{data:n.data})}}))},"pd");var eW1=_.qu(function(v){var E=v.data;var n=_.Ig(),f=_.Bi(_.TEX,function(){var y;return(y=E().markersEngagementPanelSyncEntityKey)!=null?y:""}),x=function(){var y;
return((y=f())==null?void 0:y.activeItemIndex)===E().index};
v=_.ij(function(y){var Q,e,F,b,l;return _.X(function(r){if(r.nextAddress==1)return y.stopPropagation(),_.$ty(_.JF(y),n.value,["A".toString(),"BUTTON".toString()])?r.return():(Q=_.F$(E().onTap))?_.m(r,_.$_(),2):r.return();e=r.yieldResult;b=(F=_.C(Q,_.dM))==null?void 0:F.startTimeSeconds;b===void 0||(l=e)!=null&&l.seekTo(b,!0);_.yQ(r)})});
return _.w("macro-markers-panel-item-view-model",{class:_.W8("ytwMacroMarkersPanelItemViewModelHost",{"is-active":x}),el:n,"on:click":v,tabindex:0},_.w(_.mI,{data:function(){var y;return(y=E())==null?void 0:y.item}},{timelineChapterViewModel:function(y){return _.w(XS1,{data:y.data,
active:x})},
timelineItemViewModel:function(y){return _.w(Qdg,{data:y.data,active:x})},
videoAttributeViewModel:lnl}))},"qd");
eW1.idomCompat=!0;_.Yz(eW1,"macro-markers-panel-item-view-model",{props:{data:_.Kt}});_.Yz(pSg,"yt-video-attributes-section-view-model",{props:{data:_.Kt}});var FEU=_.qu(function(v){var E=function(){var n,f,x;return(x=(n=v.data().leadingLogoAccessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)!=null?x:""};
return _.w("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.w(_.x6,{cond:function(){return v.data().leadingLogo},
then:function(n){return _.w(_.UZ,{className:"ytwFantasySectionHeaderViewModelLogo",data:n,alt:E})}}),_.w("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.w(_.nh,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return v.data().title}}),_.w(_.nh,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return v.data().subtitle}})),_.w(_.mI,{data:function(){return v.data().trailingButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"rd");var mR1=_.qu(function(v){var E={};E=_.W8("ytwFantasyTeamViewModelHost",(E.ytwFantasyTeamViewModelCompact=function(){var x;return!((x=v.compact)==null||!x.call(v))},E.ytwFantasyTeamViewModelUser=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},E.ytwFantasyTeamViewModelOpponent=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},E));
var n=function(){var x,y,Q;return(Q=(x=v.data().teamLogoAccessibility)==null?void 0:(y=x.accessibilityData)==null?void 0:y.label)!=null?Q:""},f=_.Bi(zQX,function(){return v.data().teamEntityKey});
return _.w("ytw-fantasy-team-view-model",{class:E},_.w(_.x6,{cond:function(){return v.data().teamLogo},
then:function(x){return _.w(_.UZ,{className:"ytwFantasyTeamViewModelLogo",data:x,alt:n})}}),_.w("div",{class:"ytwFantasyTeamViewModelMetadata"},_.w("div",{class:"ytwFantasyTeamViewModelHeader"},_.w(_.nh,{className:"ytwFantasyTeamViewModelScore",
text:function(){var x;return(x=f())==null?void 0:x.score}}),_.w(_.B8,{icon:function(){var x;
return(x=f())==null?void 0:x.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.w(_.nh,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var x;return(x=f())==null?void 0:x.projectedScore}})),_.w(_.nh,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return v.data().primaryText}}),_.w(_.nh,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return v.data().secondaryText}}),_.w(_.nh,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return v.data().tertiaryText}})),_.w(_.nh,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var x;return(x=f())==null?void 0:x.score}}))},"sd");_.Yz(_.qu(function(v){return _.w("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.w("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.w(_.mI,{data:function(){return v.data().summaryHeader}},{fantasySectionHeaderViewModel:FEU})),_.w(_.mI,{data:function(){return v.data().userTeam}},{fantasyTeamViewModel:mR1}),_.w(_.mI,{data:function(){return v.data().opponentTeam}},{fantasyTeamViewModel:mR1}))},"td"),"fantasy-league-summary-view-model",{props:{data:_.Kt}});var wSo=_.qu(function(v){var E=_.Ue(v,{shape:{},useCustomTabRenderable:!1}),n=E.shape;E=E.useCustomTabRenderable;var f=v.customTabRenderable,x=function(){return n().disabled},y=function(){return n().selected},Q=function(){return n().title},e=function(){return n().icon},F=_.Ig();
v=_.ij(function(r){var a;if(!x()&&((a=n().aTagConfig)==null?0:a.onclick))n().aTagConfig.onclick(r);return!1});
var b=_.ij(function(r){if(r.key==="Enter"||r.key==="ArrowUp"||r.key==="ArrowDown")r.preventDefault(),F.value.click();return!1}),l={};
return _.w("yt-tab-shape",{class:_.W8("yt-tab-shape-wiz",function(){return n().className},(l["yt-tab-shape-wiz__tab--last-tab"]=function(){return n().isLastTab},l["yt-tab-shape-wiz--host-disabled"]=x,l["yt-tab-shape-wiz--host-clickable"]=!f,l)),
role:f?void 0:"tab","aria-selected":y!=null?y:!1,"aria-disabled":x,tabindex:f?void 0:0,"on:click":v,"on:keydown":b,el:F,"tab-identifier":function(){return n().identifier},
"tab-title":Q},_.w(_.x6,{cond:E,then:function(){return f()},
else:function(){var r={},a={};return _.w(_.gF,null,_.w("div",{class:_.W8("yt-tab-shape-wiz__tab",(r["yt-tab-shape-wiz__tab--tab-selected"]=y,r))},_.w(_.x6,{cond:e,then:function(M){return _.w(_.B8,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return M().iconType}})}}),Q),_.w("div",{class:_.W8("yt-tab-shape-wiz__tab-bar",(a["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=y,a))}))}}))},"ud");
wSo.idomCompat={callbacks:{customTabRenderable:!0}};_.liU=_.qu(function(v){var E=v.shape;v=_.p(_.t7(48,void 0,"S7XsSd"));var n=v.next().value,f=v.next().value;v=_.p(_.t7(0,void 0,"CzMxb"));var x=v.next().value,y=v.next().value,Q=function(){return E().tabs},e=_.Ig(),F=function(){var b,l;
return(l=(b=Q())==null?void 0:b.findIndex(function(r){return r.selected}))!=null?l:-1};
_.l5(function(){var b=e.value.querySelectorAll("yt-tab-shape"),l=F()>-1?b[F()]:void 0;requestAnimationFrame(function(){f((l==null?void 0:l.getBoundingClientRect().width)||0)})});
_.Xp(function(){var b=F();requestAnimationFrame(function(){var l=e.value.querySelectorAll("yt-tab-shape"),r;f(((r=b>-1?l[b]:void 0)==null?void 0:r.getBoundingClientRect().width)||0);for(var a=r=0;a<b;a++)r+=l[a].offsetWidth+24;_.MX("HTML_DIR")==="rtl"&&(r=-r);y(r)})});
v={};return _.w("yt-tab-group-shape",{class:_.W8("yt-tab-group-shape-wiz",(v["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return E().isOverflowHidden},v)),
el:e},_.w(_.x6,{cond:Q,then:function(b){return _.w(_.gF,null,_.w("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.w(_.cG,{each:b},function(l,r){return _.w(wSo,{shape:function(){return Object.assign({},l,{isLastTab:r()===b().length-1})},
customTabRenderable:l.customTabRenderable,useCustomTabRenderable:!!l.customTabRenderable})})),_.w(bfX,{width:n,
sliderOffset:x}))}}))},"vd");
_.liU.idomCompat=!0;var bfX=_.qu(function(v){var E=_.SI(v.sliderOffset,0),n=v.width;return _.w("div",{class:"yt-tab-group-shape-wiz__slider",style:_.tZ({width:function(){return n()+"px"},
transform:function(){return"translateX("+E()+"px)"}})})},"wd");var sd6=_.qu(function(v){var E=function(){var y,Q,e;return(e=(y=v.data().playerLogoAccessibility)==null?void 0:(Q=y.accessibilityData)==null?void 0:Q.label)!=null?e:""},n=_.Bi(RQ9,function(){return v.data().playerEntityKey}),f={};
f=_.W8("ytwFantasyPlayerViewModelHost",(f.ytwFantasyPlayerViewModelPlaying=function(){var y;return!((y=n())==null||!y.isPlayerPlaying)},f.ytwFantasyPlayerViewModelOnField=function(){var y;
return((y=n())==null?void 0:y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},f.ytwFantasyPlayerViewModelRedZone=function(){var y;
return((y=n())==null?void 0:y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},f));
var x=function(){var y,Q,e,F=((y=_.P().resolve(_.jp(_.aj)))==null?0:y())?(Q=v.data().playerLogoBackgroundColor)==null?void 0:Q.darkTheme:(e=v.data().playerLogoBackgroundColor)==null?void 0:e.lightTheme;return F===void 0?"":_.Qt(F)};
return _.w("ytw-fantasy-player-view-model",{class:f},_.w(_.x6,{cond:function(){return v.data().playerLogo},
then:function(y){return _.w("div",{class:"ytwFantasyPlayerViewModelLogo"},_.w("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.w(_.UZ,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.tZ({"background-color":x}),data:y,alt:E})),_.w("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.w(_.B8,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.w("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.w("div",{class:"ytwFantasyPlayerViewModelHeader"},_.w(_.nh,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var y;return(y=v.data())==null?void 0:y.playerNameText}}),_.w(_.nh,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var y;return(y=v.data())==null?void 0:y.playerDescriptionText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.nh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=n())==null?void 0:y.gamePeriodText}}),_.w(_.nh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=v.data())==null?void 0:y.opponentTeamText}}),_.w(_.nh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var y;return(y=n())==null?void 0:y.gameStatusText}}),_.w(_.nh,{className:_.W8("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var y;return(y=n())==null?void 0:y.playerStatusText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.nh,{text:function(){var y;
return(y=n())==null?void 0:y.playerStatsText}}))),_.w(_.nh,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var y;return(y=n())==null?void 0:y.fantasyScore}}))},"xd");var rgo=_.qu(function(v){return _.w("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.w(_.x6,{cond:function(){return v.data().players},
then:function(E){return _.w(_.mI,{data:E},{fantasyPlayerViewModel:sd6})}}))},"yd");var Pe4=_.qu(function(v){var E=_.p(_.Rj(function(){var x;return(x=v.data().selectedTabIdentifierKey)!=null?x:""})),n=E.next().value,f=E.next().value;
_.mM(function(){var x;(x=v.setSelectedTabSignal)==null||x.call(v,n)});
return _.w("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.w("div",{class:"ytTabbedViewModelTabGroup"},_.w(_.liU,{shape:function(){var x=v.data(),y=[],Q={tabs:y};if(!x.tabs)return Q;x=_.p(x.tabs);for(var e=x.next(),F={};!e.done;F={tabViewModel:void 0},e=x.next())if(F.tabViewModel=_.C(e.value,kB1),F.tabViewModel){var b=e=void 0;y.push({aTagConfig:{onclick:function(l){return function(){var r;f((r=l.tabViewModel.tabIdentifier)!=null?r:"")}}(F)},
identifier:F.tabViewModel.tabIdentifier,selected:n()===F.tabViewModel.tabIdentifier,title:(b=(e=F.tabViewModel.title)==null?void 0:e.content)!=null?b:""})}return Q}})),_.w(_.mI,{data:function(){var x,y=_.p((x=v.data().tabs)!=null?x:[]);
for(x=y.next();!x.done;x=y.next())if((x=_.C(x.value,kB1))&&x.tabIdentifier===n())return x.content}},{fantasyRosterViewModel:rgo}))},"zd");_.Yz(_.qu(function(v){var E=_.p(GF$()),n=E.next().value,f=E.next().value;return _.w("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.w(_.nh,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return v.data().title}}),_.w(_.x6,{cond:function(){return v.data().tabbedViewModel},
then:function(x){return _.w(_.mI,{data:x},{tabbedViewModel:function(y){return _.w(Pe4,{data:y.data,setSelectedTabSignal:f})}})}}),_.w(_.x6,{cond:function(){var x,y=(x=_.C(v.data().tabbedViewModel,WpX))==null?void 0:x.tabs;
x=_.C(y==null?void 0:y[0],kB1);y=_.C(y==null?void 0:y[1],kB1);var Q=x==null?void 0:x.tabIdentifier;if(n()===Q){var e,F;if(!((e=_.C(x==null?void 0:x.content,tPo))==null?0:(F=e.players)==null?0:F.length))return v.data().noUserTeamPlayersText}else{var b,l;if(!((b=_.C(y==null?void 0:y.content,tPo))==null?0:(l=b.players)==null?0:l.length))return v.data().noOpponentTeamPlayersText}},
then:function(x){return _.w(_.nh,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:x})}}))},"Ad"),"ytw-fantasy-matchup-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){return _.w("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.w(_.nh,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return v.data().title}}),_.w(_.x6,{cond:function(){return v.data().matchupTeamPairs},
then:function(E){return _.w(_.cG,{each:E,keyBy:"INDEX"},function(n){return _.w("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.w(_.mI,{data:function(){return[n().firstTeam,n().secondTeam]}},{fantasyTeamViewModel:function(f){return _.w(mR1,{data:f.data,
compact:!0})}}))})}}))},"Bd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=function(){var x,y,Q;return(Q=(x=v.data().userLogoAccessibility)==null?void 0:(y=x.accessibilityData)==null?void 0:y.label)!=null?Q:""},n=function(){var x,y,Q;
return(Q=(x=v.data().opponentLogoAccessibility)==null?void 0:(y=x.accessibilityData)==null?void 0:y.label)!=null?Q:""},f=_.Bi(inQ,function(){return v.data().entityKey});
return _.w("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.w(_.x6,{cond:function(){return v.data().userLogo},
then:function(x){return _.w(_.UZ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:E})}}),_.w("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.w(_.nh,{text:function(){return v.data().title}})),_.w(_.x6,{cond:function(){return v.data().opponentLogo},
then:function(x){return _.w(_.UZ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:n})}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.nh,{text:function(){var x;
return(x=f())==null?void 0:x.userWinNumberLabel}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.w("div",{class:_.W8("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.tZ({flex:function(){var x,y;return(y=(x=f())==null?void 0:x.userWinNumber)!=null?y:50}})}),_.w("div",{class:_.W8("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.tZ({flex:function(){var x,y;return(y=(x=f())==null?void 0:x.opponentWinNumber)!=null?y:50}})})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.nh,{text:function(){var x;
return(x=f())==null?void 0:x.opponentWinNumberLabel}}))))},"Cd"),"fantasy-win-probability-view-model",{props:{data:_.Kt}});_.ew("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Po=function(){var v=_.g.apply(this,arguments)||this;v.darkerPanels=_.Z("web_watch_darker_panels");v.commentsHidePanelButton=!1;v.isWatchGrid=!1;v.continuationShowButton=!1;v.isSearch=!1;v.isConstrainedList=!1;v.isWatch=!1;v.eligibleToSwitchToGrid=!1;v.epRestyle=!1;v.isCarouselInFeed=!0;v.topSpacingZero=!1;v.continuationIsInitialLoad=!0;v.enableSqueezebackPanels=_.Z("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.Z("desktop_shorts_v2_anchored_panel");v.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};v.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return v};
_.S(Po,_.g);_.c=Po.prototype;_.c.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||E.forEach(function(n){n.containerType=v})}};
_.c.getItemsPath=function(){return"data.contents"};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.c.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},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:_.Z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Z("kevlar_low_priority_continuation")}}};
_.c.created=function(){this.JSC$14395_cachedViewportHeight=_.MX("initialInnerHeight")||window.innerHeight};
_.c.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var v=_.K(this.hostElement).querySelector("ytd-comments-header-renderer");v&&(v.hidePanelButton=this.commentsHidePanelButton)}};
_.c.onRetrieveLocation=function(v,E){this.containsComments()&&(this.firstCommentsLoaded=E.hasComments=!0)};
_.c.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.c.onLoadReloadContinuation=function(v,E){var n=this;v.stopPropagation();this.isReloading=!0;_.jK(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(f){var x=_.P().resolve(_.n2);f=E(f);x.postData(f).then(function(y){n.onReloadContinuationData(y)})}})};
_.c.onReloadContinuationData=function(v){if(v=this.get("response.continuationContents.itemSectionContinuation",v)||this.get("response.contents.itemSectionRenderer",v)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",v)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",v))this.set("data.contents",v.contents||v.results),v.header&&this.set("data.header",v.header),this.set("data.continuations",
v.continuations||[]);this.isReloading=!1};
_.c.computeContentsClass=function(v){return v?"reloading":""};
_.c.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.c.computeSectionIdentifier=function(v){return v==null?void 0:v.sectionIdentifier};
_.c.computeFitContainer=function(v){return(v==null?void 0:v.sectionIdentifier)==="youchat-item-section"};
_.c.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Z("kevlar_disable_comments_auto_load")};
_.c.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.c.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.c.computeHasDestinationShelfRenderer=function(v){var E,n;return!!(v==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:n.destinationShelfRenderer)};
_.c.computeHasSectionGroupViewModel=function(v){var E,n;return!!(v==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:n.sectionGroupViewModel)};
_.c.computeStaticCommentsHeader=function(v){return v&&this.containsComments()};
_.c.computeEpRestyle=function(v){return _.Z("web_ep_restyling")&&v&&this.containsComments()};
_.c.computeIsContinuationCommentSection=function(v){return(v==null?void 0:v.targetId)==="shorts-engagement-panel-comments-section"||(v==null?void 0:v.targetId)==="comments-section"};
_.c.computeSuppressPaddingDisclaimer=function(){var v,E,n,f;return!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:(f=n.productListHeaderRenderer)==null?0:f.suppressPaddingDisclaimer)};
_.c.computeHeaderStyle=function(v){switch(v==null?void 0:v.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.c.dataChanged=function(){this.firstCommentsLoaded=!1};
_.c.observeDataContentsLength=function(){var v,E;((v=this.data)==null?0:(E=v.contents)==null?0:E.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.c.onYtDismissibleItemDismissedChange=function(v){this._setItemDismissed(v.type==="yt-dismissible-item-dismissed")};
_.c.triggerContinuations=function(){for(var v=_.K(this.hostElement).querySelector("#continuations").children,E=0;E<v.length;E++)v[E].trigger()};
_.c.triggerInitialContinuations=function(){for(var v=_.K(this.hostElement).querySelector("#continuations").children,E=0;E<v.length;E++)v[E].triggerIfNotPreviouslyTriggered()};
_.c.handleYtItemSectionContinuation=function(v,E){var n;E&&((n=this.data)==null?void 0:n.sectionIdentifier)!==E||(this.set("data.continuations",[v]),this.triggerContinuations())};
_.c.handleYtItemSectionReplace=function(v,E){var n;E&&((n=this.data)==null?void 0:n.sectionIdentifier)!==E||(this.set("data.contents",v),this.set("data.continuations",[]))};
_.c.computeUseHeightHack=function(v){return v&&!_.Z("kevlar_disable_height_hack")};
_.c.computeTopSpacingZero=function(v){return v};
_.c.continuationShowButtonChanged=function(){var v=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer");v&&(v.showButton=this.continuationShowButton)};
_.c.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("data-changed",this.data))};
_.hK.Object.defineProperties(Po.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Z("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 v,E,n;return!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:n.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f,x,y,Q;return!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:(f=n.shelfRenderer)==null?0:(x=f.content)==null?0:(y=x.gridRenderer)==null?0:(Q=y.targetId)==null?0:Q.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:n.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E[0])==null?0:n.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.$6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Z("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Z("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14395_cachedViewportHeight-130)/150)},
set:function(){}}});
Po.prototype.dataChangedForBinding=Po.prototype.dataChangedForBinding;Po.prototype.continuationShowButtonChanged=Po.prototype.continuationShowButtonChanged;Po.prototype.onYtDismissibleItemDismissedChange=Po.prototype.onYtDismissibleItemDismissedChange;Po.prototype.observeDataContentsLength=Po.prototype.observeDataContentsLength;Po.prototype.dataChanged=Po.prototype.dataChanged;Po.prototype.onServiceRequestCompleted=Po.prototype.onServiceRequestCompleted;Po.prototype.onLoadReloadContinuation=Po.prototype.onLoadReloadContinuation;
Po.prototype.onRetrieveLocation=Po.prototype.onRetrieveLocation;Po.prototype.commentsHidePanelButtonChanged=Po.prototype.commentsHidePanelButtonChanged;Po.prototype.updateLockupContainerTypes=Po.prototype.updateLockupContainerTypes;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Po.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],Po.prototype,"ytNextContinuationBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],Po.prototype,"ytContinuationHandlerBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Po.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Po.prototype,"darkerPanels",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Po.prototype,"engagementPanel",void 0);
_.k([_.H(),_.W("design:type",Object)],Po.prototype,"commentsHidePanelButton",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"isWatchGrid",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"continuationShowButton",void 0);_.k([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.W("design:type",Boolean)],Po.prototype,"continuationIsCommentsSection",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Po.prototype,"autoFill",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Po.prototype,"continuationDisablePrescanVisibility",void 0);_.k([_.H(),_.W("design:type",Boolean)],Po.prototype,"isReloading",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"isSearch",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"isConstrainedList",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"isWatch",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"eligibleToSwitchToGrid",void 0);
_.k([_.H({selector:_.SS}),_.W("design:type",Object)],Po.prototype,"isGridViewEnabled",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Object)],Po.prototype,"epRestyle",void 0);_.k([_.A("isWatch"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"hideShortsShelfHeader",null);
_.k([_.A("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],Po.prototype,"thumbnailWidth",null);_.k([_.A("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],Po.prototype,"sizing",null);_.k([_.A("isWatch","isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Po.prototype,"lockupContainerType",null);
_.k([_.On("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],Po.prototype,"updateLockupContainerTypes",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Po.prototype,"pageSubtype",void 0);_.k([_.H({computed:"computeContainerWidth()"}),_.W("design:type",Number)],Po.prototype,"containerWidth",void 0);_.k([_.H(),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"isPlaylist",null);
_.k([_.H(),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"isClipList",null);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"isCarouselInFeed",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"isPlaylistVideoContainer",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"isSearchFrictionPage",null);
_.k([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.W("design:type",Boolean)],Po.prototype,"useHeightHack",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.W("design:type",Object)],Po.prototype,"topSpacingZero",void 0);_.k([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.W("design:type",Boolean)],Po.prototype,"showButton",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Po.prototype,"firstCommentsLoaded",void 0);_.k([_.H(),_.W("design:type",Object)],Po.prototype,"continuationIsInitialLoad",void 0);_.k([_.H(),_.W("design:type",Boolean)],Po.prototype,"isSearchDova",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],Po.prototype,"itemDismissed",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.W("design:type",String)],Po.prototype,"sectionIdentifier",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.W("design:type",String)],Po.prototype,"fitContainer",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.W("design:type",Boolean)],Po.prototype,"hasDestinationShelfRenderer",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Boolean)],Po.prototype,"staticCommentsHeader",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Po.prototype,"enableSqueezebackPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Po.prototype,"enableAnchoredPanel",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.W("design:type",Boolean)],Po.prototype,"hasSectionGroupViewModel",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.W("design:type",Boolean)],Po.prototype,"suppressDisclaimerSeparator",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.W("design:type",String)],Po.prototype,"headerStyle",void 0);_.k([_.A("isSearch"),_.W("design:type",Object),_.W("design:paramtypes",[])],Po.prototype,"lockupExperiments",null);
_.k([_.A("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"typographyBump",null);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],Po.prototype,"header",void 0);_.k([_.On("commentsHidePanelButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"commentsHidePanelButtonChanged",null);
_.k([_.jk("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Po.prototype,"onRetrieveLocation",null);_.k([_.jk("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Function]),_.W("design:returntype")],Po.prototype,"onLoadReloadContinuation",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"onServiceRequestCompleted",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"dataChanged",null);_.k([_.Tw("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"observeDataContentsLength",null);
_.k([_.jk("yt-dismissible-item-dismissed"),_.jk("yt-dismissible-item-undismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Po.prototype,"onYtDismissibleItemDismissedChange",null);_.k([_.On("continuationShowButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"continuationShowButtonChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"dataChangedForBinding",null);Po=_.k([_.N({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Po);
_.u(Po,"ytd-item-section-renderer",function(){if(uMU!==void 0)return uMU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uMU=v},{mode:1});var ai4;var tX9=_.qD(_.tQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var TZE={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var Zf1={},R79=(Zf1[0]={title:_.HR(_.tQ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Vf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Zf1[1]={title:_.HR(_.tQ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Vf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Zf1);_.ew("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var aZ=function(){var v=_.g.apply(this,arguments)||this;v.allVideosCount=0;v.allPlaylistCount=0;v.shouldRenderDownloadsBanner=!1;v.hasOptedIntoSmartDownloads=!1;v.areAllSmartDownloadsDeleted=!1;v.smartDownloadsCompleted=!1;return v};
_.S(aZ,_.g);aZ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
aZ.prototype.attached=function(){this.downloadsToRenderChanged()};
aZ.prototype.detached=function(){this.set("renderableData",{})};
aZ.prototype.downloadsToRenderChanged=function(){var v=_.dG().getState().entities,E=_.pC(v),n=_.Z("kevlar_playlist_dl_page_killswitch")?J$9(v):_.QN(v),f=_.CME(v),x=_.ob(E);v=_.Xq(v);this.set("renderableData",vBX(n,E,f,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,x,v))};
aZ.prototype.downloadsToRenderChanged=aZ.prototype.downloadsToRenderChanged;_.k([_.h(_.PL),_.W("design:type",Object)],aZ.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],aZ.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],aZ.prototype,"renderableData",void 0);_.k([_.H({selector:_.jsI}),_.W("design:type",Object)],aZ.prototype,"allVideosCount",void 0);_.k([_.H({selector:F1Q}),_.W("design:type",Object)],aZ.prototype,"allPlaylistCount",void 0);_.k([_.H({selector:_.TR1}),_.W("design:type",Object)],aZ.prototype,"shouldRenderDownloadsBanner",void 0);_.k([_.H({selector:_.ig1}),_.W("design:type",Object)],aZ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.k([_.H({selector:_.zrN}),_.W("design:type",Object)],aZ.prototype,"areAllSmartDownloadsDeleted",void 0);_.k([_.H({selector:RrG}),_.W("design:type",Object)],aZ.prototype,"smartDownloadsCompleted",void 0);_.k([_.Tw("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aZ.prototype,"downloadsToRenderChanged",null);
aZ=_.k([_.N({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],aZ);
_.u(aZ,"ytd-offline-item-section-renderer",function(){if(ai4!==void 0)return ai4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ai4=v},
{mode:1});var Ceo;var M1S;var ZV=function(){return _.g.apply(this,arguments)||this};
_.S(ZV,_.g);
ZV.prototype.onDataChanged=function(){if(this.JSC$14422_lastData){var v=this.getFilterClass(this.JSC$14422_lastData.status);v&&this.hostElement.classList.remove(v)}var E;(v=this.getFilterClass((E=this.data)==null?void 0:E.status))&&this.hostElement.classList.add(v);v==="selected"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");v==="disabled"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14422_lastData=this.data};
ZV.prototype.getFilterClass=function(v){switch(v){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
ZV.prototype.onDataChanged=ZV.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ZV.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZV.prototype,"onDataChanged",null);ZV=_.k([_.N({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],ZV);
_.u(ZV,"ytd-search-filter-renderer",function(){if(M1S!==void 0)return M1S;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return M1S=v},{mode:_.HE("kevlar_poly_si_batch_j075")?1:2});var CY=function(){return _.g.apply(this,arguments)||this};
_.S(CY,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CY.prototype,"data",void 0);CY=_.k([_.N({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],CY);
_.u(CY,"ytd-search-filter-group-renderer",function(){if(Ceo!==void 0)return Ceo;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ceo=v},{mode:_.HE("kevlar_poly_si_batch_j075")?1:2});var Srg;var MC=function(){return _.g.apply(this,arguments)||this};
_.S(MC,_.g);MC.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.o4());this.isCollapsed=!this.isCollapsed};
MC.prototype.navigateToAboutTheseResultsPage=function(){var v=m_("https://www.youtube.com/howyoutubeworks/product-features/search/");v?_.Kc(window,v,"_blank"):_.UO(Error("Qh"))};
MC.prototype.dataChanged=function(){this.isCollapsed=!0};
MC.prototype.computeShowBottomBorder=function(){var v,E,n;return!!((v=this.data)==null?0:(E=v.button)==null?0:E.toggleButtonRenderer)||!((n=this.data)==null||!n.aboutTheseResultsButton)};
MC.prototype.dataChanged=MC.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],MC.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.W("design:type",Boolean)],MC.prototype,"showBottomBorder",void 0);_.k([_.H(),_.W("design:type",Boolean)],MC.prototype,"renderCollapsibleMenu",void 0);
_.k([_.H(),_.W("design:type",Boolean)],MC.prototype,"isCollapsed",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MC.prototype,"dataChanged",null);MC=_.k([_.N({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],MC);
_.u(MC,"ytd-search-sub-menu-renderer",function(){if(Srg!==void 0)return Srg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Srg=v},{mode:1});var URU;var qr1=new _.$Y("SECTION_LIST_RENDERER_TOKEN");var Jg1;var S3=function(){return _.g.apply(this,arguments)||this};
_.S(S3,_.g);S3.prototype.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],S3.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],S3.prototype,"headerStyle",void 0);S3=_.k([_.N({is:"ytd-text-header-renderer",disableElementRegistration:!0})],S3);
_.u(S3,"ytd-text-header-renderer",function(){if(Jg1!==void 0)return Jg1;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Jg1=v},{mode:1});var KE1;var UD=function(){return _.g.apply(this,arguments)||this};
_.S(UD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UD.prototype,"data",void 0);UD=_.k([_.N({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],UD);
_.u(UD,"ytd-minor-moment-header-renderer",function(){if(KE1!==void 0)return KE1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return KE1=v},{mode:1});var dRP;var qC=function(){return _.g.apply(this,arguments)||this};
_.S(qC,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qC.prototype,"data",void 0);qC=_.k([_.N({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],qC);
_.u(qC,"ytd-minor-moment-setting-alert-renderer",function(){if(dRP!==void 0)return dRP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dRP=v},{mode:1});var IiS;var Yr1;var JI=function(){var v=_.g.apply(this,arguments)||this;v.booleanSettingById=!1;v.smartDownloadsEnabledVE=_.ci(128287);v.smartDownloadsDisabledVE=_.ci(128286);v.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return v};
_.S(JI,_.g);_.c=JI.prototype;_.c.attachSmartDownloadsSettingVes=function(){var v;this.activeVeForLogging||((v=this.data)==null?void 0:v.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.t$(_.Tl(),this.smartDownloadsEnabledVE),_.t$(_.Tl(),this.smartDownloadsDisabledVE))};
_.c.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.jK(this.hostElement,"yt-settings-switch-ready")};
_.c.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.c.onSwitchChange=function(v){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(v=_.Sk(v).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Z("kevlar_settings_switch_resolve_command_killswitch")?_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(v)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.c.handleUpdateSettingsSwitch=function(v){(v=_.C(v,r_P))&&this.data&&this.data.id===v.id&&this.set("data.enabled",!!v.enabled)};
_.c.onToggleSettingsSwitch=function(v,E){this.data&&this.data.id===v&&this.set("data.enabled",E!=null?E:!this.data.enabled)};
_.c.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.jO.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.c.maybeLogSmartDownloadsSettingVisibility=function(){var v=_.lc(),E;v&&((E=this.data)==null?void 0:E.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.CH(v,[this.smartDownloadsEnabledVE]),_.Mx(v,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.CH(v,[this.smartDownloadsDisabledVE]),_.Mx(v,[this.smartDownloadsEnabledVE])))};
_.c.maybeLogSmartDownloadsSettingClick=function(){var v;((v=this.data)==null?void 0:v.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.vg(_.Tl(),this.activeVeForLogging)};
_.c.updateDataEnabledFromBinding=function(v){this.set("data.enabled",v.detail.value)};
_.hK.Object.defineProperties(JI.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!v&&(v=this.ytRendererBehavior.getSimpleString(this.data.title));return v}}});
JI.prototype.dataChanged=JI.prototype.dataChanged;_.k([_.h(_.PL),_.W("design:type",Object)],JI.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],JI.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],JI.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],JI.prototype,"data",void 0);_.k([_.H({selector:function(v,E){if(Object.keys(v==null?void 0:v.entities).length)switch(E){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return KDA(v.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.W("design:type",Object)],JI.prototype,"booleanSettingById",void 0);_.k([_.H(),_.W("design:type",_.wM)],JI.prototype,"activeVeForLogging",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],JI.prototype,"toggleAriaLabel",null);_.k([_.Tw("data"),_.Tw("booleanSettingById"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JI.prototype,"dataChanged",null);
JI=_.k([_.N({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],JI);
_.u(JI,"ytd-settings-switch-renderer",function(){if(Yr1!==void 0)return Yr1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Yr1=v},{mode:1});var KY=function(){return _.g.apply(this,arguments)||this};
_.S(KY,_.g);KY.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}}}}};
_.hK.Object.defineProperties(KY.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var v=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(v+=" remove-left-margin");this.data.extraBottomSpace&&(v+=" extra-bottom-space");return v}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],KY.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KY.prototype,"contentsClassName",null);KY=_.k([_.N({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],KY);
_.u(KY,"ytd-minor-moment-setting-section-renderer",function(){if(IiS!==void 0)return IiS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return IiS=v},{mode:1});var hWS;var d5=function(){return _.g.apply(this,arguments)||this};
_.S(d5,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],d5.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],d5.prototype,"data",void 0);d5=_.k([_.N({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],d5);
_.u(d5,"ytd-empty-product-details-renderer",function(){if(hWS!==void 0)return hWS;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return hWS=v},{mode:1});var AgF;var V1o;var IZ=function(){var v=_.g.apply(this,arguments)||this;v.expanded=!0;return v};
_.S(IZ,_.g);IZ.prototype.getBadgeRowClass=function(v,E,n){for(var f=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),x=f.next();!x.done;x=f.next())x.value.onShow();v=v.selected;return n?v!==-1?v===E?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(v!==void 0?v:0)===E?"badge-line":"badge-hidden"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IZ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],IZ.prototype,"expanded",void 0);IZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],IZ);
_.u(IZ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(V1o!==void 0)return V1o;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return V1o=v},{mode:1});var DRU;var Yl=function(){var v=_.g.apply(this,arguments)||this;v.expanded=!0;return v};
_.S(Yl,_.g);Yl.prototype.getContainerClasses=function(v,E){v=v?"expanded":"collapsed";E&&(v+=" item");return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Yl.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Yl.prototype,"expanded",void 0);Yl=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Yl);
_.u(Yl,"ytd-sponsorships-perk-renderer",function(){if(DRU!==void 0)return DRU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DRU=v},{mode:1});var HfX;var hI=function(){var v=_.g.apply(this,arguments)||this;v.expanded=!0;return v};
_.S(hI,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hI.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],hI.prototype,"expanded",void 0);hI=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],hI);
_.u(hI,"ytd-sponsorships-perks-renderer",function(){if(HfX!==void 0)return HfX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return HfX=v},{mode:1});var AI=function(){var v=_.g.apply(this,arguments)||this;v.isCollapsed=!1;return v};
_.S(AI,_.g);AI.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
AI.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
AI.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var v;this.expandCollapseButton=_.C((v=this.data)==null?void 0:v.expandButton,_.qb)}else{var E;this.expandCollapseButton=_.C((E=this.data)==null?void 0:E.collapseButton,_.qb)}};
AI.prototype.updateExpandCollapseButton=AI.prototype.updateExpandCollapseButton;AI.prototype.onDataChanged=AI.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],AI.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],AI.prototype,"isCollapsed",void 0);_.k([_.H(),_.W("design:type",Object)],AI.prototype,"expandCollapseButton",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AI.prototype,"onDataChanged",null);_.k([_.Tw("data","isCollapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AI.prototype,"updateExpandCollapseButton",null);AI=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],AI);
_.u(AI,"ytd-sponsorships-expandable-perks-renderer",function(){if(AgF!==void 0)return AgF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return AgF=v},{mode:1});var g3o;var Vm=function(){return _.g.apply(this,arguments)||this};
_.S(Vm,_.g);Vm.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Vm.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Vm.prototype,"data",void 0);Vm=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Vm);
_.u(Vm,"ytd-sponsorships-actionable-message-renderer",function(){if(g3o!==void 0)return g3o;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return g3o=v},{mode:1});var NHF;var DV=function(){return _.g.apply(this,arguments)||this};
_.S(DV,_.g);_.c=DV.prototype;_.c.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.c.getExpansionIcon=function(v){return v?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.c.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.c.computeMessageContainerStyle=function(v){var E=v.expandableItems?" style-clickable":"";return v.messageContainerStyle?v.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+E:"style-unspecified"+E};
_.c.isSinglePerk=function(v){return!!v.messageContainerStyle&&(v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.c.onExpandedChanged=function(){var v=this;if(this.expanded)for(var E=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),n=E.next();!n.done;n=E.next())n.value.onShow();_.IS(this,function(){_.jK(v.hostElement,"yt-refit")})};
_.c.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
DV.prototype.onDataChanged=DV.prototype.onDataChanged;DV.prototype.onExpandedChanged=DV.prototype.onExpandedChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],DV.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],DV.prototype,"expanded",void 0);
_.k([_.On("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DV.prototype,"onExpandedChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DV.prototype,"onDataChanged",null);DV=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],DV);
_.u(DV,"ytd-sponsorships-expandable-message-renderer",function(){if(NHF!==void 0)return NHF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return NHF=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var uCg;var Ho=function(){return _.g.apply(this,arguments)||this};
_.S(Ho,_.g);Ho.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"}}}}};
Ho.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.C(this.data.endButton,_.qb).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Ho.prototype.onDataChanged=Ho.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ho.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ho.prototype,"onDataChanged",null);
Ho=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Ho);
_.u(Ho,"ytd-sponsorships-heading-renderer",function(){if(uCg!==void 0)return uCg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uCg=v},{mode:1});var jdX;var g5=function(){return _.g.apply(this,arguments)||this};
_.S(g5,_.g);_.k([_.H(),_.W("design:type",Object)],g5.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);g5=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],g5);
_.u(g5,"ytd-sponsorships-links-renderer",function(){if(jdX!==void 0)return jdX;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jdX=v},{mode:1});var Ofl;var NC=function(){return _.g.apply(this,arguments)||this};
_.S(NC,_.g);_.c=NC.prototype;_.c.onDataChanged=function(){if(this.data&&this.data.expandableItems){var v;(v=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||v.setAttribute("role","button")}else{var E;(E=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||E.removeAttribute("role")}};
_.c.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.c.getExpansionIcon=function(v){return v?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.c.getTileClasses=function(v){return v?"tile expandable-tile":"tile"};
_.c.getButtonDisabled=function(v){return v?void 0:""};
NC.prototype.onDataChanged=NC.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],NC.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],NC.prototype,"expanded",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NC.prototype,"onDataChanged",null);
NC=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],NC);
_.u(NC,"ytd-sponsorships-list-tile-renderer",function(){if(Ofl!==void 0)return Ofl;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ofl=v},{mode:1});var kDi;var WEi;var uB=function(){return _.g.apply(this,arguments)||this};
_.S(uB,_.g);uB.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],uB.prototype,"data",void 0);uB=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],uB);
_.u(uB,"ytd-sponsorships-promotion-renderer",function(){if(WEi!==void 0)return WEi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return WEi=v},{mode:1});var $R6;var j3=function(){return _.g.apply(this,arguments)||this};
_.S(j3,_.g);j3.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],j3.prototype,"data",void 0);j3=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],j3);
_.u(j3,"ytd-sponsorships-purchase-option-renderer",function(){if($R6!==void 0)return $R6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return $R6=v},{mode:1});var LE1;var GDS;var OD=function(){return _.g.apply(this,arguments)||this};
_.S(OD,_.g);_.k([_.H(),_.W("design:type",Object)],OD.prototype,"data",void 0);OD=_.k([_.N({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],OD);
_.u(OD,"ytd-ypc-offer-promo-renderer",function(){if(GDS!==void 0)return GDS;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return GDS=v},{mode:1});var kl=function(){return _.g.apply(this,arguments)||this};
_.S(kl,_.g);_.c=kl.prototype;
_.c.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"}}}}};
_.c.expansionCTA=function(v,E){return v&&(E?v.collapseCallToAction:v.expansionCallToAction)};
_.c.getExpansionIcon=function(v){return v?"arrow_drop_up":"arrow_drop_down"};
_.c.expansionCallToActionTap=function(){var v=this;this.expanded=!this.expanded;_.IS(this,function(){_.jK(v.hostElement,"yt-refit")})};
_.c.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var v,E=(v=this.data)==null?void 0:v.onVisible;E&&this.ytComponentBehavior.resolveCommand(E)};
_.c.computeDisplayTitle=function(v){return!(!v||this.titledisplaystatus!=="show")};
_.c.computeDisplaySeparator=function(){return!1};
_.c.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
kl.prototype.onDataChanged=kl.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kl.prototype,"data",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],kl.prototype,"expanded",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],kl.prototype,"purchaseButtonClicked",void 0);_.k([_.H({reflectToAttribute:!0,value:"show"}),_.W("design:type",String)],kl.prototype,"titledisplaystatus",void 0);_.k([_.H({computed:"computeDisplayTitle(data.title)"}),_.W("design:type",Boolean)],kl.prototype,"displayTitle",void 0);
_.k([_.H({computed:"computeDisplaySeparator(data)"}),_.W("design:type",Boolean)],kl.prototype,"displaySeparator",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kl.prototype,"onDataChanged",null);kl=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],kl);
_.u(kl,"ytd-sponsorships-tier-renderer",function(){if(LE1!==void 0)return LE1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return LE1=v},{mode:2});var Wo=function(){return _.g.apply(this,arguments)||this};
_.S(Wo,_.g);
Wo.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Wo.prototype,"data",void 0);Wo=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Wo);
_.u(Wo,"ytd-sponsorships-management-renderer",function(){if(kDi!==void 0)return kDi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return kDi=v},{mode:1});var THz;var $l=function(){return _.g.apply(this,arguments)||this};
_.S($l,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$l.prototype,"data",void 0);$l=_.k([_.N({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],$l);
_.u($l,"ytd-open-in-native-app-view-model",function(){if(THz!==void 0)return THz;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return THz=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var ifF;var zWz;var RW1=_.jU(["top-"]),t1o=_.jU(["bottom-"]),BH1=_.jU(["left-"]),vAP=_.jU(["right-"]),EAF={},nAX=function(v,E,n){v.removeAttribute("top-"+n);v.removeAttribute("bottom-"+n);v.removeAttribute("left-"+n);v.removeAttribute("right-"+n);E&&(E.top&&_.H5([_.G6(RW1)],v,"top-"+n,E.top),E.bottom&&_.H5([_.G6(t1o)],v,"bottom-"+n,E.bottom),E.left&&_.H5([_.G6(BH1)],v,"left-"+n,E.left),E.right&&_.H5([_.G6(vAP)],v,"right-"+n,E.right))};
EAF.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(v){var E,n=_.K((E=this.hostElement)!=null?E:this),f;E=this.cardItemBoxBehaviorMarginTargetId&&n?n.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(f=this.hostElement)!=null?f:this;nAX(E,v,"margin")},
cardItemContainerPaddingChanged_:function(v){var E,n=_.K((E=this.hostElement)!=null?E:this),f;E=this.cardItemBoxBehaviorPaddingTargetId&&n?n.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(f=this.hostElement)!=null?f:this;nAX(E,v,"padding")}}];var LY={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 oAl;var fs1;var GM=function(){return _.g.apply(this,arguments)||this};
_.S(GM,_.g);GM.prototype.textColorChanged_=function(){this.hostElement.style.color=LY[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
GM.prototype.textColorChanged_=GM.prototype.textColorChanged_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.k([_.h(EAF.YtCardItemBoxBehavior),_.W("design:type",Object)],GM.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GM.prototype,"data",void 0);_.k([_.On("data.textColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"textColorChanged_",null);
GM=_.k([_.p5({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],GM);
_.u(GM,"yt-card-item-text-renderer",function(){if(fs1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;oAl===void 0&&(oAl=document.createElement("template"));var f=oAl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);fs1=v}v=fs1;return v},{mode:2});var x4P;var cHP;var TM=function(){return _.g.apply(this,arguments)||this};
_.S(TM,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TM.prototype,"data",void 0);TM=_.k([_.p5({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],TM);
_.u(TM,"yt-card-item-badge-renderer",function(){if(cHP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;x4P===void 0&&(x4P=document.createElement("template"));var f=x4P;n.call(E,f.content.cloneNode(!0),v.content.firstChild);cHP=v}v=cHP;return v},{mode:2});var yH1;var phl;var iB=function(){return _.g.apply(this,arguments)||this};
_.S(iB,_.g);iB.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iB.prototype,"data",void 0);iB=_.k([_.p5({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],iB);
_.u(iB,"yt-card-item-text-collection-renderer",function(){if(phl===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;yH1===void 0&&(yH1=document.createElement("template"));var f=yH1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);phl=v}v=phl;return v},{mode:2});var Qpo;var Xhg;var zM=function(){return _.g.apply(this,arguments)||this};
_.S(zM,_.g);zM.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]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zM.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Number)],zM.prototype,"iconSize",void 0);zM=_.k([_.p5({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],zM);
_.u(zM,"yt-card-item-text-with-button-renderer",function(){if(Xhg===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Qpo===void 0&&(Qpo=document.createElement("template"));var f=Qpo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Xhg=v}v=Xhg;return v},{mode:2});var RZ=function(){return _.g.apply(this,arguments)||this};
_.S(RZ,_.g);RZ.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],RZ.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RZ.prototype,"data",void 0);RZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],RZ);
_.u(RZ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(zWz!==void 0)return zWz;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return zWz=v},{mode:1});_.ew("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var tI=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;return v};
_.S(tI,_.g);_.c=tI.prototype;_.c.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"}}}}};
_.c.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.c.updateSummary=function(){var v=this.commerceCartCheckoutButtonEntity,E;if(((E=this.data)==null?0:E.cartButton)&&v.checkoutSummaryText){var n,f=dN((n=this.data)==null?void 0:n.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",IV(v.checkoutSummaryText));if(v.checkoutDetailText){var x;n=dN((x=this.data)==null?void 0:x.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+n+".cardItemTextRenderer.text",IV(v.checkoutDetailText))}if(v.checkoutAdditionalMetadataText){var y;
x=dN((y=this.data)==null?void 0:y.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",IV(v.checkoutAdditionalMetadataText))}}else v.estimatedTotalPrice&&(y=dN((f=this.data)==null?void 0:f.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",IV(v.estimatedTotalPrice)))};
_.c.updateIsHidden=function(){var v,E=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;E!==void 0&&(this.hidden=E)};
_.c.updateCheckoutButton=function(){var v,E=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isDisabled;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",E);var n;v=(n=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:n.innertubeCommand;v!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",v);var f;n=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutButtonText;n!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:n})};
tI.prototype.entityChanged=tI.prototype.entityChanged;_.k([_.h(_.PL),_.W("design:type",Object)],tI.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],tI.prototype,"fullWidth",void 0);_.k([_.H(),_.W("design:type",Object)],tI.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],tI.prototype,"compact",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tI.prototype,"hidden",void 0);
_.k([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RcG}),_.W("design:type",Object)],tI.prototype,"commerceCartCheckoutButtonEntity",void 0);_.k([_.On("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tI.prototype,"entityChanged",null);tI=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],tI);
_.u(tI,"ytd-commerce-cart-checkout-button-renderer",function(){if(ifF!==void 0)return ifF;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ifF=v},{mode:2});var eDS;_.FJ1={};
_.FJ1.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",_.uo(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.uo(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(v){!this.tappableItemBehaviorTapEnabled||v.keyCode!==13&&v.keyCode!==32||v.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var v=this.data.onTap;v.ypcGetCartEndpoint?(_.$Z(this.hostElement,[v]),this.tappableItemBehaviorTapEnabled=!1):v.ypcOffersEndpoint?_.$Z(this.hostElement,[v]):_.LG(this.hostElement,[v],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(v){this.tappableItemBehaviorTapEnabled=!!v},
tappableItemBehaviorOnTapEnabledChanged_:function(){var v=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(v.setAttribute("tabIndex",0),v.setAttribute("role","button")):(v.removeAttribute("tabIndex"),v.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(v){v.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var m4U;var who;var Bo=function(){return _.g.apply(this,arguments)||this};
_.S(Bo,_.g);Bo.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Fm("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Fm("sharingToggleButtonAndDefaultButton")}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Bo.prototype,"data",void 0);Bo=_.k([_.p5({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Bo);
_.u(Bo,"yt-card-item-actions-renderer",function(){if(who===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;m4U===void 0&&(m4U=document.createElement("template"));var f=m4U;n.call(E,f.content.cloneNode(!0),v.content.firstChild);who=v}v=who;return v},{mode:2});var b_F;var lsl;var spo;var rH6;var P2l;var asU;var vd=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return v};
_.S(vd,_.g);vd.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
vd.prototype.handleDarkModeToggledAction_=function(v){this.isDarkTheme_=v};
vd.prototype.computeThemeImage_=function(v,E){if(!v||!v.imageLight)return!1;this.isCircular_=v.isCircular;v.imageWidth&&(this.hostElement.style.width=v.imageWidth+"px");v.imageHeight&&(this.hostElement.style.height=v.imageHeight+"px");v.borderWidth&&(this.image.style.borderWidth=v.borderWidth+"px",this.image.style.borderStyle="solid");v.borderColor&&(this.image.style.borderColor=_.Qt(v.borderColor));return E&&v.imageDark?v.imageDark:v.imageLight};
vd.prototype.computeThemeIcon_=function(v){var E,n;if(!(v==null?0:(E=v.themedIcon)==null?0:(n=E.icon)==null?0:n.iconType))return!1;this.icon.style.color=LY[v.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(v.imageWidth||18)+"px";this.icon.style.height=(v.imageHeight||18)+"px";return _.jI(v.themedIcon.icon.iconType)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(EAF.YtCardItemBoxBehavior),_.W("design:type",Object)],vd.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],vd.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vd.prototype,"data",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],vd.prototype,"fit",void 0);_.k([_.H(),_.W("design:type",Boolean)],vd.prototype,"isDarkTheme_",void 0);_.k([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.W("design:type",Object)],vd.prototype,"themeImage_",void 0);_.k([_.H({computed:"computeThemeIcon_(data)"}),_.W("design:type",Object)],vd.prototype,"themeIcon_",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],vd.prototype,"isCircular_",void 0);
_.k([_.Wp("#image"),_.W("design:type",Object)],vd.prototype,"image",void 0);_.k([_.Wp("#icon"),_.W("design:type",Object)],vd.prototype,"icon",void 0);vd=_.k([_.p5({is:"yt-themed-image-renderer",disableElementRegistration:!0})],vd);
_.u(vd,"yt-themed-image-renderer",function(){if(asU===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;P2l===void 0&&(P2l=document.createElement("template"));var f=P2l;n.call(E,f.content.cloneNode(!0),v.content.firstChild);asU=v}v=asU;return v},{mode:2});var Ez=function(){return _.g.apply(this,arguments)||this};
_.S(Ez,_.g);Ez.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"}}}}};
Ez.prototype.computeImagePlacement_=function(v){return v||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ez.prototype,"data",void 0);_.k([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.W("design:type",String)],Ez.prototype,"imagePlacement",void 0);
Ez=_.k([_.p5({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Ez);
_.u(Ez,"yt-card-item-text-with-image-renderer",function(){if(rH6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;spo===void 0&&(spo=document.createElement("template"));var f=spo;n.call(E,f.content.cloneNode(!0),v.content.firstChild);rH6=v}v=rH6;return v},{mode:2});var nn=function(){return _.g.apply(this,arguments)||this};
_.S(nn,_.g);nn.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"}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nn.prototype,"data",void 0);nn=_.k([_.p5({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],nn);
_.u(nn,"yt-card-item-error-renderer",function(){if(lsl===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;b_F===void 0&&(b_F=document.createElement("template"));var f=b_F;n.call(E,f.content.cloneNode(!0),v.content.firstChild);lsl=v}v=lsl;return v},{mode:2});var Z_F;var C2z;_.ew("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var oq=function(){return _.g.apply(this,arguments)||this};
_.S(oq,_.g);_.c=oq.prototype;
_.c.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"}}}}};
_.c.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.c.backgroundColorChanged_=function(){var v,E=(v=this.data)==null?void 0:v.backgroundColor;v=LY[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#main-content").style.backgroundColor=v};
_.c.headerPromoBackgroundColorChanged_=function(){var v,E=(v=this.data)==null?void 0:v.headerPromoBackgroundColor;v=LY[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=v};
_.c.errorRendererVisibilityChanged_=function(){var v=this.isExpanded_,E;this.isErrorRendererVisible_=!((E=this.data)==null||!E.errorRenderer)&&!v};
_.c.onYtToggleButton_=function(v,E){this.isExpanded_=E.toggled};
oq.prototype.onYtToggleButton_=oq.prototype.onYtToggleButton_;oq.prototype.errorRendererVisibilityChanged_=oq.prototype.errorRendererVisibilityChanged_;oq.prototype.headerPromoBackgroundColorChanged_=oq.prototype.headerPromoBackgroundColorChanged_;oq.prototype.backgroundColorChanged_=oq.prototype.backgroundColorChanged_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(EAF.YtCardItemBoxBehavior),_.W("design:type",Object)],oq.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.h(_.FJ1.YtTappableItemBehavior),_.W("design:type",Object)],oq.prototype,"ytTappableItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oq.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],oq.prototype,"isExpanded_",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],oq.prototype,"isErrorRendererVisible_",void 0);_.k([_.On("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oq.prototype,"backgroundColorChanged_",null);_.k([_.On("data.headerPromoBackgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oq.prototype,"headerPromoBackgroundColorChanged_",null);
_.k([_.On("data.errorRenderer","isExpanded_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oq.prototype,"errorRendererVisibilityChanged_",null);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],oq.prototype,"onYtToggleButton_",null);oq=_.k([_.p5({is:"yt-card-item-renderer",disableElementRegistration:!0})],oq);
_.u(oq,"yt-card-item-renderer",function(){if(C2z===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Z_F===void 0&&(Z_F=document.createElement("template"));var f=Z_F;n.call(E,f.content.cloneNode(!0),v.content.firstChild);C2z=v}v=C2z;return v},{mode:2});_.ew("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var fn=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;return v};
_.S(fn,_.g);_.c=fn.prototype;_.c.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.c.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.c.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,E=(v=this.commerceCartHeaderEntity)==null?void 0:v.isHidden;E!==void 0&&(this.hidden=E)}};
_.c.updateTitle=function(){var v=this.commerceCartHeaderEntity.isDisabled,E,n,f=(n=_.C((E=this.data)==null?void 0:E.item,sD6))==null?void 0:n.headingRenderer;f&&(E=dN(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".0.cardItemTextRenderer.textColor",v?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.c.updateSummaryText=function(){var v=this.commerceCartHeaderEntity;if(this.compact){var E,n,f=(n=_.C((E=this.data)==null?void 0:E.item,sD6))==null?void 0:n.headingRenderer;f&&(E=dN(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".1.cardItemTextRenderer.text",v.shortHeaderSummaryText?IV(v.shortHeaderSummaryText):v.headerSummaryText?IV(v.headerSummaryText):""))}else{var x;if(E=(x=_.C((f=this.data)==null?void 0:f.item,sD6))==null?void 0:x.additionalInfoRenderer)E=dN(E,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".text",v.headerSummaryText?IV(v.headerSummaryText):"")}};
_.c.updateCheckoutButton=function(){var v=this.commerceCartHeaderEntity,E,n,f=(n=_.C((E=this.data)==null?void 0:E.item,sD6))==null?void 0:n.additionalInfoRenderer;E=dN(f,"buttonRenderer");var x;n=(x=this.commerceCartHeaderEntity)==null?void 0:x.isButtonDisabled;var y;x=(y=this.commerceCartHeaderEntity)==null?void 0:y.isButtonHidden;n!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.isDisabled",n);x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
x);var Q;v=(Q=v.checkoutButtonCommand)==null?void 0:Q.innertubeCommand;v!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.command",v)};
fn.prototype.entityChanged=fn.prototype.entityChanged;_.k([_.h(_.PL),_.W("design:type",Object)],fn.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fn.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],fn.prototype,"compact",void 0);_.k([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(v,E){return _.LH(v.entities,"commerceCartHeaderEntity",E)}}),
_.W("design:type",Object)],fn.prototype,"commerceCartHeaderEntity",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fn.prototype,"hidden",void 0);_.k([_.On("commerceCartHeaderEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fn.prototype,"entityChanged",null);fn=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],fn);
_.u(fn,"ytd-commerce-cart-header-renderer",function(){if(eDS!==void 0)return eDS;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return eDS=v},{mode:1});var Mvg;var SY1=_.me(function(v,E){var n;return(n=v.onChangeCallback)==null?void 0:n.call(v,E)},1E3),U4X=_.qu(function(v){var E=v.data;
var n=v.iconMinus;v=v.iconPlus;var f=function(){return!!E().disabled},x=_.p(_.t7(0,void 0,"r56zNb")),y=x.next().value,Q=x.next().value;
x={};x=_.W8("yt-spec-quantity-incrementer-shape__icon",(x["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return f()||y()===(E().onRemoveCommand?0:1)},x));
var e={};e=_.W8("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return y()>=E().maxValue||f()},e));
var F={};F=_.W8("yt-spec-quantity-incrementer-shape__text",(F["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return y()>E().maxValue},F["yt-spec-quantity-incrementer-shape__text--text-disabled"]=f,F));
var b=_.ij(function(){if(y()===1){var r,a;(a=(r=E()).onRemoveCommand)==null||a.call(r)}r=y()>E().maxValue?E().maxValue:y()-1;Q(r);SY1(E(),r);return!1}),l=_.ij(function(){if(y()===E().maxValue)return!1;
var r=y()+1;Q(r);SY1(E(),r);return!1});
_.mM(function(){Q(E().value)});
return _.w("quantity-incrementer-shape",null,_.w("div",{class:"yt-spec-quantity-incrementer-shape"},_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return y()===(E().onRemoveCommand?0:1)||f()},
"aria-label":function(){return y()!==1?E().minusLabel:E().minimumReachedLabel},
"on:click":b},_.w(_.oX,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:x},n()))),_.w("div",{class:F},y),_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return y()>=E().maxValue||f()},
"aria-label":function(){return y()!==E().maxValue?E().plusLabel:E().maximumReachedLabel},
"on:click":l},_.w(_.oX,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:e},v())))))},"Dd");_.Yz(_.qu(function(v){function E(){n().onRemoveCommand&&_.lj(n().onRemoveCommand)}
var n=v.data;var f=_.Bi(ZPE,function(){return n().quantityIncrementerEntityKey});
return _.w("yt-quantity-incrementer-view-model",null,_.w(U4X,{data:function(){var x=n(),y;var Q=f()?!((y=f())==null||!y.disabled):!1;var e;y=f()?(e=f())==null?void 0:e.quantity:n().quantity;return oBL(x,Q,E,y)},
iconMinus:function(){return _.w(_.B8,{icon:"BAR_HORIZONTAL",className:_.LR("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.w(_.B8,{icon:"ADD",className:_.LR("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Ed"),"yt-quantity-incrementer-view-model",{props:{data:_.Kt}});var xS=function(){var v=_.g.apply(this,arguments)||this;v.compact=!1;v.hasQuantityIncrementer=!1;return v};
_.S(xS,_.g);xS.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"}}}};
xS.prototype.computeHasQuantityIncrementer=function(){var v;return!!_.C((v=this.data)==null?void 0:v.picker,ZtU)};
xS.prototype.onLabelClick=function(){var v;(v=this.dropdownEl)==null||v.open()};
_.k([_.Wp("ytd-dropdown-renderer"),_.W("design:type",Object)],xS.prototype,"dropdownEl",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xS.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],xS.prototype,"quantityColor",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],xS.prototype,"compact",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.W("design:type",Object)],xS.prototype,"hasQuantityIncrementer",void 0);xS=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],xS);
_.u(xS,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Mvg!==void 0)return Mvg;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Mvg=v},{mode:1});var qYg;var JH1;var cd=function(){return _.g.apply(this,arguments)||this};
_.S(cd,_.g);cd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cd.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
cd.prototype.updateTitle=function(){var v=this.disabledCartItemEntity;v.disableActionName&&this.set("data.title",IV(v.disableActionName))};
cd.prototype.updateButton=function(){var v,E=(v=this.disabledCartItemEntity.undoCommand)==null?void 0:v.innertubeCommand;E!==void 0&&(this.set("data.actionButton.buttonRenderer.command",E),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
cd.prototype.entityChanged=cd.prototype.entityChanged;_.k([_.h(_.PL),_.W("design:type",Object)],cd.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(v,E){return _.LH(v.entities,"disabledCartItemEntity",E)}}),
_.W("design:type",Object)],cd.prototype,"disabledCartItemEntity",void 0);_.k([_.H(),_.W("design:type",Object)],cd.prototype,"data",void 0);_.k([_.On("disabledCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cd.prototype,"entityChanged",null);cd=_.k([_.N({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],cd);
_.u(cd,"ytd-disabled-cart-item-renderer",function(){if(JH1!==void 0)return JH1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return JH1=v},{mode:1});_.ew("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var yO=function(){var v=_.g.apply(this,arguments)||this;v.compact=!1;v.hidden=!1;v.errorHidden=!1;v.noOnTap=!1;return v};
_.S(yO,_.g);_.c=yO.prototype;
_.c.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"}}}};
_.c.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.c.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var v=this.firstButtonElement;v.alignByText=!0;v.iconAlignByText=!0}};
_.c.computeNoOnTap=function(v){return!v};
_.c.updateQuantityColor=function(){if(this.pickerElement){var v,E=(v=this.commerceCartItemEntity)==null?void 0:v.quantityColor;this.pickerElement.quantityColor=E}};
_.c.updateTotalPriceColor=function(){var v,E=(v=this.commerceCartItemEntity)==null?void 0:v.totalPriceColor;if(E){var n;v=_.C((n=this.data)==null?void 0:n.quantityPicker,PQ1);if(n=_.C(v==null?void 0:v.price,r11))n.textColor=E}};
_.c.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,E=(v=this.commerceCartItemEntity)==null?void 0:v.isHidden;E!==void 0&&(this.hidden=E)}};
_.c.updateHideErrorMessage=function(){var v,E=(v=this.commerceCartItemEntity)==null?void 0:v.hideErrorMessage;E!==void 0&&(this.errorHidden=E)};
_.c.updateQuantity=function(){var v=this,E,n=(E=this.commerceCartItemEntity)==null?void 0:E.quantity,f;E=(f=this.commerceCartItemEntity)==null?void 0:f.totalPrice;if(n){this.updateTotalPriceColor();this.updateQuantityColor();var x;f=_.C((x=this.data)==null?void 0:x.quantityPicker,PQ1);if(x=_.C(f==null?void 0:f.price,r11))x.text=E?{simpleText:E.content}:void 0;if(E=_.C(f==null?void 0:f.picker,ZtU))E.quantity=n;var y;if(x=(y=_.C(f==null?void 0:f.picker,A8o))==null?void 0:y.entries){y=!1;E=void 0;x=
_.p(x);for(f=x.next();!f.done;f=x.next())f=f.value,f.dropdownItemRenderer&&(E||(E=f.dropdownItemRenderer),f.dropdownItemRenderer.isSelected=!1,n===f.dropdownItemRenderer.int32Value&&(y=!0,f.dropdownItemRenderer.isSelected=!0));!y&&E&&(E.isSelected=!0)}_.IS(this,function(){var Q;v.set("data.quantityPicker",_.sh.unsafeClone((Q=v.data)==null?void 0:Q.quantityPicker))})}};
yO.prototype.onYtRendererstamperFinished=yO.prototype.onYtRendererstamperFinished;yO.prototype.entityChanged=yO.prototype.entityChanged;_.k([_.H(),_.W("design:type",Object)],yO.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yO.prototype,"compact",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],yO.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yO.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(v,E){return _.LH(v.entities,"commerceCartItemEntity",E)}}),
_.W("design:type",Object)],yO.prototype,"commerceCartItemEntity",void 0);_.k([_.H(),_.W("design:type",Object)],yO.prototype,"quantityPicker",void 0);_.k([_.H(),_.W("design:type",Object)],yO.prototype,"compactQuantityPicker",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yO.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yO.prototype,"errorHidden",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.W("design:type",Object)],yO.prototype,"noOnTap",void 0);_.k([_.Wp("ytd-commerce-cart-item-quantity-picker-renderer"),_.W("design:type",Object)],yO.prototype,"pickerElement",void 0);_.k([_.Wp("yt-button-renderer"),_.W("design:type",Element)],yO.prototype,"firstButtonElement",void 0);
_.k([_.On("commerceCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yO.prototype,"entityChanged",null);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yO.prototype,"onYtRendererstamperFinished",null);yO=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],yO);
_.u(yO,"ytd-commerce-cart-item-renderer",function(){if(qYg!==void 0)return qYg;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return qYg=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var KJX;var d41;var pn=function(){return _.g.apply(this,arguments)||this};
_.S(pn,_.g);pn.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}}}}}};
pn.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
pn.prototype.updateCheckoutLineItems=function(){var v,E=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.checkoutLineItems;E&&(v=E.map(function(n){a:{var f=n.price,x=n.description;switch(n.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":n={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:IV(x),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:IV(f),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:n={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:IV(x),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:IV(f),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 n}),this.set("data.summaryLineItems",v))};
pn.prototype.updateIsHidden=function(){var v,E=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;E!==void 0&&(this.hostElement.hidden=E)};
pn.prototype.entityChanged=pn.prototype.entityChanged;_.k([_.h(_.PL),_.W("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],pn.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RcG}),_.W("design:type",Object)],pn.prototype,"commerceCartCheckoutButtonEntity",void 0);_.k([_.On("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pn.prototype,"entityChanged",null);pn=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],pn);
_.u(pn,"ytd-commerce-cart-summary-renderer",function(){if(d41!==void 0)return d41;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return d41=v},{mode:1});var Is1={};Is1.InjectBehavior=[CvE.InjectBehavior];var YY1;var hDz;var QO=function(){return _.g.apply(this,arguments)||this};
_.S(QO,_.g);
QO.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:_.Fm("menuRenderer")}}};
QO.prototype.onMenuTap=function(v){v.stopPropagation()};
_.hK.Object.defineProperties(QO.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 v,E;return!(((v=this.data)==null||!v.sectionHeading)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var v,E;return!(((v=this.data)==null||!v.image)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var v,E;return!(((v=this.data)==null||!v.menu)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.FJ1.YtTappableItemBehavior),_.W("design:type",Object)],QO.prototype,"ytTappableItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QO.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.accessibilityData"),_.W("design:type",String),_.W("design:paramtypes",[])],QO.prototype,"ariaLabel",null);_.k([_.A("data.sectionHeading","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QO.prototype,"sectionHeadingVisible",null);_.k([_.A("data.image","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QO.prototype,"imageVisible",null);
_.k([_.A("data.menu","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QO.prototype,"menuVisible",null);QO=_.k([_.p5({is:"yt-activity-item-renderer",disableElementRegistration:!0})],QO);
_.u(QO,"yt-activity-item-renderer",function(){if(hDz===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;YY1===void 0&&(YY1=document.createElement("template"));var f=YY1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);hDz=v}v=hDz;return v},{mode:2});var AHg;var Vvl;var D46;var H_o;var XU=function(){return _.g.apply(this,arguments)||this};
_.S(XU,_.g);
XU.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"}}}}};
XU.prototype.backgroundColorChanged_=function(){var v,E=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=LY[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
XU.prototype.backgroundColorChanged_=XU.prototype.backgroundColorChanged_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],XU.prototype,"data",void 0);
_.k([_.On("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XU.prototype,"backgroundColorChanged_",null);XU=_.k([_.p5({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],XU);
_.u(XU,"yt-offer-item-upsell-renderer",function(){if(H_o===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;D46===void 0&&(D46=document.createElement("template"));var f=D46;n.call(E,f.content.cloneNode(!0),v.content.firstChild);H_o=v}v=H_o;return v},{mode:2});_.ew("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var eB=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};v.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return v};
_.S(eB,_.g);_.c=eB.prototype;
_.c.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:_.Fm("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.c.computeContainerStyle_=function(v){return v};
_.c.computeContainerIsHidden_=function(v){return v&&!!v.isHidden};
_.c.computeShowSpinner_=function(v,E){return v&&E==="in-progress"};
_.c.computeShowMoreContentsButton_=function(v,E,n,f,x){return!(!(f&&f.length||x&&x.length&&n)||!v||E)};
_.c.onToggleButton_=function(v){var E=this;v.stopPropagation();this.isExpanded_=v.detail&&v.detail.toggled;var n,f;this.isExpanded_&&!this.data.continuationSection.length&&((n=this.data)==null?0:(f=n.continuation)==null?0:f.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.jK(this.hostElement,"yt-load-next-continuation",function(x){return E.getContinuationUrl_(E.data.continuation.onClickContinuationData,x)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.$Z(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.c.onShowMoreContentsButtonClicked_=function(v){var E=this;v.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.jK(this.hostElement,"yt-load-next-continuation",function(n){return E.getContinuationUrl_(E.data.continuations[0].nextContinuationData,n)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.$Z(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.c.getContinuationUrl_=function(v,E){var n=v.continuation;v=v.clickTrackingParams;var f=_.lc();v&&f&&_.qx(f,_.tx(v));return _.V1(E,{continuation:n})};
_.c.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var v=_.K(this.hostElement).querySelector("#continuation-section");v&&(v=v.querySelectorAll("ytmusic-item-section-renderer"))&&v.forEach(function(E){return E.classList.add("memberships-and-purchases")})};
_.c.dataChanged_=function(){var v;this.isExpanded_=!((v=this.data)==null||!v.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.c.updateCardOnClickCommand_=function(v){v=_.C(v,QDg);var E,n;this.data&&((E=this.data)==null?0:E.targetId)&&v&&v.targetId===((n=this.data)==null?void 0:n.targetId)&&v.onClickCommand&&(this.data.onClickCommand=v.onClickCommand,this.isOnClickCommand_=!0)};
_.c.backgroundColorChanged_=function(){var v,E=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=LY[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
eB.prototype.backgroundColorChanged_=eB.prototype.backgroundColorChanged_;eB.prototype.dataChanged_=eB.prototype.dataChanged_;eB.prototype.nextContinuationDataUpdated_=eB.prototype.nextContinuationDataUpdated_;eB.prototype.onToggleButton_=eB.prototype.onToggleButton_;_.k([_.h(_.MU),_.W("design:type",Object)],eB.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],eB.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],eB.prototype,"ytNextContinuationBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.k([_.h(Is1.InjectBehavior),_.W("design:type",Object)],eB.prototype,"injectBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eB.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eB.prototype,"compact",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eB.prototype,"isExpanded_",void 0);_.k([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.W("design:type",String)],eB.prototype,"containerStyle_",void 0);_.k([_.H({value:"not-started"}),_.W("design:type",String)],eB.prototype,"continuationStatus_",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.W("design:type",Boolean)],eB.prototype,"showSpinner_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],eB.prototype,"isOnClickCommand_",void 0);_.k([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.W("design:type",Boolean)],eB.prototype,"showMoreContentsButton_",void 0);
_.k([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(v,E){return!E||v.entities?null:_.LH(v.entities,"cardItemContainerEntity",E)}}),
_.W("design:type",Object)],eB.prototype,"cardItemContainerEntity_",void 0);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eB.prototype,"onToggleButton_",null);_.k([_.jk("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eB.prototype,"nextContinuationDataUpdated_",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eB.prototype,"dataChanged_",null);_.k([_.On("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eB.prototype,"backgroundColorChanged_",null);eB=_.k([_.p5({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],eB);
_.u(eB,"yt-card-item-container-renderer",function(){if(Vvl===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;AHg===void 0&&(AHg=document.createElement("template"));var f=AHg;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Vvl=v}v=Vvl;return v},{mode:2});var FU=function(){return _.g.apply(this,arguments)||this};
_.S(FU,_.g);FU.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"}}}};
FU.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
FU.prototype.computeLoadingHidden=function(){var v;return!((v=this.commerceCartPageStateEntity)==null?0:v.cartActionInProgress)};
FU.prototype.updateNotification=function(){var v,E=(v=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:v.summaryText;E&&this.set("data.cartNotification",IV(E))};
FU.prototype.notificationEntityChanged=FU.prototype.notificationEntityChanged;_.k([_.h(_.PL),_.W("design:type",Object)],FU.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],FU.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],FU.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(v,E){return _.LH(v.entities,"commerceCartExpandableNotificationEntity",E)}}),
_.W("design:type",Object)],FU.prototype,"commerceCartExpandableNotificationEntity",void 0);_.k([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(v,E){return _.LH(v.entities,"commerceCartPageStateEntity",E)}}),
_.W("design:type",Object)],FU.prototype,"commerceCartPageStateEntity",void 0);_.k([_.Wp("#spinner"),_.W("design:type",HTMLElement)],FU.prototype,"spinner",void 0);_.k([_.On("commerceCartExpandableNotificationEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FU.prototype,"notificationEntityChanged",null);FU=_.k([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],FU);
_.u(FU,"ytd-commerce-cart-renderer",function(){if(KJX!==void 0)return KJX;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return KJX=v},{mode:1});var gAi;var ms=function(){var v=_.g.apply(this,arguments)||this;v.bigImage=!1;return v};
_.S(ms,_.g);_.hK.Object.defineProperties(ms.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.placeholderImageUrl}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ms.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ms.prototype,"bigImage",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ms.prototype,"placeholderImageUrl",null);ms=_.k([_.N({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],ms);
_.u(ms,"ytd-empty-product-shelf-renderer",function(){if(gAi!==void 0)return gAi;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return gAi=v},{mode:1});var Nc4;var wE=function(){var v=_.g.apply(this,arguments)||this;v.itemStyle="link-item";v.watchMetadataRefresh=!1;v.skinnyMode=!1;v.metaPanel=!1;v.inStructuredDescription=!1;v.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};v.updateOnResizeDebouncer=null;return v};
_.S(wE,_.g);_.c=wE.prototype;_.c.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.c.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"}}}}};
_.c.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.c.attachVEs=function(v){v.trackingParams&&_.Tl().graftServerVe(v.trackingParams)};
_.c.handleUpdateMerchShelfAction=function(v){var E=this,n=_.C(v.updateMerchandiseShelfAction.merchandiseShelf,_.vql);n&&(n.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){E.attachVEs(n);E.data=n},Number(n.renderDelayMs))):(this.attachVEs(n),this.data=n))};
_.c.updateOnResize=function(){if(this.JSC$14590_scrollContainer!==void 0&&this.JSC$14590_scrollContainer.clientWidth!==0&&this.items!==void 0){var v=this.JSC$14590_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_();var E;switch((E=this.data)==null?void 0:E.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var n,
f;((n=this.data)==null?void 0:(f=n.items)==null?void 0:f.length)===1?this.itemStyle="cta-item":this.itemStyle=v>=740?"large-item":"small-item"}}};
_.c.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.tS(this.updateOnResizeDebouncer,_.uF.after(100),this.updateOnResize)};
wE.prototype.debouncedUpdateOnResize=wE.prototype.debouncedUpdateOnResize;wE.prototype.dataChanged=wE.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],wE.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wE.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wE.prototype,"itemStyle",void 0);_.k([_.H({value:6}),_.W("design:type",Number)],wE.prototype,"initialCount",void 0);
_.k([_.H({value:"data.items"}),_.W("design:type",String)],wE.prototype,"itemsPath",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wE.prototype,"watchMetadataRefresh",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wE.prototype,"skinnyMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wE.prototype,"metaPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wE.prototype,"inStructuredDescription",void 0);
_.k([_.Wp("#items"),_.W("design:type",HTMLDivElement)],wE.prototype,"items",void 0);_.k([_.Wp("#scroll-container"),_.W("design:type",HTMLDivElement)],wE.prototype,"JSC$14590_scrollContainer",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wE.prototype,"dataChanged",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wE.prototype,"debouncedUpdateOnResize",null);
wE=_.k([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wE);
_.u(wE,"ytd-merch-shelf-renderer",function(){if(Nc4!==void 0)return Nc4;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Nc4=v},{mode:2});var uR1;var bl=function(){var v=_.g.apply(this,arguments)||this;v.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 v};
_.S(bl,_.g);_.c=bl.prototype;
_.c.addBackstagePostAction=function(v){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(v=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",v))&&(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:v}):this.set("data.contents",[{backstagePostThreadRenderer:v}]))};
_.c.addBackstageCommentAction=function(v){var E=this.get("addBackstageCommentAction.parentId",v);v=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",v);if(E&&v){E=this.postIdToIndices(E);for(var n=0;n<E.length;n++){var f=E[n];if(f<0)break;f="data.contents."+f+".backstagePostThreadRenderer.comments";this.get(f)&&(this.get(f+".backstageCommentsRenderer.contents")&&this.push(f+".backstageCommentsRenderer.contents",{commentThreadRenderer:v}),this.get(f+".backstageCommentsRenderer.teaserContents")?
this.push(f+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:v}):this.set(f+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:v}]))}}};
_.c.addBackstageReplyAction=function(v){var E=this.get("addBackstageReplyAction.parentId",v);v=this.get("addBackstageReplyAction.renderer.commentRenderer",v);E&&v&&this.setCreatorReply(E,v)};
_.c.banAuthorAction=function(v){var E=this.get("banAuthorAction.commentId",v);E&&(v=this.get("banAuthorAction.parentCommentId",v)||this.getParentPostId(E),this.removeFromStream(E,v))};
_.c.hideReportedCommentAction=function(v){var E=this.get("hideReportedCommentAction.commentId",v);E&&((v=this.get("hideReportedCommentAction.parentCommentId",v))||(v=this.getParentPostId(E)),this.removeFromStream(E,v))};
_.c.replaceBackstageCommentAction=function(v){var E=this.get("replaceBackstageCommentAction.commentId",v),n=this.get("replaceBackstageCommentAction.parentId",v);v=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",v);if(E&&n&&v){n=this.postIdToIndices(n);for(var f=0;f<n.length;f++){var x=n[f];if(x<0)break;var y=this.commentIdToIndex(E,x,!1);if(y>=0){var Q=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+y+".commentThreadRenderer.replies.commentRepliesRenderer");
Q&&(v.replies={commentRepliesRenderer:Q});this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",y,1,{commentThreadRenderer:v})}y=this.commentIdToIndex(E,x,!0);if(y>=0){if(Q=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(y+".commentThreadRenderer.replies.commentRepliesRenderer")))v.replies={commentRepliesRenderer:Q};this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
y,1,{commentThreadRenderer:v})}}}};
_.c.replaceBackstagePostAction=function(v){var E=this.get("replaceBackstagePostAction.itemId",v);if(E){E=this.postIdToIndices(E);for(var n=0;n<E.length;n++){var f=E[n];if(f<0)break;var x=this.getPostRendererType(f),y=this.get("replaceBackstagePostAction.renderer."+x,v);if(!y&&x!=="sharedPostRenderer")break;var Q=!1;y||(Q=!0,y=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",v));if(!y)break;var e={};Q?(_.c8(e,Qyo,y),this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
e)):(_.c8(e,new _.z(x),y),this.set("data.contents."+f+".backstagePostThreadRenderer.post",e))}}};
_.c.replaceBackstageReplyAction=function(v){var E=this.get("replaceBackstageReplyAction.replyId",v),n=this.get("replaceBackstageReplyAction.parentId",v);v=this.get("replaceBackstageReplyAction.renderer.commentRenderer",v);E&&v&&n&&this.setCreatorReply(n,v)};
_.c.removeCommentAction=function(v){var E=this.get("removeCommentAction.commentId",v);if(E){var n=this.get("removeCommentAction.parentCommentId",v);n&&this.get("removeCommentAction.isCreatorReply",v)?this.setCreatorReply(n,void 0):(n||(n=this.getParentPostId(E)),this.removeFromStream(E,n))}};
_.c.setCreatorReply=function(v,E){var n=this.getParentPostId(v);if(n){n=this.postIdToIndices(n);for(var f=0;f<n.length;f++){var x=n[f];if(x<0)break;var y=this.commentIdToIndex(v,x,!1);if(y>=0){var Q="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+y;y=Q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Q+=".commentThreadRenderer.replies";E==void 0?(this.set(Q,{}),this.set(y,!1)):(this.set(Q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),
this.set(Q+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(y,!0))}y=this.commentIdToIndex(v,x,!0);y>=0&&(y="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+y,x=y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",y+=".commentThreadRenderer.replies",E==void 0?(this.set(y,{}),this.set(x,!1)):(this.set(y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),this.set(x,!0)))}}};
_.c.removeFromStream=function(v,E){if(E){E=this.postIdToIndices(E);for(var n=0;n<E.length;n++){var f=E[n];if(f<0)break;var x=this.commentIdToIndex(v,f,!1);x>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",x,1);x=this.commentIdToIndex(v,f,!0);x>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",x,1);f="data.contents."+f+".backstagePostThreadRenderer.post.backstagePostRenderer";
x=f+".backstageAttachment.pollRenderer.votedCommentId";this.get(x)===v&&(this.set(x,null),this.set(f+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(E=this.postIdToIndices(v).reverse(),n=0;n<E.length;n++){f=E[n];if(f<0)break;x=this.getPostRendererType(f);var y=this.get("backstagePostThreadRenderer.post."+x,this.data.contents[f]);y.postId===v?this.splice("data.contents",f,1):x==="sharedPostRenderer"&&this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);y.scheduledPublishTimeSec&&_.OL(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.c.postIdToIndices=function(v){for(var E=[],n=0;n<this.data.contents.length;n++){var f=this.getPostRendererType(n);this.get("backstagePostThreadRenderer.post."+f+".postId",this.data.contents[n])===v&&E.push(n);if(f==="sharedPostRenderer"){var x=this.get("backstagePostThreadRenderer.post."+f+".originalPost.backstagePostRenderer.postId",this.data.contents[n]);f=this.get("backstagePostThreadRenderer.post."+f+".originalPost.postRenderer.postId",this.data.contents[n]);x!==v&&f!==v||E.push(n)}}return E};
_.c.commentIdToIndex=function(v,E,n){if(E<0)return-1;var f,x,y,Q,e=_.C((f=this.data)==null?void 0:(x=f.contents)==null?void 0:(y=x[E])==null?void 0:(Q=y.backstagePostThreadRenderer)==null?void 0:Q.comments,yPP);return(E=n?e==null?void 0:e.teaserContents:e==null?void 0:e.contents)&&E.length?E.findIndex(function(F){return _.C(F,DmF).comment.commentRenderer.commentId===v}):-1};
_.c.getParentPostId=function(v){v=v.split(".");if(v[1])return v[0]};
_.c.getPostRendererType=function(v){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[v])?"sharedPostRenderer":"backstagePostRenderer"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],bl.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bl.prototype,"data",void 0);bl=_.k([_.N({disableElementRegistration:!0,is:"ytd-backstage-items"})],bl);
_.u(bl,"ytd-backstage-items",function(){if(uR1!==void 0)return uR1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return uR1=
v},{mode:1});var jp6;_.Ee({is:"ytd-comments",_template:function(){if(jp6!==void 0)return jp6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return jp6=v},
behaviors:[_.U8I.YtHostElementBehavior,_.I2.YtPlayerListenerBehavior,_.B.YtRendererBehavior,_.N2.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(v){v&&v.value&&v.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(v){v&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.e7("wn_comments");var v=_.lc();v&&_.XD({clientScreenNonce:v},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(v){v=fc1(v);var E,n,f;if(v=(E=v)==null?void 0:(n=E.createCommentAction)==null?void 0:(f=n.contents)==null?void 0:f.commentThreadRenderer){var x,y,Q,e,F,b;!this.isBackstage&&((x=this.data)==null?0:(y=x.header)==null?0:(Q=y.commentsHeaderRenderer)==null?0:(e=Q.createRenderer)==null?0:(F=e.commentSimpleboxRenderer)==null?0:(b=F.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var l,r,a,M;this.isBackstage&&((l=this.data)==null?0:(r=l.header)==null?0:(a=r.commentsHeaderRenderer)==null?0:(M=a.zeroStateMessage)==null?0:M.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(v)}},
doReplyInsert_:function(v,E,n,f){f?this.splice(v,f,0,E):this.push(v,E)},
getRepliesPath_:function(v){return"data.contents."+v+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(v,E){v=this.getRepliesPath_(v);return E?v+".commentRepliesRenderer.teaserContents":v+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(v){v=fc1(v);var E,n,f=(E=v)==null?void 0:(n=E.createCommentReplyAction)==null?void 0:n.parentCommentId,x,y;if(E=(x=v)==null?void 0:(y=x.createCommentReplyAction)==null?void 0:y.contents)if(f=this.commentIdToIndex_(f),!(f<0))if(x=this.getRepliesPath_(f),this.get(x)){var Q,e;v=(Q=v)==null?void 0:(e=Q.createCommentReplyAction)==null?void 0:e.replyToCommentId;Q=this.getRepliesContentsPath_(f,!1);this.get(Q)&&(e=this.get(Q).length,x=Q+"."+(e-1)+".continuationItemRenderer",
this.get(x+".button")?(x=this.replyIdToIndex_(v,f,!1),this.doReplyInsert_(Q,E,x,e-1)):this.get(x)||(e=this.replyIdToIndex_(v,f,!1),this.doReplyInsert_(Q,E,e,null)));Q=this.getRepliesContentsPath_(f,!0);this.get(Q)?(f=this.replyIdToIndex_(v,f,!0),(!v||f>=0)&&this.doReplyInsert_(Q,E,f,null)):this.set(Q,[E])}else this.set(x,{commentRepliesRenderer:{teaserContents:[E]}})},
hideReportedCommentAction_:function(v){var E,n=v==null?void 0:(E=v.hideReportedCommentAction)==null?void 0:E.commentId;if(n){var f;v=v==null?void 0:(f=v.hideReportedCommentAction)==null?void 0:f.parentCommentId;n=n.replace("#",".");v||(v=this.getParentCommentId_(n));this.remove_(n,v)}},
getParentCommentId_:function(v){v=v.split(".");if(v[1])return v[0]},
removeCommentAction_:function(v){var E,n=v==null?void 0:(E=v.removeCommentAction)==null?void 0:E.commentId;if(n){var f;v=v==null?void 0:(f=v.removeCommentAction)==null?void 0:f.parentCommentId;n=n.replace("#",".");v||(v=this.getParentCommentId_(n));this.remove_(n,v)}},
pinCommentAction_:function(v){v=fc1(v);var E,n,f=(E=v)==null?void 0:(n=E.pinCommentAction)==null?void 0:n.commentId;f&&(v=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",v))&&(this.remove_(f),this.insert_(v,!0))},
unpinCommentAction_:function(v){v=fc1(v);var E,n,f=(E=v)==null?void 0:(n=E.unpinCommentAction)==null?void 0:n.commentId;if(f){var x,y,Q;if(v=(x=v.unpinCommentAction)==null?void 0:(y=x.actionResult)==null?void 0:(Q=y.update)==null?void 0:Q.commentThreadRenderer)this.remove_(f),this.insert_(v)}},
banAuthorAction_:function(v){var E,n=v==null?void 0:(E=v.banAuthorAction)==null?void 0:E.commentId;if(n){var f;v=v==null?void 0:(f=v.banAuthorAction)==null?void 0:f.parentCommentId;n=n.replace("#",".");v||(v=this.getParentCommentId_(n));this.remove_(n,v)}},
commentIdToIndex_:function(v){var E;return v&&(E=this.data)!=null&&E.contents?this.data.contents.findIndex(function(n){var f,x;return v===((n==null?void 0:(f=n.commentThreadRenderer)==null?void 0:f.commentViewModel)&&((x=_.C(n.commentThreadRenderer.commentViewModel,uT6))==null?void 0:x.commentId))}):-1},
insert_:function(v,E){var n,f;if((n=this.data)==null?0:(f=n.contents)==null?0:f.some(function(y){return!(y==null||!y.commentThreadRenderer)}))for(n=0,f=this.data.contents.length;n<f;n++){var x=this.data.contents[n].commentThreadRenderer;
if(this.RenderingPriority[v.renderingPriority]>=this.RenderingPriority[x.renderingPriority]){E&&this.RenderingPriority[v.renderingPriority]==this.RenderingPriority[x.renderingPriority]?this.splice("data.contents",n,1,{commentThreadRenderer:v}):this.splice("data.contents",n,0,{commentThreadRenderer:v});break}}else this.set("data.contents",[{commentThreadRenderer:v}])},
doReplyRemove_:function(v,E,n){v=this.replyIdToIndex_(v,E,n);v<0||(E=this.getRepliesContentsPath_(E,n),this.splice(E,v,1))},
remove_:function(v,E){E=this.commentIdToIndex_(E);E<0?(E=this.commentIdToIndex_(v),E<0||this.splice("data.contents",E,1)):(this.doReplyRemove_(v,E,!1),this.doReplyRemove_(v,E,!0))},
replyIdToIndex_:function(v,E,n){if(E<0)return-1;E=this.getRepliesContentsPath_(E,n);E=this.get(E);if(!E||!E.length)return-1;n=0;for(var f=E.length;n<f;n++){var x=void 0,y=void 0;if(((x=E[n])==null?void 0:(y=x.commentViewModel)==null?void 0:y.commentId)===v)return n}return-1},
computeIsBackstage_:function(v){return!!v},
tickForCommentsTimer_:function(v){_.m5(v,void 0,"wn_comments")},
reloadComments_:function(v){v&&v.reloadCommentsCommand&&v.reloadCommentsCommand.command&&v.reloadCommentsCommand.command.continuationCommand&&_.$Z(this,[v.reloadCommentsCommand.command])}});var ll=function(){return _.L2.apply(this,arguments)||this};
_.S(ll,_.L2);_.c=ll.prototype;_.c.bindIf=function(v,E,n){return v?E:n};
_.c.bindIfDefined=function(v,E){return v!==void 0?v:E};
_.c.booleanString=function(v){return(!!v).toString()};
_.c.equals=function(){for(var v=_.rV.apply(0,arguments),E=v[0],n=1;n<v.length;n++)if(E!=v[n])return!1;return!0};
_.c.isGreaterThan=function(v,E){return v>E};
_.c.isLessThan=function(v,E){return v<E};
_.c.logicalAND=function(){for(var v=_.rV.apply(0,arguments),E=!!v[0],n=1;n<v.length;n++)E=E&&!!v[n];return E};
_.c.logicalOR=function(){for(var v=_.rV.apply(0,arguments),E=!!v[0],n=1;n<v.length;n++)E=E||!!v[n];return E};
_.c.toBool=function(v){return!!v};
ll.prototype.toBool=ll.prototype.toBool;ll.prototype.logicalOR=ll.prototype.logicalOR;ll.prototype.logicalAND=ll.prototype.logicalAND;ll.prototype.isLessThan=ll.prototype.isLessThan;ll.prototype.isGreaterThan=ll.prototype.isGreaterThan;ll.prototype.equals=ll.prototype.equals;ll.prototype.booleanString=ll.prototype.booleanString;ll.prototype.bindIfDefined=ll.prototype.bindIfDefined;ll.prototype.bindIf=ll.prototype.bindIf;ll=_.k([_.Gw()],ll);_.O_1=[ll.prototype];var kOi;var WJg;var sz=function(){return _.g.apply(this,arguments)||this};
_.S(sz,_.g);sz.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
sz.prototype.onBackIconTap_=function(){window.history.back()};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sz.prototype,"data",void 0);sz=_.k([_.p5({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],sz);
_.u(sz,"yt-header-with-back-renderer",function(){if(WJg===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;kOi===void 0&&(kOi=document.createElement("template"));var f=kOi;n.call(E,f.content.cloneNode(!0),v.content.firstChild);WJg=v}v=WJg;return v},{mode:2});var $4i;var LJ4;var rE=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(rE,_.g);_.c=rE.prototype;_.c.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v,this.setUrl())};
_.c.dataChanged=function(){var v=this;if(this.data){var E=this.setUrl();E&&_.Gj({destination:window,iframe:this.iframe,origin:_.wz1(E.toString()),channelName:"yt-iframe",onMessage:function(n){(n=v.getCommunicationCommand(n.data))&&v.ytComponentBehavior.resolveCommand(n)},
onEstablished:function(){}})}};
_.c.setUrl=function(){if(this.data&&this.data.iframeUrl){var v=_.b6(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(v)return _.qa(this.iframe,v),v}};
_.c.getCommunicationCommand=function(v){var E;if((E=this.data)!=null&&E.onCommunicationCommandsMap){E=this.data.onCommunicationCommandsMap.find(function(x){return x.key===v});
if(E==null?0:E.value)return E==null?void 0:E.value;try{var n=vIS(_.w1(v)),f=this.data.onCommunicationCommandsMap.find(function(x){return x.key===(n==null?void 0:_.Sf(n,1))});
if(f==null?0:f.value)return f==null?void 0:f.value}catch(x){}}};
rE.prototype.dataChanged=rE.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],rE.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],rE.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rE.prototype,"data",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],rE.prototype,"isDarkTheme",void 0);_.k([_.Wp("#iframe"),_.W("design:type",HTMLIFrameElement)],rE.prototype,"iframe",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rE.prototype,"dataChanged",null);rE=_.k([_.p5({is:"yt-iframe-renderer",disableElementRegistration:!0})],rE);
_.u(rE,"yt-iframe-renderer",function(){if(LJ4===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;$4i===void 0&&($4i=document.createElement("template"));var f=$4i;n.call(E,f.content.cloneNode(!0),v.content.firstChild);LJ4=v}v=LJ4;return v},{mode:2});_.Pd=function(v){_.QK.call(this);this.callback=v;this.bezier=new klS(0,0,.4,0,.2,1,1,1);this.delay=new _.Dm(this.next,window,this);this.JSC$14621_animating=!1;_.BV(this,this.delay)};
_.S(_.Pd,_.QK);_.Pd.prototype.isAnimating=function(){return this.JSC$14621_animating};
_.Pd.prototype.start=function(v,E,n){this.config={from:v,to:E,duration:n,startTime:(0,_.gd)()};this.JSC$14621_animating=!0;this.next()};
_.Pd.prototype.stop=function(){this.delay.stop();this.JSC$14621_animating=!1;this.config=void 0};
_.Pd.prototype.next=function(){if(this.config){var v=this.config,E=v.from,n=v.to,f=v.duration;v=v.startTime;var x=(0,_.gd)()-v;v=this.bezier;f=$u1(v,x/f);if(f==0)v=v.y0;else if(f==1)v=v.y3;else{x=by(v.y0,v.y1,f);var y=by(v.y1,v.y2,f);v=by(v.y2,v.y3,f);x=by(x,y,f);y=by(y,v,f);v=by(x,y,f)}v=_.Jf(v,0,1);this.callback(E+(n-E)*v);v<1?this.delay.start():this.JSC$14621_animating=!1}};_.aq=new _.$Y("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var GOS={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},i_S=function(v,E,n,f){_.QK.call(this);this.JSC$14629_miniAppId=v;this.localReleaseId=E;this.derivedDeviceInterface=n;this.isForeground=f;this.JSC$14629_playNonceResolver=new _.Wy;this.playPingTimerId=NaN;this.playPingIntervalMs=_.WG("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.WG("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Z("enable_displaying_ppn");this.JSC$14629_miniAppClientDataProvider=_.P().resolve(_.aq);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Tc6(this);var x=setTimeout(function(){_.li(new _.yc("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14629_playNonceResolver.promise.then(function(){clearTimeout(x)})};
_.S(i_S,_.QK);var RDP=function(v,E){v.JSC$14629_playNonceResolver.resolve(E!=null?E:mu(8));v.enableDisplayingPpn&&zDU(v).then(function(n){v.JSC$14629_miniAppClientDataProvider.clientData.set("post_play_nonce",n)})},zDU=function(v){return _.X(function(E){return E.nextAddress==1?_.m(E,v.JSC$14629_playNonceResolver.promise,2):E.return(E.yieldResult)})},Tc6=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$14629_playNonceResolver.promise,2);E=f.yieldResult;n={miniAppInfo:{externalPostId:v.JSC$14629_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:E,derivedDeviceInterface:v.derivedDeviceInterface}};_.XD(n);_.yQ(f)})},Bcz=function(v){v.state!==0?_.li(new _.yc("[MiniAppPlayLogger] recordPlayStart failed with state "+GOS[v.state])):(v.state=1,Zo(v,"ma_cl"),Cn(v,"PLAY_EVENT_TYPE_PLAY_START"),tv6(v))},vk1=function(v){v.isForeground=!1;
Cn(v,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Ekl=function(v){v.state!==1&&v.state!==2?_.li(new _.yc("[MiniAppPlayLogger] recordPlayEnd failed with state "+GOS[v.state])):(v.state=3,window.clearInterval(v.playPingTimerId),v.playPingTimerId=NaN,PFN(),Cn(v,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},nk1=function(v,E){v.state===2&&v.gameReady&&(v.firstClickRecorded?Date.now()-v.clickRecordedMs<v.playClickIntervalMs||(v.clickRecordedMs=Date.now(),Cn(v,"PLAY_EVENT_TYPE_PLAY_CLICK")):E&&(Zo(v,"ma_fua"),Cn(v,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),v.firstClickRecorded=!0,v.clickRecordedMs=Date.now()))};
i_S.prototype.logError=function(v){var E=this,n;_.X(function(f){if(f.nextAddress==1)return v.metadata.externalPostId=E.JSC$14629_miniAppId,n=v.metadata,_.m(f,Promise.race([E.JSC$14629_playNonceResolver.promise,new Promise(function(x){setTimeout(function(){x("")},3E4)})]),2);
n.postPlayNonce=f.yieldResult;v.metadata.localReleaseId=E.localReleaseId;v.loggingError.level="WARNING";_.mb(v.loggingError,v.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:v.metadata});_.yQ(f)})};
var okw=function(v,E,n,f){var x,y,Q,e,F,b;_.X(function(l){if(l.nextAddress==1)return _.m(l,v.JSC$14629_playNonceResolver.promise,2);x=l.yieldResult;y={externalPostId:v.JSC$14629_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:x,sdkVersion:n,api:E};f!==void 0&&(y.networkRequestsMeasurement={networkRequests:_.$r(f,1),cachedRequests:_.$r(f,2),transferredBytes:_.$r(f,3)},(Q=f)==null?0:_.FB(Q,kO,6))&&(y.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((e=_.j5(f,
kO,6))==null?void 0:qr(e,1))||"0",cacheHits:((F=_.j5(f,kO,6))==null?void 0:qr(F,2))||"0",cachedBytes:((b=_.j5(f,kO,6))==null?void 0:qr(b,3))||"0"});_.eQ("miniAppSdkUsage",y);_.yQ(l)})},xz1=function(v,E,n){var f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O;
_.X(function(T){if(T.nextAddress==1)return _.m(T,v.JSC$14629_playNonceResolver.promise,2);f=T.yieldResult;x={externalPostId:v.JSC$14629_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:f,sdkVersion:n,measurementWindow:{startTimestampMs:String(Z2(E,1)),endTimestampMs:String(Z2(E,2))},frameRate:{averageFrameTimeDeltaMs:Mr(E,3),averageFrameIdleTimeMs:Mr(E,4)}};_.FB(E,Wk,5)&&(x.networkRequests={networkRequests:(y=R1(E))==null?void 0:_.$r(y,1),cachedRequests:(Q=R1(E))==null?void 0:_.$r(Q,2),transferredBytes:(e=
R1(E))==null?void 0:_.$r(e,3),sameOriginStatusCodeToCounts:f96((F=R1(E))==null?void 0:Epy(F,4)),crossOriginStatusCodeToCounts:f96((b=R1(E))==null?void 0:Epy(b,5))},(l=R1(E))==null?0:_.FB(l,kO,6))&&(x.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((r=R1(E))==null?void 0:(a=_.j5(r,kO,6))==null?void 0:qr(a,1))||"0",cacheHits:((M=R1(E))==null?void 0:(U=_.j5(M,kO,6))==null?void 0:qr(U,2))||"0",cachedBytes:((d=R1(E))==null?void 0:(Y=_.j5(d,kO,6))==null?void 0:qr(Y,3))||"0"});_.FB(E,
o8X,7)&&(x.gameCapture={averageFrameTimeDeltaMs:(V=_.j5(E,o8X,7))==null?void 0:Mr(V,1),averageFrameIdleTimeMs:(O=_.j5(E,o8X,7))==null?void 0:Mr(O,2)});_.eQ("miniAppPerformanceMetrics",x);_.yQ(T)})},cnw=function(v,E,n){var f,x;
return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.JSC$14629_playNonceResolver.promise,2);f=y.yieldResult;x={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:v.JSC$14629_miniAppId,postPlayNonce:f,miniAppReleaseId:v.localReleaseId},derivedDeviceInterface:v.derivedDeviceInterface,adTriggerType:E};x.rejectedReason=n||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.eQ("miniAppAdEvent",x);_.yQ(y)})};
i_S.prototype.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Cn=function(v,E,n,f){n=n===void 0?{}:n;f=f===void 0?!1:f;var x,y,Q,e;_.X(function(F){if(F.nextAddress==1)return x=v.isForeground,y=v.beforeReady,_.m(F,v.JSC$14629_playNonceResolver.promise,2);Q=F.yieldResult;e={externalPostId:v.JSC$14629_miniAppId,localReleaseId:v.localReleaseId,derivedDeviceInterface:v.derivedDeviceInterface,postPlayNonce:Q,type:E};n.sequenceGroup=Q;e.playState=y?"PLAY_STATE_NOT_READY":x?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.eQ("miniAppPlayEvent",e,n);
f&&_.Fu();_.yQ(F)})},Zo=function(v,E){var n;
_.X(function(f){if(f.nextAddress==1)return n=(0,_.gd)(),_.m(f,v.JSC$14629_playNonceResolver.promise,2);_.FD(E,n);_.yQ(f)})},tv6=function(v){isNaN(v.playPingTimerId)&&(v.playPingTimerId=_.i5(function(){v.state!==1&&v.state!==2?_.li(new _.yc("[MiniAppPlayLogger] reportPlayPing failed with state "+GOS[v.state])):Cn(v,"PLAY_EVENT_TYPE_PLAY_PING")},v.playPingIntervalMs))},f96=function(v){return Array.from(v.entries()).map(function(E){var n=_.p(E);
E=n.next().value;n=n.next().value;return{key:E,value:n}})};var yn1=_.WG("show_mini_app_ad_frequency_cap_ms",0),p34=function(){this.showAdIntervalMs=yn1;this.isRateLimited=!0},QL6=function(v,E){setTimeout(function(){return v.isRateLimited=!1},v.showAdIntervalMs);
v.showMiniAppAdCommand=E.showMiniAppAdCommand;v.isEmbeddedInWebview=E.isEmbeddedInWebview;v.playLogger=E.playLogger},eIl=function(v,E){var n;
return _.X(function(f){if(f.nextAddress==1){if(!v.showMiniAppAdCommand||!v.isEmbeddedInWebview)return f.return(X3g(v,E,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(v.isRateLimited)return f.return(X3g(v,E,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));v.adResolver=new _.Wy;n=M0z(new Cwo,E);hy(v.showMiniAppAdCommand,S6o(n));v.isRateLimited=!0;setTimeout(function(){return v.isRateLimited=!1},v.showAdIntervalMs);
return _.m(f,v.adResolver.promise,2)}return f.return(f.yieldResult)})};
p34.prototype.onAdFinished=function(v){v=VUg(v);var E;(E=this.adResolver)==null||E.resolve(v)};
var X3g=function(v,E,n){var f;return _.X(function(x){if(x.nextAddress==1)x=_.m(x,(f=v.playLogger)==null?void 0:cnw(f,XOs(E),n),2);else{var y=x.return;var Q=new Afg;Q=_.OH(Q,1,2);x=y.call(x,Q)}return x})};var FFi=new _.$Y("INNERTUBE_MANAGER_TOKEN");var mzS=function(){this.callbacks={}};
mzS.prototype.initialize=function(v){var E=this;this.callbacks=v;window.youtubewebview?window.youtubewebview.onmessage=function(n){w3i(E,n)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(n){w3i(E,n)})};
var w3i=function(v,E){if(E.data)try{var n=vIS(E.data);if(_.NP(_.ef(n,1))!=null){var f=l6F(_.Sf(n,2));switch(_.Sf(n,1)){case "yt-mini-app-load-audio-state":var x,y;(y=(x=v.callbacks).onAudioStateLoaded)==null||y.call(x,_.aG(f,n3(f,ZO,1)));break;case "yt-mute-mini-app":var Q,e;(e=(Q=v.callbacks).onMuteMiniApp)==null||e.call(Q);break;case "yt-unmute-mini-app":var F,b;(b=(F=v.callbacks).onUnmuteMiniApp)==null||b.call(F);break;case "yt-playable-exit":var l,r;(r=(l=v.callbacks).onExit)==null||r.call(l);
break;case "yt-post-play-nonce":var a,M;(M=(a=v.callbacks).onPostPlayNonceReceived)==null||M.call(a,Jm(f,2,ZO));break;case "yt-confirm-exit-mini-app":var U,d;(d=(U=v.callbacks).confirmExitMiniApp)==null||d.call(U);break;case "yt-confirm-exit-mini-app-edu":var Y,V;(V=(Y=v.callbacks).confirmExitMiniAppEdu)==null||V.call(Y);break;case "yt-benchmarking-response":var O,T;(T=(O=v.callbacks).onNativeBenchmarkingMessageReceived)==null||T.call(O,Jm(f,2,ZO));break;case "yt-mini-app-load-3p-consent-state":var L,
xX;(xX=(L=v.callbacks).multiplayer3pAckStateLoaded)==null||xX.call(L,_.aG(f,n3(f,ZO,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var t,QE;(QE=(t=v.callbacks).exitMiniAppSeenStateLoaded)==null||QE.call(t,_.aG(f,n3(f,ZO,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var MF,K1;(K1=(MF=v.callbacks).onNavigateToNewMiniApp)==null||K1.call(MF);break;case "yt-game-data-available":var JG,$X;($X=(JG=v.callbacks).onGameDataAvailable)==null||$X.call(JG,Jm(f,2,ZO));break;case "yt-pause-mini-app":var HI,
uE;(uE=(HI=v.callbacks).onPauseMiniApp)==null||uE.call(HI);break;case "yt-resume-mini-app":var WI,bX;(bX=(WI=v.callbacks).onResumeMiniApp)==null||bX.call(WI);break;case "yt-playable-ad-finished":var n0,qi;(qi=(n0=v.callbacks).onAdFinished)==null||qi.call(n0,Jm(f,2,ZO))}}else _.li(Error("Rh"))}catch(fl){_.mb(Error("Sh"))}else _.li(Error("Th"))};var FdI=function(v){this.rpcErrorCode=v};var M6=function(v,E,n){this.intervalMs=v;this.apiFunc=E;this.type=n;this.schedulerReady=!0};
M6.prototype.call=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1){if(E.type!==1&&v===E.cachedValue)return f.return();E.pendingApiRequestResolver||(E.pendingApiRequestResolver=new _.Wy);n=E.pendingApiRequestResolver.promise;E.cachedValue=v;return _.m(f,buP(E),2)}return f.return(n)})};
M6.prototype.flush=function(v){v=v===void 0?!1:v;var E=this;return _.X(function(n){return E.cachedValue===void 0?n.return():_.m(n,E.apiFunc(E.cachedValue,v),0)})};
var buP=function(v){var E,n,f;return _.X(function(x){switch(x.nextAddress){case 1:if(!v.schedulerReady||!v.pendingApiRequestResolver)return x.return();v.schedulerReady=!1;E=v.pendingApiRequestResolver;v.pendingApiRequestResolver=void 0;_.vW(x,2);if(v.cachedValue===void 0){x.jumpTo(4);break}return _.m(x,v.apiFunc(v.cachedValue),5);case 5:n=x.yieldResult,E.resolve(n);case 4:_.qp(x,3);break;case 2:f=_.cW(x),E.reject(f);case 3:setTimeout(function(){return _.X(function(y){v.schedulerReady=!0;return _.m(y,
buP(v),0)})},v.intervalMs),_.yQ(x)}})};var bvE=window.location.origin+"/miniapp_cloudsaves",myy=[400,401],l9i=_.WG("cloud_save_game_data_rate_limit_ms",3E3),PDi=function(v){var E=this;this.JSC$14673_miniAppId=v;this.loadAttempts=0;this.cloudSaveIntervalMs=l9i;this.initialDownloadDataSucceeded=!1;this.JSC$14673_playNonceResolver=new _.Wy;this.scottyUploadRateLimiter=new M6(this.cloudSaveIntervalMs,function(n,f){return sLS(E,n,f)},2);
this.downloadDataPromise=rn1(this);this.downloadDataPromise.then(function(){E.initialDownloadDataSucceeded=!0}).catch(function(){})},a91=function(v,E){E.then(function(n){return v.JSC$14673_playNonceResolver.resolve(n)})},Zul=function(v){return _.X(function(E){return v.cachedData===void 0?E.return(v.downloadDataPromise):E.return(v.cachedData)})},CD1=function(v,E){return _.X(function(n){v.cachedData=E;
if(!v.initialDownloadDataSucceeded)throw Error("Uh");return _.m(n,v.scottyUploadRateLimiter.call(E),0)})},MTX=function(){return new Promise(function(v){setTimeout(v,1E3,"")})},Si1=function(v,E){var n,f;
return _.X(function(x){if(x.nextAddress==1)return n=v.JSC$14673_miniAppId,_.m(x,Promise.race([v.JSC$14673_playNonceResolver.promise,MTX()]),2);f={"X-YouTube-MiniAppId":n,"X-YouTube-PostPlayNonce":x.yieldResult};"DELEGATED_SESSION_ID"in _.ZU&&iVX(E,f);return x.return(f)})},sLS=function(v,E,n){n=n===void 0?!1:n;
return _.X(function(f){return eF9()?_.Z("enable_cloud_save_error_popup_after_retry")?f.return(new Promise(function(x,y){var Q,e,F,b,l;return _.X(function(r){switch(r.nextAddress){case 1:Q=0,e=!0,b=F=null;case 2:if(!(e&&Q++<2)){r.jumpTo(4);break}_.vW(r,5);return _.m(r,UzX(v,E,n),7);case 7:F=r.yieldResult;e=F.ok?!1:!myy.includes(F.status);_.qp(r,2);break;case 5:b=l=_.cW(r);e=wOI(b);r.jumpTo(2);break;case 4:F?F.ok?(SB(v,l9i),x()):(SB(v,v.cloudSaveIntervalMs*2),y(Error("Vh`"+String(F.status),{cause:{rpcErrorCode:F.status}}))):
(SB(v,v.cloudSaveIntervalMs*2),y(b||Error("Wh"))),_.yQ(r)}})})):f.return(new Promise(function(x,y){var Q,e;
return _.X(function(F){if(F.nextAddress==1){if(v.JSC$14673_miniAppId==="")return y(Error("Xh")),F.return();_.vW(F,2);return _.m(F,UzX(v,E,n),4)}if(F.nextAddress!=2)return Q=F.yieldResult,Q.ok?(SB(v,l9i),x()):(SB(v,v.cloudSaveIntervalMs*2),y(Error("Vh`"+String(Q.status),{cause:{rpcErrorCode:Q.status}}))),_.qp(F,0);e=_.cW(F);SB(v,v.cloudSaveIntervalMs*2);y(e);_.yQ(F)})})):f.return()})},UzX=function(v,E,n){n=n===void 0?!1:n;
var f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return f=_.z3((new TextEncoder).encode(E)),x=lcL(),_.m(Q,Si1(v,x),2);y=Q.yieldResult;return Q.return(fetch(x,{method:"POST",body:new Blob([f]),headers:y,keepalive:n}))})},rn1=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1){if(!eF9())return f.return("");if(v.JSC$14673_miniAppId==="")throw Error("Xh");if(v.loadAttempts>2)return f.return(v.downloadDataPromise);_.vW(f,2);return _.m(f,qiX(v),4)}if(f.nextAddress!=2)return E=f.yieldResult,f.return(E);n=_.cW(f);if(wOI(n)&&++v.loadAttempts<2)return f.return(rn1(v));throw n;})},qiX=function(v){var E,n,f,x,y;
return _.X(function(Q){switch(Q.nextAddress){case 1:return _.vW(Q,2),E=lcL(),_.m(Q,Si1(v,E),4);case 4:return n=Q.yieldResult,_.m(Q,fetch(E,{method:"GET",headers:n}),5);case 5:return f=Q.yieldResult,f.ok?_.m(Q,f.text(),6):Q.return(Promise.reject(Error("Yh`"+String(f.status),{cause:new FdI(f.status)})));case 6:return x=Q.yieldResult,Q.return((new TextDecoder).decode(_.w1(x)));case 2:return y=_.cW(Q),Q.return(Promise.reject(y))}})},SB=function(v,E){v.cloudSaveIntervalMs=E;
v.scottyUploadRateLimiter.intervalMs=v.cloudSaveIntervalMs};
PDi.prototype.flush=function(){var v=this;return _.X(function(E){return v.initialDownloadDataSucceeded?_.m(E,v.scottyUploadRateLimiter.flush(!0),0):E.return()})};var Jng=iI(Tt(1),LM(1)),KF1=iI(Tt(1),LM(3)),Uz=function(v){this.callbacks=v};
_.c=Uz.prototype;_.c.onAudioToggled=function(v,E){(E===void 0||E)&&_.Bg("yt-mini-app-is-audio-enabled",v,2592E3)};
_.c.onPause=function(){this.onAudioToggled(!1,!1)};
_.c.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.c.returnNativeBenchmarkingMessage=function(){};
_.c.sendGameData=function(){};
_.c.sendStartGameFrameCapture=function(){};
var sEI=function(v,E,n){this.callbacks=v;var f=this;this.sdkVersion=new _.Wy;this.channel=new SQ4(_.Gj({destination:window,iframe:E,origin:(new URL(n.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var x=q6;var y=Tt(5);var Q=new Wn1;Q=_.dO(Q,1,1E4);y=_.v5(y,4,tU1,Q);x(f,y);f.onAudioToggled(f.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){f.sdkVersion.resolve("")},1E4)};
_.S(sEI,Uz);_.c=sEI.prototype;_.c.onAudioToggled=function(v,E){Uz.prototype.onAudioToggled.call(this,v,E===void 0?!0:E);E=q6;var n=Tt(2),f=new Oei;v=_.iU(f,1,v);v=_.v5(n,3,tU1,v);E(this,v)};
_.c.onPause=function(){Uz.prototype.onPause.call(this);q6(this,Tt(3))};
_.c.onResume=function(){Uz.prototype.onResume.call(this);q6(this,Tt(4))};
_.c.returnNativeBenchmarkingMessage=function(v){var E=q6,n=Tt(6);var f=LM(_.FB(v,uy,1)?1:2);v=_.FB(v,uy,1)?v:null;f=_.v5(f,5,Gt,v);E(this,iI(n,f))};
_.c.sendGameData=function(v){var E=q6,n=Tt(7);v=_.v5(n,5,tU1,v);E(this,v)};
_.c.sendStartGameFrameCapture=function(){q6(this,Tt(9))};
var J4=function(v,E,n){var f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return f=v.callbacks,x=f.onSdkCalled,y=E,_.m(Q,v.sdkVersion.promise,2);x.call(f,y,Q.yieldResult,n);_.yQ(Q)})};
sEI.prototype.onMessage=function(){var v=this;return JGX(t8,function(E){var n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF,K1,JG,$X,HI,uE,WI,bX,n0,qi,fl,yP,IF,QP,T3,aK,yE,Cl,VP,JR,d1,$w,y6,eo;return _.X(function(kX){switch(kX.nextAddress){case 1:if(!ymi(E.data))return _.li(Error("Zh")),kX.return();n=_.Ua(E.data,1);_.Z("enable_iframe_message_get_type_via_fields")&&(f=E.data,n=x=_.Ua(f,1));switch(n){case 8:if(E.data.hasMetadata()){var lX=v.sdkVersion,cb=lX.resolve;var Zz=E.data.getMetadata();Zz=_.Sf(Zz,
1);cb.call(lX,Zz);clearTimeout(v.sdkVersionTimeoutId)}break;case 6:return kX.jumpTo(2);case 16:if(!_.mk(E.data,E8S,14,Bk))return kX.return();y=_.K9(E.data,E8S,14,Bk);(e=(Q=v.callbacks).onGameFrameReceived)==null||e.call(Q,y);return kX.return();case 17:if(!_.mk(E.data,v8U,15,Bk))return kX.return();(b=(F=v.callbacks).onGameAudioReceived)==null||b.call(F,_.K9(E.data,v8U,15,Bk));return kX.return();case 1:if(lX=_.K9(E.data,GYz,2,Bk))switch(_.Ua(lX,1)){case 1:v.callbacks.onFirstFrameReady();if(_.Z("enable_network_request_logging_on_game_events")&&
_.FB(lX,Wk,4)){J4(v,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.j5(lX,Wk,4));break}J4(v,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Zz=(cb=v.callbacks).onGameReady)==null||Zz.call(cb);if(_.Z("enable_network_request_logging_on_game_events")&&_.FB(lX,Wk,4)){J4(v,"MINI_APP_SDK_API_GAME_READY",_.j5(lX,Wk,4));break}J4(v,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.mk(lX,$O,3,Twi))v.callbacks.onResourceLoaded(_.K9(lX,$O,3,Twi))}return kX.return();case 3:return kX.jumpTo(3);case 4:return kX.jumpTo(4);
case 2:return kX.jumpTo(5);case 9:return kX.jumpTo(6);case 10:return v.callbacks.onClick(),kX.return();case 5:return kX.jumpTo(7);case 11:if(!_.mk(E.data,jH,9,Bk))return kX.return();l=_.K9(E.data,jH,9,Bk);(a=(r=v.callbacks).onBenchmarkingMessageReceived)==null||a.call(r,l);lX=E.reply;cb=Tt(1);Zz=LM(1);var C0=new jH;var ZL=new Uint8Array(Rj9(l,n3(l,Heo,6))|0);C0=RY(C0,5,Heo,_.jo(ZL,!1));Zz=_.v5(Zz,5,Gt,C0);lX.call(E,iI(cb,Zz));return kX.return();case 12:return kX.jumpTo(8);case 13:return kX.jumpTo(9);
case 15:if(!_.Z("enable_open_yt_content"))return E.reply(KF1),kX.return();if(!_.mk(E.data,BwF,12,Bk))return E.reply(iI(Tt(1),LM(2))),kX.return();lX=_.K9(E.data,BwF,12,Bk);M=_.Sf(lX,1);v.callbacks.onOpenYTContent(M);E.reply(Jng);return kX.return();case 14:return kX.jumpTo(10);default:return kX.return()}kX.jumpTo(0);break;case 2:if(!_.mk(E.data,zt,5,Bk))return kX.return();cb=E.data;lX=n3(cb,Bk,5);cb=cb.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(lX=Um(cb,cb[_.J6]|0,zt,lX))||(lX=zt[Ox])||
(lX=new zt,h6(lX.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),lX=zt[Ox]=lX);U=lX;lX=_.kr(U,OS,1,_.WV());d=_.p(lX);Y=d.next();case 12:if(Y.done){kX.jumpTo(14);break}V=Y.value;O=new _.yc;O.level=_.Ua(V,2)===1?"WARNING":"ERROR";T=Pm9(V.getSource());return _.m(kX,v.sdkVersion.promise,15);case 15:L={source:T,sdkVersion:kX.yieldResult};_.aO(_.ef(V,6))!=null?(O.message=V.getMessage(),O.stack=_.Sf(V,5),L.sdkErrorType=ac$(_.Ua(V,6)),_.aO(_.ef(V,7))!=null&&(L.sdkApi=ZvN(_.Ua(V,7)))):O.stack=void 0;
t=xX=void 0;(t=(xX=v.callbacks).onError)==null||t.call(xX,{loggingError:O,metadata:L});Y=d.next();kX.jumpTo(12);break;case 14:return kX.return();case 3:return _.vW(kX,16),lX=v.callbacks,cb=lX.onSave,Zz=_.K9(E.data,kYP,4,Bk),Zz=_.Sf(Zz,1),_.m(kX,cb.call(lX,Zz),18);case 18:E.reply(Jng);_.qp(kX,17);break;case 16:return QE=_.cW(kX),MF=Ay,K1=QE,JG=v.callbacks,$X="MINI_APP_SDK_API_SAVE_DATA",_.m(kX,v.sdkVersion.promise,19);case 19:MF(K1,JG,$X,kX.yieldResult),E.reply(KF1);case 17:return _.m(kX,J4(v,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return kX.return();case 4:return _.vW(kX,21),_.m(kX,v.callbacks.onLoad(),23);case 23:HI=kX.yieldResult;lX=E.reply;cb=Tt(1);Zz=LM(1);C0=new kYP;C0=_.ps(C0,1,HI);Zz=_.v5(Zz,3,Gt,C0);lX.call(E,iI(cb,Zz));_.qp(kX,22);break;case 21:return uE=_.cW(kX),WI=Ay,bX=uE,n0=v.callbacks,qi="MINI_APP_SDK_API_LOAD_DATA",_.m(kX,v.sdkVersion.promise,24);case 24:WI(bX,n0,qi,kX.yieldResult),E.reply(KF1);case 22:return _.m(kX,J4(v,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return kX.return();case 5:_.vW(kX,
26);v.callbacks.onSendHighScore(rC(_.K9(E.data,xrl,3,Bk).getValue()));E.reply(iI(Tt(1),LM(1)));_.qp(kX,27);break;case 26:return fl=_.cW(kX),yP=Ay,IF=fl,QP=v.callbacks,T3="MINI_APP_SDK_API_SEND_SCORE",_.m(kX,v.sdkVersion.promise,28);case 28:yP(IF,QP,T3,kX.yieldResult),E.reply(KF1);case 27:return _.m(kX,J4(v,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return kX.return();case 6:if(!_.mk(E.data,cmS,8,Bk)){kX.jumpTo(30);break}lX=_.K9(E.data,cmS,8,Bk);lX=_.Ua(lX,1);return _.m(kX,J4(v,ZvN(lX)),30);case 30:return kX.return();
case 7:return lX=E.reply,cb=Tt(1),Zz=LM(1),C0=v.callbacks.getLanguage(),Zz=RY(Zz,4,Gt,g_(C0)),lX.call(E,iI(cb,Zz)),_.m(kX,J4(v,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return kX.return();case 8:if(!_.mk(E.data,f2P,10,Bk))return kX.return();aK=_.K9(E.data,f2P,10,Bk);yE=v.callbacks;Cl=yE.onSdkPerformanceUpdate;return _.m(kX,v.sdkVersion.promise,33);case 33:return Cl.call(yE,aK,kX.yieldResult),kX.return();case 9:lX=E.data;cb=n3(lX,Bk,11);if(_.NP(_.ef(lX,cb))==null)return E.reply(iI(Tt(1),LM(2))),
kX.return();VP=Jm(E.data,11,Bk);v.callbacks.onShareInviteCode(VP);E.reply(Jng);return _.m(kX,J4(v,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return kX.return();case 10:if(_.mk(E.data,jrw,13,Bk)){kX.jumpTo(35);break}return _.m(kX,v.callbacks.onShowMiniAppAd(2),36);case 36:return JR=kX.yieldResult,E.reply(iI(Tt(1),ziF(JR))),_.m(kX,J4(v,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return kX.return();case 35:lX=_.K9(E.data,jrw,13,Bk);a:switch(_.Ua(lX,1)){case 1:lX={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:lX={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:lX={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}d1=lX;$w=d1.adType;y6=d1.sdkApi;lX=v.callbacks;cb=lX.onShowMiniAppAd;Zz=_.K9(E.data,jrw,13,Bk);Zz=_.Sf(Zz,2);return _.m(kX,cb.call(lX,$w,Zz||void 0),38);case 38:return eo=kX.yieldResult,E.reply(iI(Tt(1),ziF(eo))),_.m(kX,J4(v,y6),39);case 39:return kX.return()}})})};
var q6=function(v,E){_.X(function(n){v.channel.send(E);_.yQ(n)})},Ve=function(v,E,n){this.callbacks=v;
var f=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;v=yjE(E,(new URL(n.toString())).origin);this.gameSnacks=new j$X(v);this.gameSnacks.page.onReady(function(){f.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){f.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var x,y;(y=(x=f.callbacks).onGameReady)==null||y.call(x)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(x,y){try{f.callbacks.onSendHighScore(y)}catch(Q){Ay(Q,f.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(x,y){var Q;return _.X(function(e){if(e.nextAddress==1)return _.vW(e,2),_.m(e,f.callbacks.onSave(f.decoder.decode(y)),4);if(e.nextAddress!=2)return _.qp(e,0);Q=_.cW(e);Ay(Q,f.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return e.return()})});
this.gameSnacks.storage.onLoad(function(){var x,y;return _.X(function(Q){if(Q.nextAddress==1)return _.vW(Q,2),_.m(Q,f.callbacks.onLoad(),4);if(Q.nextAddress!=2)return x=Q.yieldResult,Q.return(f.encoder.encode(x));y=_.cW(Q);Ay(y,f.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Q.return(f.encoder.encode(""))})});
this.gameSnacks.init()};
_.S(Ve,Uz);Ve.prototype.onAudioToggled=function(v,E){Uz.prototype.onAudioToggled.call(this,v,E===void 0?!0:E);var n;(n=this.gameSnacks)==null||n.audio.update(v)};
Ve.prototype.onPause=function(){Uz.prototype.onPause.call(this);var v;(v=this.gameSnacks)==null||v.game.pause()};
Ve.prototype.onResume=function(){Uz.prototype.onResume.call(this);var v;(v=this.gameSnacks)==null||v.game.resume()};var dz6=CmF,I9w=_.qu(function(v){var E=v.data;var n=v.loadingProgress;v=_.p(_.t7("",void 0,"LYYTdd"));var f=v.next().value,x=v.next().value;v=_.p(_.t7(!1,void 0,"K0waae"));var y=v.next().value,Q=v.next().value,e=[],F=function(){return"transform: scaleX("+(_.ba(n)||0)+")"},b=null,l=function(){var U;
return(U=E()&&b)!=null?U:b=E().showAnniversaryAnimation?6:dz6()};
_.Xp(function(){var U;if(E().timeOutMessages&&((U=E().timeOutMessages)==null?0:U.length)){b=null;U=_.p(e);for(var d=U.next();!d.done;d=U.next())clearTimeout(d.value);e.length=0;MZA(E().timeOutMessages,e,x,Q)}});
var r=function(){return!!E().persistentErrorMessageTitle},a=function(){return n!==void 0},M=function(){return E().title};
return _.w("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var U,d=(U=E().backgroundImage)==null?void 0:U.sources,Y;return(d==null?0:d.length)?"background-image: url("+((Y=d[0])==null?void 0:Y.url)+")":
""}}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.w(_.x6,{cond:function(){return!r()},
then:function(){var U={};return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.w(_.$z,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+l()},
data:function(){var d="loading_animation_"+l();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.w(_.x6,{cond:M,
then:function(){return _.w("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},M)}}),_.w("p",{class:_.W8("mini-app-splash-screen-view-model-wiz__timeout-message",(U["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return y()},U)),
"aria-live":"polite"},f),_.w(_.x6,{cond:a,then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.w("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:F}))}})))}}),_.w(_.x6,{cond:r,
then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.w("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return E().persistentErrorMessageTitle}),_.w(_.x6,{cond:function(){return!!E().persistentErrorMessageDescription},
then:function(){return _.w("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return E().persistentErrorMessageDescription})}}))}})))},"Fd");var YiP=new _.$Y("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var hIX=Y7;Y7=function(v){function E(n){if(n){var f,x;(f=n.__spec)==null||(x=f.didUnmount)==null||x.call(f);for(f=0;f<n.childNodes.length;f++)E(n.childNodes[f])}}
hIX==null||hIX(v);oj(function(){for(var n=0;n<v.length;n++)E(v[n])})};var AnP=_.qu(function(v){var E=v.data;var n=v.score;var f=v.formattedScore;var x=v.onScoreChanged;var y=v.isEmbeddedInWebview;var Q=_.Y$(),e=function(){var M;return _.C(E==null?void 0:(M=E())==null?void 0:M.buttonViewModel,_.wQ)},F=function(){var M;
return(n==null?void 0:n())||Number(E==null?void 0:(M=E())==null?void 0:M.lastScore)||0},b=function(){var M;
return(f==null?void 0:f())||((M=e())==null?void 0:M.title)||""},l,r=1;
if(v=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))v=Number(v),r=isNaN(v)?1:v/100;_.Xp(function(){x==null||x(F());var M;var U=_.F$((M=e())==null?void 0:M.onTap);if(U){M=_.C(U,ql1);var d,Y,V;M=_.C(M==null?void 0:(d=M.panelLoadingStrategy)==null?void 0:(Y=d.inlineContent)==null?void 0:(V=Y.dialogViewModel)==null?void 0:V.customContent,UT1)}else M=void 0;if(d=M)d.score=b()});
v=_.ij(function(){var M,U,d=E==null?void 0:(M=E())==null?void 0:(U=M.loggingDirectives)==null?void 0:U.trackingParams;d&&_.El(_.P().resolve(_.nK),d);return!1});
_.l5(function(){if(Q.value){var M=Q.value.querySelector("button"),U=e();M&&U&&SWN(M,U);D4("yt-share-playable-with-high-score",function(){var d=F().toString(),Y=E==null?void 0:E().onShareHighScoreCommand,V=E==null?void 0:E().highScoreShareClientParamIdentifier,O=y==null?void 0:y();Y&&(O?(V=new bQi,d=_.ps(V,2,d),hy(Y,d.JSC$10164_serializeBinary())):V&&(_.P().resolve(YiP).clientParams.set(V,{miniAppClientParams:{highScore:d}}),y51(Y,!1)))})}});
var a=function(){var M=e();M&&(n==null?0:n())&&M.accessibilityText&&(M.accessibilityText=M.accessibilityText.replace(l,b()));l=b();return{numberValue:F(),numberText:b(),heightPx:36,fontSizeMultiplier:r,shouldAnimate:!(n==null||!n())&&!0}};
return _.w("yt-mini-app-score-button-view-model",{class:function(){var M={};return _.LR("mini-app-score-button-view-model-wiz",(M["mini-app-score-button-view-model-wiz--is-visible"]=F()!==0,M))},
el:Q,"on:click":v},A7(!1,function(){return _.w("span",{style:"display:none;"},F)}),_.w(_.mI,{data:function(){var M;
return E==null?void 0:(M=E())==null?void 0:M.buttonViewModel}},{buttonViewModel:function(M){return _.w(_.C7,{data:M.data,
animatedTextProps:a})}}))},"Gd");var NsS=_.qu(function(v){var E,n=(E=_.vs("yt-mini-app-is-theater-mode-enabled"))!=null?E:!1,f=_.Z("enable_playable_container_save_button"),x=_.Z("enable_play_next_destination_page_in_toolbar");E={};return _.w("ytm-mini-app-top-bar-view-model",null,_.w("div",{class:_.W8("yt-mini-app-top-bar-view-model",(E["yt-mini-app-top-bar-view-model--mobile"]=!1,E["yt-mini-app-top-bar-view-model--desktop"]=!0,E))},_.w("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.w(_.x6,{cond:function(){var y;
return!!v.data().backButtonEdu&&!((y=v.isExitMiniAppSeen)==null?0:y.call(v))},
then:function(){return _.w(_.mI,{data:function(){return v.data().backButtonEdu}},{buttonViewModel:_.C7})},
else:function(){return _.w(_.mI,{data:function(){return v.data().backButton}},{buttonViewModel:_.C7})}}),_.w(_.x6,{cond:function(){return v.data().viewAllButton&&!0},
then:function(){return _.w(_.mI,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.C7})}}),_.w(_.x6,{cond:function(){return v.data().title&&!0},
then:function(){return _.w("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return v.data().title})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.w(_.x6,{cond:function(){var y;
return(y=v.isDesktopPlayPage)==null?void 0:y.call(v)},
then:function(){return _.w(_.gF,null,_.w(VTF,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview}),_.w(Dzz,{enableSaveButton:function(){return _.ba(f)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.w(HuS,{menuButton:function(){return v.data().menuButton}}))},
else:function(){return _.w(_.x6,{cond:function(){return!1},
then:function(){return _.w(_.mI,{data:function(){return v.data().playPageButton}},{buttonViewModel:function(y){return _.w(_.C7,{data:y.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.w(VTF,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview})}})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.w(_.mI,{data:function(){return v.data().muteButton}},{toggleButtonViewModel:function(y){var Q=y.data;
return _.w(_.lS,{data:function(){var e,F;return Object.assign({},Q(),{isToggled:(F=(e=v.isAudioEnabled)==null?void 0:e.call(v))!=null?F:!0})},
onToggle:v.onAudioToggled,useOutlinedIcon:!0})}}),_.w(_.mI,{data:function(){return v.data().theatreModeButton}},{toggleButtonViewModel:function(y){var Q=y.data;
return _.w("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.w(_.lS,{data:function(){return Object.assign({},Q(),{isToggled:n})},
useOutlinedIcon:!0}))}}),_.w(gk4,{fullscreenButton:function(){return v.data().fullscreenButton}}),_.w(_.x6,{cond:function(){return _.ba(x)&&v.data().viewAllButton&&!1},
then:function(){return _.w(_.mI,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.C7})}}),_.w(_.x6,{cond:function(){var y;
return!((y=v.isDesktopPlayPage)==null?0:y.call(v))},
then:function(){return _.w(_.gF,null,_.w(Dzz,{enableSaveButton:function(){return _.ba(f)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.w(HuS,{menuButton:function(){return v.data().menuButton}}))}}))))},"Hd");
NsS.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var HuS=_.qu(function(v){return _.w(_.mI,{data:v.menuButton},{buttonViewModel:_.C7})},"Id"),Dzz=_.qu(function(v){var E=v.enableSaveButton;
var n=v.saveButton;var f=v.isSaved;var x=v.onSaveToggled;return _.w(_.x6,{cond:function(){return E()&&!(n==null||!n())},
then:function(){return _.w(_.mI,{data:function(){var y=_.C(n==null?void 0:n(),_.bS),Q;return{toggleButtonViewModel:Object.assign({},y,{isToggled:(Q=f==null?void 0:f())!=null?Q:!(y==null||!y.isToggled)})}}},{toggleButtonViewModel:function(y){return _.w(_.lS,{data:y.data,
onToggle:x})}})}})},"Jd"),VTF=_.qu(function(v){var E=v.highScoreButton;
var n=v.score;var f=v.formattedScore;var x=v.onScoreChanged;var y=v.isEmbeddedInWebview;return _.w(_.mI,{data:E},{miniAppScoreButtonViewModel:function(Q){return _.w(AnP,{data:Q.data,score:n,formattedScore:f,onScoreChanged:x,isEmbeddedInWebview:y})}})},"Kd"),gk4=_.qu(function(v){v=v.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.w(_.gF,null):_.w(_.mI,{data:v},{buttonViewModel:_.C7})},"Ld");_.u9o=new _.$Y("DESKTOP_CURRENT_PAGE");var LFi=_.qu(function(v){var E=v.data;var n=_.Z("force_active_time_logging_webview"),f=_.Z("skip_logs_after_end_event"),x=!1,y=new mzS,Q=void 0,e=void 0,F=_.P().resolve(FFi),b=new p34,l=void 0,r=void 0,a=[],M=void 0,U=void 0,d=!1,Y=!1,V=!1,O=!1,T=new _.Wy,L=_.P().resolve(YiP),xX=_.P().resolve(_.aq),t=_.P().resolve(_.jp(E$)),QE,MF=(QE=_.P().resolve(_.jp(_.u9o)))==null?void 0:QE.getCurrentPage(),K1=!1,JG=0,$X=function(R$){R$.preventDefault();return R$.returnValue=""},HI;
v=_.p(_.t7(!((HI=_.vs("yt-mini-app-is-audio-enabled"))!=null&&!HI),void 0,"HPBZTb"));var uE=v.next().value,WI=v.next().value,bX;HI=_.p(_.t7(!((bX=_.vs("exit-mini-app-seen-state"))==null||!bX),void 0,"kLuFyc"));var n0=HI.next().value,qi=HI.next().value;bX=_.p(_.t7(!1,void 0,"o1PbLc"));var fl=bX.next().value,yP=bX.next().value;bX=_.p(_.t7(void 0,void 0,"YlqNme"));var IF=bX.next().value,QP=bX.next().value;bX=_.p(_.t7(void 0,void 0,"AeYJne"));var T3=bX.next().value,aK=bX.next().value;bX=_.p(_.t7(!0,void 0,
"aEz9qb"));var yE=bX.next().value,Cl=bX.next().value;bX=_.p(_.t7(!1,void 0,"bcquyc"));var VP=bX.next().value,JR=bX.next().value;bX=_.p(_.t7(void 0,void 0,"FMAC5b"));var d1=bX.next().value,$w=bX.next().value;bX=_.p(_.t7(0,void 0,"HUGJEb"));var y6=bX.next().value,eo=bX.next().value,kX=_.Ig(),lX=function(){return E().isEmbeddedInWebview},cb=function(){return E().hasPlayNextShelf};
D4("yt-page-type-changed",function(R$){if(_.Z("enable_is_mini_app_page_active_bugfix"))R$.detail.newPageSubtype!=="mini_app"&&yE()&&ZL();else if(R$=_.SJI()==="mini_app",R$!==yE())if(Cl(R$),R$){var sx;R$=(sx=E().playableId)==null?void 0:sx.toString();R$!==void 0&&window.location.href.includes(R$)&&!Y&&(O=!0,Zz(),cU(mU.value))}else R$||ZL()});
D4("yt-action",function(R$){R$.detail.actionName==="yt-engagement-panel-visible-changed"&&R$.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&R$.detail.args[2]==="PAmini_app_panel"&&ZL();_.Z("enable_is_mini_app_page_active_bugfix")?R$.detail.actionName==="yt-history-load"&&!yE()&&(MF==null?0:MF.active)?(Cl(!0),Zz(),cU(mU.value)):R$.detail.actionName==="yt-history-load"&&yE()&&!E().isEmbeddedInWebview&&xZ():yE()&&R$.detail.actionName==="yt-history-load"&&(O?O=!1:E().isEmbeddedInWebview||xZ())});
_.Fp(function(){C0()});
_.Xp(function(){Zz()});
var Zz=function(){var R$=E().playableId,sx=E().localReleaseId,V6=E().derivedDeviceInterface;if(Y)_.li(new _.yc("[MiniAppContainerViewModel] onEnter was called more than once"));else{Y=!0;Q=new i_S(R$,sx,V6,document.visibilityState==="visible");Bcz(Q);e=new PDi(R$);jLP(F,R$);QL6(b,{showMiniAppAdCommand:E().showMiniAppAdCommand,isEmbeddedInWebview:E().isEmbeddedInWebview,playLogger:Q});AQG()&&(U=document.body.style.backgroundColor,_.Ko(document.body,"background-color","black"));hj();r1();T=new _.Wy;
if(E().isEmbeddedInWebview){if(R$=(new URLSearchParams(window.location.search)).get("postPlayNonce"))RDP(Q,R$),K1=!0;y.initialize({onAudioStateLoaded:function(d2){Ng(d2)},
onMuteMiniApp:function(){Ng(!1)},
onUnmuteMiniApp:function(){Ng(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(d2){K1||(RDP(Q,d2),K1=!0)},
confirmExitMiniApp:function(){var d2,E8,oK;return _.X(function(ja){if(ja.nextAddress==1)return E().confirmExitMiniAppCommand?_.m(ja,Promise.race([T.promise,Promise.resolve(!1)]),2):ja.return();(d2=ja.yieldResult)?!E().confirmExitMiniAppCommandEdu||(oK=(E8=n0)==null?void 0:E8())!=null&&oK?V4(E().confirmExitMiniAppCommand):(V4(E().confirmExitMiniAppCommandEdu),_.Bg("exit-mini-app-seen-state","true",2592E6)):V4(E().closeMiniAppCommand);_.yQ(ja)})},
onNativeBenchmarkingMessageReceived:function(d2){d2=NwP(_.ff9(d2));if(_.mk(d2,_.YC,3,DIz)){var E8=_.K9(d2,_.YC,3,DIz),oK=pOF();var ja=rC(oK.getSeconds())-rC(E8.getSeconds());E8=_.$r(oK,2)-_.$r(E8,2);ja<0&&E8>0?(ja+=1,E8-=1E9):ja>0&&E8<0&&(--ja,E8+=1E9);ja=(new uy).setSeconds(ja);ja=_.Pz(ja,2,_.Z1(E8),0);_.Bz(d2,1,ja)}var C9;(C9=r)==null||C9.returnNativeBenchmarkingMessage(d2)},
multiplayer3pAckStateLoaded:function(d2){xZ(d2)},
exitMiniAppSeenStateLoaded:function(d2){E().confirmExitMiniAppCommandEdu&&qi(d2)},
onNavigateToNewMiniApp:function(){V4(E().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(d2){d2=new URLSearchParams(d2);var E8=void 0;d2.has("invite_code")&&(E8=new Lni,d2=d2.get("invite_code"),E8=_.ps(E8,1,d2));if(d2=E8){var oK;(oK=r)==null||oK.sendGameData(d2)}},
onPauseMiniApp:function(){x=!0;fG()},
onResumeMiniApp:function(){x=!0;lr()},
onAdFinished:function(d2){b.onAdFinished(d2)}});
E().showMultiplayer3pConsentDialogCommand||T.resolve(!0);V4(E().onContainerReadyCommand)}else RDP(Q),T.resolve(!0);a91(e,zDU(Q));zDU(Q).then(function(d2){d2={miniAppPlayData:{postPlayNonce:d2}};var E8,oK=(E8=E().loggingDirectives)==null?void 0:E8.trackingParams;oK&&_.Tl().stateChanged(oK,d2)});
R$=E().showSignInDialogCommand;!eF9()&&R$&&(_.Bg("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),V4(R$));E().confirmExitMiniAppCommand&&t&&(R$=xy$(E().confirmExitMiniAppCommand))&&(t.customConfirmationCommand=R$)}},C0=function(){if(!f||Y)U&&_.Ko(document.body,"background-color",U),d=!1,M&&M.release(),e.flush().catch(function(R$){_.li(R$)}),F.flush().catch(function(R$){_.li(R$)}),Ekl(Q),$E(),r=void 0,f&&(Y=!1),Ou1(L)},ZL=function(){Cl(!1);
C0();yP(!1);$w(void 0);QP(void 0);aK(void 0);JG=0;eo(0);f||(Y=!1)},fG=function(){var R$;
(R$=r)==null||R$.onPause();M&&M.release();e.flush().catch(function(sx){_.li(sx)});
F.flush().catch(function(sx){_.li(sx)});
vk1(Q)},lr=function(){var R$;
(R$=r)==null||R$.onResume();r1();R$=Q;R$.isForeground=!0;Cn(R$,"PLAY_EVENT_TYPE_PLAY_RESUME")},Ng=function(R$){var sx;
(sx=r)==null||sx.onAudioToggled(R$);WI(R$)},xZ=function(R$){E().showMultiplayer3pConsentDialogCommand&&(E().isEmbeddedInWebview&&R$!==void 0&&T.resolve(R$),!R$&&_.SJI()==="mini_app"&&V4(E().showMultiplayer3pConsentDialogCommand))},he=function(){var R$,sx,V6,d2;
return _.X(function(E8){if(E8.nextAddress==1){if(f&&!Y)return E8.return();!E().isLivestream||E().disableVideoCapture||(R$=r)!=null&&R$.sendStartGameFrameCapture();sx=(new URL(window.location.href)).searchParams;if(sx.has("invite_code")){var oK=new Lni,ja=sx.get("invite_code");V6=_.ps(oK,1,ja);(d2=r)==null||d2.sendGameData(V6)}fl()||(yP(!0),oK=Q,oK.state!==1?_.li(new _.yc("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+GOS[oK.state])):(_.Lk("mini_app_ids_without_game_ready").includes(oK.JSC$14629_miniAppId)&&
(oK.gameReady=!0),oK.state=2,oK.beforeReady=!1,Zo(oK,"ma_ffr"),Cn(oK,"PLAY_EVENT_TYPE_PLAY_READY")));return _.m(E8,T.promise,2)}V4(E().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();E().isEmbeddedInWebview||xZ();_.yQ(E8)})},mA=function(){var R$=Q;
R$.gameReady=!0;Zo(R$,"ma_gr")},ep=function(R$){var sx;
return _.X(function(V6){if(V6.nextAddress==1)return _.vW(V6,2),_.m(V6,CD1(e,R$),4);if(V6.nextAddress!=2)return _.qp(V6,0);sx=_.cW(V6);V4(E().showSavingErrorPopupCommand);throw sx;})},fc=function(){var R$,sx;
return _.X(function(V6){if(V6.nextAddress==1)return _.vW(V6,2),_.m(V6,Zul(e),4);if(V6.nextAddress!=2)return R$=V6.yieldResult,V6.return(R$);sx=_.cW(V6);V4(E().showLoadingErrorDialogCommand);throw sx;})},wt=function(R$){Q.logError(R$)},Cs=function(R$,sx,V6){okw(Q,R$,sx,V6)},Hp=function(R$,sx){xz1(Q,R$,sx)},Wv=function(){!n&&E().isEmbeddedInWebview||_.H7();
nk1(Q,!0);d||(window.addEventListener("beforeunload",$X,{capture:!0}),d=!0)},e8=function(R$){var sx,V6,d2,E8,oK,ja,C9;
return _.X(function(Od){if(Od.nextAddress==1)return F&&(!l||l<R$)&&R$>0?_.m(Od,kf1(F,R$),3):Od.jumpTo(0);sx=Od.yieldResult;V6=_.p(sx);d2=V6.next().value;E8=V6.next().value;oK=d2;ja=E8;((C9=oK)==null?0:C9.displayString)&&ja&&(QP(ja),aK(oK.displayString));_.yQ(Od)})},Xc=function(R$){var sx=E().onBenchmarkingMessageReceivedCommand;
if(sx){var V6=pOF();_.v5(R$,3,DIz,V6);hy(sx,uh1(R$))}},a$=function(R$){var sx=E().onGameFrameReceivedCommand;
if(sx){var V6=new Cwo;var d2=new rto;var E8=Z2(R$,1);d2=_.f3(d2,1,E8);R$=_.Sf(R$,2);R$=_.ps(d2,2,R$);V6=_.Bz(V6,2,R$);hy(sx,S6o(V6))}},AG=function(R$){var sx=E().onGameAudioDataReceivedCommand;
if(sx){var V6=new Cwo;var d2=new a61;R$=_.Sf(R$,1);d2=_.ps(d2,1,R$);V6=_.Bz(V6,4,d2);hy(sx,S6o(V6))}},j9=function(){var R$=new URLSearchParams(window.location.search);
if(E().isEmbeddedInWebview&&R$&&R$.get("override_hl")==="true"&&R$.get("hl"))return R$.get("hl");R$=document.documentElement.lang;return R$!==""?R$:_.Py},s1=function(R$){var sx=E().onShareInviteCodeCommand;
if(sx)if(E().isEmbeddedInWebview){var V6=new bQi;R$=_.ps(V6,1,R$);hy(sx,s6w(R$))}else V6=E().inviteCodeShareClientParamIdentifier,L.clientParams.set(V6,{miniAppClientParams:{inviteCode:R$}}),V4(sx)},oO=function(R$){var sx,V6,d2;
return _.X(function(E8){if(E8.nextAddress==1)return sx=E().onMiniAppOpenYtContentRequested,F&&_.Z("enable_open_yt_content")&&sx?_.m(E8,WFg(F,R$),3):E8.jumpTo(0);V6=E8.yieldResult;if(V6==="OK")if(E().isEmbeddedInWebview){var oK=new wl4;d2=RY(oK,2,ZO,g_(R$));hy(sx,s_w(d2))}else xX.clientData.set("video_id",R$),V4(sx);_.yQ(E8)})},Jj=function(R$){JG+=_.$r(R$,3);
R$=Math.min(Math.log(1+JG/15E6*9)/Math.log(10),.99);eo(R$);Fd(R$)},Fd=_.me(function(R$){var sx=E().updateLoadingProgressCommand;
if(sx){var V6=new wl4;R$=RY(V6,3,ZO,_.Q6(R$));hy(sx,s_w(R$))}},100),aF=function(R$){return eIl(b,R$)},r1=function(){var R$,sx;
((R$=_.IPX())==null?void 0:(sx=R$.wakeLock)==null?void 0:sx.request)!=null&&_.IPX().wakeLock.request("screen").then(function(V6){M=V6}).catch(function(){})},mU=_.Ig();
_.Xp(function(){E().isSupportedCountry&&(eF9()||_.Z("enable_sign_in_promo")||!E().showSignInDialogCommand?cU(mU.value):V4(E().onMiniAppReadyCommand))});
var Mn=function(){return _.w("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return fl()?0:-1},
el:mU})},cU=function(R$,sx){sx=sx===void 0?!1:sx;
var V6=sw();V6&&(sx||V6.toString()!==R$.getAttribute("src"))&&(r=r5E(E().source,{isAudioEnabled:uE,onFirstFrameReady:he,onGameReady:mA,onSave:ep,onLoad:fc,onError:wt,onSdkCalled:Cs,onSdkPerformanceUpdate:Hp,onClick:Wv,onSendHighScore:e8,onBenchmarkingMessageReceived:Xc,getLanguage:j9,onShareInviteCode:s1,onResourceLoaded:Jj,onOpenYTContent:oO,onShowMiniAppAd:aF,onGameFrameReceived:a$,onGameAudioReceived:AG},R$,V6),zl(R$,"load",function(){Zo(Q,"ma_il");zl(R$,"load",function(){cU(R$,!0)})}),_.qa(R$,
V6))},sw=function(){var R$=E().url;
if(R$&&(R$=_.b6(R$),R$!==null)){if(E().source&&E().source==="MINI_APP_SOURCE_GAMESNACKS")R$=_.z6(R$,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Z("enable_origin_query_parameter_bugfix")){var sx=_.ZR(_.Y09(R$.toString()));sx=new URLSearchParams(sx||"");sx.set("origin",window.location.origin);sx=sx.toString();R$=_.c5(R$).toString();R$=_.xR(Xb1.exec(R$)[0]+(sx.trim()?"#"+sx:""))}return R$}},ua=function(){var R$={};
R$=_.W8("yt-mini-app-container-view-model__loading-screen",(R$["yt-mini-app-container-view-model__loading-screen--fade-out"]=fl,R$));var sx=function(){return fl()?1:y6()};
return _.w("div",{class:R$},_.w(_.mI,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(V6){return _.w(I9w,{data:V6.data,
loadingProgress:sx})}}))},hj=function(){a=[];
a.push(_.v8(window,"visibilitychange",function(){V||x&&lX()||(document.visibilityState==="visible"?lr():fG())}));
a.push(_.v8(window,"pagehide",function(){C0()}));
a.push(_.v8(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&kX.value.dispatchEvent(new Event("tap"))},0)}));
a.push(_.v8(kX.value,"pointerdown",function(){nk1(Q,!1)},!0));
a.push(_.v8(kX.value,"pause",function(){V=!0;fG()}));
a.push(_.v8(kX.value,"play",function(){V=!1;lr()}));
a.push(_.v8(kX.value,"exit",function(){C0()}));
var R$=navigator.keyboard,sx=R$&&R$.lock;a.push(_.v8(window,yVl,function(){JR(QkS());QkS()?(E().hasPlayNextShelf&&es("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pR("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),sx&&R$.lock(["Escape"])):(E().hasPlayNextShelf&&pR("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),es("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),sx&&R$.unlock())}));
E().showMultiplayer3pConsentDialogCommand&&a.push(_.v8(window,"yt-playables-ack-3p-data-usage",function(){$zw(F)}));
E().confirmExitMiniAppCommandEdu&&a.push(_.v8(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Bg("exit-mini-app-seen-state","true",2592E6)}))},$E=function(){a.forEach(function(R$){RU(R$)});
window.removeEventListener("beforeunload",$X,{capture:!0})},V4=function(R$){R$&&y51(R$,E().isEmbeddedInWebview||!1)},pR=function(R$,sx){R$=_.p(kX.value.getElementsByClassName(R$));
for(var V6=R$.next();!V6.done;V6=R$.next())V6.value.classList.add(sx)},es=function(R$,sx){R$=_.p(kX.value.getElementsByClassName(R$));
for(var V6=R$.next();!V6.done;V6=R$.next())V6.value.classList.remove(sx)};
return function(){var R$={};R$=_.W8("yt-mini-app-container-view-model",(R$["yt-mini-app-container-view-model--desktop"]=!0,R$["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},R$["yt-mini-app-container-view-model--ios-web-view"]=AQG(),R$["yt-mini-app-container-view-model--no-top-bar"]=function(){return!E().topBar},R$["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return E().hasPlayNextShelf},R$["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return E().hasPlayNextShelf},R$["yt-mini-app-container-view-model--show-peek-below"]=function(){return!VP()&&E().hasPlayNextShelf},R$));
var sx={};sx=_.W8("yt-mini-app-container-view-model__content",(sx["yt-mini-app-container-view-model__content--desktop-content"]=!0,sx["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},sx["yt-mini-app-container-view-model--desktop-play-page"]=function(){return E().hasPlayNextShelf},sx));
return _.w("mini-app-container-view-model",{el:kX},_.w("div",{class:R$},_.w(_.x6,{cond:function(){return E().topBar&&!VP()},
then:function(){return _.w(_.mI,{data:function(){return E().topBar}},{miniAppTopBarViewModel:function(V6){return _.w(NsS,{data:V6.data,
isAudioEnabled:uE,onAudioToggled:function(d2){Ng(d2)},
score:IF,formattedScore:T3,onScoreChanged:function(d2){l=d2},
isEmbeddedInWebview:lX,isSaved:d1,onSaveToggled:function(d2){$w(d2)},
isExitMiniAppSeen:n0,isDesktopPlayPage:cb})}})}}),_.w("div",{class:sx},_.w(_.x6,{cond:yE,
then:function(){return Mn()}}),_.w(_.x6,{cond:function(){return!E().isEmbeddedInWebview},
then:function(){return ua()}}))))}()},"Md");
LFi.idomCompat=!0;_.Yz(LFi,"mini-app-container-view-model",{props:{data:_.Kt}});var Gfo=_.qu(function(v){var E=v.data;return _.w("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.w("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.ij(function(){var n=E().onTap;n&&_.lj(n)})},_.w(_.x6,{cond:function(){return E().icon},
then:function(n){return _.w(_.B8,{icon:function(){return n().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.w("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return E().title})))},"Nd");
Gfo.idomCompat=!0;var Tsl=_.qu(function(v){var E=_.Ig(),n=_.p(_.t7(void 0,void 0,"kFCJ0c")),f=n.next().value,x=n.next().value;n=_.p(_.t7(void 0,void 0,"PIPgWd"));var y=n.next().value,Q=n.next().value;n=_.p(_.t7(void 0,void 0,"rV66ob"));var e=n.next().value,F=n.next().value,b=function(){var V=f();return V!==void 0?Math.abs(V):void 0},l=function(){var V=b();
return V===void 0||V<=3},r=function(){var V=b();
var O=y(),T=e();V=V!==void 0&&O!==void 0&&T!==void 0?O-T-V:void 0;return V===void 0||V<=3},a=function(V){E.value&&E.value.scrollBy({top:0,
left:(_.MX("HTML_DIR")==="rtl"?-1:1)*V*E.value.clientWidth,behavior:"smooth"})},M=function(){var V;
x((V=E.value)==null?void 0:V.scrollLeft);var O;Q((O=E.value)==null?void 0:O.scrollWidth);var T;F((T=E.value)==null?void 0:T.clientWidth)},U=function(){a(-.5)},d=function(){a(.5)};
n=_.ij(function(){M()});
_.mM(function(){M();if(E.value){var V=new ResizeObserver(M);V.observe(E.value);_.Fp(function(){V.disconnect()})}});
var Y={};return _.w("yt-sponsorships-scrollable-shelf",{class:_.W8("ytdSponsorshipsScrollableShelfHost",v.className)},_.w("div",{class:_.W8("ytdSponsorshipsScrollableShelfContent",(Y.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return v.data().previousButton&&v.data().nextButton&&!l()&&!r()},Y.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return v.data().previousButton&&!l()&&r()},Y.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return v.data().nextButton&&
l()&&!r()},Y)),
el:E,"on:scroll":n},v.children),_.w(_.x6,{cond:function(){return!l()},
then:function(){return _.w(_.mI,{data:function(){return v.data().previousButton}},{buttonViewModel:function(V){return _.w(_.C7,{data:V.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:U})}})}}),_.w(_.x6,{cond:function(){return!r()},
then:function(){return _.w(_.mI,{data:function(){return v.data().nextButton}},{buttonViewModel:function(V){return _.w(_.C7,{data:V.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:d})}})}}))},"Od");
Tsl.idomCompat=!0;var zIi=_.qu(function(v){var E=v.data;v={};return _.w("yt-sponsorships-hub",{class:_.W8("ytdSponsorshipsHubHost",(v.ytdSponsorshipsHubHostIndented=function(){return E().indented},v))},_.w("div",{class:"ytdSponsorshipsHubHeader"},_.w("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.w("div",{class:"ytdSponsorshipsHubAvatar"},_.w(_.mI,{data:function(){return E().avatar}},{avatarViewModel:_.XK})),_.w(_.x6,{cond:function(){return E().badgeImage},
then:function(n){return _.w("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.w("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.w("div",{class:"ytdSponsorshipsHubBadge"},_.w(_.UZ,{data:n,targetWidth:24,targetHeight:24,alt:""}))))}})),_.w("div",{class:"ytdSponsorshipsHubDetails"},_.w("div",{class:"ytdSponsorshipsHubTierName"},function(){return E().tierName}),_.w("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return E().membershipType}),_.w("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return E().membershipDurationOrExpiry})),_.w("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.w(_.mI,{data:function(){return E().manageButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.w(_.mI,{data:function(){return E().actionMenuButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.w("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return E().perksTitle}),_.w(Tsl,{data:function(){return{previousButton:E().previousPerkButton,
nextButton:E().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.w("div",{class:"ytdSponsorshipsHubPerkCards"},_.w(_.mI,{data:function(){return E().perkCards}},{sponsorshipsHubPerkCardViewModel:Gfo}),_.w(_.x6,{cond:function(){return E().viewAllPerksButton},
then:function(n){return _.w(iuS,{data:n})}}))))},"Pd");
zIi.idomCompat=!0;var iuS=_.qu(function(v){var E=v.data;return _.w("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.w(_.mI,{data:function(){return E().button}},{buttonViewModel:_.C7}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.w("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return E().title}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return E().subtitle})))},"Qd");
iuS.idomCompat=!0;_.Yz(zIi,"yt-sponsorships-hub",{props:{data:_.Kt}});_.RI4=_.qu(function(v){var E=v.data;return _.w("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.tZ({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var n;return((n=E().badgeCutoutRadius)!=null?n:14)+"px"}})},_.w("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.w(_.mI,{data:function(){return E().startAvatar}},{avatarViewModel:_.XK}),_.w(_.mI,{data:function(){return E().endAvatar}},{avatarViewModel:_.XK})),_.w(_.mI,{data:function(){return E().badge}},{contentPreviewImageViewModel:function(n){return _.w("div",
{class:"ytDualAvatarViewModelBadge"},_.w(_.N8,{data:n.data}))}}))},"Rd");
_.RI4.idomCompat=!0;var Bsl=_.qu(function(v){var E=v.data;var n,f=!((n=_.P().resolve(_.jp(_.aj)))==null||!n());v=_.o0(function(){var l,r,a=f?(l=E().header)==null?void 0:l.backgroundColorDarkMode:(r=E().header)==null?void 0:r.backgroundColorLightMode;if(a!==void 0)return _.Qt(a)},void 0,"UX2G6c");
n=_.o0(function(){var l,r;return f?(l=E().header)==null?void 0:l.backgroundImagePart1Dark:(r=E().header)==null?void 0:r.backgroundImagePart1Light},void 0,"GPAi1d");
var x=_.o0(function(){var l,r;return f?(l=E().header)==null?void 0:l.backgroundImagePart2Dark:(r=E().header)==null?void 0:r.backgroundImagePart2Light},void 0,"nboJld"),y=_.o0(function(){return _.MX("HTML_DIR")==="rtl"},void 0,"LGJceb"),Q=_.Ig(),e=!1,F=function(){var l=Q.value;
if(l&&!e){var r,a=(r=l.parentElement)==null?void 0:r.parentElement;if(a)for(l=l.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),r=0;r<l.length;++r){var M=l[r];if(M instanceof HTMLElement){a.scrollTo({top:M.offsetTop+M.clientHeight/2-a.clientHeight/2,behavior:"smooth"});e=!0;break}}}};
_.l5(function(){var l=Q.value;if(l){var r=new ResizeObserver(F);r.observe(l);_.Fp(function(){r.disconnect()})}});
var b={};return _.w("yt-sponsorships-perks-list",{el:Q,class:_.W8("ytdSponsorshipsPerksListHost",(b.ytdSponsorshipsPerksListHorizontalPadding=function(){return E().horizontalPaddingEnabled},b))},_.w("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.w("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.tZ({"background-color":v})},_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.w(_.x6,{cond:n,then:function(l){var r={};return _.w("div",{class:_.W8((r.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,r.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,r.ytdSponsorshipsPerksListFlipped=y,r))},_.w(_.UZ,{data:l,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.w(_.x6,{cond:x,
then:function(l){var r={};return _.w("div",{class:_.W8((r.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,r.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,r.ytdSponsorshipsPerksListFlipped=y,r))},_.w(_.UZ,{data:l,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.w(_.mI,{data:function(){var l;
return(l=E().header)==null?void 0:l.dualAvatar}},{dualAvatarViewModel:_.RI4})))),_.w("div",{class:"ytdSponsorshipsPerksListBody"},_.w("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return E().title}),_.w(_.x6,{cond:function(){return E().perks},
then:function(l){return _.w(_.cG,{each:l},function(r,a){var M={};return _.w("div",{class:_.W8("ytdSponsorshipsPerksListPerkContainer",(M.ytdSponsorshipsPerksListSelectedPerk=function(){var U=a(),d=E().selectedPerkIndex;return U===d},M))},_.w(_.x6,{cond:function(){return a()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.w(_.x6,{cond:function(){return r.icon},
then:function(U){return _.w(_.B8,{icon:function(){return U().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.w("div",{class:"ytdSponsorshipsPerksListPerkTitle"},r.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.w(_.nh,{text:r.description})),_.w(_.x6,{cond:function(){return r.instructions},
then:function(){var U,d;return _.w("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(U=r.instructions)==null?void 0:U.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.w(_.nh,{text:(d=r.instructions)==null?void 0:d.text})))}}))),_.w(_.x6,{cond:function(){return r.emoji},
then:function(U){return _.w("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.w(_.cG,{each:function(){return U()}},function(d){return _.w(_.UZ,{data:d,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.w(tT1,{data:r}))})}})))},"Sd");
Bsl.idomCompat=!0;var tT1=_.qu(function(v){var E=v.data;var n=function(Q,e){return Q===e},f=function(){var Q=E();
Q=_.C(Q==null?void 0:Q.badgesShelf,ZQl);return Q!==void 0&&Q!==null?Q:{previousButton:{},nextButton:{}}},x=_.Y$(),y=function(){var Q=x.value;
if(Q){var e=Q.parentElement;if(e){Q=Q.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var F=0;F<Q.length;++F){var b=Q[F];if(b instanceof HTMLElement){e.scrollTo({left:b.offsetLeft+b.clientWidth/2-e.clientWidth/2,behavior:"instant"});break}}}}};
_.l5(function(){var Q=x.value;if(Q){var e=new ResizeObserver(y);e.observe(Q);_.Fp(function(){e.disconnect()})}});
return _.w("div",null,_.w(_.x6,{cond:function(){return E().badges},
then:function(Q){return _.w(Tsl,{data:f},_.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:x},_.w(_.cG,{each:function(){return Q()}},function(e,F){var b={},l={},r={};
return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.w(_.x6,{cond:function(){return F()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.w("div",{class:_.W8("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(b.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return n(F(),E().currentBadgeIndex)},b.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!n(F(),E().currentBadgeIndex)},b))},_.w("div",{class:_.W8("ytdSponsorshipsPerksListLoyaltyBadge",(l.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return n(F(),
E().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!n(F(),E().currentBadgeIndex)},l))},_.w(_.x6,{cond:function(){return e.image},
then:function(a){var M={};return _.w("div",{class:_.W8((M.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return n(F(),E().currentBadgeIndex)},M.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!n(F(),E().currentBadgeIndex)},M))},_.w(_.UZ,{data:a,
alt:""}))}})),_.w("div",{class:_.W8("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(r.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return n(F(),E().currentBadgeIndex)},r))},e.title)))})))}}))},"Td");
tT1.idomCompat=!0;_.Yz(Bsl,"yt-sponsorships-perks-list",{props:{data:_.Kt}});_.Yz(_.qu(function(v){return _.w("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.w(_.x6,{cond:function(){return v.data().image},
then:function(E){return _.w(_.UZ,{className:"ytwFantasyEmptyStateViewModelImage",data:E,ariaHidden:!0,alt:""})}}),_.w(_.nh,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return v.data().title}}),_.w(_.nh,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return v.data().subtitle}}),_.w(_.mI,{data:function(){return v.data().primaryButton}},{buttonViewModel:function(E){return _.w(_.C7,{data:E.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Ud"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n;v=_.p(_.t7(!((n=_.vs("yt-mini-app-is-theater-mode-enabled"))==null||!n),void 0,"CUtq5"));var f=v.next().value,x=v.next().value,y;n=(y=_.P().resolve(_.jp(qr1)))!=null?y:function(){return _.w("div",null)};
_.dt("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){x(!0);_.Bg("yt-mini-app-is-theater-mode-enabled",!0)});
_.dt("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){x(!1);_.Bg("yt-mini-app-is-theater-mode-enabled",!1)});
y={};v={};var Q={};return _.w("mini-app-play-page-renderer",{class:_.W8("miniAppPlayPageRendererHost",(y.miniAppPlayPageRendererHostDetailsView=function(){return!f()},y))},_.w("div",{class:_.W8("miniAppPlayPageRendererGameContainer",(v.miniAppPlayPageRendererGameContainerDetailsView=function(){return!f()},v))},_.w(_.mI,{data:function(){return E().containerViewModel}},{miniAppContainerViewModel:LFi}),_.w(_.x6,{cond:function(){return!f()&&E().description},
then:function(){return _.w("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.w("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return E().description}))}})),_.w("div",{class:_.W8("miniAppPlayPageRendererPlayNextContainer",(Q.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!f()},Q))},_.w(_.mI,{data:function(){return E().sectionList}},{sectionListRenderer:n})))},"Vd"),"mini-app-play-page-renderer",{props:{data:_.Kt}});var Kn=function(){var v=_.g.apply(this,arguments)||this;v.isSearch=!1;v.isConstrainedList=!1;v.hasChipsBar=!1;v.inReplyPanel=!1;v.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"}};v.monitorScroll=!0;v.SCROLL_ANIMATION_DURATION_MS=300;v.nextContinuation={continuationType:"sectionListContinuation"};return v};
_.S(Kn,_.g);_.c=Kn.prototype;
_.c.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(v){switch(v.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:_.Z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Z("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.c.created=function(){var v=this;this.JSC$14758_scrollAnimation=new _.Pd(function(E){v.hostElement.scrollTop=E})};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.c.getItemsPath=function(){return"data.contents"};
_.c.replacePrimaryContent=function(v){this.set("data.contents",v)};
_.c.computeHasSortFilter=function(v){return!!v&&!!v.sortFilterSubMenuRenderer};
_.c.computeShouldScrollInPanel=function(v){var E;return!!(v==null?0:(E=v.scrollPaneStyle)==null?0:E.scrollable)};
_.c.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Vt(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.c.scrollToTop=function(){this.hostElement.scrollTop=0};
_.c.scrollToItemSection=function(v){if(v=this.getItemByIdentifier(v))v=this.getScrollPositionForItem(v),this.hostElement.scrollTop!==v&&this.JSC$14758_scrollAnimation.start(this.hostElement.scrollTop,v,this.SCROLL_ANIMATION_DURATION_MS)};
_.c.getItemByIdentifier=function(v){var E=this.contents.querySelectorAll("ytd-item-section-renderer");if(E&&E.length!==0){var n=Array.from(E).findIndex(function(f){return f.sectionIdentifier===v});
return E[n===-1?0:n]}};
_.c.getScrollPositionForItem=function(v){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===v)return 0;v=_.M0(v).y+this.hostElement.scrollTop-_.M0(this.hostElement).y;return Math.min(v,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.hK.Object.defineProperties(Kn.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.targetId)==="browse-feedFEclips"}}});
Kn.prototype.onScroll=Kn.prototype.onScroll;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Kn.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],Kn.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.h(_.O_1),_.W("design:type",Object)],Kn.prototype,"ytBooleanLogicBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],Kn.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Kn.prototype,"data",void 0);_.k([_.H({value:2}),_.W("design:type",Number)],Kn.prototype,"initialCount",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Kn.prototype,"autoFill",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.W("design:type",Boolean)],Kn.prototype,"hasSortFilter",void 0);_.k([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.W("design:type",Boolean)],Kn.prototype,"hideBottomSeparator",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.W("design:type",Boolean)],Kn.prototype,"shouldScrollInPanel",void 0);
_.k([_.H(),_.W("design:type",Object)],Kn.prototype,"isSearch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kn.prototype,"isConstrainedList",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Kn.prototype,"responsiveSizing",void 0);_.k([_.H(),_.W("design:type",Object)],Kn.prototype,"hasChipsBar",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Kn.prototype,"pageSubtype",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Kn.prototype,"engagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Kn.prototype,"liveChatEngagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kn.prototype,"inReplyPanel",void 0);_.k([_.Wp("#action-button"),_.W("design:type",HTMLElement)],Kn.prototype,"actionButton",void 0);_.k([_.H(),_.W("design:type",Object)],Kn.prototype,"scrollUpButtonData",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Kn.prototype,"engagementPanelDropdown",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Kn.prototype,"engagementPanelDialog",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kn.prototype,"isClipList",null);_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],Kn.prototype,"monitorScrollElement",void 0);_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],Kn.prototype,"contents",void 0);
_.k([_.jk("scroll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kn.prototype,"onScroll",null);Kn=_.k([_.N({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Kn);
var vNl=_.Dj()(Kn,"ytd-section-list-renderer",function(){if(URU===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);URU=v}v=URU;return v},{mode:1});var ENX;var nNw;var oNi;var fx1;var dE=function(){return _.g.apply(this,arguments)||this};
_.S(dE,_.g);dE.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
dE.prototype.onLikeButtonClick=function(v){v.stopPropagation();v.preventDefault()};
_.hK.Object.defineProperties(dE.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.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)})}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],dE.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],dE.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dE.prototype,"ytRendererStamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dE.prototype,"data",void 0);
_.k([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:wW}),_.W("design:type",Object)],dE.prototype,"likeStatusEntity",void 0);_.k([_.A("data","likeStatusEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dE.prototype,"likeButtonRenderer",null);dE=_.k([_.N({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],dE);
_.u(dE,"ytd-slim-metadata-toggle-button-renderer",function(){if(fx1!==void 0)return fx1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return fx1=v},{mode:1});var Iq=function(){var v=_.g.apply(this,arguments)||this;v.minimizePipBreakages=_.Z("web_pip_minimize_breakages");v.showEqualizer=_.Z("web_enable_playlist_video_lockup_equalizer");v.watchColorUpdate=_.Z("kevlar_watch_color_update");v.actionMap={};return v};
_.S(Iq,_.g);_.c=Iq.prototype;_.c.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"}}}};
_.c.computeEditableClass=function(v){return v&&v.menu?"editable":""};
_.c.computeSelected=function(v){return!(v==null||!v.selected)};
_.c.computeUseColorPalette=function(v){return!!((v==null?0:v.lightColorPalette)&&(v==null?0:v.darkColorPalette))};
_.c.computeLargerPlaylistThumbs=function(v,E){return _.Z("web_enable_playlist_bigger_thumbnails")&&!E};
_.c.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.c.onYtServiceRequestSent=function(v,E){E.endpoint&&this.isHideEnclosingAction(E.endpoint)&&!this.selected&&HwS(_.dr(),this.data.videoId)};
_.c.isHideEnclosingAction=function(v){var E=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",v);v=this.get("likeEndpoint.status",v)==="INDIFFERENT";return E||v};
_.c.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.c.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.hK.Object.defineProperties(Iq.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.withinMiniplayer&&((v=this.data)==null?0:v.actionButtons))}}});
Iq.prototype.onYtServiceRequestSent=Iq.prototype.onYtServiceRequestSent;Iq.prototype.canReorderChanged=Iq.prototype.canReorderChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Iq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.K4),_.W("design:type",Object)],Iq.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Iq.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"withinMiniplayer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Iq.prototype,"minimizePipBreakages",void 0);_.k([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"selected",void 0);
_.k([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"useColorPalette",void 0);_.k([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"largerPlaylistThumbs",void 0);_.k([_.H(),_.W("design:type",Object)],Iq.prototype,"showEqualizer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"canReorder",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"touchPersistentDragHandle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Iq.prototype,"handleIsHovered",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Iq.prototype,"watchColorUpdate",void 0);_.k([_.A("largerPlaylistThumbs"),_.W("design:type",Number),_.W("design:paramtypes",[])],Iq.prototype,"thumbnailWidth",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Iq.prototype,"showActionButtons",null);_.k([_.Tw("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Iq.prototype,"canReorderChanged",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Iq.prototype,"onYtServiceRequestSent",null);
Iq=_.k([_.N({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Iq);
_.u(Iq,"ytd-playlist-panel-video-renderer",function(){if(oNi!==void 0)return oNi;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oNi=v},{mode:2});var YS=function(){return _.g.apply(this,arguments)||this};
_.S(YS,_.g);YS.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YS.prototype,"data",void 0);YS=_.k([_.N({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],YS);
_.u(YS,"ytd-playlist-panel-supported-items",function(){if(nNw!==void 0)return nNw;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return nNw=
v},{mode:1});pEF=!0;SIU("\\P{N}");var Uys;var xfg=_.tQ("END_OF_PLAYLIST",void 0,"End of playlist"),cr1=_.tQ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),h4=function(){var v=_.g.apply(this,arguments)||this;v.minimizePipBreakages=_.Z("web_pip_minimize_breakages");v.updatedCoursePanel=_.Z("move_three_dot_menu_to_playlist_panel_header_for_courses");v.reducedPlaylistHeight=_.Z("web_playlist_mini_playlist_height");v.hideHeaderText=!1;v.useColorPalette=!1;v.collapsed=!1;v.collapsedPreServerOverride="not_tracked";
v.isHovered=!1;v.modernPanels=_.Z("kevlar_watch_modern_panels");v.expandLabel=_.tQ("MINIPLAYER_EXPAND_LABEL");v.collapseLabel=_.tQ("MINIPLAYER_COLLAPSE_LABEL");v.isFloating=!1;v.metaPanel=!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};v.currentIndex=void 0;return v};
_.S(h4,_.g);_.c=h4.prototype;
_.c.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"}}}};
_.c.created=function(){this.scrollThrottle=new _.ka(this.onThrottledScroll,1E3,this)};
_.c.onMouseEnter=function(){this.isHovered=!0};
_.c.onMouseLeave=function(){this.isHovered=!1};
_.c.computeOverflowMenuData=function(v){return v&&v.menu?v.menu:null};
_.c.computeCollapsible=function(v){return!v};
_.c.computeHasPlaylistButtons=function(v){return!(!v||!v.playlistButtons)};
_.c.computeHasSeparateSaveButton=function(v){return!(!v||!v.saveButton)};
_.c.computeHasToolbarButton=function(v,E){return!(!v||!(E||v.saveButton||v.menu))};
_.c.computePlaylistType=function(v){if(v&&v.playlistId)return v.playlistId.substring(0,4)};
_.c.computeCanReorder=function(v){return v?v.playlistId&&v.playlistId.startsWith("TLPQ")?!0:!!v.isEditable&&!v.isInfinite:!1};
_.c.attached=function(){var v=this;try{_.P().resolve(_.SY).setPlaylistComponent(this.hostElement)}catch(E){if(_.Z("kevlar_park_on_playlist_token_killswitch"))throw E;_.qs().parkOrScheduleJob(function(){_.P().resolve(_.SY).setPlaylistComponent(v.hostElement)},2,"ci")}_.NA(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.c.detached=function(){_.uc(this.hostElement)};
_.c.computeTrailingIcon=function(v,E,n){return n?E?"yt-icons:collapse":"yt-icons:close":E?"yt-icons:expand":_.Z("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.c.computeIndexMessage=function(v,E){return KdX(v+1)+" / "+KdX(E)};
_.c.onRenderStamperFinished=function(){if(this.scrollForStampDom){var v=!0;this.isHovered&&(v=!1);if(this.collapsed||this.hidden)v=!1;v&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.c.collapseChanged=function(){var v=this;this.collapsed||(_.Fw(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.c.hiddenChanged=function(){var v=this;this.hidden||_.Fw(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()})};
_.c.setupReordering=function(){var v=_.K(this.hostElement).querySelector("#items");EgS?_.j31(this.ytReorderableBehavior,v,v,"playlist-drag-handle"):_.j31(this.ytReorderableBehavior,v,v)};
_.c.scrollToCurrentVideo=function(){var v=this;_.wh.addJob(function(){var E=_.K(v.hostElement).querySelector("#items");if(E){E.style.setProperty("padding-bottom","");var n=_.K(v.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(n){E=n.parentElement||_.rx(document);var f=E||_.rx(document);var x=_.M0(n),y=_.M0(f),Q=_.Ebw(f);if(f==_.rx(document)){var e=x.x-f.scrollLeft;x=x.y-f.scrollTop}else e=x.x-y.x-Q.left,x=x.y-y.y-Q.top;n=RK1(n);y=f.clientHeight-
n.height;Q=f.scrollLeft;var F=f.scrollTop;Q+=e-(f.clientWidth-n.width)/2;f=new _.PV(Q,F+(x-y/2));E.scrollLeft=f.x;E.scrollTop=f.y}}},8)};
_.c.dataChanged=function(){var v=this;_.u3X(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.IS(this,function(){_.cP(v.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty();v.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.c.updateNowPlayingOverlay=function(){_.Z("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.c.onPlaylistLockupNowPlaying=function(v,E){E&&(this.activeNowPlayingRenderer=E);this.updateNowPlayingOverlay()};
_.c.onScroll=function(){this.scrollThrottle.fire()};
_.c.onThrottledScroll=function(){var v=this;_.cP(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty()})};
_.c.onToggleExpanded=function(v){this.collapsible&&_.Sk(v).tagName!=="A"&&!_.Kh(_.MQ(v),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.c.setCollapsed=function(v){this.collapsible&&(this.collapsed=v,_.kZ(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.c.handleCollapsedFromData=function(v){if(v){var E=v.playlistPanelCollapseState;E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||E==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),E=E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==E&&this.setCollapsed(E)):this.currentPlaylistId!==v.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(E=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==E&&this.setCollapsed(E),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=v.playlistId}};
_.c.handleDrop=function(v){var E=v.currDragItem;v=E.data.playlistSetVideoId;var n=_.OQ(E.parentNode.childNodes,E),f=void 0;n>0&&(f=E.parentNode.childNodes[n-1].data.playlistSetVideoId);E=_.dr();if(E.responsePlaylistData&&E.responsePlaylistData.contents){var x=btX(v,E.responsePlaylistData);E.responsePlaylistData=(0,_.sh.unsafeClone)(E.responsePlaylistData);M9s(E.responsePlaylistData.contents,x,n);E.queueProxy?Fhi(E.queueProxy,x,n,v,f):E.playlistProxy&&Fhi(E.playlistProxy,x,n,v,f);_.I6(E,_.Yo(E,E.response?
E.response.autoplayRenderer:void 0))}};
_.c.handleDarkModeChange=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.c.colorPaletteChanged=function(){var v,E=((v=this.data)==null?void 0:v.contents)||[],n;v=_.p(E);for(E=v.next();!E.done;E=v.next()){E=E.value;var f=void 0;if((f=E.playlistPanelVideoRenderer)==null?0:f.selected){v=E.playlistPanelVideoRenderer;f=E=void 0;(n=this.isDarkTheme?(E=v)==null?void 0:E.darkColorPalette:(f=v)==null?void 0:f.lightColorPalette)&&_.Q3(this.hostElement,n);break}}this.useColorPalette=!!n};
_.hK.Object.defineProperties(h4.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.playlistId)&&!((E=this.data)==null||!E.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var v=_.P().resolve(_.jp(_.SY)),E;if(((E=this.data)==null?0:E.contents)&&(v==null?0:v.hasAutoplayData())){var n;if(((n=this.playlistLoopStateEntity)==null?void 0:n.state)==="PLAYLIST_LOOP_STATE_ONE"){if(v=this.data.currentIndex,v!==void 0){var f,x;var y=(f=this.data.contents[v])==null?void 0:(x=f.playlistPanelVideoRenderer)==null?void 0:x.title}}else{var Q,e=(Q=_.C(v.getAutoplayEndpoint(),_.dM))==null?void 0:Q.videoId,F,b;y=(F=this.data.contents.find(function(l){var r;
return((r=l.playlistPanelVideoRenderer)==null?void 0:r.videoId)===e}))==null?void 0:(b=F.playlistPanelVideoRenderer)==null?void 0:b.title}return y}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.nextVideoLabel?this.nextVideoTitle?_.JC(this.data.nextVideoLabel)+":":xfg:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?0:v.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.qD(cr1);var E;return(E=this.data)==null?void 0:E.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.playlistButtons)==null?void 0:(n=E.menuRenderer)==null?void 0:n.topLevelButtons;if(f)for(v=_.p(f),E=v.next();!E.done;E=v.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.collapsed&&((v=this.data)==null?0:v.nextVideoLabel))}}});
h4.prototype.colorPaletteChanged=h4.prototype.colorPaletteChanged;h4.prototype.onPlaylistLockupNowPlaying=h4.prototype.onPlaylistLockupNowPlaying;h4.prototype.updateNowPlayingOverlay=h4.prototype.updateNowPlayingOverlay;h4.prototype.dataChanged=h4.prototype.dataChanged;h4.prototype.hiddenChanged=h4.prototype.hiddenChanged;h4.prototype.collapseChanged=h4.prototype.collapseChanged;h4.prototype.onRenderStamperFinished=h4.prototype.onRenderStamperFinished;h4.prototype.onMouseLeave=h4.prototype.onMouseLeave;
h4.prototype.onMouseEnter=h4.prototype.onMouseEnter;_.k([_.h(_.ZT),_.W("design:type",Object)],h4.prototype,"ironResizableBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(g96.YtPlaylistPanelBehavior),_.W("design:type",Object)],h4.prototype,"ytPlaylistPanelBehavior",void 0);
_.k([_.h(_.A1.YtTaskEmitterBehavior),_.W("design:type",Object)],h4.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.h(_.OxS),_.W("design:type",Object)],h4.prototype,"ytReorderableBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],h4.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],h4.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],h4.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],h4.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],h4.prototype,"autoplayData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],h4.prototype,"withinMiniplayer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"minimizePipBreakages",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"updatedCoursePanel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"reducedPlaylistHeight",void 0);_.k([_.H({computed:"setMenuData_(data)"}),_.W("design:type",Object)],h4.prototype,"menuRendererData",void 0);_.k([_.H({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],h4.prototype,"overflowMenuDataTopRow",void 0);_.k([_.H({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],h4.prototype,"overflowMenuData",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"hideHeaderText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"useColorPalette",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.W("design:type",Boolean)],h4.prototype,"collapsible",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"collapsed",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],h4.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.W("design:type",Boolean)],h4.prototype,"hasPlaylistButtons",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.W("design:type",Boolean)],h4.prototype,"hasSeparateSaveButton",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.W("design:type",Boolean)],h4.prototype,"hasToolbar",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.W("design:type",String)],h4.prototype,"playlistType",void 0);_.k([_.H(),_.W("design:type",Object)],h4.prototype,"isHovered",void 0);_.k([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.tj9}),_.W("design:type",Object)],h4.prototype,"playlistLoopStateEntity",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"modernPanels",void 0);_.k([_.H({value:56}),_.W("design:type",Number)],h4.prototype,"scrollMargin",void 0);_.k([_.H({computed:"computeCanReorder(data)"}),_.W("design:type",Boolean)],h4.prototype,"canReorder",void 0);_.k([_.H(),_.W("design:type",Object)],h4.prototype,"expandLabel",void 0);_.k([_.H(),_.W("design:type",Object)],h4.prototype,"collapseLabel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"isFloating",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"metaPanel",void 0);_.k([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.W("design:type",String)],h4.prototype,"trailingIcon",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],h4.prototype,"isDarkTheme",void 0);
_.k([_.H({selector:_.mW}),_.W("design:type",Boolean)],h4.prototype,"miniplayerIsActive",void 0);_.k([_.H({selector:function(v){return v.watch.playerState}}),
_.W("design:type",Number)],h4.prototype,"playerState",void 0);_.k([_.H(),_.W("design:type",Object)],h4.prototype,"activeNowPlayingRenderer",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h4.prototype,"moveThreeDotMenuToTopRow",null);_.k([_.A("data","autoplayData","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],h4.prototype,"nextVideoTitle",null);
_.k([_.A("data","nextVideoTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],h4.prototype,"nextVideoLabel",null);_.k([_.A("collapsed"),_.W("design:type",String),_.W("design:paramtypes",[])],h4.prototype,"buttonAriaLabel",null);_.k([_.A("data","playlistId","longBylineText"),_.W("design:type",Object),_.W("design:paramtypes",[])],h4.prototype,"mixLongByLine",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],h4.prototype,"playlistLoopStateEntityKey",null);
_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"onMouseEnter",null);_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"onMouseLeave",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h4.prototype,"showNextVideoHeader",null);
_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"onRenderStamperFinished",null);_.k([_.On("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"collapseChanged",null);_.k([_.On("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"hiddenChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"dataChanged",null);_.k([_.On("playerState","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"updateNowPlayingOverlay",null);_.k([_.jk("yt-playlist-lockup-now-playing-active"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],h4.prototype,"onPlaylistLockupNowPlaying",null);
_.k([_.On("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h4.prototype,"colorPaletteChanged",null);h4=_.k([_.N({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],h4);
_.yr1=_.Dj()(h4,"ytd-playlist-panel-renderer",function(){if(ENX===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);ENX=v}v=ENX;return v},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var pH1;var A4=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework");return v};
_.S(A4,_.g);A4.prototype.computeShouldButtonBeVertical=function(v,E){return v||E};
A4.prototype.onYtServiceRequestSent=function(v,E){(v=_.C(E.endpoint,_.DE))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.n7("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:v.status})):this.handleLikeEndpoint(v))};
A4.prototype.computelikeStatusEntityKey=function(v){return v==null?void 0:v.likeStatusEntityKey};
A4.prototype.handleLikeEndpoint=function(v){v.status==="LIKE"?this.JSC$14783_ytdDislikeToggleButtonRenderer.toggle(!1):v.status==="DISLIKE"?this.JSC$14783_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14783_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14783_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.hK.Object.defineProperties(A4.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var v;return hFE(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(v=this.likeStatusEntity)==null?void 0:v.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var v;return hFE(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(v=this.likeStatusEntity)==null?void 0:v.likeStatus)}}});
A4.prototype.onYtServiceRequestSent=A4.prototype.onYtServiceRequestSent;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],A4.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],A4.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],A4.prototype,"vertical",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],A4.prototype,"textTransform",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],A4.prototype,"useShortsIcon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],A4.prototype,"underIconLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],A4.prototype,"modern",void 0);_.k([_.H({value:"left"}),_.W("design:type",String)],A4.prototype,"buttonTooltipPosition",void 0);
_.k([_.H(),_.W("design:type",Object)],A4.prototype,"overrides",void 0);_.k([_.Wp("#like-button"),_.W("design:type",Object)],A4.prototype,"JSC$14783_ytdLikeToggleButtonRenderer",void 0);_.k([_.Wp("#dislike-button"),_.W("design:type",Object)],A4.prototype,"JSC$14783_ytdDislikeToggleButtonRenderer",void 0);_.k([_.A("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],A4.prototype,"likeButton",null);
_.k([_.A("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],A4.prototype,"dislikeButton",null);_.k([_.H({computed:"computelikeStatusEntityKey(data)"}),_.W("design:type",String)],A4.prototype,"likeStatusEntityKey",void 0);_.k([_.H({selectorArgs:["likeStatusEntityKey"],selector:wW}),_.W("design:type",Object)],A4.prototype,"likeStatusEntity",void 0);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],A4.prototype,"onYtServiceRequestSent",null);A4=_.k([_.N({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],A4);
var Qo4=_.Dj()(A4,"ytd-like-button-renderer",function(){if(pH1===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);pH1=v}v=pH1;return v},{mode:1});_.XH1={};
_.XH1.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(v,E){var n=this,f,x;return _.X(function(y){switch(y.nextAddress){case 1:if(!E)return n.hidden=!0,n.showSpinner=!1,y.return();if((f=v)==null?0:(x=f.visibilityCondition)==null?0:x.mode)switch(v.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return y.jumpTo(5);default:return y.jumpTo(6)}n.showSpinner=
!1;n.hidden=!0;return _.m(y,n.shouldShow_(v),4);case 4:n.hidden=!y.yieldResult;y.jumpTo(0);break;case 5:return _.m(y,n.shouldShow_(v),8);case 8:n.showSpinner=y.yieldResult;n.hidden=!1;y.jumpTo(0);break;case 6:return n.showSpinner=!1,_.m(y,n.shouldShow_(v),9);case 9:n.hidden=!y.yieldResult,_.yQ(y)}})},
shouldShow_:function(v){return v&&v.supportedDatas&&v.supportedDatas.rendererVisibilityConditionData&&v.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(v.supportedDatas.rendererVisibilityConditionData.showIf):v&&v.visibilityCondition&&v.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(v.visibilityCondition.showIf):v&&v.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(v.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(v){switch(v){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(v){switch(v){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var v=_.OL(this.hostElement,"yt-get-mdx-status");return v.length==1&&v[0].connected},
isLocationPermissionGranted_:function(){var v;return _.X(function(E){return E.nextAddress==1?navigator.permissions?_.m(E,navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2):E.nextAddress!=2?(v=E.yieldResult,E.return(Promise.resolve(v.state==="granted"))):E.return(Promise.resolve(!1))})}}];var ej1=function(v,E){E=E===void 0?{}:E;return function(n){var f=document.createElement(v),x;var y=(x=f.polymerController)!=null?x:f;Fqy(f,y,n,E);return f}}("yt-icon");var FVo=function(v){var E=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];xuF();_.Vc("ytglobal.ytUtilActivityCallback_",function(){_.kZ(v,"yt-user-activity")});
new D$(function(){return E.JSC$14795_onMouseMove});
document.addEventListener("scroll",function(){return E.onScroll});
window.addEventListener("resize",function(){return E.onResize})},mfg=function(v,E,n){E in v.eventJobIds||(n=_.Ce().addLowPriorityJob(function(){_.H7();
delete v.eventJobIds[E]},n),v.eventJobIds[E]=n)};
FVo.prototype.onScroll=function(v){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):v.target===document&&mfg(this,"scroll",200)};
FVo.prototype.onResize=function(){mfg(this,"resize",200)};
FVo.prototype.JSC$14795_onMouseMove=function(){mfg(this,"mousemove",100)};
_.gT=function(v){v.scrollEventsToIgnore+=1;v.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){v.scrollEventsToIgnore--},500))};var wHF=function(v){this.element=v;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
wHF.prototype.showFeedbackDialog=function(v,E,n,f){var x=bFP();if(!x)return!1;var y=$yX();y.productId=x;E&&(y.flow="submit",y.report={description:E});n&&(bFP()==="59"?y.callback=_.qX(function(){_.eQ("userFeedbackEvent",{});n()}):y.callback=_.qX(n));
y.bucket=f||_.MX("GOOGLE_FEEDBACK_BUCKET","Other");lxP(y);v=soS(this,"GFEEDBACK",v);try{_.DrU(y,v)}catch(Q){return _.UO(Q),!1}return!0};
wHF.prototype.showHelpDialog=function(v,E,n){var f=this,x=bFP();if(!x)return!1;var y={helpCenterPath:"/youtube",productData:soS(this,"GUIDED_HELP",n)};lxP(y);var Q=$yX();Q.context=v||y.productData.context||"default";Q.defaultHelpArticleId=E;Q.enableSendFeedback=!0;(_.JM("gapi.load")||function(e,F){return F()})("client",function(){try{var e=CY6(x,y);
if(_.Z("web_always_load_chat_support")&&!f.chatSupportLoaded)try{e.JSC$7867_loadChatSupport(Q),f.chatSupportLoaded=!0}catch(F){}e.startHelp(Q)}catch(F){_.UO(F)}})};
var bFP=function(){var v=_.MX("GOOGLE_FEEDBACK_PRODUCT_ID");v||_.UO(Error("ci"));return v},lxP=function(v){v&&(v.locale=_.Z("kevlar_help_use_locale")?_.MX("INNERTUBE_CONTEXT_HL","en"):_.MX("HTML_LANG","en"))},soS=function(v,E,n){var f=v.productData;
delete f.origin;f.device=_.lE();var x;a:{if(x=document.createElement("canvas")){var y=x.getContext("experimental-webgl",{stencil:!0});if(y){var Q=y.getExtension("WEBGL_debug_renderer_info");if(Q){x=y.getParameter(Q.UNMASKED_RENDERER_WEBGL);break a}}if(y=x.getContext("webgl")){x=y.getParameter(y.RENDERER);break a}}x=null}f.gpu=x;f.isSDC=!!_.MX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(x=_.MX("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.sh.extend(f,x);_.kWA(E,f);_.WdG(f);(v=_.kZ(v.element,"yt-get-autonav-pause-debug-state"))&&
v.length&&(f.autonav_pause_state=v[0]);v=_.xr();f.browser_resolution=v.width+"\u00d7"+v.height+"@"+(window.devicePixelRatio||1)+"x";n&&_.sh.extend(f,n);return f};
wHF.prototype.resetProductData=function(){this.productData={}};var rrU=function(v){this.feedbackManager=new wHF(v)};
rrU.prototype.showFeedbackDialog=function(v,E,n,f){return this.feedbackManager.showFeedbackDialog(v,E,n,f)};
rrU.prototype.showHelpDialog=function(v,E,n){return this.feedbackManager.showHelpDialog(v,E,n)};var PL1=function(){this.baseUrl="";this.aTag=document.createElement("a")},in1=function(v,E,n){n=n===void 0?{}:n;
n.pbj||(n.pbj=1);n=_.WGG(E,n);v.baseUrl&&n&&!_.DU(n)[1]&&!_.HG(n)&&(E=v.baseUrl,p1(E,"/")&&(E=E.slice(0,-1)),_.cI(n,"/")&&(n=n.slice(1)),n=E+"/"+n);Cc(v.aTag,m_(n||""));return v.aTag.href};
PL1.prototype.fetchData=function(v){return _.HvA(v)};
PL1.prototype.postData=function(v,E){var n={method:"POST"};if(E){for(var f=_.p(Object.keys(E)),x=f.next();!x.done;x=f.next()){x=x.value;var y=E[x];_.oF(y)&&(E[x]=JSON.stringify(y))}n.postParams=E}return _.HvA(v,n)};
_.zQg=function(v,E,n,f,x){v=in1(v,E,n);if(!v)throw f=Error("di"),Object.assign(f,{params:E}),f;return _.HvA(v,x,f)};
PL1.prototype.requestDataForServiceEndpoint=function(v,E){if(_.C(v,_.khX))return this.fetchData("/getAccountSwitcherEndpoint");E=E||{};var n=_.C(v,LwU);n?E.se=n.base64EncodedServiceEndpoint:E.sej=JSON.stringify(v);(n=_.lc())&&_.Z("enable_service_ajax_csn")&&(E.csn=n);E.theme=_.bo();_.C(v,jJI)&&_.MX("DELEGATION_CONTEXT")&&(E.delegation_context=JSON.stringify(_.MX("DELEGATION_CONTEXT")));n=null;for(var f in v)if(p1(f,"Endpoint")||p1(f,"Command")){n=f;break}if(!n){var x=Error("ei");Object.assign(x,{params:v});
_.jjE(x,"WARNING");return new _.z2(function(Q,e){e(x)})}f={name:n};
var y;(n=(y=_.C(v,_.zn))==null?void 0:y.signal)&&(f.signal=n);(y=_.hM(window.location.href))&&y.internalcountrycode&&(f.internalcountrycode=y.internalcountrycode);y="/service_ajax";_.Z("debug_forward_web_query_parameters")&&(y=_.B6N(y,window.location.search));y=_.V1(y,f);v.clickTrackingParams&&_.AQ(y,{itct:v.clickTrackingParams});return this.postData(y,E)};_.axP=new _.$Y("GFEEDBACK_TOKEN");var ZFl;var CLi;var MyX;var St4;var VO=function(){var v=_.g.apply(this,arguments)||this;v.compact=!1;return v};
_.S(VO,_.g);VO.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
VO.prototype.computeHasIcon_=function(v){return!!v};
VO.prototype.isSignInIcon_=function(v){return v=="yt-icons:prompted_sign_in"};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.XH1.YtConditionalRendererBehavior),_.W("design:type",Object)],VO.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],VO.prototype,"data",void 0);
_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],VO.prototype,"icon_",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.W("design:type",Boolean)],VO.prototype,"hasIcon_",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.W("design:type",Boolean)],VO.prototype,"signInIcon_",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],VO.prototype,"compact",void 0);
VO=_.k([_.p5({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],VO);
_.u(VO,"yt-player-error-message-renderer",function(){if(St4===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;MyX===void 0&&(MyX=document.createElement("template"));var f=MyX;n.call(E,f.content.cloneNode(!0),v.content.firstChild);St4=v}v=St4;return v},{mode:2});var UfU;var qtS;var Do=function(){return _.g.apply(this,arguments)||this};
_.S(Do,_.g);Do.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Do.prototype.computeIcon_=function(v){return v?"yt-icons:"+v.iconType.toLowerCase():"error_outline"};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Do.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],Do.prototype,"icon_",void 0);Do=_.k([_.p5({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Do);
_.u(Do,"yt-player-kav-renderer",function(){if(qtS===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;UfU===void 0&&(UfU=document.createElement("template"));var f=UfU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qtS=v}v=qtS;return v},{mode:2});_.Yz(_.qu(function(v){var E=_.Ig(),n=_.p(_.t7(0,void 0,"gCmSbf")),f=n.next().value,x=n.next().value;n=_.p(_.t7(null,void 0,"Rj9zMe"));var y=n.next().value,Q=n.next().value;_.l5(function(){TP9(E.value,x,Q);E.value.scrollIntoView()});
n=ivA.bind(null,v.data,f);D4("resize",function(){var e=y();if(f()===1&&e!==null){var F;(F=window.grecaptcha)==null||F.reset(e)}});
return _.w("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.w("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.w("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var e,F;return(e=v.data().accessibility)==null?void 0:(F=e.accessibilityData)==null?void 0:F.label}),_.w(_.nh,{text:n,
className:_.W8("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.w("div",{el:E,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Wd"),"yt-player-captcha-view-model",{props:{data:_.Ij}});var zFG=!1;_.Jr1=_.qu(function(v){var E=v.data;return _.w("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.w(_.x6,{cond:function(){return E().icon},
then:function(n){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.w(_.UZ,{data:n,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.w(_.x6,{cond:function(){return E().title},
then:function(n){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.w(_.nh,{text:n}))}}),_.w(_.x6,{cond:function(){return E().description},
then:function(n){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.w(_.nh,{text:n}))}}),_.w(_.mI,{data:function(){return E().primaryButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.w(_.mI,{data:function(){return E().secondaryButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Xd");
_.Jr1.idomCompat=!0;var KVP=_.qu(function(v){var E=v.data;_.uT();return _.w("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.w("div",{class:"player-interstitial-renderer-wiz__scrim"},_.w(_.mI,{data:function(){return E().content}},{interstitialViewModel:_.Jr1})))},"Yd");
KVP.idomCompat=!0;_.Yz(KVP,"yt-player-interstitial-renderer",{props:{data:_.Kt}});var Hd=function(){var v=_.g.apply(this,arguments)||this;v.noBackground=!1;v.compact=!1;v.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return v};
_.S(Hd,_.g);Hd.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"}}}};
Hd.prototype.onUpdatePlayerErrorMessageCommand_=function(v){if(_.C(v,c8g)){var E;if(v=(E=_.C(v,c8g))==null?void 0:E.newPlayerErrorMessageRenderer)this.data=v}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Hd.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Hd.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Hd.prototype,"status",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Hd.prototype,"noBackground",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Hd.prototype,"compact",void 0);Hd=_.k([_.p5({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Hd);
var dfw=_.Dj()(Hd,"yt-playability-error-supported-renderers",function(){if(CLi===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ZFl===void 0&&(ZFl=document.createElement("template"));var f=ZFl;n.call(E,f.content.cloneNode(!0),v.content.firstChild);CLi=v}v=CLi;return v},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RFy=void 0,BPX=void 0;var ncE=new y76;var fe=new _.$Y("ENTITY_STATE_TOKEN"),gE=new _.$Y("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Ixw=function(v){this.store=v;this.v7w=new _.Xv4},cnX=function(v,E,n){var f,x;
if(!(x=((f=E.playabilityStatus)==null?void 0:f.status)!=="OK")){v=v.store;var y;x=E.offlineState&&((y=E.videoDetails)==null?0:y.videoId)?_.Z("enable_pl_r_c_cd")?bML(v.getState().entities,E.videoDetails.videoId):!!PME(v.getState().entities,E.videoDetails.videoId):!1}if(x)return!0;x=yUs(E);if(x===1){if(_.Z("ab_v_vid_sig")){var Q,e=(Q=E.videoDetails)==null?void 0:Q.videoId;if(!e||!n||e!==n){var F;E=new _.yc("282054944_vid",{skQ:n,i3U:(F=E.videoDetails)==null?void 0:F.videoId});_.mb(E)}}return!0}tVy=
0;var b,l;F=(e=E.auxiliaryUi)==null?void 0:(b=e.messageRenderers)==null?void 0:(l=b.bkaEnforcementMessageViewModel)==null?void 0:l.displayType;if(x!==3&&(F==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||F==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;F={reason:_.HR(_.tQ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Z("ks_something_wrong_learn_more")?teI("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.HR(_.tQ("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:_.HR("282054944")};Yt1(E,{playerErrorMessageRenderer:F});return!1},ynL=function(v,E){if(wmL(E)){_.Te(1,!0);
var n=(n=wmL(E))&&_.tZy()?n:void 0;n?(Yt1(E,{enforcementMessageViewModel:n}),v.v7w.increment("IN_PLAYER"),_.Te(5)):(v.v7w.increment("SKIP_DISPLAY"),_.Te(2))}},Yt1=function(v,E){v.playabilityStatus=Object.assign({},v.playabilityStatus,{status:"ERROR",
errorScreen:E});v.videoDetails=void 0};
Ixw.prototype.handleResponse=function(v,E){if(v.playabilityStatus){var n,f,x,y=(E==null?void 0:(n=E.innerTubeRequest)==null?void 0:n.videoId)||(E==null?void 0:(f=E.innerTubeRequest)==null?void 0:(x=f.playerRequest)==null?void 0:x.videoId);cnX(this,v,y)&&ynL(this,v)}};
Ixw[Wl]=[fe];var f9G=new _.$Y("ADBLOCK_DETECTION_SERVICE_TOKEN");var Gk=function(v){this.g0p=v};
Gk.prototype.bindInnertubeChallengeFetcher=function(v){this.g0p.bicf(v)};
Gk.prototype.registerChallengeFetchedCallback=function(v){this.g0p.bcr(v)};
Gk.prototype.getLatestChallengeResponse=function(){return this.g0p.blc()};var Dfg;_.N6=function(v,E,n){var f=this;this.network=v;this.options=E;this.networkStatusManager=n;this.hT=null;if(E.useBotguardEverywhere){var x=new _.Wy;this.hT=x.promise;_.n1.ytAtRC&&_.xa(_.wh,function(){var y,Q;return _.X(function(e){if(e.nextAddress==1){if(!_.n1.ytAtRC)return e.return();y=hjl(null);return _.m(e,f.bt(y),2)}Q=e.yieldResult;_.n1.ytAtRC&&_.n1.ytAtRC(JSON.stringify(Q));_.yQ(e)})});
FQs().then(function(y){var Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return y.bindInnertubeChallengeFetcher(function(r){return f.bt(hjl(r))}),_.m(l,gEQ(),2);
Q=l.yieldResult;e=y.getLatestChallengeResponse();F=e.challenge;if(!F)throw Error("fi");b={challenge:F,sS:kC(F),vY:Q,bgChallenge:new jh};x.resolve(b);y.registerChallengeFetchedCallback(function(r){r=r.challenge;if(!r)throw Error("gi");r={challenge:r,sS:kC(r),vY:Q,bgChallenge:new jh};f.hT=Promise.resolve(r)});
_.yQ(l)})})}else E.preload&&ArS(this,new Promise(function(y){_.cP(_.wh,function(){y(Vyo(f))},0)}))};
Dfg=function(v){var E={preload:!0,useBotguardEverywhere:_.Z("attmusi")},n=!1;if(typeof E==="boolean")var f={preload:E};else typeof E==="undefined"?f={preload:!0}:(f=E,n=!!E.gNg);E=n?void 0:new _.q1;_.N6.instance=new _.N6(v,f,E);return _.N6.instance};
_.N6.prototype.z2Z=function(){var v=this;return _.X(function(E){return E.nextAddress==1?_.m(E,Promise.race([v.hT,null]),2):E.return(!!E.yieldResult)})};
_.N6.prototype.euH=function(v,E,n){var f=this,x,y,Q;return _.X(function(e){f.hT===null&&ArS(f,Vyo(f));x=!1;y={};Q=function(){var F,b,l;return _.X(function(r){switch(r.nextAddress){case 1:return _.m(r,f.hT,2);case 2:F=r.yieldResult;y.challenge=F.challenge;if(!F.vY){"c1a"in F.sS&&(y.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");r.jumpTo(3);break}b=Object.assign({},{c:F.challenge,e:v},E);_.vW(r,4);x=!0;if(_.Z("attbs")&&!_.Z("attmusi")){l=_.pV4(F.vY,{wO:b});r.jumpTo(6);break}return _.m(r,F.vY.snapshot({wO:b}),
7);case 7:l=r.yieldResult;case 6:l?y.webResponse=l:y.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.qp(r,3);break;case 4:_.cW(r),y.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(v==="ENGAGEMENT_TYPE_PLAYBACK"){var a=F.sS,M={};if(a.c6a){var U=Number(_.MX("DCLKSTAT",0));M.reportingStatus=String(Number(a.c)^(isNaN(U)?0:U))}a.c6b&&(M.broadSpectrumDetectionResult=String(Number(a.c)^Number(_.MX("CATSTAT",0))));y.adblockReporting=M}return r.return(y)}})};
return e.return(Promise.race([Q(),HFU(n,function(){var F=Object.assign({},y);x&&(F.error="ATTESTATION_ERROR_VM_TIMEOUT");return F})]))})};
var hjl=function(v){var E={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};v&&(E.interpreterHash=v);return E},Vyo=function(v,E){E=E===void 0?0:E;
var n,f,x,y,Q,e,F,b,l,r,a,M;return _.X(function(U){switch(U.nextAddress){case 1:n=hjl(XVz().sva);if(_.Z("att_fet_ks"))return _.vW(U,7),_.m(U,v.bt(n),9);_.vW(U,4);return _.m(U,gN1(v,n),6);case 6:Q=U.yieldResult;x=Q.tGx;y=Q.rW8;f=Q;_.qp(U,3);break;case 4:return _.cW(U),_.li(Error("hi`"+E)),NbS(v,864E5),U.return({challenge:"",sS:{},vY:void 0,bgChallenge:void 0});case 9:f=U.yieldResult;if(!f)throw Error("ii");if(!f.challenge)throw Error("ji");x=f.challenge;y=kC(x);if("c1a"in y&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("ki");
_.qp(U,3);break;case 7:e=_.cW(U);_.li(e);E++;if(E>=5)return _.li(Error("hi`"+E)),NbS(v,864E5),U.return({challenge:"",sS:{},vY:void 0,bgChallenge:void 0});F=1E3*Math.pow(2,E-1)+Math.random()*1E3;return U.return(new Promise(function(d){_.cP(_.wh,function(){d(Vyo(v,E))},F)}));
case 3:b=e91(y);NbS(v,b*1E3);l=void 0;if(!("c1a"in y&&f.bgChallenge)){U.jumpTo(10);break}r=X99(f.bgChallenge);_.vW(U,11);return _.m(U,FlX(XVz(),r),13);case 13:_.qp(U,12);break;case 11:return a=_.cW(U),_.li(a),U.return({challenge:x,sS:y,vY:l,bgChallenge:r});case 12:return _.vW(U,14),l=new _.Uo({challenge:r,n0:{d0:"aGIf"}}),_.m(U,l.dGl,16);case 16:_.qp(U,10);break;case 14:M=_.cW(U),_.li(M),l=void 0;case 10:return U.return({challenge:x,sS:y,vY:l,bgChallenge:r})}})};
_.N6.prototype.bt=function(v){var E=this,n;return _.X(function(f){n=E.networkStatusManager;if(!n||n.isNetworkAvailable())return f.return(E.network.bt(v));_.wj("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(x){n.listenOnce("publicytnetworkstatus-online",function(){E.network.bt(v).then(x)})}))})};
var uI1=function(v){if(!v)throw Error("ii");if(!v.challenge)throw Error("ji");var E=v.challenge,n=kC(E);if("c1a"in n&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("ki");return Object.assign({},v,{tGx:E,rW8:n})},gN1=function(v,E){var n,f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:n=void 0,f=0,x={};case 2:if(!(f<5)){e.jumpTo(4);break}if(!(f>0)){e.jumpTo(5);break}x.ydO=1E3*Math.pow(2,f-1)+Math.random()*1E3;return _.m(e,new Promise(function(F){return function(b){_.cP(_.wh,function(){b(void 0)},F.ydO)}}(x)),5);
case 5:return _.vW(e,7),_.m(e,v.bt(E),9);case 9:return y=e.yieldResult,e.return(uI1(y));case 7:n=Q=_.cW(e),Q instanceof Error&&_.li(Q);case 8:f++;x={ydO:void 0};e.jumpTo(2);break;case 4:throw n;}})},ArS=function(v,E){v.hT=E},jo6=function(v){var E,n,f;
return _.X(function(x){if(x.nextAddress==1)return _.m(x,Promise.race([v.hT,null]),2);E=x.yieldResult;var y=Vyo(v);v.hT=y;(n=E)==null||(f=n.vY)==null||f.dispose();_.yQ(x)})},NbS=function(v,E){var n=Date.now()+E,f=function(){var x;
return _.X(function(y){x=n-Date.now();return x<1E3?_.m(y,jo6(v),0):(_.cP(_.wh,f,Math.min(x,6E4)),y.jumpTo(0))})};
f()},HFU=function(v,E){return new Promise(function(n){_.cP(_.wh,function(){n(E())},v)})};var OFF=function(){};
OFF.prototype.processContext=function(v){var E=_.N6.instance;if(!E)return _.VJ();var n=svX(v);return n?new A$(E.euH(n,bmN(v),500).then(function(f){var x;(v==null?0:(x=v.innerTubeRequest)==null?0:x.context)||(v.innerTubeRequest.context={});x=v.innerTubeRequest.context;x.request||(x.request={});x.request.attestationResponseData=f})):_.VJ()};var kA1=function(v){this.innertubeTransportService=v};
kA1.prototype.bt=function(v){_.wj("att_fsr",void 0,"attestation_challenge_fetch");return _.Ms(this.innertubeTransportService,v,_.Yt(_.RbX)).then(function(E){_.wj("att_frr",void 0,"attestation_challenge_fetch");return E})};_.WV1=function(v){this.innertubeTransportService=v};var $f6=new _.$Y("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var LV1=function(){},Tbi=function(v,E,n,f,x){var y=_.MX("YPC_MB_URL");
_.z9N(y).then(function(){GAg(y,v,E,n,f,x)})},GAg=function(v,E,n,f,x,y){try{var Q=payments.business.integration,e=payments.business.integration.Style.create().withMaterialDesignStyle(),F=Q.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Z("enable_window_constrained_buy_flow_dialog")&&(F=F.usingPopupStyle("windowConstrained"));y&&(F=F.usingCloseCallback(y));var b=n?n:_.MX("YPC_GB_LANGUAGE"),l=_.MX("SESSION_INDEX");Q.bootstrap.fromPaymentsUrl(v);Q.bootstrap.asMashupMode(F).usingGaiaIndex(l).usingLocale(b).usingStyle(e).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Q.standaloneContextAuthId.forGaia()).purchaseManager(E,function(r){f&&f(r)}).load(void 0,x)}catch(r){throw x&&x(r),_.mb(r),r;
}};var iFo=new _.$Y("PURCHASE_MANAGER_TOKEN");var zjz=function(){var v=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return v.videos},
getContinuationsPresent:function(){return v.continuationsPresent},
setVideos:function(E){v.videos=E},
getRecommendedVideos:function(){return v.recommendedVideos},
setRecommendedVideos:function(E){v.recommendedVideos=E}}};
zjz.prototype.addVideos=function(v){v&&(this.videos=v.filter(function(E){return!!_.PZN(E)}).map(function(E){var n=_.PZN(E);
a:{var f;if(E.playlistVideoRenderer&&((f=E.playlistVideoRenderer)==null?0:f.voteSortTiebreaker))var x=E.playlistVideoRenderer.voteSortTiebreaker;else{if(_.C(E,iT)){var y;if(f=(x=_.C(E,iT))==null?void 0:(y=x.playlistItemData)==null?void 0:y.voteSortTiebreaker){x=f;break a}}x=""}}return{itemId:n,videoId:_.CZN(E),voteCount:_.M_Q(E),voteSortTiebreaker:x}}),this.continuationsPresent=!!_.C(v[v.length-1],_.ty))};
var Rjo=function(v,E){return v.videos.findIndex(function(n){return n.itemId===E})},tyw=function(v,E){return v.recommendedVideos.findIndex(function(n){return n.itemId===E})},Bb1=function(v){v={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:v}}}}};_.P().resolve(_.OO).resolveCommand(v)};var vGo=function(){zjz.apply(this,arguments)};
_.S(vGo,zjz);
var Wd6=function(v,E,n,f){if(!v.parentElem)throw Error("pi");var x=Rjo(v,E);x===-1&&(x=tyw(v,E),x=x!==-1?x+v.videos.length:-1);if(x===-1)throw Error("qi");var y=x>=v.videos.length?v.recommendedVideos[x-v.videos.length]:v.videos[x];y.voteCount=n;y.voteSortTiebreaker=Date.now().toString();x>=v.videos.length?v.recommendedVideos.splice(x-v.videos.length,1):v.videos.splice(x,1);var Q=v.videos;for(var e=0,F=Q.length-1;e<=F;){var b=Math.floor((e+F)/2);if(Q[b].voteCount<y.voteCount)F=b-1;else if(Q[b].voteCount>y.voteCount)e=
b+1;else{a:{var l=y.voteSortTiebreaker;var r=Q[b].voteSortTiebreaker;if(l.length!==r.length)l=l.length>r.length;else{for(var a=0;a<l.length;a++){var M=l.charCodeAt(a),U=r.charCodeAt(a);if(M>U){l=!0;break a}if(M<U)break}l=!1}}l?F=b-1:e=b+1}}Q=e;if(Q===-1)throw Error("ri");v.videos.splice(Q,0,y);x!==Q&&EGF(v,x,Q,E,n,f)},EGF=function(v,E,n,f,x,y){var Q,e=(Q=v.parentElem)==null?void 0:Q.children,F=Math.min(E,n),b=Math.max(E,n);
if(e)for(Q=F;Q<=b;Q++)e[Q].style.viewTransitionName="item-"+String(Q);document.startViewTransition(function(){if(v.parentElem){var l=v.parentElem.children;if(!(!l||E<0||E>=l.length||n<0||n>=l.length)){var r=l[E];if(r){r.remove();v.showRefreshPill=n>=v.videos.length-1&&v.continuationsPresent;if(!v.showRefreshPill){l=l[n]||null;var a;(a=v.parentElem)==null||a.insertBefore(r,l)}_.jK(v.parentElem,"yt-update-video-data-voting-animation",{toIdx:n,itemId:f,newVoteCount:x,voteStatus:y,hideItem:v.showRefreshPill})}}}}).finished.then(function(){if(e)for(var l=
F;l<=b;l++)e[l].style.viewTransitionName="";
if(v.showRefreshPill)Bb1(_.tQ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var r;if(r=l=(r=v.parentElem)==null?void 0:r.children[n])r=l.getBoundingClientRect(),l=r.bottom,r=!(r.top>=0&&l<=v.clientHeight);r&&(r=_.Bq(E>n?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(E-n)),Bb1(r))}})};var fFi=function(v,E){var n=this;v?this.innertubeTransportServicePromise=Promise.resolve(v):E&&(this.innertubeTransportServicePromise=E(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new M6(3E3,function(f){return nGg(n,f)},0);
this.validateMiniAppVideoIdRateLimiter=new M6(3E3,function(f){return oG1(n,f)},1)},jLP=function(v,E){v.JSC$14909_miniAppId=E;
v.reportMiniAppValueRateLimiter=new M6(3E3,function(n){return nGg(v,n)},0);
v.validateMiniAppVideoIdRateLimiter=new M6(3E3,function(n){return oG1(v,n)},1)},kf1=function(v,E){var n;
return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.reportMiniAppValueRateLimiter.call(E),2);n=f.yieldResult;return f.return([n,E])})},nGg=function(v,E){var n,f,x,y,Q,e,F;
return _.X(function(b){switch(b.nextAddress){case 1:return _.m(b,v.innertubeTransportServicePromise,2);case 2:return n=b.yieldResult,f=_.Yt(f7X),x=Date.now(),y={externalPostId:v.JSC$14909_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(x/1E3),nanos:Math.round(x%1E3*1E6)},intValue:""+E}},_.vW(b,3),_.m(b,_.Ms(n,y,f),5);case 5:Q=b.yieldResult;_.qp(b,4);break;case 3:throw e=_.cW(b),e;case 4:if(Q){if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("si`"+
Q.errorMetadata.status);if(F=Q.userStatResult)return b.return(F);throw Error("ti");}throw Error("ui");}})},$zw=function(v){var E,n,f,x,y;
_.X(function(Q){switch(Q.nextAddress){case 1:return _.m(Q,v.innertubeTransportServicePromise,2);case 2:return E=Q.yieldResult,n=_.Yt(f7X),f={externalPostId:v.JSC$14909_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.vW(Q,3),_.m(Q,_.Ms(E,f,n),5);case 5:x=Q.yieldResult;_.qp(Q,4);break;case 3:throw y=_.cW(Q),y;case 4:if(x==null)throw Error("ui");if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("si`"+x.errorMetadata.status);_.yQ(Q)}})};
fFi.prototype.flush=function(){var v=this;return _.X(function(E){return E.nextAddress==1?_.m(E,v.reportMiniAppValueRateLimiter.flush(),2):_.m(E,v.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var WFg=function(v,E){return _.X(function(n){return n.nextAddress==1?_.m(n,v.validateMiniAppVideoIdRateLimiter.call(E),2):n.return(n.yieldResult)})},oG1=function(v,E){var n,f,x,y,Q,e;
return _.X(function(F){switch(F.nextAddress){case 1:return _.m(F,v.innertubeTransportServicePromise,2);case 2:return n=F.yieldResult,f=_.Yt(zz6),x={videoId:E},_.vW(F,3),_.m(F,_.Ms(n,x,f),5);case 5:y=F.yieldResult;_.qp(F,4);break;case 3:throw Q=_.cW(F),Q;case 4:if(y){if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("si`"+y.errorMetadata.status);if(e=y.playabilityStatus)return F.return(e.status);throw Error("vi");}throw Error("ui");}})};
fFi[Wl]=[_.jp(_.ok),_.jp(Jwi)];var xKz=function(){this.clientData=new Map};
xKz.prototype.getData=function(v){return this.clientData.get(v)};var c0S=function(v){this.store=v};
c0S.prototype.handleResponse=function(v){(v=_.C(v.frameworkUpdates,qq))&&_.tc(v,this.store)};
c0S[Wl]=[_.lQ];var y01=new _.$Y("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var pxi={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,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],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 Q7w=new _.$Y("ICON_SET_TOKEN"),Xxl=new _.$Y("ICON_URL_PROVIDER_TOKEN"),e31=new _.$Y("PREFETCH_ICONS_TOKEN"),FvX=new _.$Y("ICON_MAP_FN_TOKEN");var ul={},mK4=(ul.ACCESS_TIME="clock",ul.ACCOUNT_BOX="person_account",ul.ACCOUNT_BOX_CAIRO="person_account_cairo",ul.ACCOUNT_CIRCLE="person_circle",ul.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",ul.ACCOUNT_LINKED="account_link_success",ul.ACCOUNT_UNLINKED="account_link",ul.ADD_FRIEND="people",ul.ADD_TO_LIBRARY=RV("add"),ul.ADD_TO_PLAYLIST="add",ul.ADD_TO_QUEUE_TAIL="list_queue",ul.ADD_TO_REMOTE_QUEUE="list_music",ul.ADD_TO_WATCH_LATER="clock",ul.ADD_VIDEO_LINK="film_strip_add",ul.ALERT_WARN_RED="alert_triangle",
ul.ARROW_BACK="arrow_left",ul.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",ul.ARROW_DROP_DOWN="chevron_down",ul.ARROW_DROP_UP="chevron_up",ul.ARROW_FORWARD="arrow_right",ul.AUDIOTRACK="audio",ul.AUTO_AWESOME="sparkle",ul.AVATAR_ANONYMOUS="person_circle",ul.AVATAR_LOGGED_OUT="person_circle",ul.BACK="arrow_left",ul.BAR_CHART="bar_graph",ul.BLOCK="slash_circle_left",ul.BLOCK_USER="slash_circle_left",ul.BOOKMARK_BORDER="bookmark",ul.BREAKING_NEWS_ALT_1="article_alert",ul.BROADCAST_CAIRO="podcast_cairo",
ul.BUG_REPORT="bug",ul.CAMERA_ALT="camera",ul.CAMPAIGN="megaphone",ul.CANCEL="x_circle",ul.CAPTIONS="closed_caption",ul.CAST_OUTLINE="chromecast",ul.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ul.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",ul.CHAT="message_bubble_left",ul.CHAT_BUBBLE="message_bubble_empty",ul.CHECK_BOX_OUTLINE_BLANK="box_empty",ul.CHECK_CIRCLE_OUTLINE="check_circle",ul.CHECK_CIRCLE_THICK="check_circle",ul.CLARIFY="article_clarify",ul.CLOSED_CAPTION_SELECTED="closed_caption",ul.CLOSE=
"x_mark",ul.CLOUD_UPLOAD="cloud_arrow_up",ul.COLLAPSE="chevron_up",ul.COLLAPSE_CAIRO="chevron_up_cairo",ul.COLLECTION="layers",ul.COLOR_LENS="palette",ul.COMMENT="message_bubble_right",ul.CONSENT_SHIELD="person_shield",ul.CONTENT_CUT="scissors",ul.CONTENT_CUT_CAIRO="scissors_cairo",ul.COURSE=_.Z("web_enable_course_icon_update")?"creator_academy":"lightbulb",ul.COURSE_CAIRO=_.Z("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",ul.CREATION_LIVE="radar_live",ul.CREATION_UPLOAD=
"my_videos",ul.CREATION_UPLOAD_RED="upload",ul.CREATOR_STUDIO="youtube_studio",ul.DELETE="trash_can",ul.DELETE_SWEEP="trash_can",ul.DESKTOP="laptop",ul.DISLIKE="thumb_down",ul.DISLIKE_SELECTED="thumb_down",ul.DISMISSAL="x_mark",ul.DISMISS_QUEUE="list_remove",ul.DOWN_ARROW="arrow_down",ul.DO_NOT_DISTURB="slash_circle_left",ul.DRAFT="paper_corner_folded",ul.DRAG_HANDLE="bars_2",ul.EDIT="pencil",ul.EMOJI="face_very_happy",ul.EMOJI_FLAGS="flag",ul.EMOJI_OBJECTS="lightbulb",ul.EMOJI_PEOPLE="face_very_happy",
ul.EMOJI_RECENT="clock",ul.EMPTY_HEART="heart",ul.EMPTY_LIKE="thumb_up",ul.ERROR_BLACK="alert_circle",ul.ERROR_OUTLINE="alert_circle",ul.EXIT_APP="arrow_in",ul.EXIT_TO_APP="arrow_in",ul.EXPAND="chevron_down",ul.EXPAND_ALL="chevron_expand",ul.EXPAND_CAIRO="chevron_down_cairo",ul.EXPAND_LESS="chevron_up",ul.EXPAND_MORE="chevron_down",ul.EXPLORE="compass",ul.EXPLORE_DESTINATION="compass",ul.EXTERNAL_LINK="open_new",ul.FAB_UPLOAD="upload",ul.FACE_HAPPY_OUTLINE="face_happy",ul.FACT_CHECK="article_check",
ul.FASHION_LOGO="fashion",ul.FASHION_LOGO_CAIRO="fashion_cairo",ul.FAVORITE="heart",ul.FEEDBACK="message_bubble_alert",ul.FEEDBACK_CAIRO="message_bubble_alert_cairo",ul.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ul.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ul.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",ul.FLAG="flag",ul.FULL_HEART="heart",ul.GAME_CONSOLE_DPAD="game_console_dpad",ul.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",ul.GAMING_LOGO="gaming",ul.GAMING_LOGO_CAIRO="gaming_cairo",ul.GO_TO_PAGE=
"arrow_right",ul.GROUPS="people_group",ul.HAPPY="face_happy",ul.HEALTH_AND_SAFETY="shield_plus",ul.HELP="question_circle",ul.HELP_CAIRO="question_circle_cairo",ul.HELP_OUTLINE="question_circle",ul.HIDE="slash_circle_left",ul.IMAGE="image",ul.INFINITY_ICON="infinity",ul.INFO="info_circle",ul.INFO_OUTLINE="info_circle",ul.INSERT_CHART_OUTLINED="bar_graph_box_vertical",ul.INSERT_PHOTO="image",ul.KEEP="pin",ul.KEEP_OFF="pin_off",ul.KEYBOARD="keyboard",ul.KEYBOARD_ARROW_DOWN="chevron_down",ul.KEYBOARD_ARROW_UP=
"chevron_up",ul.KIDS_BLOCK="slash_circle_left",ul.LANGUAGE="globe",ul.LAUNCH="open_new",ul.LEARNING="lightbulb",ul.LEARNING_CAIRO="lightbulb_cairo",ul.LIBRARY_ADD=RV("library_add"),ul.LIBRARY_OUTLINE="library",ul.LIBRARY_REMOVE=RV(),ul.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",ul.LIKES_PLAYLIST="thumb_up",ul.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",ul.LIKE="thumb_up",ul.LIKE_SELECTED="thumb_up",ul.LIVE="radar_live",ul.LIVE_CAIRO="radar_live_cairo",ul.LIVE_UNLISTED="link",ul.LOCATION_ON="location_point",
ul.LOCATION_PIN="location_point",ul.LOOP="arrow_repeat",ul.LOOP_ACTIVE="arrow_repeat",ul.LOOP_ONE="arrow_repeat_1",ul.LOOP_ONE_ACTIVE="arrow_repeat_1",ul.MEH="face_meh",ul.MEMBERS_ONLY_MODE_OFF="message_bubble_left",ul.MESSAGE="message_bubble_left",ul.MICROPHONE_ON="mic",ul.MIX="youtube_mix",ul.MONETIZATION_ON="dollar_sign_circle",ul.MONEY_FILL="dollar_sign_container",ul.MONEY_FILL_JPY="yen_sign_container",ul.MONEY_HEART="dollar_sign_heart",ul.MORE_HORIZ="overflow_horizontal",ul.MORE_VERT="overflow_vertical",
ul.MUSIC="audio",ul.MUSIC_CAIRO="audio_cairo",ul.MUSIC_NOTE_SYMBOL="music",ul.MUSIC_SHUFFLE="arrow_shuffle",ul.MY_CHANNEL="person_circle",ul.MY_LOCATION="location_point",ul.NEWS_STORY="news",ul.NEXT="chevron_right",ul.NOTIFICATIONS="bell",ul.NOTIFICATIONS_ACTIVE="bell_on",ul.NOTIFICATIONS_CAIRO="bell_cairo",ul.NOTIFICATIONS_DONE_CHECKMARK="check",ul.NOTIFICATIONS_INBOX="bell",ul.NOTIFICATIONS_NONE="bell",ul.NOTIFICATIONS_OFF="bell_off",ul.NOT_INTERESTED="slash_circle_left",ul.OFFICIAL_ARTIST_BADGE=
"audio",ul.OFFLINE_CLOUD="cloud_off",ul.OFFLINE_DOWNLOAD="download",ul.OFFLINE_DOWNLOAD_CAIRO="download_cairo",ul.OFFLINE_PAUSE="pause",ul.OPEN_IN_NEW="open_new",ul.OUTLINE_ADJUST="adjust",ul.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",ul.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",ul.OUTLINE_BAG="bag",ul.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",ul.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ul.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ul.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
ul.PAID="dollar_sign",ul.PAUSE_OUTLINED="pause",ul.PAYMENT="credit_card",ul.PERSON_RADAR_FILLED="person_radar",ul.PHONE_DOWNLOAD="mobile_download",ul.PLAYABLES_LOGO="tic_tac_toe",ul.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",ul.PLAYLISTS="list_play_arrow",ul.PLAYLISTS_CAIRO="list_play_arrow_cairo",ul.PLAYLIST_ADD=RV("list_add"),ul.PLAYLIST_ADD_CHECK=RV("list_check"),ul.PLAY_ALL="play_arrow",ul.PLAY_CIRCLE="play_arrow_circle",ul.PLAY_OUTLINED="play_arrow_circle",ul.PRIVACY_INFO="shield",ul.PRIVACY_PRIVATE=
"lock",ul.PRIVACY_PUBLIC="earth",ul.PRIVACY_UNLISTED="link",ul.PROMOTE="megaphone",ul.PURCHASES="price_tag",ul.PURCHASE_SUPER_CHAT="super_chat",ul.PURCHASE_SUPER_STICKER="super_sticker",ul.QUESTION_ANSWER="message_bubble_question",ul.QUEUE_PLAY_LAST="list_queue_last",ul.QUEUE_PLAY_NEXT="list_play_arrow",ul.REMIX_FILLED="youtube_shorts_remix",ul.REMOVE="bar_circle",ul.REMOVE_CIRCLE="bar_circle",ul.REMOVE_CIRCLE_OUTLINE="bar_circle",ul.REMOVE_FROM_HISTORY="bar_circle",ul.REMOVE_FROM_PLAYLIST="bar_circle",
ul.REPLAY="arrow_circle",ul.REPORT_PROBLEM="alert_triangle",ul.SAD="face_sad",ul.SAVE_PLAYLIST=RV("library_add"),ul.SCHEDULE="clock",ul.SCHOOL="creator_academy",ul.SCREEN_FULLSCREEN="screen_full",ul.SEARCH_HISTORY="arrow_time",ul.SELL="price_tag",ul.SETTINGS="gear",ul.SETTINGS_CAIRO="gear_cairo",ul.SETTINGS_LIGHT="gear",ul.SETTINGS_MATERIAL="gear",ul.SHARE_ARROW="share",ul.SHIELD_WITH_AVATAR="person_shield",ul.SHOPPING_BAG="bag",ul.SHOPPING_BAG_CAIRO="bag_cairo",ul.SHOPPING_CART="cart",ul.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",ul.SHORTS_DISLIKE="youtube_shorts_thumb_down",ul.SHORTS_LIKE="youtube_shorts_thumb_up",ul.SHORTS_SHARE="youtube_shorts_share",ul.SHUFFLE="arrow_shuffle",ul.SLOW_MODE_OFF="message_bubble_left",ul.SOCIAL="people",ul.SORT="menu_sort",ul.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",ul.SPEED_1X="1x",ul.SPEED_1_POINT_2X="1_point_2x",ul.SPEED_1_POINT_5X="1_point_5x",ul.SPEED_1_POINT_8X="1_point_8x",ul.SPEED_2X="2x",ul.SPEED_POINT_2X="point_2x",ul.SPEED_POINT_8X="point_8x",
ul.SPONSORSHIP_STAR=_.Z("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",ul.STAFF_PICK="spotlight",ul.START_DVR="add",ul.STAR_BORDER="star",ul.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",ul.STICKER_EMOTICON="face_happy",ul.STOP_DVR="stop",ul.SUBSCRIBE="youtube_logo_icon",ul.SUBSCRIBE_PLUS="add_cairo",ul.SUBSCRIPTION_MANAGER="gear",ul.SUPERVISOR_ACCOUNT="people",ul.SWAP_HORIZ="arrow_swap_horizontal",ul.SWITCH_ACCOUNTS="person_account",ul.TAB_ACCOUNT="person",ul.TAB_ACTIVITY=
"bell",ul.TAB_EXPLORE="compass",ul.TAB_HOME="home",ul.TAB_HOME_CAIRO="home_cairo",ul.TAB_INBOX="mail",ul.TAB_LIKED="thumb_up",ul.TAB_MUSIC_PREMIUM="youtube_music",ul.TAB_SHORTS="youtube_shorts",ul.TAB_SHORTS_CAIRO="youtube_shorts_cairo",ul.TAB_SUBSCRIPTIONS="subscriptions",ul.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",ul.TAB_TRENDING="fire",ul.TIMER="stopwatch",ul.TRENDING="fire",ul.TRENDING_CAIRO="fire_cairo",ul.TRENDING_UP="rating_up",ul.TROPHY="trophy",ul.TROPHY_CELEBRATIONS="fireworks",ul.TUNE=
"adjust",ul.UNBLOCK_USER="bar_circle",ul.UNLIMITED="youtube_logo_icon",ul.UNPLUGGED_LIVE_GUIDE="radar_live",ul.UNPLUGGED_SPORTS="eye_off",ul.UPLOADS="library",ul.UP_ARROW="arrow_up",ul.VERTICAL_ALIGN_BOTTOM="download",ul.VERY_HAPPY="face_very_happy",ul.VERY_SAD="face_very_sad",ul.VIDEOS="play_arrow_circle",ul.VIDEO_CALL="video_camera_add",ul.VIDEO_LIBRARY_WHITE="library",ul.VIDEO_YOUTUBE="youtube_logo_icon",ul.VIEW_LIST="list_view",ul.VIEW_LIST_CAIRO="list_view_cairo",ul.VISIBILITY="eye",ul.VISIBILITY_OFF=
"eye_off",ul.VOLUME_MUTE="volume_off",ul.VOLUME_UP="volume_on",ul.WALLPAPER="image",ul.WARNING="alert_triangle",ul.WATCH_HISTORY="arrow_time",ul.WATCH_HISTORY_CAIRO="arrow_time_cairo",ul.WATCH_LATER="clock",ul.WATCH_LATER_CAIRO="clock_cairo",ul.WATCH_RELATED_MIX="youtube_mix",ul.WHAT_TO_WATCH="home",ul.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ul.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",ul.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",ul.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",ul.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ul.YT_OUTLINE_MUSIC_24="music",ul);var jB={},wxU=(jB.ACCESS_TIME="clock",jB.ACCOUNT_BOX="person2_rectangle",jB.ACCOUNT_BOX_CAIRO="person_square_stack",jB.ACCOUNT_CIRCLE="person_circle",jB.ACCOUNT_CIRCLE_CAIRO="person_circle",jB.ACCOUNT_UNLINKED="account_link",jB.ADD_CIRCLE="add_circle",jB.ADD_FRIEND="person_child",jB.ADD_TO_LIBRARY="bookmark",jB.ADD_TO_PLAYLIST="add",jB.ADD_TO_QUEUE_TAIL="queue",jB.ADD_TO_REMOTE_QUEUE="playlist_audio",jB.ADD_TO_WATCH_LATER="clock",jB.ADD_VIDEO_LINK="film_strip_add",jB.ADMIN_PANEL_SETTINGS="gear",jB.ALERT_WARN_RED=
"alert_triangle",jB.ALIGN_LEFT="text_align_left",jB.ARROWS_ALERT="arrow_split_alert",jB.ARROW_BACK="arrow_left",jB.ARROW_CIRCLE="arrow_counterclockwise",jB.ARROW_CIRCLE_PLAY="replay",jB.ARROW_CIRCLE_RIGHT="arrow_clockwise",jB.ARROW_DIAGONAL="arrow_up_left",jB.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",jB.ARROW_DROP_DOWN="chevron_down",jB.ARROW_DROP_UP="chevron_up",jB.ARROW_FORWARD="arrow_right",jB.ARROW_PAUSE="pause_history",jB.ARROW_UNDO="undo",jB.ARTICLE="text_page",jB.ARTICLE_ALERT="text_page_alert",
jB.ARTICLE_CHECK="text_page_check",jB.ARTICLE_CLARIFY="text_page_info",jB.AUDIOTRACK="audio",jB.AUDIO_BADGE="audio_badge",jB.AUDIO_SURROUND="surround_sound",jB.AVATAR_ANONYMOUS="person_circle",jB.AVATAR_LOGGED_OUT="person_circle",jB.BACK="arrow_left",jB.BAR_CHART="chart_bar",jB.BAR_CIRCLE="minus_circle",jB.BAR_HORIZONTAL="minus",jB.BLOCK="circle_slash",jB.BLOCK_USER="circle_slash",jB.BOOKMARK_BORDER="bookmark",jB.BOX_OPEN_CHECK="quiz",jB.BOX_PENCIL="square_pencil",jB.BREAKING_NEWS_ALT_1="text_page_alert",
jB.BROADCAST="podcast",jB.BROADCAST_CAIRO="podcast",jB.BUG_REPORT="bug",jB.CAMERA_ALT="camera",jB.CAMPAIGN="megaphone",jB.CANCEL="x_circle",jB.CAPTIONS="closed_captions",jB.CAST_OUTLINE="chromecast",jB.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",jB.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",jB.CHAT="text_bubble",jB.CHAT_BUBBLE="bubble",jB.CHECK_CIRCLE_OUTLINE="check_circle",jB.CHECK_CIRCLE_THICK="check_circle",jB.CHECK_DOUBLE="check_done",jB.CHECK_DOUBLE_OFF="check_done_slash",jB.CHEVRON_RIGHT_CAIRO=
"chevron_right",jB.CIRCLES_OVERLAP="account_link",jB.CLAPPERBOARD_CAIRO="clapperboard",jB.CLARIFY="text_page_info",jB.CLOCK_ARROWS="clock_split",jB.CLOCK_ARROWS_ALERT="clock_split_alert",jB.CLOSED_CAPTION="closed_captions",jB.CLOSED_CAPTION_SELECTED="closed_captions",jB.CLOSE="x",jB.CLOUD_UPLOAD="cloud_arrow_up",jB.COLLAPSE="chevron_up",jB.COLLAPSE_CAIRO="chevron_up",jB.COLLECTION="square3d_stack",jB.COLOR_LENS="paint_palette",jB.COMMENT="text_bubble",jB.CONSENT_SHIELD="person_shield",jB.CONTENT_CUT=
"scissors",jB.CONTENT_CUT_CAIRO="scissors",jB.COURSE="graduation_cap",jB.COURSE_CAIRO="graduation_cap",jB.CREATION_LIVE="live",jB.CREATION_POST="square_pencil",jB.CREATION_UPLOAD="video",jB.CREATION_UPLOAD_RED="upload",jB.CREATOR_ACADEMY="graduation_cap",jB.CREATOR_STUDIO="youtube_studio",jB.DARK_THEME="theme",jB.DELETE="trash_can",jB.DELETE_SWEEP="trash_can",jB.DESKTOP="laptop",jB.DISLIKE="thumb_down",jB.DISLIKE_SELECTED="thumb_down",jB.DISMISSAL="x",jB.DOGFOOD="pawprint",jB.DOLLAR_SIGN="dollar_sign_circle",
jB.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",jB.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",jB.DOWN_ARROW="arrow_down",jB.DO_NOT_DISTURB="circle_slash",jB.DRAFT="document",jB.EARTH="globe",jB.EDIT="pencil",jB.EMOJI="face_very_happy",jB.EMOJI_FLAGS="flag",jB.EMOJI_OBJECTS="lightbulb",jB.EMOJI_PEOPLE="face_very_happy",jB.EMOJI_RECENT="clock",jB.EMPTY_HEART="heart",jB.EMPTY_LIKE="thumb_up",jB.ERROR_BLACK="alert_circle",jB.ERROR_OUTLINE="alert_circle",jB.EXIT_APP="arrow_in",jB.EXIT_TO_APP="arrow_in",
jB.EXPAND="chevron_down",jB.EXPAND_ALL="chevron_expand",jB.EXPAND_CAIRO="chevron_down",jB.EXPAND_LESS="chevron_up",jB.EXPAND_MORE="chevron_down",jB.EXPLORE="compass",jB.EXPLORE_DESTINATION="compass",jB.EXTERNAL_LINK="arrow_up_right",jB.EYE_OFF="eye_slash",jB.FAB_UPLOAD="upload",jB.FACE_HAPPY_OUTLINE="face_happy",jB.FACE_MEH="face_neutral",jB.FACT_CHECK="text_page_check",jB.FASHION_LOGO="fashion",jB.FASHION_LOGO_CAIRO="fashion",jB.FEEDBACK="alert_bubble",jB.FEEDBACK_CAIRO="alert_bubble",jB.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",jB.FILL_ARROW_SOLID_UP_16="arrow_solid_up",jB.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",jB.FLAG_CAIRO="flag",jB.FLASH_OFF="flash_slash",jB.FLASH_ON="flash",jB.FULL_HEART="heart",jB.GAMING_LOGO="gaming",jB.GAMING_LOGO_CAIRO="gaming",jB.GO_TO_PAGE="arrow_right",jB.GROUPS="person3",jB.HAND_SWIPE_LEFT="gesture_swipe_left",jB.HAND_SWIPE_RIGHT="gesture_swipe_right",jB.HAPPY="face_happy",jB.HEALTH_AND_SAFETY="shield_health",jB.HEART_BOX="heart_cube",jB.HELP="help_circle",jB.HELP_CAIRO=
"help_circle",jB.HELP_OUTLINE="help_circle",jB.HIDE="circle_slash",jB.INCOGNITO_CAIRO="incognito",jB.INFINITY_ICON="infinity",jB.INFO="info_circle",jB.INFO_OUTLINE="info_circle",jB.INSERT_PHOTO="image",jB.KEEP="pin",jB.KEEP_OFF="pin_slash",jB.KEYBOARD="keyboard",jB.KEYBOARD_ARROW_DOWN="chevron_down",jB.KEYBOARD_ARROW_UP="chevron_up",jB.KIDS_BLOCK="circle_slash",jB.LANGUAGE="globe",jB.LAUNCH="arrow_up_right",jB.LEARNING="lightbulb",jB.LEARNING_CAIRO="lightbulb",jB.LIBRARY_ADD="bookmark",jB.LIBRARY_IMAGE=
"image_stack",jB.LIBRARY_MUSIC="audio_square_stack",jB.LIBRARY_OUTLINE="play_square_stack",jB.LIBRARY_REMOVE="bookmark",jB.LIKES_PLAYLIST="thumb_up",jB.LIKES_PLAYLIST_CAIRO="thumb_up",jB.LIKE="thumb_up",jB.LIKE_SELECTED="thumb_up",jB.LIST_QUEUE="queue",jB.LIVE_CAIRO="live",jB.LIVE_UNLISTED="link",jB.LOCATION_ON="location_pin",jB.LOCATION_PIN="location_pin",jB.LOCATION_POINT="location_pin",jB.LOOP="repeat",jB.LOOP_ACTIVE="repeat",jB.LOOP_ONE="repeat1",jB.LOOP_ONE_ACTIVE="repeat1",jB.MEET="google_meet",
jB.MEH="face_neutral",jB.MEMBERSHIPS="memberships",jB.MEMBERS_ONLY_MODE_OFF="text_bubble",jB.MENU_FILTER="filter",jB.MESSAGE="text_bubble",jB.MESSAGE_BUBBLE_GEAR="bubble_gear",jB.MESSAGE_BUBBLE_LEFT="text_bubble",jB.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",jB.MESSAGE_BUBBLE_OVERLAP="bubble_stack",jB.MESSAGE_BUBBLE_QUESTION="help_bubble",jB.MICROPHONE_ON="mic",jB.MONETIZATION_ON="dollar_sign_circle",jB.MONEY_FILL="dollar_sign_rectangle",jB.MONEY_FILL_JPY="yen_sign_rectangle",jB.MONEY_HAND="dollar_sign_circle_hand",
jB.MONEY_HEART="dollar_sign_heart",jB.MOON_Z="sleep_timer",jB.MORE_HORIZ="overflow_horizontal",jB.MORE_VERT="overflow_vertical",jB.MUSIC="audio",jB.MUSIC_CAIRO="audio",jB.MUSIC_NOTE_SYMBOL="audio",jB.MUSIC_SCISSORS="audio_scissors",jB.MUSIC_SHUFFLE="shuffle",jB.MY_CHANNEL="person_circle",jB.MY_LOCATION="location_pin",jB.MY_VIDEOS="video",jB.MY_VIDEOS_CAIRO="video",jB.NEWS_CAIRO="news",jB.NEWS_STORY="news",jB.NEXT="chevron_right",jB.NOTE_ADD="bubble_pencil",jB.NOTIFICATIONS="bell",jB.NOTIFICATIONS_ACTIVE=
"bell_waves",jB.NOTIFICATIONS_CAIRO="bell",jB.NOTIFICATIONS_DONE_CHECKMARK="check",jB.NOTIFICATIONS_INBOX="bell",jB.NOTIFICATIONS_NONE="bell",jB.NOTIFICATIONS_OFF="bell_slash",jB.NOT_INTERESTED="circle_slash",jB.OFFICIAL_ARTIST_BADGE="audio",jB.OFFLINE_CLOUD="cloud_slash",jB.OFFLINE_DOWNLOAD="download",jB.OFFLINE_DOWNLOAD_CAIRO="download",jB.OFFLINE_PAUSE="pause",jB.OPEN_IN_NEW="arrow_up_right",jB.OUTLINE_ADJUST="adjust",jB.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",jB.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",jB.OUTLINE_BAG="bag",jB.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",jB.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",jB.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",jB.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",jB.PAID="dollar_sign_circle",jB.PAUSE_OUTLINED="pause",jB.PAYMENT="credit_card",jB.PEOPLE="person_child",jB.PEOPLE_2="person2_rectangle",jB.PEOPLE_GROUP="person3",jB.PEOPLE_NOTE="bubble_asterisk",jB.PERSON_2="person2",jB.PERSON_ACCOUNT="person_square_stack",jB.PERSON_MINUS=
"person_x",jB.PERSON_MUSIC="person_audio",jB.PERSON_RADAR="person_waves",jB.PERSON_RADAR_FILLED="person_waves",jB.PERSON_SETTING="person_gear",jB.PHONE="phone",jB.PHONE_DOWNLOAD="mobile_arrow_down",jB.PICTURE_IN_PICTURE="picture_in_picture",jB.PLAYABLES_LOGO="playables",jB.PLAYABLES_LOGO_CAIRO="playables",jB.PLAYLISTS="playlist",jB.PLAYLISTS_CAIRO="playlist",jB.PLAYLIST_ADD="bookmark",jB.PLAYLIST_ADD_CHECK="bookmark",jB.PLAY_ALL="play",jB.PLAY_ARROW="play",jB.PLAY_ARROW_CIRCLE="play_circle",jB.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",jB.PLAY_CIRCLE="play_circle",jB.PLAY_OUTLINED="play_circle",jB.PODCAST_ADD="podcast_add",jB.PODCAST_CHECK="podcast_check",jB.PRIVACY_PRIVATE="lock",jB.PRIVACY_PUBLIC="globe",jB.PRIVACY_UNLISTED="link",jB.PROMOTE="megaphone",jB.PURCHASES="price_tag",jB.PURCHASE_SUPER_CHAT="super_chat",jB.PURCHASE_SUPER_STICKER="super_sticker",jB.QUESTION_ANSWER="help_bubble",jB.QUESTION_CIRCLE="help_circle",jB.QUEUE_PLAY_LAST="queue_last",jB.QUOTATION_MARK="quote",jB.RADAR_LIVE="live",jB.REMOVE=
"minus_circle",jB.REMOVE_CIRCLE="minus_circle",jB.REMOVE_CIRCLE_OUTLINE="minus_circle",jB.REMOVE_FROM_HISTORY="minus_circle",jB.REMOVE_FROM_PLAYLIST="minus_circle",jB.REPLAY="arrow_counterclockwise",jB.REPLAY_ARROW="replay",jB.REPORT_PROBLEM="alert_triangle",jB.RSS_OFF="rss_slash",jB.SAD="face_sad",jB.SAVE_PLAYLIST="bookmark",jB.SCHEDULE="clock",jB.SCHOOL="graduation_cap",jB.SCREEN_DEFAULT="player_default",jB.SCREEN_FULLSCREEN="player_full_enter",jB.SCREEN_LIGHT="ambient_mode",jB.SCREEN_SWITCH="player_switch",
jB.SEARCH_CAIRO="search",jB.SEARCH_HISTORY="history",jB.SELL="price_tag",jB.SETTINGS="gear",jB.SETTINGS_CAIRO="gear",jB.SETTINGS_LIGHT="gear",jB.SETTINGS_MATERIAL="gear",jB.SETTINGS_REMOTE="remote_waves",jB.SHARE="share",jB.SHARE_ARROW="share",jB.SHARE_CAIRO="share",jB.SHIELD="shield_x",jB.SHIELD_OFF="shield_slash",jB.SHIELD_WITH_AVATAR="person_shield",jB.SHOPPING_BAG="bag",jB.SHOPPING_BAG_CAIRO="bag",jB.SHOPPING_CART="cart",jB.SHORTS_COMMENT="text_bubble",jB.SHORTS_DISLIKE="thumb_down",jB.SHORTS_LIKE=
"thumb_up",jB.SHORTS_SHARE="share",jB.SLASH_CIRCLE_RIGHT="circle_slash",jB.SLOW_MODE_OFF="text_bubble",jB.SOCIAL="person_child",jB.SPARKLE="sparkles",jB.SPARK_IMAGE="image_spark",jB.SPARK_RADAR="spark_waves",jB.SPARK_VIDEO="video_spark",jB.SPEAKER_GROUP="speaker_stack",jB.SPEAKER_OFF="speaker_slash",jB.SPEED_1X="n1x",jB.SPEED_1_POINT_2X="n1point2x",jB.SPEED_1_POINT_5X="n1point5x",jB.SPEED_1_POINT_8X="n1point8x",jB.SPEED_2X="n2x",jB.SPONSORSHIP_STAR="memberships",jB.SPORTS="basketball",jB.SPOTLIGHT=
"spotlight",jB.STAFF_PICK="spotlight",jB.START_DVR="add",jB.STAR_BORDER="star",jB.STAR_HALF="star_half_filled",jB.STAR_SHOOTING="hype",jB.STICKER="sticker",jB.STICKER_EMOTICON="face_happy",jB.STOP_DVR="stop",jB.SUBSCRIBE="youtube",jB.SUBSCRIBE_PLUS="add",jB.SUBSCRIPTION_MANAGER="gear",jB.SUPERSTAR="super_star",jB.SUPERVISOR_ACCOUNT="person_child",jB.SWAP_HORIZ="arrow_swap_horizontal",jB.SWITCH_ACCOUNTS="person_square_stack",jB.TAB_ACCOUNT="person",jB.TAB_ACTIVITY="bell",jB.TAB_EXPLORE="compass",jB.TAB_HOME=
"home",jB.TAB_HOME_CAIRO="home",jB.TAB_INBOX="mail",jB.TAB_LIKED="thumb_up",jB.TAB_MUSIC_PREMIUM="youtube_music",jB.TAB_SHORTS="shorts",jB.TAB_SHORTS_CAIRO="shorts",jB.TAB_SUBSCRIPTIONS="subscriptions",jB.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",jB.TAB_TRENDING="trending",jB.TARGET="target",jB.TARGET_ADD="target_add",jB.TEMPLATE_ADD="template_add",jB.TEXT="font",jB.TIMER="stopwatch",jB.TRENDING_CAIRO="trending",jB.TRENDING_UP="arrow_trend_up",jB.TROPHY_CAIRO="trophy",jB.TROPHY_CELEBRATIONS="fireworks",
jB.TROPHY_STAR="star_trophy",jB.TUNE="adjust",jB.UNBLOCK_USER="minus_circle",jB.UNLIMITED="youtube",jB.UNPLUGGED_LIVE_GUIDE="live",jB.UNPLUGGED_SPORTS="eye_slash",jB.UPLOADS="play_square_stack",jB.UP_ARROW="arrow_up",jB.VERTICAL_ALIGN_BOTTOM="download",jB.VERY_HAPPY="face_very_happy",jB.VERY_SAD="face_very_sad",jB.VIDEOS="play_circle",jB.VIDEO_CALL="video_camera_add",jB.VIDEO_LIBRARY_WHITE="play_square_stack",jB.VIDEO_QUALITY_4K="n4k",jB.VIDEO_QUALITY_8K="n8k",jB.VIDEO_YOUTUBE="youtube",jB.VIEW_LIST_CAIRO=
"view_list",jB.VIEW_MODULE="view_column3_row2",jB.VISIBILITY="eye",jB.VISIBILITY_OFF="eye_slash",jB.VOLUME_DOWN="volume_min",jB.VOLUME_MUTE="volume_mute",jB.VOLUME_OFF="volume_mute",jB.VOLUME_STABLE="stable_volume",jB.VOLUME_UP="volume_max",jB.WALLPAPER="image",jB.WARNING="alert_triangle",jB.WATCH_HISTORY="history",jB.WATCH_HISTORY_CAIRO="history",jB.WATCH_LATER="clock",jB.WATCH_LATER_CAIRO="clock",jB.WATCH_RELATED_MIX="mix",jB.WHAT_TO_WATCH="home",jB.YOUTUBE_LINKED_TV="tv_mobile",jB.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",jB.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",jB.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",jB.YOUTUBE_SHORTS_ARROW_UP="arrow_up",jB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",jB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",jB.YOUTUBE_SHORTS_OUTLINE_24="shorts",jB);var bDF={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],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,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_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,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var lFP={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 Oz=function(v){this.iconUrlProvider=v};
Oz.prototype.resolveIcon=function(v,E){var n=v.iconName;n=n.replace(/-/g,"_");v=Object.assign({},v,{iconName:this.mapIconTypeToStandardName(n)||n.toLowerCase()});if(_.Z("enable_web_delhi_icons")){var f;return UNN(lFP,v,((f=this.iconUrlProvider)==null?void 0:f.getYtStandardUrl)||KQX,E)}var x;return UNN(bDF,v,((x=this.iconUrlProvider)==null?void 0:x.getYtStandardUrl)||JUy,E)};
Oz.prototype.mapIconTypeToStandardName=function(v){return _.Z("enable_web_delhi_icons")?wxU[v.toUpperCase()]:mK4[v.toUpperCase()]};
Oz[Wl]=[_.jp(Xxl)];var s71=function(v){this.urlProvider=this.iconUrlProvider=v};
_.S(s71,Oz);
s71.prototype.resolveIcon=function(v,E){v.iconName==="youtube_logo"&&(v.iconName="yt-logo-updated");if(v.iconName==="youtube_premium_logo"||v.iconName==="youtube_red_logo")v.iconName="yt-logo-red-updated";var n=Object.assign({},v);v.iconName==="menu"&&(_.Z("enable_web_delhi_icons")||(n.iconName="bars_3"),n.iconStyle="youtube_outline");v.iconName==="youtube_music"&&(n.iconStyle="youtube_fill");v.iconName==="mail"&&v.iconSetName==="socialNetworksRound"&&(n.iconName="email");v.iconName==="more"&&(n.iconName=
"overflow_horizontal");v.iconName==="fullscreen"&&(n.iconName="screen_full");if(v.iconName==="play_all"||v.iconName==="play_arrow")n.iconStyle="youtube_fill";v.iconName==="premium_standalone"&&(n.iconName="premium_standalone_cairo");_.Z("enable_connect_icon_update_web")&&v.iconName==="account_linked"&&(n.iconName="circles_overlap_check",n.iconStyle="youtube_fill");_.Z("enable_connect_icon_update_web")&&v.iconName==="account_unlinked"&&(n.iconName="circles_overlap",n.iconStyle="youtube_outline");v=
Object.assign({},n,{iconName:(Oz.prototype.mapIconTypeToStandardName.call(this,n.iconName)||n.iconName).toLowerCase()});var f;return(v=UNN(pxi,v,((f=this.urlProvider)==null?void 0:f.getUrl)||dNN,E))?v:Oz.prototype.resolveIcon.call(this,n,E)};
s71[Wl]=[_.jp(Xxl)];_.r0w=1;var kS=function(){};
_.S(kS,rI);kS.prototype.resolveCommand=function(v){var E,n;return _.X(function(f){E=_.C(v,i9X);if(!E)return f.return();n=Number(E.enableDelayedPacfLoggingTvMs);if(isNaN(n)){var x=LX();RX1(x,E,0)}else RX1(LX(),E,n);_.yQ(f)})};_.Wd=function(){};
_.S(_.Wd,rI);
_.Wd.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b;return _.X(function(l){f=_.C(v,zsz);y=(x=E.form)==null?void 0:x.element;e=(Q=y)==null?void 0:Q.closest("ytd-enforcement-message-view-model");if(!f||!e)return l.return();n.allowAdsAction||(F=f.fundingChoiceInstructionPageUrl,n.allowAdsAction=new SBw(window,_.b6(F)));var r=n.allowAdsAction;r.wallElement=e;r.allowAdsPopup.style.setProperty("display","flex","important");var a=r.scrollManager;a.originalBodyOverflow=a.JSC$7893_domHelper.JSC$7222_document_.body.style.overflow;a.JSC$7893_domHelper.JSC$7222_document_.body.style.overflow=
"hidden";r.wallElement.style.setProperty("display","none","important");HTU(r.accessibilityManager,r.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((b=n.allowAdsAction.allowAdsPopup)&&b instanceof HTMLElement)for(r=_.p(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),a=r.next();!a.done;a=r.next()){var M=_.p(a.value);a=M.next().value;M=M.next().value;b.style.setProperty(a,M)}_.yQ(l)})};
_.Wd.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var $S=function(){};
_.S($S,rI);$S.prototype.resolveCommand=function(v){var E;return _.X(function(n){E=_.C(v,xs1);if(!E)return n.return();zwy(v);_.yQ(n)})};var Ln=function(v){this.JSC$14949_commandHandler=v};
_.S(Ln,rI);
Ln.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1){n=_.C(v,Ie1);if((f=n)==null||!f.text||!navigator.clipboard)return l.return();_.vW(l,2);return _.m(l,navigator.clipboard.writeText(n.text),4)}if(l.nextAddress!=2){if(!n.successActions||n.successActions.length===0)return l.return();x=_.p(n.successActions);for(y=x.next();!y.done;y=x.next())Q=y.value,E.JSC$14949_commandHandler.resolveCommand(Q);return _.qp(l,0)}_.cW(l);if(!n.failureActions||n.failureActions.length===
0)return l.return();e=_.p(n.failureActions);for(F=e.next();!F.done;F=e.next())b=F.value,E.JSC$14949_commandHandler.resolveCommand(b);_.yQ(l)})};
Ln[Wl]=[_.OO];var Go=function(v){this.JSC$14953_commandHandler=v};
_.S(Go,rI);
Go.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a;return _.X(function(M){switch(M.nextAddress){case 1:f=_.C(v,Fp1);if(!f)return M.return();_.vW(M,2);if(!f.imageBytes&&!f.imageUrl)throw Error("wi");if(!f.imageUrl){if(f.imageBytes){y=f.imageBytes;Q=y.replace(/-/g,"+").replace(/_/g,"/");var U=YT9(Q);x=_.lW(U)}M.jumpTo(4);break}return _.m(M,fetch(f.imageUrl),5);case 5:return e=M.yieldResult,_.m(M,e.blob(),6);case 6:F=M.yieldResult,x=_.lW(F);case 4:r=(b=E)==null?void 0:(l=b.form)==
null?void 0:l.element;a=document.createElement("a");Cc(a,x);r.appendChild(a);a.download="";a.click();r.removeChild(a);URL.revokeObjectURL(_.ec(x));f.successCommand&&n.JSC$14953_commandHandler.resolveCommand(f.successCommand);_.qp(M,0);break;case 2:_.cW(M),f.errorCommand&&n.JSC$14953_commandHandler.resolveCommand(f.errorCommand),_.yQ(M)}})};
Go[Wl]=[_.OO];var To=function(v){this.store=v};
_.S(To,rI);To.prototype.resolveCommand=function(v){var E=this,n,f,x;return _.X(function(y){f=(n=_.C(v,_.$9P))==null?void 0:n.entityBatchUpdate;if(!f)return y.jumpTo(0);x=Object.assign({},f,{mutations:[].concat(_.s8(f.mutations||[]))});return _.m(y,_.tc(x,E.store),0)})};var PKw=function(v){this.JSC$14960_commandHandler=v;this.feedbackDialogMap=new Map};
PKw.prototype.openDialog=function(v,E){(v=this.feedbackDialogMap.get(v))&&this.JSC$14960_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:v}},E)};
PKw[Wl]=[_.OO];var il=new _.$Y("FEEDBACK_CONTROLLER_TOKEN");var zo=new _.$Y("APP_STORE_TOKEN");var Rq=function(v,E){this.store=v;this.controller=E};
_.S(Rq,rI);Rq.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T;return _.X(function(L){if(L.nextAddress==1){f=_.C(v,_.qI);if(y=(x=f)==null?void 0:x.contentId)for(e=_.p(((Q=f)==null?void 0:Q.actions)||[]),F=e.next();!F.done;F=e.next())b=F.value,aFS(n,b,y);a=(l=E)==null?void 0:(r=l.form)==null?void 0:r.element;return _.m(L,_.$Z(a,[v]).catch(function(){}),2)}M=L.yieldResult;
((U=M)==null?0:(d=U.data)==null?0:(Y=d.feedbackResponses)==null?0:Y.length)&&(O=(V=M.data.feedbackResponses[0])==null?void 0:V.followUpDialog)&&y&&(T=n.controller)!=null&&T.feedbackDialogMap.set(y,O);_.yQ(L)})};
var aFS=function(v,E,n){var f=_.C(E,_.Tn);if(f){f=_.p(f.commands||[]);for(var x=f.next();!x.done;x=f.next())aFS(v,x.value,n)}_.C(E,_.mD)&&v.store.dispatch(_.n7("commandEntity",tFE(n),{key:n,command:E}));_.C(E,Gjz)&&v.store.dispatch(_.n7("commandEntity",tFE(n),{key:n,command:E}))};
Rq[Wl]=[zo,il];var t4=function(v){this.controller=v};
_.S(t4,rI);t4.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q;return _.X(function(e){f=_.C(v,_.Z4);y=(x=f)==null?void 0:x.targetId;if(((Q=f)==null?void 0:Q.signal)!=="TELL_US_WHY"||!y)return e.return();n.controller.openDialog(y,E);_.yQ(e)})};
t4[Wl]=[il];var Bd=function(v){this.store=v};
_.S(Bd,rI);Bd.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b;return _.X(function(l){f=_.C(v,Of1);y=(x=f)==null?void 0:x.contentId;F=(Q=E)==null?void 0:(e=Q.form)==null?void 0:e.element;b=_.$Z(F,[v]);y&&n.undo(y);return _.m(l,b,0)})};
Bd.prototype.undo=function(v){this.store.dispatch(_.n7("commandEntity",tFE(v),{key:v,command:void 0}))};
Bd[Wl]=[zo];var vC=function(v){this.JSC$14975_commandHandler=v};
_.S(vC,rI);vC.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b;return _.X(function(l){n=_.C(v,yt1);f=n.flowStateKey;x=n.validationFailureCommand;y=n.submitValidFormCommand;Q=C5(_.zk,[f||""]);e=_.C(Q,Q_z);((F=e)==null?0:F.isValid)&&y&&E.JSC$14975_commandHandler.resolveCommand(y);((b=e)==null?0:b.isValid)||!x||E.JSC$14975_commandHandler.resolveCommand(x);_.yQ(l)})};
vC[Wl]=[_.OO];var Ec=function(v){this.innertubeTransportService=v};
_.S(Ec,rI);Ec.prototype.resolveCommand=function(v,E){var n=this,f;return _.X(function(x){return _.m(x,_.Mq(n.innertubeTransportService,v,(f=E)==null?void 0:f.form).then(function(y){var Q,e;E==null||(Q=E.commandController)==null||(e=Q.onSuccess)==null||e.call(Q,v,y)},function(y){var Q,e;
E==null||(Q=E.commandController)==null||(e=Q.onServerError)==null||e.call(Q,v,y)}),0)})};
Ec[Wl]=[_.ok];var nd=function(){};
_.S(nd,rI);nd.prototype.resolveCommand=function(v){var E,n,f,x;return _.X(function(y){if(E=_.C(v,_.ps1)){if(n=E.gtmId)f=_.MX("GL",""),_.cs(n,f);(x=E.gtmData)&&_.yB(x)}_.yQ(y)})};var om=function(v,E){this.innertubeTransportService=v;this.JSC$14986_actionRouter=E};
_.S(om,rI);om.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){n=_.C(v,lbg);if(!n)return x.return();f=n.command;if(!f)return x.return();E.JSC$14986_actionRouter.triggerAction("yt-insert-rich-section-action",n);return _.m(x,_.Mq(E.innertubeTransportService,f,{disableCache:!0}),0)})};
om[Wl]=[_.ok,uM];AUX.bind(null,P$);var ZD4=AUX.bind(null,wuX);DNA.bind(null,P$);var CKo=DNA.bind(null,wuX);Nas.bind(null,P$);var Ml1=Nas.bind(null,wuX);var fd=function(){};
_.S(fd,rI);
fd.prototype.resolveCommand=function(v){var E,n,f,x,y,Q,e,F,b,l;return _.X(function(r){E=_.C(v,Leo);if(!E)return r.return();f=((n=E.operations)==null?void 0:n.operations)||[];x=_.p(f);for(y=x.next();!y.done;y=x.next())if(Q=y.value,Q.insertItemSectionContent){var a=Q.insertItemSectionContent,M=a.contents||[];a.insertByPositionInSection?ZD4(a.insertByPositionInSection.sectionTargetId,M,a.insertByPositionInSection.position):a.insertByRelativePositionInSection&&a.insertByRelativePositionInSection.sectionTargetId&&a.insertByRelativePositionInSection.itemTargetId&&
CKo(a.insertByRelativePositionInSection.sectionTargetId,a.insertByRelativePositionInSection.itemTargetId,M,a.insertByRelativePositionInSection.relativePosition)}else Q.replaceSection?(a=Q.replaceSection,M={},a.replaceByTargetId?M=a.replaceByTargetId:a.replaceByGroupId&&(M={targetId:a.replaceByGroupId.groupId,newContent:a.replaceByGroupId.newContent,undoKey:""}),M.newContent&&szg(M.targetId,{continuationItems:[M.newContent]})):Q.removeItem?(a=Q.removeItem,a.removeByTargetId&&a.sectionTargetId&&Ml1(a.sectionTargetId,
a.removeByTargetId.targetIds||[])):Q.removeSection&&(Q.removeSection.removeByTargetId?(e=void 0,SuX(((e=Q.removeSection)==null?void 0:e.removeByTargetId.targetIds)||[])):Q.removeSection.removeByGroupId&&(F=void 0,SuX(((F=Q.removeSection)==null?void 0:F.removeByGroupId.groupIds)||[])));l=((b=E.operations)==null?void 0:b.scrollConfig)||{};UKX(l);_.yQ(r)})};
var SuX=function(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next())szg(E.value,{continuationItems:[]})},UKX=function(v){if(v.scrollToItem){var E=v.scrollToItem.item||{},n=E.itemTargetId;
E=E.sectionTargetId;if(n&&E){var f=document.querySelector("[data-target-id="+E+"]"),x=f==null?void 0:f.querySelector("[data-target-id="+n+"]");f&&x&&setTimeout(function(){var y=x.offsetTop-f.offsetTop,Q;if(((Q=v.scrollToItem)==null?void 0:Q.scrollPosition)==="SCROLL_POSITION_CENTER")y-=f.offsetHeight/2,y+=x.offsetHeight/2;else{var e;((e=v.scrollToItem)==null?void 0:e.scrollPosition)==="SCROLL_POSITION_END"&&(y-=f.offsetHeight,y+=x.offsetHeight)}f.scroll({top:y,behavior:"smooth"})},100)}}};var xK=new _.$Y("CLIENT_NAME_TOKEN");var quP=new _.$Y("DEFAULT_STORE_EXPIRATION_TOKEN");var xzL=new _.$Y("CLIENT_LOCATION_SERVICE_TOKEN");var cC=function(v,E,n){this.clientName=v||_.MX("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=E||_.rn.getInstance();this.JSC$15014_commandHandler=n||_.ki.instance};
_.S(cC,rI);cC.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){f=(n=_.C(v,Ee6))==null?void 0:n.onComplete;E.clientLocationService.clearLocationPlayabilityToken(E.clientName);f&&E.JSC$15014_commandHandler.resolveCommand(f);_.yQ(x)})};
cC[Wl]=[xK,xzL,_.OO];var y8=function(v){this.innertubeTransportService=v};
_.S(y8,rI);y8.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q;return _.X(function(e){y=(f=E)==null?void 0:(x=f.form)==null?void 0:x.element;return _.m(e,_.Mq(n.innertubeTransportService,v,(Q=E)==null?void 0:Q.form).then(function(F){xYs(y,new CustomEvent("yt-service-request-completed"),{data:F},_.MX("openPopupConfig"))}),0)})};
y8[Wl]=[_.ok];var pd=function(){};
_.S(pd,rI);pd.prototype.resolveCommand=function(v){var E,n;return _.X(function(f){E=_.C(v,mTF);n=document.querySelector("mini-app-container-view-model");if(!E||!n)return f.return();E.isPlaying?n.dispatchEvent(new Event("play")):n.dispatchEvent(new Event("pause"));_.yQ(f)})};var Q8=function(){};
_.S(Q8,rI);Q8.prototype.resolveCommand=function(v){var E,n,f,x,y,Q,e;return _.X(function(F){E=_.C(v,nIo);if((n=E)==null||!n.paramKeys)return F.return();f=E.paramKeys;x=_.qE(window.location.href);y=_.p(f);for(Q=y.next();!Q.done;Q=y.next())e=Q.value,x.JSC$7925_queryData_.remove(e);window.history.replaceState(window.history.state,document.title,x.toString());_.yQ(F)})};var J0F=function(){this.dropdownMap=new Map};_.KvX=new _.$Y("DROPDOWN_CONTROLLER_TOKEN");var Xk=function(v){this.controller=v};
_.S(Xk,rI);Xk.prototype.resolveCommand=function(v){var E=this,n,f,x,y;return _.X(function(Q){n=_.C(v,DsP);if(!n)return Q.return();f=n;x=f.dropdownId;y=f.selectedOptionIndex;if(x===void 0||y===void 0)return Q.return();var e=E.controller.dropdownMap.get(x);e&&e(y);_.yQ(Q)})};
Xk[Wl]=[_.KvX];var eb=function(v){this.controller=v};
_.S(eb,rI);eb.prototype.resolveCommand=function(v){var E=this,n;return _.X(function(f){return(n=_.C(v,Q9S))?_.m(f,E.controller.closeDialog(),0):f.return()})};
eb[Wl]=[_.FQ];var Fk=function(v){this.controller=v};
_.S(Fk,rI);Fk.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){n=_.C(v,k5U);if(!n)return x.return();var y,Q=n.panelIdentifier||((y=n.identifier)==null?void 0:y.tag);if(!Q)throw Error("xi");return(f=Q)?_.m(x,E.controller.hidePanel(f),0):x.jumpTo(0)})};
Fk[Wl]=[_.XQ];var mf=function(v,E){this.innertubeTransportService=v;this.controller=E};
_.S(mf,rI);mf.prototype.resolveCommand=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return n=_.C(v,WjU),(f=n)!=null&&f.panelId?_.m(Q,E.controller.getReloadContinuation(n.panelId),2):Q.return();if(Q.nextAddress!=3)return(x=Q.yieldResult)?_.m(Q,_.Mq(E.innertubeTransportService,v,{continuation:x}),3):Q.return();y=Q.yieldResult;return _.m(Q,E.controller.updatePanel(n.panelId,y.content,!1),0)})};
mf[Wl]=[_.ok,_.XQ];var wp=function(v,E,n){this.innertubeTransportService=v;this.JSC$15050_screenManager=E;this.JSC$15050_commandHandler=n};
_.S(wp,rI);
wp.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1){n=_.C(v,_.ATU);if(!n)return F.return();if(n.commands)for(f=_.p(n.commands),x=f.next();!x.done;x=f.next())y=x.value,E.JSC$15050_commandHandler.resolveCommand(y,{disableClickTracking:!0});Q=_.tx(v.clickTrackingParams);_.Rs(E.JSC$15050_screenManager,21760,Q,{layer:7,parentLayer:0});return _.m(F,_.Mq(E.innertubeTransportService,v),2)}e=F.yieldResult;if(!e)return F.return();E.JSC$15050_screenManager.graftServerVe(e.trackingParams,Q,
7);_.yQ(F)})};
wp[Wl]=[_.ok,_.nK,_.OO];var bA=new _.$Y("PANEL_LOADING_STRATEGY_TOKEN");var lA=function(v,E){this.controller=v;this.panelLoadingStrategy=E};
_.S(lA,rI);
lA.prototype.resolveCommand=function(v,E){var n=this,f,x,y;return _.X(function(Q){f=_.C(v,ql1);if((x=f)==null||!x.panelLoadingStrategy)return Q.return();y=function(e){var F,b,l,r,a,M,U,d,Y;return _.X(function(V){b=_.C((F=e.dialogViewModel)==null?void 0:F.header,HQ1);l={viewModel:e.dialogViewModel};r={};if(U=_.Z("web_enable_dialog_header_label")?(a=b)==null?void 0:(M=a.headline)==null?void 0:M.content:void 0)r.ariaLabel=U;f.dismissOnBackgroundTap===!1&&(r.isModal=!0);return e.dialogViewModel?_.m(V,
n.controller.openDialog(l,(d=E)==null?void 0:(Y=d.form)==null?void 0:Y.element,r),0):V.return()})};
return _.m(Q,n.panelLoadingStrategy.execute({command:v,data:f.panelLoadingStrategy,renderFn:y,createScreenConfig:{layer:4}}),0)})};
lA[Wl]=[_.FQ,bA];var sc=function(v,E,n){this.innertubeTransportService=v;this.controller=E;this.JSC$15070_screenManager=n};
_.S(sc,rI);
sc.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U;return _.X(function(d){switch(d.nextAddress){case 1:f=_.C(v,_.Uy);if(!f)return d.return();var Y,V=f.panelIdentifier||((Y=f.identifier)==null?void 0:Y.tag);if(!V)throw Error("xi");x=V;return _.m(d,n.controller.isVisible(x,!0),2);case 2:if((y=d.yieldResult)&&f.blockIfPanelOpen)return d.return();F=(e=(Q=n.controller).getPanelContent)==null?void 0:e.call(Q,x);if(!(Y=F))if(f){var O;Y=((O=f.globalConfiguration)==null?void 0:O.initialState)||
f.engagementPanel;if(O=!Y)O=!!(f==null?0:(V=f.engagementPanelPresentationConfigs)==null?0:V.engagementPanelPopupPresentationConfig);O&&(Y=_.Bj(f.panelIdentifier,f.identifier))}else Y=void 0;b=Y;l=f.engagementPanelPresentationConfigs;r=f.engagementPanelExtras;return _.m(d,n.controller.showPanel(x,b,l,r,(a=E)==null?void 0:(M=a.form)==null?void 0:M.element),3);case 3:if(!f.globalConfiguration){d.jumpTo(0);break}_.Rs(n.JSC$15070_screenManager,32633);return _.m(d,_.Mq(n.innertubeTransportService,v),5);
case 5:return U=d.yieldResult,n.JSC$15070_screenManager.graftServerVe(U.trackingParams),_.m(d,n.controller.updatePanel(x,U.content,!0,r,void 0,U.updatePanelContinuationData),0)}})};
sc[Wl]=[_.ok,_.XQ,_.nK];var rp=function(v,E){this.controller=v;this.panelLoadingStrategy=E};
_.S(rp,rI);rp.prototype.resolveCommand=function(v,E){var n=this,f,x,y;return _.X(function(Q){f=_.C(v,_.ou);if((x=f)==null||!x.panelLoadingStrategy)return Q.return();y=function(e){var F,b;return _.X(function(l){return e.sheetViewModel?_.m(l,n.controller.openSheet({viewModel:e.sheetViewModel},(F=E)==null?void 0:(b=F.form)==null?void 0:b.element),0):l.return()})};
return _.m(Q,n.panelLoadingStrategy.execute({command:v,data:f.panelLoadingStrategy,renderFn:y,createScreenConfig:{layer:0}}),0)})};
rp[Wl]=[_.eL,bA];var PC=function(v,E){this.controller=v;this.JSC$15078_commandHandler=E};
_.S(PC,rI);PC.prototype.resolveCommand=function(v,E){var n=this,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){f=_.C(v,Tl6);var e=_.C(f.showCommand,_.Uy),F,b,l=(b=e==null?void 0:e.panelIdentifier)!=null?b:e==null?void 0:(F=e.identifier)==null?void 0:F.tag;if(!l)throw Error("yi");x=l;return _.m(Q,n.controller.isVisible(x),2)}return(y=Q.yieldResult)?_.m(Q,n.controller.hidePanel(x),0):_.m(Q,n.JSC$15078_commandHandler.resolveCommand(f.showCommand,E),0)})};
PC[Wl]=[_.XQ,_.OO];var am=function(v,E,n){this.innertubeTransportService=v;this.controller=E;this.JSC$15081_screenManager=n};
_.S(am,rI);
am.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE;return _.X(function(MF){switch(MF.nextAddress){case 1:return f=n=_.C(v,iro),x=f.targetPanelIdentifier,y=f.contentSourcePanelIdentifier,Q=f.globalConfiguration,((e=x)==null?0:e.tag)&&((F=y)==null?0:F.tag)?Q?_.m(MF,E.controller.showPanel(x.tag,_.Bj(x.tag,x),void 0,void 0,void 0),5):_.m(MF,(a=(r=E.controller).getPanel)==null?void 0:a.call(r,y.tag),4):MF.return();case 4:M=MF.yieldResult;b=(U=M)==null?void 0:
(Y=(d=U).getPanelContent)==null?void 0:Y.call(d);MF.jumpTo(3);break;case 5:return _.m(MF,_.Mq(E.innertubeTransportService,v),6);case 6:V=MF.yieldResult,((O=V)==null?0:O.trackingParams)&&E.JSC$15081_screenManager.graftServerVe(V.trackingParams),b=(T=V)==null?void 0:T.content,l=(L=V)==null?void 0:L.updatePanelContinuationData;case 3:if(t=(xX=b)==null?void 0:xX.engagementPanelSectionListRenderer)return _.m(MF,E.controller.showPanel(x.tag,void 0,void 0,void 0,void 0,{content:t.content,secondaryHeaderContent:(QE=
t.header)!=null?QE:{},targetId:t.targetId},l),0);MF.jumpTo(0)}})};
am[Wl]=[_.ok,_.XQ,_.nK];var ZS=function(v,E){this.JSC$15089_commandHandler=v;this.store=E};
_.S(ZS,rI);ZS.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return(n=_.C(v,yS1))?_.m(e,_.$_(),2):e.return();f=e.yieldResult;if(!f)return e.return();OmX(f,E.store,(x=n)==null?void 0:x.languageCode);y=f.isSubtitlesOn()?_.tQ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.tQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.AC(y);E.JSC$15089_commandHandler.resolveCommand(Q);_.yQ(e)})};
ZS[Wl]=[_.OO,fe];var Cd=function(v,E){this.shortsPlayerPromise=v;this.JSC$15093_commandHandler=E};
_.S(Cd,rI);
Cd.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return(n=_.C(v,Zrg))?_.m(l,E.shortsPlayerPromise,2):l.return();f=l.yieldResult;var r=kEG(f);r!=null&&r.length||(f.loadModule("captions"),r=kEG(f));x=r;if((y=x)==null||!y.length)return Q=_.tQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),e=_.AC(Q),E.JSC$15093_commandHandler.resolveCommand(e),l.return();f.toggleSubtitles();F=f.isSubtitlesOn()?_.tQ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.tQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");b=_.AC(F);E.JSC$15093_commandHandler.resolveCommand(b);_.yQ(l)})};
Cd[Wl]=[_.tLX,_.OO];var Me=function(v){this.JSC$15096_playerPromise=v};
_.S(Me,rI);Me.prototype.resolveCommand=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return(n=_.C(v,Ljo))?_.m(Q,E.JSC$15096_playerPromise,2):Q.return();f=Q.yieldResult;x=f.getVideoData().video_id;n.videoId===x&&(y=Number(n.offsetFromVideoStartMilliseconds),y>=0&&f.seekTo(y/1E3));_.yQ(Q)})};
Me[Wl]=[_.Nq];var dKS=_.$s("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Sb=function(v){this.store=v};
_.S(Sb,rI);
var IF1=function(v){var E,n,f,x;return _.X(function(y){if(y.nextAddress==1)return E=_.MX("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,n=_.MX("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,f=E||n,v.mainAppPlayer=new hz(f),_.m(y,v.mainAppPlayer.api,2);x=y.yieldResult;x.addEventListener("onStateChange",v.JSC$15100_playerStateChangeListener.bind(v));document.addEventListener("yt-page-data-updated",v.pauseOnNavigation.bind(v));window.addEventListener("state-navigatestart",
v.pauseOnNavigation.bind(v));_.yQ(y)})};
Sb.prototype.JSC$15100_playerStateChangeListener=function(v){switch(v){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"}Yu1(this)};
var Yu1=function(v){v.store.dispatch(_.n7("sfvAudioItemCurrentlyPlayingEntity",dKS,{key:dKS,externalVideoId:v.externalVideoId,sfvAudioItemPlaybackState:v.playbackState,nowPlayingEntityValue:v.nowPlayingEntityValue}))};
Sb.prototype.pauseOnNavigation=function(){var v=this,E,n,f,x;return _.X(function(y){if(y.nextAddress==1){if(!v.mainAppPlayer){var Q=new _.yc("Error: mainAppPlayer is unavailable",v.mainAppPlayer);_.mb(Q);return y.return()}return _.m(y,v.mainAppPlayer.api,2)}E=y.yieldResult;f=(n=E)==null?void 0:n.getPlayerState();f!==1||(x=E)!=null&&x.pauseVideo();_.yQ(y)})};
Sb.prototype.playVideo=function(v,E,n){var f=this,x,y;return _.X(function(Q){if(Q.nextAddress==1)return _.m(Q,(x=f.mainAppPlayer)==null?void 0:x.api,2);y=Q.yieldResult;if(!f.mainAppPlayer||!y){var e=new _.yc("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.mb(e);return Q.return()}return _.m(Q,f.mainAppPlayer.loadVideoWithPlayerVars({videoId:f.externalVideoId,audio_only:"1",start:v/1E3,end:v/1E3+E,player_params:n}),0)})};
Sb.prototype.pauseVideo=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1){if(!v.mainAppPlayer){var x=new _.yc("Error: mainAppPlayer is unavailable",v.mainAppPlayer);_.mb(x);return f.return()}return _.m(f,v.mainAppPlayer.api,2)}E=f.yieldResult;(n=E)==null||n.pauseVideo();_.yQ(f)})};
Sb.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L;return _.X(function(xX){if(xX.nextAddress==1)return n=_.C(v,s11),x=(f=n)==null?void 0:f.nowPlayingEntityValue,Q=(y=n)==null?void 0:y.externalVideoId,r=Number((l=(e=n)==null?void 0:(F=e.defaultStartPoints)==null?void 0:(b=F[0])==null?void 0:b.offsetMs)!=null?l:"0"),V=Number((Y=(a=n)==null?void 0:(M=a.defaultStartPoints)==null?void 0:(U=M[0])==null?void 0:(d=U.duration)==null?void 0:d.seconds)!=null?Y:"15"),L=(T=
(O=n)==null?void 0:O.playerParams)!=null?T:"",x&&Q?E.mainAppPlayer?xX.jumpTo(2):_.m(xX,IF1(E),2):xX.return();if(xX.nextAddress!=6){if(E.nowPlayingEntityValue&&x===E.nowPlayingEntityValue)return E.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.m(xX,E.pauseVideo(),0):_.m(xX,E.playVideo(r,V,L),0);E.externalVideoId=Q;E.nowPlayingEntityValue=x;E.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.m(xX,E.playVideo(r,V,L),6)}Yu1(E);return xX.jumpTo(0)})};
Sb[Wl]=[fe];var Uc=function(v){this.JSC$15117_commandHandler=v};
_.S(Uc,rI);Uc.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1)return(f=_.C(v,pNl))?_.m(F,_.$_(),2):F.return();x=F.yieldResult;if(!x)return F.return();(y=GEX(x))?n.JSC$15117_commandHandler.resolveCommand(y,E):(Q=_.tQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),e=_.AC(Q),n.JSC$15117_commandHandler.resolveCommand(e));_.yQ(F)})};
Uc[Wl]=[_.OO];var qe=function(v){this.JSC$15120_playerPromise=v};
_.S(qe,rI);qe.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1){n=_.C(v,G51);if(!n)return e.return();f=n.overlayRenderer;return f?(x=_.C(f,R8F))?_.m(e,E.JSC$15120_playerPromise,3):e.jumpTo(0):e.return()}y=e.yieldResult;y.renderChapterSeekingAnimation(1,_.JC(x.text),(Q=x.icon)==null?void 0:Q.iconType);_.yQ(e)})};
qe[Wl]=[_.Nq];var J2=function(v){this.store=v};
_.S(J2,rI);J2.prototype.resolveCommand=function(v){var E=this,n,f,x;return _.X(function(y){if(y.nextAddress==1){n=_.C(v,QW4);if(!n)return y.return();f="";(x=E.store.getState().collabInviteLink)&&n.id===x.playlistId?f=x.inviteLinkURL:n.shortUrl&&(f=n.shortUrl);return f?_.m(y,navigator.clipboard.writeText(f),3):y.jumpTo(0)}var Q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.tQ("COPY_LINK_SUCCESS_TOAST")}}}}};_.P().resolve(_.OO).resolveCommand(Q);_.yQ(y)})};
J2[Wl]=[zo];var Kd=function(v,E){this.innertubeTransportService=v;this.JSC$15130_commandHandler=E};
_.S(Kd,rI);Kd.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a;return _.X(function(M){if(M.nextAddress==1)return(f=_.C(v,_.Kg))?_.m(M,_.Mq(n.innertubeTransportService,v,(x=E)==null?void 0:x.form),2):M.return();(y=M.yieldResult)&&y.errorMetadata&&(Q=y,e=_.AC(Q.error.message),n.JSC$15130_commandHandler.resolveCommand(e));F=y;if((b=F)==null?0:b.actions)for(l=_.p(F.actions),r=l.next();!r.done;r=l.next())a=r.value,n.JSC$15130_commandHandler.resolveCommand(a);_.yQ(M)})};
Kd[Wl]=[_.ok,_.OO];var dp=function(){};
_.S(dp,rI);dp.prototype.resolveCommand=function(v){var E;return _.X(function(n){E=_.C(v,E2o);if(!E)return n.return();(new NIP(E)).show();_.yQ(n)})};_.Im=new _.$Y("PLAYLIST_EDIT_CONTROLLER_TOKEN");var YK=function(v,E,n,f){this.store=v;this.innertubeTransportService=E;this.controller=n;this.JSC$15138_commandHandler=f};
_.S(YK,rI);
YK.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF,K1,JG,$X,HI;return _.X(function(uE){if(uE.nextAddress==1){f=_.C(v,_.Mb);if(!f)return uE.return();if(f.clientActions){x=_.p(f.clientActions);for(y=x.next();!y.done;y=x.next())Q=y.value,n.JSC$15138_commandHandler.resolveCommand(Q);var WI,bX=E==null?void 0:(WI=E.form)==null?void 0:WI.element;bX&&_.jK(bX,"yt-dismissible-item-action",f.clientActions)}return _.m(uE,_.Mq(n.innertubeTransportService,v,(e=E)==
null?void 0:e.form),2)}if(F=uE.yieldResult)F.errorMetadata?(b=F,l=_.AC(b.error.message),n.JSC$15138_commandHandler.resolveCommand(l),"error"in F&&((r=E)==null?0:(a=r.commandController)==null?0:a.onServerError)&&((M=E)==null||(U=M.commandController)==null||U.onServerError(v,F))):(d=E)==null||(Y=d.commandController)==null||(O=(V=Y).onSuccess)==null||O.call(V,v,F);T=F;((L=T)==null?0:L.collaborationInviteLink)&&f.playlistId&&(_.Z("web_enable_invite_collaborators_link")||_.Z("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
n.store.dispatch(_.un({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:f.playlistId,inviteLinkUrl:T.collaborationInviteLink}}));((xX=T)==null?0:xX.redirectEndpoint)&&n.JSC$15138_commandHandler.resolveCommand(T.redirectEndpoint);((t=T)==null?0:(QE=t.newHeader)==null?0:QE.playlistHeaderRenderer)?h3P(n.controller,T.newHeader.playlistHeaderRenderer):((MF=T)==null?0:(K1=MF.newHeader)==null?0:K1.musicEditablePlaylistDetailHeaderRenderer)&&h3P(n.controller,T.newHeader.musicEditablePlaylistDetailHeaderRenderer);
n.controller.playlistVideoListElement&&((JG=T)==null?0:($X=JG.playlistEditResults)==null?0:(HI=$X[0])==null?0:HI.playlistEditVideoAddedResultData)&&((bX=n.controller.playlistVideoListElement)==null||bX.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:T.playlistEditResults[0].playlistEditVideoAddedResultData})));_.yQ(uE)})};
YK[Wl]=[zo,_.ok,_.Im,_.OO];var h2=function(v,E){this.controller=v;this.JSC$15148_commandHandler=E};
_.S(h2,rI);h2.prototype.resolveCommand=function(v,E){var n=this,f,x,y;return _.X(function(Q){f=_.C(v,XFl);n.controller.showRefreshPill&&((x=f)==null?0:x.command)&&(n.JSC$15148_commandHandler.resolveCommand((y=f)==null?void 0:y.command,E),n.controller.showRefreshPill=!1);_.yQ(Q)})};
h2[Wl]=[_.jq,_.OO];var A2=function(v,E){this.store=v;this.JSC$15152_commandHandler=E||_.ki.instance};
_.S(A2,rI);A2.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a;return _.X(function(M){f=_.C(v,MP1);x=n.store.getState().radioButtonGroup;if((y=f)==null?0:y.command)n.JSC$15152_commandHandler.resolveCommand((Q=f)==null?void 0:Q.command,E);else if(((e=f)==null?void 0:e.formId)===x.currentFormId)for(F=Object.values(x.commandsMap),b=_.p(F),l=b.next();!l.done;l=b.next()){r=l.value;a=_.F$(r);if(!a)return M.return();n.JSC$15152_commandHandler.resolveCommand(a,E)}_.yQ(M)})};
A2[Wl]=[zo];var V8=new _.$Y("USER_PREFS");var DS=function(v){this.JSC$15156_prefCookie=v};
_.S(DS,rI);DS.prototype.resolveCommand=function(v){var E=this,n;return _.X(function(f){(n=_.C(v,GN1))&&typeof n.useListView==="boolean"&&(_.nH(0,155,n.useListView),E.JSC$15156_prefCookie.save());_.yQ(f)})};
DS[Wl]=[V8];var HC=function(v){this.JSC$15160_prefCookie=v};
_.S(HC,rI);HC.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q;return _.X(function(e){n=_.C(v,o2P);if((f=n)==null||!f.gl)return e.return();x=n.gl;y={persist_gl:"1",gl:x};E.JSC$15160_prefCookie.set("gl",x);E.JSC$15160_prefCookie.save();Q=_.Mtz(y);_.mo(Q);_.yQ(e)})};
HC[Wl]=[V8];var gp=function(v){this.JSC$15164_prefCookie=v};
_.S(gp,rI);gp.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){n=_.C(v,FPU);if(!n)return x.return();f=!1;n.flagNum&&typeof n.value==="boolean"?(_.nH(0,n.flagNum,n.value),f=!0):n.key&&typeof n.stringValue==="string"&&(E.JSC$15164_prefCookie.set(n.key,n.stringValue),f=!0);f&&E.JSC$15164_prefCookie.save();_.yQ(x)})};
gp[Wl]=[V8];var Ne=new _.$Y("PREF_STORAGE_PROMISE_TOKEN");var uA=function(v){this.JSC$15168_prefStoragePromise=v};
_.S(uA,rI);uA.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return(n=_.C(v,wFU))?_.m(x,E.JSC$15168_prefStoragePromise,2):x.return();f=x.yieldResult;return f===void 0||n.key===void 0||n.value===void 0?x.return():_.m(x,f.set(n.key,n.value),0)})};
uA[Wl]=[Ne];var A0P=function(v){this.innertubeTransportService=v};
_.S(A0P,rI);A0P.prototype.resolveCommand=function(v,E){var n=this,f,x;return _.X(function(y){(f=_.C(v,_.j16))&&f&&f.isFirstRequest&&(_.e7("search_overview_answer"),_.FD("so_rq",void 0,"search_overview_answer"));return _.m(y,_.Mq(n.innertubeTransportService,v,(x=E)==null?void 0:x.form),0)})};
A0P[Wl]=[_.ok];var Vlo=function(){};
_.S(Vlo,rI);
Vlo.prototype.resolveCommand=function(v){var E,n,f,x,y,Q,e,F,b;return _.X(function(l){E=_.C(v,$_4);if((n=E)==null?0:n.sectionIdentifier){if(E.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(x=(f=document.getElementsByTagName(E.sectionIdentifier))==null?void 0:f.item(0))x.scrollIntoView({behavior:"smooth"}),(y=RVX(x))&&y.focus({preventScroll:!0});return l.return()}Q=document.querySelector("[section-identifier="+E.sectionIdentifier+"]");e=document.querySelector("[section-identifier="+E.referenceSectionIdentifier+
"]");if(!Q)return l.return();F=E.verticalScrollOffsetDp?E.verticalScrollOffsetDp:0;e&&(F-=e.offsetTop);window.scrollTo({top:Q.offsetTop+F,behavior:"smooth"});(b=RVX(Q))&&b.focus({preventScroll:!0})}_.yQ(l)})};var jb=function(){};
_.S(jb,rI);
jb.prototype.resolveCommand=function(v){var E,n,f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1){E=_.C(v,msU);if(!E||!E.imageBytes||!navigator.clipboard)return F.return();if(E.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.mb(Error("zi")),F.return();_.vW(F,2);f=(n=E)==null?void 0:n.imageBytes;x=f.replace(/-/g,"+").replace(/_/g,"/");y=YT9(x);Q={};e=[new ClipboardItem((Q[y.type]=y,Q))];return _.m(F,navigator.clipboard.write(e),4)}if(F.nextAddress!=2)return _.qp(F,0);
_.cW(F);_.yQ(F)})};var Oc=function(v,E){this.innertubeTransportService=v;this.JSC$15183_commandHandler=E};
_.S(Oc,rI);Oc.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1)return(f=_.C(v,wg4))?_.m(F,_.Mq(n.innertubeTransportService,v,(x=E)==null?void 0:x.form),2):F.return();(y=F.yieldResult)&&y.errorMetadata&&f.onFailureCommand&&n.JSC$15183_commandHandler.resolveCommand(f.onFailureCommand);Q=y;((e=Q)==null?0:e.shareCommand)&&n.JSC$15183_commandHandler.resolveCommand(Q.shareCommand,E);_.yQ(F)})};
Oc[Wl]=[_.ok,_.OO];var kK=function(){};
_.S(kK,rI);kK.prototype.resolveCommand=function(v){var E,n;return _.X(function(f){E=_.C(v,pF6);if(!E||!navigator.share)return f.return();n={url:E.url};try{return f.return(navigator.share(n))}catch(x){}_.yQ(f)})};var WC=function(){};
_.S(WC,rI);WC.prototype.resolveCommand=function(){return _.X(function(v){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.yQ(v)})};var $K=function(v){this.JSC$15193_navigationConfirmationService=v};
_.S($K,rI);$K.prototype.resolveCommand=function(){var v=this;return _.X(function(E){v.JSC$15193_navigationConfirmationService.cancelPendingNavigation();_.yQ(E)})};
$K[Wl]=[E$];var Ld=function(v){this.JSC$15196_screenManager=v};
_.S(Ld,rI);Ld.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b;return _.X(function(l){x=(f=E.form)==null?void 0:f.event;Q=(y=E.form)==null?void 0:y.element;if(!x)throw new _.yc("Event not passed in when resolving command");e=_.p(x.composedPath());for(F=e.next();!F.done;F=e.next())if(b=F.value,b.tagName==="YT-COPY-LINK-RENDERER")return b.copyUrlToClipboard(),Q&&_.aX(n.JSC$15196_screenManager,Q),l.return();_.yQ(l)})};
Ld[Wl]=[_.nK];var GV=function(){this.JSC$15200_miniAppClientDataProvider=_.P().resolve(_.aq)};
_.S(GV,rI);GV.prototype.resolveCommand=function(){var v=this,E,n;return _.X(function(f){if(v.JSC$15200_miniAppClientDataProvider.clientData.has("video_id")){var x=v.JSC$15200_miniAppClientDataProvider,y=x.clientData.get("video_id");y&&x.clientData.delete("video_id");E="https://youtube.com/watch?v="+y;n=m_(E);if(n===void 0)throw Error("Ai`"+E);_.Kc(window,n)}_.yQ(f)})};var TV=function(){};
_.S(TV,rI);TV.prototype.resolveCommand=function(){return _.X(function(v){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.yQ(v)})};var iA=function(){};
_.S(iA,rI);iA.prototype.resolveCommand=function(){var v;return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.S69(window.document.documentElement),2);(v=document.querySelector("mini-app-container-view-model iframe"))&&v.focus();_.yQ(E)})};var zV=function(v){this.JSC$15207_navigationConfirmationService=v};
_.S(zV,rI);
zV.prototype.resolveCommand=function(){var v=this;return _.X(function(E){var n=v.JSC$15207_navigationConfirmationService,f=_.P().resolve(_.zB),x;if(((x=n.navigateParams)==null?void 0:x.data)!==void 0){var y;_.V4i(f,n.navigateParams.endpoint,n.navigateParams.data,(y=n.navigateParams.navigationType)!=null?y:1,n.navigateParams.tempData,n.navigateParams.isMiniplayer,void 0,!0);n.navigateParams=void 0;n.customConfirmationCommand=void 0}else n.navigateParams&&(f.navigate(n.navigateParams.endpoint,n.navigateParams.reload,
n.navigateParams.params,n.navigateParams.tempData,n.navigateParams.requestType,n.navigateParams.createScreenConfig,!0),n.navigateParams=void 0,n.customConfirmationCommand=void 0);_.yQ(E)})};
zV[Wl]=[E$];var Rm=function(){};
_.S(Rm,rI);Rm.prototype.resolveCommand=function(){return _.X(function(v){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.yQ(v)})};var t2=function(v){this.JSC$15212_prefStorage=v};
_.S(t2,rI);t2.prototype.resolveCommand=function(){var v=this,E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,v.JSC$15212_prefStorage,2);case 2:return(E=f.yieldResult)?_.m(f,E.set("sfvle",!1),3):f.return();case 3:return _.m(f,E.set("sfvles",!0),4);case 4:n=_.Ef(),_.nH(0,203,!1),_.nH(0,204,!0),n.save(),_.yQ(f)}})};
t2[Wl]=[Ne];var BC=function(v){this.JSC$15215_prefStorage=v};
_.S(BC,rI);BC.prototype.resolveCommand=function(){var v=this,E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,v.JSC$15215_prefStorage,2);case 2:return(E=f.yieldResult)?_.m(f,E.set("sfvle",!0),3):f.return();case 3:return _.m(f,E.set("sfvles",!0),4);case 4:n=_.Ef(),_.nH(0,203,!0),_.nH(0,204,!0),n.save(),_.yQ(f)}})};
BC[Wl]=[Ne];var v6=function(){};
_.S(v6,rI);v6.prototype.resolveCommand=function(v){var E;return _.X(function(n){E=_.C(v,m9X);if(!E||typeof E.key!=="string"||typeof E.value!=="string")return n.return();window.localStorage.setItem(E.key,E.value);_.yQ(n)})};var Eg=function(v){this.store=v};
_.S(Eg,rI);Eg.prototype.resolveCommand=function(v){var E=this,n;return _.X(function(f){n=_.C(v,jdE);if(!n||!n.stepId||!n.token)return f.return();E.store.dispatch(vxX({stepId:n.stepId,token:n.token,isSelected:!1}));_.yQ(f)})};
Eg[Wl]=[zo];var nB=function(v,E,n){this.innertubeTransportService=v;this.store=E;this.JSC$15226_screenManager=n};
_.S(nB,rI);
nB.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX,t,QE,MF;return _.X(function(K1){n=_.C(v,sy1);if(!n||(f=n.stepIds)==null||!f.length)return K1.return();x=E.store.getState().talkToRecs;y=[];Q=[];e=_.p(n.stepIds);for(F=e.next();!F.done;F=e.next())for(b=F.value,l=void 0,(r=(l=x.stepStates[b])==null?void 0:l.userQuery)&&Q.push({userQuery:r.userQuery,userQueryToken:r.token}),a=void 0,M=(a=x.stepStates[b])==null?void 0:a.selectionStates,U=_.p(Object.entries(M)),d=
U.next();!d.done;d=U.next())Y=d.value,V=_.p(Y),O=V.next().value,T=V.next().value,L=O,xX=T,xX.isSelected&&y.push(L);t={selectedChipTokens:y,userQueries:Q,submittedStepIds:n.stepIds};QE={browseTalk2recsFormData:t};n.browseEndpoint?(MF=v,_.c8(MF,_.ix,n.browseEndpoint)):n.command&&(MF=n.command);return MF?_.m(K1,_.Mq(E.innertubeTransportService,MF,{formData:QE,disableCache:!0}).then(function(JG){(JG==null?0:JG.trackingParams)&&E.JSC$15226_screenManager.graftServerVe(JG==null?void 0:JG.trackingParams)}),
0):K1.return()})};
nB[Wl]=[_.ok,zo,_.nK];var oJ=function(v){this.store=v};
_.S(oJ,rI);oJ.prototype.resolveCommand=function(v){var E=this,n;return _.X(function(f){n=_.C(v,uCX);if(!n||!n.stepId||!n.token)return f.return();E.store.dispatch(vxX({stepId:n.stepId,token:n.token,isSelected:!0}));_.yQ(f)})};
oJ[Wl]=[zo];var fB=function(v){this.store=v};
_.S(fB,rI);fB.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e;return _.X(function(F){f=_.C(v,rP1);if(!f||!f.stepId||!f.userQueryToken)return F.return();e=(Q=(x=E)==null?void 0:(y=x.form)==null?void 0:y.userQuery)!=null?Q:"";n.store.dispatch(_.un({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:f.stepId,userQueryToken:f.userQueryToken,userQuery:e}}));_.yQ(F)})};
fB[Wl]=[zo];_.DKP=new _.$Y("TIMELY_ACTIONS_CONTROLLER_TOKEN");var xL=function(v){this.controller=v};
_.S(xL,rI);xL.prototype.resolveCommand=function(v){var E=this,n,f,x,y;return _.X(function(Q){n=_.C(v,Oz6);if(!n)return Q.return();f=n;x=f.id;y=f.isVisible;if(x===void 0||y===void 0)return Q.return();var e;(e=E.controller.timelyActionsMap.get(x))==null||e(x,y);_.yQ(Q)})};
xL[Wl]=[_.DKP];var HD1=function(){this.timelyActionsMap=new Map};var c6=function(v){this.JSC$15253_commandHandler=v};
_.S(c6,rI);c6.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q;return _.X(function(e){n=_.C(v,_.LkF);if(!n)return e.return();y=(f=n.item)==null?void 0:(x=f.notificationTextRenderer)==null?void 0:x.successResponseText;if(!y)return e.return();Q=_.hC(y);E.JSC$15253_commandHandler.resolveCommand(Q);_.yQ(e)})};
c6[Wl]=[_.OO];var yA=function(v,E){this.innertubeTransportService=v;this.JSC$15258_playerApiPromise=E};
_.S(yA,rI);
yA.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l;return _.X(function(r){if(r.nextAddress==1)return _.m(r,E.JSC$15258_playerApiPromise,2);n=r.yieldResult;f=n.getOption("captions","track");x=Object.assign({},_.C(v,_.VPo));(Q=(y=n.getVideoData())==null?void 0:y.video_id)?x.externalVideoId=Q:_.Kk(Error("Bi"));if((e=f)==null?0:e.languageCode)x.languageCode=f.languageCode;if((F=f)==null?0:F.kind)x.kind=f.kind;if((b=f)==null?0:b.name)x.name=f.name;l=Object.assign({},v,{getTranscriptEndpoint:x});return _.m(r,
_.Mq(E.innertubeTransportService,l),0)})};
yA[Wl]=[_.ok,_.Nq];var pB=function(){};
_.S(pB,rI);pB.prototype.resolveCommand=function(v){var E,n,f,x,y,Q,e,F;return _.X(function(b){E=_.C(v,Cgl);if((n=E)==null||!n.paramKeyValuePairs)return b.return();f=window.location.href;x=_.p(E.paramKeyValuePairs);for(y=x.next();!y.done;y=x.next())Q=y.value,Q.key&&Q.value&&(e={},f=_.AM(f,(e[Q.key]=Q.value,e)));F=_.P().resolve(_.tz);_.R2(F,f);_.yQ(b)})};var QA=function(v,E){this.JSC$15265_commandHandler=v;this.innertubeTransportService=E};
_.S(QA,rI);
QA.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T;return _.X(function(L){switch(L.nextAddress){case 1:return(y=(f=E)==null?void 0:(x=f.form)==null?void 0:x.element)&&_.gN(y),Q=_.Ef().get("hl"),e="",_.vW(L,2),_.m(L,R91(Q),4);case 4:e=L.yieldResult;_.qp(L,3);break;case 2:return _.cW(L),y&&_.No(y),_.mb(Error("Di"),"ERROR"),L.return();case 3:F=_.C(v,x21);if(!F)return y&&_.No(y),L.return();(r=(b=F.commerceActionConfig)==null?void 0:(l=b.commandLifeCycleConfig)==null?
void 0:l.onStartCommand)&&n.JSC$15265_commandHandler.resolveCommand(r);return _.m(L,_.Mq(n.innertubeTransportService,v,{client_data:{paymentsClientToken:{token:e}}}),5);case 5:(a=L.yieldResult)?(y&&_.No(y),((Y=a)==null?0:Y.command)&&n.JSC$15265_commandHandler.resolveCommand(a.command),(T=(V=F.commerceActionConfig)==null?void 0:(O=V.commandLifeCycleConfig)==null?void 0:O.onSuccessCommand)&&n.JSC$15265_commandHandler.resolveCommand(T)):(y&&_.No(y),_.mb(Error("Ei")),(d=(M=F.commerceActionConfig)==null?
void 0:(U=M.commandLifeCycleConfig)==null?void 0:U.onFailureCommand)&&n.JSC$15265_commandHandler.resolveCommand(d)),_.yQ(L)}})};
QA[Wl]=[_.OO,_.ok];var X8=function(v,E,n){this.store=v;this.JSC$15281_commandHandler=E;this.innertubeTransportService=n};
_.S(X8,rI);
X8.prototype.resolveCommand=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r;return _.X(function(a){f=_.C(v,c1F);x=f.googlePaymentPayload;f.onStartCommand&&n.JSC$15281_commandHandler.resolveCommand(f.onStartCommand);y=x.encryptedPurchaseParams;Q=x.ypcLogWalletAnalyticDataEndpoint;e=f.serializedTransactionFlowLoggingParams;F=x.serializedPaymentsClientParams;b=f.ypcCujContext;r=v1X(n.innertubeTransportService,(l=E)==null?void 0:l.form,y,Q,e,F,b);return a.return(r.then(function(M){t_N(E==null?void 0:E.form,
!1);var U=n.store,d=n.JSC$15281_commandHandler,Y=M.integratorData;Y==null||Y===""||M.error!=null?(String(M.error)==="-1"&&f.onDismissCommand?d.resolveCommand(f.onDismissCommand):String(M.error)!=="-1"&&f.onFailureCommand&&d.resolveCommand(f.onFailureCommand),String(M.error)!=="-1"&&String(M.error)!=="132"&&_.mb(Error("Fi"),"ERROR")):(f.googlePaymentEntityKey&&U.dispatch(_.n7("commerceAcquisitionClientPayloadEntity",f.googlePaymentEntityKey,{key:f.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:Y,
fundsGuaranteeCallbackClientData:M.integratorClientCallbackData}}})),f.onSuccessCommand&&d.resolveCommand(f.onSuccessCommand));_.Gn()},function(M){t_N(E==null?void 0:E.form,!1);
_.mb(M,"ERROR");f.onFailureCommand&&n.JSC$15281_commandHandler.resolveCommand(f.onFailureCommand)}))})};
X8[Wl]=[fe,_.OO,_.ok];var ex=function(v,E){this.JSC$15285_commandHandler=v;this.purchaseManager=E};
_.S(ex,rI);
ex.prototype.resolveCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l;return _.X(function(r){n=_.C(v,y11);((f=n)==null?0:(x=f.commandLifeCycleConfig)==null?0:x.onStartCommand)&&E.JSC$15285_commandHandler.resolveCommand(n.commandLifeCycleConfig.onStartCommand);if(!((y=n)==null?0:(Q=y.googlePaymentPurchaseManagerPayload)==null?0:Q.securePayloadBytes))return _.mb(Error("Gi"),"ERROR"),r.return();e=DDU(_.w1(n.googlePaymentPurchaseManagerPayload.securePayloadBytes));F=_.Ef().get("hl");b=_.Sw();Tbi(e.serialize(),
F,function(a){b.resolve(a)},function(a){b.reject(a)},b.resolve);
l=b.promise;return r.return(l.then(function(a){if(a)if(a==null?0:a.errorCode){_.mb(Error("Hi`"+a.errorCode),"ERROR");var M,U;((M=n)==null?0:(U=M.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&E.JSC$15285_commandHandler.resolveCommand(n.commandLifeCycleConfig.onFailureCommand)}else if(a==null?0:a.isCancelled){var d,Y;((d=n)==null?0:(Y=d.commandLifeCycleConfig)==null?0:Y.onCancelCommand)&&E.JSC$15285_commandHandler.resolveCommand(n.commandLifeCycleConfig.onCancelCommand)}else{var V,O;((V=n)==
null?0:(O=V.commandLifeCycleConfig)==null?0:O.onSuccessCommand)&&E.JSC$15285_commandHandler.resolveCommand(n.commandLifeCycleConfig.onSuccessCommand)}},function(a){_.mb(a,"ERROR");
var M,U;((M=n)==null?0:(U=M.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&E.JSC$15285_commandHandler.resolveCommand(n.commandLifeCycleConfig.onFailureCommand)}))})};
ex[Wl]=[_.OO,iFo];var gG1=function(v,E){this.JSC$15293_commandHandler=v;this.commandAllowlistOverride=E;var n;this.commandAllowlist=(n=this.commandAllowlistOverride)!=null?n:Ud};
gG1.prototype.handleResponse=function(v,E,n){var f,x=E==null?void 0:(f=E.config)==null?void 0:f.command;if(!x||this.commandAllowlist.some(function(y){return!!_.C(x,y)})){E=void 0;
n!==void 0&&(E={form:{element:n}});v.onResponseReceivedCommand&&this.JSC$15293_commandHandler.resolveCommand(v.onResponseReceivedCommand,E);v.onResponseReceivedAction&&this.JSC$15293_commandHandler.resolveCommand(v.onResponseReceivedAction,E);v.onResponseReceivedEndpoint&&this.JSC$15293_commandHandler.resolveCommand(v.onResponseReceivedEndpoint,E);v.command&&this.JSC$15293_commandHandler.resolveCommand(v.command,E);if(v.onResponseReceivedCommands)for(n=_.p(v.onResponseReceivedCommands),f=n.next();!f.done;f=
n.next())this.JSC$15293_commandHandler.resolveCommand(f.value,E);if(v.onResponseReceivedActions)for(n=_.p(v.onResponseReceivedActions),f=n.next();!f.done;f=n.next())this.JSC$15293_commandHandler.resolveCommand(f.value,E);if(v.onResponseReceivedEndpoints)for(n=_.p(v.onResponseReceivedEndpoints),f=n.next();!f.done;f=n.next())this.JSC$15293_commandHandler.resolveCommand(f.value,E);if(v.actions)for(v=_.p(v.actions),n=v.next();!n.done;n=v.next())this.JSC$15293_commandHandler.resolveCommand(n.value,E)}};
gG1[Wl]=[_.OO,_.jp(GhF)];var NX1=new _.$Y("INNERTUBE_TOKEN_SERVICE");var uiP=new _.$Y("SCHEDULER_TOKEN");var j7P=function(v){this.scheduler=v;v={};this.tokenMap=(v.app={},v.user={},v)};
j7P.prototype.handleResponse=function(v,E){if(!E)throw Error("Ii");var n;if(v=(n=v.responseContext)==null?void 0:n.innertubeTokenJar){if(v.appTokens){var f,x,y;n=(f=E.innerTubeRequest.context)==null?void 0:(x=f.request)==null?void 0:(y=x.innertubeTokenJar)==null?void 0:y.appTokens;ODX(this,v.appTokens,this.tokenMap.app,n)}if(v.userTokens){var Q,e,F;E=(Q=E.innerTubeRequest.context)==null?void 0:(e=Q.request)==null?void 0:(F=e.innertubeTokenJar)==null?void 0:F.userTokens;ODX(this,v.userTokens,this.tokenMap.user,
E)}}};
j7P.prototype.processContext=function(v){v.request||(v.request={});var E=Object.keys(this.tokenMap.app).length,n=Object.keys(this.tokenMap.user).length;if(E||n)v.request.innertubeTokenJar={},E&&(v.request.innertubeTokenJar.appTokens=[].concat(_.s8(Object.values(this.tokenMap.app).flat()))),n&&(v.request.innertubeTokenJar.userTokens=[].concat(_.s8(Object.values(this.tokenMap.user).flat())))};
var ODX=function(v,E,n,f){E=_.p(E);for(var x=E.next(),y={};!x.done;y={token$jscomp$137:void 0},x=E.next()){y.token$jscomp$137=x.value;if(y.token$jscomp$137.type===void 0)throw new _.yc("InnerTube token has no type",y.token$jscomp$137);if(y.token$jscomp$137.clearTokens)n[y.token$jscomp$137.type]=[];else if(y.token$jscomp$137.value!==void 0){n[y.token$jscomp$137.type]||(n[y.token$jscomp$137.type]=[]);if(f!==void 0&&f.length){x=_.p(f);for(var Q=x.next(),e={};!Q.done;e={requestToken:void 0},Q=x.next())e.requestToken=
Q.value,Q=n[y.token$jscomp$137.type].findIndex(function(F){return function(b){return b===F.requestToken||(0,_.sh.equals)(b,F.requestToken)}}(e)),Q>-1&&n[y.token$jscomp$137.type].splice(Q,1)}n[y.token$jscomp$137.type].push(y.token$jscomp$137);
y.token$jscomp$137.maxAgeSeconds&&Number(y.token$jscomp$137.maxAgeSeconds)>0&&v.scheduler.addLowPriorityJob(function(F){return function(){var b=n[F.token$jscomp$137.type].indexOf(F.token$jscomp$137);b>-1&&n[F.token$jscomp$137.type].splice(b,1)}}(y),Number(y.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.yc("InnerTube token has no value",y.token$jscomp$137);
}};
j7P[Wl]=[uiP];var kpi=new _.$Y("LOCAL_INNERTUBE_ROUTER_TOKEN"),Wv1=new _.$Y("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var F8=function(v){this.serviceMap=v};
F8.prototype.shouldPreferLocalResponse=function(v,E){return(v=$Kw(this,v))?v.shouldPreferLocalResponse(E):!1};
F8.prototype.localInnertubeResponse=function(v,E){var n=this,f;return _.X(function(x){return(f=$Kw(n,v))?x.return(f.localInnertubeResponse(E)):x.return(Promise.reject(Error("Ji")))})};
F8.prototype.canProvideFallbackResponse=function(v,E){return(v=$Kw(this,v))?v.canProvideFallbackResponse(E):!1};
F8.prototype.localFallbackInnertubeResponse=function(v,E){var n=this,f;return _.X(function(x){return(f=$Kw(n,v))?x.return(f.localFallbackInnertubeResponse(E)):x.return(Promise.reject(Error("Ji")))})};
var $Kw=function(v,E){E=_.R5(E);return E?(v=v.serviceMap[E])?v:null:null};
F8[Wl]=[Wv1];var sy=function(){};
sy.prototype.shouldPreferLocalResponse=function(){return!1};
sy.prototype.localInnertubeResponse=function(){return _.X(function(v){return v.return(Promise.reject(Error("Ki")))})};
sy.prototype.canProvideFallbackResponse=function(){return!0};
sy.prototype.localFallbackInnertubeResponse=function(){var v,E,n;return _.X(function(f){v=bT("CLOSE_POPUP");E={openPopupAction:n1I()};n={actions:[v,E]};return f.return(n)})};var Iis=function(v,E){this.JSC$15343_upliftPromise=v;this.store=E};
_.c=Iis.prototype;_.c.shouldPreferLocalResponse=function(v){var E=v.videoId,n;if(n=E)n=bML(this.store.getState().entities,v.videoId);return n&&GtF(this.store.getState().entities,E)?fPy(this.store.getState().entities,v.playlistId):!1};
_.c.localInnertubeResponse=function(v){var E=this,n;return _.X(function(f){return(n=E.getPlayerResponse(v))?f.return(Promise.resolve(n)):f.return(Promise.reject(Error("Li")))})};
_.c.canProvideFallbackResponse=function(v){return!!v.videoId};
_.c.localFallbackInnertubeResponse=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.JSC$15343_upliftPromise,2);n=E.getPlayerResponse(v);var x;n?x=f.return(Promise.resolve(n)):x=xt(E.store.getState().entities,v.videoId)?f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.HR(_.tQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:BUL()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.HR(_.tQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:teI()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return x})};
_.c.getPlayerResponse=function(v){return PME(this.store.getState().entities,v.videoId)};var l9=function(v,E){this.localPlayerService=v;this.localWatchNextService=E};
l9.prototype.shouldPreferLocalResponse=function(v){var E=v.playerRequest;v=v.watchNextRequest;return!!(E&&this.localPlayerService.shouldPreferLocalResponse(E)&&v&&this.localWatchNextService.shouldPreferLocalResponse(v))};
l9.prototype.localInnertubeResponse=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){n=v.playerRequest;f=v.watchNextRequest;if(!n||!f)throw new _.yc("Missing streaming request",v);return _.m(Q,E.localPlayerService.localInnertubeResponse(n),2)}if(Q.nextAddress!=3)return x=Q.yieldResult,_.m(Q,E.localWatchNextService.localInnertubeResponse(f),3);y=Q.yieldResult;return Q.return({playerResponse:x,watchNextResponse:y})})};
l9.prototype.canProvideFallbackResponse=function(v){var E=v.playerRequest;v=v.watchNextRequest;return!!(E&&this.localPlayerService.canProvideFallbackResponse(E)&&v&&this.localWatchNextService.canProvideFallbackResponse(v))};
l9.prototype.localFallbackInnertubeResponse=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return n=v.playerRequest,f=v.watchNextRequest,n&&f?_.m(Q,E.localPlayerService.localFallbackInnertubeResponse(n),2):Q.return(Promise.reject(new _.yc("Missing streaming request",v)));if(Q.nextAddress!=3)return x=Q.yieldResult,_.m(Q,E.localWatchNextService.localFallbackInnertubeResponse(f),3);y=Q.yieldResult;return Q.return({playerResponse:x,watchNextResponse:y})})};var mn=function(v){this.JSC$15353_persistentStorePromiseAccessor=v};
mn.prototype.shouldPreferLocalResponse=function(){return!1};
mn.prototype.localInnertubeResponse=function(){return _.X(function(v){return v.return(Promise.reject(Error("Mi")))})};
mn.prototype.canProvideFallbackResponse=function(){return!0};
mn.prototype.localFallbackInnertubeResponse=function(){var v=this,E,n;return _.X(function(f){return f.nextAddress==1?_.m(f,v.JSC$15353_persistentStorePromiseAccessor(),2):f.nextAddress!=3?(E=f.yieldResult)?_.m(f,E.get("service:guide:fallback"),3):f.return(Promise.reject(Error("Ni"))):(n=f.yieldResult)&&_.ne(n)?f.return(x5L(_.ne(n))):f.return(Promise.reject(Error("Oi")))})};var rw=function(){};
rw.prototype.shouldPreferLocalResponse=function(){return!1};
rw.prototype.localInnertubeResponse=function(){return _.X(function(v){return v.return(Promise.reject(Error("Pi")))})};
rw.prototype.canProvideFallbackResponse=function(){return!0};
rw.prototype.localFallbackInnertubeResponse=function(){var v,E,n;return _.X(function(f){v=bT("CLOSE_POPUP");E={openPopupAction:n1I()};n={actions:[v,E]};return f.return(n)})};var Fh=function(){this.urlMap=Lv4;this.fallbackCommand=_.cg};
Fh.prototype.shouldPreferLocalResponse=function(v){return(v=v.url)?!!GpS(this,v):!1};
Fh.prototype.localInnertubeResponse=function(v){var E=this,n;return _.X(function(f){return(n=v.url)?f.return(TX4(v,GpS(E,n))):f.return(Promise.reject(Error("Qi")))})};
Fh.prototype.canProvideFallbackResponse=function(){return!0};
Fh.prototype.localFallbackInnertubeResponse=function(v){var E=this,n,f,x,y,Q,e,F;return _.X(function(b){n=v.url;if(!n)return b.return(TX4(v,E.fallbackCommand));if(f=GpS(E,n))return b.return(TX4(v,f));x=void 0;y=_.R5(n);y==="/watch"&&(Q=_.SC(n,"v"))&&(F=(e=_.SC(n,"list"))!=null?e:void 0,x=_.DI(Q,F));x||(x=E.fallbackCommand);return b.return(TX4(v,x))})};
var GpS=function(v,E){if(E)return v.urlMap[_.SK(E)]},TX4=function(v,E){E&&v.parentTrackingParams&&(E.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:v.parentTrackingParams}},E.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:E})};var ww=function(v,E,n){this.JSC$15363_upliftPromise=v;this.store=E;this.JSC$15363_persistentStorePromiseAccessor=n};
ww.prototype.shouldPreferLocalResponse=function(){return!1};
ww.prototype.localInnertubeResponse=function(){return _.X(function(v){return v.return(Promise.reject(Error("Ri")))})};
ww.prototype.canProvideFallbackResponse=function(){return!0};
ww.prototype.localFallbackInnertubeResponse=function(){var v=this;return _.X(function(E){return E.return(iDg(v))})};
var iDg=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,Ey(v.JSC$15363_upliftPromise,v.store),2);E=f.yieldResult;n={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[o1E(E)]}}}};return f.return(z3l(v,n))})},z3l=function(v,E){var n,f;
return _.X(function(x){if(x.nextAddress==1)return _.m(x,v.JSC$15363_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return n=x.yieldResult,_.m(x,or(n),3);f=x.yieldResult;return x.return({responseContext:{},contents:E,topbar:f})})};var Xh=function(v,E,n){this.JSC$15370_upliftPromise=v;this.store=E;this.JSC$15370_persistentStorePromiseAccessor=n};
Xh.prototype.shouldPreferLocalResponse=function(v){var E=v.videoId;return E&&bML(this.store.getState().entities,E)&&GtF(this.store.getState().entities,E)?fPy(this.store.getState().entities,v.playlistId):!1};
Xh.prototype.localInnertubeResponse=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return(n=v.videoId)?_.m(x,E.JSC$15370_upliftPromise,2):x.return(Promise.reject(Error("Si")));if(x.nextAddress!=3)return _.m(x,R3S(E,v,n),3);f=x.yieldResult;return x.return(tlz(E,f,n))})};
Xh.prototype.canProvideFallbackResponse=function(v){return v.videoId?!0:!1};
Xh.prototype.localFallbackInnertubeResponse=function(v){var E=this,n,f,x,y;return _.X(function(Q){switch(Q.nextAddress){case 1:return(n=v.videoId)?_.m(Q,E.JSC$15370_upliftPromise,2):Q.return(Promise.reject(Error("Si")));case 2:return _.m(Q,R3S(E,v,n),3);case 3:f=Q.yieldResult;if(xt(E.store.getState().entities,n)){Q.jumpTo(4);break}return _.m(Q,Ey(E.JSC$15370_upliftPromise,E.store),5);case 5:return x=Q.yieldResult,Q.return(BXl(f,x));case 4:return bML(E.store.getState().entities,n)&&GtF(E.store.getState().entities,
n)?Q.return(tlz(E,f,n)):(y={title:_.HR(_.tQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:BUL()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Q.return(BXl(f,y)))}})};
var R3S=function(v,E,n){var f,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1)return f=E.playlistId,x=_.DI(n,f),_.m(F,v.JSC$15370_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return y=F.yieldResult,_.m(F,or(y),3);Q=F.yieldResult;e={responseContext:{},currentVideoEndpoint:x,topbar:Q};return F.return(e)})},tlz=function(v,E,n){if(v=xt(v.store.getState().entities,n)){var f;
n=v.videoEntity;var x,y={title:gj(n.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Nx((f=n.localizedStrings)==null?void 0:f.viewCount),viewCount:_.Nx((x=n.localizedStrings)==null?void 0:x.viewCount)}}};n.publishedTimestampMillis&&(y.dateText=_.Nx(yhG(new Date(Number(n.publishedTimestampMillis)))));f={videoPrimaryInfoRenderer:y};x=v.videoEntity;v=v.channelEntity;v={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:gj(_.tQ("SHOW_MORE",void 0,"Show more")),
showLessText:gj(_.tQ("SHOW_LESS",void 0,"Show less")),description:x.formattedDescription,owner:{videoOwnerRenderer:{title:gj(v.title),thumbnail:v.avatar}}}};E.contents={twoColumnWatchNextResults:{results:{results:{contents:[f,v]}}}}}return E},BXl=function(v,E){v.contents={singleColumnWatchNextResults:{results:{results:{contents:[o1E(E)]}}}};
return v};var b9=function(v,E,n){this.JSC$15376_upliftPromise=v;this.store=E;this.JSC$15376_persistentStorePromiseAccessor=n};
b9.prototype.shouldPreferLocalResponse=function(){return!1};
b9.prototype.localInnertubeResponse=function(){return _.X(function(v){return v.return(Promise.reject(Error("Ti")))})};
b9.prototype.canProvideFallbackResponse=function(){return!0};
b9.prototype.localFallbackInnertubeResponse=function(){var v=this,E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return _.m(y,v.JSC$15376_persistentStorePromiseAccessor(),2);case 2:return E=y.yieldResult,_.m(y,or(E),3);case 3:return n=y.yieldResult,f={responseContext:{},topbar:n},_.m(y,v.JSC$15376_upliftPromise,4);case 4:return _.m(y,Ey(v.JSC$15376_upliftPromise,v.store),5);case 5:return x=y.yieldResult,f.watchStatus={backgroundPromoRenderer:x},y.return(f)}})};var vX6=new _.$Y("ENDPOINT_MAP");var EXd=function(){var v=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return v.sequenceMap}}},VBP=function(v,E,n){var f,x=(f=E.config)==null?void 0:f.sequenceStrategy;
if(!x)return n();v.sequenceMap.has(x.sequenceKey)||v.sequenceMap.set(x.sequenceKey,[]);v=v.sequenceMap.get(x.sequenceKey);switch(x.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return nXO(v,E,n);case "REQUEST_SEQUENCE_TYPE_REPLACE":return oXd(v,E,n);default:throw new _.yc("Request could not be sequenced",E);}},nXO=function(v,E,n){var f,x,y;
return _.X(function(Q){v.length>0?(x=v[v.length-1],f=x.responsePromise.then(function(){return n()})):f=n();
y={request:E,responsePromise:f};v.push(y);fA0(v,y);return Q.return(y.responsePromise)})},oXd=function(v,E,n){n=n();
if(v.length>0)for(var f=_.p(v),x=f.next();!x.done;x=f.next())x.value.responsePromise=n;var y={request:E,responsePromise:n};v.push(y);fA0(v,y);return Promise.resolve().then(function(){return v.indexOf(y)>0?y.responsePromise.then(function(Q){return Object.assign({},Q,{sequenceMetaData:{skipProcessing:!0}})}):y.responsePromise})},fA0=function(v,E){E.responsePromise.then(function(){var n=v.indexOf(E);
n>-1&&v.splice(n,1)})};var xFC=new _.$Y("REQUEST_SEQUENCING");var mm=function(){};
_.S(mm,wo);mm.prototype.getApiPaths=function(){return[]};
mm.prototype.getExtension=function(v){return _.C(v,g8o)};
mm.prototype.JSC$11790_buildRequest=function(v,E){v.recaptchaToken=E.recaptchaToken};
mm.prototype.getApiUrl=function(){return"/das_captcha"};var w4=function(){};
_.S(w4,wo);w4.prototype.getApiPaths=function(){return fv6};
w4.prototype.getExtension=function(v){return _.C(v,FeX)};
w4.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.createBackstagePostParams&&(v.createBackstagePostParams=E.createBackstagePostParams);n.comment_text&&(v.commentText=n.comment_text);if(n.attached_video_id)v.videoAttachment={videoId:n.attached_video_id};else if(n.image_poll_options)v.pollAttachmentData={options:n.image_poll_options};else if(n.poll_options)v.pollAttachment={choices:n.poll_options};else if(n.quiz_options)v.quizAttachmentData={options:n.quiz_options};else if(n.image_blob_id)v.imageAttachment=
{encryptedBlobId:n.image_blob_id},n.source_video_id&&(v.imageAttachment.sourceExternalVideoId=n.source_video_id),n.image_preview_coordinates&&(v.imageAttachment.previewCoordinates=JSON.parse(n.image_preview_coordinates));else if(n.images_data)v.imagesAttachment={imagesData:n.images_data};else if(n.clip_external_video_id!==void 0||n.clip_offset_ms!==void 0||n.clip_duration_ms!==void 0){var f,x,y,Q,e;v.clipAttachment={externalVideoId:(y=n.clip_external_video_id)!=null?y:"",offsetMs:(Q=(f=n.clip_offset_ms)==
null?void 0:f.toString())!=null?Q:"",durationMs:(e=(x=n.clip_duration_ms)==null?void 0:x.toString())!=null?e:""}}else n.shared_post_id&&(v.sharedPostAttachment={postId:n.shared_post_id});n.tagged_video_id&&(v.postCreationData={taggedVideoId:n.tagged_video_id});n.access_restrictions&&(typeof n.access_restrictions==="number"&&(E=n.access_restrictions,v.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof n.access_restrictions==="string"&&
(v.accessRestrictionsParams=n.access_restrictions));n.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=n.scheduled_publish_time_sec.toString())};var b0=function(){};
_.S(b0,wo);b0.prototype.getApiPaths=function(){return ez1};
b0.prototype.getExtension=function(v){return _.C(v,bM1)};
b0.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.decorateMessageParams&&(v.params=E.decorateMessageParams);n.text&&(v.text=n.text)};var l0=function(){};
_.S(l0,wo);l0.prototype.getApiPaths=function(){return Yp1};
l0.prototype.getExtension=function(v){return _.C(v,mmo)};
l0.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;n.video_id&&(v.videoId=n.video_id)};var sg=function(){};
_.S(sg,wo);sg.prototype.getApiPaths=function(){return gMX};
sg.prototype.getExtension=function(v){return _.C(v,_.zn)};
sg.prototype.JSC$11790_buildRequest=function(v,E,n){n.suggestions_query&&(v.input=n.suggestions_query)};var r4=function(){};
_.S(r4,wo);r4.prototype.getApiPaths=function(){return l71};
r4.prototype.getExtension=function(v){return _.C(v,wMg)};
r4.prototype.JSC$11790_buildRequest=function(v,E,n){n.comment_text!==void 0&&(v.commentText=n.comment_text);n.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=n.scheduled_publish_time_sec.toString());v.updateBackstagePostParams=E.updateBackstagePostParams};var P6=function(){};
_.S(P6,wo);P6.prototype.getApiPaths=function(){return Tk};
P6.prototype.getExtension=function(v){return _.C(v,_.bG)};
P6.prototype.JSC$11790_buildRequest=function(v,E,n){n.formData&&(v.formData=n.formData);E.token?v.continuation=E.token:E.continuationTokenKey&&(n=_.dG().getState(),E=_.LH(n.entities,"continuationTokenEntity",E.continuationTokenKey))&&(v.continuation=String(E.continuationToken))};
var cGK=function(){};
_.S(cGK,wo);_.c=cGK.prototype;_.c.getApiPaths=function(){return Tk};
_.c.getExtension=function(v){return _.C(v,_.ix)};
_.c.isNavigationCommand=function(){return!0};
_.c.JSC$11797_getStoreKey=function(v){if((v=this.getExtension(v))&&v.browseId){var E={browseId:v.browseId};v.browseEndpointContextSupportedConfigs&&(E.browseEndpointContextSupportedConfigs=JSON.stringify(v.browseEndpointContextSupportedConfigs));v.params&&(E.params=v.params);v.query&&(E.query=v.query);return _.KG("browse",E)}};
_.c.JSC$11790_buildRequest=function(v,E,n){E.browseId&&(v.browseId=E.browseId);E.params&&(v.params=E.params);E.query&&(v.query=E.query);n.formData?v.formData=n.formData:E.formData&&(v.formData=E.formData);E.browseId==="FEsubscriptions"&&_.Ef().getFlag(155)&&(v.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");E.browseId==="SPaccount_playback"&&(n=_.Ef(),v.formData||(v.formData={}),v.formData.accountSettingsFormData={flagCaptionsDefaultOff:n.getFlag(65),flagAutoCaptionsDefaultOn:n.getFlag(66),
flagDisableInlinePreview:n.getFlag(186),flagAudioDescriptionDefaultOn:n.getFlag(198)});if(E.browseId==="FEwhat_to_watch"){n=_.Ef();var f=n.getFlag(196);n.getFlag(197)&&(v.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:f}}})}E.browseId==="FEwhat_to_watch"&&(E=_.Ef().getFlag(186),v.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.c.getRequestConfig=function(v,E){E=E===void 0?{}:E;var n={};if(v=this.JSC$11797_getStoreKey(v,E))n.storeStrategy={storeKey:v,disableCache:E.disableCache};_.Z("web_log_browse_ticks_ks")||(n.requestTick="br_s",n.responseTick="br_r");return n};var aJ=function(){};
_.S(aJ,wo);aJ.prototype.getApiPaths=function(){return tV4};
aJ.prototype.getExtension=function(v){return _.C(v,YoF)};
aJ.prototype.JSC$11790_buildRequest=function(v,E,n){v.legacyYoutubeChannelUsername=n.legacyYouTubeChannelUsername||"";v.legacyYoutubeChannelPassword=n.legacyYouTubeChannelPassword||""};var ZH=function(){};
_.S(ZH,wo);ZH.prototype.getApiPaths=function(){return czX};
ZH.prototype.getExtension=function(v){return _.C(v,CyU)};
ZH.prototype.JSC$11790_buildRequest=function(v,E,n){n.recaptcha_response_token&&(v.recaptchaResponseToken=n.recaptcha_response_token);n.channel_id&&(v.channelId=n.channel_id)};var CB=function(){};
_.S(CB,wo);CB.prototype.getApiPaths=function(){return s21};
CB.prototype.getExtension=function(v){return _.C(v,KeF)};
CB.prototype.JSC$11790_buildRequest=function(v,E,n){E.externalChannelId&&(v.externalChannelId=E.externalChannelId);n.handle&&(v.handleUpdate={handle:n.handle},E.handleEditSource&&(v.handleUpdate.handleEditSource=E.handleEditSource))};var MY=function(){};
_.S(MY,wo);MY.prototype.getApiPaths=function(){return Z4X};
MY.prototype.getExtension=function(v){return _.C(v,kNP)};
MY.prototype.JSC$11790_buildRequest=function(v,E,n){E.request&&(v.channelId=E.request.channelId);var f;if(n==null?0:(f=n.uploadDefaults)==null?0:f.emojiReactionSet)v.uploadDefaultsRequest||(v.uploadDefaultsRequest={}),v.uploadDefaultsRequest.emojiReactionSet=n.uploadDefaults.emojiReactionSet};var Sx=function(){};
_.S(Sx,wo);Sx.prototype.getApiPaths=function(){return Sq4};
Sx.prototype.getExtension=function(v){return _.C(v,Mri)};
Sx.prototype.JSC$11790_buildRequest=function(v,E,n){E.externalChannelId&&(v.externalChannelId=E.externalChannelId);E.channelHandleEntityKey&&(v.channelHandleEntityKey=E.channelHandleEntityKey);E.handleEditSource&&(v.handleEditSource=E.handleEditSource);n.handle?v.handle=n.handle:n.name&&(v.name=n.name)};var Ug=function(){};
_.S(Ug,wo);Ug.prototype.getApiPaths=function(){return EM4};
Ug.prototype.getExtension=function(v){return _.C(v,iMX)};
Ug.prototype.JSC$11790_buildRequest=function(v,E){E.actions?v.actions=E.actions:E.action&&(v.actions=[E.action])};var qY=function(){};
_.S(qY,wo);qY.prototype.getApiPaths=function(){return nM1};
qY.prototype.getExtension=function(v){return _.C(v,_.bG)};
qY.prototype.JSC$11790_buildRequest=function(v,E){E.token&&(v.continuation=E.token)};var Jb=function(){};
_.S(Jb,wo);Jb.prototype.getApiPaths=function(){return d3P};
Jb.prototype.getExtension=function(v){return _.C(v,_.bG)};
Jb.prototype.JSC$11790_buildRequest=function(v,E){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";E.token&&(v.fetchCommentsParams={continuation:E.token})};var KB=function(){};
_.S(KB,wo);KB.prototype.getApiPaths=function(){return ydS};
KB.prototype.getExtension=function(v){return _.C(v,T7S)};
KB.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.createReplyParams&&(v.createReplyParams=E.createReplyParams);E.commentText&&(v.commentText=_.JC(E.commentText));n.comment_text&&(v.commentText=n.comment_text);n.image_blob_id&&(v.imageAttachment={encryptedBlobId:n.image_blob_id});n.botguard_response&&(v.botguardResponse=n.botguard_response)};
_.hK.Object.defineProperties(KB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var d4=function(){};
_.S(d4,wo);d4.prototype.getApiPaths=function(){return pm1};
d4.prototype.getExtension=function(v){return _.C(v,_.Gti)};
d4.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.createCommentParams&&(v.createCommentParams=E.createCommentParams);E.commentText&&(v.commentText=_.JC(E.commentText));E.videoPositionMention&&(v.videoPositionMention=E.videoPositionMention);E.sources&&(v.sources=E.sources);n.comment_text&&(v.commentText=n.comment_text);n.attached_video_id?v.videoAttachment={videoId:n.attached_video_id}:n.poll_options?v.pollAttachment={choices:n.poll_options}:n.image_blob_id?v.imageAttachment=
{encryptedBlobId:n.image_blob_id}:n.shared_post_id&&(v.sharedPostAttachment={postId:n.shared_post_id});n.access_restrictions&&typeof n.access_restrictions==="number"&&(E=n.access_restrictions,v.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});n.botguard_response&&(v.botguardResponse=n.botguard_response)};
_.hK.Object.defineProperties(d4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IJ=function(){};
_.S(IJ,wo);IJ.prototype.getApiPaths=function(){return rz1};
IJ.prototype.getExtension=function(v){return _.C(v,RAg)};
IJ.prototype.JSC$11790_buildRequest=function(v,E,n){E.commentText&&(v.replyText=_.JC(E.commentText));n.comment_text&&(v.replyText=n.comment_text);v.updateReplyParams=E.updateReplyParams};
_.hK.Object.defineProperties(IJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YL=function(){};
_.S(YL,wo);YL.prototype.getApiPaths=function(){return PRS};
YL.prototype.getExtension=function(v){return _.C(v,zAw)};
YL.prototype.JSC$11790_buildRequest=function(v,E,n){E.commentText&&(v.commentText=_.JC(E.commentText));n.comment_text&&(v.commentText=n.comment_text);v.updateCommentParams=E.updateCommentParams};
_.hK.Object.defineProperties(YL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hb=function(){};
_.S(hb,wo);hb.prototype.getApiPaths=function(){return a7l};
hb.prototype.getExtension=function(v){return _.C(v,NxX)};
hb.prototype.JSC$11790_buildRequest=function(v,E){E.settings&&(v.settings=E.settings)};var Ab=function(){};
_.S(Ab,wo);Ab.prototype.getApiPaths=function(){return CJ6};
Ab.prototype.getExtension=function(v){return _.C(v,SP4)};
Ab.prototype.JSC$11790_buildRequest=function(v,E){E.channelCreationToken&&(v.channelCreationToken=E.channelCreationToken);E.source&&(v.source=E.source)};var VA=function(){};
_.S(VA,wo);VA.prototype.getApiPaths=function(){return cdX};
VA.prototype.getExtension=function(v){return _.C(v,JP4)};
VA.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;if(n.name&&(n.given_name||n.family_name))v=new _.yc("channel creation cannot set both GAIA and YouTube names",E),_.mb(v);else{if(E.zeroStepChannelCreationParams){if(!n.comment_text){v=new _.yc("zero_step_create_comment_params but no zero_step_texts",E);_.mb(v);return}v.zeroStepChannelCreationParams=E.zeroStepChannelCreationParams;v.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
n.comment_text,n.botguard_response&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=n.botguard_response))}v.channelCreationToken=E.channelCreationToken;n.given_name&&(v.givenName=n.given_name);n.family_name&&(v.familyName=n.family_name);E.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(v.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(n.name||n.handle||n.avatar_url||n.encryptedBlobId||n.isNameChanged!==void 0||n.isHandleChanged!==void 0||n.isDefaultProfilePhoto!==
void 0||n.obakeImageSource)v.overrideChannelCreationParams={},n.name&&(v.overrideChannelCreationParams.name=n.name),n.handle&&(v.overrideChannelCreationParams.handle=n.handle),n.avatar_url&&(v.overrideChannelCreationParams.avatarUrl=n.avatar_url),n.encryptedBlobId&&(v.overrideChannelCreationParams.blobEncryptionId=n.encryptedBlobId),n.enableIdentityForAllChannelCreationDialog&&(n.encryptedBlobId?v.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
n.isDefaultProfilePhoto!==void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=n.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),n.isNameChanged!==void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationNameTag=n.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),n.isHandleChanged!==
void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=n.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),n.obakeImageSource&&(v.overrideChannelCreationParams.obakeImageSourceType=n.obakeImageSource))}};var DH=function(){};
_.S(DH,wo);DH.prototype.getApiPaths=function(v){return(v=this.getExtension(v))&&v.status==="DISLIKE"?bKU:v&&v.status==="INDIFFERENT"?EQ4:kv4};
DH.prototype.getExtension=function(v){return _.C(v,_.DE)};
DH.prototype.JSC$11790_buildRequest=function(v,E){E.target&&(v.target=E.target);if(E=this.getParams(E))v.params=E};
DH.prototype.getParams=function(v){switch(v==null?void 0:v.status){case "DISLIKE":return v.dislikeParams;case "INDIFFERENT":return v.removeLikeParams;default:return v==null?void 0:v.likeParams}};var H6=function(){};
_.S(H6,wo);H6.prototype.getApiPaths=function(){return eGX};
H6.prototype.getExtension=function(v){return _.C(v,yh6)};
H6.prototype.JSC$11790_buildRequest=function(v,E){E.settingItemId&&(v.settingItemId=E.settingItemId);E.stringValue!=null&&E.stringValue!==void 0?v.newValue={stringValue:E.stringValue}:E.intValue?v.newValue={intValue:E.intValue}:E.boolValue!==null&&E.boolValue!==void 0?v.newValue={boolValue:E.boolValue}:(v=new _.yc("Unknown value type for SetSettingEndpoint.",E),_.mb(v))};var g4=function(){};
_.S(g4,wo);g4.prototype.getApiPaths=function(){return mjl};
g4.prototype.getExtension=function(v){return _.C(v,Sl4)||void 0};
g4.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.channelIds&&(v.channelIds=E.channelIds);E.siloName&&(v.siloName=E.siloName);E.params&&(v.params=E.params);n.botguardResponse&&(v.botguardResponse=n.botguardResponse);n.feature&&(v.clientFeature=n.feature)};
_.hK.Object.defineProperties(g4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NY=function(){};
_.S(NY,wo);NY.prototype.getApiPaths=function(){return b4l};
NY.prototype.getExtension=function(v){return _.C(v,pgF)||void 0};
NY.prototype.JSC$11790_buildRequest=function(v,E){E.channelIds&&(v.channelIds=E.channelIds);E.siloName&&(v.siloName=E.siloName);E.params&&(v.params=E.params)};
_.hK.Object.defineProperties(NY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u0=function(v){this.shareClientParamsProvider=v};
_.S(u0,wo);u0.prototype.getApiPaths=function(){return Ado};
u0.prototype.getExtension=function(v){return _.C(v,hMi)||_.C(v,_.ATU)||_.C(v,YGw)};
u0.prototype.JSC$11790_buildRequest=function(v,E){E.serializedShareEntity&&(v.serializedSharedEntity=E.serializedShareEntity);if(E.clientParamIdentifier){var n;if((n=this.shareClientParamsProvider)==null?0:n.clientParams.has(E.clientParamIdentifier)){n=this.shareClientParamsProvider;E=E.clientParamIdentifier;var f=n.clientParams.get(E);f&&n.clientParams.delete(E);v.clientParams=f}}};
u0[Wl]=[YiP];var jx=function(){};
_.S(jx,wo);jx.prototype.getApiPaths=function(){return itX};
jx.prototype.getExtension=function(v){return _.C(v,OyU)};
jx.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var Og=function(){};
_.S(Og,wo);Og.prototype.getApiPaths=function(){return lv1};
Og.prototype.getExtension=function(v){return _.C(v,Nkg)};
Og.prototype.JSC$11790_buildRequest=function(v,E){E.dismissal&&(v.items=[E.dismissal])};
_.hK.Object.defineProperties(Og.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kL=function(){};
_.S(kL,wo);kL.prototype.getApiPaths=function(){return jf1};
kL.prototype.getExtension=function(v){return _.C(v,_.qI)||void 0};
kL.prototype.JSC$11790_buildRequest=function(v,E,n){v.feedbackTokens=[];E.feedbackToken&&v.feedbackTokens.push(E.feedbackToken);if(E=E.cpn||n.cpn)v.feedbackContext={cpn:E};v.isFeedbackTokenUnencrypted=!!n.is_feedback_token_unencrypted;v.shouldMerge=!1;n.extra_feedback_tokens&&(v.shouldMerge=!0,v.feedbackTokens=v.feedbackTokens.concat(n.extra_feedback_tokens))};
_.hK.Object.defineProperties(kL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var W6=function(){};
_.S(W6,wo);W6.prototype.getApiPaths=function(){return jf1};
W6.prototype.getExtension=function(v){return _.C(v,_.zn)};
W6.prototype.JSC$11790_buildRequest=function(v,E,n){n.feedback_tokens&&(v.feedbackTokens=n.feedback_tokens,v.shouldMerge=!0)};
_.hK.Object.defineProperties(W6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $L=function(){};
_.S($L,wo);$L.prototype.getApiPaths=function(){return jf1};
$L.prototype.getExtension=function(v){return _.C(v,Of1)};
$L.prototype.JSC$11790_buildRequest=function(v,E){E.undoToken&&(v.feedbackTokens=[E.undoToken]);E.isUndoTokenUnencrypted&&(v.isFeedbackTokenUnencrypted=E.isUndoTokenUnencrypted)};
_.hK.Object.defineProperties($L.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LB=function(){};
_.S(LB,wo);LB.prototype.getApiPaths=function(){return Uj1};
LB.prototype.getExtension=function(v){return _.C(v,D91)};
LB.prototype.JSC$11790_buildRequest=function(v,E){E.nextEndpoint&&_.C(E.nextEndpoint,_.Us)?v.nextEndpoint={urlEndpoint:_.C(E.nextEndpoint,_.Us)}:E.nextEndpoint&&_.C(E.nextEndpoint,_.dM)&&(v.nextEndpoint={watchEndpoint:_.C(E.nextEndpoint,_.dM)});E.setRacy&&(v.setRacy=E.setRacy);E.setControvercy&&(v.setControvercy=E.setControvercy)};var Gh=function(v){this.JSC$15558_storeWithEntities=v};
_.S(Gh,wo);Gh.prototype.getApiPaths=function(){return rd1};
Gh.prototype.getExtension=function(v){return _.C(v,ctU)};
Gh.prototype.JSC$11790_buildRequest=function(v,E){E.flowId&&(v.flowId=E.flowId);E.targetId&&(v.targetId=E.targetId);E.continuation&&(v.continuation=E.continuation);var n=E.flowStateEntityKey;if(E.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&n&&this.JSC$15558_storeWithEntities){var f;if(E=(f=this.JSC$15558_storeWithEntities.getState())==null?void 0:f.entities)if(f=_.Of(n).entityType,f=_.LH(E,f,n))v.flowState=f,v.flowStateEntityKey=n}};
_.hK.Object.defineProperties(Gh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Gh[Wl]=[fe];var yGO=function(){};
_.S(yGO,wo);_.c=yGO.prototype;_.c.getApiPaths=function(){return uP1};
_.c.JSC$11797_getStoreKey=function(){return _.KG("guide")};
_.c.getRequestConfig=function(){var v=this.JSC$11797_getStoreKey(),E;v&&(E={storeStrategy:{storeKey:v}});return E};
_.c.isNavigationCommand=function(){return!0};
_.c.getExtension=function(v){return _.C(v,_.zn)};
_.c.JSC$11790_buildRequest=function(v){v.fetchLiveState=!0};var Th=function(){};
_.S(Th,wo);Th.prototype.getApiPaths=function(){return BmP};
Th.prototype.getExtension=function(v){return _.C(v,Wwz)};
Th.prototype.JSC$11790_buildRequest=function(){};var i0=function(){};
_.S(i0,wo);i0.prototype.getApiPaths=function(){return vMg};
i0.prototype.getExtension=function(v){return _.C(v,$h1)};
i0.prototype.JSC$11790_buildRequest=function(){};var zh=function(){};
_.S(zh,wo);zh.prototype.getApiPaths=function(){return Tm1};
zh.prototype.getExtension=function(v){return _.C(v,_.bG)};
zh.prototype.JSC$11790_buildRequest=function(v,E){E.token&&(v.continuation=E.token);var n,f;v==null||(n=v.context)==null||(f=n.user)==null||delete f.onBehalfOfUser};
zh.prototype.getRequestConfig=function(v){var E={},n;if(((n=this.getExtension(v))==null?void 0:n.sessionIndex)!==void 0){var f;E={authStrategy:{sessionIndex:(f=this.getExtension(v))==null?void 0:f.sessionIndex}}}return E};var RJ=function(){};
_.S(RJ,wo);RJ.prototype.JSC$11790_getRequest=function(v){var E=this.getExtension(v),n=v="";if(E==null?0:E.popup)v="true";if(E==null?0:E.disableSignout)n="true";E={};return{input:"/getAccountSwitcherEndpoint",requestShell:JQ("/getAccountSwitcherEndpoint","GET",(E["X-YouTube-Delegation-Context"]=_.MX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),E["X-YouTube-Account-Switcher-Popup"]=v,E["X-YouTube-Account-Switcher-Disable-Signout"]=n,E)),innerTubeRequest:{}}};
RJ.prototype.getApiPaths=function(){return[]};
RJ.prototype.getExtension=function(v){return _.C(v,_.khX)};
RJ.prototype.JSC$11790_buildRequest=function(){};var tb=function(){};
_.S(tb,wo);tb.prototype.JSC$11790_getRequest=function(v){var E="/cross_account_channel_transfer";(v=this.getExtension(v))&&(E=ImF(E,{target_session:v.targetSessionIndex,source_rapt:v.sourceRapt,rapt:v.targetRapt}));return{input:E,requestShell:JQ(E,"GET"),innerTubeRequest:{}}};
tb.prototype.getApiPaths=function(){return[]};
tb.prototype.getExtension=function(v){return _.C(v,Wkl)};
tb.prototype.JSC$11790_buildRequest=function(){};var B6=function(){};
_.S(B6,wo);B6.prototype.getApiPaths=function(){return PJ4};
B6.prototype.isNavigationCommand=function(){return!0};
B6.prototype.getExtension=function(v){return _.C(v,_.zn)};
B6.prototype.JSC$11790_buildRequest=function(v){var E=_.Ef().get("gsml","");E&&(v.safetyModeLockerObfuscatedGaiaId=E);v.userInterfaceTheme=_.bo(!0);_.lo()?v.deviceTheme="DEVICE_THEME_SELECTED":_.hGQ()?v.deviceTheme="DEVICE_THEME_SUPPORTED":v.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var v1=function(){};
_.S(v1,wo);v1.prototype.getApiPaths=function(){return Tm1};
v1.prototype.getExtension=function(v){return _.C(v,$r4)};
v1.prototype.JSC$11790_buildRequest=function(v,E){if(E&&E.requestType&&(v.requestType=E.requestType,E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var n=E.nextUrl;n&&(_.hf$(n)||NX(n))&&(v.nextNavendpoint={urlEndpoint:{url:n}})}E&&E.channelSwitcherQuery&&(v.channelSwitcherQuery=E.channelSwitcherQuery);E&&E.triggerChannelCreation&&(v.triggerChannelCreation=E.triggerChannelCreation);var f;if(E==null?0:(f=E.contentOwnerConfig)==
null?0:f.externalContentOwnerId)v.contentOwnerConfig=E.contentOwnerConfig;v.callCircumstance=E&&E.requestType&&E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var x,y;E=v==null?void 0:(x=v.context)==null?void 0:(y=x.user)==null?void 0:y.onBehalfOfUser;if(E!==void 0){v.obfuscatedSelectedGaiaId=E;var Q,e;v==null||(Q=v.context)==null||(e=Q.user)==null||delete e.onBehalfOfUser}var F,b;if(x=v==null?void 0:(F=v.context)==null?void 0:(b=F.user)==null?
void 0:b.serializedDelegationContext)v.selectedSerializedDelegationContext=x};var E0=function(){};
_.S(E0,wo);E0.prototype.getApiPaths=function(){return hzP};
E0.prototype.getExtension=function(v){return _.C(v,uB6)};
E0.prototype.JSC$11790_buildRequest=function(v,E){E.profileOwnerExternalChannelId&&(v.profileOwnerExternalChannelId=E.profileOwnerExternalChannelId);E.profileCardContext&&(v.profileCardContext=E.profileCardContext)};var nx=function(){};
_.S(nx,wo);nx.prototype.getApiPaths=function(){return zb1};
nx.prototype.getExtension=function(v){return _.C(v,VuS)};
nx.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var o3=function(){};
_.S(o3,wo);o3.prototype.getApiPaths=function(){return x3S};
o3.prototype.getExtension=function(v){return _.C(v,_.izg)};
o3.prototype.JSC$11790_buildRequest=function(v,E){if(E=E.createBroadcastRequest)v.useMasks=E.useMasks,v.broadcastType=E.broadcastType,v.broadcastSource=E.broadcastSource,v.broadcastMetadata=E.broadcastMetadata,v.broadcastMetadataMask=E.broadcastMetadataMask,v.videoMetadata=E.videoMetadata,v.videoMetadataMask=E.videoMetadataMask,v.liveChatSettingsUpdate=E.liveChatSettingsUpdate,v.liveChatSettingsUpdateMask=E.liveChatSettingsUpdateMask,v.cloneVideoId=E.cloneVideoId,v.cloneWithOverrides=E.cloneWithOverrides,
v.targetEntity=E.targetEntity,v.scheduledRedirectMetadata=E.scheduledRedirectMetadata};var fx=function(){};
_.S(fx,wo);fx.prototype.getApiPaths=function(){return Qfz};
fx.prototype.getExtension=function(v){return _.C(v,zko)};
fx.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.params&&(v.params=E.params);n.questionText&&(v.questionText=n.questionText);n.optionText&&n.optionText.length>0&&(v.optionText=n.optionText)};var x9=function(){};
_.S(x9,wo);x9.prototype.getApiPaths=function(){return FNX};
x9.prototype.getExtension=function(v){return _.C(v,T$S)};
x9.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var m3=function(){};
_.S(m3,wo);m3.prototype.getApiPaths=function(){return SpP};
m3.prototype.getExtension=function(v){return _.C(v,W21)};
m3.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var we=function(){};
_.S(we,wo);we.prototype.getApiPaths=function(){return qpF};
we.prototype.getExtension=function(v){return _.C(v,$TS)};
we.prototype.JSC$11790_buildRequest=function(v,E,n){E.params&&(v.params=E.params);E.continuation&&(v.continuation=E.continuation);n.currentPlayerState&&n.currentPlayerState.playerOffsetMs&&(v.currentPlayerState={playerOffsetMs:n.currentPlayerState.playerOffsetMs.toString()})};var bf=function(){};
_.S(bf,wo);bf.prototype.getApiPaths=function(){return JdS};
bf.prototype.getExtension=function(v){return _.C(v,k0P)};
bf.prototype.JSC$11790_buildRequest=function(v,E,n){E.params&&(v.params=E.params);n.continuation&&(v.continuation=n.continuation);"hidden"in n&&(v.webClientInfo={isDocumentHidden:n.hidden});n.isInvalidationTimeoutRequest&&(v.isInvalidationTimeoutRequest=n.isInvalidationTimeoutRequest);n.invalidationPayload&&(E=OLl(_.w1(u5(n.invalidationPayload))),v.invalidationPayloadLastPublishAtUsec=qr(E,2));n.reloadActionPanel&&(v.reloadActionPanel=n.reloadActionPanel);n.fullReload&&(v.fullReload=n.fullReload);
n.currentPlayerState&&(v.currentPlayerState=n.currentPlayerState)};var lf=function(){};
_.S(lf,wo);lf.prototype.getApiPaths=function(){return WNo};
lf.prototype.getExtension=function(v){return _.C(v,iLX)};
lf.prototype.JSC$11790_buildRequest=function(v,E){v.params=E.params};var s0=function(){};
_.S(s0,wo);s0.prototype.getApiPaths=function(){return U3l};
s0.prototype.getExtension=function(v){return _.C(v,RMS)};
s0.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var re=function(){};
_.S(re,wo);re.prototype.getApiPaths=function(){return KNl};
re.prototype.getExtension=function(v){return _.C(v,tuz)};
re.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var P1=function(){};
_.S(P1,wo);P1.prototype.getApiPaths=function(){return $3X};
P1.prototype.getExtension=function(v){return _.C(v,RkU)};
P1.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var a3=function(){};
_.S(a3,wo);a3.prototype.getApiPaths=function(){return Gvo};
a3.prototype.getExtension=function(v){return _.C(v,t0g)};
a3.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var ZN=function(){};
_.S(ZN,wo);ZN.prototype.getApiPaths=function(){return nQ1};
ZN.prototype.getExtension=function(v){return _.C(v,gqU)};
ZN.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var Cx=function(){};
_.S(Cx,wo);Cx.prototype.getApiPaths=function(){return Q26};
Cx.prototype.getExtension=function(v){return _.C(v,_.B$X)};
Cx.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.params&&(v.params=E.params);n.client_message_id&&(v.clientMessageId=n.client_message_id);n.recaptcha_token&&(v.recaptchaToken=n.recaptcha_token);n.rich_message&&n.rich_message.text_segments?(E=n.rich_message.text_segments.map(function(f){var x={};f.text&&(x.text=f.text);f.emoji_id&&(x.emojiId=f.emoji_id);return x}),v.richMessage={textSegments:E}):n.message&&(v.message=n.message);
n.currentPlayerState&&(v.currentPlayerState=n.currentPlayerState)};var M$=function(){};
_.S(M$,wo);M$.prototype.getApiPaths=function(){return XLg};
M$.prototype.getExtension=function(v){return _.C(v,vei)};
M$.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var Sj=function(){};
_.S(Sj,wo);Sj.prototype.getApiPaths=function(){return wLo};
Sj.prototype.getExtension=function(v){return _.C(v,neg)};
Sj.prototype.JSC$11790_buildRequest=function(v,E,n){E.isUserInitiated&&(v.isUserInitiated=E.isUserInitiated);E.initiationSource&&(v.initiationSource=E.initiationSource);n.locationInfo&&(v.context.client.locationInfo=n.locationInfo)};var U0=function(){};
_.S(U0,wo);U0.prototype.getApiPaths=function(){return LNF};
U0.prototype.getExtension=function(v){return _.C(v,zm1)};
U0.prototype.JSC$11790_buildRequest=function(v,E,n){E.metadataUpdateRequest&&(E=E.metadataUpdateRequest,v.encryptedVideoId=E.encryptedVideoId,E.liveChat&&(E=E.liveChat,v.liveChat||(v.liveChat={}),E.performAsExternalChannelId&&(v.liveChat.performAsExternalChannelId=E.performAsExternalChannelId),E.source&&(v.liveChat.source=E.source)));var f;if(n==null?0:(f=n.liveChat)==null?0:f.liveChatSettings)v.liveChat||(v.liveChat={}),n=n.liveChat.liveChatSettings,v.liveChat.newLiveChatSettings=n,v.liveChat.newLiveChatSettingsMask||
(v.liveChat.newLiveChatSettingsMask={}),n.emojiReactionSet&&(v.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var q$=function(){};
_.S(q$,wo);q$.prototype.getApiPaths=function(){return MRl};
q$.prototype.getExtension=function(v){return _.C(v,_.Q6g)};
q$.prototype.JSC$11790_buildRequest=function(v,E,n){n.continuation?v.continuation=n.continuation:E.videoId&&(v.videoId=E.videoId);n.clientParams&&(v.clientParams=n.clientParams)};var J9=function(){};
_.S(J9,wo);J9.prototype.getApiPaths=function(){return d3P};
J9.prototype.getExtension=function(v){return _.C(v,_.Cg)};
J9.prototype.JSC$11790_buildRequest=function(v,E){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";v.fetchCommentsParams={};E.videoId&&(v.fetchCommentsParams.encryptedVideoId=E.videoId);E.postId&&(v.fetchCommentsParams.postId=E.postId);E.externalChannelId&&(v.fetchCommentsParams.externalChannelId=E.externalChannelId);E.linkedCommentId&&(v.fetchCommentsParams.linkedCommentId=E.linkedCommentId);(0,_.sh.isEmpty)(v.fetchCommentsParams)&&delete v.fetchCommentsParams};var Kx=function(){};
_.S(Kx,wo);Kx.prototype.getApiPaths=function(){return Tk};
Kx.prototype.JSC$11790_buildRequest=function(v){v.browseId="FEnotifications_inbox"};
Kx.prototype.getExtension=function(v){return _.C(v,_.zn)};var de=function(){};
_.S(de,wo);de.prototype.getApiPaths=function(){return d3P};
de.prototype.JSC$11790_buildRequest=function(v,E){E.signal==="GET_NOTIFICATIONS_MENU"&&(v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");E.ctoken&&(v.ctoken=E.ctoken)};
var pIp=function(){};
_.S(pIp,de);pIp.prototype.getExtension=function(v){return _.C(v,_.zn)};
var Q$p=function(){};
_.S(Q$p,de);Q$p.prototype.getExtension=function(v){return _.C(v,hu1)};var I3=function(){};
_.S(I3,wo);I3.prototype.getApiPaths=function(){return HK6};
I3.prototype.getExtension=function(v){return _.C(v,_.zn)};
I3.prototype.JSC$11790_buildRequest=function(){};var Y9=function(){};
_.S(Y9,wo);Y9.prototype.getApiPaths=function(){return To6};
Y9.prototype.getExtension=function(v){return _.C(v,fD1)||void 0};
Y9.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params);E.secondaryParams&&(v.secondaryParams=E.secondaryParams)};var h9=function(){};
_.S(h9,wo);h9.prototype.getApiPaths=function(){return iKo};
h9.prototype.getExtension=function(v){return _.C(v,D7i)};
h9.prototype.JSC$11790_buildRequest=function(v,E){E.undo&&(v.undo=E.undo);E.serializedOptOut&&(v.serializedOptOut=E.serializedOptOut);E.serializedRecordInteractionsRequest&&(v.serializedRecordInteractionsRequest=E.serializedRecordInteractionsRequest)};var A9=function(){};
_.S(A9,wo);A9.prototype.getApiPaths=function(){return tGl};
A9.prototype.getExtension=function(v){return _.C(v,HrP)};
A9.prototype.JSC$11790_buildRequest=function(v,E){E.serializedInteractionsRequest&&(v.serializedRecordNotificationInteractionsRequest=E.serializedInteractionsRequest)};var VF=function(){};
_.S(VF,wo);VF.prototype.getApiPaths=function(){return lfX};
VF.prototype.getExtension=function(v){return _.C(v,RnG)};
VF.prototype.JSC$11790_buildRequest=function(v,E,n){E=E===void 0?{}:E;n=n===void 0?{}:n;E.videoId?v.videoId=E.videoId:E.playlistId&&(v.playlistId=E.playlistId);var f,x=(f=E.offlineWebClientEligibility)!=null?f:n.offlineWebClientEligibility;x&&(v.offlineWebClientEligibility=x);var y;if(f=(y=E.preferredFormatType)!=null?y:n.preferredFormatType)v.preferredFormatType=f;var Q;if(y=(Q=E.lastOfflineQualitySettingsSavedMs)!=null?Q:n.lastOfflineQualitySettingsSavedMs)v.lastOfflineQualitySettingsSavedMs=y;
E.params&&(v.params=E.params)};var DN=function(){};
_.S(DN,wo);DN.prototype.getApiPaths=function(){return Nb};
DN.prototype.getExtension=function(v){return _.C(v,_.bG)};
DN.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.token&&(v.continuation=E.token);n.formData&&(v.formData=n.formData)};var H1=function(){};
_.S(H1,wo);H1.prototype.getApiPaths=function(){return Nb};
H1.prototype.getExtension=function(v){return _.C(v,WjU)};
H1.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;v.continuation=n.continuation};var ge=function(){};
_.S(ge,wo);ge.prototype.getApiPaths=function(){return Nb};
ge.prototype.getExtension=function(v){return _.C(v,_.Uy)};
ge.prototype.JSC$11790_buildRequest=function(v,E){var n,f=E.panelIdentifier||((n=E.identifier)==null?void 0:n.tag);f&&(v.panelId=f);var x;if((x=E.globalConfiguration)==null?0:x.params){var y;v.params=(y=E.globalConfiguration)==null?void 0:y.params}};
_.hK.Object.defineProperties(ge.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N$=function(){};
_.S(N$,wo);N$.prototype.getApiPaths=function(){return Nb};
N$.prototype.getExtension=function(v){return _.C(v,ql1)};
N$.prototype.JSC$11790_buildRequest=function(v,E){E.panelLoadingStrategy&&QA9(v,E.panelLoadingStrategy)};var uf=function(){};
_.S(uf,wo);uf.prototype.getApiPaths=function(){return Nb};
uf.prototype.getExtension=function(v){return _.C(v,Tg6)};
uf.prototype.JSC$11790_buildRequest=function(v,E){E.loadingStrategy&&QA9(v,E.loadingStrategy)};var jj=function(){};
_.S(jj,wo);jj.prototype.getApiPaths=function(){return Nb};
jj.prototype.getExtension=function(v){return _.C(v,_.ou)};
jj.prototype.JSC$11790_buildRequest=function(v,E){E.panelLoadingStrategy&&QA9(v,E.panelLoadingStrategy)};var O0=function(){};
_.S(O0,wo);O0.prototype.getApiPaths=function(){return Nb};
O0.prototype.getExtension=function(v){return _.C(v,iro)};
O0.prototype.JSC$11790_buildRequest=function(v,E){var n,f=(n=E.contentSourcePanelIdentifier)==null?void 0:n.tag;f&&(v.panelId=f);var x;if((x=E.globalConfiguration)==null?0:x.params){var y;v.params=(y=E.globalConfiguration)==null?void 0:y.params}};var k9=function(){};
_.S(k9,wo);k9.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
k9.prototype.getExtension=function(v){return _.C(v,zMw)};
k9.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var W1=function(){};
_.S(W1,wo);W1.prototype.getApiPaths=function(){return CR6};
W1.prototype.getExtension=function(v){return _.C(v,Bg1)};
W1.prototype.JSC$11790_buildRequest=function(v,E){E.externalChannelId&&(v.externalChannelId=E.externalChannelId);E.superChatAction&&(v.superChatAction=E.superChatAction);E.superStickersAction&&(v.superStickersAction=E.superStickersAction)};var $9=function(){};
_.S($9,wo);$9.prototype.getApiPaths=function(){return avU};
$9.prototype.getExtension=function(v){return _.C(v,kto)||_.C(v,B49)};
$9.prototype.JSC$11790_buildRequest=function(v,E){E.videoIds?v.videoIds=E.videoIds:E.videoId&&(v.videoIds=[E.videoId]);E.playlistId&&(v.playlistId=E.playlistId);E.params&&(v.params=E.params);v.excludeWatchLater=!1};var Lx=function(){};
_.S(Lx,wo);Lx.prototype.getApiPaths=function(){return Xml};
Lx.prototype.getExtension=function(v){return _.C(v,_.Kg)};
Lx.prototype.JSC$11790_buildRequest=function(v,E,n){n.create_playlist_title?v.title=n.create_playlist_title:E.title&&(v.title=E.title);if(n.create_playlist_privacy_status&&typeof n.create_playlist_privacy_status==="number"){a:{var f=n.create_playlist_privacy_status;if(f!==0){if(f===1){f="PUBLIC";break a}if(f===2){f="UNLISTED";break a}}f="PRIVATE"}v.privacyStatus=f}else E.privacyStatus&&(v.privacyStatus=E.privacyStatus);n.create_playlist_description&&(v.description=n.create_playlist_description);E.videoIds&&
(v.videoIds=E.videoIds);E.params&&(v.params=E.params);E.sourcePlaylistId&&(v.sourcePlaylistId=E.sourcePlaylistId)};var G8=function(){};
_.S(G8,wo);G8.prototype.getApiPaths=function(){return m31};
G8.prototype.getExtension=function(v){return _.C(v,no1)};
G8.prototype.JSC$11790_buildRequest=function(v,E){v.playlistId=E.playlistId};var T8=function(){};
_.S(T8,wo);T8.prototype.getApiPaths=function(){return Iv1};
T8.prototype.getExtension=function(v){return _.C(v,d7X)};
T8.prototype.JSC$11790_buildRequest=function(v,E){E.playlistId&&(v.playlistId=E.playlistId);E.params&&(v.params=E.params)};var z8=function(){};
_.S(z8,wo);z8.prototype.getApiPaths=function(){return Rz1};
z8.prototype.getExtension=function(v){return _.C(v,_.Mb)||void 0};
z8.prototype.JSC$11790_buildRequest=function(v,E){E.actions&&(v.actions=E.actions);E.params&&(v.params=E.params);E.playlistId&&(v.playlistId=E.playlistId)};var R3=function(){};
_.S(R3,wo);_.c=R3.prototype;_.c.getApiPaths=function(){return Bol};
_.c.getExtension=function(v){return _.C(v,_.By)};
_.c.JSC$11790_buildRequest=function(v,E){E.videoId&&(v.playerRequest={videoId:E.videoId},E.playerParams&&(v.playerRequest.params=E.playerParams),E.racyCheckOk&&(v.playerRequest.racyCheckOk=!!E.racyCheckOk),E.contentCheckOk&&(v.playerRequest.contentCheckOk=!!E.contentCheckOk));E.params&&(v.params=E.params);E.inputType&&(v.inputType=E.inputType);v.disablePlayerResponse=!0};
_.c.getRequestConfig=function(v){var E;(v=this.JSC$11797_getStoreKey(v))&&(E={storeStrategy:{storeKey:v}});_.Z("web_log_reels_ticks")&&(E=E||{},E.requestTick="r_wrs",E.responseTick="r_wrr");return E};
_.c.JSC$11797_getStoreKey=function(v){v=this.getExtension(v);if(_.Z("shorts_controller_retrieve_seedless_sequence_v2")){if((v==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.KG("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.Z("web_prefetch_riw_for_next_video")||_.Z("web_shorts_prefetch_service_enabled"))&&v!=null&&v.videoId){var E={videoId:v.videoId};v.params&&(E.params=v.params);return _.KG("reel_item_watch",E)}};var t9=function(){};
_.S(t9,wo);_.c=t9.prototype;_.c.getApiPaths=function(){return vQF};
_.c.getExtension=function(v){return _.C(v,_.By)};
_.c.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;v.sequenceParams=E.sequenceParams;var f;((f=n)==null?0:f.contentPlaybackContext)&&_.Z("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:n.contentPlaybackContext})};
_.c.JSC$11797_getStoreKey=function(v){if(_.Z("shorts_controller_retrieve_seedless_sequence_v2")&&(v=this.getExtension(v),v==null?0:v.sequenceParams))return _.KG("reel_watch_sequence",{sequenceParams:v.sequenceParams})};
_.c.getRequestConfig=function(v){v=this.JSC$11797_getStoreKey(v);var E;v&&(E={storeStrategy:{storeKey:v}});_.Z("reel_watch_sequence_request_log_ticks")&&(E=E||{},E.requestTick="r_wsrs",E.responseTick="r_wsrr",E.processorTick="r_wsrp");return E};
var B1=function(){};
_.S(B1,wo);B1.prototype.getApiPaths=function(){return vQF};
B1.prototype.getExtension=function(v){return _.C(v,_.bG)};
B1.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.token&&(v.continuation=E.token);var f;((f=n)==null?0:f.contentPlaybackContext)&&_.Z("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:n.contentPlaybackContext})};
B1.prototype.getRequestConfig=function(v){v=this.JSC$11797_getStoreKey(v);var E;v&&(E={storeStrategy:{storeKey:v}});_.Z("reel_watch_sequence_request_log_ticks")&&(E=E||{},E.requestTick="r_wsrs",E.responseTick="r_wsrr",E.processorTick="r_wsrp");return E};var vw=function(){};
_.S(vw,wo);vw.prototype.getApiPaths=function(){return sfw};
vw.prototype.getExtension=function(v){return _.C(v,_.xT1)};
vw.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.flagAction&&(v.action=E.flagAction);E.flagRequestType&&(v.flagRequestType=E.flagRequestType);E.additionalDetailCheckboxChecked&&(v.additionalDetailCheckboxChecked=E.additionalDetailCheckboxChecked);E.legalCheckboxChecked&&(v.legalCheckboxChecked=E.legalCheckboxChecked);E={};n.flag_issue_type!==void 0&&(E.issue=n.flag_issue_type);n.flag_affiliation!==void 0&&(E.affiliation=n.flag_affiliation);n.flag_full_name&&(E.fullName=n.flag_full_name);
Object.keys(E).length&&(v.legalReportDetails=E);if(n.flag_description||n.text)v.userComments=n.flag_description||n.text;E={};n.minutes!==void 0&&n.seconds!==void 0&&(E.minutes=n.minutes,E.seconds=n.seconds);n.vss_id&&(E.vssId=n.vss_id);Object.keys(E).length&&(v.videoReportDetails=E);E={};n.video_ids&&(E.videoIds=n.video_ids);n.impersonated_channel_url&&(E.impersonatedChannelUrl=n.impersonated_channel_url);Object.keys(E).length&&(v.channelAbuseReportDetails=E)};
_.hK.Object.defineProperties(vw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ER=function(){};
_.S(ER,wo);ER.prototype.getApiPaths=function(){return MGg};
ER.prototype.getExtension=function(v){return _.C(v,At4)};
ER.prototype.JSC$11790_buildRequest=function(v,E){E.blockedForKidsContent&&(v.blockedForKidsContent=E.blockedForKidsContent)};var nS=function(){};
_.S(nS,wo);nS.prototype.getApiPaths=function(){return oQw};
nS.prototype.getExtension=function(v){return _.C(v,txE)};
nS.prototype.JSC$11790_buildRequest=function(v,E,n){v.params=E.params;n.impersonated_channel_url&&(v.impersonatedChannelUrl=n.impersonated_channel_url)};var ot=function(){};
_.S(ot,wo);ot.prototype.getApiPaths=function(){return OKl};
ot.prototype.getExtension=function(v){return _.C(v,_.V0o)};
ot.prototype.JSC$11790_buildRequest=function(v,E){E.items&&(v.items=E.items);E.kidGaiaId&&(v.kidGaiaId=E.kidGaiaId)};var fS=function(){};
_.S(fS,wo);fS.prototype.getApiPaths=function(){return ZKU};
fS.prototype.getExtension=function(v){return _.C(v,_.j16)};
fS.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params);E.targetId&&(v.targetId=E.targetId)};var xn=function(){};
_.S(xn,wo);xn.prototype.getApiPaths=function(){return yzS};
xn.prototype.getExtension=function(v){return _.C(v,A_1)};
xn.prototype.JSC$11790_buildRequest=function(v,E){E.externalVideoId&&(v.externalVideoId=E.externalVideoId);E.query&&(v.query=E.query);E.sourceTimelines&&(v.sourceTimelines=E.sourceTimelines)};var cw=function(){};
_.S(cw,wo);cw.prototype.getApiPaths=function(){return pLP};
cw.prototype.getExtension=function(v){return _.C(v,_.bG)||void 0};
cw.prototype.JSC$11790_buildRequest=function(v,E){E.token&&(v.continuation=E.token)};
_.XIb=function(){};
_.S(_.XIb,wo);_.c=_.XIb.prototype;_.c.getApiPaths=function(){return pLP};
_.c.getExtension=function(v){return _.C(v,_.ze)||void 0};
_.c.isNavigationCommand=function(){return!0};
_.c.JSC$11797_getStoreKey=function(v,E){E=E===void 0?{}:E;if(!E.disableCache&&(v=this.getExtension(v))&&v.query)return E={query:v.query},v.params&&(E.params=v.params),_.KG("search",E)};
_.c.JSC$11790_buildRequest=function(v,E,n){E.query&&(v.query=E.query);E.params&&(v.params=E.params);if(!_.Z("web_forward_suggest_stats_killswitch")){var f=_.C(E,C31);f&&(v.suggestStats=f)}var x;!_.Z("kevlar_searchbox_stats_killswitch")&&((x=n.tempData)==null?0:x.gs_l)&&!_.C(E,C31)&&(v.webSearchboxStatsUrl="/search?oq="+(n.tempData.oq||"")+"&gs_l="+n.tempData.gs_l);var y;if((y=n.tempData)==null?0:y.entityMid)E=v.suggestionSearchParams||{},E.entityMid=n.tempData.entityMid,v.suggestionSearchParams=E};
_.c.getRequestConfig=function(v,E){E=E===void 0?{}:E;v=this.JSC$11797_getStoreKey(v,E);var n;v&&(n={storeStrategy:{storeKey:v}});_.Z("web_log_search_ticks_ks")||(n=n||{},n.requestTick="sr_s",n.responseTick="sr_r");return n};var yn=function(){};
_.S(yn,wo);yn.prototype.getApiPaths=function(){return VG1};
yn.prototype.getExtension=function(v){return _.C(v,wg4)};
yn.prototype.JSC$11790_buildRequest=function(v,E){E.serializedGetSharingProviderDataParams&&(v.serializedGetSharingProviderDataParams=E.serializedGetSharingProviderDataParams)};var pS=function(){};
_.S(pS,wo);pS.prototype.getApiPaths=function(){return D3z};
pS.prototype.getExtension=function(v){return _.C(v,vYP)};
pS.prototype.JSC$11790_buildRequest=function(v,E){E.endpoint&&(v.endpoint=E.endpoint);E.action&&(v.action=E.action)};var Qn=function(){};
_.S(Qn,wo);Qn.prototype.getApiPaths=function(){return wm1};
Qn.prototype.getExtension=function(v){return _.C(v,ooX)};
Qn.prototype.JSC$11790_buildRequest=function(v,E){v.videoId=E.videoId;E.scheduledRedirectMetadataSourceVideoId&&(v.scheduledRedirectMetadata={sourceVideoId:E.scheduledRedirectMetadataSourceVideoId})};var ey6=XMLHttpRequest.prototype.fetch,FXp=ey6&&ey6.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!hO?!0:!1;var XA=function(v){this.JSC$15826_storeWithEntities=v};
_.S(XA,wo);_.c=XA.prototype;_.c.getApiPaths=function(){return zz6};
_.c.getExtension=function(v){return _.C(v,_.dM)||_.C(v,_.By)||_.C(v,xhS)};
_.c.isNavigationCommand=function(){return!0};
_.c.JSC$11797_getStoreKey=function(v){if((_.Z("kevlar_cache_on_ttl_player")||_.Z("mweb_enable_shorts_innertube_player_prefetch")||_.Z("mweb_use_new_history_manager")||_.Z("web_shorts_prefetch_service_enabled"))&&(v=this.getExtension(v))&&v.videoId){var E={videoId:v.videoId};v.playlistId&&(E.playlistId=v.playlistId);v.playerParams&&(E.params=v.playerParams);return _.KG("player",E)}};
_.c.JSC$11790_getClientScreen=function(v){var E;return((E=v.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.c.JSC$11790_buildRequest=function(v,E,n){if(_.Z("enable_interstitial_entity_check")){var f=this.JSC$15826_storeWithEntities;if(E.videoId)for(var x=_.p(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),y=x.next();!y.done;y=x.next()){y=y.value;var Q;var e=void 0,F=void 0,b=E.videoId,l=y;(Q=f)?(b=_.$s(b+l,"interstitialInteractionStateEntity"),Q=(e=(F=_.LH(Q.getState().entities,"interstitialInteractionStateEntity",b))==null?void 0:F.primaryButtonClicked)!=null?e:!1):Q=!1;if(Q)switch(y){case "CONTENT_CHECK_REQUIRED":E.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":E.racyCheckOk=!0}}}E.videoId&&(v.videoId=E.videoId);E.playlistId&&(v.playlistId=E.playlistId);E.index!==void 0&&(v.playlistIndex=E.index+1);E.playerParams&&(v.params=E.playerParams);"startTimeSeconds"in E&&E.startTimeSeconds&&(_.Z("enable_player_request_builder_start_time_floor")?v.startTimeSecs=Math.floor(E.startTimeSeconds):v.startTimeSecs=E.startTimeSeconds);n.contentPlaybackContext&&(v.playbackContext={contentPlaybackContext:n.contentPlaybackContext});n.prefetchPlaybackContext&&
(v.playbackContext=Object.assign({},v.playbackContext,{prefetchPlaybackContext:n.prefetchPlaybackContext}),v.context.request||(v.context.request={}),v.context.request.isPrefetch=!0);v.playbackContext||(v.playbackContext={});f=rkP();v.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!f,supportXhr:FXp};n.overrideMutedAtStart&&(v.overrideMutedAtStart=n.overrideMutedAtStart);v.racyCheckOk=!!E.racyCheckOk;v.contentCheckOk=!!E.contentCheckOk;!_.Z("captions_prefs_killswitch")&&(n=(n=_.vs("yt-player-caption-language-preferences"))?
n:[],n==null?0:n.length)&&(v.captionParams={viewerSelectedCaptionLangs:n})};
_.c.getRequestConfig=function(v){v=this.JSC$11797_getStoreKey(v);var E;v&&(E={storeStrategy:{storeKey:v}});_.Z("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="ps_s",E.responseTick="ps_r");return E};
XA[Wl]=[fe];var e4=function(){};
_.S(e4,wo);e4.prototype.getApiPaths=function(){return F8o};
e4.prototype.getExtension=function(v){return _.C(v,_.j6X)};
e4.prototype.JSC$11790_buildRequest=function(v,E){v.params=E.params;v.correctionText=E.correctionText};var FA=function(){};
_.S(FA,wo);FA.prototype.getApiPaths=function(){return w9E};
FA.prototype.getExtension=function(v){return _.C(v,_.VPo)};
FA.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params);v.searchQuery=E.searchQuery;v.languageCode=E.languageCode;v.kind=E.kind;v.name=E.name;v.externalVideoId=E.externalVideoId};var m7=function(){};
_.S(m7,wo);_.c=m7.prototype;_.c.getApiPaths=function(){return qqU};
_.c.getExtension=function(v){return _.C(v,_.dM)};
_.c.isNavigationCommand=function(){return!0};
_.c.JSC$11797_getStoreKey=function(v){if((v=this.getExtension(v))&&v.videoId){var E={videoId:v.videoId};v.playlistId&&(E.playlistId=v.playlistId);v.index&&(E.index=v.index);v.params&&(E.params=v.params);return _.KG("next",E)}};
_.c.JSC$11790_getClientScreen=function(v){var E;return((E=v.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.c.JSC$11790_buildRequest=function(v,E,n){E.videoId&&(v.videoId=E.videoId);E.playlistId&&(v.playlistId=E.playlistId);E.params&&(v.params=E.params);E.index!==void 0&&(v.playlistIndex=E.index);v.racyCheckOk=!(!n.racyCheckOk&&!E.racyCheckOk);v.contentCheckOk=!!E.contentCheckOk;n.contentPlaybackContext&&(v.autonavState=n.contentPlaybackContext.autonavState,v.playbackContext={vis:n.contentPlaybackContext.vis,lactMilliseconds:n.contentPlaybackContext.lactMilliseconds});n.prefetchPlaybackContext&&(v.context.request||
(v.context.request={}),v.context.request.isPrefetch=!0);_.Z("captions_hats_killswitch")||(E=_.Ef().getFlag(65),E=E!=null?!E:!1,n=!!_.vs("yt-player-sticky-caption"),v.captionsRequested=E&&n)};
_.c.getRequestConfig=function(v){v=this.JSC$11797_getStoreKey(v);var E;v&&(E={storeStrategy:{storeKey:v}});_.Z("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="wn_s",E.responseTick="wn_r");return E};
var w9=function(){};
_.S(w9,wo);w9.prototype.getApiPaths=function(){return qqU};
w9.prototype.getExtension=function(v){return _.C(v,_.bG)};
w9.prototype.JSC$11790_buildRequest=function(v,E){E.token&&(v.continuation=E.token)};var bh=function(v,E){this.playerRequestBuilder=v;this.watchNextRequestBuilder=E};
_.S(bh,wo);bh.prototype.getApiPaths=function(){return NoF};
bh.prototype.getExtension=function(v){return _.C(v,_.dM)};
bh.prototype.isNavigationCommand=function(){return!0};
bh.prototype.JSC$11790_buildRequest=function(v,E,n){v.playerRequest={};v.watchNextRequest={};this.playerRequestBuilder.JSC$11790_buildRequest(v.playerRequest,E,n);_.Z("web_streaming_player")||this.watchNextRequestBuilder.JSC$11790_buildRequest(v.watchNextRequest,E,n)};
bh[Wl]=[XA,m7];var lh=function(){};
_.S(lh,wo);lh.prototype.getApiPaths=function(){return JzF};
lh.prototype.getExtension=function(v){return _.C(v,EI1)};
lh.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.params=E.params)};var sR=function(v){this.JSC$15853_storeWithEntities=v};
_.S(sR,wo);sR.prototype.getApiPaths=function(){return oM1};
sR.prototype.getExtension=function(v){return _.C(v,oIX)||_.C(v,x21)};
sR.prototype.JSC$11790_buildRequest=function(v,E,n){n.client_data&&(v.clientData=n.client_data);if(E.commerceActionConfig){var f=E.commerceActionConfig;E=f.actionId;f=f.commerceActionParams;E&&(v.actionId=E);f&&(v.commerceActionParams=f)}else{var x=E.actionId,y=E.commerceActionParams;n=E.entityKeys;x&&(v.actionId=x);y&&(v.commerceActionParams=y);var Q;E=(f=this.JSC$15853_storeWithEntities)==null?void 0:(Q=f.getState())==null?void 0:Q.entities;if(n&&E){f=[];Q=_.p(n);for(n=Q.next();!n.done;n=Q.next())if(x=
n.value,n=_.Of(x).entityType,x=_.LH(E,n,x))y={},f.push((y[n]=x,y));v.entityMutationPayloads=f}}};
sR.prototype.getRequestConfig=function(v){var E,n=(E=_.C(v,oIX))==null?void 0:E.requestSequenceType;if(n&&v.clickTrackingParams&&n!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:v.clickTrackingParams,sequenceType:n}}};
sR[Wl]=[fe];var r9=function(){};
_.S(r9,wo);r9.prototype.getApiPaths=function(){return K81};
r9.prototype.getExtension=function(v){return _.C(v,_.MV1)};
r9.prototype.JSC$11790_buildRequest=function(v,E){E.feedbackData&&(v.feedbackData=E.feedbackData);E.params&&(v.itemParams=E.params)};
_.hK.Object.defineProperties(r9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pw=function(){};
_.S(Pw,wo);Pw.prototype.getApiPaths=function(){return dj1};
Pw.prototype.getExtension=function(v){return _.C(v,SCo)};
Pw.prototype.JSC$11790_buildRequest=function(v,E,n){n.payments_payload&&(v.paymentsPayload=n.payments_payload);n.offer_params&&(v.offerParams=n.offer_params);E.transactionParams&&(v.transactionParams=E.transactionParams)};var at=function(){};
_.S(at,wo);at.prototype.getApiPaths=function(){return I7w};
at.prototype.getExtension=function(v){return _.C(v,_.U2i)};
at.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.buybucketParams&&(v.buybucketData={params:E.buybucketParams},E.stickerParams?v.buybucketData.stickerParams=E.stickerParams:(n.rich_chat_message?v.buybucketData.richChatMessage=n.rich_chat_message:n.chat_message_text&&(v.buybucketData.chatMessageText=n.chat_message_text),n.purchase_price_micros&&(v.buybucketData.purchasePriceMicros=n.purchase_price_micros.toString())));E.donationAmountMicros&&(v.tipAmountMicros=E.donationAmountMicros,
E.tipParams&&(v.tipParams=E.tipParams));E.offerParams&&(v.offerParams=E.offerParams);E.productData&&(v.productData=E.productData);E.transactionParams&&(v.transactionParams=E.transactionParams)};var Zp=function(){};
_.S(Zp,wo);Zp.prototype.getApiPaths=function(){return YqP};
Zp.prototype.getExtension=function(v){return _.C(v,KLU)};
Zp.prototype.JSC$11790_buildRequest=function(v,E){E.updateFopParams&&(v.updateFopParams=E.updateFopParams)};var CS=function(){};
_.S(CS,wo);CS.prototype.getApiPaths=function(){return hG1};
CS.prototype.getExtension=function(v){return _.C(v,_.TK)};
CS.prototype.JSC$11790_buildRequest=function(v,E){E.couponCode&&(v.couponCode=E.couponCode);E.params&&(v.itemParams=E.params)};var MH=function(){};
_.S(MH,wo);MH.prototype.getApiPaths=function(){return Azg};
MH.prototype.getExtension=function(v){return _.C(v,_.fQ1)};
MH.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;E.params&&(v.params=E.params);n.ctk&&(v.clientToken=n.ctk)};var S4=function(v){this.JSC$15888_storeWithEntities=v};
_.S(S4,wo);S4.prototype.getApiPaths=function(){return VRP};
S4.prototype.getExtension=function(v){return _.C(v,_.Is)};
S4.prototype.JSC$11790_buildRequest=function(v,E,n){n.purchase_price_micros&&(v.productData={pdgData:{purchasePriceMicros:n.purchase_price_micros.toString()}},n.rich_chat_message&&(v.productData.pdgData.richChatMessage=n.rich_chat_message),n.currency_code&&(v.productData.pdgData.currencyCode=n.currency_code));E.transactionParams&&(v.transactionParams=E.transactionParams);E.clientLocationContext&&(v.clientLocationContext=E.clientLocationContext);n.payments_payload&&(v.paymentsPayload=n.payments_payload);
n.funds_guarantee_callback_client_data&&(v.fundsGuaranteeCallbackClientData=n.funds_guarantee_callback_client_data);var f,x;n=(f=this.JSC$15888_storeWithEntities)==null?void 0:(x=f.getState())==null?void 0:x.entities;if(E.entityKeys&&n){f=[];E=_.p(E.entityKeys);for(x=E.next();!x.done;x=E.next()){var y=x.value;x=_.Of(y).entityType;if(y=_.LH(n,x,y)){var Q={};f.push((Q[x]=y,Q))}}v.entityMutationPayloads=f}};
S4[Wl]=[fe];var UR=function(){};
_.S(UR,wo);UR.prototype.getApiPaths=function(){return Djw};
UR.prototype.getExtension=function(v){return _.C(v,qC1)};
UR.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;n.backend_analytics&&(v.serializedBackendAnalyticsEvent=n.backend_analytics);E.offerParams&&(v.offerParams=E.offerParams)};var qH=function(){};
_.S(qH,wo);qH.prototype.getApiPaths=function(){return hG1};
qH.prototype.getExtension=function(v){return _.C(v,Mm$)};
qH.prototype.JSC$11790_buildRequest=function(v,E){E.params&&(v.itemParams=E.params)};var JD=function(){};
_.S(JD,wo);JD.prototype.getApiPaths=function(){return H4l};
JD.prototype.getExtension=function(v){return _.C(v,_.Xsi)};
JD.prototype.JSC$11790_buildRequest=function(v,E,n){n.resume_time_ms&&(v.resumeTimeMs=n.resume_time_ms);E.pauseParams&&(v.pauseParams=E.pauseParams)};var KS=function(){};
_.S(KS,wo);KS.prototype.getApiPaths=function(){return gQ1};
KS.prototype.getExtension=function(v){return _.C(v,_.J1U)};
KS.prototype.JSC$11790_buildRequest=function(v,E,n){n=n===void 0?{}:n;n.c&&(v.redeemCode=n.c);n.rd&&(v.riskData=n.rd);n.ctk&&(v.clientToken=n.ctk)};var d9=function(){};
_.S(d9,wo);d9.prototype.getApiPaths=function(){return NTl};
d9.prototype.getExtension=function(v){return _.C(v,_.eb1)};
d9.prototype.JSC$11790_buildRequest=function(v,E){E.resumeParams&&(v.resumeParams=E.resumeParams)};var It=function(v,E){this.clientName=v;this.defaultExpirationDelayMs=E};
It.prototype.put=function(v,E){var n=this,f;return _.X(function(x){f=Object.assign({},E.data);f.key=v;f.clientName=n.clientName;f.expireTimestampMs===void 0&&(f.expireTimestampMs=(Math.round((0,_.gd)())+n.defaultExpirationDelayMs).toString());return x.return(n.putInternal(v,f))})};
It[Wl]=[xK,quP];var mF_=function(){It.apply(this,arguments);this.JSC$15918_responseStore=new Map};
_.S(mF_,It);_.c=mF_.prototype;_.c.get=function(v){var E=this;return _.X(function(n){return n.return(iR(E,v))})};
_.c.putInternal=function(v,E){var n=this,f,x,y;return _.X(function(Q){f=n.defaultExpirationDelayMs;E.expireTimestampMs&&(f=Number(E.expireTimestampMs)-Math.round((0,_.gd)()),x=_.WG("mweb_override_response_store_expiration_ms"),x>0&&x<f&&(f=x));y=setTimeout(function(){n.remove(v)},f);
n.JSC$15918_responseStore.set(v,{entryData:E,timer:y});_.yQ(Q)})};
_.c.remove=function(v){var E=this;return _.X(function(n){wI1(E,v);_.yQ(n)})};
_.c.removeAll=function(){var v=this;return _.X(function(E){v.JSC$15918_responseStore.forEach(function(n){clearTimeout(n.timer)});
v.JSC$15918_responseStore.clear();_.yQ(E)})};
_.c.has=function(v){return!!this.JSC$15918_responseStore.get(v)};
_.c.getKeys=function(){return this.JSC$15918_responseStore.keys()};
var iR=function(v,E){if(v=v.JSC$15918_responseStore.get(E))return new _.T9(v.entryData)},wI1=function(v,E){var n=v.JSC$15918_responseStore.get(E);
n&&(clearTimeout(n.timer),v.JSC$15918_responseStore.delete(E))};var XaX;var m5E=function(v,E,n){It.call(this,v,E);this.token=n};
_.S(m5E,It);_.c=m5E.prototype;_.c.get=function(v){var E=this,n,f;return _.X(function(x){return x.nextAddress==1?_.m(x,FY$(E.token),2):x.nextAddress!=3?(n=x.yieldResult,_.m(x,n.get("ResponseStore",[v,E.clientName]),3)):(f=x.yieldResult)?x.return(new _.T9(f)):x.return(void 0)})};
_.c.putInternal=function(v,E){var n=this,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,FY$(n.token),2);f=x.yieldResult;return _.m(x,f.put("ResponseStore",E),0)})};
_.c.remove=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,FY$(E.token),2);n=f.yieldResult;return f.return(n.delete("ResponseStore",[v,E.clientName]))})};
_.c.removeAll=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,FY$(v.token),2);E=n.yieldResult;return _.m(n,H3F(E,IDBKeyRange.only(v.clientName)),0)})};
_.c.has=function(){throw Error("Ui");};_.Yn=new _.$Y("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var b13=function(v){var E;this.stateTagsData=(E=v.responseContext)==null?void 0:E.stateTags},lA0=function(v){var E;
return((E=v.stateTagsData)==null?void 0:E.stateTagsModified)||[]};var s$p;s$p=function(v){this.JSC$15931_responseStore=v};
_.H_=function(v,E,n){if(!_.Z("state_tags_killswitch")){var f=new b13(E);if(lA0(f).length>0){var x=v.JSC$15931_responseStore.getKeys();x=_.p(x);for(var y=x.next();!y.done;y=x.next()){y=y.value;var Q=iR(v.JSC$15931_responseStore,y);if(Q){var e=_.ne(Q);a:{var F=void 0;Q=lA0(f);e=((F=(new b13(e)).stateTagsData)==null?void 0:F.relevantStateTags)||[];F=_.p(e);for(e=F.next();!e.done;e=F.next())if(e=e.value,e.stateTag!=null&&Q.includes(e.stateTag)&&e.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Q=
!0;break a}Q=!1}Q&&wI1(v.JSC$15931_responseStore,y)}}}}var b;f=(b=E.responseContext)==null?void 0:b.maxAgeSeconds;_.Z("web_prefetch_riw_for_next_video")&&!f&&E.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(f=3600);n&&f&&Number(f)>0&&(E=jw(E,f),v.JSC$15931_responseStore.put(n,new _.T9(E)))};
s$p.prototype.handleResponse=function(v,E){if(!E)throw Error("Vi");var n,f;E=(n=E.config)==null?void 0:(f=n.storeStrategy)==null?void 0:f.storeKey;_.H_(this,v,E)};
s$p[Wl]=[_.G9];_.Ek1=new _.$Y("STORE_RESPONSE_PROCESSOR_TOKEN");var rGp=function(v){this.JSC$15934_responseStore=v};
rGp.prototype.handleResponse=function(v,E){if(E.input.match(_.Yt(vQF))){var n;if(v==null?0:(n=v.entries)==null?0:n.length)for(v=_.p(v.entries),E=v.next();!E.done;E=v.next()){n=E.value.command;var f=void 0;E=(f=_.C(n,_.By))==null?void 0:f.unserializedPrefetchData;if(!n||!E)break;f=(new R3).JSC$11797_getStoreKey(n);var x=_.C(E,SS1),y=void 0,Q=void 0,e=void 0,F=_.WG("web_shorts_prefetch_service_ttl_seconds")>0?_.WG("web_shorts_prefetch_service_ttl_seconds"):Number((e=(y=x)==null?void 0:(Q=y.responseContext)==
null?void 0:Q.maxAgeSeconds)!=null?e:3600);f&&F>0&&(x=jw(x,F),this.JSC$15934_responseStore.put(f,new _.T9(x)));n=(new XA).JSC$11797_getStoreKey(n);E=_.C(E,pk1);y=x=f=void 0;Q=_.WG("web_shorts_prefetch_service_ttl_seconds")>0?_.WG("web_shorts_prefetch_service_ttl_seconds"):Number((y=(f=E)==null?void 0:(x=f.responseContext)==null?void 0:x.maxAgeSeconds)!=null?y:3600);n&&Q>0&&(E=jw(E,Q),this.JSC$15934_responseStore.put(n,new _.T9(E)))}}};
rGp[Wl]=[_.G9];var hD=function(){this.scheduler=_.Ce()},PE0;
hD.prototype.pause=function(){throw Error("Wi");};
hD.prototype.resume=function(){throw Error("Wi");};
hD.prototype.queue=function(v){var E=this,n=_.Sw(),f=_.cP(this.scheduler,function(){try{var x;if(_.ki.instance)var y=_.ki.instance;else{var Q=new _.yc("Error: Unexpected uninitialized CommandHandler.");_.mb(Q);y=void 0}(x=y)==null||x.resolveCommand(v.command);n.resolve()}catch(e){n.reject(e)}});
n.promise.thenCatch(function(x){x instanceof _.Hj&&E.scheduler.cancelJob(f)});
return n.promise};
hD.prototype.queueAll=function(v){var E=new Map;v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,E.set(n.id,this.queue(n));return E};var Z16=function(v,E){var n=this;this.taskModel=v;this.onTaskCancelledCallback=E;this.resolver=_.Sw();v=v.proto.prefetchConfig;if(!v)throw Error("Xi");if(!v.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(f){f instanceof _.Hj&&(aAx(n,n.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),n.onTaskCancelledCallback(n.taskModel.id,n.jobId),n.tick("pcc"));
throw f;});
this.timerName=this.taskModel.id;_.e7(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},CEK=function(v){switch(v.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},aAx=function(v,E){_.XD({prefetchInfo:{cancellationReason:E}},v.timerName)};
Z16.prototype.tick=function(v){_.FD(v,void 0,this.timerName)};var Vn=function(){var v=this;this.scheduler=_.Ce();this.maxInflightTasks=_.WG("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.WG("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new xd1;this.onTaskCancelled=function(E,n){n&&v.scheduler.cancelJob(n);M93(v,E);AD(v,3)}},SQK=function(){Vn.instance||(Vn.instance=new Vn);
return Vn.instance};
Vn.prototype.pause=function(){this.prefetchCoordinatorState=0};
Vn.prototype.resume=function(){AD(this,0)};
Vn.prototype.queue=function(v){v=UFd(this,v);AD(this,1);return v};
Vn.prototype.queueAll=function(v){var E=new Map;v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,E.set(n.id,UFd(this,n));AD(this,1);return E};
var UFd=function(v,E){var n=v.allPrefetchTasks.get(E.id);if(n)return n.cancellablePromise;try{var f=new Z16(E,v.onTaskCancelled)}catch(y){return _.nR(y)}n=f;n.tick("pcq");var x={prefetchInfo:{taskId:n.taskModel.id,isPrefetch:!0,fetchAction:n.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:n.taskModel.command.clickTrackingParams}};n.taskModel.csn&&(x.clientScreenNonce=n.taskModel.csn);_.XD(x,n.timerName);v.allPrefetchTasks.set(E.id,f);v.drainingHeap.insert(-CEK(f),f);return f.cancellablePromise},
AD=function(v,E){v.prefetchCoordinatorState===E&&(v.prefetchCoordinatorState=2,qQ6(v))},qQ6=function(v){for(var E={};v.prefetchCoordinatorState!==0;E={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(v.inflightPrefetchTasks.size>=v.maxInflightTasks){v.prefetchCoordinatorState=3;break}E.prefetchTask$jscomp$1=v.drainingHeap.remove();if(!E.prefetchTask$jscomp$1){v.prefetchCoordinatorState=1;break}E.taskId$jscomp$3=E.prefetchTask$jscomp$1.taskModel.id;if(v.allPrefetchTasks.has(E.taskId$jscomp$3)){var n=-1;v.coordinatorTimeoutMs>0&&(n=_.cP(v.scheduler,function(f){return function(){Dp(v,f.taskId$jscomp$3,Error("Zi"))}}(E),v.coordinatorTimeoutMs));
v.inflightPrefetchTasks.set(E.taskId$jscomp$3,n);if(!v.JSC$15950_commandHandler){if(!_.ki.instance){Dp(v,E.taskId$jscomp$3,Error("$i"));continue}v.JSC$15950_commandHandler=_.ki.instance}a:switch(E.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":n=1;break a;default:n=0}E.prefetchTask$jscomp$1.jobId=v.scheduler.addJob(function(f){return function(){f.prefetchTask$jscomp$1.tick("pcr");try{v.JSC$15950_commandHandler.resolveCommand(f.prefetchTask$jscomp$1.taskModel.command)||
Dp(v,f.taskId$jscomp$3,Error("aj"))}catch(x){Dp(v,f.taskId$jscomp$3,x)}}}(E),n,0)}}},JGC=function(v,E){(E=M93(v,E))!=null&&(E.resolver.resolve(),E.tick("pce"));
AD(v,3)},Dp=function(v,E,n){(E=M93(v,E,n))!=null&&(E.resolver.reject(n),E.tick("pcc"),aAx(E,"CANCELLATION_REASON_ERROR"),Math.random()<=_.WG("prefetch_coordinator_error_logging_sampling_rate")&&(n=new _.yc("Prefetch Command failed.",E.taskModel.id,n.message),_.mb(n)));
AD(v,3)},M93=function(v,E,n){var f=v.allPrefetchTasks.get(E);
f?((n=v.inflightPrefetchTasks.get(E))&&n!==-1&&v.scheduler.cancelJob(n),v.inflightPrefetchTasks.delete(E),v.allPrefetchTasks.delete(E)):_.li(new _.yc("Unexpected missing prefetch task when deleting task.",E,n==null?void 0:n.message));return f};var KXb=function(v,E,n,f,x){this.id=v;this.triggerOn=E;this.cancelOn=n;this.command=f;this.proto=x};
_.hK.Object.defineProperties(KXb.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var dF6=function(){this.JSC$15955_prefetchCoordinator=SQK();PE0||(PE0=new hD);this.defaultCoordinator=PE0},IAd;
dF6.getInstance=function(){IAd||(IAd=new dF6);return IAd};
dF6.prototype.get=function(v){switch(v){case 0:return this.JSC$15955_prefetchCoordinator;default:return this.defaultCoordinator}};var Hw=function(){this.coordinatorSupplier=dF6.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},AGd=function(v){var E=_.lc()||void 0,n=Object.keys(YQ6)[0];
if(n){var f=v.taskIdByTriggerId.get(n);if(f!=null){v.taskIdByTriggerId.delete(n);n=[];f=_.p(f);for(var x=f.next();!x.done;x=f.next())if(x=v.tasks.get(x.value))E!=="UNDEFINED_CSN"&&(x.csn=E),n.push(x);n=lP$(n);E=[];n=_.p(n);for(f=n.next();!f.done;f=n.next()){x=_.p(f.value);f=x.next().value;x=x.next().value;f=v.coordinatorSupplier.get(f).queueAll(x);f=_.p(f);var y=f.next();for(x={};!y.done;x={taskId$jscomp$9:void 0},y=f.next()){var Q=_.p(y.value);y=Q.next().value;Q=Q.next().value;x.taskId$jscomp$9=
y;y=Q;E.push(x.taskId$jscomp$9);v.queuedPromisesByTask.set(x.taskId$jscomp$9,_.so(y,function(e){return function(){hyR(v,e.taskId$jscomp$9)}}(x)))}}}}else _.li(new _.yc("Unexpected malformed TriggerEvent."))};
Hw.prototype.trigger=function(v,E){var n=this,f=this.tasks.get(v);if(!f||this.queuedPromisesByTask.has(v))return!1;V9R(this,v,f.triggerOn);E!=="UNDEFINED_CSN"&&(f.csn=E);E=this.coordinatorSupplier.get(f.taskType).queue(f);this.queuedPromisesByTask.set(v,_.so(E,function(){hyR(n,v)}));
return!0};
Hw.prototype.cancel=function(v){var E=this.queuedPromisesByTask.get(v);if(E)E.cancel();else return hyR(this,v)};
var hyR=function(v,E){v.queuedPromisesByTask.delete(E);var n=v.tasks.get(E);if(!n)return!1;v.tasks.delete(E);V9R(v,E,n.triggerOn);(n=bA$(n.cancelOn))&&(v=v.taskIdByCancelId.get(n))&&v.delete(E);return!0},V9R=function(v,E,n){(n=Object.keys(n)[0])&&(v=v.taskIdByTriggerId.get(n))&&v.delete(E)};var YQ6={taskRegistered:{}},g9=function(){Hw.instance||(Hw.instance=new Hw);this.JSC$15964_taskManager=Hw.instance};
_.S(g9,rI);
g9.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){n=_.C(v,Usg);if((f=n)==null||!f.tasks){var y=new _.yc("RegisterTasksCommand is missing tasks.");_.mb(y);return x.return()}y=E.JSC$15964_taskManager;for(var Q=_.p(n.tasks),e=Q.next();!e.done;e=Q.next())if(e=e.value,e=e.id&&e.triggerOn&&e.cancelOn&&e.command?new KXb(e.id,e.triggerOn,e.cancelOn,e.command,e):void 0,e){var F=Object.keys(e.triggerOn)[0];if(F){var b=bA$(e.cancelOn);b?(y.tasks.set(e.id,e),y.taskIdByTriggerId.has(F)||y.taskIdByTriggerId.set(F,
new Set),y.taskIdByTriggerId.get(F).add(e.id),y.taskIdByCancelId.has(b)||y.taskIdByCancelId.set(b,new Set),y.taskIdByCancelId.get(b).add(e.id)):_.li(new _.yc("Unexpected malformed cancelOn field."))}else _.li(new _.yc("Unexpected malformed triggerOn field."))}else _.li(new _.yc("Unexpected malformed Task proto."));AGd(E.JSC$15964_taskManager);_.yQ(x)})};var DFC={},H1O=(DFC.rendered={priority:0,callback:function(){var v={};v.numCpu=navigator.hardwareConcurrency;var E={};E.ramGb=_.n1.navigator.deviceMemory;var n={staticContext:{}};E.ramGb&&sAA(E.ramGb)&&(n.staticContext.memoryTotalKbytes=(E.ramGb*1048576).toString());v.numCpu&&sAA(v.numCpu)&&(n.staticContext.cpuCores=v.numCpu);if(_.Z("web_enable_adaptive_appl_signal")){v={};E=_.bn("rses_dpj");var f=_.bn("rsef_dpj");E&&E>0&&f&&f>0&&(E=Math.ceil(f-E),E>0&&(v.loadLatency=E));v.loadLatency&&sAA(v.loadLatency)&&
(n.appL=v.loadLatency.toString())}_.eQ("applicationStarted",n)}},DFC);var gXM=new _.$Y("WINDOW_ON_ERROR"),NL0=new _.$Y("ERROR_WEIGHT_MAPS"),uN3=new _.$Y("INIT_ERROR");var j$C={},O1R=(j$C.initialized={priority:10,callback:function(v){v.injector.resolve(uN3)()}},j$C);var ksP=function(){},WXd=function(){var v=_.JM("meta_logger_impl");
v||(v=new ksP,_.Vc("meta_logger_impl",v));return v},$Fp=function(){WXd().csiSubscriptionKey=SbA("meta_logging_csi_event",function(v){var E=v.timerName;
if(v=v.timelineData){_.e7(E,{startTime:v.startTime},E);v.infos&&_.XD(v.infos,E);for(var n=_.p(Object.keys(v.ticks)),f=n.next();!f.done;f=n.next())f=f.value,_.FD(f,v.ticks[f],E)}})};
ksP.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&JCN(this.csiSubscriptionKey)};var LX_={},GsM=(LX_.initialized={priority:10,callback:function(){$Fp()}},LX_);var TLx=function(v,E){this.innertubeClientName=v;this.JSC$15980_prefCookie=E};
TLx.prototype.record=function(){if(_.Z("web_li_record_binary_eval_tick")){var v=_.bn("rsef_dpj");var E=_.bn("rses_dpj");v=v!==void 0&&E!==void 0?Math.round(v-E):void 0;if(v!==void 0&&v>0){E=_.vs(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var n=this.poolSize;if(!(E.valuesSeen>=1E9)){if(E.valuesSample.length<n)E.valuesSample.push(v);else{var f=Math.floor(Math.random()*(E.valuesSeen+1));f<n&&(E.valuesSample[f]=v)}E.valuesSeen+=1}_.Bg(this.storagePrefix+"-"+this.innertubeClientName,
E,2592E3);v=E.valuesSample;E=r3I(v);v=v.length<5?void 0:E<400?1:E<1700?2:3;v!==void 0&&(this.JSC$15980_prefCookie.set(this.cookiePrefix+this.innertubeClientName,v),this.JSC$15980_prefCookie.save())}}else _.EC(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15980_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15980_prefCookie.save()};
TLx[Wl]=[xK,V8];var i1R=function(){TLx.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.S(i1R,TLx);var zy1=new _.$Y("PAGE_LOAD_TIME_TOKEN");var RyR=new _.$Y("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var NH=function(v,E){this.JSC$16001_storeWithEntities=v;this.JSC$16001_commandHandler=E;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
NH.prototype.start=function(){this.JSC$16001_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
NH.prototype.observeDownloadingEntities=function(){var v=_.Xks(this.JSC$16001_storeWithEntities.getState().entities).map(function(f){return eAI(f)});
if(v.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var E={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:vTI()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.HR(_.tQ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16001_commandHandler.resolveCommand(E)}this.downloadingEntities=v}else if(this.downloadingEntities.length){var n=Q1Q(this.JSC$16001_storeWithEntities.getState().entities).map(function(f){return eAI(f)});
this.downloadingEntities.filter(function(f){return n.includes(f)}).length&&(v={openPopupAction:E1E()},this.JSC$16001_commandHandler.resolveCommand(v));
this.downloadingEntities=[]}};
NH[Wl]=[fe,_.OO];var t9d;_.uh=function(v,E,n,f,x,y,Q,e){this.JSC$16004_playerApiPromise=v;this.JSC$16004_commandHandler=E;this.JSC$16004_screenManager=n;this.offlineWebClientEligibility=f;this.JSC$16004_prefStorage=x;this.JSC$16004_actionRouter=y;this.entityTypeMap=Q;this.JSC$16004_persistentStorePromiseAccessor=e;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
t9d=function(){var v=_.P().resolve(_.uh),E;_.X(function(n){if(n.nextAddress==1)return v.downloadFailureListenerBound?n.return():_.m(n,v.JSC$16004_playerApiPromise,2);E=n.yieldResult;E.addEventListener("onOfflineOperationFailure",function(f){if(f.failureReason&&f.entityKey&&f.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(f.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var x=_.Of(f.entityKey).entityId;x&&v.JSC$16004_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
x)}else if(_.Z("kevlar_woffle")){x=v.JSC$16004_commandHandler;var y=x.resolveCommand;f=f.failureReason;var Q=_.tQ("TRANSFER_FAILED",void 0,"Download failed");f==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Q=_.tQ("STORAGE_FULL",void 0,"Storage full"));y.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.HR(Q),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
v.downloadFailureListenerBound=!0;_.yQ(n)})};
_.uh.prototype.deleteVideo=function(v,E){var n=this,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return _.m(Q,n.JSC$16004_playerApiPromise,2);f=Q.yieldResult;y={offlineLoggingData:{offlineDeleteReason:(x=E)!=null?x:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.m(Q,f.queueOfflineAction(v,n.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",y),0)})};
_.uh.prototype.pauseVideoDownload=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.JSC$16004_playerApiPromise,2);n=f.yieldResult;n.pauseVideoDownload(v);_.yQ(f)})};
_.uh.prototype.resumeVideoDownload=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.JSC$16004_playerApiPromise,2);n=f.yieldResult;return _.m(f,n.resumeVideoDownload(v),0)})};
_.uh[Wl]=[_.Nq,_.OO,_.nK,RyR,Ne,uM,kRg,gE];var BLb=new _.$Y("DOWNLOAD_STATE_STORE_TOKEN");var vwK=function(v,E){this.JSC$16023_persistentStorePromiseAccessor=v;this.store=E;this.upliftCompletionResolver=new _.Wy},ow6=function(){var v=_.P().resolve(Ew3),E;
_.X(function(n){switch(n.nextAddress){case 1:if(v.upliftImplPromise)return n.return(v.upliftImplPromise);_.vW(n,2);v.upliftImplPromise=nw_(v);return _.m(n,v.upliftImplPromise,4);case 4:v.upliftCompletionResolver.resolve();_.qp(n,3);break;case 2:throw E=_.cW(n),v.upliftCompletionResolver.reject(E),E;case 3:return n.return(v.upliftImplPromise)}})},nw_=function(v){var E,n,f;
return _.X(function(x){switch(x.nextAddress){case 1:return _.Sp("LOGGED_IN")?_.m(x,v.JSC$16023_persistentStorePromiseAccessor(),2):x.return();case 2:E=x.yieldResult;if(!E)return _.FD("vdeur"),x.return();_.FD("vdeus");_.vW(x,3);return _.m(x,fzO(E),5);case 5:n=x.yieldResult;v.store.dispatch(ir9(n));E.observe(function(y){zMX(v.store,y)});
_.qp(x,4);break;case 3:throw f=_.cW(x),_.FD("vdeur"),f;case 4:_.FD("vdeuc"),_.yQ(x)}})},fzO=function(v){var E;
return _.X(function(n){if(n.nextAddress==1)return _.m(n,U5I(v),2);E=n.yieldResult;return n.return(E.reduce(function(f,x){if(!x.data||!x.key||!x.entityType)return f;f[x.entityType]||(f[x.entityType]={});f[x.entityType][x.key]=x.data;return f},{}))})};
vwK[Wl]=[gE,_.lQ];var Ew3;Ew3=new _.$Y("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.j4=new _.$Y("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var OR=function(v,E){this.JSC$16026_persistentStorePromiseAccessor=v;this.transportService=E};
OR.prototype.refresh=function(){var v=this,E,n,f,x;return _.X(function(y){if(y.nextAddress==1)return _.Sp("LOGGED_IN")?_.m(y,v.JSC$16026_persistentStorePromiseAccessor(),2):y.return();if(y.nextAddress!=3)return(E=y.yieldResult)?_.m(y,y3L(E),3):y.return();if((n=y.yieldResult)&&!(Number(n.data.refreshTimestampMs||0)<(0,_.gd)()))return y.return();f={browseId:"SPaccount_downloads"};x=_.Yt(Tk);_.Ms(v.transportService,f,x).then(function(Q){var e;if(E&&(Q==null?void 0:(e=Q.responseContext)==null?void 0:
e.maxAgeSeconds)!==0){var F;e=(Q==null?void 0:(F=Q.responseContext)==null?void 0:F.maxAgeSeconds)||604800;F=String(Math.floor((0,_.gd)())+e*1E3);E.put("service:downloads_settings:fallback",new _.T9({innertubeResponse:Q,refreshTimestampMs:F}))}});
_.yQ(y)})};
OR[Wl]=[_.Yn,_.ok];var kn=function(v,E){this.JSC$16030_playerPromise=v;this.store=E;this.started=!1};
kn.prototype.start=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return v.started?n.return():_.m(n,v.JSC$16030_playerPromise,2);E=n.yieldResult;E.addEventListener("onOrchestrationBecameLeader",v.updateIsLeader.bind(v,!0));E.addEventListener("onOrchestrationLostLeader",v.updateIsLeader.bind(v,!1));if(E.isOrchestrationLeader)v.updateIsLeader(E.isOrchestrationLeader());else{var f=new _.yc("Function isOrchestrationLeader is undefined",{"player.isReady":E.isReady(),"player.playVideo":E.playVideo?
"defined":"undefined"});_.mb(f);v.updateIsLeader(!1)}v.started=!0;_.yQ(n)})};
kn.prototype.updateIsLeader=function(v){this.store.dispatch(_.un({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:v}}))};
kn[Wl]=[_.Nq,_.lQ];var xiK=function(v,E){this.networkStatusManager=v;this.JSC$16033_prefStoragePromise=E;this.redirectsToPreload=["https://youtube.com"]},c6b=function(){var v=_.P().resolve(xiK),E,n,f,x,y,Q;
_.X(function(e){switch(e.nextAddress){case 1:return _.m(e,v.JSC$16033_prefStoragePromise,2);case 2:E=e.yieldResult;if(!(n=E)){e.jumpTo(3);break}return _.m(e,E.get("yt-redirect-prefetch-id"),4);case 4:n=e.yieldResult;case 3:if(n||!v.networkStatusManager.isNetworkAvailable())return e.return();f={cache:"reload",redirect:"manual"};x=_.p(v.redirectsToPreload);y=x.next();case 5:if(y.done){if(!E){e.jumpTo(0);break}return _.m(e,E.set("yt-redirect-prefetch-id",!0,86400),0)}Q=y.value;_.vW(e,8);return _.m(e,
_.n1.fetch(Q,f),10);case 10:_.qp(e,6);break;case 8:_.cW(e);case 6:y=x.next(),e.jumpTo(5)}})};var Ww=function(v){v?(this.container=v,this.containerWasInjected=!0):this.containerWasInjected=!1};
Ww.prototype.openDialog=function(v,E,n){var f=this,x;return _.X(function(y){(x=f.container)==null||x.openDialog(v,E,n);_.yQ(y)})};
Ww.prototype.closeDialog=function(){var v=this,E;return _.X(function(n){(E=v.container)==null||E.closeDialog();_.yQ(n)})};
Ww.prototype.isDialogOpen=function(){var v=this,E,n;return _.X(function(f){return f.return((n=(E=v.container)==null?void 0:E.isDialogOpen())!=null?n:!1)})};
Ww[Wl]=[_.jp(fhU)];_.y6b=new _.$Y("POPUP_CONTROLLER_TOKEN");var pU6=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
pU6.prototype.registerPanel=function(v,E){if(v){this.panelMap.set(v,E);var n=this.pendingPanelResolvers.get(v);n&&(n.resolve(E),this.pendingPanelResolvers.delete(v))}};
pU6.prototype.getPanel=function(v){var E=this,n;return _.X(function(f){return(n=E.panelMap.get(v))?f.return(n):f.return(QFx(E,v))})};
var QFx=function(v,E){var n,f;return _.X(function(x){if(n=v.pendingPanelResolvers.get(E))return x.return(n.promise);f=new _.Wy;v.pendingPanelResolvers.set(E,f);return x.return(f.promise)})},XUU=function(v){pU6.call(this);
var E=this;this.popupController=v;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return E.panelMap.size}}};
_.S(XUU,pU6);_.c=XUU.prototype;_.c.getReloadContinuation=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.getPanel(v),2);n=f.yieldResult;return f.return(n.getReloadContinuation())})};
_.c.showPanel=function(v,E,n,f,x,y,Q){var e=this,F,b,l,r;return _.X(function(a){if(a.nextAddress==1){Q&&e.updatePanelContinuationDatas.set(v,Q);if((F=n)==null?0:(b=F.engagementPanelPopupPresentationConfig)==null?0:b.popupType){l=n.engagementPanelPopupPresentationConfig.popupType;x===void 0&&(x=document.body);var M=a.return,U=e.popupController,d=U.openPopup;a:switch(l){case "PANEL_POPUP_TYPE_DIALOG":var Y="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Y="DROPDOWN";break a;default:throw Error("cj`"+
l);}return M.call(a,d.call(U,v,E,Y,x))}return _.m(a,e.getPanel(v),2)}r=a.yieldResult;(E||y)&&r.updatePanel(E,!1,f,y);r.showPanel(f);_.yQ(a)})};
_.c.hidePanel=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,E.getPanel(v),2);n=f.yieldResult;n.hidePanel();E.popupController.closePopup(v);_.yQ(f)})};
_.c.isVisible=function(v,E){var n=this,f;return _.X(function(x){if(x.nextAddress==1)return E&&!n.panelMap.has(v)?x.return(!1):_.m(x,n.getPanel(v),2);f=x.yieldResult;return x.return(f.isVisible())})};
_.c.updatePanel=function(v,E,n,f,x,y){n=n===void 0?!1:n;var Q=this,e;return _.X(function(F){if(F.nextAddress==1){if(!E&&!x)return F.return();y&&Q.updatePanelContinuationDatas.set(v,y);return _.m(F,Q.getPanel(v),2)}e=F.yieldResult;e.updatePanel(E,n,f,x);_.yQ(F)})};
_.c.registerPanelContent=function(v,E){v&&this.panelContentMap.set(v,E)};
_.c.getPanelContent=function(v){return this.panelContentMap.get(v)};
_.c.getUpdatePanelContinuationData=function(v){return this.updatePanelContinuationDatas.get(v)};
XUU[Wl]=[_.y6b];var $n=function(v,E){this.innertubeTransportService=v;this.JSC$16049_screenManager=E},e4x=function(v){var E;
return!((E=v.panelLoadingStrategy)==null||!E.requestTemplate)};
$n.prototype.makeRequest=function(v){var E=this,n,f;return _.X(function(x){switch(x.nextAddress){case 1:if(!e4x(E)){x.jumpTo(2);break}_.vW(x,3);return _.m(x,_.Mq(E.innertubeTransportService,v),5);case 5:return n=x.yieldResult,n?x.return(n.content):(_.mb(Error("dj")),x.return(void 0));case 3:f=_.cW(x),_.mb(f);case 2:return x.return(void 0)}})};
$n.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
$n.prototype.execute=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r;return _.X(function(a){if(a.nextAddress==1){n=v;f=n.data;x=n.fallbackVe;y=n.parentVe;Q=n.createScreenConfig;e=n.renderFn;F=n.command;E.panelLoadingStrategy=f;var M,U,d=((M=E.panelLoadingStrategy)==null?0:M.screenVe)?(U=E.panelLoadingStrategy)==null?void 0:U.screenVe:x;d&&_.Rs(E.JSC$16049_screenManager,d,y,Q);return(b=E.getContent())?_.m(a,e(b),2):a.jumpTo(2)}return a.nextAddress!=4?e4x(E)?_.m(a,E.makeRequest(F),4):a.return():(r=l=a.yieldResult)?
_.m(a,e(r),0):a.return()})};
$n[Wl]=[_.ok,_.nK];var LS=function(){};
LS.prototype.getContainer=function(){return _.Hq()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
LS.prototype.openSheet=function(v,E){var n=this,f,x,y,Q,e,F;return _.X(function(b){switch(b.nextAddress){case 1:return f={stack:[],error:void 0,hasError:!1},_.vW(b,2,3),x=VK,_.m(b,n.isSheetOpen(),5);case 5:y=b.yieldResult;Krs(f,uoI(x));if(y&&!_.Z("delay_sheet_open_killswitch")){if(E&&n.currentTarget===E)return(Q=n.getContainer())==null||Q.closeSheet(),b.return();n.pendingData={data:v,target:E};return b.return()}v.viewModel&&(v={viewModel:v.viewModel});(e=n.getContainer())==null||e.openSheet(v,E);
n.currentTarget=E;case 3:_.nI(b);hPE(f);_.xh(b,0);break;case 2:F=_.cW(b),f.error=F,f.hasError=!0,b.jumpTo(3)}})};
LS.prototype.closeSheet=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,(E=v.getContainer())==null?void 0:E.closeSheet(),2);if(n.nextAddress!=4)return v.currentTarget=void 0,!v.pendingData||_.Z("delay_sheet_open_killswitch")?n.jumpTo(0):_.m(n,v.openSheet(v.pendingData.data,v.pendingData.target),4);v.pendingData=void 0;_.yQ(n)})};
LS.prototype.isSheetOpen=function(){var v=this,E,n;return _.X(function(f){return f.return((n=(E=v.getContainer())==null?void 0:E.isSheetOpen())!=null?n:!1)})};var xJ=window.documentPictureInPicture;var g1A=_.jU(["dark"]),NDX=_.jU(["system-icons"]),uFX=_.jU(["typography"]),jAX=_.jU(["lang"]),OAE=_.jU(["style"]),A3E=_.jU(["dir"]),VEX=_.jU(["rounded-container"]),D59=_.jU(["style"]),WYN=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Gg=function(v){this.JSC$16061_clientRoot=v;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Gg.prototype.openWindow=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return!_.c_()||E.currentPipWindow?x.return(!1):_.m(x,(n=xJ?xJ:null)==null?void 0:n.requestWindow(v),2);if(x.nextAddress!=3){f=x.yieldResult;if(!f)return x.return(!1);f.addEventListener("pagehide",function(){Fg3(E)});
f.addEventListener("resize",E.handlePipWindowResize);E.pipWindowResizeDelay=new _.Dm(function(){E.currentPipWindow&&_.OL(E.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.fs(E.currentPipWindow.innerWidth,E.currentPipWindow.innerHeight)])},f);
kzG(f);LYX(f);return _.m(x,h2X(f),3)}if(!d5Q())return x.return(!1);E.currentPipWindow=f;E.JSC$16061_eventForwarder=$5L(f,E.JSC$16061_clientRoot);E.pipWindowResizeDelay.start();return x.return(!0)})};
Gg.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Fg3=function(v){if(v.currentPipWindow){var E,n;(E=xJ?xJ:null)==null||(n=E.window)==null||n.close();v.currentPipWindow.removeEventListener("resize",v.handlePipWindowResize);var f;(f=v.pipWindowResizeDelay)==null||f.dispose();v.pipWindowResizeDelay=void 0;var x;(x=v.JSC$16061_eventForwarder)==null||x.stop();v.JSC$16061_eventForwarder=void 0;E=_.p(v.onCloseCallbacks);for(n=E.next();!n.done;n=E.next())n=n.value,n();v.onCloseCallbacks=[];v.currentPipWindow=null}};
Gg.prototype.getWindow=function(){return this.currentPipWindow};
var mi1=function(v,E){var n;(n=v.onCloseCallbacks)==null||n.push(E)};
_.hK.Object.defineProperties(Gg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Gg[Wl]=[M4g];_.wUK=new _.$Y("PICTURE_IN_PICTURE_CONTROLLER");var GzN=function(v,E){this.lengthY=this.lengthX=0;this.lengthX=E.x-v.x;this.lengthY=E.y-v.y};var blb=function(){},h3P=function(v,E){var n;
(n=v.headerElement)==null||n.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:E}))};var lz3=function(){};
lz3.prototype.openPopup=function(v,E,n,f){var x=this,y;return _.X(function(Q){if(!x.container)return Q.return();y={openPopupAction:{popup:E,popupType:n,uniqueId:v}};return Q.return(x.container.handleOpenPopupAction(y,f))})};
lz3.prototype.closePopup=function(v){this.container&&this.container.closePopup(v)};var sFK=function(){this.openTunnels=new Map},g9G=function(v,E,n){if(R2Q(n)){n={handleEvent:function(Q){E&&!E.closed&&typeof E.postMessage==="function"&&Q&&Q.origin&&Q.source===E&&Q.data&&Q.data.action==="gcl_setup"&&E.postMessage({action:"gcl_transfer",
gadSource:2},Q.origin)}};
for(var f=_.p(v.openTunnels),x=f.next();!x.done;x=f.next()){var y=_.p(x.value);x=y.next().value;y=y.next().value;if(x.closed)try{window.removeEventListener("message",y),v.openTunnels.delete(x)}catch(Q){_.mb(Q)}}E&&v.openTunnels.size<15&&(v.openTunnels.set(E,n),window.addEventListener("message",n))}};var r6x=function(){this.clientParams=new Map},Ou1=function(v){for(var E=_.p(v.clientParams.keys()),n=E.next();!n.done;n=E.next())n=n.value,n.startsWith("yt-mini-app-share")&&v.clientParams.delete(n)};var PXx=function(v,E){_.QK.call(this);var n=this;this.shortsController=v;this.storeWithShorts=E;v=_.yC(this.storeWithShorts,_.tmy,function(f){if(f){var x,y=(x=n.shortsController.getRoot())==null?void 0:x.getPlayer(),Q;(x=(Q=n.shortsController.alternativePlayerContainerElement)==null?void 0:Q.getPlayerContainer())&&(y==null||y.appendTo(x))}else{var e;Q=(e=n.shortsController.alternativePlayerContainerElement)==null?void 0:e.getPlayerContainer().querySelector("#player");x=n.shortsController.activeIndex;
(e=(y=n.shortsController.getRoot())==null?void 0:y.querySelector('ytd-reel-video-renderer[id="'+x+'"] #player-container'))&&(Q==null||Q.appendTo(e,void 0,!0))}});
this.addOnDisposeCallback(v)};
_.S(PXx,_.QK);var Tg=function(v,E,n,f,x){var y=this;this.storeWithShorts=v;this.ephemeralResponseStore=E;this.store=n;this.innertubeTransportService=f;this.innertubeTransportLoader=x;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.mc(_.fU);this.isShortsPipActive=_.mc(_.xC);this.nextReelVe=_.ci(56921);this.prevReelVe=_.ci(56922);this.backButtonVe=_.ci(22156);this.TEST_ONLY={getActiveModules:function(){return y.activeModules}}},V61,DU6,azO;
Tg.prototype.initOrDisposeActiveModules=function(v){v?this.activeModules.push(new PXx(this,this.storeWithShorts)):(_.js(this.activeModules),this.activeModules.length=0)};
Tg.prototype.getRoot=function(){return this.rootElement};
Tg.prototype.setActiveIndex=function(v){this.activeIndex=v};
_.KCz=function(v,E){var n,f,x,y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:return n=new R3,(f=n.JSC$11797_getStoreKey(E))&&v.ephemeralResponseStore.has(f)?_.m(F,v.ephemeralResponseStore.get(f),7):_.m(F,azO(v,E),4);case 4:x=F.yieldResult;if(!f){F.jumpTo(3);break}y=jw(x,3600);return _.m(F,v.ephemeralResponseStore.put(f,new _.T9(y)),3);case 7:x=(Q=F.yieldResult)==null?void 0:_.ne(Q);case 3:return x.replacementEndpoint&&(e=_.C(x.replacementEndpoint,_.By))&&x.sequenceContinuation&&(e.sequenceParams=
x.sequenceContinuation),F.return(x)}})};
V61=function(v,E){E=(new t9).JSC$11797_getStoreKey(E);return!!E&&v.ephemeralResponseStore.has(E)};
DU6=function(v,E,n){var f,x,y,Q,e;_.X(function(F){if(F.nextAddress==1){f=new t9;x=f.JSC$11797_getStoreKey(E);if(!x)return F.return();if(n.reelWatchSequenceResponse)return y=jw(n.reelWatchSequenceResponse,3600),v.ephemeralResponseStore.put(x,new _.T9(y)),F.jumpTo(0);if(!v.ephemeralResponseStore.has(x))return F.jumpTo(0);e=n;return _.m(F,v.ephemeralResponseStore.get(x),4)}e.reelWatchSequenceResponse=(Q=F.yieldResult)==null?void 0:_.ne(Q);_.yQ(F)})};
azO=function(v,E){var n=n===void 0?{}:n;var f,x,y;return _.X(function(Q){switch(Q.nextAddress){case 1:if(v.innertubeTransportService){f=v.innertubeTransportService;Q.jumpTo(2);break}if(!v.innertubeTransportLoader){_.UO(Error("fj"));Q.jumpTo(2);break}return _.m(Q,v.innertubeTransportLoader(),4);case 4:f=Q.yieldResult;case 2:return _.m(Q,(x=f)==null?void 0:_.Mq(x,E,n),5);case 5:return y=Q.yieldResult,Q.return(y)}})};
_.hK.Object.defineProperties(Tg.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Tg[Wl]=[POl,_.G9,fe,_.jp(_.ok),_.jp(Jwi)];_.ZlR=new _.$Y("STORAGE_MANAGER_TOKEN");var o3s=new Set(["touchmove","scroll"]);var CXd=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},MoK;
CXd.prototype.enqueue=function(v,E){E===1?this.currentPersistentToast=v:this.queue.push(v);this.openToast()};
CXd.prototype.openToast=function(){var v;(v=this.currentToast)!=null&&v.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.S1K=new _.$Y("TOAST_MANAGER_TOKEN");var Uix;_.q1M=_.qu(function(v){return _.w("basic-content-view-model",{class:_.W8("ytBasicContentViewModelHost",_.SI(v.className))},_.w(_.x6,{cond:function(){return v.data().headline},
then:function(E){return _.w("div",{class:"ytBasicContentViewModelHeadline"},_.w(_.nh,{text:E}))}}),_.w(_.cG,{each:function(){return v.data().paragraphs||[]},
keyBy:"INDEX"},function(E){return _.w("div",{class:"ytBasicContentViewModelParagraph"},_.w(_.x6,{cond:function(){var n=E();return!!(n.header||n.customHeader||n.headline)},
then:function(){return _.w(Uix,{paragraph:E})}}),_.w(_.x6,{cond:function(){return E().asset||E().text},
then:function(){return _.w("div",{class:"ytBasicContentViewModelParagraphContent"},_.w(_.x6,{cond:function(){return E().asset},
then:function(n){return _.w("div",{class:"ytBasicContentViewModelParagraphAsset"},_.w(_.mI,{data:n},{contentPreviewImageViewModel:_.N8}))}}),_.w(_.x6,{cond:function(){return E().text},
then:function(n){return _.w("div",{class:"ytBasicContentViewModelParagraphText"},_.w(_.nh,{text:n}))}}))}}))}))},"Zd");
Uix=_.qu(function(v){var E=v.paragraph;return _.w(_.gF,null,_.w(_.x6,{cond:function(){return E().headline},
then:function(n){return _.w(_.nh,{text:n,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.w(_.mI,{data:function(){return E().header||E().customHeader}},{sectionHeaderViewModel:function(n){return _.w(_.$f,{data:n.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"$d");var KgC=_.qu(function(v){return _.w("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.w(_.x6,{cond:function(){return v.expanded()},
then:function(){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.w(_.x6,{cond:function(){return v.data().expandedTitleImage},
then:function(E){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.w(_.UZ,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E}))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.w(_.nh,{text:function(){return v.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.w(_.nh,{text:function(){return v.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.w(_.nh,{text:function(){return v.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.mI,{data:function(){return v.data().infoButton}},{buttonViewModel:_.C7}),_.w(_.mI,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(E){return _.w(_.C7,{data:E.data,
onClick:function(){var n;(n=v.expandedCallback)==null||n.call(v,!1)}})}})))},
else:function(){return _.w(J6_,Object.assign({},v))}}))},"ae"),diM=_.qu(function(v){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.w(_.x6,{cond:function(){return v.data().collapsedLabelImage},
then:function(E){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.w(_.UZ,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E,alt:""}))}}),_.w(_.nh,{text:function(){return v.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"be"),J6_=_.qu(function(v){var E=_.ij(function(){var n;
return void((n=v.expandedCallback)==null?void 0:n.call(v,!0))});
return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":E},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.w(_.x6,{cond:function(){return v.data().collapsedImage},
then:function(n){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.w(_.UZ,{width:16,height:16,data:n,alt:""}))}}),_.w(_.x6,{cond:function(){return v.data().showLeadingCollapsedLabel},
then:function(){return _.w(diM,Object.assign({},v))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.w(_.nh,{text:function(){return v.data().collapsedTitle}}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.x6,{cond:function(){return!v.data().showLeadingCollapsedLabel},
then:function(){return _.w(diM,Object.assign({},v))}}),_.w(_.mI,{data:function(){return v.data().infoButton}},{buttonViewModel:_.C7}),_.w(_.mI,{data:function(){return v.data().expandButton}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
onClick:function(){var f;(f=v.expandedCallback)==null||f.call(v,!0)}})}})))},"ce");var Iz3=_.qu(function(v){var E=_.p(_.Rj(function(){return v.data().initiallyExpanded})),n=E.next().value,f=E.next().value,x,y=(x=_.P().resolve(_.jp(_.aj)))==null?void 0:x(),Q=function(){var e=v.data().colorData;
if(e)return y?e==null?void 0:e.darkColorPalette:e==null?void 0:e.lightColorPalette};
return _.w("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.tZ({"background-color":function(){var e=Q();return(e==null?0:e.section2Color)?_.Qt(e.section2Color):""}})},_.w(_.mI,{data:function(){return v.data().header}},{expandableMetadataHeaderViewModel:function(e){return _.w(KgC,{data:e.data,
expanded:function(){return!!n()},
expandedCallback:function(F){f(F)}})}}),_.w(_.x6,{cond:function(){return n()},
then:function(){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.w(_.mI,{data:function(){return v.data().expandedContent}},{horizontalShelfViewModel:function(e){return _.w(_.bB,{data:e.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Q})},
videoSummaryContentViewModel:function(e){return _.w(P44,{data:e.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(e){return _.w(_.kx,{data:e.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(e){return _.w(_.q1M,{data:e.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.w(_.mI,{data:function(){return v.data().expandedBottomButtons}},{buttonViewModel:function(e){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.w(_.C7,{data:e.data}))}}))}}))},"de");var Y1M=_.qu(function(v){var E=v.text;var n=v.marqueeSpacing;var f=v.scrollDelay;var x=v.scrollDuration;var y=v.enableMarqueeScroll;v=v.large;var Q=_.p(_.t7(!1,void 0,"kfNqfd")),e=Q.next().value,F=Q.next().value,b=_.p(_.t7(0,void 0,"bYgZbf"));Q=b.next().value;var l=b.next().value,r=_.Ig();b=_.Ig();var a=_.Ig(),M=_.P().resolve(_.CR);_.Xp(function(){if(y()){var Y=a.value.getBoundingClientRect().width,V=r.value.getBoundingClientRect().width;if(Y>V){var O=(M==="ltr"?-1:1)*(Y+(n?n():16));Promise.resolve().then(function(){F(!0);
l(O)})}}});
var U={},d={};return _.w("marquee-scroll",{class:_.W8("ytMarqueeScrollHost",(U.ytMarqueeScrollHostLarge=v,U)),el:r},_.w("div",{id:"marquee-scroll-inner-container",class:_.W8("ytMarqueeScrollInnerContainer",(d.ytMarqueeScrollAnimationEnabled=function(){return e()},d)),
el:b,style:_.tZ({gap:n?(0,_.XZ)(n):"16px","animation-duration":x?v1g(x):"16s","animation-delay":f?v1g(f):"3s","--marquee-translate":(0,_.XZ)(Q)})},_.w("span",{el:a,dir:"auto"},_.w(_.nh,{text:E,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.w(_.x6,{cond:e,then:function(){return _.w("span",{"aria-hidden":"true",dir:"auto"},_.w(_.nh,{text:E,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ee");_.h46=_.qu(function(v){var E=v.data;var n=v.overlayDensity;v=_.ij(function(){E().onTapCommand&&_.lj(E().onTapCommand);return!1});
var f=_.ql(),x={};return _.w("reel-sound-metadata-view-model",{class:_.W8("ytReelSoundMetadataViewModelHost",(x.ytReelSoundMetadataViewModelHostLarge=function(){return(n==null?void 0:n())===1},x)),
"on:click":v,tabindex:0,role:"button","on:keydown":f},_.w("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.w(_.x6,{cond:function(){return E().musicIcon},
then:function(y){return _.w(_.UZ,{data:y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.w("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.w(Y1M,{text:function(){return E().soundMetadata},
enableMarqueeScroll:function(){return!!E().enableMarqueeScroll},
large:function(){return(n==null?void 0:n())===1}}))))},"fe");var A66,VoU,ih,N13,jFK,gwM,Wgp,kS6;A66=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];VoU=_.WG("wil_icon_max_concurrent_fetches",Infinity);
ih=function(v,E,n){var f=this;this.iconSet=v;this.appDirection=E;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.n1.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Z("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Z("wil_icon_network_first");this.renderWhenIdle=_.Z("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Z("wil_icon_load_immediately");this.isPurging=!1;v=function(){f.cacheStorageAvailable&&(f.cacheStorageAsync=_.n1.caches.open("yt-icons").then(function(y){return f.cacheStorageSync=y}).catch(function(){f.cacheStorageAvailable=!1}))};
n=(n==null?void 0:n())||{};n=_.p(Object.entries(n));for(E=n.next();!E.done;E=n.next()){var x=_.p(E.value);E=x.next().value;x=x.next().value;x=Bf(x);DiC(x);this.iconCache[E]=x.cloneNode(!0)}this.isPurging=HlO(this);this.isPurging instanceof Promise?this.isPurging.then(v):v()};
_.Ff$=function(v,E){var n=v.resolveIcon(E);return n?v.renderingMode===1?gwM(v,n,v.renderingMode):(E=v.iconCache[n.url])?(E=E.cloneNode(!0),N13(v,E),gwM(v,n,v.renderingMode,E)):_.u1_(v,n).then(function(f){var x=f?0:1;N13(v,f);return gwM(v,n,x,f)}):(_.bi(new _.yc("Icon not found",{iconShape:E})),function(){})};
N13=function(v,E){if(E){v.counter+=1;v="_yt"+v.counter;E=[E].concat(_.s8(E.getElementsByTagName("*")));E=_.p(E);for(var n=E.next();!n.done;n=E.next())if(n=n.value,n.tagName==="style"&&n.textContent)n.textContent=jFK(n.textContent,v,!0);else for(var f=_.p(n.attributes),x=f.next();!x.done;x=f.next()){x=x.value;x.name==="id"&&(x.value+=v);["mask","fill","clip-path"].includes(x.name)&&(x.value=jFK(x.value,v));if(x.name==="style"){var y=n.style;try{y.cssText=jFK(y.cssText,v,!0)}catch(l){var Q=void 0,e=
void 0,F=void 0,b=void 0;zg({error:((Q=l)==null?void 0:(F=(e=Q).toString)==null?void 0:F.call(e))||"",el:n.outerHTML,style:!!y,cssText:(b=y)==null?void 0:b.cssText})}}x.name==="xlink:href"&&(x.value=x.value.replace(/#(.*)/,"#$1"+v))}}};
jFK=function(v,E,n){var f=/url\(["']?#(.*?)["']?\)/;(n===void 0?0:n)&&(f=/url\(["']?#(.*?)["']?\)/g);return v.replace(f,"url(#$1"+E+")")};
gwM=function(v,E,n,f){return function(x,y){var Q=Object.assign({},{iconColor:"currentcolor",iconWidth:E.size+"px",iconHeight:E.size+"px",iconDisplay:"block"},y);y=_.oc("DIV");var e=Q.iconColor,F=Q.iconFilter;Q="width: "+Q.iconWidth+"; height: "+Q.iconHeight+"; display: "+Q.iconDisplay+";";F&&(Q+=" filter: "+F+";");n===0&&(Q+=" fill: "+e+";");n===1&&(F=E.url,Q+=" -webkit-mask: url("+F+") no-repeat center / cover; mask: url("+(F+") no-repeat center / cover; background-color: ")+e);E.allowMirroring&&
v.appDirection==="rtl"&&(Q+=" transform: scale(-1, 1); transform-origin: center center;");y.setAttribute("style",Q);n===0&&f&&y.appendChild(f);x.appendChild(y)}};
_.u1_=function(v,E){var n,f,x;return _.X(function(y){n=function(Q){return Sc(Q)};
f=E.url;if(!OlK(f))throw Error("gj");x=kS6(v,f);return y.return(x.then(function(Q){return Q.clone().text()}).then(function(Q){var e=n(Q);
Q=E.size;var F=_.oc("DIV");_.Dd(F,e);e=_.fT(F.firstElementChild!==void 0?F.firstElementChild:_.I16(F.firstChild,!0));Q=DiC(e,Q);v.iconCache[f]=Q.cloneNode(!0);delete v.responsePromises[f];return Q}).catch(function(){}))})};
Wgp=function(v){var E,n=(E=v.requestAninmationFrameResolver)==null?void 0:E.promise;n||(v.requestAninmationFrameResolver=new _.Wy,n=v.requestAninmationFrameResolver.promise,_.n1.requestAnimationFrame(function(){var f;(f=v.requestAninmationFrameResolver)==null||f.resolve();v.requestAninmationFrameResolver=null}));
return n};
kS6=function(v,E){var n,f;return _.X(function(x){if(x.nextAddress==1)return v.waitForAnimationFrame?_.m(x,Wgp(v),2):x.jumpTo(2);n=v.responsePromises[E];n||(f=function(){var y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:if(!v.cacheStorageAvailable){y=void 0;F.jumpTo(2);break}if(Q=v.cacheStorageSync){F.jumpTo(3);break}return _.m(F,v.cacheStorageAsync,4);case 4:Q=F.yieldResult;case 3:y=Q;case 2:return e=y,v.isNetworkFirstStrategy?F.return(v.fetchAndUpdateCache(E,e).catch(v.getCacheStorageResponse.bind(v,
E,e))):F.return(v.getCacheStorageResponse(E,e).catch(v.fetchAndUpdateCache.bind(v,E,e)))}})},n=v.renderWhenIdle?new Promise(function(y,Q){_.cP(_.wh,function(){f().then(y).catch(Q)},10)}):f(),v.responsePromises[E]=n);
return x.return(n.catch(function(y){delete v.responsePromises[E];zg({error:(y==null?0:y.toString)?y.toString():"",url:E});throw y;}))})};
ih.prototype.fetchAndUpdateCache=function(v,E){var n=this;return _.X(function(f){return f.return($iC(n,v).then(function(x){Lgx(n,v,x,E);return x}))})};
var $iC=function(v,E){var n;return _.X(function(f){if(v.numFetches<VoU)return v.numFetches+=1,f.return(GSx(v,E).finally(function(){--v.numFetches;if(Object.keys(v.queuedResponseResolvers).length){var x=Object.keys(v.queuedResponseResolvers)[0],y=v.queuedResponseResolvers[x];delete v.queuedResponseResolvers[x];y.resolve($iC(v,x))}}));
n=new _.Wy;v.queuedResponseResolvers[E]=n;return f.return(n.promise)})},GSx=function(v,E,n){n=n===void 0?2:n;
var f;return _.X(function(x){f={credentials:"same-origin",priority:"low"};return x.return(_.n1.fetch(E,f).then(function(y){return y.ok?y:Promise.reject(Error("hj`"+y.status+"`"+y.statusText))}).catch(function(y){if(n>0)return GSx(v,E,n-1);
throw y;}))})},Lgx=function(v,E,n,f){_.X(function(x){return f?x.return(new Promise(function(y){_.cP(_.wh,function(){var Q,e;
return _.X(function(F){switch(F.nextAddress){case 1:if(!v.isNetworkFirstStrategy){Q=void 0;F.jumpTo(2);break}return _.m(F,f.match(E).catch(function(){}),3);
case 3:Q=F.yieldResult;case 2:if(e=Q){F.jumpTo(4);break}return _.m(F,f.put(E,n.clone()).catch(function(b){zg({error:(b==null?0:b.toString)?b.toString():"",url:E})}),4);
case 4:y(),_.yQ(F)}})},50)})):x.return()})};
ih.prototype.getCacheStorageResponse=function(v,E){return _.X(function(n){return E?n.return(E.match(v).then(function(f){return f&&f.ok?f:Promise.reject()})):n.return(Promise.reject())})};
var DiC=function(v,E){E===void 0||v.getAttribute("viewBox")||v.setAttribute("viewBox","0 0 "+E+" "+E);v.setAttribute("focusable","false");v.setAttribute("aria-hidden","true");try{v.style.pointerEvents="none",v.style.display="inherit",v.style.width="100%",v.style.height="100%"}catch(x){var n;zg({error:((n=x)==null?0:n.toString)?x.toString():""});try{v.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(y){var f;zg({error:((f=y)==null?0:f.toString)?y.toString():
""})}}return v},OlK=function(v){for(var E=_.p(A66),n=E.next();!n.done;n=E.next())if(v.startsWith(n.value)&&v.endsWith(".svg"))return!0;
return!1};
ih.prototype.resolveIcon=function(v){return this.iconSet.resolveIcon(v)};
var zg=function(v){_.li(new _.yc("Error in IconManager",v))},HlO=function(v){if(_.Z("wil_icons_cache_purge_killswitch"))return!1;
try{var E=_.n1.localStorage}catch(y){return!1}if(!E||!v.cacheStorageAvailable)return!1;var n=function(y){try{var Q;(Q=E)==null||Q.setItem("yt-icons-last-purged",y.toString())}catch(F){var e;zg({error:((e=F)==null?0:e.toString)?F.toString():""})}},f=Number(E.getItem("yt-icons-last-purged"));
if(!f)return f=new Date,f=f.setDate(f.getDate()-Math.floor(Math.random()*90+1)),n(f),!1;if(function(y,Q){y=new Date(y);Q=new Date(Q);return Q.getMonth()-y.getMonth()+12*(Q.getFullYear()-y.getFullYear())}(f,Date.now())<3)return!1;
try{return _.n1.caches.delete("yt-icons").then(function(y){y&&n(Date.now());return y}).catch(function(){return!1}).finally(function(){v.isPurging=!1})}catch(y){var x;
zg({error:((x=y)==null?0:x.toString)?y.toString():""});return!1}};
ih[Wl]=[Q7w,_.CR,_.jp(FvX)];_.Rt=function(v,E){this.iconManager=v;this.iconsToFetch=E};
_.Rt[Wl]=[_.Oe,_.jp(e31)];var T1b=function(v,E,n){this.requestKey=v;this.obA=E;this.hra=n;this.p2D=function(){return new XMLHttpRequest};
this.tmd=void 0;this.zyR=[]};
T1b.prototype.getLatestChallengeResponse=function(){return this.hra};
var U0U=function(v,E,n){var f,x,y,Q;return _.X(function(e){if(e.nextAddress==1){_.e7("attestation_challenge_fetch");_.FD("att_fs",void 0,"attestation_challenge_fetch");if(!v.tmd)throw new _.PF(9,"Missing fetcher");return _.m(e,v.tmd(E,n),2)}f=e.yieldResult;y=(x=f)==null?void 0:x.bgChallenge;if(!y)throw new _.PF(15,"Missing field");v.hra=f;v.zyR.forEach(function(F){F(f)});
Q=X99(y);_.FD("att_fc",void 0,"attestation_challenge_fetch");rSN("attestation_challenge_fetch");return e.return(Q)})},isU=function(v,E){var n,f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:n=new z7(100,3E5,.25,2),f=void 0;case 2:if(!(n.currBackoffCount_<10)){e.jumpTo(4);break}_.vW(e,5);if(!(n.currBackoffCount_>0)){e.jumpTo(7);break}return _.m(e,fiE(n.getValue()),7);case 7:return _.m(e,ilR(v,E),9);case 9:return x=e.yieldResult,e.return(x);case 5:y=_.cW(e);y instanceof _.PF?f=y:(Q=y instanceof Error?y.message:"Unknown",f=new _.PF(9,Q));Da1(n);e.jumpTo(2);break;case 4:if(f)throw f;throw new _.PF(9,"Unknown error");}})},ilR=function(v,
E){E=wVU(bsl(new m04,E),v.requestKey);
var n=new _.Wy,f=v.p2D();f.open("POST",v.obA);f.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");f.setRequestHeader("Content-Type","application/json+protobuf");f.onload=function(){if(_.$OI(f)){var x=SVz(f.responseText);n.resolve(x)}else n.reject(new _.PF(_.fYN(_.Ga(f)),f.statusText))};
f.onerror=function(){n.reject(new _.PF(_.fYN(_.Ga(f)),f.statusText))};
f.send(E.serialize());return n.promise};var R4P=function(v){this.networkStatusManager=v;this.isDownloaded=pay===void 0?function(){return!1}:pay;
this.isReady=!1;this.ifo=z4x(this)},z4x=function(v){var E;
return _.X(function(n){if(n.nextAddress==1)return _.m(n,gEQ(),2);if(n.nextAddress!=3)return E=n.yieldResult,_.m(n,R_4(E),3);v.pB=n.yieldResult;cgN(v.pB).then(function(){v.isReady=!0});
return n.return(v.pB)})},tob=function(v,E,n){v.pB?(v=v.pB.zV({wO:n,
vCH:!0,fWd:!0}),E.serviceIntegrityDimensions={poToken:v}):_.mb(Error("ij"))};
R4P.prototype.processContext=function(v){var E=this;if(!v.input.match(_.Yt(zz6)))return _.VJ();var n=v.innerTubeRequest,f=n.videoId;return!f||this.isDownloaded(n)||this.networkStatusManager&&!this.pB&&!this.networkStatusManager.isNetworkAvailable()?_.VJ():this.pB?this.isReady?(tob(this,n,f),_.VJ()):new A$(cgN(this.pB).then(function(){tob(E,n,f)})):new A$(this.ifo.then(function(x){return _.X(function(y){if(y.nextAddress==1)return _.m(y,cgN(x),2);
tob(E,n,f);_.yQ(y)})}))};var B1p=new _.$Y("WEB_PO_CONTEXT_PROCESSOR");var vp6=function(v,E){var n=this;this.qQ5=0;var f;this.d2p=(f=E==null?void 0:E.d2p)!=null?f:window;this.networkStatusManagerPromise=E==null?void 0:E.networkStatusManagerPromise;var x;this.requestKey=(x=E==null?void 0:E.requestKey)!=null?x:_.$6("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var y;this.cC8=(y=E==null?void 0:E.cC8)!=null?y:function(F){return new q9(F)};
var Q;f=(Q=E==null?void 0:E.dFC)!=null?Q:function(F,b,l){return new T1b(F,b,l)};
this.bgChallenge=X99(v.bgChallenge);this.ttlSeconds=e91(kC(v.challenge||""));this.xF=f(this.requestKey,_.Z("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.n1.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",v);xRX(this.xF);var e;this.baH=(e=E==null?void 0:E.baH)!=null?e:function(F){_.v8(n.d2p.document,"visibilitychange",function(){n.d2p.document.visibilityState===
"visible"&&F()})}},npp=function(v){if(!v.vY){var E={maxAttempts:5,
nXx:v.ttlSeconds*1E3};ygQ(v.d2p);v.vY=v.cC8({xF:v.xF,n0:{disable:_.Z("html5_web_po_disable_remote_logging"),d0:"aGIf",pu7:uc$("html5_web_po_experiment_ids"),xj7:_.Z("wpo_dis_lfdms")?0:1E3},dFR:E,yHn:v.bgChallenge,tto:pSX});v.qQ5=Date.now();aJ1(v.vY,function(){v.qQ5=Date.now()});
OTs(v.vY,function(){return _.X(function(f){return f.return(EpK(v))})});
var n=v.t2i.bind(v);v.networkStatusManagerPromise&&v.ttlSeconds>0&&v.networkStatusManagerPromise.then(function(f){f.listen("publicytnetworkstatus-online",n)});
v.baH(n)}};
vp6.prototype.t2i=function(){if(Date.now()>this.qQ5+this.ttlSeconds*1E3){var v;(v=this.vY)==null||PU6(v)}};
var EpK=function(v){if(v.duf)return v.duf;if(!v.vY)throw Error("jj");v.duf=new IW({vY:v.vY,xF:v.xF,aow:!0,onError:pSX});return v.duf},XSN=function(v,E){v=new vp6(v,E);
npp(v);EpK(v)};var tD=function(v,E){this.store=v;this.queue=[];this.supportsFocus=_.Z("web_ephemeral_actions_focus");E==null||E.addEventListener("yt-navigate-start",this.reset.bind(this))};
tD.prototype.enqueue=function(v){var E=v.command,n=v.durationMs,f=v.elementToFocus;var x=v.label;var y=v.elementToFocus;v.command?x=_.tQ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:x,shortcut:_.tQ("SHIFT_PLUS_ENTER")}):y&&this.supportsFocus&&(v=x+". "+_.tQ("SHIFT_PLUS_ENTER")+" for more information.",x=_.tQ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:x,shortcut:_.tQ("SHIFT_PLUS_ENTER")},v));n={announcement:x,durationMs:n!=null?n:this.supportsFocus?8E3:void 0};E?n.command=E:f&&this.supportsFocus&&(f.classList.add("ephemeral-action-focusable-element"),
n.selector=f.tagName+".ephemeral-action-focusable-element");this.queue.push(n);opM(this)};
tD.prototype.activate=function(v){var E=_.CtE(this.store.getState());if(E){if(E==null?0:E.command)_.mG(E.command),this.store.dispatch($vz(null));(E==null?0:E.selector)&&this.supportsFocus&&(E=document.querySelector(E.selector),_.exE(E));v.preventDefault()}};
var opM=function(v){if(!_.CtE(v.store.getState())&&v.queue.length){var E=v.queue.shift();E&&(v.previousAnnouncement===E.announcement&&(E.announcement+="\u00a0"),v.store.dispatch($vz(E)),v.previousAnnouncement=E.announcement,v.timeoutId=setTimeout(function(){if(E.selector&&v.supportsFocus){var n;(n=document.querySelector(E.selector))==null||n.classList.remove("ephemeral-action-focusable-element")}v.store.dispatch($vz(null));opM(v)},E.durationMs))}};
tD.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch($vz(null));this.queue.length=0;this.timeoutId=void 0};
tD[Wl]=[_.lQ,_.zB];_.Bw=new _.$Y("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var f1U=new _.$Y("AUTH_SERVICE_TOKEN");var mRL=_.jU(["about:blank"]),FEI;var xPp=new _.$Y("API_IFRAME_TOKEN"),cR3=new _.$Y("FETCH_FN_TOKEN"),yR1=new _.$Y("PARSE_FN_TOKEN"),pbK=new _.$Y("WINDOW_REQUEST_TOKEN");var qVU;qVU=new _.$Y("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.QOC=new _.$Y("MISC_UI_SHARED_FLAGS_TOKEN");var Xbd=function(){};
Xbd.prototype.getFlag=function(v){if(v.configType!==2)throw Error("kj");return eKK(v)};
var eKK=function(v){switch(v.flagType){case "bool":return _.Z(v.flagName);case "int":return _.iX(_.WG(v.flagName));case "double":return _.WG(v.flagName);case "string":return _.$6(v.flagName);case "int32_list":return uc$(v.flagName);case "int64_list":return uc$(v.flagName).map(function(E){return _.iX(E)});
case "string_list":return _.Lk(v.flagName);default:throw Error("lj");}};var vt=function(v,E,n){E=E===void 0?{}:E;M_.call(this,n===void 0?"uninitialized":n);this.env=v;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}];E.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=E.shouldWaitOnAsyncImmediate)};
_.S(vt,M_);vt.prototype.init=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?_.m(f,v(E.env),2):(v(E.env),f.jumpTo(2));if(f.nextAddress!=4)return E.jobSet?_.m(f,E.jobSet.completedResolver.promise,4):f.jumpTo(4);n=_.qs();n.parkOrScheduleJob(function(){E.transition("rendering")},10,"ci");
_.yQ(f)})};
vt.prototype.initialRender=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?_.m(f,v(E.env),2):(v(E.env),f.jumpTo(2));if(f.nextAddress!=4)return E.jobSet?_.m(f,E.jobSet.completedResolver.promise,4):f.jumpTo(4);n=_.qs();n.parkOrScheduleJob(function(){E.transition("rendered")},10,"cr");
_.yQ(f)})};
vt.prototype.afterRenderImmediate=function(v){var E=this,n;return _.X(function(f){if(f.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?_.m(f,v(E.env),2):(v(E.env),f.jumpTo(2));if(f.nextAddress!=4)return E.jobSet?_.m(f,E.jobSet.completedResolver.promise,4):f.jumpTo(4);n=_.qs();n.parkOrScheduleJob(function(){E.transition("after-render-deferred")},10,"carml");
_.yQ(f)})};
vt.prototype.afterRenderDeferred=function(v){var E=this;return _.X(function(n){v(E.env);_.yQ(n)})};var FU6={},mPp=(FU6.rendered={priority:0,callback:function(v){o06(v.injector.resolve(ys))}},FU6);var wbU=!1,Ce9=0,rg9=null,ZfQ=null;var b0C=new _.$Y("NETWORK_SLI_TOKEN");var l1p=function(v,E,n,f){this.networkSli=v;this.fetchFn=E;this.parseFn=n;this.requestFn=f};
l1p.prototype.fetch=function(v,E,n){var f=this,x,y,Q;return _.X(function(e){x=sOK(f,v,E);Q=(y=f.fetchFn)!=null?y:fetch;return e.return(Q(x).then(function(F){return f.handleResponse(F,n)}).catch(function(F){_.li(F);
if((n==null?0:n.expectJsonStrict)&&F instanceof GB&&F.errorType===1)return Promise.reject(F)}))})};
var A4X=function(v,E,n,f){var x,y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:return x=sOK(v,E,n),_.vW(l,2),_.m(l,fetch(x),4);case 4:y=l.yieldResult;_.qp(l,3);break;case 2:throw _.cW(l),new GB(2,"Failed to parse streaming response",x.url);case 3:if(!y.redirected&&!y.ok)throw(Q=v.networkSli)==null||Q.failure(),new _.yc("Streaming fetch request not ok",x.url);if(!y.body)throw new _.yc("No response body in streaming response",x.url);e=y.body.pipeThrough(new TextDecoderStream).getReader();
F=new _.zQ;b={};return l.return(rRR(v,e,F,YgE,b,f))}})},sOK=function(v,E,n){if(v.networkSli){var f=_.R5(_.VT(E,"key"))||"/UNKNOWN_PATH";
v.networkSli.start(f)}f=n;_.Z("wug_networking_gzip_request")&&(f=tNE(n));var x;return new ((x=v.requestFn)!=null?x:window.Request)(E,f)},rRR=function(v,E,n,f,x,y){var Q,e,F,b,l,r,a,M,U;
return _.X(function(d){if(d.nextAddress==1)return _.m(d,E.read(),2);Q=d.yieldResult;e=Q.value;if(F=Q.done)return(b=v.networkSli)==null||b.success(),d.return(x);try{l=n.parse(e)}catch(Y){throw new GB(1,"Failed to parse streaming response",e);}if(l!=null)for(r=_.p(l),a=r.next();!a.done;a=r.next())M=a.value,f(x,M),U=void 0,(U=y)==null||U(x,M);return d.return(rRR(v,E,n,f,x,y))})};
l1p.prototype.handleResponse=function(v,E){var n,f=(n=this.parseFn)!=null?n:JSON.parse;n=v.text().then(function(x){if((E==null?0:E.jspbResponseCtor)&&v.ok)return obE(E.jspbResponseCtor,x);x=x.replace(")]}'","");if((E==null?0:E.expectJsonStrict)&&x)try{var y=f(x)}catch(e){throw new GB(1,"JSON parsing failed after fetch");}var Q;return(Q=y)!=null?Q:f(x)});
v.redirected||v.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),n=n.then(function(x){_.li(new _.yc("Error: API fetch failed",v.status,v.url,x));return Object.assign({},x,{errorMetadata:{status:v.status}})}));
return n};
l1p[Wl]=[_.jp(b0C),_.jp(cR3),_.jp(yR1),_.jp(pbK)];var PCp=new _.$Y("NETWORK_MANAGER_TOKEN");var a1M=[1,2,4,8,16,30],CCK=function(v){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=v.maxTimeMs;this.maxFrameCount=v.maxFrameCount===void 0?Math.ceil(60*v.maxTimeMs/1E3):v.maxFrameCount;v=_.p(a1M);for(var E=v.next();!E.done;E=v.next())this.brokenFrameSummarizers.push(new Z0x(E.value/60*1E3))},MM_=function(v){var E=v.frameCountInternal>=v.maxFrameCount;
return v.elapsedTimeMs>=v.maxTimeMs||E},SxP=function(v){for(var E=[],n=_.p(v.brokenFrameSummarizers),f=n.next();!f.done;f=n.next())f=f.value,f=f.brokenFrameCount!==0?{severityMs:Math.round(f.targetFrameTimeMs),
eventCount:f.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(f.averageDurationBetweenEventsMs)}:void 0,f&&E.push(f);return{summaries:E,monitoringDurationMs:Math.round(v.elapsedTimeMs)}};
_.hK.Object.defineProperties(CCK.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 Z0x=function(v){this.targetFrameTimeMs=v;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.hK.Object.defineProperties(Z0x.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UPb=function(){};
UPb.prototype.start=function(v,E){var n=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var f=new CCK({maxTimeMs:v});this.monitor=f;this.lastSummaryInternal=void 0;this.metadataToLog=E;return new Promise(function(x){var y=function(Q){if(Q===void 0)n.stop(),x(void 0);else if(n.monitor!==f)Q=Object.assign({},SxP(f),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),x(Q);else{var e=n.monitor;if(!MM_(e)){e.frameCountInternal++;if(e.prevTime===void 0)e.startTime=
Q;else for(var F=Q-e.prevTime,b=_.p(e.brokenFrameSummarizers),l=b.next();!l.done;l=b.next()){l=l.value;var r=l.currTimeMs;l.currTimeMs+=F;F>l.targetFrameTimeMs+2&&(l.brokenFrameCount++,l.timeOfFirstBrokenFrameMs===void 0&&(l.timeOfFirstBrokenFrameMs=r),l.timeOfLastBrokenFrameMs=r)}e.prevTime=Q}MM_(n.monitor)?x(n.stop()):_.wh.addJob(y,5,0)}};
_.wh.addJob(y,5,0)})};
UPb.prototype.stop=function(v){if(!this.monitor)return this.lastSummaryInternal;var E=Object.assign({},SxP(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(E.monitoringDurationMs){v=v!=null?v:this.metadataToLog;var n={droppedFramesSummary:E,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};v&&(n[v.type]=v.data);_.eQ("manualSmoothnessMeasurement",n)}this.monitor=void 0;this.lastSummaryInternal=E;this.metadataToLog=void 0;return E};_.qxd=new _.$Y("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var JR1;JR1=function(v){this.JSC$16181_expiringStorage=new Qc(v)};
_.KUO=function(v){if(_.M1s()&&(v=_.JQA(_.xm()+"::"+v)))return new JR1(v)};
JR1.prototype.set=function(v,E,n){n=n!==void 0?Date.now()+n:void 0;this.JSC$16181_expiringStorage.set(v,E,n)};
JR1.prototype.get=function(v){return this.JSC$16181_expiringStorage.get(v)};
JR1.prototype.remove=function(v){this.JSC$16181_expiringStorage.remove(v)};var dPC=new _.$Y("SESSION_STORAGE");_.E9=function(){};
_.E9.getInstance=function(){var v=_.JM("ytglobal.storage_");v||(v=new _.E9,_.Vc("ytglobal.storage_",v));return v};
_.E9.prototype.estimate=function(){var v,E,n;return _.X(function(f){v=navigator;return((E=v.storage)==null?0:E.estimate)?f.return(v.storage.estimate()):((n=v.webkitTemporaryStorage)==null?0:n.queryUsageAndQuota)?f.return(SrX()):f.return()})};
_.Vc("ytglobal.storageClass_",_.E9);var I1R=!1;var Yx_=_.jU(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),hK_=_.jU(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Lv4={"/":_.cg,"/?feature=ytca":_.cg,"/feed/downloads":_.zd9};var eU=function(v,E,n){this.JSC$16194_upliftPromise=v;this.store=E;this.JSC$16194_persistentStorePromiseAccessor=n};
eU.prototype.shouldPreferLocalResponse=function(v){return v.browseId==="FEdownloads"||v.browseId==="FEsmart_downloads"&&_.Z("kevlar_modern_downloads_page")?!0:!1};
eU.prototype.localInnertubeResponse=function(v){var E=this;return _.X(function(n){return v.browseId==="FEdownloads"?_.Z("kevlar_modern_downloads_page")?n.return(ARK(E)):n.return(VMC(E)):v.browseId==="FEsmart_downloads"&&_.Z("kevlar_modern_downloads_page")?n.return(DP1(E)):n.return(Promise.reject(Error("nj")))})};
eU.prototype.canProvideFallbackResponse=function(){return!0};
eU.prototype.localFallbackInnertubeResponse=function(v){var E=this,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return _.m(y,E.JSC$16194_persistentStorePromiseAccessor(),2);case 2:n=y.yieldResult;if(v.browseId!=="SPaccount_downloads"||!n){y.jumpTo(3);break}return _.m(y,y3L(n),4);case 4:if(f=y.yieldResult)return y.return(_.ne(f));case 3:return v.browseId==="FEwhat_to_watch"?y.return(H0R(E)):(x=_.Z("web_offline_continuation_automatic_retry")||_.Z("web_offline_continuation_retry_button"))&&
v.continuation?y.return(gpx(E)):y.return(N_d(E))}})};
var H0R=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$16194_upliftPromise,2);E=_.r$E(v.store.getState().entities);return E.length?n.return(udb(v,E)):n.return(N_d(v))})},VMC=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$16194_upliftPromise,2);if(f.nextAddress!=3)return E=jOR([{offlineItemSectionRenderer:{}}]),_.m(f,O0R(v,E),3);n=f.yieldResult;n.onResponseReceivedActions=[bT("REFRESH_DOWNLOADS")];return f.return(n)})},ARK=function(v){var E,n,f,x,y,Q,e,F,b,l,r,a,M;
return _.X(function(U){if(U.nextAddress==1)return _.m(U,v.JSC$16194_upliftPromise,2);if(U.nextAddress!=3)return E=v.store.getState(),n=E.entities,f=_.pC(n),x=_.QN(n),y=_.ig1(E),Q=_.TR1(E),e=_.zrN(E),F=_.CME(n),b=_.ob(f),l=_.Xq(n),r={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.cEL(f,x,F,y,Q,b,l,e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},a=_.tQ("DOWNLOADS",void 0,"Downloads"),_.m(U,k3_(v,r,a),3);M=U.yieldResult;
M.onResponseReceivedActions=[bT("REFRESH_DOWNLOADS")];return U.return(M)})},DP1=function(v){var E,n,f,x,y,Q,e,F,b;
return _.X(function(l){if(l.nextAddress==1)return _.m(l,v.JSC$16194_upliftPromise,2);if(l.nextAddress!=3)return E=v.store.getState(),n=E.entities,f=_.pC(n),x=_.ob(f),y=_.Xq(n),Q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.pr9(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},e=_.tQ("SMART_DOWNLOADS",void 0,"Smart downloads"),F=f3Q(x,y),_.m(l,k3_(v,Q,e,F),3);b=l.yieldResult;b.onResponseReceivedActions=[bT("REFRESH_DOWNLOADS")];
return l.return(b)})},N_d=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1)return _.m(f,Ey(v.JSC$16194_upliftPromise,v.store),2);E=f.yieldResult;n=jOR([o1E(E)]);return f.return(O0R(v,n))})},gpx=function(v){var E,n,f,x;
return _.X(function(y){if(y.nextAddress==1)return E={},n=v.store.getState().continuation.continuationCommand,_.c8(E,_.bG,n),_.m(y,Ey(v.JSC$16194_upliftPromise,v.store,E,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);f=y.yieldResult;x={};_.c8(x,_.Wez,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:f}}}],targetId:"browse-feedFEwhat_to_watch"});return y.return({responseContext:{},onResponseReceivedActions:[x]})})},jOR=function(v){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:v}}}}]}}},udb=function(v,E){var n,f;
return _.X(function(x){var y={contents:lT(E)};n=y&&y.contents?y:{};_.Z("kevlar_modern_downloads_page")&&(n=Object.assign({},_.QnN(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));f={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:n}}}]}};return x.return(O0R(v,f))})},O0R=function(v,E){var n,f;
return _.X(function(x){if(x.nextAddress==1)return _.m(x,v.JSC$16194_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return n=x.yieldResult,_.m(x,or(n),3);f=x.yieldResult;return x.return({responseContext:{},contents:E,topbar:f})})},k3_=function(v,E,n,f){var x,y;
return _.X(function(Q){if(Q.nextAddress==1)return _.m(Q,v.JSC$16194_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return x=Q.yieldResult,_.m(Q,or(x),3);y=Q.yieldResult;var e=Q.return;var F=f;F=F===void 0?"":F;F={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:n}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.tQ("SETTINGS",void 0,"Settings"),accessibilityText:_.tQ("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:Vf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:F}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:n};
return e.call(Q,{responseContext:{},contents:E,topbar:y,header:{pageHeaderRenderer:F}})})};var WUb=function(){this.moduleRegistry={};this.fetchCount=0};
WUb.prototype.isFetching=function(){return this.fetchCount>0};
var Af=function(v,E){v.moduleRegistry[E.toString()]={asyncId:E,isFetching:!1};return v};
WUb.prototype.JSC$16205_loadModules=function(){for(var v=this,E=new Map,n=[],f=_.p(_.rV.apply(0,arguments)),x=f.next();!x.done;x=f.next()){x=x.value;var y=this.moduleRegistry[x];y?y.resolver?E.set(x,y.resolver):(y.resolver=new _.Wy,E.set(x,y.resolver),n.push(y.asyncId),y.isFetching=!0):(y=new _.Wy,E.set(x,y),y.resolve(void 0))}n.length&&(this.fetchCount+=1,_.so(_.mN.getMultipleAsync.apply(_.mN,_.s8(n)).then(function(Q){for(var e=0;e<n.length;e++){var F=Q[e],b=v.moduleRegistry[n[e].toString()];b.isFetching=
!1;b.resolver.resolve(F)}}).catch(function(Q){for(var e=_.p(n),F=e.next();!F.done;F=e.next()){F=F.value;
var b=v.moduleRegistry[F.toString()];b.resolver=void 0;b.isFetching=!1;E.get(F.toString()).reject(Q)}}),function(){--v.fetchCount}));
return Promise.all([].concat(_.s8(E.values())).map(function(Q){return Q.promise}))};_.Vw=new _.$Y("MODULE_REGISTRY_TOKEN");var $P_={},LU_=($P_.rendered={priority:0,callback:function(v){a:{var E=void 0;try{var n;b:{if(_.wL9()){var f=_.qLQ(_.xm()+"::pom");if(f){var x=new nt(f);break b}}x=void 0}var y=(n=x)==null?void 0:n.get("role_text");if(!y)break a;E={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:y}]}}}}}}catch(F){}E&&v.injector.resolve(_.OO).resolveCommand(E)}try{var Q=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Q){var e=JSON.parse(Q);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
e&&v.injector.resolve(_.OO).resolveCommand(e)}}catch(F){}}},$P_);var G3O,T_O={},i03=(T_O.initialized={priority:10,callback:function(){G3O=ar()}},T_O.rendering={callback:function(v){var E;
return _.X(function(n){if(n.nextAddress==1)return _.m(n,G3O,2);E=n.yieldResult;if(!E.endpoint)throw Error("pj`"+_.n1.location.href);SU(v,E);_.yQ(n)})}},T_O);var zK3={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(_.s8(_.Z("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(v){var E=v.stack;if(E.includes("chrome://")||E.includes("chrome-extension://")||v.message.includes("chrome-extension://")||E.includes("moz-extension://")||E.includes("local.adguard.org")||E.includes("auctioneer3.50million.club")||E.includes("youtubedownloader")||E.includes("youtube_home_page")||E.includes("is_youtube_video_no_longer_available")||
E.includes("switchScreenSizeHack")||E.includes("yt_main_big_banner.js")||E.includes("YouTubeCenter.js")||E.includes("/mytube.js")||E.includes("JSON.parseWrapper")||E.includes("/inj_js/common.js")||E.includes("firebug-lite")||E.includes(".repl.co/")||E.includes("linkfix")||E.includes("playAfterAd")||v.message.includes("Access is denied for this document")&&E.includes("<anonymous>")||v.fileName==="user-script"||v.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
E.includes("<anonymous>"))return!0;if(E.includes("https://www.youtube.com"))return!1;v=E.split("\n");if(!v.length)return!1;if(v.length<=3&&E.includes("s.onloadeddata"))return!0;E=0;for(var n=_.p(v),f=n.next();!f.done;f=n.next())f=f.value,(f.includes("https://")||f.includes("http://"))&&E++;return E/v.length>.95},
weight:0},{callback:function(v){return v.message==="Unknown Error"&&v.name.indexOf("NS_")===0},
weight:100},{callback:function(v){if(!_.n9)return!1;var E=v.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||v.message.includes("available to complete this operation"),n=v.stack.includes("webcomponents")&&v.message==="Object doesn't support this action";v=v.message.includes("object that does not implement interface Element");return E||n||v},
weight:0},{callback:function(v){return v.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(v){return v.message==="Operation is not supported"&&(v.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(v){return v.stack.includes("eval code (eval (code:1:1)")||v.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(v){return v.message.includes("Permission denied")&&v.stack.includes("this.domHandler")?!0:v.name.includes("TypeError")&&v.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(v){if(!v.stack)return!1;var E=v.stack.trim().split("\n");E.length&&E[0].endsWith("Error: "+v.message)&&E.shift();E.length&&E[E.length-1].includes("at window.onerror (")&&E.pop();if(!E.length)return!0;if(v.message==="Script error.")return E[0].includes("www.youtube.com")||E.length>=2&&E[0].startsWith("at new")&&E[1].startsWith("at window.onerror");if(v.message==="Unexpected token")return!0;v=_.p(E);for(E=v.next();!E.done;E=v.next())if(E=E.value,!(E.includes("<anonymous>")||
E.startsWith("load@")||E.startsWith("global code@")||E.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(v){return v.message==="Cannot read property 'experiments'"&&v.stack.includes("/s/player/")},
weight:500},{callback:function(v){return v.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(v){return v.stack.includes("/embed.js")?(v.params&&v.params&&(v.params.name="56"),!0):!1},
weight:1},{callback:function(){var v;if(v=_.yH)v=/Chrome\/(\d+)/.exec(_.lE()),v=(v?parseFloat(v[1]):NaN)>=66;return!(v||_.c2&&_.x8(65)||_.aP&&_.x8(12.1)||hO&&_.x8(79))},
weight:500}]};var RKx={},tMd=(RKx.initialized={priority:10,callback:function(v){v.injector.addProvider({provide:M4g,useValue:v.root});v.injector.addProvider({provide:gXM,useValue:qZ1});v.injector.addProvider({provide:NL0,useValue:zK3});var E={};v.injector.addProvider((E.provide=uN3,E.useFactory=function(n,f){return function(){ZAN(n,f)}},E[Wl]=[gXM,
NL0],E));v.injector.addProvider({provide:BL,useClass:BL})}},RKx);var B_O={},vbR=(B_O.initialized={priority:3,callback:function(){var v;if(v=PcL()){v=v.replace("/",".");var E=_.Ef();E.set("tz",v);E.save();v=!0}else v=!1;v||(v=_.Ef(),v.set("utco",-Math.floor((new Date).getTimezoneOffset())),v.save())}},B_O);var Ebp={},nbC=(Ebp.initialized={priority:10,callback:function(v){v.injector.resolve(BL).start();v=_.Pp();var E=_.Sp("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Sp("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Sp("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Sp("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.pe(_.zuE(),{mainAppWeb:Object.assign({},v,{pageType:E})});_.pe(tP9(),{mainAppWeb:Object.assign({},v,{pageType:E})});
_.pe(BkQ(),{mainAppWeb:v});_.pe(vYE(),{mainAppWeb:v});b34(function(){_.Qw(BkQ(),"FAILURE");_.Qw(vYE(),"FAILURE")});
g39();NH$();f7E()}},Ebp);var obC={},fLK=(obC.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.FD("dl"),_.qs().processSignal("pcl");else{var v=function(){_.FD("dl");_.qs().processSignal("pcl");window.removeEventListener("load",v)};
window.addEventListener("load",v)}}},obC);var xn6={},cjC=(xn6.rendering={priority:0,callback:function(){var v=_.qs();v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor",5E3)}},xn6);var yj6=function(){};
_.S(yj6,rI);
yj6.prototype.resolveCommand=function(v,E){var n,f,x,y,Q,e,F,b;return _.X(function(l){x=(n=_.C(v,_.U7g))==null?void 0:(f=n.dialog)==null?void 0:f.commentReplyDialogRenderer;if(!x)throw new _.yc("No dialog in createCommentReplyDialogEndpoint");Q=(y=E.form)==null?void 0:y.event;if(!Q)throw new _.yc("Event not passed in when resolving command");e=_.p(Q.composedPath());for(F=e.next();!F.done;F=e.next())if(b=F.value,b.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||b.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return b.showReplyDialog(x),l.return();
_.yQ(l)})};var nJ=function(v){this.pageRequestService=v;this.JSC$16220_prefetchCoordinator=SQK()};
_.S(nJ,rI);nJ.prototype.resolveCommand=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){n=_.C(v,xhS);if((f=n)==null||!f.taskId)throw Error("qj");x=n.taskId;_.vW(Q,2);return _.m(Q,_.ha1(E.pageRequestService,v,{},"").then(function(e){if(!e)throw Error("rj");},function(e){throw Error("sj`"+e);
}),4)}if(Q.nextAddress!=2)return JGC(E.JSC$16220_prefetchCoordinator,x),_.qp(Q,0);
y=_.cW(Q);Dp(E.JSC$16220_prefetchCoordinator,x,y);_.yQ(Q)})};
nJ[Wl]=[P_];var oN=function(v){this.innertubeTransportService=v};
_.S(oN,rI);oN.prototype.resolveCommand=function(v){var E=this,n,f;return _.X(function(x){n=_.C(v,yh6);if(n.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||n.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")f=n.boolValue?2:1,_.jO.getInstance().setState(f,!0,!0);return _.m(x,_.Mq(E.innertubeTransportService,v),0)})};
oN[Wl]=[_.ok];var fJ={},pzd=(fJ.addToPlaylistEndpoint=Ac(y8),fJ.addToToastAction=Ac(c6),fJ.adsControlFlowOpportunityReceivedCommand=Ac(kS),fJ.captionLanguageSelectActionCommand=Ac(ZS),fJ.captionPickerEndpoint=Ac(Cd),fJ.changeMiniAppPlayStateCommand=Ac(pd),fJ.changeTimelyActionVisibilityCommand=Ac(xL),fJ.channelCreationFormEndpoint=Ac(Ec),fJ.clearLocationCommand=Ac(cC),fJ.clearUrlParamCommand=Ac(Q8),fJ.copyLinkCommand=Ac(J2),fJ.copyTextEndpoint=Ac(Ln),fJ.createCommentReplyDialogEndpoint=oqA(yj6),fJ.createPlaylistServiceEndpoint=
Ac(Kd),fJ.dismissDialogEndpoint=Ac(eb),fJ.entityUpdateCommand=Ac(To),fJ.feedbackEndpoint=Ac(Rq),fJ.getAnswerCommand=Ac(A0P),fJ.getPaymentsClientTokenCommand=Ac(QA),fJ.getTranscriptEndpoint=Ac(yA),fJ.googlePaymentBillingCommand=Ac(X8),fJ.googlePaymentPurchaseManagerCommand=Ac(ex),fJ.hideEngagementPanelEndpoint=Ac(Fk),fJ.insertRichSectionCommand=Ac(om),fJ.listMutationCommand=Ac(fd),fJ.logGtmCommand=Ac(nd),fJ.notifyDropdownOptionSelectedCommand=Ac(Xk),fJ.openAdAllowlistInstructionCommand=Ac(_.Wd),fJ.openOnePickAddVideoModalCommand=
Ac(dp),fJ.persistSubscriptionsDisplayPreferencesCommand=Ac(DS),fJ.pingingEndpoint=Ac($S),fJ.playlistEditEndpoint=Ac(YK),fJ.playlistVotingRefreshPopupCommand=Ac(h2),fJ.refreshPanelEndpoint=Ac(mf),fJ.saveImageToDeviceEndpoint=Ac(Go),fJ.scrollToSectionEndpoint=oqA(Vlo),fJ.seekToVideoTimestampCommand=Ac(Me),fJ.selectCountryCommand=Ac(HC),fJ.setCookieCommand=Ac(gp),fJ.setLocalStorageCommand=Ac(v6),fJ.setPrefStorageEntryCommand=Ac(uA),fJ.setSettingEndpoint=Ac(oN),fJ.sfvAudioItemPlaybackCommand=Ac(Sb),fJ.shareImageCommand=
Ac(jb),fJ.sharingProviderDataCommand=Ac(Oc),fJ.showCaptionLanguageSelectActionCommand=Ac(Uc),fJ.showDialogCommand=Ac(lA),fJ.showEngagementPanelEndpoint=Ac(sc),fJ.showSheetCommand=Ac(rp),fJ.showTransientPlayerScrimOverlayCommand=Ac(qe),fJ.submitFormWithValidationFlowCommand=Ac(vC),fJ.talkToRecsDeselectCommand=Ac(Eg),fJ.talkToRecsNextCommand=Ac(nB),fJ.talkToRecsSelectCommand=Ac(oJ),fJ.talkToRecsUpdateTextCommand=Ac(fB),fJ.toggleEngagementPanelCommand=Ac(PC),fJ.undoFeedbackEndpoint=Ac(Bd),fJ.updateEngagementPanelContentCommand=
Ac(am),fJ.updateUrlParamCommand=Ac(pB),fJ.verifyCommand=Ac(Ec),fJ.webNativeShareCommand=Ac(kK),fJ.webSubmitFormCommand=Ac(A2),fJ.ACK_PLAYABLES_3P_DATA_CONSENT=Ac(WC),fJ.CANCEL_NAVIGATION=Ac($K),fJ.COPY_SHARE_URL=Ac(Ld),fJ.MINI_APP_EXIT_DIALOG_SEEN=Ac(TV),fJ.MINI_APP_OPEN_URL=Ac(GV),fJ.REQUEST_MINI_APP_FULLSCREEN=Ac(iA),fJ.RESUME_NAVIGATION=Ac(zV),fJ.SHARE_PLAYABLE_WITH_HIGH_SCORE=Ac(Rm),fJ.TELL_US_WHY=Ac(t4),fJ);
_.Z("web_enable_prefetching_videos_on_home")&&(pzd.prefetchWatchCommand=Ac(nJ),pzd.registerTasksCommand=Ac(g9));_.Z("enable_share_panel_navigation_logging_fix_on_web")&&(pzd.shareEntityServiceEndpoint=Ac(wp));var BTl=Object.assign({},pzd);var QKC={},Xzd=(QKC.initialized={priority:10,callback:WEF},QKC);var e_x={},F9M=(e_x.initialized={callback:function(v){var E={},n={};MjI().install((E.document_disposed={callback:function(){_.Z("finalize_all_timelines")?PFN():Qf();Pey("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Vj1();var f=v.injector.resolve(BL);f.intervalId!==void 0&&(f.intervalId&&_.wh.cancelJob(f.intervalId),f.intervalId=void 0,--f.currentPartitionIndex,f=eEi(f),f>0&&ug4({mainAppWeb:_.Pp(),survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));IQz(YV);h$!=null&&
h$.flush();ND&&ND.snapshotAndFlush()}},E),(n.flush_logs={callback:function(){_.Fu()}},n))}},e_x);var mnd={},wz_=(mnd.rendered={priority:0,callback:function(){var v=new xE1;v.increment("STARTED");if(_.MX("LOGGED_IN")&&_.MX("SERVER_VERSION")!=="test"&&_.MX("SERVER_VERSION")!=="dev"&&!GS1()&&!Lg1()){v.increment("EXECUTING");var E=document.createElement("iframe");E.style.display="none";_.PrG(E,2,_.bW("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.MX("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(E);v.increment("DONE")}}},mnd);var bWb={},lLd=(bWb.rendered={callback:function(){SQK().resume()}},bWb);var sKR={acknowledgeChannelTouStrikeCommand:lG(jx),addToPlaylistServiceEndpoint:lG($9),addToPlaylistEndpoint:lG($9),addUpcomingEventReminderEndpoint:lG(nx),browseEndpoint:lG(cGK),channelCreationFormEndpoint:lG(Ab),channelCreationServiceEndpoint:lG(VA),claimLegacyYoutubeChannelEndpoint:lG(aJ),clearSearchHistoryEndpoint:lG(Th),clearWatchHistoryEndpoint:lG(i0),commerceActionCommand:sd(sR),createBackstagePostEndpoint:lG(w4),createBroadcastCommand:lG(o3),createCommentEndpoint:lG(d4),createCommentReplyEndpoint:lG(KB),
createLiveChatPollEndpoint:lG(fx),createPlaylistServiceEndpoint:lG(Lx),crossAccountChannelTransferEndpoint:lG(tb),deleteLiveChatMessageCommand:lG(x9),deletePlaylistEndpoint:lG(G8),deleteVideoEndpoint:lG(Qn),dismissalEndpoint:lG(Og),feedbackEndpoint:lG(kL),flagEndpoint:lG(vw),getAccountSwitcherEndpoint:lG(RJ),verifyCommand:lG(mm),getAccountsListInnertubeEndpoint:lG(v1),getCommentsFromInboxCommand:lG(J9),getDownloadActionCommand:lG(VF),getFlowCommand:sd(Gh),getKidsBlocklistPickerCommand:lG(ER),getNotificationMenuEndpoint:lG(Q$p),
getPaymentInstrumentsParamsCommand:lG(MH),getPaymentsClientTokenCommand:sd(sR),getPdgBuyFlowCommand:lG(k9),getReportFormEndpoint:lG(nS),getSearchInVideoCommand:lG(xn),getAnswerCommand:lG(fS),getSurveyCommand:lG(pS),getTranscriptEndpoint:lG(FA),getPostVideoPreviewEndpoint:lG(l0),decorateMessageEndpoint:lG(b0),likeEndpoint:lG(DH),liveChatActionEndpoint:lG(lf),liveChatEndpoint:lG(bf),liveChatItemContextMenuEndpoint:lG(m3),liveChatPurchaseMessageEndpoint:lG(s0),liveChatReplayEndpoint:lG(we),manageLiveChatUserEndpoint:lG(P1),
metadataUpdateCommand:lG(U0),moderateLiveChatEndpoint:lG(a3),modifyChannelNotificationPreferenceEndpoint:lG(Y9),notificationOptOutEndpoint:lG(h9),openSuperStickerBuyFlowCommand:lG(re),performCommentActionEndpoint:lG(Ug),playlistEditEndpoint:lG(z8),playlistEditorEndpoint:lG(T8),profileCardCommand:lG(E0),recordNotificationInteractionsEndpoint:lG(A9),reelWatchEndpoint:lG(R3),refreshPanelEndpoint:lG(H1),removeUpcomingEventReminderEndpoint:lG(ZN),resolveLocationCommand:lG(Sj),revealBusinessEmailCommand:lG(ZH),
searchEndpoint:lG(_.XIb),sendLiveChatMessageEndpoint:lG(Cx),sendLiveChatVoteEndpoint:lG(M$),setSettingEndpoint:lG(H6),shareEntityServiceEndpoint:sd(u0),sharingProviderDataCommand:lG(yn),showEngagementPanelEndpoint:lG(ge),showMoreDrawerCommand:lG(uf),showSheetCommand:lG(jj),showDialogCommand:lG(N$),subscribeEndpoint:lG(g4),transcriptSubmitCaptionCorrectionCommand:lG(e4),undoFeedbackEndpoint:lG($L),unsubscribeEndpoint:lG(NY),updateBackstagePostEndpoint:lG(r4),updateCommentEndpoint:lG(YL),updateCommentReplyEndpoint:lG(IJ),
updateCommentsSettingsEndpoint:lG(hb),updateCreatorChannelInnertubeCommand:lG(MY),updateKidsBlacklistEndpoint:lG(ot),updateEngagementPanelContentCommand:lG(O0),updatePdgFeatureEnablementCommand:lG(W1),updatedMetadataEndpoint:lG(q$),validateChannelHandleCommand:lG(Sx),updateChannelPageSettingsEndpoint:lG(CB),verifyAgeEndpoint:lG(LB),watchEndpoint:sd(XA),whitelistEditEndpoint:lG(lh),ypcCancelRecurrenceEndpoint:lG(r9),ypcCompleteTransactionEndpoint:lG(Pw),ypcFixInstrumentEndpoint:lG(Zp),ypcGetCartEndpoint:lG(at),
ypcGetOffersEndpoint:lG(CS),ypcHandleTransactionEndpoint:sd(S4),ypcLogWalletAnalyticDataEndpoint:lG(UR),ypcOffersEndpoint:lG(qH),ypcPauseSubscriptionCommand:lG(JD),ypcRedeemCodeEndpoint:lG(KS),ypcResumeSubscriptionCommand:lG(d9),ypcUpdateFopEndpoint:lG(Zp)},xv={},rj6=(xv.GET_ACCOUNT_MENU=lG(B6),xv.GET_NOTIFICATIONS_MENU=lG(pIp),xv.GET_NOTIFICATIONS_INBOX=lG(Kx),xv.GET_UNSEEN_NOTIFICATION_COUNT=lG(I3),xv.GET_USER_MENTION_SUGGESTIONS=lG(sg),xv.LOAD_GUIDE=lG(yGO),xv.SUBMIT_FEEDBACK=lG(W6),xv),ct={},
PrR=(ct.CONTINUATION_REQUEST_TYPE_BROWSE=lG(P6),ct.CONTINUATION_REQUEST_TYPE_SEARCH=lG(cw),ct.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=lG(w9),ct.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=lG(zh),ct.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=lG(Jb),ct.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=lG(qY),ct.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=lG(B1),ct.CONTINUATION_REQUEST_TYPE_GET_PANEL=lG(DN),ct),aLU={player:_.Z("web_streaming_player")?sd(bh):sd(XA),watchNext:lG(m7)},ZWU={player:sd(XA),reelItemWatch:lG(R3),
reelWatchSequence:lG(t9)},Cr3={watchEndpoint:sd(bh)},Mt1={commandEndpointMap:sKR,signalEndpointMap:rj6,continuationEndpointMap:PrR,watchEndpointMap:aLU,reelWatchEndpointMap:ZWU,streamingEndpointMap:Cr3};var SmK,Und,qm6,Jjp={disableAllTransitions:(Und=(SmK=window).matchMedia)==null?void 0:(qm6=Und.call(SmK,"(prefers-reduced-motion: reduce)"))==null?void 0:qm6.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var K9_=new _.$Y("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.dnU=new _.$Y("VIEW_TRANSITION_MANAGER_TOKEN");var ILP=function(v){this.config=v;this.transitionTasksMap=new Map;v=_.p(v.transitionConfigs);for(var E=v.next();!E.done;E=v.next())E=_.p(E.value).next().value,this.transitionTasksMap.set(E,[])};
ILP[Wl]=[K9_];var $RG={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var GDs=["videoPrimaryInfoRenderer","title"],THA=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var YmO;YmO=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.h_C=_.qu(function(v){v=_.Ue(v,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var E=v.data,n=v.playlistData,f=v.expanded,x=v.onExpandClick,y=v.isReadyToResume,Q=function(){var l;return!((l=n())==null||!l.contents)},e=function(){var l=n();
return l&&l.totalVideos&&l.currentIndex!==void 0?l.currentIndex+1+" / "+l.totalVideos:""};
v=_.ij(function(){_.yg(_.P().resolve(_.hf))});
var F=_.ij(function(){Q()&&x&&x()}),b={};
return _.w("ytd-miniplayer-info-bar",{class:_.W8("ytdMiniplayerInfoBarHost",(b.ytdMiniplayerInfoBarHasPlaylistData=Q,b)),"on:click":F},_.w("div",{class:"ytdMiniplayerInfoBarContent"},_.w("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":v},_.w(_.nh,{text:function(){var l=E();var r=n();if(r==null?0:r.contents){var a;l=(a=_.r1L(r))==null?void 0:a.title}else l=l==null?void 0:l.miniplayerTitle;return zWA(l)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.w("h1",null,_.w(_.nh,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var l=E();var r=n();l=y()?{simpleText:_.tQ("CONTINUE_WATCHING",void 0,"Continue watching")}:(r==null?0:r.contents)?r.titleText:l==null?void 0:l.miniplayerSubtitle;return zWA(l)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w(_.x6,{cond:function(){return!!e()&&!y()},
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.w("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.w("span",null,e))}}),_.w(_.x6,{cond:y,
then:function(){return _.w(KRF,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:YmO})}}))),_.w(_.x6,{cond:Q,
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarExpand"},_.w(WT,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(l){x&&(x(),l.stopPropagation())}}},
iconName:function(){return f()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ge");var AjK;AjK=_.qu(function(v){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.w(WT,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:v.onTap}},
iconName:"yt-icons:close"}))},"he");
_.VtP=_.qu(function(v){v=_.Ue(v,{playabilityStatus:void 0,isDisabled:!1});var E=v.size,n=v.playabilityStatus,f=v.isDisabled,x=_.Ig();v=_.p(_.t7(void 0,void 0,"bJr0Se"));var y=v.next().value,Q=v.next().value;v=_.mc(_.xC);var e=!1,F=function(){return E().height<=0};
_.Xp(function(){var a=E(),M=F(),U=y();U&&!M&&U.setInternalSize(a.width,a.height)});
_.mM(function(){var a,M,U;return _.X(function(d){if(d.nextAddress==1){a=_.P().resolve(_.hf);M=a.getPlayerElement();if(!a.isMiniplayerActive()||!M||!x.value)return d.return();M.appendTo(x.value);return _.m(d,M.getPlayerPromise(),2)}U=d.yieldResult;U.setSizeStyle(!1,!0);Q(U);_.yQ(d)})});
_.Fp(function(){b()});
_.Xp(function(){var a=y();if(a)if(f()){var M=a.getPlayerState();(e=M===-1||M===1||M===3)&&a.pauseVideo()}else b()});
var b=function(){if(e){e=!1;var a;(a=y())==null||a.playVideo()}},l=_.ij(function(){_.yg(_.P().resolve(_.hf))}),r={};
return _.w("ytd-miniplayer-player-container",{class:_.W8("ytdMiniplayerPlayerContainerHost",(r.ytdMiniplayerPlayerContainerHidden=F,r.ytdMiniplayerPlayerContainerHostShortsPip=v,r)),style:_.tZ({width:function(){return E().width+"px"},
height:function(){return E().height+"px"}})},_.w("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:x}),_.w(_.x6,{cond:function(){return!!n()&&!_.z2y(n())},
then:function(){return _.w(dfw,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var a;return((a=n())==null?void 0:a.errorScreen)||null},
status:function(){var a;return((a=n())==null?void 0:a.status)||null}})}}),_.w(_.x6,{cond:f,
then:function(){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":l},_.w(AjK,{onTap:function(){_.P().resolve(_.hf).close()}}))}}))},"ie");_.DnK=_.qu(function(v){var E=v.toastData;var n=_.Ig();v=_.p(_.Rj(function(){return!!E()}));
var f=v.next().value,x=v.next().value;v=_.p(_.t7(!1,void 0,"xkrBze"));var y=v.next().value,Q=v.next().value,e=function(){var l;return _.JC((l=E())==null?void 0:l.data.title)};
_.l5(function(){_.YO.requestAvailability();E()&&x(!1)});
var F,b;_.Xp(function(){f()&&(_.jK(n.value,"iron-announce",{text:E().label+" "+e()}),F&&_.wh.cancelJob(F),F=_.wh.addLowPriorityJob(function(){Q(!0)},2500))});
_.Xp(function(){y()&&(b&&_.wh.cancelJob(b),b=_.wh.addLowPriorityJob(function(){x(!1);Q(!1)},300))});
v={};return _.w("ytd-miniplayer-toast",{el:n,class:_.W8("ytdMiniplayerToastHost",(v.ytdMiniplayerToastOpening=function(){return f()},v.ytdMiniplayerToastClosing=function(){return y()},v))},_.w(_.x6,{cond:function(){var l;
return(l=E())==null?void 0:l.data},
then:function(l){return _.w(WK1,{className:"ytdMiniplayerToastThumbnail",data:l,width:78})}}),_.w("div",{class:"ytdMiniplayerToastInfo"},_.w("div",{class:"ytdMiniplayerToastLabel"},function(){var l;
return(l=E())==null?void 0:l.label}),_.w("div",{class:"ytdMiniplayerToastTitle"},e)))},"je");var cHE;var XhX=new Set,Qp9=null;var FJQ=null;var gbM=_.qu(function(v){var E=v.progressState;var n=v.multiMarkersPlayerBarRenderer;var f=v.progressBarWidth;var x=function(){return ls1(n())},y=function(){return P21(E())},Q=function(){return f()*(E().playedTime/E().videoDuration)};
return _.w("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.w(_.cG,{each:x},function(e,F){return _.w(HW0,{modifiedProps:y,chapters:x,index:F,playedProgressWidth:Q,backgroundGradientPosition:function(){var b=y(),l=x(),r=F(),a=Q();return(b.playedTime-Ir(_.C(l[r],dw)))/b.playedTime*a}})}))},"ke"),HW0=_.qu(function(v){var E=v.modifiedProps;
var n=v.chapters;var f=v.index;var x=v.playedProgressWidth;var y=v.backgroundGradientPosition;v={};v=_.W8("ytChapteredProgressBarChapteredPlayerBarChapter",(v.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Q().isScrubbing},v.ytChapteredProgressBarHoveredMacroMarker=function(){return Q().scrubberHovering},v.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Q().videoPosition==="seen"},v));
var Q=function(){return asI(E(),n(),f())},e=function(){var F=E();
var b=n(),l=f();if(asI(F,b,l).videoPosition!=="active")F=0;else{var r=Ir(_.C(b[l],dw));F=(F.playedTime-r)/((Ir(_.C(b[l+1],dw))||F.videoDuration)-r)}return F};
return _.w("div",{class:v,style:_.tZ({width:function(){var F=E(),b=n(),l=f(),r=_.C(b[l],dw);b=_.C(b[l+1],dw);return(b?Ir(b)-Ir(r):F.videoDuration-Ir(r))/F.videoDuration*100+"%"},
"background-color":function(){a:{var F=Q();switch(F.videoPosition){case "pending":F=F.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":F=F.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:F=""}}return F},
"background-size":function(){return(Z_$(Q())?x():"")+"px"},
"background-position-x":function(){return(Z_$(Q())?y():"")+"px"}})},_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var F=E(),b=n(),l=f();if(asI(F,b,l).videoPosition==="seen")var r=0;else r=Ir(_.C(b[l],dw)),b=Ir(_.C(b[l+1],dw))||F.videoDuration,F=F.videoDuration*F.percentLoaded,r=b<=F?1:r>=F?0:(F-r)/(b-r);return"width: "+r*100+"%"}}),_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.tZ({width:function(){return e()*100+"%"},
"background-size":function(){return(Z_$(Q(),e())?x():"")+"px"},
"background-position-x":function(){return(Z_$(Q(),e())?y():"")+"px"}})}))},"le");var N2U=function(v,E){E=E===void 0?Mw1:E;var n,f=[],x,y=!1;return function(){var Q=_.rV.apply(0,arguments);if(y&&n===this&&E(Q,f))return x;x=v.apply(this,Q);y=!0;n=this;f=Q;return x}}(function(v){var E=v.heatMarkers,n=v.minHeightDp===void 0?0:v.minHeightDp,f=v.maxHeightDp===void 0?60:v.maxHeightDp;
var x=x===void 0?!1:x;var y=1E3/E.length;v=[];v.push({x:0,y:100});for(var Q=0;Q<E.length;Q++){var e=void 0,F=((e=_.C(E[Q],z8w))==null?void 0:e.heatMarkerIntensityScoreNormalized)||0;e=(Q+.5)*y;F=100-_.Jf(F*100,n/321*100,f/321*100);Q!==0||x||v.push({x:0,y:F});v.push({x:e,y:F});Q===E.length-1&&v.push({x:1E3,y:F})}v.push({x:1E3,y:100});E="";for(n=0;n<v.length;n++)x=v[n],n===0?x="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(f=TDA(v[n-1],v[n-2],x),y=TDA(x,v[n-1],v[n+1],!0),x=" C "+(f.x.toFixed(1)+","+f.y.toFixed(1)+
" "+y.x.toFixed(1)+","+y.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),E+=x;return E});var uLp=_.qu(function(v){var E=v.progressBarProps;var n=v.config;var f={};v=_.W8("ytHeatSeekerHost",(f.ytHeatSeekerHighContrast=v.highContrast,f));var x=function(){return EA$(n().chapterData)};
return _.w("yt-progress-bar-heatseeker",{class:v,style:function(){var y;return"height: 320px; display: "+(E().isDragging&&((y=x())==null?0:y.heatMarkers)?"block":"none")}},_.w(_.x6,{cond:x,
then:function(y){return _.w(_.x6,{cond:function(){return y().heatMarkers},
then:function(){return _.w("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.w("path",{d:function(){return N2U(y())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"me");var jK1=_.qu(function(v){var E=v.progressBarProps;var n=v.config;v={};v=_.W8("ytProgressBarLineProgressBarLine",(v.ytProgressBarLineProgressBarLineRounded=function(){return n().rounded},v.ytProgressBarLineProgressBarLineBottomInset=function(){return n().position===2},v));
return _.w("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.w("div",{class:v},_.w("div",{class:"ytProgressBarLineProgressBarBackground"}),_.w("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+E().percentLoaded*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var f=E();return"width: "+(f.videoDuration?_.Jf(f.hoveredTime/f.videoDuration,0,1):0)*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+t19(E())*100+"%"}})))},"ne");
jK1.idomCompat=!0;var OW0=_.qu(function(v){var E=v.progressBarProps;var n=v.playheadData;var f=v.interpolateDotPosition;var x=v.hidePlayhead;v={};var y=_.W8("ytProgressBarPlayheadProgressBarPlayheadDot",(v.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return E().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!E().isDragging&&x()},v));
return _.w("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.tZ({"margin-left":function(){return BHN(E())*100+"%"},
transform:function(){return"translateX(-"+(f()?BHN(E())*12:6)+"px)"}})},_.w(_.x6,{cond:function(){var Q;
return(Q=_.SI(n)())==null?void 0:Q.playheadImage},
then:function(Q){var e={};return _.w("div",{class:_.W8("ytProgressBarPlayheadProgressBarPlayheadCustom",(e.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return E().isDragging},e.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!E().isDragging&&x()},e)),
style:_.tZ({"transform-origin":function(){return(f()?BHN(E())*20:10)+"px center"}})},_.w(_.UZ,{data:Q,
alt:"","aria-hidden":"true"}))},
else:function(){return _.w("div",{class:y,style:_.tZ({"transform-origin":function(){return(f()?BHN(E())*12:6)+"px center"}})})}}))},"oe");
OW0.idomCompat=!0;var pJ=function(v,E,n,f,x,y){this.getProgressBarRect=v;this.updateProgressBarRect=E;this.getFilmstripYPosition=n;this.setFineScrubbingDraggedTime=f;this.updateFilmStripDraggedYDistance=x;this.resetFilmStripYOffset=y;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.ka(this.onThrottledSeek,100,this)},kZ6=function(v,E,n){return function(f){v.handleClick(f,E(),n())}},L9C=function(v,E){return function(n){W9b(v,
n,$n3(n),E())}},GZC=function(v,E){return function(n){W9b(v,n,{x:n.clientX,
y:n.clientY},E())}},iWU=function(v,E,n){return function(f){var x=E(),y=n();
T2_(v,f,$n3(f),x,y,!0);if(y.onTouchMove)y.onTouchMove(x)}},R_K=function(v,E,n){return function(f){z_0(v,f,E(),n())}},ttx=function(v,E){return function(){v.handleMouseLeave(E())}},B26=function(v,E,n){return function(){var f=E(),x=n();
Qg(v,f,x);if(x.onTouchEnd)x.onTouchEnd(f)}},vRx=function(v,E,n){return function(){var f=E(),x=n();
Qg(v,f,x);if(x.onTouchEnd)x.onTouchEnd(f)}},ERU=function(v,E,n){return function(){Qg(v,E(),n())}},nR0=function(v,E,n){return function(f){!n().disableScrubbing&&v.startPosition&&z_0(v,f,E(),n())}},oR0=function(v,E,n){return function(){if(!n().disableScrubbing)if(v.startPosition){var f=E(),x=n();
Qg(v,E(),n());if(x.onTouchEnd)x.onTouchEnd(f)}else E().setState({isDragging:!1})}},$n3=function(v){v=v.touches[0];
return{x:v.clientX,y:v.clientY}},z_0=function(v,E,n,f){if(E.buttons!==1){if(E.movementX||E.movementY)E.preventDefault(),E.stopPropagation(),v=fd3(v,n,E.clientX),n.setState({isHovering:!0,
hoveredTime:v*n.videoDuration})}else xaR(n),T2_(v,E,{x:E.clientX,y:E.clientY},n,f,!1)};
pJ.prototype.handleMouseLeave=function(v){xaR(v)};
var xaR=function(v){v.isHovering&&v.setState({isHovering:!1,hoveredTime:0})},W9b=function(v,E,n,f){v.startPosition||(v.startPosition=n,v.updateProgressBarRect(),v.controlsWereVisibleBeforeDragging=f.controlsVisible,E.stopPropagation(),_.Z("medium_progress_bar_modification")||E.preventDefault())},T2_=function(v,E,n,f,x,y){if(v.startPosition)if(y&&x.isInlinePlayback&&v.startPosition&&!v.hasDraggedTheMinimumDistance&&Math.abs(n.y-v.startPosition.y)>Math.abs(n.x-v.startPosition.x))Qg(v,f,x);
else if(E.preventDefault(),E.stopPropagation(),f.videoDuration&&(v.startPosition&&!v.hasDraggedTheMinimumDistance&&(v.hasDraggedTheMinimumDistance=Math.abs(n.x-v.startPosition.x)>=1),x.enableFineScrubbing&&(v.startPosition&&(v.isDraggedForFineScrubbing=-(n.y-v.startPosition.y)>=60),!v.startPosition||n.y>=v.startPosition.y||(f.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:C2A(f.draggedTime,f,x.chapterData)}),v.setFineScrubbingDraggedTime(f.draggedTime),v.updateFilmStripDraggedYDistance(v.startPosition.y,
n.y,f))),v.hasDraggedTheMinimumDistance)){E=fd3(v,f,n.x);if(v.isDraggedForFineScrubbing){var Q;(Q=f.playerApi)==null||Q.pauseVideo();f.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:f.draggedTime,filmStripXDistance:C2A(E*f.videoDuration,f,x.chapterData)})}x.enableFineScrubbing&&(!x.enableFineScrubbing||v.getFilmstripYPosition(f)<68)||f.setState({draggedTime:E*f.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:v.controlsWereVisibleBeforeDragging});var e;(e=
x.cancelAutohideControlsFn)==null||e.call(x)}},Qg=function(v,E,n){var f=n.enableFineScrubbing&&E.fineScrubbingActiveState!=="off";
if(E.isDragging||f){f={isDragging:!1,playedTime:E.draggedTime,controlsVisible:v.controlsWereVisibleBeforeDragging};n.enableFineScrubbing&&E.fineScrubbingActiveState!=="on"&&(v.resetFilmStripYOffset(),f.fineScrubbingActiveState="off");var x=x===void 0?FJQ:x;var y=_.lc(0);y&&x&&_.Jc(y,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(E.playedTime*1E3),endMediaTimeMs:Math.round(E.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});E.setState(f);
v.seekThrottle.fire(E.draggedTime,E,7);_.Z("mweb_new_progress_bar_play_on_seek")&&v.resumeVideo(E);n.unmuteOnSeek&&(n=E.playerApi,E.volumeMuted&&(n==null||n.unMute()))}else E.setState({controlsVisible:!E.controlsVisible}),(y=n.triggerAutohideControlsAfterDelayFn)==null||y.call(n);v.startPosition=null;v.hasDraggedTheMinimumDistance=!1;v.isDraggedForFineScrubbing=!1;v.controlsWereVisibleBeforeDragging=!1};
pJ.prototype.handleClick=function(v,E,n){this.updateProgressBarRect();v.stopPropagation();v=fd3(this,E,v.clientX)*E.videoDuration;E.setState({playedTime:v});if(E.playerState!==2){var f;(f=n.triggerAutohideControlsAfterDelayFn)==null||f.call(n)}this.seekThrottle.fire(v,E,7)};
var fd3=function(v,E,n){v=v.getProgressBarRect(E);return _.Jf(0,(n-v.left)/v.width,1)};
pJ.prototype.resumeVideo=function(v){if(v.draggedTime<v.videoDuration){var E;(E=v.playerApi)==null||E.playVideo()}};
pJ.prototype.onThrottledSeek=function(v,E,n){if(E=E.playerApi){var f;if((f=E.getVideoData())==null?0:f.isLive)f=this.getProgressState(E),v+=(f==null?void 0:f.seekableStart)||0;E.seekTo(v,void 0,void 0,void 0,n)}};
pJ.prototype.getProgressState=function(v){var E=v==null?void 0:v.getPresentingPlayerType();return v==null?void 0:v.getProgressState(E)};var p5x,yA1,QCP,eZ0,cAM,F_M,maM,w5U,bcU;p5x=_.qu(function(v){var E=v.progressBarProps;var n=v.config;var f=v.progressBarWidthPx;var x=v.chapterData;var y=JHL(E,function(){return n().isShortsPage}),Q=function(){return!E().isHovering&&!n().isShortsPage};
v={};var e=_.W8("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(v.ytPlayerStoryboardHostMwebShorts=function(){return n().isShortsPage&&!1},v));
return _.w("yt-player-storyboard",null,_.w(_.x6,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.w(_.x6,{cond:y,then:function(F){return _.w(_.x6,{cond:Q,then:function(){return _.w("div",{class:e,"aria-hidden":"true"},_.w(cAM,{props:E,config:n,isBigboard:!0,chapterData:x}))},
else:function(){return _.w(yA1,{props:E,frame:F,config:n,progressBarWidthPx:f,chapterData:x})}})}})}}))},"pe");
_.X5d=_.qu(function(v){var E=v.progressBarProps;var n=JHL(E,v.isShortsPage);return _.w("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.w(_.x6,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.w(_.x6,{cond:n,then:function(f){return _.w(QCP,{frame:f,props:E,isBigboard:!0})}})}}))},"qe");
yA1=_.qu(function(v){var E=v.props;var n=v.frame;var f=v.config;var x=v.progressBarWidthPx;v=v.chapterData;var y={};y=_.W8("ytPlayerStoryboardHost",(y.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},y.ytPlayerStoryboardHostInlinePlayer=function(){return f().isInlinePlayer},y.ytPlayerStoryboardHostFadeIn=function(){return f().useFadeInAnimation},y));
return _.w("div",{class:y,"aria-hidden":"true",style:function(){var Q=E(),e=MvX(n()),F=x();Q=SYQ(Q)/Q.videoDuration;var b=F*Q,l=e/2+6;e=F-(e/2+6);return"left: "+(b<=l?l/F*100:b>=e?e/F*100:Q*100)+"%"}},_.w(_.x6,{cond:function(){var Q=E();
return!(f().isShortsPage&&Q.videoDuration<15)},
then:function(){return _.w(QCP,{frame:n,props:E,isBigboard:!1})}}),_.w(cAM,{props:E,
config:f,isBigboard:!1,chapterData:v}))},"re");
QCP=_.qu(function(v){var E=v.frame;var n=v.props;var f=v.isBigboard;var x=function(){var e,F;return(F=(e=n().playerApi)==null?void 0:e.getVideoContentRect())!=null?F:{width:0,height:0}},y=function(){return MvX(E())},Q=function(){var e=E();
return e?e.height/e.rows:0};
v={};v=_.W8((v.ytPlayerStoryboardBigboardImageWrapper=f,v.ytPlayerStoryboardStoryboardImageWrapper=function(){return!f()},v));
return _.w("div",{class:v,style:function(){return"width: "+(f()?x().width:y())+"px; height: "+(f()?x().height:Q())+"px;"}},_.w(eZ0,{frame:E,
storyboardWidth:y,storyboardHeight:Q,storyboardScale:function(){return(f()?x().width:y())/y()}}))},"se");
eZ0=_.qu(function(v){var E=v.frame;var n=v.storyboardWidth;var f=v.storyboardHeight;var x=v.storyboardScale;var y=function(){var Q=E().row,e=E().column,F=n(),b=f(),l=x();return{left:-e*F*l,top:-Q*b*l}};
return _.w("img",{src:function(){return E().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+y().left+"px; top: "+y().top+"px; width: "+E().width*x()+"px; height: "+E().height*x()+"px;"}})},"te");
cAM=_.qu(function(v){var E=v.props;var n=v.config;var f=v.isBigboard;var x=v.chapterData;v={};v=_.W8("ytPlayerStoryboardMetadata",(v.ytPlayerStoryboardMetadataBigboard=f,v));return _.w("div",{class:v},_.w(_.x6,{cond:f,then:function(){return _.w(_.gF,null,_.w(F_M,{props:E,config:n}),_.w(_.x6,{cond:function(){a:{var y=E();var Q=n(),e=x(),F;if((Q==null?0:Q.activeChapter)&&((F=_.C(Q==null?void 0:Q.activeChapter,dw))==null?0:F.title))y=!0;else{Q=_.p(nAE(e));for(Q=Q.next();!Q.done;Q=Q.next()){y=(Q=_.C(Q.value,
tY6))&&U4E(y,Q);break a}y=!1}}return y},
then:function(){return _.w(maM,{props:E,config:n,isBigboard:!0,chapterData:x})}}))},
else:function(){return _.w(_.gF,null,_.w(maM,{props:E,config:n,isBigboard:!0,chapterData:x}),_.w(F_M,{props:E,config:n}))}}))},"ue");
F_M=_.qu(function(v){var E=v.props;var n=v.config;v={};v=_.W8("ytPlayerStoryboardTimestamp",(v.ytPlayerStoryboardTimestampShorts=function(){return n().isShortsPage},v.ytPlayerStoryboardTimestampIsHovering=function(){return E().isHovering||n().isShortsPage&&!0},v));
return _.w("div",{class:v},_.w(_.gF,null,function(){return _.qYX(SYQ(E()))}))},"ve");
maM=_.qu(function(v){var E=v.props;var n=v.config;var f=v.isBigboard;var x=v.chapterData;v={};f=_.W8("ytPlayerStoryboardTitle",(v.ytPlayerStoryboardTitleBigboard=f,v));return _.w("div",{class:f},_.w(_.x6,{cond:function(){return!n().isShortsPage},
then:function(){return _.w(w5U,{props:E,activeChapter:function(){return n().activeChapter},
chapterData:x})}}))},"we");
w5U=_.qu(function(v){var E=v.props;var n=v.activeChapter;var f=v.chapterData;return _.w(_.gF,null,_.w(_.cG,{each:function(){return nAE(f())},
keyBy:"INDEX"},function(x){return _.w(_.gF,null,_.w(_.x6,{cond:function(){return _.C(x(),tY6)&&U4E(E(),_.C(x(),tY6))},
then:function(){return _.w(bcU,{timedMarker:function(){return _.C(x(),tY6)}})}}))}),_.w(_.x6,{cond:function(){var x;
return n()&&((x=_.C(n(),dw))==null?void 0:x.title)},
then:function(x){return _.w(_.nh,{text:x,noPreWrap:!0})}}))},"xe");
bcU=_.qu(function(v){var E=v.timedMarker;return _.w(_.gF,null,_.w("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.w(_.B8,{icon:function(){return E().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.w(_.nh,{text:function(){return E().label},
noPreWrap:!0}))},"ye");_.ld3=_.qu(function(v){var E=v.progressBarProps;var n=v.playheadData;var f=v.config;v=_.Ig();var x=_.Ig(),y=_.Ig(),Q=_.p(_.t7({width:0,left:0},void 0,"NcXsUb")),e=Q.next().value,F=Q.next().value,b=function(){y.value&&F(y.value.getBoundingClientRect())},l=function(){e().width<=0&&b();
return e()};
D4("resize",b);var r=new pJ(l,function(){},function(){return 0},function(){},function(){},function(){}),a=function(){return E()};
Q=_.p(_.t7(!1,void 0,"ZsF6Xc"));var M=Q.next().value,U=Q.next().value;Q=_.ij(function(){U(!0);f().position===2?setTimeout(function(){b()},100):b()});
var d=_.ij(function(){U(!1);ttx(r,a)()}),Y=_.ij(function(uE){f().doSeekOnClick&&kZ6(r,a,f)(uE);
return!1}),V=_.ij(function(uE){L9C(r,a)(uE);
return!1}),O=_.ij(function(uE){GZC(r,a)(uE);
return!1}),T=_.ij(function(uE){iWU(r,a,f)(uE);
return!1}),L=_.ij(function(uE){R_K(r,a,f)(uE);
return!1}),xX=_.ij(function(){B26(r,a,f)();
return!1}),t=_.ij(function(){vRx(r,a,f)();
return!1}),QE=_.ij(function(){ERU(r,a,f)();
return!1});
D4("mousemove",nR0(r,a,f));D4("mouseup",oR0(r,a,f));_.l5(function(){m4I(x.value);U(!1);b();oR0(r,a,f)()});
var MF={};MF=_.W8("ytPlayerProgressBarHost",function(){return f().className},(MF.ytPlayerProgressBarHostReadOnly=function(){return f().disableScrubbing},MF.ytPlayerProgressBarHostHidden=function(){return f().hideProgressBar&&!M()},MF.ytPlayerProgressBarHostLowerPlayer=function(){return f().position===0},MF.ytPlayerProgressBarHostBottomEdge=function(){return f().position===1},MF.ytPlayerProgressBarHostBottomInset=function(){return f().position===2},MF.ytPlayerProgressBarHostCustom=function(){return f().position===
3},MF));
var K1={},JG=_.W8("ytPlayerProgressBarBackground",(K1.ytPlayerProgressBarBackgroundHide=function(){return f().position===2&&!M()&&!E().isDragging},K1));
K1={};K1=_.W8("ytPlayerProgressBarDragContainer",(K1.ytPlayerProgressBarDragContainerBottomEdge=function(){return f().position===1},K1));
var $X={};$X=_.W8("ytPlayerProgressBarProgressBar",($X.ytPlayerProgressBarProgressBarInset=function(){return f().position===2},$X.ytPlayerProgressBarProgressBarInsetMinimized=function(){return f().position===2&&!M()&&!E().isDragging},$X));
var HI=function(){return Math.floor(t19(E())*100)};
return _.w("yt-progress-bar",{el:v,class:MF},_.w(_.x6,{cond:function(){return f().position===2},
then:function(){return _.w("div",{class:JG})}}),_.w("div",{el:x,
"on:click":Y,"on:touchstart":V,"on:touchmove":T,"on:mouseenter":Q,"on:mousedown":O,"on:mouseleave":d,"on:mousemove":L,"on:mouseup":t,"on:touchend":xX,"on:touchcancel":QE,class:K1,role:"slider","aria-valuenow":HI,"aria-valuetext":function(){return HI()+"%"},
tabindex:0,"aria-label":_.tQ("SEEK_SLIDER")},_.w("div",{el:y,class:$X},_.w(uLp,{progressBarProps:E,config:f,highContrast:function(){return!!f().isInlinePlayback}}),_.w(_.x6,{cond:function(){return f().chapterData&&oA1(f().chapterData)},
then:function(){return _.w(gbM,{progressState:E,multiMarkersPlayerBarRenderer:function(){return f().chapterData},
progressBarWidth:function(){return e().width}})},
else:function(){return _.w(jK1,{progressBarProps:E,config:f})}}),_.w(OW0,{progressBarProps:E,
playheadData:n,interpolateDotPosition:function(){return f().position!==2},
hidePlayhead:function(){return f().playheadDotBehavior===1&&!M()}}))),_.w(p5x,{progressBarProps:E,
config:function(){return{activeChapter:rHG(E(),f().chapterData),getProgressBarWidthPx:function(){return l().width},
isShortsPage:!!f().isShortsPage,isInlinePlayer:!!f().isInlinePlayback,useFadeInAnimation:!!f().isInlinePlayback}},
progressBarWidthPx:function(){return e().width},
chapterData:function(){return f().chapterData}}))},"ze");
_.ld3.idomCompat=!0;Object.assign({},_.fsQ(),{setState:function(){},
domMeasurements:{},appApi:_.RWL(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var sCd;
_.rA3=_.qu(function(){var v,E=(v=_.YJ(KJE().playerApi))!=null?v:void 0;v=_.p(_.t7(!1,void 0,"HLFBmb"));var n=v.next().value,f=v.next().value;v=_.p(_.t7(!1,void 0,"lHH9bc"));var x=v.next().value,y=v.next().value;v=_.p(_.t7(!1,void 0,"zsY7yd"));var Q=v.next().value,e=v.next().value;v=_.p(_.t7(!1,void 0,"KeHQgc"));var F=v.next().value,b=v.next().value;v=_.p(_.t7(0,void 0,"gLLCj"));var l=v.next().value,r=v.next().value;v=_.p(_.t7(0,void 0,"s3RYkf"));var a=v.next().value,M=v.next().value;v=_.p(_.t7(!1,void 0,
"Dn608e"));var U=v.next().value,d=v.next().value;v=_.p(_.t7(0,void 0,"AnkH1b"));var Y=v.next().value,V=v.next().value;v=_.p(_.t7(0,void 0,"QYNL0b"));var O=v.next().value,T=v.next().value;v=_.p(_.t7("",void 0,"Yzw45d"));var L=v.next().value,xX=v.next().value;v=_.p(_.t7(-1,void 0,"iiVI0c"));var t=v.next().value,QE=v.next().value,MF=_.o0(function(){var K1={controlsVisible:n(),isOverlayHidden:x(),shouldWaitToHideControls:Q(),isDragging:F(),isHovering:U(),videoDuration:Y(),playedTime:O(),videoId:L(),draggedTime:a(),
hoveredTime:l(),playerState:t()};return Object.assign({},_.fsQ(),K1,{domMeasurements:{},setState:function(JG){JG.controlsVisible!==void 0&&f(JG.controlsVisible);JG.isOverlayHidden!==void 0&&y(JG.isOverlayHidden);JG.shouldWaitToHideControls!==void 0&&e(JG.shouldWaitToHideControls);JG.isDragging!==void 0&&b(JG.isDragging);JG.isHovering!==void 0&&d(JG.isHovering);JG.draggedTime!==void 0&&M(JG.draggedTime);JG.hoveredTime!==void 0&&r(JG.hoveredTime);JG.videoDuration!==void 0&&V(JG.videoDuration);JG.playedTime!==
void 0&&T(JG.playedTime);JG.videoId!==void 0&&xX(JG.videoId);JG.playerState!==void 0&&QE(JG.playerState)},
appApi:_.RWL(),playerApi:E})},void 0,"ZW7y9");
_.mM(function(){E==null||E.addEventListener("onVideoProgress",ph1(MF));E==null||E.addEventListener("onVideoDataChange",yHL(MF));E==null||E.addEventListener("onStateChange",x4E(MF))});
_.Fp(function(){if(E==null?0:E.isReady())E==null||E.removeEventListener("onVideoProgress",ph1(MF)),E==null||E.removeEventListener("onVideoDataChange",yHL(MF)),E==null||E.removeEventListener("onStateChange",x4E(MF))});
return _.w("desktop-shorts-player-controls",null,_.w(sCd,{playerControlsProps:MF}))},"Ae");
sCd=_.qu(function(v){var E=v.playerControlsProps;return _.w("div",{class:"desktopShortsPlayerControlsWizHost"},_.w(_.ld3,{progressBarProps:E,config:function(){return{isShortsPage:!0,hideProgressBar:E().videoDuration<30&&E().playerState!==2&&!E().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Be");_.Nw(_.AHX);_.PW1=_.qu(function(v){var E=v.data;return _.w("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.w(_.Ed,{command:function(){return E().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.w(_.x6,{cond:function(){return E().iconName},
then:function(n){return _.w(_.B8,{icon:n})}}),_.w("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return E().text}),_.w(_.x6,{cond:function(){return E().showEndChevron},
then:function(){return _.w(_.B8,{icon:"CHEVRON_RIGHT"})}})))},"Ce");var ad1=_.qu(function(v){var E=v.data;var n=v.overlayDensity;v={};return _.w("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.w(_.mI,{data:function(){return E().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(f){var x=f.data;
return _.w(_.ez,{data:function(){return(n==null?void 0:n())===1?Object.assign({},x(),{avatar:{avatarViewModel:Object.assign({},_.C(x().avatar,_.HT),{avatarImageSize:"AVATAR_SIZE_48"})}}):x()}})}}),_.w(_.mI,{data:function(){return E().avatarStackViewModel}},{avatarStackViewModel:function(f){return _.w(_.FK,{data:f.data})}}),_.w(_.nh,{className:_.W8("ytReelChannelBarViewModelChannelName",(v.ytReelChannelBarViewModelChannelNameLarge=function(){return(n==null?void 0:n())===1},v)),
text:function(){return E().channelName},
linkInheritColor:!0,userInput:!0}),_.w("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.w(_.mI,{data:function(){return E().subscribeButtonViewModel}},{subscribeButtonViewModel:function(f){var x=f.data;
return _.w(bJP,{data:function(){return(n==null?void 0:n())===1?Object.assign({},x(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},x().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):x()},
isOverlay:!1})},
buttonViewModel:_.C7})),_.w("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.w(_.mI,{data:function(){var f,x;return(x=_.C((f=E())==null?void 0:f.sponsorButtonViewModel,MHU))==null?void 0:x.sponsorButton}},{buttonViewModel:function(f){return _.w(_.C7,{data:f.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"De");var Zc_=_.qu(function(v){var E={};return _.w("yt-reel-multi-format-link-view-model",{class:_.W8("ytReelMultiFormatLinkViewModelHost",(E.ytReelMultiFormatLinkViewModelHostTall=!0,E.ytReelMultiFormatLinkViewModelHostLarge=function(){var n;return((n=v.overlayDensity)==null?void 0:n.call(v))===1},E))},_.w(_.Ed,{ariaLabel:function(){return v.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.F$(v.data().command)},
dangerousStopPropagation:!1},_.w("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.w(_.x6,{cond:function(){return v.data().icon},
then:function(n){return _.w(_.UZ,{data:n,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.w(_.nh,{text:function(){return v.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ee");
Zc_.idomCompat=!0;var CWR=_.qu(function(v){var E=v.data;var n=v.overlayDensity;var f=_.Ig();v=_.p(_.t7(!1,void 0,"xDqzhe"));var x=v.next().value,y=v.next().value;v=_.p(_.t7(!1,void 0,"LI9CFd"));var Q=v.next().value,e=v.next().value,F=function(){return E().isMultiLineSa},b=_.Bi(tBL,function(){var T,L;
return(L=(T=E().toggleableContent)==null?void 0:T.entityKey)!=null?L:""}),l=function(){var T,L,xX;
return(xX=E().toggleableContent)!=null&&xX.entityKey?(L=(T=b())==null?void 0:T.value)!=null?L:!1:!1},r=function(){var T,L,xX,t,QE,MF,K1,JG,$X,HI,uE;
return E().toggleableContent?l()?(T=E().toggleableContent)==null?void 0:T.toggledData:(L=E().toggleableContent)==null?void 0:L.untoggledData:{primaryText:(JG=(xX=E().defaultContent)==null?void 0:xX.primaryText)!=null?JG:E().text,secondaryText:(t=E().defaultContent)==null?void 0:t.secondaryText,onTapCommand:($X=(QE=E().defaultContent)==null?void 0:QE.onTapCommand)!=null?$X:E().onTapCommand,icon:(HI=(MF=E().defaultContent)==null?void 0:MF.icon)!=null?HI:E().icon,image:(uE=(K1=E().defaultContent)==null?
void 0:K1.image)!=null?uE:E().image}},a=function(){return F()?E().trailingTapTarget:void 0};
v=function(T,L){return function(){return x()?L:T}};
var M={leadingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};v={};v=_.W8((v.ytShortsSuggestedActionViewModelStaticHost=function(){return!F()},v.ytShortsSuggestedActionViewModelDynamicHost=F,v.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return F()&&Q()},v.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return F()&&!Q()},v));
_.l5(function(){if(F()){var T=0,L;if((L=E().animationParams)==null?0:L.shouldExpand){var xX,t;T=((t=(xX=E().animationParams)==null?void 0:xX.expansionDelaySecs)!=null?t:0)*1E3}var QE,MF=((QE=E().animationParams)==null?0:QE.shouldExpand)?setTimeout(function(){y(!0)},T):void 0,K1,JG;
T=((K1=E().animationParams)==null?0:K1.visibilityDelaySecs)?((JG=E().animationParams)==null?NaN:JG.visibilityDelaySecs)*1E3:0;var $X=setTimeout(function(){e(!0)},T);
_.Fp(function(){MF&&clearTimeout(MF);clearTimeout($X)})}});
var U=function(T){_.lj(T,Object.assign({},{form:{element:f.value}}))},d=_.ij(function(){var T,L=(T=r())==null?void 0:T.onTapCommand;
L&&U(L)}),Y=_.ij(function(){var T,L;
if(T=(L=a())==null?void 0:L.onTapCommand)return U(T),!1}),V=_.tZ({"vertical-align":"bottom",
"border-radius":function(){var T;return F()?((T=E().defaultContent)==null?0:T.isCircleImage)?"50%":"4px":"0px"},
width:function(){var T,L,xX;return F()&&((T=E().defaultContent)==null?0:T.imageSize)?((xX=(L=E().defaultContent)==null?void 0:L.imageSize)!=null?xX:24)+"px":null},
height:function(){var T,L,xX;return F()&&((T=E().defaultContent)==null?0:T.imageSize)?((xX=(L=E().defaultContent)==null?void 0:L.imageSize)!=null?xX:24)+"px":null}}),O={};
return _.w("yt-shorts-suggested-action-view-model",{class:v,el:f},_.w("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.w("button",{class:_.W8(function(){return F()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var T;
return(T=E().useFullRoundedBorder)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!a()&&F()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":F()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var T;
return(T=E().disableFixedHeight)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(O.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(n==null?void 0:n())===1},O)),
"on:click":d},_.w(_.oX,{model:{color:4}}),_.w("div",{class:_.W8(function(){return F()?M.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.w(_.x6,{cond:function(){var T;
return(T=r())==null?void 0:T.image},
then:function(T){return _.w(_.UZ,{data:T,alt:"",className:function(){return F()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:V})}}),_.w(_.x6,{cond:function(){var T,L;
return(T=r())==null?void 0:(L=T.icon)==null?void 0:L.iconType},
then:function(T){return _.w(_.B8,{icon:T,active:l,className:function(){return F()?x()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.w(_.x6,{cond:function(){var T;
return(T=r())==null?void 0:T.primaryText},
then:function(T){return _.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.w(_.nh,{text:T}))}}),_.w(_.x6,{cond:function(){var T;
return(T=r())==null?void 0:T.secondaryText},
then:function(T){return _.w("div",{class:M.secondaryText},_.w(_.nh,{text:T}))}}))),_.w(_.x6,{cond:a,
then:function(T){return _.w("div",{class:M.trailingSection,"aria-label":function(){var L;return(L=T().a11yLabel)!=null?L:""},
"on:click":Y,role:"button",tabindex:0},_.w(_.oX,{model:{color:4}}),_.w(_.B8,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Fe");var McO=_.qu(function(v){var E=v.data;var n=v.overlayDensity;var f=_.Ig();v=_.ij(function(Q){if(_.$ty(_.JF(Q),f.value,["A".toString()]))return!1;(Q=E().truncatedTextOnTapCommand)&&_.lj(Q);return!1});
var x={},y={};return _.w("yt-shorts-video-title-view-model",{el:f,class:_.W8("ytShortsVideoTitleViewModelHost",(x.ytShortsVideoTitleViewModelHostClickable=function(){return!!E().truncatedTextOnTapCommand},x)),
"on:click":v},_.w("h2",{class:_.W8("ytShortsVideoTitleViewModelShortsVideoTitle",(y.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(n==null?void 0:n())===1},y))},_.w(_.nh,{text:function(){return E().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ge");_.Swd=_.qu(function(v){var E=v.data;var n=v.overlayDensity;return _.w("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.w(_.mI,{data:function(){return E().metadataItems}},{badgeViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.gi,{data:f.data}))},
playerDisclosureViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.PW1,{data:f.data}))},
shortsSuggestedActionViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(CWR,{data:f.data,overlayDensity:n}))},
reelChannelBarViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(ad1,{data:f.data,overlayDensity:n}))},
reelMultiFormatLinkViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(Zc_,{data:f.data,overlayDensity:n}))},
shortsVideoTitleViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(McO,{data:f.data,overlayDensity:n}))},
reelSoundMetadataViewModel:function(f){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.h46,{data:f.data,overlayDensity:n}))}}))},"He");var Uad=_.qu(function(v){var E=_.Ue(v,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),n=E.size,f=E.onTap,x=E.disabled,y=E.tooltipText;return _.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(WT,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:n(),disabled:x(),tooltipText:y(),onTap:f}},
iconName:v.iconType}))},"Ie"),qw0=_.qu(function(v){function E(l){l.stopPropagation();
l.code==="ArrowUp"?(l.preventDefault(),gAF(e.value)):l.code==="ArrowDown"?(l.preventDefault(),Ncy(e.value)):l.code==="KeyM"?D4G():(l.code==="KeyK"||l.code==="Space")&&H_9(F())}
var n=_.Ue(v,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});v=n.previousButtonDisabled;var f=n.nextButtonDisabled,x=n.data,y=n.playabilityStatus,Q=n.previewThumbnail,e=_.Ig(),F=_.mc(_.DbE),b;_.mM(function(){(b=_.ZJ(e.value))&&b.addEventListener("keydown",E)});
_.Fp(function(){var l;(l=b)==null||l.removeEventListener("keydown",E)});
n=function(){var l,r,a;return(l=x())==null?void 0:(r=l.reelPlayerOverlayRenderer)==null?void 0:(a=r.likeButton)==null?void 0:a.likeButtonRenderer};
return _.w("ytd-shorts-miniplayer-overlay",{el:e,class:"ytdShortsMiniplayerOverlayHost"},_.w("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.tZ({"background-image":function(){var l=Q();return l?'url("'+_.AZ(l.thumbnails)+'")':""}})}),_.w("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.w("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.w(Uad,{iconType:function(){var l=F();
return l===2||l===-1||l===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){H_9(F())},
tooltipText:function(){var l=F();return l===1||l===3?_.tQ("PLAYER_LABEL_PAUSE"):_.tQ("PLAYER_LABEL_PLAY")}}),_.w(_.AHX,null)),_.w("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.w(Uad,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:v,onTap:function(){gAF(e.value)},
tooltipText:_.tQ("PREVIOUS_VIDEO_LABEL")}),_.w(Uad,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:f,onTap:function(){Ncy(e.value)},
tooltipText:_.tQ("NEXT_VIDEO_LABEL")}),_.Z("web_shorts_pip_like_button")?_.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(Qo4,{buttonTooltipPosition:"left",data:n,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.w("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.w(_.x6,{cond:function(){var l,r;return _.C((l=x())==null?void 0:(r=l.reelPlayerOverlayRenderer)==null?void 0:r.metapanel,
PIF)},
then:function(l){return _.w("div",{class:_.W8("ytdShortsMiniplayerOverlayInteractive")},_.w(_.Swd,{data:l}))}})),_.w("div",{class:_.W8("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var l;return!((l=x())==null||!l.adsOverlay)||y()&&!iAQ(y())}},_.w("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.w(_.rA3,null)))),_.w(_.x6,{cond:function(){var l=x(),r,a;
l=_.C(l==null?void 0:(r=l.adsOverlay)==null?void 0:(a=r.fulfillmentContent)==null?void 0:a.fulfilledLayout,vDz);return _.C(l==null?void 0:l.renderingContent,xmw)},
then:function(l){return _.w("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.w(mJS,{data:l}))}}))},"Je");var uRL=_.qu(function(){var v=_.p(_.t7(new _.fs(NaN,NaN),void 0,"dCf7yb")),E=v.next().value,n=v.next().value;v=_.p(_.t7(!1,void 0,"smJHAc"));var f=v.next().value,x=v.next().value,y=_.p(_.t7(!1,void 0,"HnqDAc"));v=y.next().value;var Q=y.next().value,e=_.P().resolve(_.hf).miniplayerPropSignalMap[0],F=e.data,b=e.shortsData,l=e.nextButtonDisabled,r=e.shortsPreviewThumbnail,a=e.previousButtonDisabled,M=e.externalPlaylistData;y=e.toastData;var U=e.playabilityStatus,d=e.isDisabled;e=_.mc(_.xC);_.dt("yt-pip-window-resized",
function(T){n(T)});
_.dt("yt-activate-pip-miniplayer",function(){return _.X(function(T){Q(!0);_.yQ(T)})});
var Y=function(){var T;return!((T=M())==null||!T.contents)&&f()},V=function(){var T=E(),L=!!F(),xX=Y();
T=T.clone();L&&(T.height-=76);xX&&(T.height-=285);return T},O=function(){x(!f())};
return _.w("ytd-pip-container",{class:"ytdPipContainerHost"},_.w(_.x6,{cond:v,then:function(){return _.w(_.VtP,{isDisabled:d,playabilityStatus:U,size:V})}}),_.w(_.x6,{cond:F,
then:function(){return _.w(_.h_C,{data:F,expanded:f,onExpandClick:O,playlistData:M})}}),_.w(_.x6,{cond:Y,
then:function(){return _.w("div",{class:"ytdPipContainerPlaylistPanel"},_.w(_.yr1,{data:M,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.w(_.x6,{cond:e,
then:function(){return _.w(qw0,{data:b,nextButtonDisabled:l,previousButtonDisabled:a,playabilityStatus:U,previewThumbnail:r})}}),_.w("div",{class:"ytdPipContainerToast"},_.w(_.DnK,{toastData:y})))},"Ke");var XG=function(v,E){var n=this;this.pipController=v;this.JSC$16364_clientRoot=E;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=LEL();this.watchPipEnabled=_.Z("web_watch_pip");this.shortsPipEnabled=_.Z("web_shorts_pip");this.JSC$16364_watchWhileEnabled=_.Z("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;_.yC(_.dG(),_.YkX,function(f){n.isSingleOptionSurveyActive=f});
this.JSC$16364_onPlayerPlayVideo=this.JSC$16364_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);_.Jo(_.qw.getInstance(),this.miniplayerServiceActionMap,this.JSC$16364_clientRoot);_.c_()&&_.eQ("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},
qR1,Hc0,hZ_,gR3,NV1,LdX,u_0,jCd,Oc3,Vc1;
XG.prototype.handleMediaSessionPipActivation=function(){var v=this,E;return _.X(function(n){_.xo().mediaSessionPipActivation=!0;E=_.P().resolve(_.Y_);return E.isOnWatch()&&v.watchPipEnabled?(_.xo().watchPipActivation=!0,_.JAx(v,E.data),n.jumpTo(0)):E.isOnShorts()&&v.shortsPipEnabled?(_.xo().shortsPipActivation=!0,_.K_p(v),n.jumpTo(0)):v.isMiniplayerActive()&&v.watchPipEnabled&&!v.watchWhileMode?_.m(n,da0(v),0):n.jumpTo(0)})};
var da0=function(v){var E,n,f,x;return _.X(function(y){if(y.nextAddress==1)return E=!v.miniplayerToPipMode,n=v.playerElement,f=v.miniplayerData,x=v.watchResponse,_.m(y,v.deactivate(),2);if(y.nextAddress!=3)return E?(_.xo().mediaSessionPipActivation=!0,_.xo().watchPipActivation=!0):_.xo().miniplayerButtonActivation=!0,_.m(y,v.activate(n,f,x),3);v.miniplayerToPipMode=E;_.yQ(y)})};
XG.prototype.onDownloadedVideoDeleted=function(v){var E,n=_.C((E=this.miniplayerData)==null?void 0:E.watchEndpoint,_.dM),f,x;n&&((f=this.watchResponse)==null?void 0:(x=f.playerResponse)==null?void 0:x.offlineState)!==void 0&&(E=n.videoId)&&v&&E===v&&this.close()};
XG.prototype.onShowMiniplayerCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r,a,M,U;return _.X(function(d){switch(d.nextAddress){case 1:return n=_.C(v,emg),x=(f=n)==null?void 0:f.miniplayerCommand,y=_.C(x,_.dM),x&&y&&!E.active?_.m(d,_.wr.getInstance(),2):d.return();case 2:return Q=d.yieldResult,_.m(d,(e=Q)==null?void 0:e.get("yt-miniplayer-shown-video-id"),3);case 3:F=d.yieldResult;b=y.videoId;if(!b||F===b)return d.return();l=_.P().resolve(_.Y_);if(l.isOnWatch())return _.li(Error("Bj")),d.return();
r={channelItem:{externalId:btoa(b)}};E.readyToResumeVe=_.ci(121253,void 0,void 0,r);_.xo().showMiniplayerCommandActivation=!0;return _.m(d,_.GWS(E,x,!0),4);case 4:return E.active?(_.ei(E,{readyToResumeVe:E.readyToResumeVe,continueWatching:!0,premiumBranding:!((a=n)==null||!a.showPremiumBranding)}),E.isReadyToResume=!0):_.ei(E,{continueWatching:!0,premiumBranding:!((M=n)==null||!M.showPremiumBranding)}),_.Z("ytd_miniplayer_to_wiz")&&_.ei(E,{isReadyToResume:!0}),_.m(d,(U=Q)==null?void 0:U.set("yt-miniplayer-shown-video-id",
y.videoId),5);case 5:E.readyToResumeVe=void 0,_.yQ(d)}})};
XG.prototype.init=function(v){this.miniplayerEl?_.li(new _.yc("MiniplayerService already initialized.")):this.miniplayerEl=v};
XG.prototype.isInitialized=function(){var v=!!this.miniplayerEl;v||_.li(new _.yc("MiniplayerService used before initialized."));return v};
_.JAx=function(v,E){if(v.isInitialized()){var n=_.if$(E.response,E.playerResponse),f=_.P().resolve(_.Y_).getPlayerFromWatch();_.xo().currentEndpoint=n.watchEndpoint||null;v.activate(f,n,E)}};
_.K_p=function(v){if(v.isInitialized()){var E=_.P().resolve(_.Y_).getPlayerFromShorts();v.activate(E)}};
qR1=function(v,E){var n;(n=!v.isInitialized())||(n=_.P().resolve(_.Y_).isOnWatch()&&v.watchPipMode,n=!(v.isMiniplayerActive()&&(_.xo().userActivation||_.xo().lockupActivation||n)));if(n)return!1;Idp(v,E)?_.yg(v):LdX(v,E);return v.watchPipMode?!_.P().resolve(_.Y_).isOnWatch():!0};
XG.prototype.isMiniplayerActive=function(){return this.active};
var Idp=function(v,E){var n;E=(n=_.C(E,_.dM))==null?void 0:n.videoId;var f,x;v=(x=_.C((f=v.miniplayerData)==null?void 0:f.watchEndpoint,_.dM))==null?void 0:x.videoId;return E!=null&&E===v};
XG.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.jK(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.OL(this.miniplayerEl,"yt-navigate-home-action"))};
_.GWS=function(v,E,n,f){n=n===void 0?!1:n;var x,y,Q;return _.X(function(e){switch(e.nextAddress){case 1:if(v.active){e.jumpTo(2);break}x=_.P().resolve(_.Y_);if(Q=(y=v.playerElement)!=null?y:x.getPlayerFromWatch()){e.jumpTo(3);break}return _.m(e,_.P().resolve(_.Nq),4);case 4:Q=x.getPlayerFromWatch();case 3:if(!Q){_.li(Error("Dj"));e.jumpTo(2);break}return _.m(e,v.activate(Q,f),2);case 2:return v.active?_.m(e,LdX(v,E,n),0):e.return()}})};
XG.prototype.activate=function(v,E,n){var f=this,x,y,Q,e,F,b,l,r,a;return _.X(function(M){switch(M.nextAddress){case 1:if(!f.isInitialized())return M.return();if(!v)return _.li(Error("Dj")),M.return();if(_.pYU()||f.isMiniplayerActive())var U=!0;else U=_.xo().watchPipActivation||_.xo().watchWhileActivation,_.P().resolve(_.Y_).isOnWatch()&&!U?(_.li(new _.yc("miniplayer activated on watch page")),U=!0):U=_.xo().watchWhileActivation?f.userDeactivatedWatchWhile||!!document.pictureInPictureElement||d5Q():
!1;if(U)return yLz(),M.return();x=_.xo().mediaSessionPipActivation;y=_.xo().shortsPipActivation;Q=_.xo().watchPipActivation;F=(e=_.xo().watchWhileActivation)||Q;b=Q||y;if(!f.pictureInPictureEnabled()||!b){M.jumpTo(2);break}return _.m(M,YwP(f,x),3);case 3:if(!M.yieldResult)return _.li(Error("Cj")),yLz(),M.return();case 2:return f.setActive(!0),f.watchResponse=n,f.playerElement=v,f.updateMiniplayerData(E),_.m(M,hZ_(f,v),4);case 4:if(!f.active)return _.li(new _.yc("miniplayer deactivated during activation")),
f.removePlayerListeners(),M.return();U=_.P().resolve(_.SY);U.addEventListener("yt-navigate",_.uo(f,f.onPlaylistNavigate));U.addEventListener("yt-playlist-data-updated",_.uo(f,f.JSC$16364_onPlaylistDataUpdated));f.JSC$16364_onPlaylistDataUpdated();yLz();f.JSC$16364_watchWhileEnabled&&_.AAU(f,e);f.pictureInPictureEnabled()&&f.shortsPipEnabled&&(f.shortsPipMode=y,_.dG().dispatch(Tz1(f.shortsPipMode)));f.pictureInPictureEnabled()&&f.watchPipEnabled&&(f.watchPipMode=Q,_.Y7F(f.handleMediaSessionPipActivation));
f.player&&(l=f.player.getPlayerState(),r=l===1,_.dG().dispatch(ox1(l)),_.kZ(f.miniplayerEl,"yt-miniplayer-play-state-changed",[r]),_.xo().isVideoPlaying=r);_.kZ(f.miniplayerEl,"yt-miniplayer-endpoint-changed");Vc1(f);_.Da_(f);return f.shortsPipMode||f.watchPipMode?_.m(M,_.Wq(f.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.Z("ytd_miniplayer_to_wiz")?_.m(M,_.Wq(f.miniplayerEl,"yt-activate-miniplayer",[F]),6):_.m(M,_.Wq(f.miniplayerEl,"yt-activate-miniplayer-action",[v,F]),6);case 6:Hc0(f),gR3(f,!0),
(a=f.getPlayerElement())==null||a.focusOnPlayer(),_.yQ(M)}})};
XG.prototype.updateMiniplayerData=function(v){this.miniplayerData=v;_.ei(this,{data:v})};
_.Da_=function(v){var E,n,f=((E=v.miniplayerData)==null?void 0:(n=E.miniplayerRenderer)==null?void 0:n.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";E=v.watchWhileMode||v.watchPipMode?f&&!_.P().resolve(_.Y_).isOnWatch():f;_.ei(v,{isDisabled:E});var x,y;n=_.C((x=v.miniplayerData)==null?void 0:(y=x.miniplayerRenderer)==null?void 0:y.minimizedEndpoint,_.rR);E&&n&&_.P().resolve(_.eL).openSheet({openPopupActionCommand:{openPopupAction:n}},v.miniplayerEl)};
Hc0=function(v){if(v.watchResponse&&!NV1(v)){var E,n=(E=v.watchResponse.playerResponse)==null?void 0:E.trackingParams;n&&(_.ei(v,{expandVe:_.ci(35989),closeVe:_.ci(34699),readyToResumeCloseVe:_.ci(131070),repositionVe:_.ci(226204),resizeVe:_.ci(226205)}),_.ei(v,{playerVe:_.tx(n)}))}};
hZ_=function(v,E){return _.X(function(n){if(n.nextAddress==1)return E.preparePlayer(),_.m(n,E.getPlayerPromise(),2);v.player=n.yieldResult;v.player&&(v.player.addEventListener("onPlayVideo",v.JSC$16364_onPlayerPlayVideo),v.player.addEventListener("onCloseMiniplayer",v.onPlayerCloseMiniplayer),v.player.addEventListener("onExpandMiniplayer",v.onPlayerExpandMiniplayer),v.player.addEventListener("onStateChange",v.onPlayerStateChange));_.yQ(n)})};
_.c=XG.prototype;_.c.JSC$16364_onPlayerPlayVideo=function(v){var E=v.sessionData&&"autonav"in v.sessionData,n;v.sessionData&&v.sessionData.itct&&(n=v.sessionData.itct);var f=v.watchEndpoint;E=f&&E?_.y91(f,n):_.DI(v.videoId,v.listId||void 0,n);v.sessionData&&_.AQ(_.C(E.commandMetadata,_.Dl).url,v.sessionData);LdX(this,E)};
_.c.onPlayerExpandMiniplayer=function(){_.yg(this)};
_.c.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.c.onPlayerStateChange=function(){if(this.player){var v=this.player.getPlayerState(),E=v===1;_.dG().dispatch(ox1(v));_.dG().dispatch(_.x8P(v));_.kZ(this.miniplayerEl,"yt-miniplayer-play-state-changed",[E]);_.xo().isVideoPlaying=E;if(v===0){E=!_.jO.getInstance().isAutoplaySetExplicitly();var n,f,x,y,Q,e,F=(n=this.watchResponse.response)==null?void 0:(f=n.contents)==null?void 0:(x=f.twoColumnWatchNextResults)==null?void 0:(y=x.autoplay)==null?void 0:(Q=y.autoplay)==null?void 0:(e=Q.autoplayExplicitChoiceDialogRenderer)==
null?void 0:e.confirmDialogRenderer;E&&F&&this.player.setAutonavState(1)}v===0&&this.watchWhileMode&&this.deactivate()}};
_.c.onPlaylistNavigate=function(v,E){var n=this,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1){if(!_.C(E.endpoint,_.dM))return l.return();_.xo().currentEndpoint=E.endpoint;_.kZ(n.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.P().resolve(_.Y_).isOnWatch()&&(n.watchWhileMode||n.watchPipMode))return l.return();v.stopPropagation();(y=(x=_.C((f=E.endpoint)==null?void 0:f.commandMetadata,_.Dl))==null?void 0:x.url)&&E.tempData&&!_.sh.isEmpty(E.tempData)&&_.AQ(y,E.tempData);Q={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};e=new ftU(function(){return n.getPlayerElement()},Q,{layer:3});
F=function(r){e.processChunk({endpoint:E.endpoint,data:r})};
u_0(n);n.miniplayerFetchRequest=jCd(n,E.endpoint,F);_.vW(l,2);return _.m(l,n.miniplayerFetchRequest,4)}if(l.nextAddress!=2)return b=l.yieldResult,Oc3(n,b),_.qp(l,0);_.cW(l);_.yQ(l)})};
_.c.JSC$16364_onPlaylistDataUpdated=function(){var v=_.P().resolve(_.SY).getPlaylistData();this.hasPlaylistData=!!v;_.ei(this,{externalPlaylistData:v||{}})};
_.c.close=function(v){if(this.isInitialized())if(v){if(!((this.watchWhileMode||this.watchPipMode)&&_.P().resolve(_.Y_).isOnWatch()||this.shortsPipMode)){var E;(E=this.getPlayerElement())==null||E.stop()}this.deactivate()}else _.dr().closeMiniplayer(this.miniplayerEl)};
_.c.deactivate=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){if(!E.isInitialized()||!E.active)return Q.return();E.setActive(!1);u_0(E);(n=!!v&&Idp(E,v))&&E.isSingleOptionSurveyActive&&_.OL(E.miniplayerEl,"yt-show-watch-page-survey",[E.isSingleOptionSurveyActive]);return _.m(Q,kdM(E),2)}if(Q.nextAddress!=3){gR3(E,!1);E.isReadyToResume=!1;E.watchResponse=void 0;E.updateMiniplayerData(void 0);E.shortsPipMode&&(E.shortsPipMode=!1,_.dG().dispatch(Tz1(E.shortsPipMode)),Fg3(E.pipController),
(f=E.player)==null||f.setInternalSize(NaN,NaN));E.watchPipMode&&(E.watchPipMode=!1,Fg3(E.pipController));(x=E.watchWhileMode)&&_.AAU(E,!1);E.removePlayerListeners();var e=_.P().resolve(_.SY);e.removeEventListener("yt-navigate",_.uo(E,E.onPlaylistNavigate));e.removeEventListener("yt-playlist-data-updated",_.uo(E,E.JSC$16364_onPlaylistDataUpdated));_.xo().currentEndpoint=null;_.kZ(E.miniplayerEl,"yt-miniplayer-endpoint-changed");E.playerElement=null;yLz();return E.shortsPipMode||E.watchPipMode?Q.jumpTo(3):
_.m(Q,_.Wq(E.miniplayerEl,_.Z("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[n,x]),3)}(y=E.player)==null||y.setInternalSize(NaN,NaN);E.player=null;_.yQ(Q)})};
var kdM=function(v){var E;return _.X(function(n){E=_.P().resolve(_.Y_);return v.shortsPipMode?_.m(n,E.movePlayerToShorts(v.playerElement),0):_.m(n,E.movePlayerToWatch(v.playerElement),0)})};
XG.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16364_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
XG.prototype.setActive=function(v){this.active=v;this.isSingleOptionSurveyActive?_.OL(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.OL(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.dG().dispatch(_.un({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.AAU=function(v,E){v.watchWhileMode=E;_.ei(v,{watchWhile:E})};
gR3=function(v,E){if(!NV1(v))if(v.shortsPipMode||v.watchPipMode){var n;(n=v.player)==null||n.setDocumentPictureInPicture(E)}else{var f;(f=v.player)==null||f.setMinimized(E)}};
NV1=function(v){return v.watchWhileMode&&_.Z("kevlar_watch_while_counterfactual")};
_.yg=function(v){var E;return _.X(function(n){switch(n.nextAddress){case 1:if(!v.isInitialized())return n.return();_.vW(n,2);return _.m(n,v.miniplayerFetchRequest,4);case 4:_.qp(n,3);break;case 2:_.cW(n);case 3:v.watchResponse&&v.miniplayerData&&v.miniplayerData.watchEndpoint?(E={url:v.watchResponse.url,endpoint:v.miniplayerData.watchEndpoint,data:v.watchResponse,miniplayer:!0},_.jK(v.miniplayerEl,"yt-navigate-cache",E)):v.miniplayerData&&v.miniplayerData.watchEndpoint&&_.jK(v.miniplayerEl,"yt-navigate",
{endpoint:v.miniplayerData.watchEndpoint}),_.yQ(n)}})};
LdX=function(v,E,n){var f,x,y,Q;return _.X(function(e){if(e.nextAddress==1){if(Idp(v,E))return e.return();_.xo().currentEndpoint=E;_.kZ(v.miniplayerEl,"yt-miniplayer-endpoint-changed");_.kZ(v.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.xo().isVideoPlaying=!1;f={clientParams:{miniplayer:!0,autoSaveToQueue:!n}};x=new ftU(function(){return v.getPlayerElement()},f,{layer:3,
parentLayer:0},void 0,v.readyToResumeVe);y=function(F){var b,l,r=Object.assign({},(b=F.playerResponse)==null?void 0:(l=b.playerConfig)==null?void 0:l.playbackStartConfig,{startPaused:!0}),a;n&&((a=F.playerResponse)==null?0:a.playerConfig)&&(F.playerResponse.playerConfig.playbackStartConfig=r);x.processChunk({endpoint:E,data:F})};
u_0(v);v.miniplayerFetchRequest=jCd(v,E,y);_.vW(e,2);return _.m(e,v.miniplayerFetchRequest,4)}if(e.nextAddress!=2)return Q=e.yieldResult,Oc3(v,Q),_.qp(e,0);_.cW(e);_.yQ(e)})};
u_0=function(v){v.miniplayerFetchRequest&&(v.miniplayerFetchRequest.cancel&&v.miniplayerFetchRequest.cancel("Active request obsolete"),v.miniplayerFetchRequest=null)};
jCd=function(v,E,n){var f=_.TB.instance,x,y=(x=_.C(E.commandMetadata,_.Dl))==null?void 0:x.url,Q;x=!y||_.Z("disable_miniplayer_tempdata")?{}:(Q=ZLL(y))!=null?Q:{};return DR(f,E,x,window.location.href,"watch",function(e,F){n(F)},function(e){return e!==v.miniplayerFetchRequest})};
Oc3=function(v,E){var n;_.X(function(f){if(!E)return f.return();v.watchResponse=E;Hc0(v);Vc1(v);n=_.if$(E.response,E.playerResponse);if(v.isMiniplayerActive()){E.response&&(v.playerElement.watchNextData=E.response);var x=_.sh.getValueByKeys.apply(_.sh,[E].concat(_.s8(shU)));_.sh.getValueByKeys.apply(_.sh,[E].concat(_.s8(CvX)))&&x&&_.P().resolve(_.SY).setAutoplayRenderer(x);if(x)if(_.Z("kevlar_is_pupi_enabled")){var y,Q,e,F,b,l=((y=E.response)==null?0:(Q=y.playerOverlays)==null?0:(e=Q.playerOverlayRenderer)==
null?0:(F=e.autonavToggle)==null?0:(b=F.autoplaySwitchButtonRenderer)==null?0:b.enabled)?2:1;_.jO.getInstance().setState(l,!1,!1)}else y=V09()?2:1,(l=v.player)==null||l.setAutonavState(y);v.updateMiniplayerData(n);_.Da_(v)}_.yQ(f)})};
Vc1=function(v){var E,n,f=(E=v.watchResponse)==null?void 0:(n=E.playerResponse)==null?void 0:n.playabilityStatus,x;E=f==null?void 0:(x=f.miniplayer)==null?void 0:x.miniplayerRenderer;(E==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&E.minimizedEndpoint&&_.$Z(v.miniplayerEl,[E.minimizedEndpoint]);_.ei(v,{miniplayerRenderer:E,playabilityStatus:f})};
XG.prototype.openToast=function(v,E){_.ei(this,{toastData:{data:v,label:E}})};
_.ei=function(v,E){var n=v.miniplayerEl,f;for(f in E)n[f]=E[f];(0,v.miniplayerPropSignalMap[1])(E)};
XG.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var v;return this.playerElement?this.playerElement:(v=_.K(this.miniplayerEl).querySelector("#player-container"))==null?void 0:v.firstElementChild};
var YwP=function(v,E){E=E===void 0?!1:E;var n,f,x,y,Q,e,F;return _.X(function(b){if(b.nextAddress==1){n=navigator.userActivation.isActive||E;if(!n||!_.c_())return b.return(!1);f=W_O(v);x=f.width;y=f.height;return _.m(b,v.pipController.openWindow({width:x,height:y}),2)}Q=b.yieldResult;e=v.pipController.getWindow();if(!e||!Q)return b.return(!1);e.document.body.style.overflow="hidden";F=jpG(e);mi1(v.pipController,function(){$a_(v);F()});
return b.return(!0)})},W_O=function(v){var E=_.xo().shortsPipActivation,n,f;
v=E?.5625:(f=(n=v.player)==null?void 0:n.getVideoAspectRatio())!=null?f:16/9;n=Math.min(window.innerWidth,window.innerHeight)/2;E=E?0:76;return v>1?new _.fs(n,E+n/v):new _.fs(n*v,E+n)},$a_=function(v){var E;
_.X(function(n){E=_.P().resolve(_.Y_);return E.isOnWatch()&&v.watchPipMode||E.isOnShorts()&&v.shortsPipMode?_.m(n,v.deactivate(),0):v.miniplayerToPipMode?_.m(n,da0(v),0):v.watchPipMode?_.m(n,_.yg(v),0):n.jumpTo(0)})};
XG.prototype.pictureInPictureEnabled=function(){return _.c_()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.hK.Object.defineProperties(XG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
XG[Wl]=[_.wUK,M4g];var L_P="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(" "),
Gdb="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var TVd=null;var ic_={},zZ6=(ic_.initialized={priority:10,callback:function(v){var E=_.P();E.addProvider({provide:qVU,useClass:Xbd});E.addProvider({provide:_.QOC,useFactory:function(){return new J7i}});
E.addProvider({provide:xK,useValue:_.MX("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});E.addProvider({provide:quP,useValue:5184E6});E.addProvider({provide:uiP,useValue:_.Ce()});E.addProvider({provide:zy1,useClass:DSi});E.addProvider({provide:Zt,useClass:Zt});E.addProvider({provide:_.Nq,useFactory:function(){return zeX.promise}});
E.addProvider({provide:_.tLX,useFactory:function(){return _.Re1.promise}});
E.addProvider({provide:fpG,useValue:function(){var e;return((e=_.Aq())==null?void 0:e.getPlayer())||null}});
var n={};E.addProvider((n.provide=_.Yn,n.useFactory=function(e,F){return function(){return waX(e,F)}},n[Wl]=[xK,
quP],n));n={};E.addProvider((n.provide=_.G9,n.useClass=mF_,n[Wl]=[xK,quP],n));n={};E.addProvider((n.provide=_.Ek1,n.useClass=s$p,n[Wl]=[_.G9],n));E.addProvider({provide:zo,useFactory:_.dG});E.addProvider({provide:fe,useFactory:_.dG});E.addProvider({provide:BLb,useFactory:_.dG});E.addProvider({provide:POl,useFactory:_.dG});E.addProvider({provide:_.lQ,useFactory:_.dG});E.addProvider({provide:gE,useValue:_.zx});E.addProvider({provide:f1U,useClass:YfG});E.addProvider({provide:y01,useClass:c0S});E.addProvider({provide:sR,
useClass:sR});E.addProvider({provide:XA,useClass:XA});E.addProvider({provide:m7,useClass:m7});E.addProvider({provide:bh,useClass:bh});E.addProvider({provide:S4,useClass:S4});E.addProvider({provide:Gh,useClass:Gh});E.addProvider({provide:u0,useClass:u0});E.addProvider({provide:vX6,useValue:Mt1});E.addProvider({provide:_.nK,useFactory:_.Tl});E.addProvider({provide:V8,useFactory:_.Ef});n={};E.addProvider((n.provide=V19,n.useFactory=function(e){return function(F){var b=b===void 0?{}:b;var l,r,a=(r=_.C((l=
F.endpoint)==null?void 0:l.commandMetadata,_.Dl))==null?void 0:r.rootVe;if(a){var M,U;if(l=F.previousCsn||((U=_.C((M=F.endpoint)==null?void 0:M.commandMetadata,N7g))==null?void 0:U.parentCsn)){var d=d===void 0?{}:d;if(l!==_.lc(d.layer)||a!==A_L(d.layer))NkX(l,d.cttAuthInfo,d.layer||0),Yo$(l,d.layer||0),M=d.layer||0,_.Ck(huQ(M===void 0?0:M),a);b.parentCsn=l}F.endpoint&&l?G91(e,F.endpoint,b):_.Rs(e,a,void 0,b);var Y;((Y=F.response)==null?0:Y.trackingParams)&&e.graftServerVe(F.response.trackingParams);
var V;((V=F.playerResponse)==null?0:V.trackingParams)&&e.graftServerVe(F.playerResponse.trackingParams);var O;((O=F.reelWatchSequenceResponse)==null?0:O.trackingParams)&&e.graftServerVe(F.reelWatchSequenceResponse.trackingParams)}}},n[Wl]=[_.nK],n));
n={};E.addProvider((n.provide=Ew3,n.useClass=vwK,n[Wl]=[gE,_.lQ],n));n={};E.addProvider((n.provide=kn,n.useClass=kn,n[Wl]=[_.Nq,_.lQ],n));n={};E.addProvider((n.provide=NH,n.useClass=NH,n[Wl]=[fe,_.OO],n));E.addProvider({provide:_.y6b,useClass:lz3});n={};E.addProvider((n.provide=_.XQ,n.useClass=XUU,n[Wl]=[_.y6b],n));E.addProvider({provide:_.eL,useClass:LS});E.addProvider({provide:_.FQ,useClass:Ww});n={};E.addProvider((n.provide=_.Im,n.useClass=blb,n[Wl]=[_.Im],n));E.addProvider({provide:_.jq,useClass:vGo});
E.addProvider({provide:Ec,useClass:Ec});E.addProvider({provide:y8,useClass:y8});E.addProvider({provide:bA,useClass:$n});n={};E.addProvider((n.provide=rp,n.useClass=rp,n[Wl]=[_.eL,bA],n));_.Z("web_enable_feedback_endpoint_resolver")&&(n={},E.addProvider((n.provide=Rq,n.useClass=Rq,n[Wl]=[zo,il],n)),E.addProvider({provide:il,useClass:PKw}));_.Z("web_enable_feedback_endpoint_resolver_batch_2")&&(n={},E.addProvider((n.provide=Bd,n.useClass=Bd,n[Wl]=[zo],n)),n={},E.addProvider((n.provide=t4,n.useClass=
t4,n[Wl]=[il],n)));n={};E.addProvider((n.provide=lA,n.useClass=lA,n[Wl]=[_.FQ,bA],n));n={};E.addProvider((n.provide=eb,n.useClass=eb,n[Wl]=[_.FQ],n));n={};E.addProvider((n.provide=sc,n.useClass=sc,n[Wl]=[_.ok,_.XQ],n));n={};E.addProvider((n.provide=wp,n.useClass=wp,n[Wl]=[_.ok,_.nK],n));E.addProvider({provide:jb,useClass:jb});n={};E.addProvider((n.provide=A2,n.useClass=A2,n[Wl]=[zo],n));n={};E.addProvider((n.provide=Eg,n.useClass=Eg,n[Wl]=[zo],n));n={};E.addProvider((n.provide=nB,n.useClass=nB,n[Wl]=
[_.ok,zo],n));n={};E.addProvider((n.provide=oJ,n.useClass=oJ,n[Wl]=[zo],n));n={};E.addProvider((n.provide=fB,n.useClass=fB,n[Wl]=[zo],n));n={};E.addProvider((n.provide=Fk,n.useClass=Fk,n[Wl]=[_.XQ],n));n={};E.addProvider((n.provide=Ld,n.useClass=Ld,n[Wl]=[_.nK],n));n={};E.addProvider((n.provide=t2,n.useClass=t2,n[Wl]=[Ne],n));n={};E.addProvider((n.provide=BC,n.useClass=BC,n[Wl]=[Ne],n));E.addProvider({provide:iA,useClass:iA});E.addProvider({provide:zV,useClass:zV});E.addProvider({provide:$K,useClass:$K});
n={};E.addProvider((n.provide=PC,n.useClass=PC,n[Wl]=[_.XQ,_.OO],n));E.addProvider({provide:fd,useClass:fd});n={};E.addProvider((n.provide=mf,n.useClass=mf,n[Wl]=[_.ok,_.XQ],n));E.addProvider({provide:pd,useClass:pd});n={};E.addProvider((n.provide=YK,n.useClass=YK,n[Wl]=[zo,_.ok,_.Im],n));n={};E.addProvider((n.provide=Kd,n.useClass=Kd,n[Wl]=[_.ok,_.OO],n));E.addProvider({provide:dW4,useValue:If9});E.addProvider({provide:O8y,useValue:J4L});E.addProvider({provide:dp,useClass:dp});n={};E.addProvider((n.provide=
J2,n.useClass=J2,n[Wl]=[zo],n));n={};E.addProvider((n.provide=h2,n.useClass=h2,n[Wl]=[_.jq,_.OO],n));n={};E.addProvider((n.provide=vC,n.useClass=vC,n[Wl]=[_.OO],n));E.addProvider({provide:To,useFactory:function(){return new To(_.dG())}});
E.addProvider({provide:xzL,useFactory:_.rn.getInstance});n={};E.addProvider((n.provide=cC,n.useClass=cC,n[Wl]=[xK,xzL,_.OO],n));E.addProvider({provide:nd,useClass:nd});E.addProvider({provide:kS,useClass:kS});E.addProvider({provide:$S,useClass:$S});E.addProvider({provide:_.Wd,useClass:_.Wd});E.addProvider({provide:yA,useClass:yA});n={};E.addProvider((n.provide=Sb,n.useClass=Sb,n[Wl]=[fe],n));n={};E.addProvider((n.provide=Uc,n.useClass=Uc,n[Wl]=[_.OO],n));_.Z("web_enable_prefetching_videos_on_home")&&
(E.addProvider({provide:g9,useClass:g9}),E.addProvider({provide:nJ,useClass:nJ}));n={};E.addProvider((n.provide=c6,n.useClass=c6,n[Wl]=[_.OO],n));E.addProvider({provide:Ln,useClass:Ln});n={};E.addProvider((n.provide=Oc,n.useClass=Oc,n[Wl]=[_.ok,_.OO],n));n={};E.addProvider((n.provide=Go,n.useClass=Go,n[Wl]=[_.OO],n));E.addProvider({provide:oN,useClass:oN});E.addProvider({provide:Cd,useClass:Cd});n={};E.addProvider((n.provide=ZS,n.useClass=ZS,n[Wl]=[fe,_.OO],n));n={};E.addProvider((n.provide=X8,n.useClass=
X8,n[Wl]=[fe,_.OO,_.ok],n));n={};E.addProvider((n.provide=ex,n.useClass=ex,n[Wl]=[_.OO],n));n={};E.addProvider((n.provide=QA,n.useClass=QA,n[Wl]=[_.OO,_.ok],n));n={};E.addProvider((n.provide=qe,n.useClass=qe,n[Wl]=[_.Nq],n));n={};E.addProvider((n.provide=Me,n.useClass=Me,n[Wl]=[_.Nq],n));E.addProvider({provide:gp,useClass:gp});E.addProvider({provide:uA,useClass:uA});E.addProvider({provide:v6,useClass:v6});E.addProvider({provide:kK,useClass:kK});E.addProvider({provide:HC,useClass:HC});E.addProvider({provide:Q8,
useClass:Q8});E.addProvider({provide:DS,useClass:DS});_.Z("kevlar_enable_mss_lazy_load")&&E.addProvider({provide:_.Vw,useClass:WUb});E.addProvider({provide:_.LQ,useClass:Tg});E.addProvider({provide:uM,useFactory:function(){return _.qw.getInstance()}});
E.addProvider({provide:RyR,useFactory:KYE});E.addProvider({provide:Ne,useFactory:function(){return _.wr.getInstance()}});
E.addProvider({provide:kRg,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});n={};E.addProvider((n.provide=_.uh,n.useClass=_.uh,n[Wl]=[_.Nq,_.OO,_.nK,RyR,Ne,uM,kRg,gE],n));E.addProvider({provide:_.tz,useClass:yDl});E.addProvider({provide:_.KvX,useClass:J0F});n={};E.addProvider((n.provide=Xk,n.useClass=Xk,n[Wl]=[_.KvX],n));n={};E.addProvider((n.provide=_.j4,n.useFactory=function(e){return e.upliftCompletionResolver.promise},n[Wl]=[Ew3],n));
n=_.Sp("IS_SHELL_LOAD")?"aa":"eocs";var f=_.Sp("IS_SHELL_LOAD")?3:2;_.qs().parkOrScheduleJob(function(){ow6()},f,n);
_.qs().parkOrScheduleJob(function(){_.P().resolve(kn).start()},2,"eocs");
_.qs().parkOrScheduleJob(function(){t9d()},2,"eocs");
_.qs().parkOrScheduleJob(function(){_.P().resolve(NH).start()},2,"eocs");
_.Z("kevlar_debug_data_app_registration_ks")||d$X();E.addProvider({provide:_.ph,useValue:new FVo(v.root)});E.addProvider({provide:SQ,useValue:new BJ1});E.addProvider({provide:_.axP,useValue:new rrU(v.root)});E.addProvider({provide:_.n2,useValue:new PL1});E.addProvider({provide:_.zB,useClass:ni});E.addProvider({provide:_.wUK,useClass:Gg});_.Z("kevlar_network_sli_killswitch")||E.addProvider({provide:b0C,useValue:MA4});E.addProvider({provide:xPp,useFactory:wS9});_.Z("web_bind_fetch")&&(n={},E.addProvider((n.provide=
cR3,n.useFactory=bfE,n[Wl]=[_.jp(xPp)],n)));_.Z("web_bind_parse")&&(n={},E.addProvider((n.provide=yR1,n.useFactory=liI,n[Wl]=[_.jp(xPp)],n)));_.Z("web_bind_window_request")&&(n={},E.addProvider((n.provide=pbK,n.useFactory=sdG,n[Wl]=[_.jp(xPp)],n)));n={};E.addProvider((n.provide=Wv1,n.useFactory=YrL,n[Wl]=[_.j4,zo,_.Yn],n));n={};E.addProvider((n.provide=kpi,n.useClass=F8,n[Wl]=[Wv1],n));E.addProvider({provide:xFC,useClass:EXd});E.addProvider({provide:NX1,useClass:j7P});n=[].concat(_.s8(Ud));_.Z("web_continuation_response_processing")&&
n.push(_.bG);n.push(oIX);_.Z("enable_share_panel_navigation_logging_fix_on_web")&&n.push(_.ATU);E.addProvider({provide:GhF,useValue:n});E.addProvider({provide:p3y,useClass:gG1});E.addProvider({provide:PCp,useClass:l1p});n={};E.addProvider((n.provide=f9G,n.useClass=Ixw,n[Wl]=[fe],n));_.wh.addLowPriorityJob(function(){Ecy()});
n={};E.addProvider((n.provide=COP,n.useFactory=function(e){return function(F){var b,l=(b=_.C(F.commandMetadata,_.Dl))==null?void 0:b.url;if(!l)throw new _.yc("No URL for PBJ Command",F);l=ImF(l,{pbj:"1"});b=iVX(l,{})||{};b=Object.assign({},b,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.MX("STS").toString()});F=_.BG({command:JSON.stringify(F),session_token:_.MX("XSRF_TOKEN")});return e.fetch(l,{method:"POST",headers:b,body:F})}},n[Wl]=[PCp],n));
n=[];n.push(E.resolve(NX1));f={};f=(f.client_location=_.rn.getInstance(),f.consistency=_.H41(),f.entities=E.resolve(y01),f.response_received_commands=E.resolve(p3y),f.store=E.resolve(_.Ek1),f.tokens=E.resolve(NX1),f);if(_.Z("web_shorts_prefetch_service_enabled")){var x=new rGp(E.resolve(_.G9));f.shorts_prefetch=x}f.adblock_detection=E.resolve(f9G);E.addProvider({provide:_.q1,useClass:_.q1});x=E.resolve(vX6);var y=[];if(_.Z("PremiumClientSharedConfig__enable_att_context_processor")||_.Z("enable_att_for_transcript_request_on_web_client"))E.addProvider({provide:$f6,
useClass:OFF}),y.push(E.resolve($f6));if(_.Z("owl_pl_await")){var Q={};E.addProvider((Q.provide=B1p,Q.useFactory=function(e){return new R4P(e)},Q[Wl]=[_.q1],Q));
y.push(E.resolve(B1p))}d61(x,E.resolve(PCp),E.resolve(f1U),f,E.resolve(_.G9),n,y,E.resolve(kpi),E.resolve(xFC));E.addProvider({provide:_.ok,useValue:_.Zg.instance});_.Z("start_client_gcf")&&E.addProvider({provide:ys,useValue:v0z()});E.addProvider({provide:xiK,useFactory:function(){return new xiK(_.P().resolve(_.q1),_.wr.getInstance())}});
_.qs().parkOrScheduleJob(function(){c6b()},1,"eocs");
n={};E.addProvider((n.provide=OR,n.useClass=OR,n[Wl]=[_.Yn,_.ok],n));E.addProvider({provide:_.ZlR,useFactory:_.E9.getInstance});_.qs().parkOrScheduleJob(function(){_.P().resolve(OR).refresh()},0,"eocs");
M6o(Mt1.watchEndpointMap||{},x.reelWatchEndpointMap||{},v.injector.resolve(_.ok));E.addProvider({provide:P_,useValue:_.TB.instance});_.Z("kevlar_signal_collection_killswitch")||(n={},E.addProvider((n.provide=i1R,n.useClass=i1R,n[Wl]=[xK,V8],n)),_.qs().parkOrScheduleJob(function(){_.P().resolve(i1R).record()},1,"eocs"));
_.Z("web_debug_handler_registration_killswitch")||_.qs().parkOrScheduleJob(function(){J9s("DOWNLOAD_PES",J3G);_.Z("offline_client_state_export_ks")||J9s("OFFLINE_CLIENT_STATE",S7E)},0,"eocs");
_.Z("kevlar_prevent_polymer_dynamic_font_load")&&_.qs().parkOrScheduleJob(function(){var e=[_.i_(Yx_),_.i_(hK_)];e=_.p(e);for(var F=e.next();!F.done;F=e.next()){F=F.value;var b=document.createElement("link");_.gV(b,F,"stylesheet");document.head.appendChild(b)}},1,"eocs");
n=v.injector.resolve(_.ok);_.WV1.instance=new _.WV1(n);mNL(Dfg(new kA1(n)));n={};v.injector.addProvider((n.provide=HP,n.useFactory=function(e){(e=e==null?void 0:e.getCurrentPage())?e=e.visibilityObserver:(TVd||(TVd=gME()),e=TVd);return e},n[Wl]=[_.jp(_.Y_)],n.skipCache=!0,n));
E.addProvider({provide:_.hf,useClass:XG});E.addProvider({provide:E$,useClass:wwg});E.addProvider({provide:bJE,useValue:A5E});v.injector.addProvider({provide:Zj1,useValue:ej1});E.addProvider({provide:XeP,useValue:dyF});E.addProvider({provide:_.aj,useValue:OvE});v=E.addProvider;MoK||(MoK=new CXd);v.call(E,{provide:_.S1K,useValue:MoK});E.addProvider({provide:_.CR,useValue:_.MX("HTML_DIR")==="rtl"?"rtl":"ltr"});E.addProvider({provide:Q7w,useClass:s71});E.addProvider({provide:_.Oe,useClass:ih});_.P().addProvider({provide:e31,
useValue:L_P.concat(Gdb)});E.addProvider({provide:_.Rt,useClass:_.Rt});E.addProvider({provide:_.qxd,useValue:new UPb});E.addProvider({provide:FFi,useClass:fFi});E.addProvider({provide:WC,useClass:WC});E.addProvider({provide:GV,useClass:GV});v={};E.addProvider((v.provide=am,v.useClass=am,v[Wl]=[_.ok,_.XQ],v));E.addProvider({provide:pB,useClass:pB});E.addProvider({provide:YiP,useClass:r6x});E.addProvider({provide:Rm,useClass:Rm});E.addProvider({provide:pOi,useValue:GFF});E.addProvider({provide:_.aq,
useClass:xKz});_.Z("enable_payments_purchase_manager")&&E.addProvider({provide:iFo,useClass:LV1});E.addProvider({provide:dPC,useFactory:function(){return function(e){return _.KUO(e)}}});
E.addProvider({provide:_.DKP,useClass:HD1});v={};E.addProvider((v.provide=xL,v.useClass=xL,v[Wl]=[_.DKP],v));E.addProvider({provide:TV,useClass:TV});E.addProvider({provide:qr1,useValue:vNl});E.addProvider({provide:kJi,useValue:Iz3});E.addProvider({provide:NeX,useClass:sFK});E.addProvider({provide:K9_,useValue:Jjp});v={};E.addProvider((v.provide=_.dnU,v.useClass=ILP,v[Wl]=[K9_],v));_.Z("web_ephemeral_actions")&&(v={},E.addProvider((v.provide=_.Bw,v.useClass=tD,v[Wl]=[_.lQ,_.zB],v)));if(_.Z("web_explore_hub_on_hover")||
_.Z("web_client_explore_hub_on_hover"))v={},E.addProvider((v.provide=om,v.useClass=om,v[Wl]=[_.ok,uM],v));E.addProvider({provide:XCX,useValue:nKF})}},ic_);var RZd={},tcR=(RZd.initialized={priority:10,callback:function(){if(!wbU){xuF();Pey("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.i5(_.vR(Pey,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Z("log_heartbeat_with_lifecycles")){var v={};D7.instance||(D7.instance=new D7);D7.instance.install((v.document_visible={callback:aiy,priority:10},v.document_hidden={callback:aiy,priority:10},v))}else _.VR(document,"visibilitychange",aiy);wbU=!0}(v=_.lc())&&v!=="UNDEFINED_CSN"&&d91(v)}},RZd);var BVM={},vh3=(BVM.initialized={callback:function(v){var E=_.ci(232091),n=v.injector.resolve(_.nK);_.t$(n,E);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?O_L()&&_.vg(n,E):(v=v.injector.resolve(dPC)("refresh_detector"))&&(v.get("first_tab_load")?_.vg(n,E):v.set("first_tab_load","1"))}},BVM);var EhK={},nhM=(EhK.initialized={priority:10,callback:zDI},EhK);var oh3={},fqx=(oh3.initialized={priority:0,callback:function(){var v=new fBo,E="other";_.yH?E="chrome":_.c2?E="firefox":_.aP?E="safari":hO&&(E="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(n){v.increment(_.fE(),n,E)}).catch(function(){v.increment(_.fE(),!1,E)}):v.increment(_.fE(),!1,E)}},oh3);var xgb={},ce3=(xgb.rendering={priority:8,callback:RDE},xgb);var yeR={},pWK=(yeR.rendering={priority:10,callback:X3X},yeR.rendered={callback:QLG},yeR),Qlx={},XW6=(Qlx.rendering={callback:X3X},Qlx.rendered={callback:QLG},Qlx);var eq1=!1,FZ1={},mgd=(FZ1.initialized={priority:10,callback:function(){eq1||(I4X({didPatch:function(v){v.el&&Xcy(v.el,v.props)},
didUnmount:function(v){pcL(v.el)}}),eq1=!0)}},FZ1);var wW6=/^\/shorts\/?$/;_.Ck("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(_.Z("kevlar_enable_mss")){_.wGA(new NMo);var bIM=!0,lq0,FG;bIM=bIM===void 0?!1:bIM;lq0=lq0===void 0?!1:lq0;FG=FG===void 0?{}:FG;var slp=FG.cssRowKey||"",reU=FG.combinedSignature||"";!slp&&window&&window._F_cssRowKey&&(slp=window._F_cssRowKey,!reU&&window._F_combinedSignature&&(reU=window._F_combinedSignature));if(slp&&typeof window._F_installCss!=="function")throw Error("vd");var P_R=FG.loaderClass||_.I9,mR=BB1("base-js"),aqp,ZIb=EmE("",mR);aqp=_.xR(ZIb);var w8=new P_R(aqp,slp,reU,bIM,lq0),C_1=
FG.useCors||mR&&mR.hasAttribute("crossorigin"),M8x=FG.corsMode||mR&&mR.getAttribute("crossorigin");C_1&&(w8.useCors_=C_1);M8x&&(w8.corsMode_=M8x);FG.urlMaxLength&&(w8.urlMaxLength=FG.urlMaxLength);FG.fetchPriority&&(w8.fetchPriority=FG.fetchPriority);var S8P=bY();S8P.JSC$7947_loader_=w8;S8P.setBatchModeEnabled(!0)}
(function(){var v=document.querySelector("ytd-app");if(!v)throw Error("Ej");v=new vt({root:v,injector:_.P()});v.install(tcR);var E={};v.install((E.initialized={priority:10,callback:K8Q},E));_.Z("wp_lat_b")&&(E={},v.install((E.initialized={priority:10,callback:function(){eWQ()}},E)));
E={};v.install((E.rendered={priority:0,callback:UjQ},E));E={};v.install((E.rendered={priority:0,callback:function(){_.wh.addLowPriorityJob(function(){_.r0w>1&&(rzQ(),MR1())},4E4)}},E));
v.install(fLK);v.install(vh3);v.install(mgd);I1R||(I1R=!0,Object.assign(uY,{handleError:URI,enableComponentStacksInErrorMessages:!1}),uus=t$S,KbQ=qrQ,$wE=C1I,O3y=MWQ,_.Z("ytwiz_enable_debug_component_props")&&R0F());v.install(F9M);v.install(tMd);v.install(nbC);v.install(O1R);v.install(GsM);v.install(Xzd);v.install(zZ6);_.Z("kevlar_enable_mss_lazy_load")&&v.install(nhM);v.install(vbR);v.install(fqx);if(!_.Sp("IS_SHELL_LOAD")||_.Z("kevlar_fetch_initial_data_promise_client")||_.Z("sw_nav_preload_pbj")){var n=
_.R5(window.location.href);E=n&&n==="/watch";n=n&&n.match(wW6);E?v.install(XW6):n?v.install(ce3):v.install(pWK)}else v.install(i03);v.install(cjC);_.Z("web_enable_prefetching_videos_on_home")&&v.install(lLd);_.Z("start_client_gcf")&&v.install(mPp);v.install(H1O);(new xE1).increment("INSTALLED");v.install(wz_);v.install(LU_);v.transition("initialized");n3X()})();
_.kt=[[["IzUxYzV0MGszdDhjamtpbmQ=","IzdiaTdiZnk0ZmdnOXZhbHVl"],"UyM3MGIweHI4Mm1tcUFEX1BMQUNFTUVOVF9LSU5EX01JTExJU0VDT05E"]];_.Ob=["I3U5ZDJlNm94eHdxbmdsb2JhbENhbGxiYWNrcw==","I2F6M21scGZ0NzF6cG9uQWJub3JtYWxpdHlEZXRlY3RlZA==","I2pjZG1tNmNwdjd5MW9uQWRTa2lw","I3Q3MDFlMWlxcXVsNHJhd19wbGF5ZXJfcmVzcG9uc2U=","I3JhcnJsOWhhZGp2bnBsYXllckFkcw=="];_.hh="I3U5ZDJlNm94eHdxbmdsb2JhbENhbGxiYWNrcw== I2F6M21scGZ0NzF6cG9uQWJub3JtYWxpdHlEZXRlY3RlZA== I2pjZG1tNmNwdjd5MW9uQWRTa2lw I3Q3MDFlMWlxcXVsNHJhd19wbGF5ZXJfcmVzcG9uc2U= I2ttczZ2ZXN6eTdqMHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== I2Rlb3VnZTZsbWE0b2FiX3NhX2Vm I3JhcnJsOWhhZGp2bnBsYXllckFkcw==".split(" ");
_._ModuleManager_initialize=function(v,E){if(!_.mz){if(!_.wC)return;_.wGA(_.wC())}_.mz.setAllModuleInfoString(v,E)};
_._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{
_.Pt=function(v,E,n,f,x){var y={};E&&(y[E]=n);f?y.errorType=f:x&&(y.errorReason=x);_.eQ(v,y);_.Fu()};
_.aN=function(v,E){_.szX(v,_.qD(E))};
_.Zh=function(v){var E=_.qs();return _.d86(E,v,1)};
_.Ee({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 v=this.query;v&&(this.full||v[0]==="("||(v="("+v+")"),this._mq=window.matchMedia(v),this._add(),this.queryHandler(this._mq))},
queryHandler:function(v){this._setQueryMatches(v.matches)}});var DgO;var HIU;var ghb=function(){};
_.c=ghb.prototype;_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c._tapHandler=function(){};
_.c._focusChanged=function(){};
_.c._detectKeyboardFocus=function(){};
_.c._userActivate=function(){};
_.c._upHandler=function(){};
_.c._spaceKeyDownHandler=function(){};
_.c._spaceKeyUpHandler=function(){};
_.c._asyncClick=function(){};
_.c._pressedChanged=function(){};
_.c._ariaActiveAttributeChanged=function(){};
_.c._activeChanged=function(){};
_.c._controlStateChanged=function(){};
_.c._changedButtonState=function(){};
_.c._focusBlurHandler=function(){};
_.c._disabledChanged=function(){};
_.c._changedControlState=function(){};
_.c._downHandler=function(){};
_.c.ensureRipple=function(){};
_.c.getRipple=function(){};
_.c.hasRipple=function(){};
_.c._noinkChanged=function(){};
_.c._focusedChanged=function(){};
_.c._createRipple=function(){};
_.c.registered=function(){};
_.c._invalidChanged=function(){};
_.c.hasValidator=function(){};
_.c.validate=function(){};
_.c._getValidity=function(){};
_.c._requiredChanged=function(){};
_.c._valueChanged=function(){};
_.c._checkedChanged=function(){};
_.c._buttonStateChanged=function(){};
_.c._setPressed=function(){};
_.c._setPointerDown=function(){};
_.c._setReceivedFocusFromKeyboard=function(){};
_.c._setFocused=function(){};
ghb=_.Ee({is:"tp-yt-paper-radio-button",_template:function(){if(HIU!==void 0)return HIU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;DgO===void 0&&(DgO=document.createElement("template"));var f=DgO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return HIU=v},
behaviors:[_.MhF],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(){_.IS(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var v=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),E=Math.floor(3*v);E%2!==v%2&&E++;this.updateStyles({"--paper-radio-button-ink-size":E+"px"})}})}});var NYp;var utp;_.Ee({_template:function(){if(utp!==void 0)return utp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;NYp===void 0&&(NYp=document.createElement("template"));var f=NYp;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return utp=v},
is:"tp-yt-paper-radio-group",behaviors:[_.g_1],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(v){var E=this._valueToItem(v);if(!E||!E.hasAttribute("disabled")){if(this.selected){E=this._valueToItem(this.selected);if(this.selected==v)if(this.allowEmptySelection)v="";else{E&&(E.checked=!0);return}E&&
(E.checked=!1)}_.rq.select.apply(this,[v]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(v){this._focusPrevious();v.preventDefault();this._activateFocusedItem()},
_onDownKey:function(v){this._focusNext();v.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(v){_.Hh1._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(v){_.Hh1._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.rq._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.a1._resetTabindices.apply(this,arguments);this.items.forEach(function(v){v.removeAttribute("aria-selected")},this)}});var jl0;_.ew("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var CJ=function(){return _.g.apply(this,arguments)||this};
_.S(CJ,_.g);_.c=CJ.prototype;_.c.computeHasPrimaryIcon=function(v){return!(!v.icon&&!v.thumbnail)};
_.c.computeHasSecondary=function(v){return!(!v.secondaryIcon&&!v.secondaryNotificationText)};
_.c.computeHideSecondaryString=function(v){return!_.Z("disable_hide_empty_secondary_string")&&!v.secondaryNotificationText};
_.c.computeCompactLinkStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeHasFitHeight=function(v){return v==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.c.isActiveEndpoint=function(v){return(v=this.get("commandMetadata.webCommandMetadata.url",v))?_.R5(window.location.href)!=="/account_transfer_channel"&&_.R5(window.location.href)!=="/gaia_link"&&_.R5(window.location.href)!=="/channel_switcher"||v!=="/account"?_.R5(window.location.href)===v:!0:!1};
_.c.onTap=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.$Z(this.hostElement,[this.data.serviceEndpoint])};
CJ.prototype.onTap=CJ.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CJ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.W("design:type",Boolean)],CJ.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.W("design:type",String)],CJ.prototype,"compactLinkStyle",void 0);
_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],CJ.prototype,"icon",void 0);_.k([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",Object)],CJ.prototype,"secondaryIcon",void 0);_.k([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],CJ.prototype,"hasSecondary",void 0);_.k([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],CJ.prototype,"hideSecondaryString",void 0);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CJ.prototype,"onTap",null);CJ=_.k([_.N({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],CJ);
_.u(CJ,"ytd-compact-link-renderer",function(){if(jl0!==void 0)return jl0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jl0=v},{mode:1});var OI6;_.ew("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var MV=function(){var v=_.g.apply(this,arguments)||this;v.role="link";v.tabindex="0";v.actionMap=_.Z("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 v};
_.S(MV,_.g);_.c=MV.prototype;_.c.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.bo()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.c.getCurrentTheme=function(){return _.lo()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bo()};
_.c.onThemeSelected=function(v,E){var n=v||E?v:_.wn(),f=(n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.AzX(_.R5(window.location.href));_.nH(0,165,v);_.nH(0,174,E);this.prefs.save();f&&_.OL(this.hostElement,"yt-dark-mode-toggled-action",[n]);_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.c.onTap=function(){this.data.serviceEndpoint&&_.$Z(this.hostElement,[this.data.serviceEndpoint])};
_.c.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.c.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.c.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
MV.prototype.onTap=MV.prototype.onTap;MV.prototype.dataChanged=MV.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],MV.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.uI),_.W("design:type",Object)],MV.prototype,"paperItemBehaviors",void 0);_.k([_.H(),_.W("design:type",Object)],MV.prototype,"data",void 0);_.k([_.H({value:function(){return _.Ef()}}),
_.W("design:type",_.G0)],MV.prototype,"prefs",void 0);_.k([_.H(),_.W("design:type",Object)],MV.prototype,"label",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],MV.prototype,"role",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],MV.prototype,"tabindex",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MV.prototype,"dataChanged",null);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MV.prototype,"onTap",null);MV=_.k([_.N({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],MV);
_.u(MV,"ytd-toggle-theme-compact-link-renderer",function(){if(OI6!==void 0)return OI6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return OI6=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Nt=function(v,E,n){_.qX(_.YME)(void 0,v,E,n)};
_.uk=function(v){return function(E,n){var f=v||n.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(E,n,{get:function(){var x;return this.$?this.$[f]:(x=_.ky(this))==null?void 0:x.querySelector("#"+f)},
enumerable:!0,configurable:!0})}};_.jn=function(v){v=v===void 0?!1:v;_.QK.call(this);this.pubSub_=new _.vA(v);_.BV(this,this.pubSub_)};
_.tf(_.jn,_.QK);_.jn.prototype.subscribe=function(v,E,n){return this.isDisposed()?0:this.pubSub_.subscribe(v,E,n)};
_.jn.prototype.unsubscribe=function(v,E,n){return this.isDisposed()?!1:this.pubSub_.unsubscribe(v,E,n)};
_.jn.prototype.unsubscribeByKey=function(v){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(v)};
_.jn.prototype.publish=function(v,E){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var on_=function(){_.Pt("ypcRedeemFlowStarted")},x1=function(v){_.Pt("ypcRedeemFlowFailed",void 0,void 0,void 0,v)},fpR=function(v,E,n){E&&n&&(v.videos.forEach(function(f){f.videoId===E&&(f.itemId=n)}),v.recommendedVideos.forEach(function(f){f.videoId===E&&(f.itemId=n)}))};var xHK;var cDx;/*

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
*/
_.Ee({_template:function(){if(cDx!==void 0)return cDx;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;xHK===void 0&&(xHK=document.createElement("template"));var f=xHK;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return cDx=v},
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(v,E){var n=this._resolveSrc(v);n!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",v===""||E?this._setLoading(!1):(this._resolvedSrc=n,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 v=this.$.sizedImgDiv.style,E=this.$.placeholder.style;v.backgroundSize=E.backgroundSize=this.sizing;v.backgroundPosition=E.backgroundPosition=this.sizing?this.position:"";v.backgroundRepeat=E.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(v){v=_.Os(v,this.$.baseURIAnchor.href);v.length>=2&&v[0]==="/"&&v[1]!=="/"&&(v=(location.origin||location.protocol+"//"+location.host)+v);return v}});var yD0;var pwO;_.Ee({_template:function(){if(pwO!==void 0)return pwO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;yD0===void 0&&(yD0=document.createElement("template"));var f=yD0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return pwO=v},
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(v){return v?"false":"true"},
_headingChanged:function(v){var E=this.getAttribute("heading"),n=this.getAttribute("aria-label");typeof n==="string"&&n!==E||this.setAttribute("aria-label",v)},
_computeHeadingClass:function(v){return v?" over-image":""},
_computeAnimated:function(v){return v}});var Qt3=new _.z("addRendererToItemSectionAction");var XwM;var ca=function(){return _.g.apply(this,arguments)||this};
_.S(ca,_.g);ca.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ca.prototype,"rendererBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],ca.prototype,"dismissibleItemBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ca.prototype,"rendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ca.prototype,"data",void 0);ca=_.k([_.N({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],ca);
_.u(ca,"ytd-comment-history-entry-renderer",function(){if(XwM!==void 0)return XwM;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return XwM=v},{mode:1});var eEP;_.ew("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.ew("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var y0=function(){return _.g.apply(this,arguments)||this};
_.S(y0,_.g);_.c=y0.prototype;_.c.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.c.onTap=function(){this.data.recordClickEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var v=this.data.navigationEndpoint;v&&_.C(v,_.Cg)&&_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})};
_.c.readChanged=function(){var v;_.Vt(this.hostElement,"unread",!((v=this.data)==null?0:v.read))};
_.c.dataChanged=function(){this.data&&_.Vt(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.c.computeThumbnailSize=function(){var v;return((v=this.data)==null?0:v.highPriorityNotification)?32:48};
_.c.getEndpointURL=function(v){return v&&!_.C(v,_.Cg)?this.componentBehavior.computeHref_(v):null};
_.c.getEndpointData=function(v){return v&&!_.C(v,_.Cg)?v:null};
y0.prototype.computeThumbnailSize=y0.prototype.computeThumbnailSize;y0.prototype.dataChanged=y0.prototype.dataChanged;y0.prototype.readChanged=y0.prototype.readChanged;y0.prototype.onKeyUp=y0.prototype.onKeyUp;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],y0.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],y0.prototype,"data",void 0);_.k([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.W("design:type",Number)],y0.prototype,"thumbnailSize",void 0);_.k([_.jk("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],y0.prototype,"onKeyUp",null);
_.k([_.On("data.read"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y0.prototype,"readChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y0.prototype,"dataChanged",null);_.k([_.On("data.highPriorityNotification"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y0.prototype,"computeThumbnailSize",null);
y0=_.k([_.N({is:"ytd-notification-renderer",disableElementRegistration:!0})],y0);
_.u(y0,"ytd-notification-renderer",function(){if(eEP!==void 0)return eEP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return eEP=v},{mode:1});var F7P;var pA=function(){return _.g.apply(this,arguments)||this};
_.S(pA,_.g);pA.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"}}}};
pA.prototype.computeActionButtonClass=function(v){return!v.actionButtons||v.actionButtons.length<=1?"single-button":v.description?"vertical-buttons":"horizontal-buttons"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pA.prototype,"data",void 0);pA=_.k([_.N({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],pA);
_.u(pA,"ytd-playlist-show-metadata-renderer",function(){if(F7P!==void 0)return F7P;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return F7P=v},{mode:1});var mH1;_.ew("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Q0=function(){return _.g.apply(this,arguments)||this};
_.S(Q0,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Q0.prototype,"data",void 0);Q0=_.k([_.N({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Q0);
_.u(Q0,"ytd-purchase-item-renderer",function(){if(mH1!==void 0)return mH1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mH1=v},{mode:1});var wwU;var bSU={};bSU.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(v){if(v)return v.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(v){if(v==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.ew("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var XF=function(){return _.g.apply(this,arguments)||this};
_.S(XF,_.g);XF.prototype.onYtNavigate=function(v){var E=this.openPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);E&&(v.stopPropagation(),this.openPopupBehavior.openPopup(E))};
XF.prototype.onYtNavigate=XF.prototype.onYtNavigate;_.k([_.h(bSU.YtSimpleTextSectionBehavior),_.W("design:type",Object)],XF.prototype,"ytSimpleTextSectionBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],XF.prototype,"openPopupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],XF.prototype,"data",void 0);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],XF.prototype,"onYtNavigate",null);XF=_.k([_.N({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],XF);
_.u(XF,"ytd-simple-text-section-renderer",function(){if(wwU!==void 0)return wwU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wwU=v},{mode:1});var lpp;_.ew("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var eE=function(){return _.g.apply(this,arguments)||this};
_.S(eE,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eE.prototype,"data",void 0);eE=_.k([_.N({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],eE);
_.u(eE,"ytd-unlimited-page-feature-info-renderer",function(){if(lpp!==void 0)return lpp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lpp=v},{mode:1});var stC;var rDb;var FF=function(){return _.g.apply(this,arguments)||this};
_.S(FF,_.g);FF.prototype.dataChanged=function(){if(this.data){var v=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);v&&(v=_.hZ(v,screen.width),this.hostElement.style.backgroundImage="url("+v+")")}};
FF.prototype.dataChanged=FF.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],FF.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FF.prototype,"dataChanged",null);FF=_.k([_.N({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],FF);
_.u(FF,"ytd-post-redemption-section-renderer",function(){if(rDb!==void 0)return rDb;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rDb=v},{mode:1});var Ph6;var mY=function(){return _.g.apply(this,arguments)||this};
_.S(mY,_.g);mY.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mY.prototype,"data",void 0);mY=_.k([_.N({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],mY);
_.u(mY,"ytd-ypc-post-redemption-renderer",function(){if(Ph6!==void 0)return Ph6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ph6=v},{mode:1});_.ew("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var wD=function(){var v=_.g.apply(this,arguments)||this;v.MIN_CODE_LENGTH=12;v.MAX_CODE_LENGTH=24;return v};
_.S(wD,_.g);_.c=wD.prototype;_.c.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.c.created=function(){this.riskService=new _.TaE;this.loadPaymentThenable=_.z9N(_.MX("YPC_MB_URL"))};
_.c.ready=function(){var v=this;this.code.addEventListener("keypress",function(E){v.onCodeInputKeypress(E)})};
_.c.dataChanged=function(){var v=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(E){E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,n.type==="attributes"&&n.attributeName==="dark"&&v.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.c.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var v=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+v+")")}};
_.c.computeRedeemButton=function(v){(v=this.get("redeemButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.c.onRedeemButtonTap=function(v){v.stopPropagation();on_();this.redeemCode()};
_.c.redeemCode=function(){var v=this;this.isLoading=!0;var E=this.riskService.init();_.lg([E,this.loadPaymentThenable]).then(function(){var n=v.data.redeemButton.buttonRenderer.serviceEndpoint,f=_.imL(),x=payments.business.integration.ClientTokenFactory.createClientToken(_.C(n,_.J1U).countryCode,f);f={c:v.code.value.trim(),rd:window.btoa(f),ctk:x};n&&_.P().resolve(_.OO).resolveCommand(n,{form:Object.assign({},f,{element:v.hostElement})})},function(){v.showGenericError();
x1("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.UO(Error("Sl"))})};
_.c.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isLoading=!1;var E,n;this.errorMessage=(E=v.detail)==null?void 0:(n=E.data)==null?void 0:n.errorMessage;var f,x;this.postRedemptionRenderer=(f=v.detail)==null?void 0:(x=f.data)==null?void 0:x.renderer;var y,Q;if(v=(y=v.detail)==null?void 0:(Q=y.data)==null?void 0:Q.redirectEndpoint)this.isLoading=!0,_.jK(this.hostElement,"yt-navigate",{endpoint:v});this.errorMessage?x1("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
v)&&_.Pt("ypcRedeemFlowSucceeded")};
_.c.onYtServiceRequestError=function(v){v.stopPropagation();this.isLoading=!1;if(v=this.get("detail.error.message",v))this.errorMessage=_.qD(v);x1("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.c.onInvokeInstrumentManagerActionCompleted=function(v){v.stopPropagation();this.redeemCode()};
_.c.onInvokeInstrumentManagerActionError=function(v){v.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",v)){case "instrumentManagerLoadError":this.showGenericError();x1("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();x1("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Pt("ypcRedeemFlowCancelled")}};
_.c.onInput=function(){var v=this;_.lz(this,"onInput",function(){var E=v.code.value.trim();v.redeemButtonDisabled=E.length<v.MIN_CODE_LENGTH||E.length>v.MAX_CODE_LENGTH},200)};
_.c.onCodeInputKeypress=function(v){v.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(on_(),this.redeemCode())};
_.c.computeImageUrl=function(v){return v?_.hZ(v.thumbnails,600):null};
_.c.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
wD.prototype.onInvokeInstrumentManagerActionError=wD.prototype.onInvokeInstrumentManagerActionError;wD.prototype.onInvokeInstrumentManagerActionCompleted=wD.prototype.onInvokeInstrumentManagerActionCompleted;wD.prototype.onYtServiceRequestError=wD.prototype.onYtServiceRequestError;wD.prototype.onYtServiceRequestCompleted=wD.prototype.onYtServiceRequestCompleted;wD.prototype.dataChanged=wD.prototype.dataChanged;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],wD.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Boolean)],wD.prototype,"redeemButtonDisabled",void 0);
_.k([_.H(),_.W("design:type",Object)],wD.prototype,"errorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],wD.prototype,"postRedemptionRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],wD.prototype,"observer",void 0);_.k([_.Wp("#code"),_.W("design:type",HTMLInputElement)],wD.prototype,"code",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wD.prototype,"dataChanged",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wD.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wD.prototype,"onYtServiceRequestError",null);
_.k([_.jk("yt-invoke-instrument-manager-action-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wD.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.k([_.jk("yt-invoke-instrument-manager-action-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wD.prototype,"onInvokeInstrumentManagerActionError",null);wD=_.k([_.N({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],wD);
_.u(wD,"ytd-redeem-code-renderer",function(){if(stC!==void 0)return stC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return stC=v},{mode:1});var apC;_.ew("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var bt=function(){var v=_.g.apply(this,arguments)||this;v.businessEmailDisplayState="HIDE_SECTION";return v};
_.S(bt,_.g);_.c=bt.prototype;_.c.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}}}}}};
_.c.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"};
_.c.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.c.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.CG("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.c.onYtServiceRequestCompleted=function(v){var E;if((E=v.detail.data)==null?0:E.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var n;if((n=v.detail.data)==null?0:n.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.c.computeEmailHref=function(v){return"mailto:"+v};
_.c.computeSafeUrl=function(v){if(v)return _.bW(v)};
_.c.onBusinessEmailCaptchaSubmit=function(){var v;(v=this.data)!=null&&v.onBusinessEmailRevealClickCommand&&(v=this.JSC$18943_captchaTextarea.value)&&(v={recaptcha_response_token:v,channel_id:this.data.channelId},_.P().resolve(_.OO).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},v,{element:this.hostElement})}))};
_.c.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hK.Object.defineProperties(bt.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 v,E;return!((v=this.data)==null||!v.primaryLinks)&&!((E=this.data)==null?0:E.links)&&this.data.primaryLinks.every(function(n){return n.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.primaryLinks)&&!((E=this.data)==null?0:E.links)&&!this.shouldShowNewLinks}}});
bt.prototype.onYtServiceRequestCompleted=bt.prototype.onYtServiceRequestCompleted;bt.prototype.dataChanged=bt.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.Wp("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],bt.prototype,"JSC$18943_captchaTextarea",void 0);_.k([_.H(),_.W("design:type",Object)],bt.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],bt.prototype,"businessEmailDisplayState",void 0);_.k([_.H(),_.W("design:type",String)],bt.prototype,"businessEmail",void 0);_.k([_.H(),_.W("design:type",String)],bt.prototype,"businessEmailErrorMessage",void 0);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bt.prototype,"hideDetailsSection",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bt.prototype,"dataChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bt.prototype,"shouldShowNewLinks",null);_.k([_.A("data","shouldShowLinks"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bt.prototype,"shouldShowLegacyLinks",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],bt.prototype,"onYtServiceRequestCompleted",null);bt=_.k([_.N({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],bt);
_.u(bt,"ytd-channel-about-metadata-renderer",function(){if(apC!==void 0)return apC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return apC=v},{mode:1});var ZS3;_.ew("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var lt=function(){return _.g.apply(this,arguments)||this};
_.S(lt,_.g);lt.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lt.prototype,"data",void 0);lt=_.k([_.N({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],lt);
_.u(lt,"ytd-channel-featured-content-renderer",function(){if(ZS3!==void 0)return ZS3;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ZS3=v},{mode:1});var Ch1;_.ew("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var s7=function(){var v=_.g.apply(this,arguments)||this;v.roundContainer=!0;v.amsterdamEnabled=_.Z("enable_desktop_amsterdam_info_panels");return v};
_.S(s7,_.g);_.c=s7.prototype;_.c.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c.dataChanged=function(){this.imageWidth=this.imageHeight=24;var v=this.data;v.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!v.style&&v.image&&v.image.thumbnails.length&&(v=v.image.thumbnails[0],this.imageWidth=v.width||0,this.imageHeight=v.height||0)};
_.c.computeSource=function(v){return v.secondarySource?_.JC(v.secondarySource):_.JC(v.source)};
_.c.computeClarifyStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.c.isLargeStyle=function(v){return v==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.c.computeBackgroundStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.c.computeHasActionButton=function(v){return!!v.actionButton};
_.c.computeHasBottomSection=function(v){return!!v.ctaHasBottomSection};
_.c.computeIsSourceMissing=function(v){return v.ctaHasBottomSection===!1?!0:v&&this.computeSource(v)?!1:!0};
_.c.computeSecondaryEndpoint=function(v){return v.secondaryEndpoint||v.endpoint};
s7.prototype.dataChanged=s7.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],s7.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],s7.prototype,"imageWidth",void 0);_.k([_.H(),_.W("design:type",Number)],s7.prototype,"imageHeight",void 0);
_.k([_.H({computed:"computeSecondaryEndpoint(data)"}),_.W("design:type",Object)],s7.prototype,"secondaryEndpoint",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.W("design:type",Boolean)],s7.prototype,"hasActionButton",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.W("design:type",Boolean)],s7.prototype,"hasBottomSection",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.W("design:type",Boolean)],s7.prototype,"missingSource",void 0);_.k([_.H({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],s7.prototype,"icon",void 0);_.k([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",String)],s7.prototype,"secondaryIcon",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.W("design:type",String)],s7.prototype,"clarifyStyle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.W("design:type",String)],s7.prototype,"backgroundStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],s7.prototype,"roundContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],s7.prototype,"amsterdamEnabled",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s7.prototype,"dataChanged",null);
s7=_.k([_.N({is:"ytd-clarification-renderer",disableElementRegistration:!0})],s7);
_.u(s7,"ytd-clarification-renderer",function(){if(Ch1!==void 0)return Ch1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ch1=v},{mode:1});var M4U;var SR0;var rD=function(){var v=_.g.apply(this,arguments)||this;v.amsterdamEnabled=_.Z("enable_desktop_amsterdam_info_panels");return v};
_.S(rD,_.g);_.c=rD.prototype;_.c.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.c.computeIcon=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.c.computeUseContacts=function(v){return!!v.contacts&&v.contacts.length>0};
_.c.computePhoneContact=function(v){var E,n;return(E=v.contacts)==null?void 0:(n=E.find(function(f){var x;return(f==null?void 0:(x=f.icon)==null?void 0:x.iconType)==="PHONE"}))==null?void 0:n.actionText};
_.c.computeSmsContact=function(v){var E,n;return(E=v.contacts)==null?void 0:(n=E.find(function(f){var x;return(f==null?void 0:(x=f.icon)==null?void 0:x.iconType)==="SMS"}))==null?void 0:n.actionText};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],rD.prototype,"amsterdamEnabled",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.W("design:type",Boolean)],rD.prototype,"useContacts",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.W("design:type",String)],rD.prototype,"phoneContact",void 0);rD=_.k([_.N({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],rD);
_.u(rD,"ytd-single-action-emergency-support-renderer",function(){if(SR0!==void 0)return SR0;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return SR0=v},{mode:1});_.ew("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Pa=function(){var v=_.g.apply(this,arguments)||this;v.roundedContainer=!0;v.amsterdamEnabled=_.Z("enable_desktop_amsterdam_info_panels");return v};
_.S(Pa,_.g);Pa.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Pa.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Pa.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Pa.prototype,"amsterdamEnabled",void 0);
Pa=_.k([_.N({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Pa);
_.u(Pa,"ytd-emergency-onebox-renderer",function(){if(M4U!==void 0)return M4U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return M4U=v},{mode:1});var UHK;_.ew("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var aA=function(){return _.g.apply(this,arguments)||this};
_.S(aA,_.g);aA.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],aA.prototype,"data",void 0);aA=_.k([_.N({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],aA);
_.u(aA,"ytd-exploratory-results-renderer",function(){if(UHK!==void 0)return UHK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return UHK=v},{mode:1});var qR_;_.ew("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var ZP=function(){var v=_.g.apply(this,arguments)||this;v.messageData=null;return v};
_.S(ZP,_.g);_.c=ZP.prototype;_.c.onServiceRequestCompleted=function(v,E){v=E.actions||[];E=0;for(var n=v.length;E<n;E++){var f=v[E],x=void 0,y=void 0;if((x=_.C(f,_.mD))==null?0:(y=x.item)==null?0:y.messageRenderer)this.messageData=_.C(f,_.mD).item.messageRenderer}};
_.c.dataChanged=function(){var v=this.data;this.hostElement.hidden=!1;_.Vt(this.hostElement,"is-channel",v&&!v.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.c.computeThumbnailWidth=function(v){return v?126:56};
_.c.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.c.onSubmitTap=function(){var v=this.data,E=this.selectedResponseIndex;v!==void 0&&E!==void 0&&(v=v.responses[E],v.responseData&&_.P().resolve(_.OO).resolveCommand(v.responseData,{form:{element:this.hostElement}}))};
_.c.onDismissTap=function(){this.hostElement.hidden=!0;var v=this.data;v!==void 0&&v.dismissalEndpoint&&_.P().resolve(_.OO).resolveCommand(v.dismissalEndpoint,{form:{element:this.hostElement}})};
_.c.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
ZP.prototype.onSelectedResponseIndexChange=ZP.prototype.onSelectedResponseIndexChange;ZP.prototype.dataChanged=ZP.prototype.dataChanged;ZP.prototype.onServiceRequestCompleted=ZP.prototype.onServiceRequestCompleted;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ZP.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],ZP.prototype,"messageData",void 0);
_.k([_.H(),_.W("design:type",Number)],ZP.prototype,"selectedResponseIndex",void 0);_.k([_.Wp("#submit-button"),_.W("design:type",HTMLButtonElement)],ZP.prototype,"submitButton",void 0);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],ZP.prototype,"onServiceRequestCompleted",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZP.prototype,"dataChanged",null);
_.k([_.On("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZP.prototype,"onSelectedResponseIndexChange",null);ZP=_.k([_.N({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],ZP);
_.u(ZP,"ytd-feedback-elicitation-single-question-renderer",function(){if(qR_!==void 0)return qR_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return qR_=v},{mode:1});var JDM;var CA=function(){return _.g.apply(this,arguments)||this};
_.S(CA,_.g);CA.prototype.computeThumbnailWidth=function(v){return v?602:428};
CA.prototype.updateWideFromBinding=function(v){this.wide=v.detail.value};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CA.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],CA.prototype,"wide",void 0);CA=_.k([_.N({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],CA);
_.u(CA,"ytd-newspaper-hero-video-renderer",function(){if(JDM!==void 0)return JDM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JDM=v},{mode:1});var K7P;var M5=function(){return _.g.apply(this,arguments)||this};
_.S(M5,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],M5.prototype,"rendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],M5.prototype,"data",void 0);M5=_.k([_.N({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],M5);
_.u(M5,"ytd-newspaper-mini-video-renderer",function(){if(K7P!==void 0)return K7P;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return K7P=v},{mode:1});var dH6;_.ew("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var SE=function(){return _.g.apply(this,arguments)||this};
_.S(SE,_.g);SE.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"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],SE.prototype,"data",void 0);SE=_.k([_.N({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],SE);
_.u(SE,"ytd-newspaper-renderer",function(){if(dH6!==void 0)return dH6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dH6=v},{mode:1});var IpO;_.ew("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var U7=function(){var v=_.g.apply(this,arguments)||this;v.isSegment=!1;v.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};v.nextContinuation={continuationType:"playlistVideoListContinuation"};return v};
_.S(U7,_.g);_.c=U7.prototype;_.c.attached=function(){_.P();var v;(v=_.P().resolve(_.jp(_.Im)))!=null&&(v.playlistVideoListElement=this.hostElement)};
_.c.detached=function(){var v;(v=_.P().resolve(_.jp(_.Im)))!=null&&(v.playlistVideoListElement=void 0);v=_.P().resolve(_.jp(_.jq));_.Z("web_enable_voting_animation")&&v&&(v.parentElem=void 0,v.videos=[],v.continuationsPresent=!1,v.showRefreshPill=!1)};
_.c.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"}}}}}};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c.dataChanged=function(){var v=_.P().resolve(_.jp(_.jq));if(_.Z("web_enable_voting_animation")&&this.data&&v){var E=_.K(this.hostElement).querySelector("#contents");E&&(v.parentElem=E);v.addVideos(this.data.contents)}_.u3X(this.ytReorderableBehavior)};
_.c.onRendererstamperFinished=function(){this.canReorder&&_.j31(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.c.onPlaylistReloading=function(){this.isReloading=!0};
_.c.onUpdateSetVideoId=function(v){if(v.detail&&this.data&&this.data.contents){var E=v.detail;v=this.data.contents.findIndex(function(x){var y;return((y=x.playlistVideoRenderer)==null?void 0:y.videoId)===E.videoId});
if(!(v<0)&&E.setVideoId&&(this.set("data.contents."+v+".playlistVideoRenderer.setVideoId",E.setVideoId),_.Z("web_enable_voting_animation"))){var n;if(v=_.C((n=this.data.contents[v].playlistVideoRenderer)==null?void 0:n.engagementBar,_.af1)){var f;(f=v.actions)==null||f.forEach(function(x){if(x=_.C(x,_.ZmN))x.itemId=E.setVideoId})}(n=_.P().resolve(_.jp(_.jq)))&&fpR(n,E.videoId,E.setVideoId)}}};
_.c.computeContentsClass=function(v){return v?"reloading":""};
_.c.computeIsSortable=function(v,E){return v&&E>0&&!this.isSegment&&!_.Z("shorts_in_playlists_web")};
_.c.computeIsEditable=function(v){return v};
_.c.computeCanReorder=function(v){return v};
_.c.handlePlaylistRemoveVideosAction=function(v){if(this.get("playlistRemoveVideosAction.setVideoIds",v)&&this.data&&this.data.contents){v=_.C(v,_.Txl).setVideoIds;for(var E=this.data.contents.length-1;E>=0;){var n=this.data.contents[E].playlistVideoRenderer;n&&n.setVideoId&&v.includes(n.setVideoId)&&this.splice("data.contents",E,1);E--}_.OL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.c.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".playlistVideoRenderer.index",_.qD(String(v+1)))};
_.c.handleDrop=function(v){v=v.currDragItem;var E=_.OQ(v.parentNode.childNodes,v),n=this.data.contents.splice(Number(_.JC(v.data.index))-1,1)[0];this.data.contents.splice(E,0,n);E=E?this.get("contents."+(E-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();v=this.buildReorderServiceEndpoint(v.data.setVideoId,E);this.ytComponentBehavior.resolveCommand(v)};
_.c.buildReorderServiceEndpoint=function(v,E){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",v),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",E),this.data.onReorderEndpoint):null};
_.c.handleUpdatePlaylistAction=function(v){var E;(v=_.C((E=_.C(v,_.io4))==null?void 0:E.updatedRenderer,_.XkS))&&this.canReorder!==v.canReorder&&this.set("data.canReorder",v.canReorder);v&&v.contents&&(this.set("data.contents",v.contents),this.isReloading=!1);v&&v.continuations&&this.set("data.continuations",v.continuations)};
_.c.handleAddRendererToItemSectionAction=function(v){var E,n=(E=_.C(v,Qt3))==null?void 0:E.renderer,f;n&&((f=_.C(v,Qt3))==null?void 0:f.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,n),v=_.P().resolve(_.jp(_.jq)),_.Z("web_enable_voting_animation")&&v&&(n&&(E=_.PZN(n))&&v.recommendedVideos.push({itemId:E,videoId:_.CZN(n),voteCount:_.M_Q(n),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.c.isVotingEnabledOnPlaylist=function(v){if(!v)return!1;v=_.p(v);for(v=v.next();!v.done;v=v.next()){var E=void 0;return!!_.C((E=v.value.playlistVideoRenderer)==null?void 0:E.engagementBar,_.af1)}return!1};
_.c.onAppendContinuationItemsActionFinished=function(){var v;this.isVotingEnabledOnPlaylist((v=this.data)==null?void 0:v.contents)&&(this.updateIndices(),v=_.P().resolve(_.jp(_.jq)),_.Z("web_enable_voting_animation")&&v&&this.data&&v.addVideos(this.data.contents))};
_.c.updateVideoData=function(v){if(v.detail&&this.data&&this.data.contents){var E=v.detail;v=E.toIdx;var n=E.itemId,f=E.newVoteCount,x=E.voteStatus;E=E.hideItem;var y,Q,e=(y=this.data)==null?void 0:(Q=y.contents)==null?void 0:Q.findIndex(function(r){return _.PZN(r)===n});
if(!(e<0)){y=this.data.contents[e];var F;if((F=y.playlistVideoRenderer)==null?0:F.voteCount)y.playlistVideoRenderer.voteCount=f;var b;if(F=_.C((b=y.playlistVideoRenderer)==null?void 0:b.engagementBar,_.af1)){var l;(l=F.actions)==null||l.forEach(function(r){(r=_.C(r,_.ZmN))&&r.initialState&&(r.initialState.votes=f,r.initialState.status=x)})}this.data.contents.splice(e,1);
E||this.data.contents.splice(v,0,y);this.updateIndices()}}};
U7.prototype.updateVideoData=U7.prototype.updateVideoData;U7.prototype.onAppendContinuationItemsActionFinished=U7.prototype.onAppendContinuationItemsActionFinished;U7.prototype.onUpdateSetVideoId=U7.prototype.onUpdateSetVideoId;U7.prototype.onPlaylistReloading=U7.prototype.onPlaylistReloading;U7.prototype.onRendererstamperFinished=U7.prototype.onRendererstamperFinished;U7.prototype.dataChanged=U7.prototype.dataChanged;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],U7.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],U7.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.h(_.OxS),_.W("design:type",Object)],U7.prototype,"ytReorderableBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],U7.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],U7.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],U7.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],U7.prototype,"isReloading",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],U7.prototype,"isSegment",void 0);_.k([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.W("design:type",Boolean)],U7.prototype,"isSortable",void 0);_.k([_.H({computed:"computeIsEditable(data.isEditable)"}),_.W("design:type",Boolean)],U7.prototype,"isEditable",void 0);_.k([_.H({computed:"computeCanReorder(data.canReorder)"}),_.W("design:type",Boolean)],U7.prototype,"canReorder",void 0);
_.k([_.H({value:101}),_.W("design:type",Number)],U7.prototype,"scrollMargin",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U7.prototype,"dataChanged",null);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U7.prototype,"onRendererstamperFinished",null);
_.k([_.jk("yt-playlist-reloading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U7.prototype,"onPlaylistReloading",null);_.k([_.jk("yt-update-set-video-id"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],U7.prototype,"onUpdateSetVideoId",null);
_.k([_.jk("yt-append-continuation-items-action-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U7.prototype,"onAppendContinuationItemsActionFinished",null);_.k([_.jk("yt-update-video-data-voting-animation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],U7.prototype,"updateVideoData",null);U7=_.k([_.N({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],U7);
_.u(U7,"ytd-playlist-video-list-renderer",function(){if(IpO!==void 0)return IpO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return IpO=v},{mode:_.HE("kevlar_poly_si_batch_j047")?1:2});var YRx;var q5=function(){return _.g.apply(this,arguments)||this};
_.S(q5,_.g);q5.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"}}}}};
q5.prototype.onTextWrapperTap=function(v){var E=this.data&&this.data.navigationEndpoint;E&&!_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.jK(this.hostElement,"yt-navigate",{endpoint:E})};
q5.prototype.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");v&&v.commandMetadata&&_.C(v.commandMetadata,_.PD)&&_.C(v.commandMetadata,_.PD).fireAutomatically&&_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})};
q5.prototype.dataChanged=q5.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.K4),_.W("design:type",Object)],q5.prototype,"ytdLockupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],q5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],q5.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],q5.prototype,"biggerThumbsStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"leftAligned",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"dataChanged",null);q5=_.k([_.N({disableElementRegistration:!0,is:"ytd-movie-renderer"})],q5);
_.u(q5,"ytd-movie-renderer",function(){if(YRx!==void 0)return YRx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YRx=v},{mode:1});var hEU;var J3=function(){var v=_.g.apply(this,arguments)||this;v.rounded=!0;v.pageAttachedTo=void 0;v.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return v};
_.S(J3,_.g);J3.prototype.attached=function(){this.pageAttachedTo=_.P().resolve(_.Y_).getCurrentPage();_.jK(this.hostElement,"yt-player-attached",this.player)};
J3.prototype.detached=function(){var v;if((v=this.pageAttachedTo)==null?0:v.hostElement)_.jK(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
J3.prototype.dataChanged=function(){var v;if((v=this.data)==null?0:v.videoId)v={video_id:this.data.videoId,autoplay:!0},!_.Z("miniplayer_stop_channel_video_autoplay_killswitch")&&_.P().resolve(_.hf).isMiniplayerActive()&&(v.pause_at_start=!0,v.autoplay=!1),this.player.loadVideoWithPlayerVars(v)};
J3.prototype.handleSignalActionPausePlayer=function(){_.V3().pause()};
J3.prototype.dataChanged=J3.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],J3.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],J3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],J3.prototype,"rounded",void 0);_.k([_.Wp("#player"),_.W("design:type",Object)],J3.prototype,"player",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J3.prototype,"dataChanged",null);J3=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],J3);
_.u(J3,"ytd-channel-video-player-renderer",function(){if(hEU!==void 0)return hEU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hEU=v},{mode:1});var ADO;var V4P;var DH0;var KA=function(){var v=_.g.apply(this,arguments)||this;v.playing=!1;v.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.xw(v);v.active=!1;return v};
_.S(KA,_.g);_.c=KA.prototype;_.c.detached=function(){this.stop()};
_.c.play=function(){var v=this,E,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return v.active=!0,E=v.get("data.inlinePlaybackEndpoint.watchEndpoint"),n=E.videoId||v.data.videoId,f=E.startTimeSeconds||0,x=E.playerParams||null,_.Z("kevlar_player_update_killswitch")?_.m(Q,v.playerEl.update({args:{video_id:n,startSeconds:f,player_params:x}}),2):(v.playerEl.loadVideoWithPlayerVars({video_id:n,startSeconds:f,player_params:x,autoplay:!0}),Q.jumpTo(2));if(Q.nextAddress!=4)return _.m(Q,v.playerEl.getPlayerPromise(),
4);y=Q.yieldResult;y.unloadModule("annotations_module");y.addEventListener("onStateChange",function(e){v.onPlayerStateChange(e)});
_.yQ(Q)})};
_.c.onPlayerStateChange=function(v){if(this.active)switch(this.playing=v===1,v){case 1:_.jK(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.jK(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.c.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.c.resize=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.playerEl.getPlayerPromise(),2);E=n.yieldResult;E.setSize(NaN,NaN);_.yQ(n)})};
_.k([_.H(),_.W("design:type",Object)],KA.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],KA.prototype,"playing",void 0);_.k([_.H(),_.W("design:type",Object)],KA.prototype,"playerId",void 0);_.k([_.Wp("#player"),_.W("design:type",Object)],KA.prototype,"playerEl",void 0);KA=_.k([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],KA);
_.u(KA,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(DH0!==void 0)return DH0;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return DH0=v},{mode:1});var HSO;var gnb;var dD=function(){var v=_.g.apply(this,arguments)||this;v.width=0;return v};
_.S(dD,_.g);_.c=dD.prototype;_.c.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.uo(this,this.onEnded));this.mp4El.addEventListener("error",_.uo(this,this.onError))};
_.c.detached=function(){this.videoEl.removeEventListener("ended",_.uo(this,this.onEnded));this.mp4El.removeEventListener("error",_.uo(this,this.onError))};
_.c.play=function(){var v=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var E=this.videoEl.play();E?E.then(function(){v.handleVideoStartPlaying()}).catch(function(){_.jK(v.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.jK(this.hostElement,"yt-video-thumbnail-not-playing")};
_.c.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.c.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.c.dataChanged=function(){var v;if((v=this.data)==null?0:v.thumbnailPlaceholder)v=_.hZ(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+v+")";this.stop();this.autoplay&&this.play()};
_.c.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.c.onEnded=function(){this.stop();_.jK(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.c.onError=function(){_.jK(this.hostElement,"yt-video-thumbnail-error")};
_.c.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.c.getVideoThumbnail=function(v){if(v&&v.length)return v[0]};
dD.prototype.dataChanged=dD.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],dD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],dD.prototype,"animatePlaceholderOnEntrance",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],dD.prototype,"autoplay",void 0);_.k([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.W("design:type",Object)],dD.prototype,"videoThumbnail",void 0);
_.k([_.H(),_.W("design:type",Boolean)],dD.prototype,"loop",void 0);_.k([_.H(),_.W("design:type",Boolean)],dD.prototype,"isVideoPlaying",void 0);_.k([_.H(),_.W("design:type",Object)],dD.prototype,"width",void 0);_.k([_.Wp("#mp4"),_.W("design:type",HTMLElement)],dD.prototype,"mp4El",void 0);_.k([_.Wp("#placeholder"),_.W("design:type",HTMLElement)],dD.prototype,"placeholderEl",void 0);_.k([_.Wp("#video"),_.W("design:type",HTMLVideoElement)],dD.prototype,"videoEl",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dD.prototype,"dataChanged",null);dD=_.k([_.p5({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],dD);
_.u(dD,"yt-video-as-thumbnail-details",function(){if(gnb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;HSO===void 0&&(HSO=document.createElement("template"));var f=HSO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);gnb=v}v=gnb;return v},{mode:2});var IA=function(){var v=_.g.apply(this,arguments)||this;v.disableGridStateAware=!1;v.animationEnabled=_.Z("enable_web_ketchup_hero_animation");v.transitioningOut=!1;v.narrow=!1;v.narrower=!1;v.isCarouselInFeed=!1;v.videoTimeoutJobId=0;v.panelTimeoutJobId=0;v.panelTimeoutJobStartMs=0;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.S(IA,_.g);_.c=IA.prototype;_.c.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.c.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var v;this.player&&((v=this.data)==null?0:v.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.c.attached=function(){this.onWindowResized()};
_.c.detached=function(){this.clearTimeouts()};
_.c.onWindowResized=function(){this.updateSize()};
_.c.computePanelLayout=function(v){return v&&v.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.c.playVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.play();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.play()};
_.c.stopVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.stop();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.stop()};
_.c.transitionOut=function(){var v=this;this.transitioningOut=!0;return new Promise(function(E){var n=function(){_.K(v.hostElement).querySelector("#action-button").removeEventListener("animationend",n);_.wh.cancelJob(f);E();v.transitioningOut=!1};
var f=_.cP(_.wh,n,1E3);_.K(v.hostElement).querySelector("#action-button").addEventListener("animationend",n);v.player&&(v.player.playing=!1)})};
_.c.computeMetadataOrder=function(v){return v&&v.metadataOrder&&v.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?v.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.c.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.c.computeAvatarSize=function(v){return v&&v.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.c.onContentClick=function(v){if(!_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString()])){var E;if((E=this.data)==null?0:E.navigationEndpoint){var n;this.componentBehavior.resolveCommand((n=this.data)==null?void 0:n.navigationEndpoint)}}};
_.c.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.c.setBackgroundImage=function(v){if(v=this.getBackgroundImageUrl(v))_.K(this.hostElement).querySelector("#hero").style.backgroundImage="url("+v+")"};
_.c.setScrimLayer=function(v){var E=this.getScrimLayerColorStops(v);v=((v==null?void 0:v.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(v=180);_.MX("HTML_DIR")==="rtl"&&(v=-v);E&&(_.K(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+v+"deg, "+E+")")};
_.c.isNarrower=function(){return this.hostElement.clientWidth<IA.NARROW_VERSION_SIZE};
_.c.getScrimLayerColorStops=function(){var v,E=(v=this.data)==null?void 0:v.scrimColorValues;if(!E)return null;if(E.length===1)return v=_.Qt(E[0]),v+" 0%, "+v+" 100%";if(E.length===3){var n=[0,72,98];return E.map(function(f,x){return _.Qt(f)+" "+n[x]+"%"}).join(",")}return null};
_.c.getBackgroundImageUrl=function(v){return v&&v.largeFormFactorBackgroundThumbnail?_.hZ((v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.c.onPlaying=function(){this.startVideoTimeout()};
_.c.onEnded=function(){this.rotate()};
_.c.startPanelTimeout=function(){var v=this;if(!this.panelTimeoutJobId){var E=this.get("data.minPanelDisplayDurationMs");E&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.cP(_.wh,function(){v.rotate()},E))}};
_.c.startVideoTimeout=function(){var v=this;if(!this.videoTimeoutJobId){_.wh.cancelJob(this.panelTimeoutJobId);var E=Date.now()-this.panelTimeoutJobStartMs;E=Math.max(0,this.get("data.minPanelDisplayDurationMs")-E);E=Math.max(this.get("data.minVideoPlayDurationMs")||0,E);this.videoTimeoutJobId=_.cP(_.wh,function(){v.rotate()},E)}};
_.c.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.wh.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.wh.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.c.rotate=function(){this.clearTimeouts();_.jK(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.hK.Object.defineProperties(IA.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#video")}}});
_.hK.Object.defineProperties(IA,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
IA.prototype.onEnded=IA.prototype.onEnded;IA.prototype.onPlaying=IA.prototype.onPlaying;IA.prototype.dataChanged=IA.prototype.dataChanged;_.k([_.h(_.Mj),_.W("design:type",Object)],IA.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],IA.prototype,"componentBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],IA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.h(_.O_1),_.W("design:type",Object)],IA.prototype,"ytBooleanLogicBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"disableGridStateAware",void 0);_.k([_.H(),_.W("design:type",Object)],IA.prototype,"data",void 0);_.k([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.W("design:type",String)],IA.prototype,"panelLayout",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"animationEnabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"transitioningOut",void 0);
_.k([_.H({computed:"computeMetadataOrder(data)"}),_.W("design:type",Boolean)],IA.prototype,"metadataOrder",void 0);_.k([_.H({computed:"computeByline(data)"}),_.W("design:type",Object)],IA.prototype,"byline",void 0);_.k([_.H({computed:"computeAvatarSize(data)"}),_.W("design:type",Number)],IA.prototype,"avatarSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"narrow",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"narrower",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"layoutStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IA.prototype,"isCarouselInFeed",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IA.prototype,"dataChanged",null);_.k([_.jk("yt-default-promo-panel-renderer-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IA.prototype,"onPlaying",null);
_.k([_.jk("yt-default-promo-panel-renderer-ended"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IA.prototype,"onEnded",null);IA=_.k([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],IA);
_.u(IA,"ytd-default-promo-panel-renderer",function(){if(V4P!==void 0)return V4P;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return V4P=v},{mode:1});_.ew("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Y1=function(){var v=_.g.apply(this,arguments)||this;v.narrower=!1;v.dotMenuVisible=!1;v.paginationThumbnailsVisible=!1;v.active=!0;v.disableGridStateAware=!1;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.S(Y1,_.g);_.c=Y1.prototype;_.c.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]]"}}}}}};
_.c.attached=function(){this.onWindowResized()};
_.c.detached=function(){this.jobId&&_.wh.cancelJob(this.jobId);this.updateSizeJobId&&_.wh.cancelJob(this.updateSizeJobId)};
_.c.onWindowResized=function(){this.updateSize()};
_.c.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.c.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.c.setCarouselItem=function(v){v>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.wh.cancelJob(this.jobId);var E=this.getCurrentPanelElement();E&&E.stopVideo();this.currentItemIndex=v%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(E||(E=this.getCurrentPanelElement()),E.playVideo()):this.startRotationJob()};
_.c.scrollThumbnails=function(v){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var E=this.getCurrentPaginationElement();if(E){var n=_.K(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?n.style.transform="translateX(0)":(E=E.offsetWidth+8,n.style.transform="translateX(-"+E*(v-Math.ceil(Math.floor(this.overlay.offsetWidth/E)/2)+1)+"px)")}}};
_.c.onDataChanged=function(){var v=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Fw(_.wh,function(){v.getCurrentPanelElement().updateSize();v.updateSize()}))};
_.c.getCurrentPanelElement=function(){return _.K(_.K(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.c.getCurrentPaginationElement=function(){return _.K(_.K(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.c.getNavigationClass=function(v,E){return v===E?"selected":""};
_.c.getNavigationDurationStyle=function(v){return"animation-duration:"+(this.get("data.carouselItems."+v+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.c.onNavigationTap=function(v){var E=this,n=v.model.index;n!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){E.setCarouselItem(n)}),this.autorotateActive=!1)};
_.c.onVideoThumbnailEnded=function(){var v=this;if(this.shouldRotate()){var E=this.getCurrentPaginationElement();E&&(E.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){E.classList.remove("finished");v.setNextCarouselItem()}))}};
_.c.onVideoThumbnailError=function(){this.startRotationJob()};
_.c.onVideoNotPlaying=function(){this.startRotationJob()};
_.c.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.c.startRotationJob=function(){var v=this;_.wh.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.wh.addLowPriorityJob(function(){v.getCurrentPanelElement().transitionOut().then(function(){v.setNextCarouselItem()})},this.rotationTimeout))};
_.c.computeDotMenuVisible=function(v,E){return!!v&&!!v.carouselItems&&v.carouselItems.length>1&&!v.paginationThumbnails||!!E};
_.c.computePaginationThumbnailsVisible=function(v,E){var n,f;return((f=v==null?void 0:(n=v.paginationThumbnails)==null?void 0:n.length)!=null?f:0)>1&&!E};
_.c.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.c.computePaginatorAlignment=function(v){return(v==null?void 0:v.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.c.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.c.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.c.isNarrower=function(v){return(v!=null?v:0)<IA.NARROW_VERSION_SIZE};
Y1.prototype.activeChanged=Y1.prototype.activeChanged;Y1.prototype.onVideoNotPlaying=Y1.prototype.onVideoNotPlaying;Y1.prototype.onVideoThumbnailError=Y1.prototype.onVideoThumbnailError;Y1.prototype.onVideoThumbnailEnded=Y1.prototype.onVideoThumbnailEnded;Y1.prototype.onDataChanged=Y1.prototype.onDataChanged;_.k([_.h(_.Mj),_.W("design:type",Object)],Y1.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Y1.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Y1.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Y1.prototype,"currentItem",void 0);
_.k([_.H(),_.W("design:type",Number)],Y1.prototype,"currentItemIndex",void 0);_.k([_.H(),_.W("design:type",Number)],Y1.prototype,"rotationTimeout",void 0);_.k([_.H(),_.W("design:type",Number)],Y1.prototype,"loopCount",void 0);_.k([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.W("design:type",String)],Y1.prototype,"paginatorAlignment",void 0);_.k([_.H(),_.W("design:type",Number)],Y1.prototype,"jobId",void 0);
_.k([_.H(),_.W("design:type",Number)],Y1.prototype,"updateSizeJobId",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Y1.prototype,"isCarouselInFeed",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Y1.prototype,"narrower",void 0);_.k([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.W("design:type",Object)],Y1.prototype,"dotMenuVisible",void 0);
_.k([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.W("design:type",Object)],Y1.prototype,"paginationThumbnailsVisible",void 0);_.k([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.W("design:type",String)],Y1.prototype,"layoutType",void 0);_.k([_.H({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],Y1.prototype,"autorotateActive",void 0);_.k([_.H(),_.W("design:type",Object)],Y1.prototype,"active",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Y1.prototype,"disableGridStateAware",void 0);_.k([_.Wp("#overlay"),_.W("design:type",HTMLElement)],Y1.prototype,"overlay",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"onDataChanged",null);
_.k([_.jk("yt-video-thumbnail-ended"),_.jk("yt-default-promo-panel-renderer-rotate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"onVideoThumbnailEnded",null);_.k([_.jk("yt-video-thumbnail-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"onVideoThumbnailError",null);
_.k([_.jk("yt-video-thumbnail-not-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"onVideoNotPlaying",null);_.k([_.Tw("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"activeChanged",null);Y1=_.k([_.N({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Y1);
_.u(Y1,"ytd-carousel-item-renderer",function(){if(ADO!==void 0)return ADO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ADO=v},{mode:2});var N9O;var uA0;var jtP;var OSx;var h3=function(){var v=_.g.apply(this,arguments)||this;v.originalQuery=null;v.originalEndpoint=null;return v};
_.S(h3,_.g);h3.prototype.computeShowOriginalQueryWithoutEndpoint_=function(v,E){return!(!v||E)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],h3.prototype,"correctedText",void 0);_.k([_.H(),_.W("design:type",Object)],h3.prototype,"correctedQuery",void 0);_.k([_.H(),_.W("design:type",Object)],h3.prototype,"correctedEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],h3.prototype,"originalText",void 0);_.k([_.H(),_.W("design:type",Object)],h3.prototype,"originalQuery",void 0);
_.k([_.H(),_.W("design:type",Object)],h3.prototype,"originalEndpoint",void 0);_.k([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.W("design:type",Boolean)],h3.prototype,"showOriginalQueryWithoutEndpoint",void 0);h3=_.k([_.p5({is:"yt-search-query-correction",disableElementRegistration:!0})],h3);
_.u(h3,"yt-search-query-correction",function(){if(OSx===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;jtP===void 0&&(jtP=document.createElement("template"));var f=jtP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);OSx=v}v=OSx;return v},{mode:2});_.ew("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var A3=function(){return _.g.apply(this,arguments)||this};
_.S(A3,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],A3.prototype,"data",void 0);A3=_.k([_.p5({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],A3);
_.u(A3,"yt-did-you-mean-renderer",function(){if(uA0===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;N9O===void 0&&(N9O=document.createElement("template"));var f=N9O;n.call(E,f.content.cloneNode(!0),v.content.firstChild);uA0=v}v=uA0;return v},{mode:2});var kg3;var W7M;_.ew("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var V0=function(){return _.g.apply(this,arguments)||this};
_.S(V0,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],V0.prototype,"data",void 0);V0=_.k([_.p5({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],V0);
_.u(V0,"yt-including-results-for-renderer",function(){if(W7M===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;kg3===void 0&&(kg3=document.createElement("template"));var f=kg3;n.call(E,f.content.cloneNode(!0),v.content.firstChild);W7M=v}v=W7M;return v},{mode:2});var $H0;var L7R;_.ew("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var DP=function(){return _.g.apply(this,arguments)||this};
_.S(DP,_.g);DP.prototype.computeExtraClasses_=function(v,E){var n="";v&&(n+=" "+v.toLowerCase().replace(/_/g,"-"));E&&(n+=" "+E.toLowerCase().replace(/_/g,"-"));return n};
DP.prototype.computeUrlImg_=function(){var v=this.data;v.image&&(_.K(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.hZ(v.image.thumbnails,Number.MAX_VALUE)+")")};
DP.prototype.computeUrlImg_=DP.prototype.computeUrlImg_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],DP.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DP.prototype,"computeUrlImg_",null);DP=_.k([_.p5({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],DP);
_.u(DP,"yt-music-pass-feature-info-renderer",function(){if(L7R===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;$H0===void 0&&($H0=document.createElement("template"));var f=$H0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);L7R=v}v=L7R;return v},{mode:2});var GgK;var T9x;_.ew("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Ha=function(){return _.g.apply(this,arguments)||this};
_.S(Ha,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ha.prototype,"data",void 0);Ha=_.k([_.p5({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Ha);
_.u(Ha,"yt-no-results-found-showing-results-for-renderer",function(){if(T9x===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;GgK===void 0&&(GgK=document.createElement("template"));var f=GgK;n.call(E,f.content.cloneNode(!0),v.content.firstChild);T9x=v}v=T9x;return v},{mode:2});var iSR;var zE3;_.ew("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var gD=function(){return _.g.apply(this,arguments)||this};
_.S(gD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gD.prototype,"data",void 0);gD=_.k([_.p5({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],gD);
_.u(gD,"yt-results-without-quotes-renderer",function(){if(zE3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;iSR===void 0&&(iSR=document.createElement("template"));var f=iSR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);zE3=v}v=zE3;return v},{mode:2});var RER;var t4K;_.ew("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var N5=function(){return _.g.apply(this,arguments)||this};
_.S(N5,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],N5.prototype,"data",void 0);N5=_.k([_.p5({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],N5);
_.u(N5,"yt-search-no-results-renderer",function(){if(t4K===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;RER===void 0&&(RER=document.createElement("template"));var f=RER;n.call(E,f.content.cloneNode(!0),v.content.firstChild);t4K=v}v=t4K;return v},{mode:2});var B93;var vvR;_.ew("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var ut=function(){return _.g.apply(this,arguments)||this};
_.S(ut,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ut.prototype,"data",void 0);ut=_.k([_.p5({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],ut);
_.u(ut,"yt-showing-results-for-renderer",function(){if(vvR===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;B93===void 0&&(B93=document.createElement("template"));var f=B93;n.call(E,f.content.cloneNode(!0),v.content.firstChild);vvR=v}v=vvR;return v},{mode:2});var EvO;var nvp;var ov0;var fhb;var jE=function(){var v=_.g.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.S(jE,_.g);jE.prototype.toggleAnswer_=function(v){var E=_.Sk(v);E&&E.classList.contains("yt-simple-endpoint")||(v.preventDefault(),v.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
jE.prototype.toggleAnswer_=jE.prototype.toggleAnswer_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jE.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jE.prototype,"answerExpanded",void 0);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jE.prototype,"toggleAnswer_",null);
jE=_.k([_.p5({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],jE);
_.u(jE,"yt-generic-faq-question-renderer",function(){if(fhb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ov0===void 0&&(ov0=document.createElement("template"));var f=ov0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);fhb=v}v=fhb;return v},{mode:2});_.ew("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var O7=function(){return _.g.apply(this,arguments)||this};
_.S(O7,_.g);O7.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],O7.prototype,"data",void 0);O7=_.k([_.p5({is:"yt-faq-section-renderer",disableElementRegistration:!0})],O7);
_.u(O7,"yt-faq-section-renderer",function(){if(nvp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;EvO===void 0&&(EvO=document.createElement("template"));var f=EvO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);nvp=v}v=nvp;return v},{mode:2});var xVR;var cuC;_.ew("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var k1=function(){return _.g.apply(this,arguments)||this};
_.S(k1,_.g);
k1.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],k1.prototype,"data",void 0);k1=_.k([_.p5({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],k1);
_.u(k1,"yt-offer-item-expanded-renderer",function(){if(cuC===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;xVR===void 0&&(xVR=document.createElement("template"));var f=xVR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);cuC=v}v=cuC;return v},{mode:2});var yuR;var ptp;_.ew("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Wa=function(){return _.g.apply(this,arguments)||this};
_.S(Wa,_.g);
Wa.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"}}}}};
Wa.prototype.computeFullWidthMode=function(v){return!(!v||!v.fullWidthMode)};
Wa.prototype.computeBorderlessMode=function(v){return!(!v||!v.borderlessMode)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Wa.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.W("design:type",Boolean)],Wa.prototype,"fullWidthMode",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.W("design:type",Boolean)],Wa.prototype,"borderlessMode",void 0);Wa=_.k([_.p5({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Wa);
_.u(Wa,"yt-offer-item-renderer",function(){if(ptp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;yuR===void 0&&(yuR=document.createElement("template"));var f=yuR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ptp=v}v=ptp;return v},{mode:2});var QNO;var XtM;_.ew("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var $1=function(){return _.g.apply(this,arguments)||this};
_.S($1,_.g);$1.prototype.computeAriaLevel_=function(v){return this.getLevelID_(v)};
$1.prototype.getLevelID_=function(v){return(v=v.match(/[0-9]+$/))&&v.length==1?v[0]:"1"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$1.prototype,"data",void 0);_.k([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.W("design:type",String)],$1.prototype,"ariaLevel",void 0);_.k([_.H({value:"heading",reflectToAttribute:!0}),_.W("design:type",String)],$1.prototype,"role",void 0);
_.k([_.H({value:-1,reflectToAttribute:!0}),_.W("design:type",Number)],$1.prototype,"tabindex",void 0);$1=_.k([_.p5({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],$1);
_.u($1,"yt-subscription-product-header-renderer",function(){if(XtM===void 0){var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;QNO===void 0&&(QNO=document.createElement("template"));var f=QNO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);XtM=v}v=XtM;return v},{mode:2});var eN0;var FRP;_.ew("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var LA=function(){return _.g.apply(this,arguments)||this};
_.S(LA,_.g);LA.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:_.Fm("menuRenderer"),events:!0}}};
LA.prototype.onStampFinished_=function(){_.K(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
LA.prototype.onStampFinished_=LA.prototype.onStampFinished_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LA.prototype,"data",void 0);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LA.prototype,"onStampFinished_",null);
LA=_.k([_.p5({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],LA);
_.u(LA,"yt-subscription-product-renderer",function(){if(FRP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;eN0===void 0&&(eN0=document.createElement("template"));var f=eN0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);FRP=v}v=FRP;return v},{mode:2});var mVU;var wt3;_.ew("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Gz=function(){return _.g.apply(this,arguments)||this};
_.S(Gz,_.g);Gz.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gz.prototype.imageScrimColorValuesChanged_=function(){var v,E=(v=this.data)==null?void 0:v.imageScrimColorValues;_.K(this.hostElement).querySelector("#scrim").style.backgroundColor=E?_.Qt(E[0]):"transparent"};
Gz.prototype.imageScrimColorValuesChanged_=Gz.prototype.imageScrimColorValuesChanged_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Gz.prototype,"data",void 0);
_.k([_.On("data.imageScrimColorValues"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Gz.prototype,"imageScrimColorValuesChanged_",null);Gz=_.k([_.p5({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Gz);
_.u(Gz,"yt-subscription-product-upsell-offer-renderer",function(){if(wt3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;mVU===void 0&&(mVU=document.createElement("template"));var f=mVU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);wt3=v}v=wt3;return v},{mode:2});var bJ6;var lh_;var sNb;var ruP;var PP1;var ahp;var Tz=function(){return _.g.apply(this,arguments)||this};
_.S(Tz,_.g);Tz.prototype.onYtServiceRequestError_=function(v){_.aN(this.hostElement,v.detail.error.message)};
Tz.prototype.onYtServiceRequestError_=Tz.prototype.onYtServiceRequestError_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Tz.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Tz.prototype,"collapsible",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Tz.prototype,"isManageRed",void 0);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Tz.prototype,"onYtServiceRequestError_",null);Tz=_.k([_.p5({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Tz);
_.u(Tz,"yt-single-ypc-offer-renderer",function(){if(ahp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;PP1===void 0&&(PP1=document.createElement("template"));var f=PP1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ahp=v}v=ahp;return v},{mode:2});var zz=function(){return _.g.apply(this,arguments)||this};
_.S(zz,_.g);zz.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zz.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],zz.prototype,"isManageRed",void 0);zz=_.k([_.p5({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],zz);
_.u(zz,"yt-single-ypc-offer-list-renderer",function(){if(ruP===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;sNb===void 0&&(sNb=document.createElement("template"));var f=sNb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ruP=v}v=ruP;return v},{mode:2});var ZJP;var CPx;_.ew("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var RA=function(){return _.g.apply(this,arguments)||this};
_.S(RA,_.g);RA.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RA.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],RA.prototype,"isManageRed",void 0);RA=_.k([_.p5({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],RA);
_.u(RA,"yt-ypc-offers-list-renderer",function(){if(CPx===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;ZJP===void 0&&(ZJP=document.createElement("template"));var f=ZJP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);CPx=v}v=CPx;return v},{mode:2});_.ew("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var t3=function(){return _.g.apply(this,arguments)||this};
_.S(t3,_.g);
t3.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],t3.prototype,"data",void 0);t3=_.k([_.p5({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],t3);
_.u(t3,"yt-unlimited-manage-subscription-page-renderer",function(){if(lh_===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;bJ6===void 0&&(bJ6=document.createElement("template"));var f=bJ6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);lh_=v}v=lh_;return v},{mode:2});var MiP;var S93;var Ba=function(){return _.g.apply(this,arguments)||this};
_.S(Ba,_.g);_.c=Ba.prototype;_.c.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.c.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.c.onKeypress_=function(v){v.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.c.handleHeaderTap_=function(v){v.preventDefault();v.stopPropagation();this.expandOffers_()};
_.c.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.c.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Ba.prototype.dataChanged_=Ba.prototype.dataChanged_;_.k([_.h(_.Ff),_.W("design:type",Object)],Ba.prototype,"ironA11yKeysBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ba.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ba.prototype,"offersVisible_",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ba.prototype,"dataChanged_",null);Ba=_.k([_.p5({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Ba);
_.u(Ba,"yt-collapsible-ypc-offer-renderer",function(){if(S93===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;MiP===void 0&&(MiP=document.createElement("template"));var f=MiP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);S93=v}v=S93;return v},{mode:2});var UVO;var q91;_.ew("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var vS=function(){return _.g.apply(this,arguments)||this};
_.S(vS,_.g);_.c=vS.prototype;_.c.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.c.dataChanged_=function(){if(this.data.backgroundImage){var v=_.hZ(this.data.backgroundImage.thumbnails,screen.width),E=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=E?"linear-gradient(180deg, "+E+"), url("+v+")":"url("+v+")";this.data.gtmId&&_.cs(this.data.gtmId,_.MX("GL",""))}};
_.c.onYtServiceRequestError_=function(v){_.aN(this.hostElement,v.detail.error.message)};
_.c.getScrimLayerColorStops_=function(){var v,E,n=(v=this.data.unlimitedHeaderV2Data)==null?void 0:(E=v.unlimitedHeaderV2Data)==null?void 0:E.scrimLayerColors;if(!n)return null;var f=100/n.length;return n.map(function(x,y){y*=f;return _.Qt(x)+" "+y+"%"}).join(",")};
_.c.computeLogoWithPadding=function(v){var E,n,f;return(v=(E=v.unlimitedLogoImage)==null?void 0:(n=E.thumbnails)==null?void 0:(f=n[0])==null?void 0:f.height)&&v%31===0?!0:!1};
vS.prototype.onYtServiceRequestError_=vS.prototype.onYtServiceRequestError_;vS.prototype.dataChanged_=vS.prototype.dataChanged_;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.k([_.H({computed:"computeLogoWithPadding(data)"}),_.W("design:type",Boolean)],vS.prototype,"logoWithPadding",void 0);
_.k([_.H(),_.W("design:type",Object)],vS.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vS.prototype,"dataChanged_",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vS.prototype,"onYtServiceRequestError_",null);vS=_.k([_.p5({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],vS);
_.u(vS,"yt-unlimited-page-header-renderer",function(){if(q91===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;UVO===void 0&&(UVO=document.createElement("template"));var f=UVO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);q91=v}v=q91;return v},{mode:2});var JuC;var KRO;_.ew("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Er=function(){return _.g.apply(this,arguments)||this};
_.S(Er,_.g);Er.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Er.prototype,"data",void 0);Er=_.k([_.p5({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Er);
_.u(Er,"yt-unlimited-user-notification-renderer",function(){if(KRO===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;JuC===void 0&&(JuC=document.createElement("template"));var f=JuC;n.call(E,f.content.cloneNode(!0),v.content.firstChild);KRO=v}v=KRO;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.oHb=_.qu(function(v){var E=_.Ue(v,{numberOfChips:5}).numberOfChips;return _.w("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.w(_.cG,{each:function(){return Array(E==null?void 0:E())}},function(){return _.w("div",{class:"ytGhostChipShelfChip"})}))},"Xf");_.f$_=_.qu(function(v){var E=_.Gy(),n=_.P().resolve(_.CR);_.mM(function(){requestAnimationFrame(function(){var x;(x=E.lottieEl)==null||x.addEventListener("DOMLoaded",function(){var y;(y=v.onLottieLoaded)==null||y.call(v)})})});
var f={};return _.w("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var x;return((x=v.data)==null?void 0:x.call(v).targetId)||""}},_.w(_.$z,{className:_.W8((f.ytChatLoadingViewModelRtl=n==="rtl",f)),
animationName:"YOUCHAT_LOADER",data:function(){var x;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((x=v.data)==null?void 0:x.call(v).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:E}))},"Yf");
}catch(e){_._DumpException(e)}
try{
var KlR,d03,IJM,YhP,hpU,AJR,VsO,ji,O9,Hsd,grO,NAp,jiM,isb,kv,TA1,Wl0,G7M,Llp,$03,k7_,zpR,RpM,tsK,BAM,Wt,vEd,EEb,nEx,y7R,c7_,xEx,oER,fBM,pvP,Qc3,XvK,etp,Fz_,lB_,PYM,aBU,ZTM,MC3,UEx,J7P,KzO,dEp,IBP,htR,A7C,VCp,DEC,HTb,gEx,NC0,jcR,$E0,Wz3,OT3,LzP,kcd,GcO,Rtd,ztC,TC_,iTC,GH,tCd,E7O,yvU,pfO,Q0U,XfU,eCM,FAx,mB3,wfp,bpK,lYd,rvd,PaC,aYC,D0_,fYd;
_.NV=function(v){var E=new _.yc("Error accessing DB");return _.kvy().then(function(n){return new Promise(function(f,x){try{var y=n.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(v);y.onsuccess=function(){var Q=y.result;f(Q?Q.value:null)};
y.onerror=function(){E.params={key:v,source:"onerror"};x(E)}}catch(Q){E.params={key:v,
thrownError:String(Q)},x(E)}})},function(){return null})};
_.JJ1=function(v,E){var n=_.lLN(E);n!=="javascript:"&&n!=="data:"&&v.setAttribute("href",E)};
KlR=function(v,E){return _.LH(v.entities,"flowStateEntity",E)};
d03=function(v){return(v=v.getOption("captions","track"))?!!v.displayName:!1};
IJM=function(v,E){E=E.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(E==null||!E.length)return v;var n=E.filter(function(Q){return Q});
E=v.filter(function(Q){return Q.languageCode.startsWith("en")});
n=_.p(n);for(var f=n.next();!f.done;f=n.next())if(f=f.value,E.length){var x=E[0],y=Object.assign({},x);x.languageCode!==f.languageCode&&(y.displayName=x.languageName+" >> "+f.languageName,y.translationLanguage=f,v.push(y))}return v};
YhP=function(v){var E,n=(E=v.getOption("captions","tracklist",{includeAsr:!0}))!=null?E:[];_.Z("mweb_watch_captions_enable_auto_translate")&&(n=IJM(n,v));return n};
hpU=function(v){return _.gL(v,function(E){return E.languageCode==="en"})};
AJR=function(v){var E=uP;if(d03(v))v.setOption("captions","stickyLoading",{}),v.setOption("captions","track",{});else{var n=_.gL(YhP(v),function(f){return f.displayName===E});
v.setOption("captions","track",n)}};
VsO=function(v){if(!v)return 0;var E=v.getPresentingPlayerType(),n=v.getVideoData();return n&&n.isLive?(v=v.getProgressState(E),v.seekableEnd-v.seekableStart):v.getDuration(E)};
ji=function(v,E){_.Ke(E,v,function(){return D0_[E]},function(n){D0_[E]=n;
if(!_.Z("mweb_player_ve_show_ks")){var f=_.lc(0);f&&n&&_.ZI(f,n)}})};
O9=function(v){(v=D0_[v])&&_.vg(_.Tl(),v)};
Hsd=function(v,E){for(var n=_.p(Object.keys(v)),f=n.next();!f.done;f=n.next())if(f=f.value,v[f]!==E[f])return!1;return!0};
grO=function(){return document.getElementById("player-control-overlay")};
NAp=function(v){v!==-1&&!_.Z("player_controls_log_creation_killswitch")&&grO()&&(_.FD("pcu_cs",v),_.FD("pcu_ce"))};
jiM=function(v){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(v.subscribeButton?[v.subscribeButton,v.channelAccess]:[v.channelAccess]).map(function(E){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz--button"},ubR(E)))}))};
_.OsR=function(v){var E=v.data;v=v.hideDivider;var n={};n=(n["yt-profile-identity-info-view-model-wiz__frame"]=!0,n["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!E.channelBanner,n);n={class:_.LR(n)};var f,x={imageBannerViewModel:{image:(f=E.channelBanner)==null?void 0:f.image,style:"IMAGE_BANNER_STYLE_INSET"}};f=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},E.channelBanner?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
ubR(x,{imageBannerViewModel:{isPositionRelative:!0}})):null);x=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},ubR(E.avatar));var y;var Q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},E.channelDisplayName),E.verifiedOrOacBadge?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.w(_.UZ,{data:{thumbnails:[{url:(y=E.verifiedOrOacBadge)==null?void 0:y.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);y=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Q,ubR(E.threeDotMenu));Q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},E.channelHandle),E.channelPronouns&&E.channelHandle?_.w("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},E.channelPronouns)),_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},E.leftOfBulletInfo),E.leftOfBulletInfo&&E.rightOfBulletInfo?_.w("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},E.rightOfBulletInfo)));y=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},y,Q);return _.w("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.w("div",n,f,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},x,y),E.channelDescription?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},E.channelDescription):
null,jiM(E),v?null:_.w("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
isb=function(v,E){var n=_.SI(v,{}),f=k7_("top",E),x=k7_("bottom",E),y=k7_("left",E),Q=k7_("right",E);return _.tZ({top:function(){return kv(n().position,f)},
bottom:function(){return kv(n().position,x)},
left:function(){return kv(n().position,y)},
right:function(){return kv(n().position,Q)},
position:function(){return kv(n().positionType,Wl0)},
height:function(){return kv(n().height,Wt)},
width:function(){return kv(n().width,Wt)},
"min-width":function(){return kv(n().minWidth,Wt)},
"min-height":function(){return kv(n().minHeight,Wt)},
"max-width":function(){return kv(n().maxWidth,Wt)},
"max-height":function(){return kv(n().maxHeight,Wt)},
"aspect-ratio":function(){return kv(n().aspectRatio,String)},
"margin-top":function(){return kv(n().margin,f)},
"margin-bottom":function(){return kv(n().margin,x)},
"margin-left":function(){return kv(n().margin,y)},
"margin-right":function(){return kv(n().margin,Q)},
"padding-top":function(){return kv(n().padding,f)},
"padding-bottom":function(){return kv(n().padding,x)},
"padding-left":function(){return kv(n().padding,y)},
"padding-right":function(){return kv(n().padding,Q)},
"flex-direction":function(){return kv(n().flexDirection,$03)},
"justify-content":function(){return kv(n().justifyContent,Llp)},
"align-items":function(){return kv(n().alignItems,G7M)},
"flex-grow":function(){return kv(n().flexGrow,String)},
"flex-shrink":function(){return kv(n().flexShrink,String)},
"flex-basis":function(){return kv(n().flexBasis,Wt)},
"align-self":function(){return kv(n().alignSelf,G7M)},
"flex-wrap":function(){return kv(n().flexWrap,TA1)},
"align-content":function(){return kv(n().alignContent,G7M)}})};
kv=function(v,E){return v!==void 0?E(v):void 0};
TA1=function(v){switch(v){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Wl0=function(v){switch(v){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
G7M=function(v){switch(v){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"}};
Llp=function(v){switch(v){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"}};
$03=function(v){switch(v){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"}};
k7_=function(v,E){var n=E==="rtl";switch(v){case "top":var f=zpR;break;case "bottom":f=RpM;break;case "left":f=tsK;break;default:f=BAM}return function(x){return kv(f(x,n),Wt)}};
zpR=function(v){var E=v.top;var n=v.vertical;v=v.all;var f;return(f=E!=null?E:n)!=null?f:v};
RpM=function(v){var E=v.bottom;var n=v.vertical;v=v.all;var f;return(f=E!=null?E:n)!=null?f:v};
tsK=function(v,E){var n=v.left;var f=v.end;var x=v.start;var y=v.horizontal;v=v.all;var Q,e;return(e=(Q=n!=null?n:E?f:x)!=null?Q:y)!=null?e:v};
BAM=function(v,E){var n=v.right;var f=v.end;var x=v.start;var y=v.horizontal;v=v.all;var Q,e;return(e=(Q=n!=null?n:E?x:f)!=null?Q:y)!=null?e:v};
Wt=function(v){var E=v.value;switch(v.unit){case "YPC_DIMENSION_UNIT_POINT":return E+"px";case "YPC_DIMENSION_UNIT_FRACTION":return E+"%";default:return""+E}};
vEd=function(v){switch(v){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"}};
EEb=function(v){var E=v!=null?v:{};v=E.fontRole;var n=E.fontSize;E=E.fontWeight;if(v!==null&&n!==null)switch(v){case "YPC_FONT_ROLE_DISPLAY":switch(n){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(n){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return E===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(n){case "YPC_FONT_SIZE_XL":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
nEx=function(v,E){return _.LH(v.entities,"pdpStateEntity",E)};
y7R=function(v,E,n){function f(b){return Object.values(b).map(function(l){var r=l.productId;l=l.pricingOptionIndex;return oER(x(r).pricingOptions,l).pricingOptionId})}
function x(b){return e().get(b)}
function y(b){b=f(b);n(b)}
var Q=fBM([v,E],function(b,l){var r=b==null?void 0:b.selectedPricingOptions;b={};var a=!0;if(r&&l.length)for(var M=_.p(l),U=M.next();!U.done;U=M.next()){U=U.value;var d=xEx(U.pricingOptions,function(Y){a:{Y=Y.pricingOptionId;for(var V=_.p(r),O=V.next();!O.done;O=V.next())if(O.value===Y){Y=!0;break a}Y=!1}return Y});
d>=0&&(a=!1,b[U.groupId]={productId:U.productId,pricingOptionIndex:d})}a&&l.length&&(b[l[0].groupId]={productId:l[0].productId,pricingOptionIndex:0});return b}),e=fBM([E],function(b){return new Map(b.map(function(l){return[l.productId,
l]}))}),F=fBM([E],function(b){var l=new Map;
b=_.p(b);for(var r=b.next();!r.done;r=b.next()){var a=r.value;r=a.groupId;var M=a.productId;a=_.p(c7_(a.pricingOptions));for(var U=a.next();!U.done;U=a.next()){var d=_.p(U.value);U=d.next().value;d=d.next().value;l.set(d.pricingOptionId,{groupId:r,productId:M,index:U,pricingOption:d})}}return l});
return{getProductById:x,isProductSelected:function(b){var l=x(b);if(!l)return!1;var r;return((r=Q()[l.groupId])==null?void 0:r.productId)===b},
getSelectedPricingOptions:function(){return Object.values(Q()).map(function(b){var l=b.productId;b=b.pricingOptionIndex;return oER(x(l).pricingOptions,b)})},
getSelectedProductByGroupId:function(b){var l;return(b=(l=Q()[b])==null?void 0:l.productId)?x(b):void 0},
onProductSelected:function(b){var l=x(b);if(l){var r=Q(),a;if(((a=r[l.groupId])==null?void 0:a.productId)!==b){var M,U;a=(U=(M=r[l.groupId])==null?void 0:M.pricingOptionIndex)!=null?U:0;M=0;for(U=l.pricingOptions[Symbol.iterator]();!U.next().done;)++M;M<=a&&(a=0);M={};y(Object.assign({},r,(M[l.groupId]={productId:b,pricingOptionIndex:a},M)))}}},
onPricingOptionSelected:function(b){var l=F().get(b);if(l){b=l.groupId;var r=l.productId;l=l.index;var a=Q(),M,U;if(((M=a[b])==null?void 0:M.productId)!==r||((U=a[b])==null?void 0:U.pricingOptionIndex)!==l)M={},y(Object.assign({},a,(M[b]={productId:r,pricingOptionIndex:l},M)))}},
onClearGroupSelected:function(b){var l=Q();l[b]&&(l=Object.fromEntries(Object.entries(l).filter(function(r){return _.p(r).next().value!==b})),y(l))}}};
c7_=function(v){return function n(){var f,x,y,Q,e;return _.tEE(n,function(F){switch(F.nextAddress){case 1:_.ol(F,2),f=0,x=_.p(v),y=x.next();case 4:if(y.done){F.jumpTo(2);break}Q=y.value;e=_.BDE;return _.m(F,[f++,Q],7);case 7:e(F.yieldResult);y=x.next();F.jumpTo(4);break;case 2:_.nI(F),_.xh(F,0)}})}()};
xEx=function(v,E){v=_.p(c7_(v));for(var n=v.next();!n.done;n=v.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;if(E(f))return n}return-1};
oER=function(v,E){v=_.p(c7_(v));for(var n=v.next();!n.done;n=v.next()){var f=_.p(n.value);n=f.next().value;f=f.next().value;if(n===E)return f}};
fBM=function(v,E){var n,f;return function(){for(var x=v.map(function(Q){return Q()}),y=0;y<x.length;y++)if(!n||x[y]!==n[y]){n=x;
f=E.apply(null,_.s8(x));break}return f}};
pvP=function(v){var E;return!!(v.productId&&v.groupId&&((E=v.pricingOptions)==null?0:E.length)&&v.pricingOptions.every(function(n){return n.pricingOptionId}))};
Qc3=function(v,E,n){return y7R(v,fBM([E],function(f){return f.filter(pvP)}),n)};
XvK=function(v,E){return E.length===0?[v]:[v.slice(0,E[0]),v.slice(E[0])].filter(function(n){return n.length>0})};
etp=function(v){switch(v){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""}};
Fz_=function(v,E,n,f){f=Object.assign({},f);_.c8(f,$v,{selectedOptionId:v,primaryButtonOverride:n});_.Zj().dispatch(_.n7("flowStateEntity",E,f))};
_.bTx=function(){if(!mEx){var v=_.p(_.t7(new Map,void 0,"UJImUe"));mEx=v.next().value;wvd=v.next().value}return mEx};
lB_=function(v){if(v)return _.bTx()().get(v)};
_.sc6=function(v,E){if(v&&E){var n=_.bTx();n().set(v,E);v=n();wvd(new Map(v))}};
_.r7d=function(v){return{onSubmit:function(){var E;(E=lB_(v()))==null||E.onSubmit()},
isValid:function(){var E=lB_(v());return E?E.isValid():!0},
isSubmitting:function(){var E,n;return!!((E=lB_(v()))==null?0:(n=E.isSubmitting)==null?0:n.call(E))}}};
PYM=function(v,E){return _.LH(v.entities,"contextNoteFeedEntityPayload",E)};
aBU=function(v){v.style.height="auto";v.style.height=v.scrollHeight+"px"};
ZTM=function(v){return[v.syncStep,v.asyncStep].filter(function(E){return E!==void 0})};
MC3=function(v){var E,n,f;if(v=(E=v.structuredContextNoteFormSchema)==null?void 0:(n=E.fieldSchemas)==null?void 0:(f=n.noteBody)==null?void 0:f.validationSchema)for(E=_.p(ZTM(v)),n=E.next();!n.done;n=E.next()){n=n.value.rules;if(!n)break;n=_.p(n);for(n=n.next();!n.done;n=n.next())return _.C(n.value,_.CYR)}};
UEx=function(v){if(v){v=_.p(ZTM(v));for(var E=v.next();!E.done;E=v.next()){E=E.value.rules;if(!E)break;E=_.p(E);for(E=E.next();!E.done;E=E.next())return _.C(E.value,SV1)}}};
J7P=function(v){if(v){v=_.p(ZTM(v));for(var E=v.next();!E.done;E=v.next()){E=E.value.rules;if(!E)break;E=_.p(E);for(E=E.next();!E.done;E=E.next())return _.C(E.value,qVb)}}};
KzO=function(v){v=/^https?:\/\//.test(v)?v:"http://"+v;try{var E=_.qE(v)}catch(n){return!1}if(E.toString()!==v)return!1;v=E.JSC$7925_domain_.split(".");return v.length>1&&v.every(function(n){return!!n})};
dEp=function(v,E,n,f){var x;f=(x=f.structuredContextNoteData)==null?void 0:x.createCommentEndpoint;if(x=_.C(f,_.Gti))return x.commentText=_.qD(v),x.videoPositionMention=E,x.sources=n,f};
IBP=function(v){return v==null?void 0:v.stringValue};
htR=function(v,E,n){v=v.map(function(f,x){return{listItemViewModel:{title:f.title,subtitle:f.subtitle,leadingImage:f.leadingImage,trailingImage:x===E?YVU:void 0,rendererContext:{commandContext:{onTap:f.onTap}}}}});
return Object.assign({},n&&{header:{panelHeaderViewModel:{title:n}}},{content:{listViewModel:{listItems:v}}})};
A7C=function(v,E){if(v&&E)switch(E){case "SELECTION_TYPE_BOOL":return v.boolValue;case "SELECTION_TYPE_INT":return v.intValue;case "SELECTION_TYPE_STRING":return v.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return v.privacyStatusValue}};
VCp=function(v){var E;v=(E=v.options)==null?void 0:E.findIndex(function(n){return n.isSelected});
return v===void 0?-1:v};
DEC=function(v,E,n){var f=function(){return v().label},x={},y=_.W8("ytDropdownViewModelLabel",(x.ytDropdownViewModelLabelError=E,x));
return _.w(_.x6,{cond:function(){return v().label&&!(n()===-1&&v().label&&!v().placeholderText)},
then:function(){return _.w("div",{class:y},_.w(_.nh,{text:f}))}})};
HTb=function(v,E){var n={};n=_.W8("ytDropdownViewModelTitle",(n.ytDropdownViewModelTitlePlaceholder=function(){return E()===-1},n));
return _.w("div",{class:n},_.w(_.nh,{text:function(){var f=v();var x=E();if(x===-1)f=f.placeholderText?f.placeholderText:f.label;else{var y,Q;f=(y=f.options)==null?void 0:(Q=y[x])==null?void 0:Q.title}return f}}))};
gEx=function(v,E){var n=function(){return v().hint};
return _.w(_.gF,null,_.w(_.x6,{cond:function(){return n()&&!E()},
then:function(){return _.w("div",{class:_.W8("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.w(_.nh,{text:n,className:"ytDropdownViewModelSupportText"}))}}),_.w(_.x6,{cond:E,
then:function(){return _.w("div",{id:"dropdown-view-model-error",role:"alert",class:_.W8("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.w(_.B8,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.w(_.nh,{text:E,className:"ytDropdownViewModelSupportText"}))}}))};
NC0=function(v,E){var n=_.P().resolve(_.KvX);_.l5(function(){var f=v().id;f&&n!=null&&n.dropdownMap.set(f,E)})};
jcR=function(v){v=_.C(v.scheduleButton,uV_);v=_.C(v==null?void 0:v.primaryButton,_.wQ);v=_.C(v==null?void 0:v.onTap,_.eg);var E,n,f=((n=_.C(v,_.Tn))==null?void 0:n.commands)||[v];n=_.p(f);for(v=n.next();!v.done&&!(E=_.C(v.value,_.izg));v=n.next());var x;E=(x=E)==null?void 0:x.createBroadcastRequest;if(!E)throw Error("Gj");return E};
$E0=function(v,E,n){n=n===void 0?{}:n;var f,x;return _.X(function(y){if(f=OT3(E))return y.return(f);(x=kcd(v,E,n))&&Wz3(E,x);return y.return(x)})};
Wz3=function(v,E){var n=LzP(v);n&&E.then(function(f){_.P().resolve(_.G9).put(n,new _.T9({innertubeResponse:f}))})};
OT3=function(v){if(v=LzP(v)){var E=_.P().resolve(_.G9);if(E.has(v))return E.get(v).then(function(n){return n==null?void 0:_.ne(n)})}return null};
LzP=function(v){var E=_.C(v.endpoint,_.dM);if(E!=null&&E.videoId)return E={videoId:E.videoId},_.Z("web_imp_player_mute_params")&&(E.mutedAtStart=v.startPlaybackInMutedState),_.KG("inline_playback",E)};
kcd=function(v,E,n){v=_.Mq(v,E.endpoint,GcO(E,n)).then(function(f){return f});
return Promise.resolve(v)};
GcO=function(v,E){E=_.Z("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!v.startPlaybackInMutedState},E):Object.assign({},{vis:5,autonav:"1"},E);var n;E={contentPlaybackContext:_.vp(E,(n=_.C(v.endpoint.commandMetadata,_.Dl))==null?void 0:n.url,window.location.href)};_.Z("web_imp_player_mute_params")&&(E.overrideMutedAtStart=!v.startPlaybackInMutedState);return E};
Rtd=function(v,E){var n=window.MutationObserver;n&&(LJ=new n(function(f,x){f=_.p(f);for(var y=f.next();!y.done;y=f.next()){y=y.value;var Q;if(Q=y.type==="childList"&&y.target)a:{Q=v;y=TC_(y.target);Q=TC_(Q);for(var e=null,F=0;F<y.length;F++)if(Q.includes(y[F])){if(F===0){Q=!1;break a}e=y[F];break}e?(y=iTC(y,e),Q=iTC(Q,e),Q=y<Q):Q=!1}if(Q){E();x.disconnect();break}}}),(n=ztC())&&LJ.observe(n,{childList:!0,
subtree:!0}))};
ztC=function(){var v=document.getElementsByTagName("ytd-rich-grid-renderer");if(v.length>0)return v[0];v=document.getElementsByTagName("ytd-section-list-renderer");return v.length>0?v[0]:null};
TC_=function(v){for(var E=[];v;)E.push(v),v=v.parentElement;return E};
iTC=function(v,E){var n=Array.from(E.children);E=v.indexOf(E);return E>0?n.indexOf(v[E-1]):-1};
GH=function(v,E,n){n=n===void 0?{}:n;return _.tQ(v,n,E)};
tCd=function(v){return v==null?void 0:v.filter(function(E){return E.premiereTrailerBadgeRenderer})};
E7O=function(v,E){var n="",f="";switch(v){case -1:case 0:n=E?"VOLUME_OFF":"VOLUME_OFF_FILLED";f=BC1;break;case 1:n=E?"VOLUME_UP_OUTLINE":"VOLUME_UP";f=v7M;break;default:_.p0(v)}return{iconName:n,ariaLabel:f}};
yvU=function(v,E){var n=n7U,f=_.p(_.t7(o7d(new fYd(function(){},n,E)),void 0,"PAnyd")),x=f.next().value,y=f.next().value,Q=new fYd(function(e){y(e)},n,E);
_.Xp(function(){Promise.resolve().then(function(){var e,F=(e=v())!=null?e:{};Q.playerControlsData=F;_.Z("player_controls_skip_double_signal_old")&&(Q.lastSeenPlayerApi=_.YJ(F.playerApi));_.Z("player_controls_skip_double_signal_old")||(Q.lastSeenPlayerApi=_.YJ(F.playerApi));xBd(Q)});
_.Fp(function(){cvd(Q)})});
_.Fp(function(){cvd(Q)});
return function(){return x()}};
pfO=function(v){return function(E){var n=v(),f={playerState:E};if(E===1){var x;(x=n.playerApi)==null||x.loadModule("captions")}if(E===0){var y;(y=n.playerApi)==null||y.unloadModule("captions")}(E!==-1||_.Z("web_imp_controls_set_player_state_killswitch"))&&n.setState(f)}};
Q0U=function(v){return function(E){v().setState({playbackRate:E})}};
XfU=function(v){return function(E){var n=v(),f=n.playerApi,x=f==null?void 0:f.getVideoData(),y=(x==null?void 0:x.isLive)||!1;x=x==null?void 0:x.video_id;y={videoDuration:VsO(f||void 0),isLive:y,videoId:x};y.videoId!==n.videoId&&(y=Object.assign({},_.fsQ(f),y));if(E==null?0:E.playertype)y.playerType=E.playertype;if(f){y.captionsAvailable=!!f.getOptions("captions");E=y;var Q;x=(Q=f.getStoryboardLevel(f.getNumberOfStoryboardLevels()-1))==null?void 0:Q.intervalMs;E.storyboardInterval=x?x/1E3:void 0;y.captionsAvailable&&
(y.captionsEnabled=d03(f))}y.volumeMuted=!(f==null||!f.isMuted());n.setState(y)}};
eCM=function(v){return function(E){var n=v(),f=n.playerApi;if(f){var x=f.getPresentingPlayerType();E={playedTime:E||0,percentLoaded:f.getVideoLoadedFraction(),playerType:x};n.playerState===0&&(E.playedTime=n.videoDuration);n.isLive&&(x=f.getProgressState(x),E.playedTime-=x.seekableStart,E.videoDuration=VsO(f));if(n.playerType===1)f=!1;else{var y;if(_.Z("embeds_emc3ds_dompaused_fix")&&((y=n.uxConfig)==null?0:y.showCuedOverlay)){var Q;f=!((Q=n.playerApi)==null?0:Q.getPlayerStateObject(n.playerType).isDomPaused)}else f=
!0}f&&delete E.playedTime;n.setState(E)}}};
FAx=function(v){return function(){var E=v(),n,f,x,y={volume:(x=(n=E.playerApi)==null?void 0:n.getVolume())!=null?x:0,volumeMuted:!((f=E.playerApi)==null||!f.isMuted())};E.setState(y)}};
mB3=function(v){return function(){var E=v(),n=E.playerApi;if(n){var f={captionsAvailable:!!n.getOptions("captions")};f.captionsAvailable&&(f.captionsEnabled=d03(n));E.setState(f)}}};
wfp=function(v){return function(){var E=v();if(E.playerApi&&!(E.volumeMuted||E.controlsVisible&&E.isProbablyAScreenreaderUser)){E.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var n;(n=document.querySelector(".player-control-play-pause-icon"))==null||n.focus()}}};
bpK=function(v){return{appApi:Object.assign({},_.RWL(),{showCaptionsToggleToast:function(E){var n,f;(f=(n=v()).showCaptionsToggleToast)==null||f.call(n,E)},
openInMiniplayer:function(){var E,n;(n=(E=v()).openInMiniplayer)==null||n.call(E)}})}};
lYd=function(v,E){var n,f,x;return!!(v==null?0:(n=v.playerResponse)==null?0:(f=n.playerConfig)==null?0:(x=f.inlinePlaybackConfig)==null?0:x.showScrubbingControls)&&!(E==null?0:E.hideScrubbingControls)};
_.s0_=function(v){var E=!v.miniplayerIsActive;return[5,2,0].includes(v.miniplayerPlaybackState)||E};
rvd={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};PaC=function(v,E){var n,f,x,y,Q;_.X(function(e){if(!E.length)return e.return([]);n=[];f=_.p(E);for(x=f.next();!x.done;x=f.next())y=x.value,(Q=v.resolveIcon(y))&&!v.iconCache[Q.url]&&n.push(_.u1_(v,Q).then(function(){}).catch(function(){}));
return e.return(Promise.all(n))})};
aYC=function(v,E){var n=[];E=(new Set(E)).values();E=_.p(E);for(var f=E.next();!f.done;f=E.next()){f=f.value;for(var x=_.p(Object.values(rvd)),y=x.next();!y.done;y=x.next())n.push({iconName:f,iconStyle:y.value})}PaC(v.iconManager,n)};
_.Zp0=function(v,E,n){var f=n!=null?n:v.iconsToFetch;f!=null&&f.length?E!==void 0&&E>=0?_.cP(_.wh,function(){aYC(v,f)},E):aYC(v,f):Promise.resolve()};
D0_={};
fYd=function(v,E,n){var f=this;this.renderFn=v;this.listeners=E;this.context=n;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var x;this.lastSeenPlayerApi=_.YJ((x=this.playerControlsData)==null?void 0:x.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.fsQ(),void 0);_.Z("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){o7d(f).setState({playerState:-1});f.resetRecentlyNavigatedJobId&&_.wh.cancelJob(f.resetRecentlyNavigatedJobId);f.recentlyNavigated=
!0;f.resetRecentlyNavigatedJobId=_.wh.addJob(function(){f.recentlyNavigated=!1},8,1E4)})};
fYd.prototype.setState=function(v){if(!_.Z("mweb_player_skip_no_op_state_changes")||!Hsd(v,this.state))if(this.state=Object.assign({},this.state,v),!_.Z("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)v=-1,_.Z("player_controls_log_creation_killswitch")||grO()||(v=(0,_.gd)()),_.FD("pcu_s"),_.FD("pcu_se"),_.FD("pcu_rs"),this.renderFn(o7d(this)),_.FD("pcu_re"),NAp(v),_.wh.addJob(function(){_.FD("pcu_ap")},8)};
var o7d=function(v){var E;var n=_.YJ((E=v.playerControlsData)==null?void 0:E.playerApi);return Object.assign({},v.state,{setState:v.boundSetState,domMeasurements:{progressBarLineRect:v.progressBarLineRect},playerApi:n,appApi:v.context.appApi,playerContainer:v.context.playerContainer,playerControlContainer:v.context.playerControlContainer,uxConfig:v.context.uxConfig})},xBd=function(v){v.listeners.forEach(function(E){v.eventListenerCleanupFunctions.push(E.register(function(){return o7d(v)},function(){return v.getData()}))})},
cvd=function(v){v.eventListenerCleanupFunctions.forEach(function(E){E()});
v.eventListenerCleanupFunctions.length=0};
fYd.prototype.getData=function(){return this.playerControlsData};
var TH=new _.z("abuseReportFlowState");var CaM=new _.z("feedbackFormFlowState");var Max=new _.z("inputBoxViewModel");var SBp=new _.z("flowNextStepCommand");var UB3=new _.z("flowPrevStepCommand");var qBR=new _.z("updateFlowCommand");_.Jvb=new _.z("flowStepRenderer");_.CYR=new _.z("lengthValidationRule");var SV1=new _.z("regexValidationRule");var qVb=new _.z("selectedValidationRule");var KAP=new _.z("talkToRecsViewModel");var dBd=new _.z("creatorGoalSetUpFlowDropdownItemViewModel");var IYR=new _.z("creatorGoalSetUpFlowDropdownViewModel");_.YBP=new _.z("radioButtonGroupViewModel");var uV_=new _.z("panelFooterViewModel");var hCC=new _.z("ypcCancelRecurrenceCommand");var Av6=new _.z("cancellationFlowState");var $v=new _.z("premiumPurchaseFlowState");var VaC=new _.z("surveyAnswerCardRenderer");var DBP=new _.z("showMoreButtonRenderer");var HpR;var g7C,NFM=function(){if(g7C!==void 0)return g7C;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;HpR===void 0&&(HpR=document.createElement("template"));var f=HpR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return g7C=v};var iP=function(){var v=_.g.apply(this,arguments)||this;v.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";v.goalDescription="";v.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";v.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";v.startButtonId="start-button";v.exampleButtonId="example-button";return v};
_.S(iP,_.g);_.c=iP.prototype;_.c.getGoalDropdownItems=function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.purchaseTargetDropdown,IYR))==null?void 0:E.dropdownItems};
_.c.getTimerDropdownItems=function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.timerDropdown,IYR))==null?void 0:E.dropdownItems};
_.c.getColorDropdownItems=function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.colorDropdown,IYR))==null?void 0:E.dropdownItems};
_.c.getDropdownItemText=function(v){var E;return(E=_.C(v,dBd))==null?void 0:E.itemLabel};
_.c.getDropdownItemValue=function(v){v=_.C(v,dBd);return(v==null?void 0:v.timeLimit)||(v==null?void 0:v.purchaseTarget)||(v==null?void 0:v.eligiblePurchaseType)};
_.c.updateFlowState=function(v){_.OL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:v}])};
_.c.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.c.updateGoalValue=function(v){this.goal=v.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.c.onTextValueChanged=function(v){this.goalDescription=v.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.c.updateTimerValue=function(v){this.timer=v.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.c.updateTierValue=function(v){this.tier=v.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.c.getButtonViewModel=function(v){v=(v==null?void 0:v.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var E,n=_.C((E=this.data)==null?void 0:E.startGoalButton,_.wQ);return Object.assign({},n,{state:v})};
_.hK.Object.defineProperties(iP,{template:{configurable:!0,enumerable:!0,get:function(){return NFM()}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"goal",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"goalDescription",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"timer",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"tier",void 0);
_.k([_.H(),_.W("design:type",Object)],iP.prototype,"startButtonId",void 0);_.k([_.H(),_.W("design:type",Object)],iP.prototype,"exampleButtonId",void 0);iP=_.k([_.p5({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],iP);_.u(iP,"yt-creator-goal-set-up-flow-view-model",function(){return NFM()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var upp;var j0C;var OpP;var zH=function(){return _.g.apply(this,arguments)||this};
_.S(zH,_.g);_.k([_.H(),_.W("design:type",Object)],zH.prototype,"data",void 0);zH=_.k([_.p5({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],zH);
_.u(zH,"yt-survey-answer-card-renderer",function(){if(OpP===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;j0C===void 0&&(j0C=document.createElement("template"));var f=j0C;n.call(E,f.content.cloneNode(!0),v.content.firstChild);OpP=v}v=OpP;return v},{mode:2});var krb;var WA3;var RN=function(){return _.g.apply(this,arguments)||this};
_.S(RN,_.g);_.c=RN.prototype;_.c.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.c.selectedItemChanged=function(v){_.OL(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[v.feedbackToken||""]}])};
_.c.surveyAnswerCardRendererClicked=function(v){if(v.target&&_.C(v.model.item,VaC)){var E=v.target;v=_.C(v.model.item,VaC);v.onTapCommand?_.LG(E,[v.onTapCommand],E):this.data.onTapCommand&&_.LG(E,[this.data.onTapCommand],E);this.selectedItemChanged(v)}};
_.c.checkIsCancellationStyle=function(v){return v==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.c.updateSelectedItemFromBinding=function(v){this.selectedItem=v.detail.value};
RN.prototype.onSelectedItemChanged=RN.prototype.onSelectedItemChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],RN.prototype,"selectedItem",void 0);_.k([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RN.prototype,"isCancellationStyle",void 0);
_.k([_.On("selectedItem"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RN.prototype,"onSelectedItemChanged",null);RN=_.k([_.p5({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],RN);
_.u(RN,"yt-survey-flow-step-renderer",function(){if(WA3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;krb===void 0&&(krb=document.createElement("template"));var f=krb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);WA3=v}v=WA3;return v},{mode:2});var tu=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return v};
_.S(tu,_.g);tu.prototype.handleSurveyFlowStepOptionChanged=function(v){this.ytdReduxBehavior.dispatch(_.un({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:v}));_.OL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],tu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],tu.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tu.prototype,"data",void 0);tu=_.k([_.N({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],tu);
_.u(tu,"ytd-survey-flow-step-renderer",function(){if(upp!==void 0)return upp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return upp=v},{mode:1});var ubR;ubR=_.p7({avatarViewModel:_.s_,buttonViewModel:_.C7,subscribeButtonViewModel:_.wtS,imageBannerViewModel:_.lB});_.$BR=_.GG(_.OsR);_.Nw(_.OsR);var LAb;var Bt=function(){return _.g.apply(this,arguments)||this};
_.S(Bt,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Bt.prototype,"data",void 0);Bt=_.k([_.N({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Bt);
_.u(Bt,"ytd-channel-history-renderer",function(){if(LAb!==void 0)return LAb;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return LAb=v},{mode:1});var Gr1;var vc=function(){return _.g.apply(this,arguments)||this};
_.S(vc,_.g);_.k([_.H(),_.W("design:type",Object)],vc.prototype,"data",void 0);vc=_.k([_.N({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],vc);
_.u(vc,"ytd-feature-enablement-info-renderer",function(){if(Gr1!==void 0)return Gr1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Gr1=v},{mode:1});var TF_;var ip_;var EN=function(){var v=_.g.apply(this,arguments)||this;v.textBoxMaxLength=_.Z("enable_tvod_campaign_code_integration")?15:12;return v};
_.S(EN,_.g);_.c=EN.prototype;_.c.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.c.onSubmit=function(){var v=this.data.serviceEndpoint,E=_.C(v,_.TK);E&&v&&(E.couponCode=this.userInput,_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}}))};
_.c.validate=function(){var v=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=v&&!this.data.errorMessage;this.showErrorMessage=v&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Z("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.c.computeStyle=function(v){return v};
_.c.computeShowValidationBelowInput=function(v){return v!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.c.updateUserInputFromBinding=function(v){this.userInput=v.currentTarget.value};
_.c.updateShowErrorMessageFromBinding=function(v){this.showErrorMessage=v.detail.value};
_.hK.Object.defineProperties(EN.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
EN.prototype.dataChanged=EN.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],EN.prototype,"userInput",void 0);_.k([_.H(),_.W("design:type",Boolean)],EN.prototype,"disableApplyButton",void 0);_.k([_.H(),_.W("design:type",Boolean)],EN.prototype,"hideApplyButton",void 0);
_.k([_.H(),_.W("design:type",Boolean)],EN.prototype,"hideErrorMessage",void 0);_.k([_.H(),_.W("design:type",Boolean)],EN.prototype,"showTick",void 0);_.k([_.H(),_.W("design:type",Boolean)],EN.prototype,"showErrorMessage",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],EN.prototype,"couponStyle",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.W("design:type",Boolean)],EN.prototype,"showValidationBelowInput",void 0);_.k([_.H(),_.W("design:type",Object)],EN.prototype,"textBoxMaxLength",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EN.prototype,"dataChanged",null);
_.k([_.A("showTick","showErrorMessage","userInput"),_.W("design:type",String),_.W("design:paramtypes",[])],EN.prototype,"validationState",null);EN=_.k([_.N({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],EN);
_.u(EN,"ytd-ypc-coupon-renderer",function(){if(ip_!==void 0)return ip_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ip_=v},{mode:1});var nP=function(){return _.g.apply(this,arguments)||this};
_.S(nP,_.g);nP.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"}}}};
nP.prototype.computeStyle=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nP.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],nP.prototype,"buttonStyle",void 0);nP=_.k([_.N({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],nP);
_.u(nP,"ytd-flow-bottom-bar-renderer",function(){if(TF_!==void 0)return TF_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return TF_=v},{mode:1});var zCx;var RCM;var taO;var ow=function(){return _.g.apply(this,arguments)||this};
_.S(ow,_.g);ow.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ow.prototype.focus=function(v){this.title&&_.dh(this.title,v)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ow.prototype,"data",void 0);_.k([_.Wp("#title"),_.W("design:type",HTMLElement)],ow.prototype,"title",void 0);ow=_.k([_.N({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],ow);
_.u(ow,"ytd-flow-top-bar-renderer",function(){if(taO!==void 0)return taO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return taO=v},{mode:1});var BF0;var v6U;var E6R;var fP=function(){return _.g.apply(this,arguments)||this};
_.S(fP,_.g);fP.prototype.freeTextValueChanged=function(){_.OL(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
fP.prototype.updateFreeTextValueFromBinding=function(v){this.freeTextValue=v.detail.value};
_.hK.Object.defineProperties(fP.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(E=(v=this.data)==null?void 0:v.responseMaxLength)!=null?E:500,f;return((f=this.freeTextValue)!=null?f:"").length>=n?"maxed-out":""}}});
fP.prototype.freeTextValueChanged=fP.prototype.freeTextValueChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fP.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],fP.prototype,"freeTextValue",void 0);_.k([_.Wp("#user-input"),_.W("design:type",HTMLTextAreaElement)],fP.prototype,"input",void 0);
_.k([_.A("freeTextValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],fP.prototype,"characterLimitClass",null);_.k([_.On("freeTextValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fP.prototype,"freeTextValueChanged",null);fP=_.k([_.p5({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],fP);
_.u(fP,"yt-free-text-input-flow-step-renderer",function(){if(E6R===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;v6U===void 0&&(v6U=document.createElement("template"));var f=v6U;n.call(E,f.content.cloneNode(!0),v.content.firstChild);E6R=v}v=E6R;return v},{mode:2});var xd=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return v};
_.S(xd,_.g);xd.prototype.handleFreeTextFlowStepInputChanged=function(v){_.OL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],xd.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],xd.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xd.prototype,"data",void 0);xd=_.k([_.N({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],xd);
_.u(xd,"ytd-free-text-input-flow-step-renderer",function(){if(BF0!==void 0)return BF0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return BF0=v},{mode:1});var n6d;var o6x;var cc=function(){return _.g.apply(this,arguments)||this};
_.S(cc,_.g);_.k([_.H(),_.W("design:type",Object)],cc.prototype,"data",void 0);cc=_.k([_.N({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],cc);
_.u(cc,"ytd-metadata-line-renderer",function(){if(o6x!==void 0)return o6x;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return o6x=v},{mode:1});var yr=function(){return _.g.apply(this,arguments)||this};
_.S(yr,_.g);yr.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yr.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yr.prototype,"isMasthead",void 0);yr=_.k([_.N({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],yr);
_.u(yr,"ytd-media-product-renderer",function(){if(n6d!==void 0)return n6d;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return n6d=v},{mode:1});var fU3;var pP=function(){return _.g.apply(this,arguments)||this};
_.S(pP,_.g);pP.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
pP.prototype.onBillboardImageLoaded=function(){_.jK(this.hostElement,"yt-refit")};
pP.prototype.onBillboardImageLoaded=pP.prototype.onBillboardImageLoaded;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pP.prototype,"data",void 0);_.k([_.Wp("#billboardImage"),_.W("design:type",Object)],pP.prototype,"billboardImage",void 0);_.k([_.jk("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pP.prototype,"onBillboardImageLoaded",null);
pP=_.k([_.N({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],pP);
_.u(pP,"ytd-billboard-masthead-renderer",function(){if(fU3!==void 0)return fU3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return fU3=v},{mode:1});var xXO;var Qr=function(){var v=_.g.apply(this,arguments)||this;v.smallSize=!1;return v};
_.S(Qr,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Qr.prototype,"ytComponentBehaviorType",void 0);_.k([_.H(),_.W("design:type",Object)],Qr.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qr.prototype,"smallSize",void 0);Qr=_.k([_.N({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Qr);
_.u(Qr,"ytd-bullet-formatted-string",function(){if(xXO!==void 0)return xXO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xXO=v},{mode:1});var cM1;var Xx=function(){return _.g.apply(this,arguments)||this};
_.S(Xx,_.g);Xx.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Xx.prototype,"data",void 0);Xx=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Xx);
_.u(Xx,"ytd-offer-detail-renderer",function(){if(cM1!==void 0)return cM1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cM1=v},{mode:1});var yMU;var en=function(){return _.g.apply(this,arguments)||this};
_.S(en,_.g);en.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],en.prototype,"data",void 0);en=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],en);
_.u(en,"ytd-offer-detail-step-renderer",function(){if(yMU!==void 0)return yMU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yMU=v},{mode:1});var pG1;var Fx=function(){var v=_.g.apply(this,arguments)||this;v.isInOfferModule=!1;return v};
_.S(Fx,_.g);_.c=Fx.prototype;_.c.computeHasEndpoint=function(){var v;return!((v=this.data)==null||!v.onClickCommand)};
_.c.dataChanged=function(){var v;if((v=this.data)==null?0:v.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")};
_.c.detached=function(){var v;if((v=this.data)==null?0:v.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.c.handleClickEvent=function(){var v;if((v=this.data)==null?0:v.onClickCommand){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.c.onContentKeyDown=function(v){v.key==="Enter"?this.handleClickEvent(v):v.key===" "&&v.preventDefault()};
_.c.onContentKeyUp=function(v){v.key===" "&&this.handleClickEvent(v)};
Fx.prototype.dataChanged=Fx.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Fx.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fx.prototype,"data",void 0);_.k([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Fx.prototype,"hasEndpoint",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fx.prototype,"isInOfferModule",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fx.prototype,"dataChanged",null);Fx=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Fx);
_.u(Fx,"ytd-channel-masthead-renderer",function(){if(pG1!==void 0)return pG1;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return pG1=v},{mode:1});var Q5_;var mK=function(){var v=_.g.apply(this,arguments)||this;v.thumbnailObjectFit="CONTAIN";v.thumbnailObjectPosition="LEFT";v.isExpanded=!1;return v};
_.S(mK,_.g);_.c=mK.prototype;_.c.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.c.dataChanged=function(){this.resetStates()};
_.c.computeisTapOnOfferInfoContainerEnabled=function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.c.onExpandBtnClick=function(){var v,E=_.C((v=this.data)==null?void 0:v.showMoreButtonRenderer,DBP);E&&_.El(_.Tl(),E.trackingParams);this.isExpanded=!this.isExpanded};
_.c.onOfferInfoClick=function(v){this.isTapOnOfferInfoContainerEnabled&&(_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dW(_.MQ(v)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.c.onBottomBarClick=function(){this.executeTapCommand()};
_.c.executeTapCommand=function(){var v,E=(v=this.data)==null?void 0:v.tapCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.c.resetStates=function(){this.isExpanded=!1};
_.hK.Object.defineProperties(mK.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var v=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),E,n,f;return((E=this.data)==null?void 0:E.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&v&&!!((n=this.data)==null?0:(f=n.benefits)==null?0:f.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((E=_.C((v=this.data)==null?void 0:v.showMoreButtonRenderer,DBP))==null?void 0:E.showMoreButtonTitle)||((n=this.data)==null?void 0:n.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((E=_.C((v=this.data)==null?void 0:v.showMoreButtonRenderer,DBP))==null?void 0:E.showLessButtonTitle)||((n=this.data)==null?void 0:n.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var v;return(v=this.showLessButtonTitle)!=null?v:""}var E;return(E=this.showMoreButtonTitle)!=null?E:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((E=this.data)==null?0:E.footerTitle)||((n=this.data)==null?0:n.footerSubtitle))}}});
mK.prototype.dataChanged=mK.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],mK.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",String)],mK.prototype,"thumbnailObjectFit",void 0);
_.k([_.H(),_.W("design:type",String)],mK.prototype,"thumbnailObjectPosition",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.W("design:type",Boolean)],mK.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],mK.prototype,"isExpanded",void 0);_.k([_.H(),_.W("design:type",Object)],mK.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.footerIcon)"}),_.W("design:type",String)],mK.prototype,"icon",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mK.prototype,"dataChanged",null);_.k([_.A("data.thumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mK.prototype,"hasThumbnail",null);_.k([_.A("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mK.prototype,"enableExpandButton",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mK.prototype,"enableOfferContentIcon",null);_.k([_.A("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],mK.prototype,"showMoreButtonTitle",null);_.k([_.A("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],mK.prototype,"showLessButtonTitle",null);
_.k([_.A("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],mK.prototype,"expandedBtnText",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mK.prototype,"enableBottomBar",null);mK=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],mK);
_.u(mK,"ytd-offer-card-renderer",function(){if(Q5_!==void 0)return Q5_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Q5_=v},{mode:1});var XGM;var wf=function(){return _.g.apply(this,arguments)||this};
_.S(wf,_.g);wf.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"}}}};
wf.prototype.onClick=function(v){if(!_.Kh(v.composedPath()||[],this.hostElement,["A".toString()])){var E,n;if((v=(n=_.C((E=this.data)==null?void 0:E.actionButton,_.qb))==null?void 0:n.command)&&!this.ytComponentBehavior.resolveCommand(v)){var f;(f=_.Tl())==null||f.clickCommand(v);_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})}}};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],wf.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wf.prototype,"data",void 0);wf=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],wf);
_.u(wf,"ytd-offer-content-renderer",function(){if(XGM!==void 0)return XGM;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return XGM=v},{mode:1});var exC;var bk=function(){return _.g.apply(this,arguments)||this};
_.S(bk,_.g);bk.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.hK.Object.defineProperties(bk.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.title)||!((E=this.data)==null||!E.description)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bk.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bk.prototype,"hasHeaderData",null);bk=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],bk);
_.u(bk,"ytd-offer-section-renderer",function(){if(exC!==void 0)return exC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return exC=v},{mode:1});var FMx;var lk=function(){return _.g.apply(this,arguments)||this};
_.S(lk,_.g);
lk.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lk.prototype,"data",void 0);lk=_.k([_.N({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],lk);
_.u(lk,"ytd-offer-selection-step-renderer",function(){if(FMx!==void 0)return FMx;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return FMx=v},{mode:1});var mX3;var sN=function(){return _.g.apply(this,arguments)||this};
_.S(sN,_.g);sN.prototype.computeStyle=function(v){return v};
sN.prototype.computeImageWidth=function(v){return v==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.k([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],sN.prototype,"containerStyle",void 0);_.k([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.W("design:type",String)],sN.prototype,"imageWidth",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sN.prototype,"data",void 0);
sN=_.k([_.N({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],sN);
_.u(sN,"ytd-confirmation-masthead-renderer",function(){if(mX3!==void 0)return mX3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mX3=v},{mode:1});var wG1;var rf=function(){return _.g.apply(this,arguments)||this};
_.S(rf,_.g);rf.prototype.computeStyle=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rf.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],rf.prototype,"containerStyle",void 0);rf=_.k([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],rf);
_.u(rf,"ytd-purchase-complete-detail-renderer",function(){if(wG1!==void 0)return wG1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return wG1=v},{mode:1});var bkR;var Pc=function(){var v=_.g.apply(this,arguments)||this;v.scriptsAppended=!1;return v};
_.S(Pc,_.g);Pc.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"}}}};
Pc.prototype.onDataChanged=function(){var v=this.get("data.gtmId");v&&(_.cs(v,_.MX("GL","")),this.setupConversionTracking())};
Pc.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("noscript");v.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(v);this.scriptsAppended=!0}};
Pc.prototype.onDataChanged=Pc.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Pc.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Pc.prototype,"scriptsAppended",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Pc.prototype,"onDataChanged",null);Pc=_.k([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Pc);
_.u(Pc,"ytd-purchase-complete-step-renderer",function(){if(bkR!==void 0)return bkR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bkR=v},{mode:1});var lU_;var aw=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(aw,_.g);aw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],aw.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],aw.prototype,"darkerDarkTheme",void 0);aw=_.k([_.N({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],aw);
_.u(aw,"ytd-ypc-transaction-error-message-renderer",function(){if(lU_!==void 0)return lU_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return lU_=v},{mode:1});var s5M;var rM1;var ZW=function(){var v=_.g.apply(this,arguments)||this;v.handlePhoneVerificationSuccess=function(E){if(v.isValidPhoneVerificationCompletionMessageEvent(E)){var n;((n=v.data)==null?0:n.nextStepCommand)&&v.ytComponentBehavior.resolveCommand(v.data.nextStepCommand)}};
return v};
_.S(ZW,_.g);ZW.prototype.isValidPhoneVerificationCompletionMessageEvent=function(v){if(v.data!=="yt-phone-verification-complete")return!1;v=_.HG(v.origin);return v!==null&&v.includes("youtube.com")};
ZW.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ZW.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ZW.prototype,"data",void 0);ZW=_.k([_.p5({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ZW);
_.u(ZW,"yt-feature-enablement-soft-entry-renderer",function(){if(rM1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;s5M===void 0&&(s5M=document.createElement("template"));var f=s5M;n.call(E,f.content.cloneNode(!0),v.content.firstChild);rM1=v}v=rM1;return v},{mode:1});var P5C;var aUK;var Zk3;var C5_;var CP=function(){return _.g.apply(this,arguments)||this};
_.S(CP,_.g);_.k([_.H(),_.W("design:type",Object)],CP.prototype,"data",void 0);CP=_.k([_.p5({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],CP);
_.u(CP,"yt-benefits-item-renderer",function(){if(C5_===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Zk3===void 0&&(Zk3=document.createElement("template"));var f=Zk3;n.call(E,f.content.cloneNode(!0),v.content.firstChild);C5_=v}v=C5_;return v},{mode:2});var MpO;var SOp;var Mt=function(){return _.g.apply(this,arguments)||this};
_.S(Mt,_.g);Mt.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Mt.prototype.computeisWithoutPadding=function(){var v;return((v=this.data)==null?void 0:v.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Mt.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.W("design:type",Boolean)],Mt.prototype,"isWithoutPadding",void 0);Mt=_.k([_.p5({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Mt);
_.u(Mt,"yt-benefits-section-renderer",function(){if(SOp===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;MpO===void 0&&(MpO=document.createElement("template"));var f=MpO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);SOp=v}v=SOp;return v},{mode:2});var Sn=function(){return _.g.apply(this,arguments)||this};
_.S(Sn,_.g);Sn.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Sn.prototype.computeisUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sn.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.W("design:type",Boolean)],Sn.prototype,"isUsingLargeWidth",void 0);Sn=_.k([_.p5({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Sn);
_.u(Sn,"yt-benefits-flow-step-renderer",function(){if(aUK===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;P5C===void 0&&(P5C=document.createElement("template"));var f=P5C;n.call(E,f.content.cloneNode(!0),v.content.firstChild);aUK=v}v=aUK;return v},{mode:2});var UXb;var qOP;var UN=function(){return _.g.apply(this,arguments)||this};
_.S(UN,_.g);UN.prototype.checkIsUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.k([_.H(),_.W("design:type",Object)],UN.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.k([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.W("design:type",Boolean)],UN.prototype,"isUsingLargeWidth",void 0);UN=_.k([_.p5({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],UN);
_.u(UN,"yt-confirmation-flow-step-renderer",function(){if(qOP===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;UXb===void 0&&(UXb=document.createElement("template"));var f=UXb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qOP=v}v=qOP;return v},{mode:2});var JMp;var KMx;var qt=function(){return _.g.apply(this,arguments)||this};
_.S(qt,_.g);_.k([_.H(),_.W("design:type",Object)],qt.prototype,"data",void 0);qt=_.k([_.p5({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],qt);
_.u(qt,"yt-info-flow-step-renderer",function(){if(KMx===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;JMp===void 0&&(JMp=document.createElement("template"));var f=JMp;n.call(E,f.content.cloneNode(!0),v.content.firstChild);KMx=v}v=KMx;return v},{mode:2});var dXK;var IUx;var Jp=function(){return _.g.apply(this,arguments)||this};
_.S(Jp,_.g);_.k([_.H(),_.W("design:type",Object)],Jp.prototype,"data",void 0);Jp=_.k([_.p5({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Jp);
_.u(Jp,"yt-info-list-flow-step-renderer",function(){if(IUx===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;dXK===void 0&&(dXK=document.createElement("template"));var f=dXK;n.call(E,f.content.cloneNode(!0),v.content.firstChild);IUx=v}v=IUx;return v},{mode:2});var YOC=_.qu(function(v){var E=v.data;return _.w("styled-text-view-model",{class:_.W8("ytStyledTextViewModelHost",function(){return EEb(E().fontAttributes)},function(){return vEd(E().color)})},_.w(_.nh,{text:function(){return E().text},
ariaLabel:function(){var n,f,x;return(x=(n=E().accessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)!=null?x:""}}))},"Le");
YOC.idomCompat=!0;var hxx=_.qu(function(v){var E=function(){var x,y,Q,e;return(e=(Q=(x=v.alt)==null?void 0:x.call(v))!=null?Q:(y=v.data().accessibilityData)==null?void 0:y.label)!=null?e:""},n=function(){return v.data().imageWidth},f=function(){return v.data().imageHeight};
return _.w("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.w(_.x6,{cond:function(){var x=v.data();if(x){var y,Q,e;var F=((y=_.P().resolve(_.jp(_.aj)))==null?0:y())?(Q=x.imageDark)!=null?Q:x.imageLight:(e=x.imageLight)!=null?e:x.imageDark}else F=void 0;return F},
then:function(x){return _.w(_.UZ,Object.assign({},v,{data:x,alt:E,targetWidth:n,targetHeight:f,preserveHeight:!0,preserveWidth:!0}))}}))},"Me");
hxx.idomCompat=!0;var KP=_.qu(function(v){var E=v.data;v=_.SI(function(){return E().slots},[]);
var n=_.SI(function(){return E().layoutProperties},{}),f=_.P().resolve(_.CR);
return _.w("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:isb(n,f)},_.w(_.cG,{each:v,keyBy:"INDEX"},function(x){return _.w("div",{class:"ytContainerLayoutViewModelSlot",style:isb(function(){return x().layoutProperties},f)},_.w(_.mI,{data:function(){return x().contents}},{containerLayoutViewModel:KP,
badgeViewModel:_.gi,buttonViewModel:_.C7,styledTextViewModel:YOC,contentPreviewImageViewModel:function(y){return _.w(_.N8,{data:y.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(y){return _.w(hxx,{data:y.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ne");
KP.idomCompat=!0;var AMC=_.qu(function(v){var E=v.data;var n=v.stateFns;var f=function(){var b=E(),l=b.productId;return!(!b.clearGroupId&&!l)},x=function(){var b=E(),l=b.clearGroupId;
return(b=b.productId)?n().isProductSelected(b):l?n().getSelectedProductByGroupId(l)==null:!1},y=function(){var b=E(),l=b.clearGroupId;
if(b=b.productId)n().onProductSelected(b);else if(l)n().onClearGroupSelected(l)},Q=function(){var b=E(),l=b.clearGroupId;
if(b=b.productId){var r;return"group:"+(((r=n().getProductById(b))==null?void 0:r.groupId)||"")}return l?"group:"+l:""},e=_.SI(function(){return E().header},[]),F=_.SI(function(){return E().body},[]);
return _.w("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.w(_.x6,{cond:function(){return e().length>0||f()},
then:function(){return _.w("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.w("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.w(_.mI,{data:e},{containerLayoutViewModel:function(b){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(KP,{data:b.data}))},
styledTextViewModel:function(b){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(YOC,{data:b.data}))}})),_.w(_.x6,{cond:f,
then:function(){return _.w("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.w(_.e3,{checked:x,name:Q,onChange:y}))}}))}}),_.w(_.x6,{cond:function(){return F().length>0},
then:function(){return _.w("div",null,_.w(_.mI,{data:F},{containerLayoutViewModel:function(b){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(KP,{data:b.data}))}}))}}))},"Oe");
AMC.idomCompat=!0;var VpO=_.qu(function(v){var E=v.data;var n=v.stateFns;return _.w("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.w(_.x6,{cond:function(){return E().banner},
then:function(f){return _.w("div",{class:"ytPdpCardViewModelBanner"},_.w(_.nh,{text:f}))}}),_.w(_.mI,{data:function(){return E().sections}},{pdpCardSectionViewModel:function(f){f=f.data;
var x={};return _.w("div",{class:_.W8("ytPdpCardViewModelSectionContainer",(x.ytPdpCardViewModelShowDividers=function(){return E().showDividers},x))},_.w(AMC,{data:f,
stateFns:n}))}}))},"Pe");
VpO.idomCompat=!0;var DXp=_.qu(function(v){var E=v.data;var n=v.isOverlay;v={};return _.w("pdp-masthead-view-model",{class:_.W8("ytPdpMastheadViewModelHost",(v.ytPdpMastheadViewModelIsOverlay=n,v))},_.w(_.mI,{data:function(){return E().image}},{contentPreviewImageViewModel:_.N8,
themedImageViewModel:function(f){return _.w(hxx,{data:f.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.w(_.x6,{cond:function(){return E().title},
then:function(f){return _.w("h1",{class:"ytPdpMastheadViewModelHeading"},_.w(_.nh,{text:f,isOverlay:n}))}}),_.w(_.cG,{each:function(){var f;
return(f=E().finePrint)!=null?f:[]}},function(f){return _.w("div",{class:"ytPdpMastheadViewModelFinePrint"},_.w(_.nh,{text:f,
isOverlay:n}))}))},"Qe");
DXp.idomCompat=!0;var HkO=_.qu(function(v){var E=v.data;var n=v.stateFns;return _.w("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.w(_.cG,{each:function(){var f=n().getSelectedPricingOptions().map(function(y){return y.pricingOptionId}),x=n().getSelectedProductByGroupId(E().groupId);
return x?x.pricingOptions.map(function(y){return{pricingOption:y,isSelected:f.includes(y.pricingOptionId)}}):(_.bi(Error("Fj`"+E().groupId)),[])},
keyBy:"INDEX"},function(f){return _.w("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.w(_.mI,{data:function(){return f().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:KP})),_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.w(_.e3,{checked:function(){return f().isSelected},
onClick:function(){n().onPricingOptionSelected(f().pricingOption.pricingOptionId);var x=f().pricingOption.onSelectPricingOption;if(x=_.F$(x)){var y;(y=_.P().resolve(_.OO))==null||y.resolveCommand(x)}}})))}))},"Re");
HkO.idomCompat=!0;var g6M=_.qu(function(v){var E=v.data;var n=v.stateFns;return _.w("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.w(_.mI,{data:function(){var f,x;return(x=(f=n().getSelectedPricingOptions()[0])==null?void 0:f.primaryButton)!=null?x:E().emptyStateButton}},{buttonViewModel:_.C7}))},"Se");
g6M.idomCompat=!0;var NBd=_.qu(function(v){var E=v.stateFns;return _.w("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.w(_.mI,{data:function(){return E().getSelectedPricingOptions().flatMap(function(n){return n.summaryLines}).filter(function(n){return!!n})}},{containerLayoutViewModel:function(n){return _.w("div",{class:"ytPdpSummaryViewModelLineItem"},_.w(KP,{data:n.data}))}}))},"Te");
NBd.idomCompat=!0;var uob=_.qu(function(v){function E(Y){var V=Q();_.Mu(_.sI("pdpStateEntity",V,{key:V,selectedPricingOptions:Y}))}
var n=v.data;var f=v.internalScrolling;var x=v.stateFnsForTesting;var y=_.SI(function(){return n().allProducts},[]),Q=_.SI(function(){return n().pdpStateEntityKey},""),e=_.Bi(nEx,Q),F=_.o0(function(){_.ba(!0);
var Y;return(Y=x==null?void 0:x())!=null?Y:Qc3(e,y,E)},void 0,"POBqwe"),b=_.SI(function(){return n().body},[]),l=_.SI(function(){return n().columnBreakHints},[]),r=function(){return n().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},a=function(){return r()||n().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},M=_.o0(function(){var Y=_.OI(n().background),V;
if(Y==null?0:(V=Y.sources)==null?0:V.length){var O=O===void 0?!0:O;Y=_.N5$(void 0,Y.sources,void 0,O,O?1E3:void 0,O?void 0:1E3)}else Y=null;return Y},void 0,"BkCmEd");
v=_.tZ({"--pdp-view-model-background":function(){return M()?"url("+M()+")":void 0}});
var U={};f=_.W8("ytPdpViewModelHost",(U.ytPdpViewModelHasBackground=function(){return a()||!!M()},U.ytPdpViewModelHasDarkBackground=a,U.ytPdpViewModelHasScrim=r,U.ytPdpViewModelInternalScrolling=_.SI(f,!1),U));
var d=function(Y){var V={};return _.W8("ytPdpViewModelItem",(V.ytPdpViewModelFullBleed=function(){return _.AuX(Y())==="dividerViewModel"||_.AuX(Y())==="sectionHeaderViewModel"},V.ytPdpViewModelNoVerticalPadding=function(){return _.AuX(Y())==="sectionHeaderViewModel"},V))};
_.l5(function(){var Y=n().onStartCommand;if(Y&&(Y=_.F$(Y))){var V;(V=_.P().resolve(_.OO))==null||V.resolveCommand(Y)}});
return _.w("pdp-view-model",{class:f,style:v},_.w("div",{class:"ytPdpViewModelColumnContainer"},_.w(_.cG,{each:function(){return XvK(b(),l())},
keyBy:"INDEX"},function(Y){return _.w("div",{class:"ytPdpViewModelColumn"},_.w(_.mI,{data:Y},{containerLayoutViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(KP,{data:V}))},
dividerViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(_.t_1,{data:V}))},
pdpCardViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(VpO,{data:V,
stateFns:F}))},
pdpMastheadViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(DXp,{data:V,
isOverlay:a}))},
pdpPricingOptionSelectorViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(HkO,{data:V,
stateFns:F}))},
pdpPrimaryButtonViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(g6M,{data:V,
stateFns:F}))},
pdpSummaryViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(NBd,{data:V,
stateFns:F}))},
sectionHeaderViewModel:function(V,O){V=V.data;return _.w("div",{class:d(function(){return Y()[O()]})},_.w(_.$f,{data:V}))}}))})))},"Ue");
uob.idomCompat=!0;_.Yz(uob,"pdp-view-model",{props:{data:_.Kt,stateFnsForTesting:_.Ij,internalScrolling:_.Ij}});var j5P=_.qu(function(v){var E=v.data;var n=v.className;var f=_.Bi(_.zk,function(){return E().flowStateEntityKey});
return _.w("ytm-premium-purchase-button-renderer",{class:_.W8("yt-premium-purchase-button-renderer",n)},_.w(_.mI,{data:function(){var x;return(x=_.C(f(),$v))==null?void 0:x.primaryButtonOverride}},{buttonRenderer:function(x){return _.w(_.q8,{data:x.data,
className:n})},
buttonViewModel:function(x){return _.w(_.C7,{data:x.data,className:n})}}))},"Ve");
j5P.idomCompat=!0;var OkM=_.qu(function(v){var E=v.data;var n=function(){return etp(E().style)},f=_.W8("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",n),x=_.W8("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",n);
return _.w("yt-flow-bottom-bar-renderer",{class:_.W8("yt-flow-bottom-bar-renderer",v.className,n)},_.w(_.mI,{data:function(){return E().secondaryButton}},{buttonRenderer:function(y){return _.w(_.q8,{data:y.data,
className:x})},
buttonViewModel:function(y){return _.w(_.C7,{data:y.data,className:x})},
premiumPurchaseButtonRenderer:function(y){return _.w(j5P,{data:y.data,className:x})}}),_.w(_.mI,{data:function(){return E().primaryButton}},{buttonRenderer:function(y){return _.w(_.q8,{data:y.data,
className:f})},
buttonViewModel:function(y){return _.w(_.C7,{data:y.data,className:f})},
premiumPurchaseButtonRenderer:function(y){return _.w(j5P,{data:y.data,className:f})}}))},"We");
OkM.idomCompat=!0;_.Yz(OkM,"yt-flow-bottom-bar-renderer",{props:{data:_.Kt,className:_.Kt}});var kaR=_.qu(function(v){return _.w("yt-offer-summary-renderer",{class:_.W8(v.className,"ytOfferSummaryRendererHost")},_.w("div",{class:"ytOfferSummaryRendererTextContainer"},_.w("div",{class:"ytOfferSummaryRendererEyebrowText"},_.w(_.nh,{text:function(){return v.data().eyebrowText}})),_.w("div",{class:"ytOfferSummaryRendererTitle"},_.w(_.nh,{text:function(){return v.data().title}})),_.w("div",{class:"ytOfferSummaryRendererSubtitle"},_.w(_.nh,{text:function(){return v.data().subtitle}})),_.w("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.w(_.cG,{each:function(){var E;
return(E=v.data().featureListData)!=null?E:[]}},function(E){var n;
return _.w("div",{class:"ytOfferSummaryRendererFeatureList"},_.w(_.B8,{icon:(n=E.icon)==null?void 0:n.iconType,className:E.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.w("div",{class:"ytOfferSummaryRendererFeatureListText"},_.w(_.nh,{text:E.text})))})),_.w("div",{class:"ytOfferSummaryRendererDescription"},_.w(_.nh,{text:function(){return v.data().description}}))))},"Xe");_.Yz(_.qu(function(v){var E={};E=_.W8("ytOfferSummaryFlowStepRendererHost",(E.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=v.shouldDisableHeaderTopMargin,E));return _.w("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:E},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.w(_.nh,{text:function(){return v.data().header}})),_.w("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.w(_.nh,{text:function(){return v.data().subtitle}}))),_.w("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.w(_.mI,{data:function(){return v.data().offerSummary}},{offerSummaryRenderer:function(n){return _.w(kaR,{data:n.data,
className:v.flowClassName})}})))},"Ye"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Ij,
flowClassName:_.Ij,flowStateEntityKey:_.Ij,shouldDisableHeaderTopMargin:_.Ij}});var WMb=_.qu(function(v){var E=v.data;var n=v.className;var f=v.flowStateEntityKey;var x=v.selectionStepStyle;v=_.ij(function(F){var b=E(),l=f==null?void 0:f();F.target&&(F.stopPropagation(),F=l||"",l=_.zk(_.Zj().getState(),F),b=Object.assign({},l,{premiumPurchaseFlowState:{selectedOptionId:b.optionId,primaryButtonOverride:b.primaryButtonOverride}}),_.Zj().dispatch(_.n7("flowStateEntity",F,b)));return!1});
var y=function(){return(f==null?void 0:f())||""},Q=_.Bi(_.zk,y);
_.l5(function(){var F=E(),b=y(),l=Q();!_.C(l,$v)&&F.defaultSelected&&b!==""&&F.primaryButtonOverride&&Fz_(F.optionId||"",b,F.primaryButtonOverride,l)});
var e={};return _.w("ytm-option-item-renderer",{"on:click":v,class:_.W8(n,"ytm-option-item-renderer",(e["ytm-option-item-renderer--lp2-style"]=function(){return(x==null?void 0:x())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},e))},_.w("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.w("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var F=E(),b=y(),l=Q();l=_.C(l,$v);return(l?(l==null?void 0:l.selectedOptionId)||"":F.defaultSelected&&b!==""?(F==null?void 0:F.optionId)||"":"")===E().optionId},
name:("input"+_.ZE(_.CU)).toString()})),_.w("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.w(_.x6,{cond:function(){return E().eyebrowText},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.w(_.nh,{text:function(){return E().eyebrowText}}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-title"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.w(_.nh,{text:function(){return E().subtitle}})),_.w("div",{class:"ytm-option-item-renderer__option-item-description"},_.w(_.nh,{text:function(){return E().description}}))))},
"Ze");var $X1=_.qu(function(v){var E=v.data;var n=v.flowClassName;var f=v.flowStateEntityKey;var x=v.selectionStepStyle;return _.w("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.w("div",{class:"yt-option-section-renderer__option-section-header-section"},_.w("div",{class:"yt-option-section-renderer__option-section-header"},_.w(_.nh,{text:function(){return E().title}}),_.w(_.mI,{data:function(){return E().titleBadge}},{badgeViewModel:function(y){return _.w(_.gi,
{data:y.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.w(_.nh,{text:function(){return E().subtitle}}))}}),_.w(_.x6,{cond:function(){return E().featureListData},
then:function(y){return _.w("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.w(_.cG,{each:y},function(Q){var e;return _.w("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.w(_.B8,{icon:(e=Q.icon)==null?void 0:e.iconType,className:Q.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"}),_.w("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.w(_.nh,{text:Q.text})))}))}}),_.w(_.cG,{each:function(){return E().sectionDisclaimers||[]}},function(y){return _.w("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.w(_.nh,{text:y}))})),_.w(_.mI,{data:function(){return E().optionItems}},{optionItemRenderer:function(y){return _.w("div",{class:"yt-option-section-renderer__option-item"},_.w(WMb,{data:y.data,
className:n,flowStateEntityKey:f,selectionStepStyle:x}))}}),_.w(_.x6,{cond:function(){return E().offerText},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.w(_.nh,{text:function(){return E().offerText}}))}}))},"$e");
$X1.idomCompat=!0;var LMx=_.qu(function(v){var E=v.data;var n=v.flowClassName;var f=v.flowStateEntityKey;v=v.isDesktop;var x=function(){var b;return(b=E().flowStateEntityKey)!=null?b:f==null?void 0:f()},y=function(){return(x==null?void 0:x())||""},Q=function(){return E().style},e=_.Bi(_.zk,y);
_.l5(function(){var b=E(),l=y(),r=e();!_.C(r,$v)&&b.noPreselect&&l!==""&&b.defaultButtonOverride&&Fz_("default",l,b.defaultButtonOverride,r)});
var F={};return _.w("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.W8("ytm-option-selection-flow-step-renderer",(F["ytm-option-selection-flow-step-renderer--desktop"]=v,F["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return E().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},F))},_.w("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"},
_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.w(_.nh,{text:function(){return E().header}})),_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.w(_.nh,{text:function(){return E().subtitle}}))),_.w(_.mI,{data:function(){return E().optionItems||[]}},{optionItemRenderer:function(b){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(WMb,{data:b.data,
className:n,flowStateEntityKey:x,selectionStepStyle:Q}))},
optionSectionRenderer:function(b){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w($X1,{data:b.data,flowClassName:n,flowStateEntityKey:x,selectionStepStyle:Q}))}}))},"af");
LMx.idomCompat=!0;_.Yz(LMx,"yt-option-selection-flow-step-renderer",{props:{data:_.Kt,flowClassName:_.Kt,flowStateEntityKey:_.Kt,isDesktop:_.Kt}});var mEx,wvd;_.df=_.qu(function(v){var E=_.Ue(v,{type:1,disablePadding:!1,disablePrimaryButton:!1}),n=E.data,f=E.type;v=E.disablePadding;var x=E.disablePrimaryButton,y=E.onClickPrimaryButton,Q=function(){return n().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},e=function(){return{disabled:x(),
state:x()?"disabled":"active"}},F=function(){return n().leadingLabel||n().trailingLabel};
E={};return _.w("yt-panel-footer-view-model",{class:_.W8("yt-panel-footer-view-model-wiz",(E["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return n().shouldHideDivider},E["yt-panel-footer-view-model-wiz--disable-padding"]=v,E))},_.w(_.x6,{cond:F,
then:function(){var b={},l={};return _.w("div",{class:_.W8("yt-panel-footer-view-model-wiz__text-row",(b["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var r=n();return!(!r.leadingLabel&&!r.trailingLabel||!r.primaryButton&&!r.secondaryButton)},b))},_.w(_.nh,{text:function(){return n().leadingLabel},
className:_.W8((l["yt-panel-footer-view-model-wiz--text-padding"]=F,l))}),_.w(_.nh,{text:function(){return n().trailingLabel}}))}}),_.w(_.x6,{cond:Q,
then:function(){var b={};return _.w("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.w("div",{class:_.W8("yt-panel-footer-view-model-wiz__primary-button",(b["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return n().secondaryButton},b))},_.w(_.mI,{data:function(){return n().primaryButton}},{buttonViewModel:function(l){return _.w(_.C7,{data:l.data,
buttonOverrides:e,onClick:y})}})),_.w(_.mI,{data:function(){return n().secondaryButton}},{buttonViewModel:_.C7}))}}),_.w(_.x6,{cond:function(){return!Q()},
then:function(){var b={},l={},r={};return _.w("div",{class:_.W8("yt-panel-footer-view-model-wiz__button-row",(b["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===f()},b))},_.w("div",{class:_.W8("yt-panel-footer-view-model-wiz__button-row--left-button",(l["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===f()},l["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!n().secondaryButton||0===f()},l["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===f()},l))},_.w(_.mI,{data:function(){return n().secondaryButton}},{buttonViewModel:_.C7})),_.w("div",{class:_.W8("yt-panel-footer-view-model-wiz__primary-button",(r["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===f()||1===f()},r["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===f()},r))},_.w(_.mI,{data:function(){return n().primaryButton}},{buttonViewModel:function(a){return _.w(_.C7,{data:a.data,
buttonOverrides:e,onClick:y})}})))}}))},"bf");
_.df.idomCompat=!0;_.GaM=_.qu(function(v){v=_.Ue(v,{disablePadding:!1});var E=v.data,n=v.disablePadding;v=_.r7d(function(){return E().formId});
var f=v.onSubmit,x=v.isValid,y=v.isSubmitting;return _.w("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.w(_.mI,{data:function(){return E().panelFooter}},{panelFooterViewModel:function(Q){return _.w(_.df,{data:Q.data,
onClickPrimaryButton:function(){f()},
disablePrimaryButton:function(){return!x()||y()},
disablePadding:n})}}))},"cf");_.Yz(_.GaM,"yt-form-footer-view-model",{props:{data:_.Kt,disablePadding:_.Kt}});_.Yz(_.qu(function(v){return _.w("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.w(_.x6,{cond:function(){var E;return(E=v.data())==null?void 0:E.image},
then:function(E){return _.w(_.UZ,{data:E,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.w(_.nh,{text:function(){var E;
return(E=v.data())==null?void 0:E.title}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.w(_.nh,{text:function(){var E;
return(E=v.data())==null?void 0:E.subtitle}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.w(_.mI,{data:function(){var E;
return(E=v.data())==null?void 0:E.viewTipsButton}},{buttonViewModel:_.C7}))))},"df"),"yt-contributor-zero-state-view-model",{props:{data:_.Kt}});var TBC=_.qu(function(v){var E=_.Bi(PYM,_.SI(function(){var n;return(n=v.data())==null?void 0:n.noteFeedEntityKey},""));
return _.w("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.w(_.x6,{cond:function(){var n,f;return(n=v.data())==null?void 0:(f=n.noteData)==null?void 0:f.isPinned},
then:function(){return _.w(_.B8,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.w(_.nh,{text:function(){var n,f;
return(n=v.data())==null?void 0:(f=n.noteData)==null?void 0:f.headerText}}),_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.w(_.nh,{text:function(){var n,f;
return(n=v.data())==null?void 0:(f=n.noteData)==null?void 0:f.delimiter}})),_.w(_.nh,{text:function(){var n,f;
return(n=E())==null?void 0:(f=n.contributorNote)==null?void 0:f.publishedTimeText}})),_.w(_.mI,{data:function(){var n,f,x,y=(n=v.data())==null?void 0:n.noteData;
n=(f=E())==null?void 0:(x=f.contributorNote)==null?void 0:x.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:y.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:y.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:y.deleteDialogTitle}]},dialogMessages:[{runs:[{text:y.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.deleteActionText}]},command:{performCommentActionEndpoint:{action:n}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.w("div",{class:"ytNoteViewModelNoteContent"},_.w(_.nh,{text:function(){var n,f;
return(n=E())==null?void 0:(f=n.contributorNote)==null?void 0:f.text}})))},"ef");
TBC.idomCompat=!0;_.Yz(TBC,"yt-note-view-model",{props:{data:_.Kt}});var Iw=_.qu(function(v){var E=_.Ue(v,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),n=E.label,f=E.text,x=E.placeholder,y=E.hint;v=E.rows;var Q=E.overflowStyle,e=E.outline,F=E.disabled,b=E.disableNewLines,l=E.characterLimit,r=E.validation,a=E.onInput,M=_.Ig();E=_.p(_.Rj(function(){return f()}));
var U=E.next().value,d=E.next().value;E=_.p(_.t7(!1,void 0,"fXvinf"));var Y=E.next().value,V=E.next().value,O=function(){V(!0)},T=function(){V(!1)};
_.l5(function(){var uE=M.value,WI=Q(),bX=U();WI==="expand-vertically"&&bX&&aBU(uE);M.value.addEventListener("focusin",O);M.value.addEventListener("focusout",T)});
_.Fp(function(){M.value.removeEventListener("focusin",O);M.value.removeEventListener("focusout",T)});
var L=function(){var uE;return(uE=r())==null?void 0:uE.validate(U())},xX=function(){return l()&&!L()&&U().length>l().maxChars},t=function(){return!!L()||xX()};
E=_.ij(function(uE){if(!uE.currentTarget)return!1;uE=uE.currentTarget;d(uE.value);Q()==="expand-vertically"&&aBU(uE);a==null||a(uE.value);return!0});
var QE=_.ij(function(uE){b()&&uE.key==="Enter"&&uE.preventDefault();return!1}),MF=_.ij(function(){M.value.focus()}),K1=function(){return x()||n()},JG={},$X={},HI={};
return _.w("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.w("div",{class:_.W8("ytStandardsTextareaShapeTextareaContainer",(JG.ytStandardsTextareaShapeTextareaContainerOutline=e,JG.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=F,JG.ytStandardsTextareaShapeTextareaContainerOutlineError=t,JG)),"on:click":MF},_.w("label",{class:_.W8("ytStandardsTextareaShapeLabel",($X.ytStandardsTextareaShapeLabelFocused=Y,$X.ytStandardsTextareaShapeLabelDisabled=F,$X.ytStandardsTextareaShapeLabelError=
function(){return t()&&!F()},$X.ytStandardsTextareaShapeLabelHidden=function(){return!Y()&&!U()&&!!K1()},$X))},n),_.w("div",{class:_.W8("ytStandardsTextareaShapePlaceholder",(HI.ytStandardsTextareaShapePlaceholderVisible=function(){return!Y()&&!U()},HI)),
"aria-hidden":"true"},K1),_.w("textarea",{el:M,class:"ytStandardsTextareaShapeTextarea",rows:v,disabled:F,placeholder:K1,"on:input":E,"on:keydown":QE},U)),_.w(_.x6,{cond:function(){return y()&&!t()},
then:function(){var uE={};return _.w("div",{class:_.W8("ytStandardsTextareaShapeHint",(uE.ytStandardsTextareaShapeHintDisabled=F,uE))},_.w("div",{class:"ytStandardsTextareaShapeHintHintMessage"},y))}}),_.w(_.x6,{cond:L,
then:function(){return _.w(ikb,{disabled:F},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},L))}}),_.w(_.x6,{cond:l,
then:function(uE){return _.w(_.x6,{cond:xX,then:function(){return _.w(ikb,{disabled:F},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return uE().errorMessage}),_.w("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return U().length+"/"+uE().maxChars}))}})}}))},"ff");
Iw.idomCompat={callbacks:{onInput:!0}};var ikb=_.qu(function(v){var E={};return _.w("div",{class:_.W8("ytStandardsTextareaShapeError",(E.ytStandardsTextareaShapeErrorDisabled=v.disabled,E)),role:"alert"},_.w(_.B8,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),v.children)},"gf");_.zxU=_.qu(function(v){var E=v.data;return _.w("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.w(Iw,{text:v.text,label:function(){var n;return(n=E().contentProperties)==null?void 0:n.labelText},
placeholder:function(){var n;return(n=E().contentProperties)==null?void 0:n.placeholderText},
hint:function(){var n;return(n=E().contentProperties)==null?void 0:n.hintText},
outline:function(){var n;return!((n=E().displayProperties)==null?0:n.hideBorder)},
overflowStyle:function(){var n;return((n=E().displayProperties)==null?0:n.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:v.disabled,disableNewLines:function(){var n;return(n=E().displayProperties)==null?void 0:n.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var n;return(n=E().displayProperties)==null?void 0:n.rows}}))},"hf");_.Rx6=_.qu(function(v){var E=v.data;return _.w("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.w(Iw,{text:v.text,label:function(){var n;return(n=E().contentProperties)==null?void 0:n.labelText},
placeholder:function(){var n;return(n=E().contentProperties)==null?void 0:n.placeholderText},
hint:function(){var n;return(n=E().contentProperties)==null?void 0:n.hintText},
outline:function(){var n;return!((n=E().displayProperties)==null?0:n.hideBorder)},
overflowStyle:function(){var n;return((n=E().displayProperties)==null?0:n.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var n;return(n=E().displayProperties)==null?void 0:n.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var n;return(n=E().displayProperties)==null?void 0:n.rows}}))},"jf");var tp3=_.qu(function(v){var E=_.p(_.Rj(function(){var K1,JG;return((K1=v.data().structuredContextNoteFormSchema)==null?0:(JG=K1.initialValues)==null?0:JG.noteBody)?v.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),n=E.next().value,f=E.next().value;
E=_.p(_.Rj(function(){v.data();return!1}));
var x=E.next().value,y=E.next().value;E=_.p(_.Rj(function(){v.data();return!1}));
var Q=E.next().value,e=E.next().value;E=_.p(_.Rj(function(){var K1,JG;return((K1=v.data().structuredContextNoteFormSchema)==null?0:(JG=K1.initialValues)==null?0:JG.timestamp)?v.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var F=E.next().value,b=E.next().value;E=_.p(_.Rj(function(){v.data();return!1}));
var l=E.next().value,r=E.next().value;E=_.p(_.Rj(function(){var K1,JG;return((K1=v.data().structuredContextNoteFormSchema)==null?0:(JG=K1.initialValues)==null?0:JG.sources)?[v.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var a=E.next().value,M=E.next().value;E=_.p(_.Rj(function(){v.data();return!1}));
var U=E.next().value,d=E.next().value;E=_.p(_.Rj(function(){return!1}));
var Y=E.next().value,V=E.next().value;_.l5(function(){var K1;_.sc6((K1=v.data().structuredContextNoteFormSchema)==null?void 0:K1.id,{isSubmitting:Y,onSubmit:function(){V(!0);var JG=dEp(n(),F(),a(),v.data()),$X=_.P().resolve(_.OO);JG&&$X&&$X.resolveCommand(JG,{commandController:{onSuccess:function(){V(!1)}}})},
isValid:function(){return x()&&!Q()&&!l()&&!U()}})});
var O=function(K1){if(K1!==void 0&&(f(K1),!x()&&K1.length>0&&y(!0),x())){var JG=MC3(v.data());if(JG){var $X=JG.minLength;JG=JG.maxLength;$X&&K1.length<$X?e(!0):JG&&K1.length>JG?e(!0):e(!1)}}},T=function(K1){if(K1!==void 0){b(K1);
if(K1.length>0){var JG,$X,HI,uE,WI=UEx((JG=v.data())==null?void 0:($X=JG.structuredContextNoteFormSchema)==null?void 0:(HI=$X.fieldSchemas)==null?void 0:(uE=HI.timestamp)==null?void 0:uE.validationSchema);if(WI&&(JG=WI.regex)&&!(new RegExp(JG)).test(K1)){r(!0);return}}r(!1)}},L=function(K1){if(K1!==void 0){var JG=K1.split(/[ \n]/).map(function($X){return $X.trim()});
M(JG);if(K1.length>0)for(K1=_.p(JG),JG=K1.next();!JG.done;JG=K1.next())if(!KzO(JG.value)){d(!0);return}d(!1)}},xX=function(){return{validate:function(K1){if(x()){var JG=MC3(v.data());
if(JG){var $X=JG.minLength;JG=JG.translations;if($X&&K1.length<$X)return JG==null?void 0:JG.minLengthErrorMessage}}}}},t=function(){var K1=MC3(v.data()),JG=K1==null?void 0:K1.maxLength,$X;
K1=K1==null?void 0:($X=K1.translations)==null?void 0:$X.maxLengthErrorMessage;if(JG&&K1)return{maxChars:JG,errorMessage:K1}},QE=function(){return{validate:function(K1){if(K1){var JG,$X,HI,uE,WI=UEx((JG=v.data())==null?void 0:($X=JG.structuredContextNoteFormSchema)==null?void 0:(HI=$X.fieldSchemas)==null?void 0:(uE=HI.timestamp)==null?void 0:uE.validationSchema);
if(WI&&(JG=WI.regex,WI=WI.translations,JG&&!(new RegExp(JG)).test(K1)))return WI==null?void 0:WI.regexErrorMessage}}}},MF=function(){return{validate:function(K1){if(K1){var JG,$X,HI,uE,WI=J7P((JG=v.data())==null?void 0:($X=JG.structuredContextNoteFormSchema)==null?void 0:(HI=$X.fieldSchemas)==null?void 0:(uE=HI.sources)==null?void 0:uE.validationSchema);
if(WI&&(JG=WI.translations,JG==null?0:JG.selectedErrorMessage))for(K1=K1.split(/[ \n]/).map(function(bX){return bX.trim()}),K1=_.p(K1),$X=K1.next();!$X.done;$X=K1.next())if(!KzO($X.value))return K1=void 0,(K1=JG)==null?void 0:K1.selectedErrorMessage}}}};
return _.w("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.mI,{data:function(){var K1;return(K1=v.data())==null?void 0:K1.noteContents}},{textFormFieldViewModel:function(K1){return _.w(_.Rx6,{data:K1.data,
onInput:O,validation:xX,characterLimit:t})},
textFieldViewModel:function(K1){return _.w(_.zxU,{data:K1.data,onInput:O,validation:xX,characterLimit:t})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.mI,{data:function(){var K1;
return(K1=v.data())==null?void 0:K1.noteTimestamp}},{textFormFieldViewModel:function(K1){return _.w(_.Rx6,{data:K1.data,
onInput:T,validation:QE})},
textFieldViewModel:function(K1){return _.w(_.zxU,{data:K1.data,onInput:T,validation:QE})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.mI,{data:function(){var K1;
return(K1=v.data())==null?void 0:K1.noteSources}},{textFormFieldViewModel:function(K1){return _.w(_.Rx6,{data:K1.data,
onInput:L,validation:MF})},
textFieldViewModel:function(K1){return _.w(_.zxU,{data:K1.data,onInput:L,validation:MF})}})))},"kf");
tp3.idomCompat=!0;_.Yz(tp3,"yt-structured-context-note-view-model",{props:{data:_.Kt}});var BB0=_.qu(function(v){var E=_.p(_.Rj(function(){var y;if((y=v.controlled)==null?0:y.call(v))return[];var Q;return(((Q=v.data())==null?void 0:Q.chips)||[]).map(function(e){e=_.C(e,_.dR);if(e==null?0:e.selected)return IBP(e.chipValue)}).filter(function(e){return e!==void 0})})),n=E.next().value,f=E.next().value,x=function(y){var Q=IBP(y.chipValue);
if(Q!==void 0){var e;if((e=v.controlled)==null?0:e.call(v))return void v.controlled().onTap(Q);y=n().includes(Q)?[].concat(_.s8(n().filter(function(b){return b!==Q}))):[].concat(_.s8(n()),[Q]);
f(y);var F;if((F=v.uncontrolled)==null?0:F.call(v))v.uncontrolled().onUpdate(y)}};
return _.w("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.w(_.cG,{each:function(){return v.data().chips||[]}},function(y){return _.w("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.w(_.z91,{data:function(){return _.C(y,_.dR)},
selected:function(){var Q;if(Q=_.C(y,_.dR)){var e=IBP(Q.chipValue);if(e!==void 0){var F;Q=((F=v.controlled)==null?0:F.call(v))?v.controlled().selectedValues.includes(e):n().includes(e)}else Q=void 0}else Q=!1;return Q},
callback:x}))}))},"lf");var vmR=_.qu(function(v){var E=v.data;var n=function(){var e;return((e=E())==null?void 0:e.flowStateKey)||""},f=_.Bi(_.zk,n),x=function(){var e;
return(e=_.C(f(),CaM))==null?void 0:e.chips},y=function(e){if(e!==void 0){var F=x()||[];
F=F.find(function(b){return b===e})?F.filter(function(b){return b!==e}):[].concat(_.s8(F),[e]);
F=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.C(f(),CaM),{chips:F})});_.Mu(_.n7("flowStateEntity",n(),F))}},Q=function(){var e;
return _.C((e=E())==null?void 0:e.inputBox,Max)};
v=_.me(function(e){var F=Q();F=!(F==null?0:F.maxChars)||e.length<=F.maxChars;e=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.C(f(),CaM),{detail:e}),abuseReportFlowState:Object.assign({},_.C(f(),TH),{navigationEnabled:F})});_.Mu(_.n7("flowStateEntity",n(),e))},150);
return _.w("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.w("div",{class:"ytFeedbackFormViewModelChips"},_.w(_.mI,{data:function(){var e;return(e=E())==null?void 0:e.chipSelection}},{chipSelectionFormFieldViewModel:function(e){return _.w(BB0,{data:e.data,
controlled:function(){return{selectedValues:x()||[],onTap:y}}})}})),_.w("div",{class:"ytFeedbackFormViewModelInputBox"},_.w(Iw,{text:function(){var e;
return(e=_.C(f(),CaM))==null?void 0:e.detail},
placeholder:function(){var e;return((e=Q())==null?void 0:e.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var e=Q();if(e&&e.maxChars)return{maxChars:e.maxChars,errorMessage:e.maxCharsExceededErrorMessage||""}},
onInput:v})),_.w("div",{class:"ytFeedbackFormViewModelFooterText"},_.w(_.nh,{text:function(){return E().footerText}})))},"mf");
vmR.idomCompat=!0;_.Yz(vmR,"yt-feedback-form-view-model",{props:{data:_.Kt}});var EmC=_.qu(function(v){var E=v.data;var n=function(){return E().flowStateKey||""},f=_.Bi(KlR,n),x=function(){return _.C(f(),TH)},y=function(){if(_.Z("enable_gff_accessibility_fix")){var Q=!0,e;
if((e=x())==null?0:e.navigationEnabled){var F;_.lj((F=x())==null?void 0:F.navigationCommand);Q=!1}e=Object.assign({},f(),{abuseReportFlowState:Object.assign({},x(),{isReportFormDirty:Q})});_.Mu(_.n7("flowStateEntity",n(),e))}else _.lj((Q=x())==null?void 0:Q.navigationCommand)};
return _.w("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.w("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.w(_.mI,{data:function(){return E().cancelButton}},{buttonViewModel:function(Q){return _.w(_.C7,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}}),_.w(_.mI,{data:function(){var Q;
if(E().navButton){var e=Object;var F=e.assign,b=_.C(E().navButton,_.wQ),l=((Q=x())==null?0:Q.navigationEnabled)||_.Z("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",r,a;Q=_.C((r=x())==null?void 0:r.navigationCommand,_.eg);r=(a=_.C(Q,_.Us))==null?void 0:a.url;e={buttonViewModel:F.call(e,{},b,{state:l,iconName:r?"OPEN_IN_NEW":""})}}else e=void 0;return e}},{buttonViewModel:function(Q){return _.w(_.C7,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:y})}})))},"nf");
EmC.idomCompat=!0;_.Yz(EmC,"yt-report-form-bottom-bar-view-model",{props:{data:_.Kt}});var nmd=_.qu(function(v){var E=v.nextStep;return _.w("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.w("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.w(_.B8,{icon:function(){return E().iconName||""}})),_.w("div",null,_.w(_.nh,{text:function(){return E().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"of"),omK=_.qu(function(v){var E=v.data;
var n,f=(n=_.P().resolve(_.jp(_.aj)))==null?void 0:n(),x=_.Bi(_.zk,function(){return E().flowStateKey||""});
return _.w("yt-report-form-confirmation-page-view-model",{class:function(){var y;return((y=_.C(x(),TH))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.w("div",{class:function(){var y;
return((y=_.C(x(),TH))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.w(_.UZ,{data:function(){return f&&E().imageDark?E().imageDark:E().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return E().confirmationHeader}),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.w(_.nh,{text:function(){return E().confirmationText}})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.w(_.nh,{text:function(){return E().lawEnforcementText}})),
_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return E().whatToExpectHeader}),_.w(_.x6,{cond:function(){return E().nextSteps},
then:function(y){return _.w("div",null,_.w(_.cG,{each:y},function(Q){return _.w(nmd,{nextStep:Q})}))}}),_.w(_.x6,{cond:function(){return E().legalReportText},
then:function(y){return _.w("div",null,_.w(_.nh,{text:y,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pf");
omK.idomCompat=!0;_.Yz(omK,"yt-report-form-confirmation-page-view-model",{props:{data:_.Kt}});var fup=_.qu(function(v){var E=v.data;var n=function(){var y;return((y=_.C(E().inputBox,Max))==null?void 0:y.maxChars)||500},f=function(){return E().flowStateKey||""},x=_.Bi(_.zk,f);
v=_.me(function(y){y=Object.assign({},x(),{flowFormState:{isValid:y.length<=n()},abuseReportFlowState:{userComments:y,navigationEnabled:!(y.length>n()),isReportFormDirty:!0}});_.Zj().dispatch(_.sI("flowStateEntity",f(),y))},150);
_.l5(function(){var y=Object.assign({},x(),{flowFormState:{isValid:!0}});_.Zj().dispatch(_.sI("flowStateEntity",f(),y))});
return _.w("yt-report-form-details-page-view-model",{class:function(){var y;return((y=_.C(x(),TH))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.w("h1",{class:function(){var y;
return((y=_.C(x(),TH))==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return E().detailsPageHeader}),_.w("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.w(_.nh,{text:function(){return E().bodyText}})),_.w("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.w(Iw,{label:function(){var y;
return((y=_.C(E().inputBox,Max))==null?void 0:y.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var y;return{errorMessage:((y=_.C(E().inputBox,Max))==null?void 0:y.maxCharsExceededErrorMessage)||"",maxChars:n()}},
onInput:v})))},"qf");
fup.idomCompat=!0;_.Yz(fup,"yt-report-form-details-page-view-model",{props:{data:_.Kt}});var xpx=_.qu(function(v){var E=v.data;var n=v.selectedKey;var f=v.onSelected;var x=v.groupName;var y=function(){return E().text},Q=function(){return E().attributedText},e=function(){return E().subtext},F=function(){return E().attributedSubtext},b=_.w("div",{class:"ytRadioButtonItemViewModelLabel"},_.w(_.x6,{cond:y,
then:function(){return _.w("div",null,y)}}),_.w(_.x6,{cond:Q,
then:function(){return _.w(_.nh,{text:Q})}}),_.w(_.x6,{cond:e,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},e)}}),_.w(_.x6,{cond:F,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},_.w(_.nh,{text:F}))}})),l=function(){if(Q()){var a;
return(a=Q())==null?void 0:a.content}return y()},r=function(){if(F()){var a;
return(a=F())==null?void 0:a.content}return e()};
v={};return _.w("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.w(_.e3,{name:x,checked:function(){return!(n==null||!n()||E().key!==(n==null?void 0:n()))},
onChange:function(a){f==null||f(a.target,E(),x==null?void 0:x())},
labelRenderable:function(){return b},
ariaLabel:function(){return r()?l()+", "+r():l()},
className:_.W8((v.ytRadioButtonItemViewModelSubTitle=function(){return!!E().subtext},v))}))},"rf");_.cOx=_.qu(function(v){var E=v.data;var n=v.onSelected;var f=v.selectedKey;var x=v.groupName;return _.w("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.w("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.w(_.mI,{data:function(){return E().radioButtons}},{radioButtonItemViewModel:function(y){var Q=y.data;
return _.w(xpx,{data:Q,onSelected:n,selectedKey:f,groupName:function(){var e;return(e=x==null?void 0:x())!=null?e:Q().key}})}})))},"sf");var yOb=_.qu(function(v){var E=v.data;var n=_.Y$(),f=function(){return E().flowStateKey||""},x=_.Bi(_.zk,f),y=function(){return _.C(x(),TH)};
_.Xp(function(){var Q,e;if(((Q=y())==null?0:Q.isReportFormDirty)&&((e=y())==null||!e.navigationEnabled)&&_.Z("enable_gff_accessibility_fix")){var F;if(((F=y())==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var b;(b=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||b.scrollIntoView()}else{var l;(l=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||l.scrollIntoView()}}});
return _.w("yt-report-form-reason-select-page-view-model",{class:function(){var Q;return((Q=y())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.w("h1",{class:function(){var Q;
return((Q=y())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return E().pageHeader}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.w(_.nh,{text:function(){return E().bodyText}})),_.w("div",{class:function(){var Q;
return((Q=y())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.w(_.x6,{cond:function(){var Q,e;
return((Q=y())==null?void 0:Q.isReportFormDirty)&&!((e=y())==null?0:e.navigationEnabled)&&_.Z("enable_gff_accessibility_fix")},
then:function(){return _.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:n},_.w(_.B8,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return E().emptyReasonSelectErrorMessage}))}}),_.w(_.cOx,{data:function(){return _.C(E().radioButtonGroup,_.YBP)},
onSelected:function(Q,e){Q=Object.assign({},x(),{abuseReportFlowState:Object.assign({},y(),{reasonKey:e.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:e.command})});_.Mu(_.n7("flowStateEntity",f(),Q))},
selectedKey:function(){var Q;return(Q=y())==null?void 0:Q.reasonKey},
groupName:"report-form-reason-select-page"})))},"tf");
yOb.idomCompat=!0;_.Yz(yOb,"yt-report-form-reason-select-page-view-model",{props:{data:_.Kt}});var pA0=_.qu(function(v){var E=v.data;var n,f=(n=_.P().resolve(_.jp(_.aj)))==null?void 0:n();return _.w("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.w(_.UZ,{data:function(){return f&&E().imageDark?E().imageDark:E().image},
alt:""})),_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.w("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return E().header}),_.w(_.nh,{text:function(){return E().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"uf");
pA0.idomCompat=!0;_.Yz(pA0,"yt-report-form-sign-in-page-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=function(){var b;return(b=E().textInputPlaceholder)==null?void 0:b.content},f=function(b){b=b.target.value.trim();
var l=E().onUpdateText;l&&_.lj(l,{form:{userQuery:b}});E().userQuery=b},x=_.me(function(b){f(b)},150),y=_.ij(function(b){x(b);
return!1}),Q=_.ij(function(b){b.key==="Enter"&&(f(b),(b=E().onNextStepCommand)&&_.lj(b,{}));
return!1}),e=_.Ig(),F=function(){if(_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")){var b,l,r;
(r=(l=(b=e.value)==null?void 0:b.closest("ytd-flow-step-renderer"))==null?void 0:l.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||r.click()}};
return _.w("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:e},_.w("div",{class:"ytwTalkToRecsTopCornerButton"},_.w(_.mI,{data:function(){return E().topCornerButton}},{buttonViewModel:_.C7})),_.w("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.w("div",{class:"ytwTalkToRecsTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytwTalkToRecsSubtitle"},_.w(_.nh,{text:function(){return E().subtitle}})),_.w("div",{class:"ytwTalkToRecsChipsShelf"},_.w(_.mI,{data:function(){return E().answersShelf}},
{chipsShelfViewModel:function(b){return _.w(_.x51,{data:b.data,
callback:F})}})),_.w(_.x6,{cond:function(){return E().showOpenTextInput&&!_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.w("div",{class:"ytwTalkToRecsUserInputBox"},_.w("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:n,value:function(){return E().userQuery},
"on:input":y,"on:keyup":Q}))}})))},"vf"),"yt-talk-to-recs-view-model",{props:{data:_.Kt}});var YVU={sources:[{clientResource:{imageName:"CHECK"}}]};_.QPU=_.qu(function(v){var E=_.Ig();v=_.Ue(v,{error:void 0});var n=v.data,f=v.error,x=v.onSelected;v=_.p(_.Rj(function(){return VCp(n())}));
var y=v.next().value,Q=v.next().value;NC0(n,function(r){Q(r);var a,M,U=A7C((a=n().options)==null?void 0:(M=a[r])==null?void 0:M.value,n().type);x==null||x(U);E.value.focus()});
v=_.ij(function(){if(!n().disabled){var r=n(),a=y(),M=E.value;r.options&&(r=htR(r.options,a,r.label),_.P().resolve(_.eL).openSheet({viewModel:r},M))}});
var e=_.WKQ(),F=function(){return!!f()},b=function(){return!!n().disabled},l={};
l=_.W8("ytDropdownViewModelDropdownContainer",(l.ytDropdownViewModelDropdownContainerErrorBorder=F,l.ytDropdownViewModelDropdownContainerDisabled=b,l));return _.w("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.w("div",{class:l,"on:click":v,el:E,role:"combobox",tabindex:0,"on:keydown":e,"aria-invalid":F,"aria-disabled":b,"aria-describedby":function(){return F()?"dropdown-view-model-error":void 0}},_.w("div",{class:"ytDropdownViewModelText"},DEC(n,F,y),HTb(n,y)),_.w("div",{class:"ytDropdownViewModelChevronDown"},
_.w(_.B8,{icon:"CHEVRON_DOWN"}))),gEx(n,f))},"wf");_.Yz(_.qu(function(v){var E=v.data;var n=function(x){var y=jcR(E());y.videoMetadata||(y.videoMetadata={});y.videoMetadata.sponsorshipsMetadata||(y.videoMetadata.sponsorshipsMetadata={});y.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(x)},f=function(x){var y=jcR(E());
y.scheduledRedirectMetadata||(y.scheduledRedirectMetadata={});y.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(x)};
return _.w("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.w("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.w("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.w(_.nh,{text:function(){return E().title}}),_.w(_.B8,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.w(_.nh,{text:function(){return E().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.w(_.mI,{data:function(){return E().tierChoices}},{dropdownViewModel:function(x){return _.w("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.w(_.QPU,{data:x.data,
onSelected:n}))}}),_.w(_.mI,{data:function(){return E().startTimeChoices}},{dropdownViewModel:function(x){return _.w("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.w(_.QPU,{data:x.data,
onSelected:f}))}}),_.w(_.nh,{text:function(){return E().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.w("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.w(_.mI,{data:function(){return E().scheduleButton}},{panelFooterViewModel:_.df})))},"xf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;v=v.className===void 0?"":v.className;var n=_.Bi(KlR,function(){return E().flowStateEntityKey||""}),f={};
f=_.W8("ytFlowBottomBarViewModelFlowBottomBarButtons",(f.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},f));
var x={},y=_.W8("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",f,(x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},x));
x={};var Q=_.W8("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",f,(x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},x));
f={};f=_.W8("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
f));
return _.w("yt-flow-bottom-bar-view-model",{class:_.W8("ytFlowBottomBarViewModelHost",v)},_.w(_.x6,{cond:function(){var e;return(e=E())==null?void 0:e.textSection},
then:function(e){return _.w("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.w(_.nh,{text:e}))}}),_.w("div",{class:f},_.w(_.mI,{data:function(){return E().secondaryButton}},{buttonViewModel:function(e){return _.w(_.C7,{data:e.data,
className:Q})}}),_.w(_.mI,{data:function(){return E().primaryButton}},{buttonViewModel:function(e){return _.w(_.C7,{data:e.data,
className:y,buttonOverrides:function(){var F;return{disabled:!((F=n())==null||!F.primaryButtonDisabled)}}})}})))},"yf"),"yt-flow-bottom-bar-view-model",{props:{data:_.Kt,
className:_.Ij}});var XAK="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Yd=function(){var v=_.g.apply(this,arguments)||this;v.enableScrollingFix=!0;v.bottomBar=!1;v.hideBottomBar=!1;v.fitContent=!1;return v};
_.S(Yd,_.g);_.c=Yd.prototype;_.c.ready=function(){_.Z("enable_pdp_icon_prefetch")&&_.Zp0(_.P().resolve(_.Rt),0,XAK)};
_.c.focus=function(v){this.topBar?_.dh(this.topBar,v):this.paperDialog.focus(v)};
_.c.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16719_scroller&&(this.JSC$16719_scroller.dialogElement=this.paperDialog,this.JSC$16719_scroller.attached&&typeof this.JSC$16719_scroller.attached==="function"&&this.JSC$16719_scroller.attached())};
_.c.onDataChanged=function(){var v;this.fitContent=!((v=this.data)==null||!v.fitContent);var E;this.bottomBar=!((E=this.data)==null||!E.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.c.onProgressChanged=function(){var v,E,n=((E=(v=this.data)==null?void 0:v.progress)!=null?E:0)*100;this.progressElement.style.width=n+"%"};
_.c.isProgressHidden=function(){var v;return!((v=this.data)==null?0:v.progress)};
_.c.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(v){return _.Z("enable_wiz_next_lp2_msof")&&v&&!v.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.hK.Object.defineProperties(Yd.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var v;return _.Z("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.C((v=this.data)==null?void 0:v.content,KAP)}}});
Yd.prototype.onProgressChanged=Yd.prototype.onProgressChanged;Yd.prototype.onDataChanged=Yd.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Yd.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Yd.prototype,"enableScrollingFix",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Yd.prototype,"bottomBar",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Yd.prototype,"hideBottomBar",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yd.prototype,"containsExploreHub",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Yd.prototype,"fitContent",void 0);_.k([_.Wp("#progress"),_.W("design:type",HTMLElement)],Yd.prototype,"progressElement",void 0);
_.k([_.Wp("#scroller"),_.W("design:type",Object)],Yd.prototype,"JSC$16719_scroller",void 0);_.k([_.Wp("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],Yd.prototype,"topBar",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yd.prototype,"onDataChanged",null);_.k([_.On("data.progress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yd.prototype,"onProgressChanged",null);
Yd=_.k([_.N({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Yd);
_.u(Yd,"ytd-flow-step-renderer",function(){if(RCM!==void 0)return RCM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RCM=v},{mode:1});var e5O=function(v){this.resolveCommand=v;this.steps={}},Fx1=function(v,E){E=_.p(E||[]);
for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=Object.values(n)[0],x=void 0;if((x=f)==null?0:x.stepId)v.steps[f.stepId]=n}},bE1=function(v,E){var n,f,x,y,Q;
return _.X(function(e){if((n=v.state)==null||!n.currentStepId)return e.return(void 0);f=mp6(v);if(!f)return e.return(wAP(v));if(x=_.C(f,_.Jvb)){var F;((F=x.screenLoggingData)==null?0:F.screenVeType)&&_.Rs(_.Tl(),x.screenLoggingData.screenVeType);((y=x)==null?0:y.onStepStartCommand)&&v.resolveCommand((Q=x)==null?void 0:Q.onStepStartCommand,{})}if(x&&E){F=x;var b,l,r,a;((b=E.flowLoggingData)==null?0:b.eventNamespace)&&((l=F.flowEventData)==null?0:l.eventType)&&((r=F.flowEventData)==null?0:r.eventMetadata)&&
((a=E.flowLoggingData)==null?0:a.flowType)&&(b=_.$t(E.flowLoggingData.eventNamespace,F.flowEventData.eventType,F.flowEventData.eventMetadata),_.LC(_.Ge(),b,E.flowLoggingData.flowType));E.steps&&!E.steps.includes(f)&&E.steps.push(f)}return e.return(f)})};
e5O.prototype.back=function(){var v;(v=this.state)!=null&&v.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
e5O.prototype.handleUpdateFlowCommand=function(v){v.steps&&Fx1(this,v.steps);v.entityUpdateCommand&&this.resolveCommand(v.entityUpdateCommand,{});v.flowContinuationCommand&&(v=v.flowContinuationCommand)&&(this.getFlowContinuationCommand=v);this.awaitFlowContinuation&&(this.awaitFlowContinuation(mp6(this)),this.awaitFlowContinuation=void 0)};
e5O.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var wAP=function(v){return _.X(function(E){return v.getFlowContinuationCommand?E.return(new Promise(function(n){v.awaitFlowContinuation=n;v.getFlowContinuationCommand&&v.resolveCommand(v.getFlowContinuationCommand,{flow_state:v.state})})):E.return(Promise.resolve(void 0))})},mp6=function(v){var E;
if((E=v.state)!=null&&E.currentStepId)return v.steps[v.state.currentStepId]};var hp=function(){var v=_.g.apply(this,arguments)||this;v.flowState=new e5O(function(E,n){n=n===void 0?{}:n;_.ki.instance.resolveCommand(E,{form:{form:n,element:v.hostElement}})});
v.initialState=!0;v.isLoading=!1;v.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 v};
_.S(hp,_.g);_.c=hp.prototype;_.c.onPopupClosed=function(v){v&&this.hostElement!==v.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.c.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"}}}};
_.c.focus=function(v){var E=this;_.bz(function(){var n=_.K(E.hostElement).querySelector("ytd-flow-step-renderer");n.topBar?n.focus(v):E.topBar&&_.dh(E.topBar,v)},1)};
_.c.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.c.computeTopBarHidden=function(v){var E;return!((E=_.C(v,_.Jvb))==null||!E.topBarOverride)};
_.c.dataChanged=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1){((E=v.data)==null?0:E.steps)&&Fx1(v.flowState,v.data.steps);if((n=v.data)==null?0:n.flowContinuationCommand){var x=v.flowState,y=v.data.flowContinuationCommand;y&&(x.getFlowContinuationCommand=y)}return _.m(f,bE1(v.flowState,v.data),2)}v.currentFlowStep=f.yieldResult;_.yQ(f)})};
_.c.flowChanged=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1){if(!v.flow)return n.return();v.flowState.state=v.flow;v.isLoading=!0;return _.m(n,bE1(v.flowState,v.data),2)}E=n.yieldResult;if(!E||v.flow.isLoading)return n.return();v.currentFlowStep=E;v.initialState=!1;v.isLoading=!1;v.autofocusAndRefit();_.yQ(n)})};
_.c.autofocusAndRefit=function(){var v=this,E=_.P().resolve(_.jp(_.cT)),n=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),f=document.querySelector("yt-report-form-confirmation-page-view-model"),x=document.querySelector("yt-report-form-details-page-view-model"),y=document.querySelector("yt-report-form-reason-select-page-view-model"),Q=document.querySelector("yt-contributor-zero-state-view-model"),
e=document.querySelector("yt-structured-context-note-view-model"),F=document.querySelector("yt-note-view-model");(!n&&E&&E.isKeyBoardInUse()||f||!n&&x||!n&&y||Q||e||F)&&_.IY(this.hostElement);_.IS(this,function(){_.jK(v.hostElement,"yt-refit")})};
_.c.handleUpdateFlowCommand=function(v){this.data&&(v=_.C(v,qBR),v.targetId===this.data.targetId&&(v.flowContinuationCommand&&(this.data.flowContinuationCommand=v.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(v),this.autofocusAndRefit()))};
_.c.handleFlowNextStepCommand=function(v){this.data&&this.flow&&this.flow.key&&(v=_.C(v,SBp),v.targetId===this.data.targetId&&(v=v.stepId||"",this.ytdReduxBehavior.dispatch(_.sI("flowStateEntity",this.flow.key,{currentStepId:v,stepIdStack:(this.flow.stepIdStack||[]).concat(v)}))))};
_.c.handleFlowPrevStepCommand=function(v){if(this.data&&this.flow&&this.flow.key&&(v=_.C(v,UB3),v.targetId===this.data.targetId)){var E=[].concat(_.s8(this.flow.stepIdStack||[]));E.length>1?(E.pop(),this.ytdReduxBehavior.dispatch(_.sI("flowStateEntity",this.flow.key,{currentStepId:E[E.length-1],stepIdStack:E}))):v.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(v.onFirstStepCommand)}};
_.c.handleYpcCancelRecurrenceCommand=function(v){if(this.data&&this.flow&&this.flow.key&&(v=_.C(v,hCC),v.targetId===this.data.targetId&&v.endpointCommand)){var E=_.C(this.flow,Av6);E&&_.C(v.endpointCommand,_.MV1)&&(_.C(v.endpointCommand,_.MV1).feedbackData=E.surveyFeedback);this.ytComponentBehavior.resolveCommand(v.endpointCommand)}};
_.c.handlePartialUpdateFlowStateEntity=function(v){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.sI("flowStateEntity",this.flow.key,v,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
hp.prototype.flowChanged=hp.prototype.flowChanged;hp.prototype.dataChanged=hp.prototype.dataChanged;hp.prototype.onPopupClosed=hp.prototype.onPopupClosed;_.k([_.h(_.PL),_.W("design:type",Object)],hp.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],hp.prototype,"initialState",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],hp.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Object)],hp.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],hp.prototype,"currentFlowStep",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hp.prototype,"onPopupClosed",null);_.k([_.H({selectorArgs:["data.flowStateEntityKey"],selector:KlR}),_.W("design:type",Object)],hp.prototype,"flow",void 0);_.k([_.Wp("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],hp.prototype,"topBar",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],hp.prototype,"dataChanged",null);_.k([_.Tw("flow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],hp.prototype,"flowChanged",null);hp=_.k([_.N({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],hp);
_.lu1=_.Dj()(hp,"ytd-flow-root-renderer",function(){if(zCx!==void 0)return zCx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return zCx=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var sPp;var LJ=null;_.Yz(_.qu(function(v){return _.w("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.w("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.w(_.nh,{text:function(){return v.data().text}}),_.w("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"zf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Kt}});var rOd=_.qu(function(v){var E=v.playerControlsProps;var n=v.isShortsPage;return _.w("yt-bigboard",null,_.w(_.x6,{cond:function(){return E().isDragging},
then:function(){return _.w("div",{class:"ytBigboardStoryboardHost"},_.w(_.X5d,{progressBarProps:E,isShortsPage:n}))}}))},"Af");
rOd.idomCompat=!0;_.Ap={ACCOUNT_LABEL:GH("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:GH("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:GH("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:GH("AD_BADGE_HINT"),AD_BADGE_TEXT:GH("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:GH("ALL_CHANNELS_LABEL"),AMBIENT_MODE:GH("AMBIENT_MODE"),AMBIENT_MODE_OFF:GH("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:GH("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:GH("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:GH("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:GH("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:GH("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:GH("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:GH("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:GH("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:GH("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:GH("AUTOPLAY_UP_NEXT_IN"),BACK:GH("BACK"),CANCEL:GH("CANCEL"),CHANNEL_SWITCHER_LABEL:GH("CHANNEL_SWITCHER_LABEL"),CLOSE:GH("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:GH("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:GH("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:GH("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:GH("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:GH("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:GH("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:GH("COMMENT_MODAL_CONTENT"),CONFIRM_OK:GH("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:GH("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:GH("COPIED_TO_CLIPBOARD"),COPY:GH("COPY"),COPY_DEBUG_INFO:GH("COPY_DEBUG_INFO"),COPY_EMBED_CODE:GH("COPY_EMBED_CODE"),COPY_LINK_LABEL:GH("COPY_LINK_LABEL"),
COPY_VIDEO_URL:GH("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:GH("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:GH("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:GH("DELETE_FROM_DOWNLOADS"),DIALOG:GH("DIALOG"),DONE:GH("DONE"),DOWNLOAD:GH("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:GH("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:GH("FLAG_CONFIRM"),FLAG_CONTENT:GH("FLAG_CONTENT"),FLAG_LABEL:GH("FLAG_LABEL"),FLAG_TITLE:GH("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:GH("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:GH("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:GH("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:GH("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:GH("HIDE_SEARCH_FILTERS_LABEL"),HOME:GH("HOME","Home"),INVALID_RESPONSE_RECEIVED:GH("INVALID_RESPONSE_RECEIVED"),LIBRARY:GH("LIBRARY","Library"),LISTENING:GH("LISTENING"),LOADING:GH("LOADING"),LONG_PRESS_MIC_TO_SPEAK:GH("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:GH("LOOP"),MENU_DESKTOP:GH("MENU_DESKTOP"),MENU_EXIT:GH("MENU_EXIT"),
MENU_FEEDBACK:GH("MENU_FEEDBACK"),MENU_HELP:GH("MENU_HELP"),MENU_IMPRESSUM:GH("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:GH("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:GH("MENU_SETTINGS"),MENU_SIGN_IN:GH("MENU_SIGN_IN"),MENU_TITLE:GH("MENU_TITLE"),MENU_YOUR_DATA:GH("MENU_YOUR_DATA"),MORE_INFO:GH("MORE_INFO"),MORE_OPTIONS:GH("MORE_OPTIONS"),MUTE_VOLUME:GH("MUTE_VOLUME"),NEW_PLAYLIST:GH("NEW_PLAYLIST"),NEXT_VIDEO:GH("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:GH("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:GH("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:GH("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:GH("NOT_FOUND_TITLE"),NO_DOWNLOADS:GH("NO_DOWNLOADS"),NO_MIC_INPUT:GH("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:GH("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:GH("OOPS_MESSAGE"),OPEN_APP:GH("OPEN_APP"),OPEN_YOUTUBE:GH("OPEN_YOUTUBE"),PAUSE:GH("PAUSE"),PLAY:GH("PLAY"),PLAYER_CAPTION:GH("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:GH("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:GH("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:GH("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:GH("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:GH("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:GH("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:GH("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:GH("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:GH("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:GH("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:GH("PLAYER_MINIMIZE"),PLAYER_NEXT:GH("PLAYER_NEXT"),PLAYER_PAUSE:GH("PLAYER_PAUSE"),PLAYER_PLAY:GH("PLAYER_PLAY"),
PLAYER_PREVIOUS:GH("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:GH("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:GH("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:GH("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:GH("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:GH("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:GH("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:GH("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:GH("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:GH("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:GH("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:GH("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:GH("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:GH("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:GH("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:GH("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:GH("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:GH("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:GH("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:GH("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:GH("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:GH("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:GH("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:GH("PLAY_ALL"),PLEASE_FIX_ERRORS:GH("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:GH("PREVIOUS_VIDEO"),PRIVACY_POLICY:GH("PRIVACY_POLICY"),RELOAD:GH("RELOAD"),REQUIRED_LABEL:GH("REQUIRED_LABEL"),SAVE_PLAYLIST:GH("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:GH("SCRUB_SLIDE_USER_EDU"),SEARCH:GH("SEARCH","Search"),SEARCH_APPEND_LABEL:GH("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:GH("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:GH("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:GH("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:GH("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:GH("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:GH("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:GH("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:GH("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:GH("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:GH("SEEK_SLIDER"),SETTINGS_LABEL:GH("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:GH("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:GH("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:GH("SHOW_LESS"),SHOW_MORE:GH("SHOW_MORE"),SHOW_PLAYER_CONTROLS:GH("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:GH("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:GH("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:GH("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:GH("SIGN_IN_ON_WEB"),STABLE_VOLUME:GH("STABLE_VOLUME"),
STABLE_VOLUME_OFF:GH("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:GH("STABLE_VOLUME_ON"),STATS_FOR_NERDS:GH("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:GH("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:GH("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:GH("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:GH("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:GH("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:GH("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:GH("TIMESTAMP_SECONDS"),TOGGLE_OFF:GH("TOGGLE_OFF"),
TOGGLE_ON:GH("TOGGLE_ON"),TRENDING:GH("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:GH("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:GH("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:GH("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:GH("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:GH("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:GH("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:GH("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:GH("VIDEO_LINK_LABEL")};var Pqd=_.qu(function(v){var E=v.playerApi;v=_.Ig(function(x){ji(x,36843)});
var n=GH("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),f=_.ij(function(){O9(36843);E&&E().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.w("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.w("button",{el:v,class:"ytPlayerControlsJumpForwardButtonButton",title:n,"aria-label":n,"on:click":f},_.w("span",null,_.w(_.B8,{icon:"FAST_FORWARD"}))))},"Bf");var auM=_.qu(function(v){var E=v.appApi;v=_.Ig(function(x){ji(x,62946)});
var n=GH("OPEN_IN_MINIPLAYER"),f=_.ij(function(){O9(62946);var x,y;(y=(x=E()).openInMiniplayer)==null||y.call(x);return!1});
return _.w("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.w("button",{el:v,class:"ytMiniplayerButtonButton",title:n,"aria-label":n,"on:click":f},_.w(_.B8,{icon:"PICTURE_IN_PICTURE",active:!1})))},"Cf");var ZE1=_.qu(function(v){var E=v.playerApi;v=_.Ig(function(Q){ji(Q,142812)});
var n=_.p(_.t7(!1,void 0,"I3VCyb")),f=n.next().value,x=n.next().value;n=function(){return GH("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(f()?1:2)})};
var y=_.ij(function(){O9(142812);if(E){var Q=E(),e=f();Q.setPlaybackRate(e?1:2);x(!f())}return!1});
return _.w("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.w("button",{el:v,class:"ytPlaybackSpeedButtonButton",title:n,"aria-label":n,"on:click":y},_.w("span",null,_.w(_.B8,{icon:function(){return f()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Df");var Cqd=_.qu(function(v){var E=v.title;var n=v.ariaLabel;var f=v.icon;var x=v.command;var y=v.veType;v=_.Ig(function(e){y&&ji(e,y())});
var Q=_.ij(function(){y&&O9(y());x&&_.P().resolve(_.OO).resolveCommand(x())});
return _.w("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.w("button",{el:v,class:"ytdThumbnailOverlayButtonButton",title:E,"aria-label":n,"on:click":Q},_.w(_.B8,{icon:f})))},"Ef");var M5P=["en-CA","en","es-MX","fr-CA"];var SHP=_.qu(function(v){var E=_.Ue(v,{isOverlay:!1}),n=E.captionIconType,f=E.onClick;v=E.ariaLabel;var x=E.ariaPressed,y=E.isOverlay;E=_.Ig(function(F){ji(F,127299)});
var Q=_.ij(function(F){O9(127299);f==null||f(F);return!1}),e={};
return _.w("ytm-closed-captioning-button",{class:_.W8("ytmClosedCaptioningButtonHost",(e.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return n()===-1&&y()},e.ytmClosedCaptioningButtonIconDisabled=function(){return n()===-1&&!y()},e))},_.w("button",{el:E,
class:"ytmClosedCaptioningButtonButton",title:v,"aria-label":v,"aria-pressed":x,"on:click":Q},_.w(_.B8,{icon:function(){var F="";var b=_.Ef().get("hl");b=!b||M5P.includes(b)?"CLOSED_CAPTION":"SUBTITLES";var l=n();switch(l){case -1:case 0:F=b;break;case 1:F=b+"_FILLED";break;default:_.p0(l)}return F}})))},"Ff");
SHP.idomCompat={callbacks:{onClick:!0}};var uP="";var Upb=_.qu(function(v){var E=v.playerControlsProps,n=v.onClickFn;v=_.o0(function(){var y=E(),Q=-1;y.captionsAvailable&&(Q=y.captionsEnabled?1:0);return Q},void 0,"WecR8e");
var f=_.o0(function(){var y=E();return y.captionsAvailable?_.tQ(y.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.tQ("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),x=_.o0(function(){var y=E();
y=y.captionsAvailable?y.captionsEnabled:void 0;return y},void 0,"Q17ly");
return _.w("yt-closed-captions-toggle-button",null,_.w(SHP,{captionIconType:v,ariaLabel:f,ariaPressed:x,onClick:function(y){var Q=E();if(Q.captionsAvailable){var e=Q.playerApi;if(e){var F=Q.playerApi;if(F){var b=uP;if(b){F=F.getOption("captions","track");var l;uP=(l=F?F.displayName:null)!=null?l:b}else F.getOptions("captions")?(b=YhP(F),uP=b.length?(l=hpU(b))?l.displayName:b[0].displayName:""):uP=""}AJR(e);_.Z("mweb_disable_set_state_captions_killswitch")&&Q.setState({captionsEnabled:!Q.captionsEnabled})}}var r,
a;(a=(r=Q.appApi).showCaptionsToggleToast)==null||a.call(r,Q);n==null||n(y)},
isOverlay:!0}))},"Gf");var qH1=_.qu(function(v){var E=v.data;return _.w("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.w(_.jS,{data:function(){return{type:16,text:_.O6E(E().label)}}}))},"Hf");var JOx=_.qu(function(v){var E=_.W8("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return v.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return v.size()==="small"?v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.w("animated-seek-arrows",{class:_.W8("ytPlayerControlsAnimatedSeekArrowsHost")},_.w("span",{class:E}),_.w("span",{class:E}),_.w("span",{class:E}))},"If");
JOx.idomCompat=!0;var KxM=_.qu(function(){var v=_.tQ("PLAYER_SECONDS",{seconds_placeholder:"30"}),E=_.p(_.t7(!1,void 0,"Yj8msb")),n=E.next().value,f=E.next().value,x=_.p(_.t7(!1,void 0,"r9Z50e"));E=x.next().value;var y=x.next().value;x={};var Q=_.W8("jumpForwardOverlayOverlay",(x.jumpForwardOverlayOverlayHidden=E,x));_.l5(function(){var e=null,F=null,b=function(){e!==null&&_.Ce().cancelJob(e);F!==null&&_.Ce().cancelJob(F);y(!0);f(!0);_.H8(_.Ce(),function(){y(!1)});
e=_.H8(_.Ce(),function(){y(!0);F=_.H8(_.Ce(),function(){f(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",b);_.Fp(function(){window.removeEventListener("jump-forward-clicked",b)})});
return _.w("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.w(_.x6,{cond:n,then:function(){return _.w("div",{class:Q},_.w(JOx,{direction:1,size:"large"}),_.w("div",null,v))}}))},"Jf");var v7M=_.Ap.MUTE_VOLUME,BC1=_.Ap.UNMUTE_VOLUME,dp6=_.qu(function(v){var E=v.muteIconType;var n=v.onClick;var f=v.useOutlineIcon;v=_.Ig(function(Q){ji(Q,28662)});
var x=function(){return E7O(E(),f==null?void 0:f()).ariaLabel},y=_.ij(function(Q){O9(28662);
n==null||n(Q);return!1});
return _.w("ytm-mute-button",{class:"ytmMuteButtonHost"},_.w("button",{el:v,class:"ytmMuteButtonButton",title:x,"aria-label":x,"on:click":y},_.w("span",null,_.w(_.B8,{icon:function(){return E7O(E(),f==null?void 0:f()).iconName}}))))},"Kf");var IuO=_.qu(function(v){var E=v.volumeProps;var n=v.onClickFn;var f=v.useOutlineIcon;return _.w("yt-mute-toggle-button",null,_.w(dp6,{muteIconType:function(){var x=E(),y=!_.Z("mweb_treat_zero_volume_as_muted_killswitch")&&x.volume===0;return x.volumeMuted||y?0:1},
onClick:function(x){var y=E().playerApi;y&&(y.isMuted()?y.unMute():y.mute(!1));n==null||n(x)},
useOutlineIcon:function(){return!(f==null||!f())}}))},"Lf");
IuO.idomCompat=!0;var YHP=_.qu(function(v){var E=v.data;var n=_.Ig();v=_.ij(function(){n.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.w("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:n,"on:animationend":v},_.w(_.Ed,{command:function(){return E().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.w(_.x6,{cond:function(){var f;return(f=E().icon)==null?void 0:f.iconType},
then:function(){return _.w("span",null,_.w(_.B8,{icon:function(){var f;return(f=E().icon)==null?void 0:f.iconType}}))}}),_.w("div",{class:"ytmPaidContentOverlayText"},_.w(_.nh,{text:function(){return E().text}})),_.w(_.x6,{cond:function(){return E().navigationEndpoint},
then:function(){return _.w(_.B8,{icon:"CHEVRON_RIGHT"})}})))},"Mf");
YHP.idomCompat=!0;var n7U=[].concat(_.s8([{register:function(v){var E=FAx(v),n;(n=v().playerApi)==null||n.addEventListener("onVolumeChange",E);return function(){}}},
{register:function(v){var E=mB3(v);v=v().playerApi;v==null||v.addEventListener("captionschanged",E);v==null||v.addEventListener("captionssettingschanged",E);v==null||v.addEventListener("onCaptionsTrackListChanged",E);return function(){}}},
{register:function(v){if(!_.Z("mweb_screenreader_accessible_player"))return function(){};
var E=wfp(v),n=document.querySelector("video");n==null||n.addEventListener("touchend",E);return function(){n==null||n.removeEventListener("touchend",E)}}},
{register:function(v){if(!_.Z("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var E=wfp(v),n=document.querySelector("video");n==null||n.addEventListener("focus",E);return function(){n==null||n.removeEventListener("focus",E)}}}]),[{register:function(v){var E=pfO(v),n;
(n=v().playerApi)==null||n.addEventListener("onStateChange",E);return function(){}}},
{register:function(v){var E=Q0U(v),n;(n=v().playerApi)==null||n.addEventListener("onPlaybackRateChange",E);return function(){}}},
{register:function(v){var E=XfU(v),n;(n=v().playerApi)==null||n.addEventListener("onVideoDataChange",E);return function(){}}},
{register:function(v){var E=eCM(v),n,f;(n=v())==null||(f=n.playerApi)==null||f.addEventListener("onVideoProgress",E);return function(){}}}]);var h56=_.qu(function(v){var E=v.data;var n=function(){return _.tQ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+E().playbackRate})};
return _.w(_.x6,{cond:function(){return E().playbackRate&&E().playbackRate!==1},
then:function(){return _.w("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.w("div",{class:"ytPlaybackRateOverlayOverlay"},_.w(JOx,{direction:1,size:"small"}),_.w("div",{class:"ytPlaybackRateOverlayLabel"},n)))}})},"Nf");var AOK=_.qu(function(v){var E=v.data;return _.w("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.w(_.x6,{cond:function(){var n,f=(n=E())==null?void 0:n.playerResponse,x;return f==null?void 0:(x=f.paidContentOverlay)==null?void 0:x.paidContentOverlayRenderer},
then:function(n){return _.w(YHP,{data:n})}}))},"Pf"),V5d=_.qu(function(v){var E=v.props;
var n=v.data;var f=v.options;var x=function(){var b,l,r,a;return(b=n())==null?void 0:(l=b.playerResponse)==null?void 0:(r=l.playerConfig)==null?void 0:(a=r.inlinePlaybackConfig)==null?void 0:a.showAudioControls},y=function(){var b,l;
if(x()&&((b=f())==null?void 0:(l=b.additionalButton)==null?void 0:l.button)!==void 0){var r,a,M;b=(r=n())==null?void 0:(a=r.playerApi)==null?void 0:(M=a.getSize())==null?void 0:M.height;if(!(b===void 0||b<184)){var U,d;return(U=f())==null?void 0:(d=U.additionalButton)==null?void 0:d.button}}},Q=function(){var b,l;
return(b=f())==null?void 0:(l=b.additionalButton)==null?void 0:l.thumbnailOverlayButtonRenderers},e=function(){var b,l;
return(b=f())==null?void 0:(l=b.additionalButton)==null?void 0:l.thumbnailOverlayButtonViewModels},F=function(){var b=[_.w(IuO,{volumeProps:E}),
_.w(Upb,{playerControlsProps:E})];y()===1&&b.push(_.w(Pqd,{playerApi:function(){return E().playerApi}}));
y()===2&&b.push(_.w(auM,{appApi:function(){return E().appApi}}));
y()===3&&b.push(_.w(ZE1,{playerApi:function(){return E().playerApi}}));
var l=Q();if(y()===4&&l){l=_.p(l);for(var r=l.next(),a={};!r.done;a={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$567:void 0},r=l.next()){r=r.value;a.tooltip$jscomp$2=r.tooltip;var M=void 0,U=void 0;a.ariaLabel$jscomp$21=((M=r.accessibility)==null?void 0:(U=M.accessibilityData)==null?void 0:U.label)||a.tooltip$jscomp$2;M=void 0;a.icon$jscomp$55=(M=r.icon)==null?void 0:M.iconType;a.command$jscomp$567=r.command;a.tooltip$jscomp$2&&a.ariaLabel$jscomp$21&&a.icon$jscomp$55&&
b.push(_.w(Cqd,{title:function(d){return function(){return d.tooltip$jscomp$2}}(a),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$21}}(a),
icon:function(d){return function(){return d.icon$jscomp$55}}(a),
command:function(d){return function(){return d.command$jscomp$567}}(a)}))}}l=e();
if(y()===4&&l)for(l=_.p(l),r=l.next(),a={};!r.done;a={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$56:void 0,command$jscomp$568:void 0},r=l.next())r=r.value,a.tooltip$jscomp$3=r.title,a.ariaLabel$jscomp$22=r.accessibilityText||a.tooltip$jscomp$3,a.icon$jscomp$56=r.iconName,a.command$jscomp$568=_.F$(r.onTap),a.tooltip$jscomp$3&&a.ariaLabel$jscomp$22&&a.icon$jscomp$56&&b.push(_.w(Cqd,{title:function(d){return function(){return d.tooltip$jscomp$3}}(a),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$22}}(a),
icon:function(d){return function(){return d.icon$jscomp$56}}(a),
command:function(d){return function(){return d.command$jscomp$568}}(a)}));
return b};
return _.w(_.x6,{cond:x,then:function(){return _.w("div",{class:"ytInlinePlayerControlsTopRightControls"},_.w(_.cG,{each:F},function(b){return _.w("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.w("div",{class:"ytInlinePlayerControlsButtonIcon"},b))}))}})},"Qf"),gmp=_.qu(function(v){var E=v.props;
var n=v.data;var f=v.options;v={};v=_.W8("ytInlinePlayerControlsBottomRightControls",(v.ytInlinePlayerControlsBottomRightControlsHidden=function(){var x;return lYd(n(),f())&&((x=f())==null?void 0:x.insetProgressBar)&&(E().isHovering||E().isDragging)},v));
return _.w("div",{class:v},_.w(Dp3,{data:n}),_.w(_.x6,{cond:function(){var x;return!((x=f())==null?0:x.hideTimeDisplay)},
then:function(){return _.w(HE6,{props:E})}}))},"Rf"),Dp3=_.qu(function(v){var E=v.data;
return _.w(_.mI,{data:function(){var n;return tCd((n=E())==null?void 0:n.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:qH1})},"Sf"),HE6=_.qu(function(v){var E=v.props;
return _.w(_.x6,{cond:function(){return E().isLive},
then:function(){return _.w(NdU,null)},
else:function(){return _.w(u70,{props:E})}})},"Tf"),u70=_.qu(function(v){var E=v.props;
return _.w("div",{class:_.W8("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Ap.PLAYER_TIME_ELAPSED+" "+_.qYX(E().playedTime)}},_.w(_.jS,{data:function(){return{type:16,
text:_.qYX(E().videoDuration-E().playedTime)}}}))},"Uf"),NdU=_.qu(function(){return _.w("div",{class:_.W8("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.w(_.jS,{data:{type:17,
text:_.Ap.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Vf"),jPO=_.qu(function(v){var E=v.props;
var n=v.data;var f=v.options;return _.w(_.ld3,{progressBarProps:E,config:function(){var x,y=_.C((x=n())==null?void 0:x.multiMarkersPlayerBar,_.iQw),Q;x=((Q=f())==null?0:Q.insetProgressBar)?2:1;var e;Q=(e=f())==null?void 0:e.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:x,chapterData:y,isInlinePlayback:!0,doSeekOnClick:Q,playheadDotBehavior:Q?1:0}}})},"Wf");_.Yz(_.qu(function(v){var E=v.data;var n=v.appApi;var f=v.options;var x=yvU(E,bpK(n));v={};n={};return _.w("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.w("div",{class:_.W8("ytInlinePlayerControlsDarkenedOverlay",(v.ytInlinePlayerControlsDarkenedOverlayShow=function(){return x().isHovering},v))}),_.w(KxM,null),_.w(h56,{data:x}),_.w(AOK,{data:E}),_.w(rOd,{playerControlsProps:x,
isShortsPage:!1}),_.w("div",{class:_.W8((n.ytInlinePlayerControlsControlsHidden=function(){return x().isDragging},n))},_.w(V5d,{props:x,
data:E,options:f}),_.w(gmp,{props:x,data:E,options:f})),_.w(_.x6,{cond:function(){return lYd(E(),f())},
then:function(){return _.w(jPO,{props:x,data:E,options:f})}}))},"Of"),"yt-inline-player-controls",{props:{data:_.Kt,
appApi:_.Ij,options:_.Kt}});var Vr=function(){var v=_.g.apply(this,arguments)||this;v.opts=null;v.playerControlsData=null;v.playerControlsAppApi={openInMiniplayer:function(){v.openInMiniplayer()}};
v.playerControlsOptions={};v.noAnimation=!1;v.playbackIntentTriggered=!1;v.positionData=null;v.hidden=!0;v.active=!1;v.playing=!1;v.videoPreviewDataIndex=0;v.JSC$16774_playerPromise=null;v.player=null;v.enableAudioControls=!1;v.hasBeenUnmuted=!1;v.captionsHaveBeenTurnedOff=!1;v.JSC$16774_playerEvents=new Map;v.videoPreviewFetchRequest=null;v.scheduledPreviewEndJobId=null;v.JSC$16774_preventProgressSaveTimer=null;v.watchEndpointStartTimeUpdaterInterval=null;v.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};v.windowOnBlurFn=function(){v.deactivate()};
return v};
_.S(Vr,_.g);_.c=Vr.prototype;
_.c.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.Z("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"}}}};
_.c.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16774_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16774_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16774_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16774_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.uo(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.uo(this,this.onScroll))};
_.c.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.uo(this,this.onScroll))};
_.c.onPageTypeChange=function(){this.deactivate()};
_.c.onWindowResized=function(){this.deactivate()};
_.c.onCaptionsChanged=function(v){v=!!v.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!v);this.setCaptionSize()};
_.c.setCaptionSize=function(){var v;if(this.active&&!this.captionsHaveBeenTurnedOff&&((v=this.player)==null?0:v.getCaptionWindowContainerId())){var E;(E=this.player)==null||E.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.c.currentPageAllowed=function(){return!this.isWatchPage};
_.c.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var v=this.positionData,E=v.initialTopPosition,n=v.initialHorizontalPosition;_.NQ(this.hostElement,{"--ytd-video-preview-translate-left":v.finalHorizontalPosition-n+"px","--ytd-video-preview-translate-top":v.finalTopPosition-E+"px","--ytd-video-preview-original-top-position":E+"px","--ytd-video-preview-original-horizontal-position":n+"px",
"--ytd-video-preview-initial-scale":"scale("+v.initialScale+")","--ytd-video-preview-width":v.videoPreviewWidth+"px","--ytd-video-preview-height":v.videoPreviewHeight+"px"});return!0};
_.c.handleOpenVideoPreviewAction=function(v){var E=this,n;return _.X(function(f){if(!E.currentPageAllowed())return f.return(0);E.opts=v;return(n=E.alignVideoPreviewForAnimation(v.thumbnail))?f.return(E.activate()):f.return(0)})};
_.c.onMouseLeave=function(v){this.shouldDeactivateOnMouseLeave(v)&&this.deactivate()};
_.c.onScroll=function(){var v,E;((v=this.opts)==null?0:v.isAutoplay)&&((E=this.opts)==null?0:E.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.c.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.wh.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.c.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.c.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Vr.JSC$16773_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vr.JSC$16773_CLICK_LOCATION_ID_MAP)};
_.c.shouldDeactivateOnMouseLeave=function(v){v=v.relatedTarget;if(!v)return!0;var E;return(E=this.opts)!=null&&E.mediaRenderer?!_.AV(this.opts.mediaRenderer).contains(v):!0};
_.c.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.c.onPlaybackStart=function(){var v=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$16774_preventProgressSaveTimer=
_.H8(_.wh,function(){v.resetPreventProgressSaveTimer()},1E4);
var E;if((E=this.opts)==null?0:E.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.H8(_.wh,function(){v.hasMultipleVideoPreviews()?v.startPlaybackForNextVideo():v.deactivate()},this.opts.videoPreviewDurationMs);
var n;this.player.setGlobalCrop(((n=this.opts)==null?0:n.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.c.getRoundedCornersSize=function(){var v;if((v=this.opts)==null?0:v.roundedCornersSize){var E;return(E=this.opts)==null?void 0:E.roundedCornersSize}var n;if((n=this.opts)==null?0:n.enableRounding){var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="small")return 1;var x;if(((x=this.opts)==null?void 0:x.thumbnailSize)==="medium")return 2;var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="large")return 3}return _.Z("web_imp_inset_progress_bar")?3:0};
_.c.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.c.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.c.onMediaContainerClick=function(v){this.isShortcutClick(v)||(this.navigateToWatch(v),v.preventDefault(),v.stopPropagation())};
_.c.activate=function(){var v=this,E,n,f,x,y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:if(!v.currentPageAllowed())return l.return(0);n=(E=v.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint;f=_.Zg.instance;if(!n||!f)return l.return(0);v.playbackIntentTriggered=!0;((x=v.opts)==null?0:x.mediaRenderer)&&((y=v.opts)==null||!y.isAutoplay)&&Rtd(v.opts.mediaRenderer,function(){v.deactivate()});
_.IS(v,function(){v.revealPreviewUi()});
Q={};_.Z("enable_unknown_lact_fix_on_html5")&&(_.P().resolve(_.ph),Q.lact=_.gh());v.videoPreviewFetchRequest=$E0(f,v.getInlinePlaybackRequestData(v.videoPreviewData),Q);_.vW(l,2);return _.m(l,v.videoPreviewFetchRequest,4);case 4:e=l.yieldResult;if(((F=e)==null?void 0:(b=F.playabilityStatus)==null?void 0:b.status)==="OK")return l.return(v.handlePlayerResponse(e));throw Error("Hj");case 2:_.cW(l),v.deactivate();case 3:return l.return(1)}})};
_.c.getInlinePlaybackRequestData=function(v){var E,n=_.Z("web_imp_player_mute_params")?((E=this.opts)==null?void 0:E.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:v.inlinePlaybackEndpoint,startPlaybackInMutedState:n}};
_.c.handlePlayerResponse=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r;return _.X(function(a){if(a.nextAddress==1){n=E.getInlinePlaybackVideoId();if(!(((f=v)==null?0:(x=f.videoDetails)==null?0:x.videoId)&&E.currentPageAllowed()&&E.playbackIntentTriggered&&E.opts&&n))return E.deactivate(),a.return(0);if(v.videoDetails.videoId!==n)return a.return(0);E.enableAudioControls=!!((y=v.playerConfig)==null?0:(Q=y.inlinePlaybackConfig)==null?0:Q.showAudioControls);v.trackingParams=E.getInlinePlaybackTrackingParams();
if(!E.inlinePlayer)return a.return(0);e={};if(b=_.C((F=E.videoPreviewData)==null?void 0:F.inlinePlaybackEndpoint,_.dM))e.watch_endpoint=b;if(E.videoPreviewData){var M,U=(M=_.C(E.videoPreviewData.inlinePlaybackEndpoint,_.dM))==null?void 0:M.startTimeSeconds;U!==void 0&&(v.playerConfig||(v.playerConfig={}),v.playerConfig.playbackStartConfig||(v.playerConfig.playbackStartConfig={}),v.playerConfig.playbackStartConfig.startPosition||(v.playerConfig.playbackStartConfig.startPosition={}),v.playerConfig.playbackStartConfig.startSeconds=
U,v.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(U*1E3))}E.inlinePlayer.loadVideoWithPlayerResponse(v,e);if(E.JSC$16774_playerPromise)return a.jumpTo(2);E.JSC$16774_playerPromise=E.inlinePlayer.getPlayerPromise();return _.m(a,E.JSC$16774_playerPromise,3)}a.nextAddress!=2&&(l=a.yieldResult,l.setInlinePreview(!0),l.setSizeStyle(!1,!0),E.ytPlayerListenerBehavior.listenToPlayerEvents(l,E.JSC$16774_playerEvents),E.player=l,_.jK(E.hostElement,"player-api-ready"));((r=E.opts)==
null?0:r.showPlayerControls)&&E.videoPreviewData&&E.player&&(E.playerControlsData={playerResponse:v,isInlinePlayback:!0,thumbnailOverlays:E.videoPreviewData.thumbnailOverlays,playerApi:E.player},E.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!E.unroundCornersForPlayback,additionalButton:E.getAdditionalButtonType(E.videoPreviewData.thumbnailOverlays)});return a.return(2)})};
_.c.revealPreviewUi=function(){var v=this;this.playbackIntentTriggered&&_.TN$(this,function(){v.hasThumbnailPositionChangedSinceTriggered()||(v.updateActiveState(!0),v.noAnimation=!1)})};
_.c.hasThumbnailPositionChangedSinceTriggered=function(){var v=this.positionData,E=this.getThumbnailPositionData();return(v==null?void 0:v.initialTopPosition)!==(E==null?void 0:E.initialTopPosition)||(v==null?void 0:v.initialHorizontalPosition)!==(E==null?void 0:E.initialHorizontalPosition)};
_.c.getThumbnailPositionData=function(){var v,E;if((E=this.opts)==null||!E.thumbnail)return null;E=this.opts.thumbnail;var n=((v=this.opts)==null?0:v.cropPlayerToFillThumbnailHorizontally)?!1:!0;var f=E.getBoundingClientRect();v=f.width;E=f.height;var x=f.top+window.scrollY;f=f.left+window.scrollX;var y=n?Math.ceil(v):v;n=n?Math.ceil(E):E;var Q=v/y;v={initialScale:Q,initialTopPosition:x-12*Q,finalTopPosition:x-12-(n-E)/2,initialHorizontalPosition:f-(12+(y-v)/2),finalHorizontalPosition:f-12-(y-v)/
2,videoPreviewWidth:y,videoPreviewHeight:n};return v};
_.c.updateActiveState=function(v){this.active=v;this.ytdReduxBehavior.dispatch(_.un({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:v}))};
_.c.stopPlayer=function(v){v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(v)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.wh.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.c.deactivate=function(v){v=v===void 0?{}:v;v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;LJ&&(LJ.disconnect(),LJ=null);this.stopPlayer({resetWatchEndpointStartTime:v});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.c.isValidThumbnailOverlayButton=function(v,E){v=v.thumbnailOverlayButtonRenderer;var n;return!!v&&!!v.tooltip&&!((n=v.icon)==null||!n.iconType)&&E.includes(v.icon.iconType)};
_.c.isValidThumbnailOverlayButtonViewModel=function(v,E){var n;v=_.C((n=v.thumbnailOverlayButtonViewModel)==null?void 0:n.overlayButton,_.wQ);return!!v&&!!v.title&&!!v.iconName&&E.includes(v.iconName)};
_.c.getAdditionalButtonType=function(v){var E=this;if(_.Z("web_imp_fastforward_button"))return{button:1};if(_.Z("web_imp_miniplayer_button"))return{button:2};if(_.Z("web_imp_playback_speed_button"))return{button:3};var n=["AUTO_AWESOME"],f=(v||[]).filter(function(y){return E.isValidThumbnailOverlayButton(y,n)}).map(function(y){return y.thumbnailOverlayButtonRenderer});
if(f.length)return{button:4,thumbnailOverlayButtonRenderers:f};var x=["AUTO_AWESOME"];v=(v||[]).filter(function(y){return E.isValidThumbnailOverlayButtonViewModel(y,x)}).map(function(y){return _.C(y.thumbnailOverlayButtonViewModel.overlayButton,_.wQ)});
if(v.length)return{button:4,thumbnailOverlayButtonViewModels:v}};
_.c.allowCaptions=function(){var v;return!((v=this.opts)==null?0:v.forceCaptionsOff)};
_.c.allowUnmuting=function(){var v;return this.enableAudioControls&&!((v=this.opts)==null?0:v.forceMutedVolume)};
_.c.beginStartTimeUpdater=function(){var v=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.i5(function(){v.updateWatchEndpointStartTime()},1E3)};
_.c.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.c.resetPreventProgressSaveTimer=function(){this.JSC$16774_preventProgressSaveTimer!==null&&(_.wh.cancelJob(this.JSC$16774_preventProgressSaveTimer),this.JSC$16774_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.c.updateWatchEndpointStartTime=function(v){var E=this.videoPreviewData;if(this.player&&E!=null&&E.inlinePlaybackEndpoint&&!this.JSC$16774_preventProgressSaveTimer){v=v?0:Math.floor(this.player.getCurrentTime());var n=_.C(E.navigationEndpoint,_.dM);n&&(n.startTimeSeconds=v);if(E=_.C(E.inlinePlaybackEndpoint,_.dM))E.startTimeSeconds=v}};
_.c.isShortcutClick=function(v){return!!v&&(v.ctrlKey||v.shiftKey||v.metaKey)};
_.c.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.c.openInMiniplayer=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1){n=(E=v.videoPreviewData)==null?void 0:E.navigationEndpoint;if(!n)return f.return();_.xo().lockupActivation=!0;return _.m(f,_.GWS(_.P().resolve(_.hf),n),2)}_.xo().userActivation=!0;_.yQ(f)})};
_.c.navigateToWatch=function(v){var E,n=(E=this.videoPreviewData)==null?void 0:E.navigationEndpoint;if(n){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(n,v,!0);else{if(_.Z("web_thumbnail_to_watch_transition")){var f,x;(f=this.opts)==null||(x=f.onNavigateToWatchCallback)==null||x.call(f)}_.jK(this.hostElement,"yt-navigate",{endpoint:n})}this.deactivate()}};
_.c.getInlinePlaybackVideoId=function(){var v,E;return(E=_.C((v=this.videoPreviewData)==null?void 0:v.inlinePlaybackEndpoint,_.dM))==null?void 0:E.videoId};
_.c.getInlinePlaybackTrackingParams=function(){var v,E;return(v=this.videoPreviewData)==null?void 0:(E=v.inlinePlaybackEndpoint)==null?void 0:E.clickTrackingParams};
_.c.hasMultipleVideoPreviews=function(){var v;return!!(((v=this.opts)==null?0:v.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.c.startPlaybackForNextVideo=function(){var v;(v=this.opts)!=null&&v.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())};
_.hK.Object.defineProperties(Vr.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null?0:v.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null||!v.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 v;if(Array.isArray((v=this.opts)==null?void 0:v.videoPreviewData)){var E;return(E=this.opts)==null?void 0:E.videoPreviewData[this.videoPreviewDataIndex]}var n;return(n=this.opts)==null?void 0:n.videoPreviewData}}});
Vr.prototype.onIsAdsVideoChange=Vr.prototype.onIsAdsVideoChange;Vr.prototype.onInlinePreviewIsEnabledChange=Vr.prototype.onInlinePreviewIsEnabledChange;Vr.prototype.optsChanged=Vr.prototype.optsChanged;Vr.prototype.onMouseLeave=Vr.prototype.onMouseLeave;Vr.JSC$16773_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Vr.JSC$16773_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"}];
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Vr.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Vr.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Vr.prototype,"componentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Vr.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.uR.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Vr.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Vr.prototype,"opts",void 0);_.k([_.H(),_.W("design:type",Object)],Vr.prototype,"playerControlsData",void 0);
_.k([_.H(),_.W("design:type",Object)],Vr.prototype,"playerControlsAppApi",void 0);_.k([_.H(),_.W("design:type",Object)],Vr.prototype,"playerControlsOptions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Vr.prototype,"noAnimation",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Vr.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Vr.prototype,"active",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Vr.prototype,"playing",void 0);_.k([_.H({selector:_.VOL}),_.W("design:type",Boolean)],Vr.prototype,"inlinePreviewIsEnabled",void 0);_.k([_.H(),_.W("design:type",String)],Vr.prototype,"pagePath",void 0);_.k([_.H({selector:_.wG}),_.W("design:type",Boolean)],Vr.prototype,"isWatchPage",void 0);_.k([_.A("videoPreviewData"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vr.prototype,"thumbnailData",null);
_.k([_.A("opts","active"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"hidePlayerControls",null);_.k([_.A("opts"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"isAdsVideo",null);_.k([_.A("opts"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"roundedCornersSmall",null);
_.k([_.A("opts"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"roundedCornersMedium",null);_.k([_.A("opts"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"roundedCornersLarge",null);_.k([_.A("opts"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vr.prototype,"unroundCornersForPlayback",null);
_.k([_.A("opts","videoPreviewDataIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vr.prototype,"videoPreviewData",null);_.k([_.H(),_.W("design:type",Object)],Vr.prototype,"videoPreviewDataIndex",void 0);_.k([_.Wp("#inline-player"),_.W("design:type",Object)],Vr.prototype,"inlinePlayer",void 0);_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],Vr.prototype,"onMouseLeave",null);
_.k([_.Tw("opts"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vr.prototype,"optsChanged",null);_.k([_.Tw("inlinePreviewIsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vr.prototype,"onInlinePreviewIsEnabledChange",null);_.k([_.On("isAdsVideo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vr.prototype,"onIsAdsVideoChange",null);
Vr=_.k([_.N({is:"ytd-video-preview",disableElementRegistration:!0})],Vr);
_.u(Vr,"ytd-video-preview",function(){if(sPp!==void 0)return sPp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return sPp=v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var k6x;var WZK;/*

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
*/
_.Ee({_template:function(){if(WZK!==void 0)return WZK;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;k6x===void 0&&(k6x=document.createElement("template"));var f=k6x;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return WZK=v},
is:"tp-yt-paper-checkbox",behaviors:[_.MhF],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.IS(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var v=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),E="px",n=v.match(/[A-Za-z]+$/);n!==null&&(E=n[0]);v=parseFloat(v);n=8/3*v;E==="px"&&(n=Math.floor(n),n%2!==v%2&&n++);this.updateStyles({"--paper-checkbox-ink-size":n+
E})}})},
_computeCheckboxClass:function(v,E){var n="";v&&(n+="checked ");E&&(n+="invalid");return n},
_computeCheckmarkClass:function(v){return v?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.ZU1._createRipple.call(this)}});var $gO=new _.z("radioButtonSurveyOptionRenderer"),LZ3=new _.z("checkboxSurveyOptionRenderer");var G6p;var TYR;var iI0=0,Si=function(){var v=_.g.call(this)||this;v.selected=!1;v.isOverlay=!1;v.inputId="toggle-option-"+iI0;iI0++;return v};
_.S(Si,_.g);Si.prototype.onTap=function(){_.jK(this.hostElement,"ytd-toggle-option-clicked")};
_.k([_.H(),_.W("design:type",String)],Si.prototype,"label",void 0);_.k([_.H(),_.W("design:type",String)],Si.prototype,"inputId",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Si.prototype,"selected",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Si.prototype,"isOverlay",void 0);Si=_.k([_.N({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.W("design:paramtypes",[])],Si);
_.u(Si,"ytd-toggle-option-renderer",function(){if(TYR!==void 0)return TYR;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return TYR=v},{mode:1});var U9=function(){var v=_.g.apply(this,arguments)||this;v.isToggleOption=!1;v.isOverlay=!1;return v};
_.S(U9,_.g);U9.prototype.onTap=function(v){v.preventDefault();this.data&&(v=!this.data.checked,this.set("data.checked",v),_.jK(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:v,value:this.data.value}))};
_.hK.Object.defineProperties(U9.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
U9.prototype.onTap=U9.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],U9.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],U9.prototype,"isToggleOption",void 0);_.k([_.H(),_.W("design:type",Object)],U9.prototype,"isOverlay",void 0);_.k([_.A("data.responseText"),_.W("design:type",String),_.W("design:paramtypes",[])],U9.prototype,"label",null);
_.k([_.jk("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],U9.prototype,"onTap",null);U9=_.k([_.N({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],U9);
_.u(U9,"ytd-checkbox-survey-option-renderer",function(){if(G6p!==void 0)return G6p;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return G6p=v},{mode:1});var zqx;var Rqp;var qV=function(){var v=_.g.apply(this,arguments)||this;v.checked=!1;v.isToggleOption=!1;return v};
_.S(qV,_.g);qV.prototype.onTap=function(){this.data&&(this.checked?_.OL(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.OL(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
qV.prototype.onTap=qV.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qV.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],qV.prototype,"checked",void 0);_.k([_.H(),_.W("design:type",Object)],qV.prototype,"isToggleOption",void 0);_.k([_.jk("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],qV.prototype,"onTap",null);
qV=_.k([_.N({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],qV);
_.u(qV,"ytd-radio-button-survey-option-renderer",function(){if(Rqp!==void 0)return Rqp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Rqp=v},{mode:1});var Ju=function(){var v=_.g.apply(this,arguments)||this;v.disableAnimation=!1;v.isToggleOption=!0;v.followUpSurveyCommand=null;v.selectedRatingEndpoint=null;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.styleOverrideAttribute=!0;v.isDarkMode=!1;v.isSubmitted=!1;v.roundedContainer=!0;v.improveShortsResponseRate=_.Z("web_improve_shorts_response_rate");v.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 v};
_.S(Ju,_.g);_.c=Ju.prototype;
_.c.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"}}}}};
_.c.attached=function(){var v=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(n){var f;if((f=n[0])!=null&&f.isIntersecting){_.L5().reportShown(v.hostElement);var x;(x=v.intersectionObserver)==null||x.unobserve(v.hostElement)}},{rootMargin:"0px",
threshold:.6});var E;(E=this.intersectionObserver)==null||E.observe(this.hostElement)};
_.c.onDarkModeToggledAction=function(v){this.isDarkMode=v};
_.c.dataChanged=function(){var v;if(((v=this.data)==null?void 0:v.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var E;((E=this.data)==null?void 0:E.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var n,f,x,y;this.darkColorPalette=(n=this.data)==null?void 0:(f=n.inlineContent)==null?void 0:(x=f.compactVideoRenderer)==null?void 0:(y=x.thumbnail)==null?
void 0:y.darkColorPalette;var Q,e,F,b;this.lightColorPalette=(Q=this.data)==null?void 0:(e=Q.inlineContent)==null?void 0:(F=e.compactVideoRenderer)==null?void 0:(b=F.thumbnail)==null?void 0:b.lightColorPalette;var l,r;if(((l=this.data)==null?0:(r=l.inlineContent)==null?0:r.compactVideoRenderer)&&this.isShortsStyle){var a,M,U,d;v=_.AZ((a=this.data)==null?void 0:(M=a.inlineContent)==null?void 0:(U=M.compactVideoRenderer)==null?void 0:(d=U.thumbnail)==null?void 0:d.thumbnails);_.NQ(this.hostElement,
{"--yt-background-url":"url("+v+")"})}};
_.c.handleRequestCompletion=function(){this.hostElement.hidden&&_.jK(this.hostElement,"yt-dismissible-item-dismissed")};
_.c.onPopupClosed=function(v){var E;((E=v.detail)==null?void 0:E.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.OL(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.c.handleInlineSurveyRatingSelect=function(v,E){var n=this;this.selectedRatingEndpoint=v;this.followUpSurveyCommand=E;this.expanded=!!v;this.getOptionRenderers().forEach(function(f,x){n.notifyPath("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked");n.set("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),v=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.OL(this.hostElement,"yt-reel-non-video-content-dismissal-command",[v]))};
_.c.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.OL(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var v,E=(v=this.data)==null?void 0:v.dismissalEndpoint;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.c.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.OL(this.hostElement,"yt-close-popup-action"))};
_.c.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var v=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{v=this.getOptionRenderers().filter(function(f){return f.checked});
if(v.length===0)return;v=v.map(function(f){return f.responseEndpoint})}var E=[];
v.forEach(function(f,x){x!==0&&(f=_.C(f,_.qI))&&f.feedbackToken&&E.push(f.feedbackToken)});
if(v=v[0]){var n={};E.length>0&&(n.extra_feedback_tokens=E);this.ytComponentBehavior.resolveCommand(v,{form:n})}}};
_.c.getOptionRenderers=function(){var v=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(E){v.isSingleSelect=!!_.C(E,$gO);return v.isSingleSelect?_.C(E,$gO):_.C(E,LZ3)}):[]};
_.c.handleInlineSurveyOptionSelect=function(v){v=this.optionSelector.indexOf(v);v!==-1&&this.optionSelector.selectIndex(v)};
_.c.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.c.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
_.c.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v=v&&this.maybeGetBackgroundColor(v);this.dismissibleEl.style.backgroundColor=!v||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.p2(v)};
_.hK.Object.defineProperties(Ju.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Ju.prototype.colorPaletteChanged=Ju.prototype.colorPaletteChanged;Ju.prototype.onPopupClosed=Ju.prototype.onPopupClosed;Ju.prototype.handleRequestCompletion=Ju.prototype.handleRequestCompletion;Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ju.prototype,"actionHandlerBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ju.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Ju.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.Wp("#follow-up-survey-options"),_.W("design:type",Object)],Ju.prototype,"optionSelector",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"disableAnimation",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"isToggleOption",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"followUpSurveyCommand",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"selectedRatingEndpoint",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ju.prototype,"expanded",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ju.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ju.prototype,"isShortsStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ju.prototype,"styleOverrideAttribute",void 0);_.k([_.H(),_.W("design:type",Boolean)],Ju.prototype,"isSingleSelect",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"isDarkMode",void 0);
_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"lightColorPalette",void 0);_.k([_.H(),_.W("design:type",Object)],Ju.prototype,"darkColorPalette",void 0);_.k([_.A("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ju.prototype,"isOptionSelected",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ju.prototype,"roundedContainer",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ju.prototype,"improveShortsResponseRate",void 0);_.k([_.Wp("#dismissible"),_.W("design:type",HTMLElement)],Ju.prototype,"dismissibleEl",void 0);_.k([_.Wp("#dismiss-button yt-icon-button"),_.W("design:type",HTMLElement)],Ju.prototype,"dismissButtonEl",void 0);_.k([_.Wp("#inline-survey-header yt-icon-button"),_.W("design:type",HTMLElement)],Ju.prototype,"inlineHeaderDismissButtonEl",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ju.prototype,"dataChanged",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ju.prototype,"handleRequestCompletion",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ju.prototype,"onPopupClosed",null);
_.k([_.On("darkColorPalette","lightColorPalette","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ju.prototype,"colorPaletteChanged",null);Ju=_.k([_.N({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Ju);
_.u(Ju,"ytd-inline-survey-renderer",function(){if(zqx!==void 0)return zqx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return zqx=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
var l0d,szU,rY_;l0d=function(v){return _.Z("kevlar_watch_cinematics_invisible")||v.fullscreen&&_.Z("kevlar_watch_cinematics_invisible_in_fullscreen")||v.theater&&!v.fullscreen&&_.Z("kevlar_watch_cinematics_invisible_in_theater")};
szU=function(){var v=document.createElement("canvas"),E=v.getContext("2d");if(!E)throw Error("Wl");_.Ko(v,{position:"absolute",width:"100%",height:"100%"});return{element:v,context:E}};
rY_=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Z("kevlar_watch_cinematics_css_blur")};
_.P7x=function(v,E,n){return Math.abs(v-E)<=(n||1E-6)};
_.a0x=function(v,E){return v==E?!0:v&&E?v.width==E.width&&v.height==E.height:!1};_.Z$R=new _.z("notificationActionRenderer");var C7K=function(v){var E=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Wy;this.element.addEventListener("load",function(){E.loaded=!0;E.resolver.resolve(E.element)});
this.element.addEventListener("error",function(){E.failed=!0});
this.element.src=v};var MmO=function(v,E){this.image=v;this.frame=E};
MmO.prototype.drawToCanvas=function(v,E){var n=this.frame.width/this.frame.columns,f=this.frame.height/this.frame.rows,x=E.offsetX,y=E.offsetY;l0d(E)?(v.fillStyle=E.fullscreen?"#000":"#0f0f0f",v.fillRect(x,y,(E==null?void 0:E.width)||n,(E==null?void 0:E.height)||f)):v.drawImage(this.image,this.frame.column*n,this.frame.row*f,n,f,x,y,(E==null?void 0:E.width)||n,(E==null?void 0:E.height)||f)};
var SJb=function(v){this.color=v};
SJb.prototype.drawToCanvas=function(v,E){var n=E.offsetX,f=E.offsetY,x=E.width,y=E.height;v.fillStyle=l0d(E)?E.fullscreen?"#000":"#0f0f0f":this.color;v.fillRect(n,f,x,y)};var Bh=function(v,E){_.jn.call(this);this.playerApi=E;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.fs(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();UZO(this,v);_.qJp(this);this.update()},dZ1;
_.S(Bh,_.jn);Bh.prototype.addEventListeners=function(){var v=this,E=function(){v.update()},n=function(x){v.paused||(x.type==="newdata"&&(v.mosaics.clear(),JY3(v),v3(v)),_.qJp(v),v.update())},f=function(){v.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",E);this.playerApi.addEventListener("onVideoDataChange",n);this.playerApi.addEventListener("onStateChange",f);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoProgress",E);v.playerApi.removeEventListener("onVideoDataChange",n);v.playerApi.removeEventListener("onStateChange",f)})};
var UZO=function(v,E){v.cinematicContainerRenderer!==E&&(v.cinematicContainerRenderer=E,JY3(v),v3(v),v.colorStoreUpdateJobId=_.wh.addLowPriorityJob(function(){var n;if((n=v.cinematicContainerRenderer.colorStore)!=null&&n.sampledColors){n=Infinity;for(var f=_.p(v.cinematicContainerRenderer.colorStore.sampledColors),x=f.next();!x.done;x=f.next()){x=x.value;var y=Number(x.key);y!==0&&y<n&&(n=y);y=_.Qt(x.value);v.colorStore.set(x.key,y)}v.colorStoreTimeInterval=n}}))},JY3=function(v){v.colorStoreUpdateJobId&&
(_.wh.cancelJob(v.colorStoreUpdateJobId),v.colorStoreUpdateJobId=void 0);
v.colorStore.clear();v.currentStoryboardColor=void 0},KBK=function(v,E){var n;
return(n=v.getStoryboardFrame(E))==null?void 0:n.url};
Bh.prototype.onPlayerStateChange=function(){this.update()};
Bh.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.qJp=function(v){var E=v.getStoryboardFrame(0);E&&(E=new _.fs(E.width/E.columns,E.height/E.rows),_.a0x(v.currentStoryboardSize,E)||(v.currentStoryboardSize=E,v.publish("STORYBOARD_SIZE_CHANGED",v.currentStoryboardSize)))};
dZ1=function(v,E){v.currentStoryboardIndex=E;v.pendingStoryboardIndex=NaN;E=v.getStoryboardFrame(v.currentStoryboardIndex);v.currentStoryboard=new MmO(v.mosaics.get(E.url).element,E);v.publish("STORYBOARD_CHANGED",v.currentStoryboard);v.lastUpdateTime=(0,_.gd)()};
Bh.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var v3=function(v){v.currentStoryboardIndex=NaN;v.pendingStoryboardIndex=NaN;v.currentStoryboard&&(v.currentStoryboard=void 0,v.publish("STORYBOARD_CHANGED",void 0));v.lastUpdateTime=NaN};
Bh.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)v3(this);else{var v=this.playerApi.getPlayerState(1);if(v===-1||v===5||v===0)v3(this);else if(isNaN(this.lastUpdateTime)||!((0,_.gd)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(v=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){v=""+Math.round(v*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var E=this.colorStore.get(v);E?E!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=E,this.currentStoryboard=new SJb(E),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.gd)()):(_.li(new _.yc("Could not find color for timestamp: "+v,this.cinematicContainerRenderer)),v3(this))}else v3(this);else I0M(this,v)}};
var I0M=function(v,E){var n=v.getStoryboardFrameIndex(E);if(n!==v.currentStoryboardIndex&&n!==v.pendingStoryboardIndex){E=KBK(v,n);var f=v.mosaics.get(E);f?f.loaded&&dZ1(v,n):(v.pendingStoryboardIndex=n,n=new C7K(E),v.mosaics.set(E,n),n.resolver.promise.then(function(){if(!v.isDisposed()&&!v.paused&&!isNaN(v.pendingStoryboardIndex)){var x=KBK(v,v.pendingStoryboardIndex);if(x){var y;(y=v.mosaics.get(x))!=null&&y.loaded&&dZ1(v,v.pendingStoryboardIndex)}else v3(v)}}))}};
Bh.prototype.getStoryboardFrameIndex=function(v){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(v,E)};
Bh.prototype.getStoryboardFrame=function(v){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,n,f;return((f=(n=this.playerApi).getStoryboardFrame)==null?void 0:f.call(n,v,E))||null};
Bh.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var nu=function(v,E,n,f){f=f===void 0?!1:f;_.QK.call(this);this.cinematicContainerRenderer=E;this.playerApi=n;this.theater=this.fullscreen=!1;var x;this.ambientLightThemeEnabled=!f&&!!(E==null?0:(x=E.config)==null?0:x.enableInLightTheme);this.ambientFullscreenEnabled=f&&_.Z("web_cinematic_fullscreen");this.container=document.createElement("div");v.appendChild(this.container);var y;if(_.Z("web_cinematic_theater_mode")||_.Z("web_cinematic_fullscreen")||(E==null?0:(y=E.config)==null?0:y.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);YJ3(this);v=this.ambientV2Container||this.container;this.backCanvas=szU();this.frontCanvas=szU();v.appendChild(this.backCanvas.element);v.appendChild(this.frontCanvas.element);this.storyboardManager=new Bh(E,this.playerApi);_.BV(this,this.storyboardManager);this.addEventListeners();hXx(this)?AYC(this,100+Ei(this)*3*2,100+Ei(this)*3*2):Vm0(this);DZO(this,this.storyboardManager.currentStoryboard)};
_.S(nu,_.QK);var YJ3=function(v){v.ambientV2Container?H$d(v):(_.Ko(v.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+gW0(v)+", "+N0U(v)+")"}),rY_()&&_.Ko(v.container,"filter","blur("+_.WG("cinematic_watch_css_filter_blur_strength",40)+"px)"))},H$d=function(v){if(v.ambientV2Container){var E=v.playerApi.getVideoAspectRatio();
_.Ko(v.container,{"aspect-ratio":""+E,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Ko(v.ambientV2Container,{"aspect-ratio":""+E,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+gW0(v)+", "+N0U(v)+")"});rY_()&&_.Ko(v.ambientV2Container,"filter","blur("+_.WG("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
nu.prototype.setFullscreen=function(v,E){this.fullscreen=v;this.theater=!!E;YJ3(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),v=this.storyboardManager.currentStoryboard,unM(this),v&&jzb(this,v)};
nu.prototype.addEventListeners=function(){var v=this,E=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(x){DZO(v,x)}),n=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Vm0(v)});
this.addOnDisposeCallback(function(){v.storyboardManager.unsubscribeByKey(E);v.storyboardManager.unsubscribeByKey(n)});
if(this.ambientV2Container){var f=function(){H$d(v)};
this.playerApi.addEventListener("onVideoDataChange",f);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoDataChange",f)})}};
var Vm0=function(v){if(!hXx(v)){var E=v.storyboardManager.currentStoryboardSize;isNaN(E.width)||isNaN(E.height)||AYC(v,Number(E.width)+Ei(v)*3*2,Number(E.height)+Ei(v)*3*2)}},AYC=function(v,E,n){v.backCanvas.element.width=E;
v.backCanvas.element.height=n;v.frontCanvas.element.width=E;v.frontCanvas.element.height=n},hXx=function(v){return v.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},DZO=function(v,E){var n=v.frontCanvas.element.getAnimations()[0];
n?(n.pause(),v.backCanvas.context.globalAlpha=Number(getComputedStyle(v.frontCanvas.element).opacity),v.frontCanvas.element.style.opacity="0",n.finish()):v.backCanvas.context.globalAlpha=1;v.backCanvas.context.drawImage(v.frontCanvas.element,0,0,v.backCanvas.element.width,v.backCanvas.element.height);unM(v);E&&jzb(v,E);E=E?v.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.WG("cinematic_watch_fade_out_duration",500);n=_.WG("cinematic_watch_transition_frame_rate")/1E3;var f=
{};n&&(f={easing:"steps("+Math.round(E*n)+")"});v.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:E,iterations:1},f));v.frontCanvas.element.style.opacity="1"},unM=function(v){var E=v.ambientLightThemeEnabled,n=v.ambientLightThemeEnabled||v.ambientFullscreenEnabled&&!_.Z("web_cinematic_fullscreen_v2");
v.frontCanvas.context.fillStyle=v.theater&&E||v.fullscreen&&n?"#000":"#0f0f0f";rY_()||(v.frontCanvas.context.filter="blur(0)");v.frontCanvas.context.fillRect(0,0,v.frontCanvas.element.width,v.frontCanvas.element.height)},jzb=function(v,E){rY_()||(v.frontCanvas.context.filter="blur("+Ei(v)+"px)");
v.frontCanvas.context.globalAlpha=_.WG("cinematic_watch_effect_opacity",.4);var n={offsetX:Ei(v)*3,offsetY:Ei(v)*3,theater:v.theater,fullscreen:v.fullscreen};hXx(v)&&(n.width=100,n.height=100);E.drawToCanvas(v.frontCanvas.context,n);v.frontCanvas.context.globalAlpha=1},Ei=function(v){var E;
return(E=v.cinematicContainerRenderer.config.blurStrength)!=null?E:5},gW0=function(v){var E,n;
if((v.fullscreen||v.theater)&&((E=v.cinematicContainerRenderer.config)==null?0:(n=E.watchFullscreenConfig)==null?0:n.colorSourceWidthMultiplier))return v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var f;return(f=v.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?f:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier},N0U=function(v){var E,n;
if((v.fullscreen||v.theater)&&((E=v.cinematicContainerRenderer.config)==null?0:(n=E.watchFullscreenConfig)==null?0:n.colorSourceHeightMultiplier))return v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var f;return(f=v.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?f:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
nu.prototype.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);this.container.remove()};
nu.prototype.clear=function(){DZO(this)};
nu.prototype.pause=function(){this.storyboardManager.pause()};var O$P;O$P=_.FT(function(){var v,E,n=!((E=(v=document.createElement("canvas")).getContext)==null||!E.call(v,"2d")),f;v=!((f=CSS)==null||!f.supports("filter: blur(0)"));f=!!Element.prototype.animate&&!!Element.prototype.getAnimations;E=_.Z("web_cinematic_fullscreen")||_.Z("web_cinematic_theater_mode")||_.Z("web_cinematic_light_theme")||!1;var x;return n&&v&&f&&(!E||!((x=CSS)==null||!x.supports("aspect-ratio: 1 / 1")))});
_.oL=function(v,E){_.jn.call(this);this.container=v;this.playerApi=E;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=k$3(this);this.update()};
_.S(_.oL,_.jn);_.WB6=function(v){var E=document.documentElement.hasAttribute("dark");v.isDarkModeEnabled=E;v.update()};
_.$ZK=function(v,E){v.settingEnabled=E;v.update()};
_.oL.prototype.setFullscreen=function(v,E){this.fullscreen=v;this.theater=!!E;this.update()};
_.LBM=function(v,E){v.cinematicContainerRenderer=E;v.cinematicContainerRenderer&&(v.cinematicsVe=_.ci(v.isShorts()?227858:159022),_.t$(_.Tl(),v.cinematicsVe),v.loggingClientData={watchCinematicContainerData:{presentationStyle:v.cinematicContainerRenderer.presentationStyle}});v.update()};
_.oL.prototype.isShorts=function(){var v,E;return((v=this.cinematicContainerRenderer)==null?void 0:(E=v.config)==null?void 0:E.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.oL.prototype.isAllowed=function(){var v;if(v=O$P()){var E,n,f;v=((n=this.cinematicContainerRenderer)==null?void 0:n.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((f=this.cinematicContainerRenderer)==null||!f.colorStore)||((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(v)if(_.Z("web_cinematics_pausing")){var x,y;v=this.isDarkModeEnabled||!!((x=this.cinematicContainerRenderer)==
null?0:(y=x.config)==null?0:y.enableInLightTheme)}else{var Q,e;x=!!((Q=this.cinematicContainerRenderer)==null?0:(e=Q.config)==null?0:e.enableInLightTheme)&&(_.MX("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);v=this.isDarkModeEnabled||x}if(Q=v){var F,b;Q=!((b=(F=this.prefersReducedMotionQuery)==null?void 0:F.matches)!=null&&b)}return Q};
_.oL.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var k$3=function(v){if(!_.Z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var E=window.matchMedia("(prefers-reduced-motion: reduce)"),n=function(){v.update()};
E.addListener(n);v.addOnDisposeCallback(function(){E.removeListener(n)});
return E}};
_.oL.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var v=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new nu(this.container,v,this.playerApi,this.isDarkModeEnabled),_.BV(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var E=this.currentCinematicEffect;E.cinematicContainerRenderer!==
v&&(E.cinematicContainerRenderer=v,UZO(E.storyboardManager,v),YJ3(E));v=_.Ef();_.nH(0,194,!0);v.save();v=_.lc();this.cinematicsVe&&v&&_.CH(v,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(v=_.lc(),this.cinematicsVe&&v&&_.Mx(v,[this.cinematicsVe],!1,this.loggingClientData),_.uU(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.hK.Object.defineProperties(_.oL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var LyR;var G__;_.Ee({_template:function(){if(G__!==void 0)return G__;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=
v.content,n=E.insertBefore;LyR===void 0&&(LyR=document.createElement("template"));var f=LyR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return G__=v},
is:"tp-yt-iron-pages",behaviors:[_.ZT,_.rq],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Ap6;_.VnP=function(){if(_.Z("kevlar_home_skeleton")&&!Ap6){var v=document.querySelector("#home-page-skeleton");v&&(_.FD("hgcr"),_.fT(v),Ap6=!0)}};
Ap6=!1;_.sr=new _.z("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var IhU,Y9U,hN0,AuU,Vi3,HJb,gvx,jN6,kH_,WRC,OJp,N8b,uG3,GH0,T8d;_.dVU=function(v,E,n){E=E===void 0?5:E;if(E!==0){var f=typeof v==="function"?v():document.querySelector(v);f?(n==null?0:n.enableSmartFocus)?_.exE(f):f.focus():setTimeout(function(){_.dVU(v,E-1,n)},500)}};
IhU=function(v){return _.mj1(_.F89(v&16777215))<.5};
Y9U=function(v,E,n){var f=n.minimumRowsOfVideosBetweenSections===void 0?1:n.minimumRowsOfVideosBetweenSections;return v<(n.minimumRowsOfVideosAtStart===void 0?2:n.minimumRowsOfVideosAtStart)||E!==null&&v-E<=f?!1:!0};
hN0=function(v,E){var n=0,f=0;v=_.p(v);for(var x=v.next();!x.done;x=v.next()){var y=x.value;if(y.richItemRenderer)y.richItemRenderer.rowIndex=f,y.richItemRenderer.colIndex=n++,n===E&&(n=0,f++);else if(y.richGroupRenderer&&y.richGroupRenderer.numColumns!==void 0)y.richGroupRenderer.rowIndex=f,y.richGroupRenderer.colIndex=n,n+=y.richGroupRenderer.numColumns,n===E&&(n=0,f++);else if(y.richSectionRenderer){var Q=x=void 0;if(y=_.C((x=y)==null?void 0:(Q=x.richSectionRenderer)==null?void 0:Q.content,_.J_w))y.rowIndex=
f++}}};
AuU=function(v,E){var n=E.contentElement;E=E.rendererToTagNameMap;if(n&&E&&E.size!==0){for(var f=new Map,x=_.p(n.children),y=x.next();!y.done;y=x.next()){y=y.value;var Q=y.tagName.toLowerCase(),e=f.get(Q);e||(e=[],f.set(Q,e));e.push(y)}if(f.size!==0)for(x=Math.min(v.length,n.children.length),y=new Map,Q=0;Q<x;Q++){e=Object.keys(v[Q])[0];e=E.get(e);if(!e)break;var F=y.get(e);F===void 0&&(F=0,y.set(e,F));var b=f.get(e);if(!b||F>=b.length)break;y.set(e,F+1);e=b[F];F=n.children[Q];F!==e&&(_.sq9=!0,_.r4X.set(e,
!0),n.insertBefore(e,F),_.r4X.delete(e),_.sq9=!1)}}};
Vi3=function(v,E,n,f,x,y,Q){f=f===void 0?{}:f;if(!v||!v.length)return[];v=v.slice();var e=[],F=[];x=null;for(var b=0,l=function(V){F.sort(function(L,xX){return xX.skippedOnRow-L.skippedOnRow});
for(var O,T=(O=F.shift())==null?void 0:O.content;T;)!T.richSectionRenderer&&V||e.push(T),O=void 0,T=(O=F.shift())==null?void 0:O.content},r=[];v.length>0||F.length>0;){for(var a=[],M=E;M>0;){var U=void 0,d=void 0,Y=(d=F[0]&&F[0].skippedOnRow<b?(U=F.shift())==null?void 0:U.content:void 0)!=null?d:v.shift();
if(!Y)break;if(Y.richItemRenderer)U=Y.richItemRenderer.targetId,d=void 0,U&&((d=Q)==null?0:d.has(U))&&r.push(Q.get(U)),a.push(Y),M--;else if(Y.richGroupRenderer&&Y.richGroupRenderer.numColumns!==void 0)Y.richGroupRenderer.numColumns<=M?(a.push(Y),M-=Y.richGroupRenderer.numColumns):M===E&&Y.richGroupRenderer.numColumns>E?(a.push({richGroupRenderer:Object.assign({},Y.richGroupRenderer,{numColumns:E})}),M=0):F.push({content:Y,skippedOnRow:b});else if(Y.richSectionRenderer)if(Y9U(b,x,f)&&M===E){e.push(Y);
x=b;b++;continue}else F.push({content:Y,skippedOnRow:b});else if(Y.continuationItemRenderer){l(!0);e.push(Y);M=0;break}if(M===0)e.push.apply(e,_.s8(a));else if(!n&&v.length===0){l(!1);e.push.apply(e,_.s8(a));M=0;break}}b++;r=_.p(r);for(a=r.next();!a.done;a=r.next())e.push(a.value),b++;r=[]}hN0(e,E);y&&AuU(e,y);return e};
HJb=function(v){var E=v.data;var n=v.uniqueId;v=v.overrides;var f,x=((f=E.timedAnimationData)==null?void 0:f.animationTiming)||[];return _.w("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.w(_.ndy,{settings:{uniqueId:n,timings:x,experimentEnabled:x.length>0,enabled:x.length>0}},DVP(E.buttonRenderer,{buttonRenderer:{buttonOverrides:v}})))};
gvx=function(v){return v.talkToRecs};
jN6=function(v,E){if(E){var n=_.dG().getState().entities.flowStateEntity,f=N8b(v),x=[E];f&&f!==E&&x.push(f);var y=!0,Q;if(n&&v.flowStateEntityKey&&((Q=n[v.flowStateEntityKey])==null?void 0:Q.primaryButtonDisabled)!==void 0){var e;y=!((e=n[v.flowStateEntityKey])==null||!e.primaryButtonDisabled)}uG3(v,f!=null?f:E,x,y)}};
kH_=function(v){return _.yC(_.dG(),function(E){return E.entities.flowStateEntity},function(E,n){if(v.flowStateEntityKey){var f,x=E==null?void 0:(f=E[v.flowStateEntityKey])==null?void 0:f.currentStepId,y;
n=n==null?void 0:(y=n[v.flowStateEntityKey])==null?void 0:y.currentStepId;y=_.dG().getState().talkToRecs;if(x&&x!==n){var Q;E=(E==null?void 0:(Q=E[v.flowStateEntityKey])==null?void 0:Q.stepIdStack)||Object.keys(y.stepStates);Q=!OJp(y==null?void 0:y.stepStates[x]);uG3(v,x,E,Q)}}})};
WRC=function(v){return _.yC(_.dG(),gvx,function(E){var n=N8b(v);if(n){var f=Object.keys(E.stepStates);E=!OJp(E==null?void 0:E.stepStates[n]);uG3(v,n,f,E)}})};
OJp=function(v){var E=Object.keys((v==null?void 0:v.selectionStates)||{}).reduce(function(y,Q){return y||(v==null?void 0:v.selectionStates[Q].isSelected)},!1),n,f,x=!!(v==null?0:(n=v.userQuery)==null?0:(f=n.userQuery)==null?0:f.trim());
return E||x};
N8b=function(v){if(v.flowStateEntityKey){var E,n,f=(E=_.dG().getState().entities.flowStateEntity)==null?void 0:(n=E[v.flowStateEntityKey])==null?void 0:n.currentStepId;if(f)return f}};
uG3=function(v,E,n,f){_.dG().dispatch(_.n7("flowStateEntity",v.flowStateEntityKey,{currentStepId:E,stepIdStack:n,key:v.flowStateEntityKey,primaryButtonDisabled:f}))};
_.$VK=function(v,E){return _.LH(v.entities,"youchatPendingResponseEntity",E)};
_.LRp=function(v){return function(E){_.Mu(_.n7("youchatPendingResponseEntity",v,{entityKey:v,isPendingResponse:E}))}};
GH0=function(v){v==null||v.addEventListener("DOMLoaded",function(){v.goToAndPlay(v.totalFrames-48,!0)})};var iJO;_.Ee({_template:function(){if(iJO!==void 0)return iJO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
var E=v.content,n=E.insertBefore;T8d===void 0&&(T8d=document.createElement("template"));var f=T8d;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return iJO=v},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var zN3=new _.z("talkToRecsFlowRenderer");var RN3=new _.z("flowRootRenderer");var tiU=new _.z("chipsShelfViewModel");var B8P=new _.z("horizontalShelfViewModel");_.vd3=new _.z("engagementPanelSectionListRenderer");var EdR=new _.z("conversationResourceViewModel");var ndK=function(){this.horizontal=!1},odb=function(v,E){v.horizontal=E};
ndK.prototype.position=function(v,E,n,f){f=f===void 0?1:f;v=this.delta(v)*f+E;f=Math.max(E,n);return v>=Math.min(E,n)&&v<=f?v:n};
ndK.prototype.axis=function(v){v=this.direction(v);return v==="up"||v==="down"?"Y":"X"};var nf=function(v,E,n){E=E===void 0?_.th():E;this.target=v;this.manager=E;this.touchAction=n;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
nf.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(_.s8(this.events)));for(var v=_.p(this.events),E=v.next();!E.done;E=v.next())this.listen(E.value)}};
nf.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.s8(this.events)));for(var v=_.p(this.events),E=v.next();!E.done;E=v.next())this.unlisten(E.value)}};
nf.prototype.listen=function(v){this.eventMap[v]&&this.target.addEventListener(v,this.eventMap[v])};
nf.prototype.unlisten=function(v){this.eventMap[v]&&this.target.removeEventListener(v,this.eventMap[v])};var od=function(){ndK.apply(this,arguments)};
_.S(od,ndK);od.prototype.direction=function(v){var E=v.detail;v=E.deltaY;E=E.deltaX;return v&&!this.horizontal?v>0?"down":"up":E&&this.horizontal?E>0?"right":"left":"none"};
od.prototype.distance=function(v){return Math.abs(this.delta(v))};
od.prototype.delta=function(v){var E=this.direction(v),n=v.detail;v=n.deltaX;n=n.deltaY;return E==="up"||E==="down"?n||0:v||0};
od.prototype.velocity=function(v){var E=this.direction(v),n=v.detail;v=n.velocityX;n=n.velocityY;return Math.abs(E==="up"||E==="down"?n||0:v||0)};_.ff=function(v,E,n,f,x,y){x=x===void 0?new od:x;y=y===void 0?_.th():y;nf.call(this,E,y,f);var Q=this;this.element=v;this.target=E;this.config=n;this.input=x;this.manager=y;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Q.config.draggingClass&&Q.element.classList.add(Q.config.draggingClass);Q.config.startAction&&Q.config.startAction()};
this.onPanMove=function(e){var F=fWK(Q,e);if(F){Q.move(e,F);F.fade&&Q.fade(e,F);var b=Q.input.direction(e);F.moveAction&&F.moveAction(xtK(Q,e,F),b)}};
this.onPanEnd=function(e){var F,b,l,r,a,M;return _.X(function(U){if(U.nextAddress==1){Q.animationRequestId&&cancelAnimationFrame(Q.animationRequestId);Q.animationRequestId=void 0;F=fWK(Q,e);if(!F)return U.return();b=F;l=b.triggerAction;r=b.fade;a=b.disableFinish;M=b.translateBack;var d=Q.input.velocity(e),Y=Q.input.distance(e),V=Q.threshold(F);return d>.3&&Y>10||Y>V?a?U.jumpTo(6):r?_.m(U,cp0(Q,e),6):_.m(U,yp3(Q,e,F),6):M?_.m(U,Q.translateBack(e),3):U.jumpTo(3)}U.nextAddress!=3&&l&&l();Q.config.draggingClass&&
Q.element.classList.remove(Q.config.draggingClass);Q.reset();_.yQ(U)})};
v=Object.keys(n.triggers);this.directions=new Set(v);odb(this.input,this.directions.has("right")||this.directions.has("left"))};
_.S(_.ff,nf);_.ff.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var fWK=function(v,E){E=v.input.direction(E);return v.config.triggers[E]};
_.ff.prototype.move=function(v,E){var n=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var f=n.input.axis(v),x=n.input.position(v,n.config.startPosition,E.endPosition,E.moveRatio||1);n.element.style.transform="translate"+f+"("+x+"px)";n.animationRequestId=void 0}))};
var xtK=function(v,E,n){var f=n.moveRatio||1;n=Math.abs(v.config.startPosition-n.endPosition);return Math.min(v.input.distance(E)*f,n)/n};
_.ff.prototype.fade=function(v,E){var n=E.endOpacity;v=xtK(this,v,E);v>0&&(this.element.style.opacity=""+(((n||0)-1)*v+1))};
_.ff.prototype.threshold=function(v){return v.threshold?v.threshold:Math.abs(v.endPosition-this.config.startPosition)/3};
var yp3=function(v,E,n){var f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return f=v.input.delta(E)+v.config.startPosition,x=v.input.axis(E),y=n,Q=y.endPosition,e=y.transitionEndPosition,b=(F=e)!=null?F:Q,_.m(l,v.element.animate([{transform:"translate"+x+"("+f+"px)"},{transform:"translate"+x+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+x+"("+b+"px)";_.yQ(l)})};
_.ff.prototype.translateBack=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1){if(!E.element.style.transform)return x.return();n=E.input.axis(v);f=E.config.startPosition;return _.m(x,E.element.animate([{transform:E.element.style.transform},{transform:"translate"+n+"("+f+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}E.element.style.transform="translate"+n+"("+f+"px)";_.yQ(x)})};
var cp0=function(v,E){var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return n=v.input.delta(E)+v.config.startPosition,f=v.input.axis(E),x=n+70,y=v.element.style.opacity===""?1:v.element.style.opacity,_.m(Q,v.element.animate([{transform:"translate"+f+"("+n+"px)",opacity:y},{transform:"translate"+f+"("+x+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+f+"("+x+"px)";v.element.style.opacity="0";_.yQ(Q)})};var x3=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.scrollRate=3;v.autoScrollAnimationStart=0;v.autoScrollPaused=!1;v.autoScrollRafId=0;return v};
_.S(x3,_.L2);_.c=x3.prototype;_.c.created=function(){var v=this;this.boundAutoScrollHandler=function(E){v.autoScroll(E)}};
_.c.detached=function(){this.hostElement.removeEventListener("mouseout",_.uo(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.uo(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.uo(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.c.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.uo(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.uo(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.uo(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.uo(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.uo(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.uo(this,this.endAutoScroll)),this.endAutoScroll())};
_.c.autoScroll=function(v){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=v);var E;if(E=!this.autoScrollPaused&&this.scrollTarget)E=this.scrollTarget,E=E.scrollHeight-E.scrollTop!==E.clientHeight;E&&(E=1E3/this.scrollRate,v-=this.autoScrollAnimationStart,v>E&&(this.scrollTarget.scrollTop+=Math.ceil(v/E),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.c.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.c.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
x3.prototype.autoScrollEnabledChanged=x3.prototype.autoScrollEnabledChanged;_.k([_.H(),_.W("design:type",Object)],x3.prototype,"scrollRate",void 0);_.k([_.H(),_.W("design:type",Object)],x3.prototype,"scrollTarget",void 0);_.k([_.H(),_.W("design:type",Boolean)],x3.prototype,"autoScrollEnabled",void 0);_.k([_.On("autoScrollEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"autoScrollEnabledChanged",null);x3=_.k([_.Gw()],x3);_.pc_=[x3.prototype];var QwP;_.Yz(_.FK,"yt-avatar-stack-view-model",{props:{className:_.Kt,data:_.Kt,isOverlay:_.Kt,useMediumText:_.Kt,decorations:_.Kt,hideAvatar:_.Kt}});var DVP=_.p7({buttonRenderer:_.q8});_.Nw(HJb);_.uj(HJb,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var cS=function(){var v=_.g.apply(this,arguments)||this;v.hideJoinButtonBeforeSubscribed=_.Z("hide_join_button_before_subscribed");v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return v};
_.S(cS,_.g);_.c=cS.prototype;
_.c.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"}}}};
_.c.updateJoinButtonOverrides=function(){var v,E;(v=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(E=v.polymerController)==null||E.set("overrides",this.joinButtonOverrides);if(v=_.K(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))v.overrides=this.joinButtonOverrides};
_.c.handleButtonRefreshAction=function(v){if(v=_.C(v,_.TO1))this.set("data.membershipButton",v.membershipButton),this.notifyPath("data.membershipButton")};
_.c.onYtServiceRequestError=function(v){_.aN(this.hostElement,v.detail.error.message)};
_.c.handleUnsubscribeAction=function(){var v,E,n;((v=this.data)==null?void 0:(E=v.membershipButton)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.hK.Object.defineProperties(cS.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.subscriptionStateEntity)==null||!v.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.data)==null?void 0:v.membershipButton,n;v=(E==null?void 0:E.buttonRenderer)||_.C(E==null?void 0:(n=E.timedAnimationButtonRenderer)==null?void 0:n.buttonRenderer,_.qb);return(v==null?void 0:v.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(v==null?void 0:v.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(v==null?void 0:v.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
cS.prototype.onYtServiceRequestError=cS.prototype.onYtServiceRequestError;cS.prototype.updateJoinButtonOverrides=cS.prototype.updateJoinButtonOverrides;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],cS.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],cS.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cS.prototype,"data",void 0);_.k([_.A("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],cS.prototype,"hideJoin",null);_.k([_.H(),_.W("design:type",String)],cS.prototype,"subscribeKey",void 0);_.k([_.H({selectorArgs:["subscribeKey"],selector:_.Wi}),_.W("design:type",Object)],cS.prototype,"subscriptionStateEntity",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],cS.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.k([_.A("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],cS.prototype,"subscribed",null);_.k([_.A("subscribed","data.membershipButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],cS.prototype,"joinButtonOverrides",null);
_.k([_.On("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cS.prototype,"updateJoinButtonOverrides",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cS.prototype,"onYtServiceRequestError",null);cS=_.k([_.N({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],cS);
_.Dj()(cS,"ytd-video-owner-renderer",function(){if(QwP===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);QwP=v}v=QwP;return v},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});var XcK;var y9=function(){var v=_.g.apply(this,arguments)||this;v.buttonUpdate=_.Z("web_button_rework");v.dismissButtonOverrides=_.Z("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;v.forceDarkTheme=!1;v.forceLightTheme=!1;v.dynamicTextHeight=94;v.hasOverflowButton=!1;v.isInfeedModernization=!1;return v};
_.S(y9,_.g);_.c=y9.prototype;_.c.computeUrlImg=function(v){if(v)return _.AZ(v.thumbnails)};
_.c.getLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.c.getLogoClassName=function(v){return this.logoWithPadding(v)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.c.logoWithPadding=function(v){var E,n;return(v=(E=v.thumbnails)==null?void 0:(n=E[0])==null?void 0:n.height)&&v%31===0?!0:!1};
_.c.sendImpressionEndpoints=function(v){v.impressionEndpoints&&_.$Z(this.hostElement,v.impressionEndpoints)};
_.c.observeBasicPalette=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.colorData)==null?void 0:E.basicColorPaletteData;n?_.Q3(this.hostElement,n):_.Q3(this.hostElement,{})};
_.c.observeDataChanged=function(){var v;this.dynamicTextHeight=((v=this.data)==null?0:v.supplementalText)?74:94;var E;this.hasSupplementalText=!((E=this.data)==null||!E.supplementalText);if(_.Z("web_button_rework")){var n,f,x,y;v=(n=this.data)==null?void 0:(f=n.actionButton)==null?void 0:(x=f.buttonRenderer)==null?void 0:(y=x.colorData)==null?void 0:y.basicColorPaletteData;var Q,e,F;if(!((Q=this.data)==null?0:(e=Q.actionButton)==null?0:(F=e.buttonRenderer)==null?0:F.style)&&v){this.computeIsInfeedModernization(this.data)||
(v.borderColor=v.foregroundTitleColor);var b,l;this.set("data.actionButton.buttonRenderer",_.sh.unsafeClone((b=this.data)==null?void 0:(l=b.actionButton)==null?void 0:l.buttonRenderer))}}};
_.c.observeDataForCounterfactual=function(){if(_.Z("kevlar_banner_cf_extra_logging")){var v;((v=this.data)==null?0:v.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.c.computeSupplementalStyle=function(){var v;if((v=this.data)!=null&&v.supplementalText){var E,n,f;if((E=this.data)==null?0:(n=E.colorData)==null?0:(f=n.basicColorPaletteData)==null?0:f.foregroundActivatedColor)return v=_.p2(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+v+"; --yt-endpoint-hover-color:"+v+"; --yt-endpoint-visited-color:"+v+"; --yt-formatted-string-bold-font-weight:700;"}};
_.c.computeForcedDarkTheme=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.actionButton)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.style,x,y,Q;v=IhU(((x=this.data)==null?void 0:(y=x.colorData)==null?void 0:(Q=y.basicColorPaletteData)==null?void 0:Q.backgroundColor)||0);return f&&v};
_.c.computeForcedLightTheme=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.actionButton)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.style,x,y,Q;v=!IhU(((x=this.data)==null?void 0:(y=x.colorData)==null?void 0:(Q=y.basicColorPaletteData)==null?void 0:Q.backgroundColor)||0);return f&&v};
_.c.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.c.computeHasTitle=function(v){return!!v.title};
_.c.computeTitleMaxFontSize=function(v){return this.computeHasOverflowButton(v)?28:64};
_.c.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.c.computeIsInfeedModernization=function(){var v,E,n,f,x=(v=this.data)==null?void 0:(E=v.actionButton)==null?void 0:(n=E.buttonRenderer)==null?void 0:(f=n.colorData)==null?void 0:f.basicColorPaletteData;return(x==null?void 0:x.backgroundColor)===452984831||(x==null?void 0:x.backgroundColor)===218103808};
y9.prototype.observeDataForCounterfactual=y9.prototype.observeDataForCounterfactual;y9.prototype.observeDataChanged=y9.prototype.observeDataChanged;y9.prototype.observeBasicPalette=y9.prototype.observeBasicPalette;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],y9.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],y9.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],y9.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],y9.prototype,"buttonUpdate",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],y9.prototype,"hasSupplementalText",void 0);_.k([_.H(),_.W("design:type",Object)],y9.prototype,"dismissButtonOverrides",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Boolean)],y9.prototype,"hasTitle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.W("design:type",Object)],y9.prototype,"forceDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.W("design:type",Object)],y9.prototype,"forceLightTheme",void 0);_.k([_.H(),_.W("design:type",Object)],y9.prototype,"dynamicTextHeight",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Object)],y9.prototype,"hasOverflowButton",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.W("design:type",Object)],y9.prototype,"isInfeedModernization",void 0);_.k([_.On("data.colorData.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y9.prototype,"observeBasicPalette",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y9.prototype,"observeDataChanged",null);_.k([_.On("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y9.prototype,"observeDataForCounterfactual",null);y9=_.k([_.N({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],y9);
_.u(y9,"ytd-banner-promo-renderer",function(){if(XcK!==void 0)return XcK;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return XcK=v},{mode:1});var ehP;var FKO;var mtC;var pf=function(){return _.g.apply(this,arguments)||this};
_.S(pf,_.g);_.k([_.H(),_.W("design:type",Object)],pf.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);pf=_.k([_.N({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],pf);
_.u(pf,"ytd-hashtag-grid-tile-renderer",function(){if(mtC!==void 0)return mtC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mtC=v},{mode:1});var Q9=function(){return _.g.apply(this,arguments)||this};
_.S(Q9,_.g);Q9.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Q9.prototype.updateRichGridTrendingHashtagsVisibility=function(){var v,E;if(((v=this.data)==null||!v.isExpanded)&&(E=this.data)!=null&&E.tiles){v=this.data.tiles.length;E=v>this.richGridItemsPerRow?this.richGridItemsPerRow+1:v;var n=Math.ceil(v/E);this.fullyVisibleRows=v%E===1&&n===2?1:Math.min(n,2);this.isShowMoreVisible=this.fullyVisibleRows<n}};
Q9.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Q9.prototype.updateRichGridTrendingHashtagsVisibility=Q9.prototype.updateRichGridTrendingHashtagsVisibility;_.k([_.H(),_.W("design:type",Object)],Q9.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Number)],Q9.prototype,"fullyVisibleRows",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Q9.prototype,"isShowMoreVisible",void 0);_.k([_.H({selector:_.Fq,value:0}),_.W("design:type",Number)],Q9.prototype,"richGridItemsPerRow",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.k([_.On("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q9.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Q9=_.k([_.N({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Q9);
_.u(Q9,"ytd-hashtag-grid-shelf-renderer",function(){if(FKO!==void 0)return FKO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FKO=v},{mode:1});var wcO;var bPU;var XC=function(){var v=_.g.apply(this,arguments)||this;v.visibleVideos=[];v.hiddenVideos=[];v.modern=_.Z("web_modern_buttons");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(XC,_.g);_.c=XC.prototype;_.c.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.c.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"}}}};
_.c.dataChanged=function(){var v=this;this.requestElementsPerRow();var E,n;this.currentColorPalette=this.isDarkTheme?(E=this.data)==null?void 0:E.darkColorData:(n=this.data)==null?void 0:n.lightColorData;var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.IS(this,function(){v.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.c.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.c.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.c.computeIsFirstFeedItem=function(v){return v};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.c.getCurrentLogo=function(v,E){if(v)return E?v.darkLogoImage:v.lightLogoImage};
_.c.computeTitleStyle=function(v){var E;if((E=this.data)!=null&&E.title&&v&&v.textPrimary!==void 0)return"color:"+_.p2(v.textPrimary)+";"};
_.c.computeSubtitleStyle=function(v){var E;if((E=this.data)!=null&&E.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.p2(v.textSecondary)+";"};
_.c.computeDismissIconStyle=function(v){if(this.data&&this.data.dismissButton&&v&&v.textPrimary!==void 0)return"--yt-button-color:"+_.p2(v.textPrimary)+";"};
_.c.computeOverflowButtonStyle=function(v){if(this.data&&this.data.overflowButton&&v&&v.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.p2(v.textPrimary)+";--yt-spec-icon-active-other:"+_.p2(v.textPrimary)+";"};
_.c.computeBackgroundStyle=function(v){if(v&&this.data){var E="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var n=_.AZ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);n&&(E+='background-image:url("'+n+'");')}v.backgroundColor!==void 0&&(E+="background-color:"+_.Qt(v.backgroundColor)+";");return E}};
_.c.computeButton=function(){var v,E=Object.assign({},_.C((v=this.data)==null?void 0:v.showMoreButton,_.qb));if(this.modern&&E){E.style="STYLE_MONO_OUTLINE";var n;if(v=(n=this.currentColorPalette)==null?void 0:n.textPrimary)E.colorData={basicColorPaletteData:{foregroundTitleColor:v,borderColor:v}}}return E};
_.c.shouldShowBottomButton=function(v,E){return!(v==null?0:v.header)&&!(v==null||!v.primaryButton)&&E<3};
_.c.checkExpanded=function(v){this.isExpanded=v&&v.content?this.hiddenVideos.length===0:!0};
_.c.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.c.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.c.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.c.computeHasSectionHeader=function(v){return!!v.header};
_.c.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var v;if((v=this.data.primaryButton)==null?0:v.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 E;((E=this.data.dismissButton)==null?0:E.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var n,f;((n=this.data)==null?0:(f=n.primaryButton)==null?0:f.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.c.setVisibleVideos=function(v){if(this.data&&this.data.content)if(this.data.content.length){var E=this.data.content.length;this.data.header?v?(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.slimItemsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow-1),E))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.c.setHasMovieRenderer=function(){var v;if((v=this.data)!=null&&v.content){var E;this.hasMovieRenderer=!!_.C((E=this.data)==null?void 0:E.content[0],_.nq4)}else this.hasMovieRenderer=!1};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
_.c.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var v=_.p(this.hiddenMediaRenderers),E=v.next();!E.done;E=v.next())E.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(v=_.K(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&v.focus()}};
_.c.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.c.logoWithPadding=function(v){var E,n,f;return(v=(E=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(n=E.thumbnails)==null?void 0:(f=n[0])==null?void 0:f.height)&&v%31===0?!0:!1};
_.c.onUpdateElementsPerRowAction=function(v,E,n){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v);n&&this.slimItemsPerRow!==n&&(this.slimItemsPerRow=n)};
XC.prototype.slimItemsPerRowChanged=XC.prototype.slimItemsPerRowChanged;XC.prototype.elementsPerRowChanged=XC.prototype.elementsPerRowChanged;XC.prototype.dataChanged=XC.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],XC.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],XC.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],XC.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],XC.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],XC.prototype,"currentColorPalette",void 0);_.k([_.H(),_.W("design:type",Array)],XC.prototype,"visibleVideos",void 0);_.k([_.H(),_.W("design:type",Array)],XC.prototype,"hiddenVideos",void 0);
_.k([_.H(),_.W("design:type",Object)],XC.prototype,"primaryButton",void 0);_.k([_.H({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],XC.prototype,"elementsPerRow",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],XC.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],XC.prototype,"isExpanded",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],XC.prototype,"largeTitle",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],XC.prototype,"hasMovieRenderer",void 0);_.k([_.H(),_.W("design:type",Number)],XC.prototype,"slimItemsPerRow",void 0);_.k([_.H(),_.W("design:type",Boolean)],XC.prototype,"showLightVideoMetadata",void 0);_.k([_.H(),_.W("design:type",Boolean)],XC.prototype,"showDarkVideoMetadata",void 0);_.k([_.H(),_.W("design:type",Number)],XC.prototype,"videoMetadataColor",void 0);
_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],XC.prototype,"miniMode",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],XC.prototype,"isFirstFeedItem",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.W("design:type",Boolean)],XC.prototype,"hasSectionHeader",void 0);
_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],XC.prototype,"roundedContainer",void 0);_.k([_.$y("#visible-video-container ytd-rich-grid-media"),_.W("design:type",Array)],XC.prototype,"visibleMediaRenderers",void 0);_.k([_.$y("#hidden-video-container ytd-rich-grid-media"),_.W("design:type",Array)],XC.prototype,"hiddenMediaRenderers",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],XC.prototype,"modern",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XC.prototype,"dataChanged",null);_.k([_.On("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XC.prototype,"elementsPerRowChanged",null);_.k([_.On("slimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XC.prototype,"slimItemsPerRowChanged",null);
XC=_.k([_.N({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],XC);
_.u(XC,"ytd-brand-video-shelf-renderer",function(){if(bPU!==void 0)return bPU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bPU=v},{mode:1});var lW0;var e1=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(e1,_.g);_.c=e1.prototype;_.c.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.c.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"}}}};
_.c.dataChanged=function(){this.requestElementsPerRow();var v,E;this.currentColorPalette=this.isDarkTheme?(v=this.data)==null?void 0:v.darkColorData:(E=this.data)==null?void 0:E.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.c.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.c.computeIsFirstFeedItem=function(v){return v};
_.c.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(v),this.updateButtonPalette())};
_.c.shouldShowThumbnailInMetadata=function(v){return v<=1};
_.c.computeVideoMetadataColor=function(){if(this.data){var v;if((v=this.currentColorPalette)==null?0:v.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.c.computeTitleStyle=function(v){var E;if((E=this.data)!=null&&E.title&&v&&v.textPrimary!==void 0)return"color:"+_.p2(v.textPrimary)+";"};
_.c.computeSubtitleStyle=function(v){var E;if((E=this.data)!=null&&E.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.p2(v.textSecondary)+";"};
_.c.computeOverflowButtonStyle=function(v){var E;if(this.data&&this.data.overflowButton&&(v==null?0:(E=v.dismissButtonColorData)==null?0:E.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.p2(v.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.p2(v.dismissButtonColorData.foregroundTitleColor)+";"};
_.c.computeBackgroundStyle=function(v){if(v&&this.data){var E="";v.backgroundColor!==void 0&&(E+="background-color:"+_.Qt(v.backgroundColor)+";");return E}};
_.c.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.c.updateButtonPalette=function(){if(this.data){var v;if((v=this.data.primaryButton)==null?0:v.buttonRenderer){var E;if((E=this.currentColorPalette)==null?0:E.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var n;((n=this.currentColorPalette)==null?0:n.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)})}}};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
_.c.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.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")};
_.c.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
e1.prototype.elementsPerRowChanged=e1.prototype.elementsPerRowChanged;e1.prototype.dataChanged=e1.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],e1.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],e1.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],e1.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],e1.prototype,"currentColorPalette",void 0);_.k([_.H(),_.W("design:type",Object)],e1.prototype,"primaryButton",void 0);
_.k([_.H({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],e1.prototype,"elementsPerRow",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],e1.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],e1.prototype,"titleSize",void 0);_.k([_.H(),_.W("design:type",Number)],e1.prototype,"videoMetadataColor",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],e1.prototype,"miniMode",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],e1.prototype,"isFirstFeedItem",void 0);_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],e1.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Boolean)],e1.prototype,"hasOverflowButton",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"dataChanged",null);_.k([_.On("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"elementsPerRowChanged",null);e1=_.k([_.N({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],e1);
_.u(e1,"ytd-brand-video-singleton-renderer",function(){if(lW0!==void 0)return lW0;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return lW0=v},{mode:_.HE("kevlar_poly_si_batch_j070")?1:2});var swP;var rp0=_.qu(function(v){var E=v.data;return _.w(_.UZ,{data:function(){return E().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(E().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var n=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":n=88;break a;default:n=88}return n},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return E().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Xh"),aW_=_.qu(function(v){var E=v.metadataRow;
var n=v.delimiter;return _.w(_.cG,{each:function(){return E().textParts||[]},
keyBy:"INDEX"},function(f,x){return _.w(_.gF,null,_.w(_.nh,{text:f,noWrap:!0,userInput:!0}),_.w(PkO,{delimiter:n,max:function(){return E().textParts.length},
index:x}))})},"Yh"),PkO=_.qu(function(v){var E=v.delimiter;
var n=v.max;var f=v.index;return _.w(_.x6,{cond:function(){return(E==null?void 0:E())&&n()-1>f()},
then:function(){return _.w("span",null,E)}})},"Zh"),ZP6=_.qu(function(v){var E=v.data;
v={};return _.w("yt-profile-page-header-information-view-model",{class:_.W8("profile-page-header-information-view-model-wiz",(v["profile-page-header-information-view-model-wiz--mobile"]=!1,v))},_.w(_.x6,{cond:function(){return E().onTap},
then:function(){return _.w(_.Ed,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.F$(E().onTap)}},_.w(_.mI,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:rp0}))},
else:function(){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.w(_.mI,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:rp0}))}}),_.w("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.w(_.x6,{cond:function(){return E().onTap},
then:function(){return _.w(_.mI,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(n){var f=n.data;
return _.w(_.Ed,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.F$(f().onTap)}},_.w(_.nh,{text:function(){return f().title}}))}})},
else:function(){return _.w(_.mI,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(n){var f=n.data;
return _.w(_.nh,{text:function(){return f().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.w(_.mI,{data:function(){return E().metadata}},{profilePageHeaderMetadataViewModel:function(n){var f=n.data;
return _.w(_.x6,{cond:function(){return f().metadataRows},
then:function(x){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.w(_.cG,{each:x,keyBy:"INDEX"},function(y,Q){return _.w(_.gF,null,_.w(aW_,{metadataRow:y,delimiter:" \u2022 "}),_.w(PkO,{delimiter:" \u2022 ",max:function(){return x().length},
index:Q}))}))}})}})))},"$h");
ZP6.idomCompat=!0;_.Yz(ZP6,"yt-profile-page-header-information-view-model",{props:{data:_.Kt}});var FC=function(){return _.g.apply(this,arguments)||this};
_.S(FC,_.g);FC.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],FC.prototype,"data",void 0);FC=_.k([_.N({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],FC);
_.u(FC,"ytd-effect-pivot-header-view-model",function(){if(swP!==void 0)return swP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return swP=
v},{mode:1});var CkC;var mE=function(){return _.g.apply(this,arguments)||this};
_.S(mE,_.g);mE.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mE.prototype,"data",void 0);mE=_.k([_.N({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],mE);
_.u(mE,"ytd-source-pivot-header-renderer",function(){if(CkC!==void 0)return CkC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return CkC=v},{mode:1});_.Mnd=_.qu(function(v){var E=v.data;v=_.Ig();_.Ya(v,function(){return E().rendererContext});
var n=function(){var f;return _.dQ((f=E())==null?void 0:f.rendererContext)};
return _.w("content-list-item-view-model",{el:v,class:"ytContentListItemViewModelHost",role:function(){return n()?"listitem":void 0},
tabindex:function(){return n()?0:void 0}},_.w("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.w("div",{class:"ytContentListItemViewModelImageContainer"},_.w(_.x6,{cond:function(){return E().image},
then:function(f){return _.w(_.UZ,{data:f,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.w(_.mI,{data:function(){var f;
return(f=E())==null?void 0:f.avatar}},{avatarViewModel:_.XK})),_.w("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.w("div",{class:"ytContentListItemViewModelTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytContentListItemViewModelMetadata"},_.w(_.mI,{data:function(){return E().metadata}},{contentMetadataViewModel:function(f){return _.w(_.oPP,{data:f.data,
layout:1})}})))),_.w("div",{class:"ytContentListItemViewModelActionButton"},_.w(_.mI,{data:function(){var f;
return(f=E())==null?void 0:f.actionButton}},{buttonViewModel:_.C7,
toggleButtonViewModel:_.lS})))},"ai");_.Yz(_.qu(function(v){var E={},n={},f={},x={};return _.w("yt-card-view-model",{class:_.W8("ytCardViewModelHost",v.className,(E.ytCardViewModelOutline=function(){return v.data().cardStyle==="CARD_STYLE_OUTLINE"},E),(n.ytCardViewModelRaised=function(){return v.data().cardStyle==="CARD_STYLE_RAISED"||v.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},n),(f.ytCardViewModelTonal=function(){return v.data().cardStyle==="CARD_STYLE_TONAL"},f),(x.ytCardViewModelInverted=function(){return v.data().cardStyle===
"CARD_STYLE_INVERSE"},x))},_.w(_.mI,{data:function(){return v.data().background}},{cinematicContainerViewModel:function(y){return _.w(_.jAg,{data:y.data})}}),_.w("div",{class:"ytCardViewModelContentWrapper"},_.w(_.mI,{data:function(){return v.data().content}},{contentListItemViewModel:function(y){return _.w(_.Mnd,{data:y.data})}})),_.w(_.mI,{data:function(){return v.data().dismissAction}},{buttonViewModel:function(y){return _.w(_.C7,{data:y.data})}}))},"bi"),"yt-card-view-model",{props:{data:_.Kt,
className:_.Kt}});_.Yz(_.qu(function(v){var E=function(){return _.C(v.data().flowRoot,RN3)};
_.l5(function(){var n=E(),f=function(){},x=function(){};
if(n){var y,Q,e=(Q=_.C((y=n.steps)==null?void 0:y[0],_.Jvb))==null?void 0:Q.stepId;jN6(n,e||"");f=kH_(n);x=WRC(n)}_.Fp(function(){f();f=function(){};
x();x=function(){}})});
return _.w("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.w(_.pQP,{contentId:function(){return v.data().contentId}},function(){return _.w("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.w(_.x6,{cond:E,
then:function(n){return _.w(_.lu1,{data:n})}}))}))},"ci"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Kt}});_.Yz(_.qu(function(){return _.w("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.w(_.oHb,null)),_.w(_.puP,{data:{rows:1},isExploreHub:!0}))},"di"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Yz(_.qu(function(v){var E=v.data;var n=v.standardUnitMinWidth;v=_.Ig();var f=_.p((0,_.FBo)(E)),x=f.next().value,y=f.next().value,Q=function(){var F,b=(F=x())==null?void 0:F.contents;return b==null||b.length===0},e=function(){y(Object.assign({},x(),{contents:[]}))};
_.gt(v,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var F=_.C(E().chipsShelf,tiU);if(F!=null&&F!=null&&F.autoselectChipOnVisible){var b,l,r=_.C(F==null?void 0:(b=F.contents)==null?void 0:b[(l=F.autoselectedChipIndex)!=null?l:0],_.dR);r&&r.tapCommand&&_.lj(r.tapCommand)}}});
return _.w("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:v},_.w(_.pQP,{contentId:function(){return E().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.w("div",null,_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.w(_.mI,{data:function(){return E().header}},{sectionHeaderViewModel:function(F){return _.w(_.$f,{data:F.data,
disableHorizontalPadding:!0})}})),_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.w(_.mI,{data:function(){return E().chipsShelf}},{chipsShelfViewModel:function(F){return _.w(_.x51,{data:F.data,
callback:e,enableSingleChipSelection:!0})}})),_.w("div",null,_.w(_.x6,{cond:Q,
then:function(){return _.w("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.w(_.puP,{data:{rows:1},isExploreHub:!0}))}}),_.w(_.mI,{data:function(){var F;
return(F=x())==null?void 0:F.contents}},{richShelfRenderer:function(F){return _.w(_.eFo,{data:F.data,
isInnerShelf:!0,standardUnitMinWidth:n})}})))}))},"ei"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Kt,
standardUnitMinWidth:_.Kt}});var wH=function(){return _.g.apply(this,arguments)||this};
_.S(wH,_.g);
wH.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}}};
wH.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.k([_.h(_.PL),_.W("design:type",Object)],wH.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],wH.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wH.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Number)],wH.prototype,"standardUnitMinWidth",void 0);wH=_.k([_.N({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],wH);
_.u(wH,"ytd-rich-section-renderer",function(){if(wcO!==void 0)return wcO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return wcO=v},{mode:_.HE("kevlar_poly_si_batch_j029")?
1:2});_.Yz(_.$BR,"yt-profile-identity-info-view-model",{props:{data:_.Kt,hideDivider:_.Kt}});_.Yz(_.v36,"yt-page-header-view-model",{props:{data:_.Kt,noPadding:_.Kt,enableBanner:_.Kt,cinematicContainerTopbarOffset:_.Kt,allowCinematicContainerOverflow:_.Kt,displayAsSidebar:_.Kt,displayAsPanel:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=function(){var x;return(x=E().numColumns)!=null?x:2},f=function(){return n()>1?3:2};
v={};return _.w("ytd-rich-grid-group",{class:_.W8("ytdRichGridGroupHost",(v.ytdRichGridGroupHostFirstColumn=function(){return E().colIndex===0},v)),
style:_.tZ({"--ytd-rich-grid-group-num-columns":n,"--ytd-rich-grid-items-per-group":f})},_.w("div",{class:"ytdRichGridGroupContents"},_.w(_.mI,{data:function(){var x;return(x=E().contents)==null?void 0:x.slice(0,f())}},{richItemRenderer:function(x){return _.w(_.QE1,{data:x.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"fi"),"ytd-rich-grid-group",{props:{data:_.Kt}});var be=function(){var v=_.g.apply(this,arguments)||this;v.resizeOnObserverInit=!1;v.isInlinePreviewDisabled=_.Z("web_disable_inline_preview");v.disableStickyFilterBar=!1;v.transparentBackgroundChipsBar=!1;v.hideChipsBar=!1;v.isWatchDefaultLayout=!0;v.continuationShowButton=!1;v.rowReducedHorizontalMargin=!1;v.useCompactList=!1;v.manualDownloadsPresent=!1;v.smartDownloadsPresent=!1;v.shouldRenderDownloadsBanner=!1;v.hasOptedIntoSmartDownloads=!1;v.elementsPerRow=4;v.typographyBump=!1;v.showGnomeContents=
!1;v.showExploreHubContents=!1;v.slimItemsPerRow=1;v.pageLoadingFromNavigation=!1;v.loggingRefactor=_.Z("kevlar_rich_grid_logging_fix");v.resizeObserver=null;v.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"};v.rendererToTagNameMap=
new Map(Object.entries(v.contentMapping()).map(function(E){var n=_.p(E);E=n.next().value;n=n.next().value;return[E,n.component]}));
v.insertedContent=new Map;return v};
_.S(be,_.g);_.c=be.prototype;_.c.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var v=_.p(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=v.next();!E.done;E=v.next())E.value.useCompactList=this.useCompactList};
_.c.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var v=_.p(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=v.next();!E.done;E=v.next())E=E.value,E.sizing=this.sizing,E.typographyBump=this.typographyBump};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.c.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]]"}}}};
_.c.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}}};
_.c.attached=function(){document.addEventListener("yt-page-type-changed",_.uo(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.ka(this.resizeObserved,_.WG("rich_grid_resize_delay_ms",50),this)};
_.c.detached=function(){var v;(v=this.resizeObserver)==null||v.disconnect();document.removeEventListener("yt-page-type-changed",_.uo(this,this.onPageChange))};
_.c.insertRichSection=function(v){var E=v.richItemTargetId;v=v.richSectionRendererToInsert;E&&v&&(this.insertedContent.set(E,v),this.reflowContent())};
_.c.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.c.computeIsInlinePreviewEnabled=function(v,E,n){return _.Z("web_disable_inline_preview")?!1:!n&&_.s0_({miniplayerIsActive:v,miniplayerPlaybackState:E})};
_.c.computeSizing=function(){var v=_.rBL(this.data);if(v||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return v?this.useCompactList?"COMPACT":v:this.miniMode?"COMPACT":_.Z("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.c.updateItemMinAndMaxWidth=function(){var v=_.WG("rich_grid_max_item_width",500);v>0&&_.NQ(this.hostElement,{"--ytd-rich-grid-item-max-width":v+"px"});var E;v=this.getRichItemMinWidth((E=this.hostElement)==null?void 0:E.clientWidth);v>0&&_.NQ(this.hostElement,{"--ytd-rich-grid-item-min-width":v+"px"})};
_.c.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.c.resizeObserved=function(){_.kZ(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.c.navigateBackToHome=function(){_.Z("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var v=_.P().resolve(_.Y_).isOnWatch(),E,n=((E=_.ZKI(location.pathname))==null?void 0:E.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(n)||v)&&this.gnomeContents&&_.Z("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);v&&this.exploreHubContents&&_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.dG().dispatch(_.un({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.c.onPageChange=function(){var v=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Z("disable_chip_select_on_nav")||_.kZ(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.wh.addJob(function(){v.pageLoadingFromNavigation=!1;_.Z("disable_chip_select_on_nav")&&_.Z("h5_reset_cache_and_filter_before_update_masthead")&&v.resetCacheAndIsFilteredFeed();v.setMasthead();v.maybeSetBigYoodle();v.forceRefreshAndLog();v.terminateVideoPreview();_.Z("web_hide_gnome_until_user_navigates_back_to_home")&&
(v.dataChanged(),_.IS(v,function(){if(v.showGnomeContents){var E=Array.from(_.K(v.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){f=_.K(f).querySelector("ytd-rich-shelf-renderer");return!!f&&f.isGnomeShelf()});
if(E){E=E.offsetTop-v.contentsElement.offsetTop;var n=_.P().resolve(_.Y_).getCurrentPage();n&&n.getPageScrollingElement().scrollTo({top:E,behavior:"smooth"})}}}));
_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(v.dataChanged(),_.IS(v,function(){if(v.showExploreHubContents&&!_.Z("web_explore_hub_no_scroll")){var E=Array.from(_.K(v.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){return!!f.querySelector("ytd-talk-to-recs-flow-renderer")});
if(E){E=E.offsetTop-v.contentsElement.offsetTop;var n=_.P().resolve(_.Y_).getCurrentPage();n&&n.getPageScrollingElement().scrollTo({top:E,behavior:"smooth"})}}}))},8)):((_.Z("web_hide_gnome_until_user_navigates_back_to_home")||_.Z("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.c.dataChanged=function(){var v=this,E=_.WG("web_rich_grid_row_margin",0);E>0&&_.NQ(this.hostElement,{"--ytd-rich-grid-row-margin":E+"px"});_.kZ(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.IS(this,function(){v.updateRichItemGridPositions();v.contentsElement&&_.NQ(v.hostElement,{"--ytd-rich-grid-content-offset-top":v.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.c.initResizeObserver=function(){var v=this;if(window.ResizeObserver){var E;(E=this.resizeObserver)==null||E.disconnect();var n=!1;this.resizeObserver=new ResizeObserver(function(){if(n){var f;(f=v.resizeObserver)==null||f.disconnect();var x;(x=v.throttledOnResize)==null||x.fire();requestAnimationFrame(function(){var Q;(Q=v.throttledOnResize)==null||Q.fire();v.initResizeObserver()})}else if(n=!0,v.resizeOnObserverInit){var y;
(y=v.throttledOnResize)==null||y.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.c.contentLengthChanged=function(){if(_.Z("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.kZ(this.hostElement,"ytd-rich-item-index-update-action")};
_.c.updateElementsPerRow=function(){_.kZ(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.un({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.un({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.c.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.c.onRichShelfRendererCollapse=function(v){if(this.shownItems){var E=v.detail;v=this.shownItems.findIndex(function(f){var x,y;return((y=_.C(f==null?void 0:(x=f.richSectionRenderer)==null?void 0:x.content,_.J_w))==null?void 0:y.trackingParams)===E});
var n=v+1;v<0||n>=this.contentsElement.children.length||!this.shownItems[n].richItemRenderer||this.contentsElement.children[n].scrollIntoView({behavior:"smooth",block:"start"})}};
_.c.onSoftReloadPage=function(){this.scrollUpToTop()};
_.c.handleRerenderDownloadsData=function(){_.Z("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.c.handlePlaylistRemoveVideosAction=function(v){var E;if(((E=_.C(v,_.Txl))==null?0:E.setVideoIds)&&this.data&&this.data.contents){v=_.C(v,_.Txl).setVideoIds;for(E=this.data.contents.length-1;E>=0;){var n=_.C(this.data.contents[E],_.as);(n=n&&_.C(n.content,_.Uk))&&n.setVideoId&&v.includes(n.setVideoId)&&this.splice("data.contents",E,1);E--}this.updateIndices()}};
_.c.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".richItemRenderer.index",_.qD(String(v+1)))};
_.c.hasTopRowInlinePlayableVideoWithEndorsement=function(v){var E;return!((E=v.slice(0,this.getItemsPerRow()))==null||!E.some(function(n){var f;n=_.C(n==null?void 0:(f=n.richItemRenderer)==null?void 0:f.content,_.gOF);var x;return(n==null?void 0:n.inlinePlaybackEndpoint)&&(n==null?void 0:(x=n.thumbnailOverlays)==null?void 0:x.some(function(y){return y.thumbnailOverlayEndorsementRenderer}))}))};
_.c.refreshGridLayoutNew=function(v,E,n,f){var x=f.postsPerRow;var y=f.slimItemsPerRow;var Q=f.gameCardsPerRow;f=f.miniGameCardsPerRow;var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return!1;var F;if((F=this.data.responsiveContainerConfiguration)==null?0:F.responsiveSize){var b=_.mkN(this.data.responsiveContainerConfiguration,this.containerWidth),l;e=_.uS(Object.assign({},b,{standardUnitMinWidth:(l=this.data)==null?void 0:l.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&b.isCompactList)}else e=_.uS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(b=this.data)==null?void 0:b.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=e.typographyBump;l=!1;if(v||this.elementsPerRow!==e.numItems||this.postsPerRow!==x||this.slimItemsPerRow!==y||this.gameCardsPerRow!==
Q||this.miniGameCardsPerRow!==f||this.gutter!==e.gutter)l=this.elementsPerRow!==e.numItems,this.elementsPerRow=e.numItems,this.postsPerRow=x,this.slimItemsPerRow=y,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=f,this.gutter=e.gutter,this.itemWidth=e.itemWidth,this.reflowContent(E),_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":e.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(n);this.ytdReduxBehavior.dispatch(_.un({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:e.maxContainerWidth}));return l};
_.c.refreshGridLayout=function(v,E){var n,f=(n=this.hostElement)==null?void 0:n.clientWidth;this.containerWidth=this.adjustRichGridWidth(f,!0);var x;if((x=this.data)==null||!x.contents||!this.containerWidth)return v&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.Z("rg_pending_reflow_ks")&&(v=!0,this.pendingForceReflow=!1);n=this.getRichItemMinWidth(f);var y=this.isShortsPanel?146:194,Q=this.getMiniGameCardMinWidth(),e=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
f=n=this.calcElementsPerRow(n,e);(x=n<=3&&this.miniModeAllowed())&&(n=this.calcElementsPerRow(240,4));var F=this.calcMaxSlimElementsPerRow(n,e,this.isDefaultGrid);e=this.calcElementsPerRow(y,F);var b=this.calcElementsPerRow(this.isCompactGrid?y:154,F);y=this.calcElementsPerRow(this.isCompactGrid?y:Q,F);Q=!1;if(this.sizing)return this.refreshGridLayoutNew(v,E,x,{postsPerRow:f,slimItemsPerRow:e,gameCardsPerRow:b,miniGameCardsPerRow:y});if(v||this.elementsPerRow!==n||this.postsPerRow!==f||this.slimItemsPerRow!==
e||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==y)Q=this.elementsPerRow!==n,this.elementsPerRow=n,this.postsPerRow=f,this.slimItemsPerRow=e,this.gameCardsPerRow=b,this.miniGameCardsPerRow=y,this.reflowContent(E),this.updateElementsPerRow(),_.NQ(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)&&_.NQ(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(x);_.kZ(this.hostElement,"yt-rich-grid-layout-refreshed");return Q};
_.c.getRichItemMinWidth=function(v){var E=_.WG("rich_grid_min_item_width",310);if(!_.Z("kevlar_disable_min_width_override")){var n,f;E=(f=(n=this.data)==null?void 0:n.minItemWidth)!=null?f:E}return E+_.ev1(v)};
_.c.calcMaxSlimElementsPerRow=function(v,E,n){return(n===void 0?0:n)?v===1?2:v%2===0?_.Z("web_shorts_2_by_3_reduce_items_per_row")&&v>=4?v/2*3-1:v/2*3:_.Z("web_shorts_2_by_3_reduce_items_per_row")&&v>=3?v+1:v+2:E*2};
_.c.adjustRichGridWidth=function(v,E){var n=_.Z("disable_rich_grid_guide_compensation");if(!this.isWatch&&!n){n=_.P().resolve(_.jp(_.SR));var f=n==null?void 0:n.guideElement;if(!(!n||n.getData()||f!=null&&f.opened||n.getMiniGuideVisible()))if(n.canFitPersistentGuide(v)&&n.getGuideExpandsAutomatically()){var x,y,Q=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(y=x.getPropertyValue("--app-drawer-width"))==null?void 0:y.replace("px",""));v-=Q||0}else if(n.canFitMiniGuide(v)){var e;
x=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(e=Q.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:e.replace("px",""));v-=x||0}}v>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(v-=E?32:48));return v};
_.c.calcElementsPerRow=function(v,E){var n=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),f=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((n+f)/(v+f))||1,E)};
_.c.reflowContent=function(v){var E=this;if(!this.isReflowing){this.isReflowing=!0;var n,f,x=!!((n=this.data)==null?0:(f=n.contents)==null?0:f.some(function(M){return _.C(M,_.ty)}));
n=this.getItemsPerRow();var y;f=(y=this.data)==null?void 0:y.reflowOptions;v&&(_.FD("rgr_s"),_.IS(this,function(){_.FD("rgr_nrf")}));
v={};(y=_.K(this.hostElement).querySelector("#contents"))&&(v={contentElement:y,rendererToTagNameMap:this.rendererToTagNameMap});y=(y=this.data.contents)?y.slice():[];var Q=(_.Z("web_hide_gnome_behind_feed_filter_chip")||_.Z("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,e=_.Z("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,F=-1,b=-1;if(this.isHomePage&&e){for(e=0;e<y.length;e++){var l=void 0,r=void 0;_.C((l=y[e])==null?void 0:
(r=l.richSectionRenderer)==null?void 0:r.content,zN3)&&(b=e)}b>-1&&(this.exploreHubContents=y.splice(b,1))}if(this.isHomePage&&Q){for(b=0;b<y.length;b++)r=l=void 0,(e=_.C((l=y[b])==null?void 0:(r=l.richSectionRenderer)==null?void 0:r.content,_.J_w))&&Q&&(r=l=void 0,e=_.C((l=e)==null?void 0:(r=l.contents)==null?void 0:r[0],_.as),l=void 0,_.C((l=e)==null?void 0:l.content,_.dTX)&&(F=b));F>-1&&(this.gnomeContents=y.splice(F,1))}var a=Vi3(y,n,x,f,this.getRichGridStyle(),v,this.insertedContent);x=function(){E.shownItems=
a;E.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(a),_.IS(this,x)):x()}};
_.c.getFirstRowItems=function(v){for(var E=[],n=0;n<v.length;n++){var f=void 0,x=void 0,y=void 0,Q=void 0,e=void 0,F=void 0;if(((f=v[n])==null?void 0:(x=f.richItemRenderer)==null?void 0:x.rowIndex)===0||((y=v[n])==null?void 0:(Q=y.richGroupRenderer)==null?void 0:Q.rowIndex)===0||((e=v[n])==null?void 0:(F=e.richSectionRenderer)==null?void 0:F.rowIndex)===0)E.push(v[n]);else break}return E};
_.c.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.c.handleChipCloudChipSelectAction=function(v,E){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.Z("web_hide_gnome_behind_feed_filter_chip")&&(E?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.c.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.Z("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.c.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.Z("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.c.terminateVideoPreview=function(){_.kZ(this.hostElement,"yt-terminate-video-preview-action")};
_.c.updateRichItemGridPositions=function(){var v={gridData:{gridColumnCount:this.elementsPerRow}},E;if((E=this.data)==null?0:E.trackingParams)this.loggingRefactor?_.Tl().stateChanged(this.data.trackingParams,v):(E=_.lc())&&_.KH(E,_.tx(this.data.trackingParams),v);_.kZ(this.hostElement,"ytd-rich-item-index-update-action")};
_.c.miniModeAllowed=function(){return _.Z("disable_channels_mini_mode")?!1:this.isChannelPage};
_.c.getMiniGameCardMinWidth=function(){return 154};
_.c.updateMiniMode=function(v){this.miniMode=this.miniModeAllowed()&&v;this.ytdReduxBehavior.dispatch(_.un({type:"SET_RICH_GRID_MINI_MODE",payload:v}))};
_.c.isCurrentPage=function(){return location.pathname===this.pagePath};
_.c.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var v=_.P().resolve(_.Y_).getCurrentPage();v&&v.setScrollTop(0)}};
_.c.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.c.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.c.maybeSetBigYoodle=function(){var v,E=(v=this.data)==null?void 0:v.bigYoodle;this.bigYoodleData!==E&&(this.bigYoodleData=E)};
_.c.setMasthead=function(){var v;((v=this.data)==null?0:v.masthead)?this.mastheadData=this.data.masthead:_.Z("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.c.getRichGridStyle=function(){var v,E;return(E=(v=this.data)==null?void 0:v.style)!=null?E:"RICH_GRID_STYLE_UNKNOWN"};
_.c.onIsShortsGridChange=function(){var v=this.ytdReduxBehavior,E=v.dispatch,n=this.getRichGridStyle();E.call(v,_.un({type:"SET_RICH_GRID_STYLE",payload:n}))};
_.hK.Object.defineProperties(be.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var v=_.P().resolve(_.Y_).getCurrentPage(),E,n,f;return(((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_audio_pivot"||_.Z("web_enable_channel_pivot_panel")&&((n=this.data)==null?void 0:n.targetId)==="browse-feedFEsfv_channel_pivot"||_.Z("web_enable_effect_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_effect_pivot")&&(v==null?void 0:v.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Z("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 v;return!((v=this.data)==null?0:v.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.P().resolve(_.Y_).getCurrentPage())==null?void 0:v.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.P().resolve(_.Y_).getCurrentPage())==null?void 0:v.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 v;return this.hideChipsBar||(((v=this.data)==null?void 0:v.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.Z("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"&&!_.Z("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?0:v.enableContentSpecificAspectRatio)||((E=this.data)==null?0:(n=E.responsiveContainerConfiguration)==null?0:n.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.WG("web_continuation_handler_margin",0):0}}});
be.prototype.onIsShortsGridChange=be.prototype.onIsShortsGridChange;be.prototype.onReloadContinuationFinish=be.prototype.onReloadContinuationFinish;be.prototype.reflowContent=be.prototype.reflowContent;be.prototype.handleRerenderDownloadsData=be.prototype.handleRerenderDownloadsData;be.prototype.onRichShelfRendererCollapse=be.prototype.onRichShelfRendererCollapse;be.prototype.onRequestElementsPerRow=be.prototype.onRequestElementsPerRow;be.prototype.contentLengthChanged=be.prototype.contentLengthChanged;
be.prototype.dataChanged=be.prototype.dataChanged;be.prototype.onSizingChange=be.prototype.onSizingChange;be.prototype.onUseCompactListChange=be.prototype.onUseCompactListChange;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],be.prototype,"ironResizableBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],be.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],be.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],be.prototype,"componentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],be.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],be.prototype,"miniMode",void 0);_.k([_.H({value:[]}),_.W("design:type",Array)],be.prototype,"shownItems",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],be.prototype,"isReflowing",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],be.prototype,"isFilteredFeed",void 0);_.k([_.H({selector:_.IOQ}),_.W("design:type",Boolean)],be.prototype,"guideIsExpanded",void 0);
_.k([_.H({selectorArgs:["entitySelectorType"],selector:function(v,E){if(_.Z("kevlar_modern_downloads_page")&&E&&E!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var n=v.entities;E=_.pC(n);var f=_.QN(n),x=_.ig1(v),y=_.TR1(v);v=_.zrN(v);var Q=_.CME(n),e=_.ob(E);n=_.Xq(n);return _.cEL(E,f,Q,x,y,e,n,v);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return E=_.pC(v.entities),_.pr9(E);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return E=
_.r$E(v.entities),_.QnN(E);default:_.li(new _.yc("Error: entitySelectorType defined but not matched in selector.",v,E))}}}),
_.W("design:type",Object)],be.prototype,"entityDrivenRichGridData",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"resizeOnObserverInit",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"bigYoodleData",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"mastheadData",void 0);_.k([_.H(),_.W("design:type",Boolean)],be.prototype,"isInlinePreviewDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"disableStickyFilterBar",void 0);
_.k([_.H(),_.W("design:type",Object)],be.prototype,"transparentBackgroundChipsBar",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"hideChipsBar",void 0);_.k([_.H(),_.W("design:type",Object)],be.prototype,"isWatchDefaultLayout",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"continuationShowButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"rowReducedHorizontalMargin",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"useCompactList",void 0);_.k([_.H({selector:function(v){return _.QN(v.entities).length>0}}),
_.W("design:type",Object)],be.prototype,"manualDownloadsPresent",void 0);_.k([_.H({selector:function(v){return _.pC(v.entities).length>0}}),
_.W("design:type",Object)],be.prototype,"smartDownloadsPresent",void 0);_.k([_.H({selector:_.TR1}),_.W("design:type",Object)],be.prototype,"shouldRenderDownloadsBanner",void 0);_.k([_.H({selector:_.ig1}),_.W("design:type",Object)],be.prototype,"hasOptedIntoSmartDownloads",void 0);_.k([_.On("useCompactList"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onUseCompactListChange",null);
_.k([_.On("sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onSizingChange",null);_.k([_.H({selector:_.DbE}),_.W("design:type",Number)],be.prototype,"miniplayerPlaybackState",void 0);_.k([_.H({selector:_.mW}),_.W("design:type",Boolean)],be.prototype,"miniplayerIsActive",void 0);
_.k([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],be.prototype,"isInlinePreviewEnabled",void 0);_.k([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.W("design:type",String)],be.prototype,"sizing",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"elementsPerRow",void 0);
_.k([_.H(),_.W("design:type",Object)],be.prototype,"typographyBump",void 0);_.k([_.H(),_.W("design:type",Number)],be.prototype,"itemWidth",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],be.prototype,"headerElement",void 0);_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],be.prototype,"contentsElement",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"dataChanged",null);
_.k([_.Tw("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"contentLengthChanged",null);_.k([_.jk("yt-request-elements-per-row"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onRequestElementsPerRow",null);
_.k([_.jk("yt-rich-shelf-renderer-collapse"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],be.prototype,"onRichShelfRendererCollapse",null);_.k([_.Tw("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"handleRerenderDownloadsData",null);
_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],be.prototype,"entitySelectorType",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isSub",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isWatch",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isShortsPanel",null);_.k([_.H({reflectToAttribute:!0}),_.A("isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"reducedTopMargin",null);_.k([_.H({reflectToAttribute:!0}),_.A("data","isWatch","isWatchDefaultLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"noTopMargin",null);
_.k([_.H({reflectToAttribute:!0}),_.A("isInlinePreviewEnabled","shownItems"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"topRowEndorsement",null);_.k([_.A("data.header"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"hideHeader",null);_.k([_.jk("yt-rich-grid-reflow"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],be.prototype,"reflowContent",null);
_.k([_.jk("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onReloadContinuationFinish",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isSlimGrid",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isShortsGrid",null);
_.k([_.A("data","isSlimGrid","isShortsGrid"),_.H(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"noRichItemGutterMargins",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isShortsGridSlim",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isCompactGrid",null);
_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"isDefaultGrid",null);_.k([_.A("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"hideChipsBarOnHome",null);_.k([_.A("data.targetId"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"hideChipsBarOnWatch",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onIsShortsGridChange",null);_.k([_.A("data.enableContentSpecificAspectRatio"),_.H(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],be.prototype,"force16By9ThumbnailAspectRatio",null);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],be.prototype,"continuationTriggerOffset",null);be=_.k([_.N({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],be);
_.u(be,"ytd-rich-grid-renderer",function(){if(ehP!==void 0)return ehP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ehP=v},{mode:2});var SNC=_.qu(function(v){var E=v.thumbsUp;v=v.thumbsDown;var n=_.p(_.t7(!1,void 0,"OxPsH")),f=n.next().value,x=n.next().value;n=_.p(_.t7(!1,void 0,"V5vWne"));var y=n.next().value,Q=n.next().value;return _.w("div",{class:"ytwThumbsUpDownThumbs"},_.w(_.lS,{data:E,onToggle:function(e){x(e);y()&&Q(!1)},
buttonShapeOverrides:function(){return{toggled:f()}}}),_.w(_.lS,{data:v,
onToggle:function(e){Q(e);f()&&x(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}))},"gi");
SNC.idomCompat=!0;var qNb=_.qu(function(v){var E=function(){return v.data().pendingStateEntityKey||""},n=_.Bi(_.$VK,E),f=function(){var x;
if(!(x=v.disabled())){var y;x=!((y=n())==null||!y.isPendingResponse)}return x};
return _.w("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.w(_.cG,{each:function(){return v.data().chipData||[]},
keyBy:"REFERENCE"},function(x){return _.w(UtK,{data:x,disabled:f,pendingStateKey:E,onError:v.onError})}))},"hi"),UtK=_.qu(function(v){var E=_.Ig(),n=_.p(_.t7(!0,void 0,"HBREAe")),f=n.next().value,x=n.next().value,y=function(){return v.data().text.content},Q=_.ij(function(e){var F,b,l,r,a,M,U,d;
return _.X(function(Y){switch(Y.nextAddress){case 1:e.stopPropagation();if(v.disabled())return Y.return();b=String(Math.floor(((F=_.Lh())==null?void 0:F.getCurrentTime())||0)*1E3);l="youchat-"+Date.now();r=function(){_.mG(v.data().onClick||{});var V={continuationCommand:{token:v.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},O={inputComposerFormData:{clientMessageId:l,playerOffsetMs:b}};return new Promise(function(T,L){_.mG(V,{form:{formData:O},commandController:{onSuccess:function(xX,
t){T(t)},
onServerError:function(xX,t){L(t.error)}}})})};
a=_.LRp(v.pendingStateKey());a(!0);_.dVU("#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");x(!1);_.vW(Y,2);return _.m(Y,r(),4);case 4:_.qp(Y,3);break;case 2:M=_.cW(Y),(d=(U=v).onError)==null||d.call(U,M);case 3:a(!1),_.yQ(Y)}})});
return _.w(_.x6,{cond:f,then:function(){return _.w("div",{class:"ytwYouChatChipsDataChipWrapper"},_.w("button",{el:E,class:"ytwYouChatChipsDataChip","data-disabled":v.disabled,"on:click":Q,tabindex:0},y))}})},"ii");var JpM=_.qu(function(v){var E=v.data;return _.w("yt-conversation-resource-view-model",{class:_.W8("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.w(_.x6,{cond:function(){var n;return(n=E().conversationResourceData)==null?void 0:n.learningGuideData},
then:function(n){return _.w(_.cG,{each:function(){return n().sectionData||[]}},function(f){return _.w("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.w(_.nh,{text:function(){return f.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.w("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.w(_.nh,{text:function(){return f.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.w(_.nh,{text:function(){return f.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"ji");
JpM.idomCompat=!0;var KK0=_.qu(function(v){var E=function(){var V;return(V=v.data().text)==null?void 0:V.content},n=function(){var V,O;
return(V=v.data().webData)==null?void 0:(O=V.textResult)==null?void 0:O.content},f=_.P().resolve(_.CR),x=_.Gy(),y=function(){return v.data().chatResponseStyle},Q=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:v.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},e=function(){var V;
return v.data().webData||((V=v.data().text)==null?void 0:V.content)||v.data().videoResultsData||v.data().conversationResourceViewModel},F=function(){var V;
return(V=v.data().videoResultsData)==null?void 0:V.videoShelf},b=function(){var V;
return _.C(((V=v.data().videoResultsData)==null?void 0:V.videoShelf)||{},B8P)},l=function(){var V;
return(V=v.data().webData)==null?void 0:V.sourcesShelf},r=function(){var V;
return _.C(((V=v.data().webData)==null?void 0:V.sourcesShelf)||{},B8P)},a=function(){return _.C(v.data().conversationResourceViewModel||{},EdR)},M=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:v.data().thumbsDownViewModel&&v.data().thumbsUpViewModel},U=function(){return _.C(v.data().thumbsUpViewModel,_.bS)},d=function(){return _.C(v.data().thumbsDownViewModel,_.bS)};
_.mM(function(){requestAnimationFrame(function(){var V;(V=v.shouldAnimateIcon)!=null&&V.call(v)&&GH0(x.lottieEl)})});
var Y={};return _.w("you-chat-item-view-model",{class:_.W8("ytwYouChatItemViewModelYouChatItemViewModel",(Y.ytwYouChatItemViewModelHostNoPadding=function(){return!1},Y)),
"data-target-id":function(){return v.data().id||""}},_.w(_.x6,{cond:e,
then:function(){var V={};return _.w("div",{"aria-hidden":"true"},_.w(_.$z,{className:_.W8("ytwYouChatItemViewModelIcon",(V.ytwYouChatItemViewModelRtl=f==="rtl",V.ytwYouChatItemViewModelHidden=function(){return!(v.data().hideIcon||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:e())},V)),
animationName:"YOUCHAT_ICON",data:Q,animationRef:x}))}}),_.w(_.x6,{cond:e,
then:function(){var V={};return _.w("div",{class:_.W8("ytwYouChatItemViewModelHost",(V.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},V)),
role:"alert"},_.w(_.x6,{cond:E,then:function(O){return _.w(_.sD,{text:O})}}),_.w(_.x6,{cond:n,
then:function(O){return _.w(_.sD,{text:O})}}),_.w(_.x6,{cond:F,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.bB,{data:b,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.w(_.x6,{cond:l,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.bB,{data:r,hasPeek:!0,disableArrows:!1}))}}),_.w(_.x6,{cond:a,
then:function(){return _.w(JpM,{data:a})}}),_.w(_.x6,{cond:M,
then:function(){return _.w(SNC,{thumbsUp:U,thumbsDown:d})}}))}}),_.w(_.x6,{cond:function(){return v.data().chipsData},
then:function(V){return _.w(qNb,{data:V,disabled:v.pending,onError:v.onError})}}))},"ki");
KK0.idomCompat={callbacks:{onError:!0,onSend:!0}};var dt1=_.qu(function(v){var E=function(){return v.data().choiceSelectedText};
return _.w("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.w(_.x6,{cond:E,then:function(){return _.w("div",{class:"ytYouChatUserTurnChoiceSelected"},_.w(_.nh,{text:E}))}}),_.w("div",{class:"ytYouChatUserTurnUserMessage"},function(){return v.data().text}))},"li");var IW1=_.qu(function(v){var E=_.p((0,_.b$F)(v.data)).next().value;return _.w("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return v.data().targetId||""}},_.w(_.mI,{data:function(){return v.data().header}},{chipBarViewModel:_.R9l}),_.w(_.mI,{data:function(){return E().contents}},{accordionViewModel:_.VEw,
alertBannerViewModel:_.fP4,chatLoadingViewModel:_.f$_,chatUserTurnViewModel:dt1,learningJourneyLoaderViewModel:_.IPw,lockupViewModel:_.kx,youChatItemViewModel:function(n){return _.w(KK0,{data:n.data,pending:!1})}}))},"mi");_.Yz(_.qu(function(v){var E=_.p((0,_.b$F)(v.data)).next().value;return _.w("yt-section-list-renderer",{class:_.W8("ytSectionListRendererHost",v.className),"data-target-id":function(){return v.data().targetId||""}},_.w(_.mI,{data:function(){return E().contents}},{itemSectionRenderer:IW1}))},"ni"),"yt-section-list-renderer",{props:{data:_.Kt,
className:_.Ij}});var YNb;var hh3;var le=function(){return _.g.apply(this,arguments)||this};
_.S(le,_.g);_.k([_.H(),_.W("design:type",Object)],le.prototype,"data",void 0);le=_.k([_.p5({is:"yt-alert-renderer",disableElementRegistration:!0})],le);
_.u(le,"yt-alert-renderer",function(){if(hh3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;YNb===void 0&&(YNb=document.createElement("template"));var f=YNb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);hh3=v}v=hh3;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.dgx=function(v,E){var n,f;E=E===void 0?{}:E;var x,y,Q,e,F,b,l,r,a,M,U,d;return _.X(function(Y){switch(Y.nextAddress){case 1:x=E;y=x.shouldWrap===void 0?!0:x.shouldWrap;Q=x.skipTransitionTimeoutMs===void 0?300:x.skipTransitionTimeoutMs;e=x.beforeTransition;F=x.afterTransition;if(!y||!document.startViewTransition||document.visibilityState==="hidden")return Y.return(v());n=window.innerWidth;f=window.innerHeight;b=!1;(l=e)==null||l();_.vW(Y,2);r=document.startViewTransition(v);a=setTimeout(function(){r.skipTransition();
b=!0},Q);
return _.m(Y,r.ready,4);case 4:return clearTimeout(a),_.m(Y,r.finished,5);case 5:clearTimeout(a);(M=F)==null||M();_.qp(Y,0);break;case 2:U=_.cW(Y),(d=F)==null||d(),U&&!b&&document.visibilityState!=="hidden"&&n===window.innerWidth&&f===window.innerHeight&&_.mb(U),_.yQ(Y)}})};
_.bP=function(v){return v.watch.isTheaterMode};
_.Iq6=function(v){var E=_.oc("DIV");v&&(E.className=v);E.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";v=_.oc("DIV");_.T_F(v,"200px","200px");E.appendChild(v);document.body.appendChild(E);v=E.offsetWidth-E.clientWidth;_.fT(E);return v};
_.lP=function(){for(var v=Array(36),E=0,n,f=0;f<36;f++)f==8||f==13||f==18||f==23?v[f]="-":f==14?v[f]="4":(E<=2&&(E=33554432+Math.random()*16777216|0),n=E&15,E>>=4,v[f]=_.Lcl[f==19?n&3|8:n]);return v.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 Y8p=_.jU(['<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>']),
hqd=_.AcU(Y8p);hqd.setAttribute("style","display: none;");document.head.appendChild(hqd.content);_.s9=_.AME(_.Iq6);var Ae0;var V8U;var r8=function(){var v=_.g.apply(this,arguments)||this;v.icon=null;return v};
_.S(r8,_.g);r8.prototype.dismiss=function(){_.jK(this.hostElement,"yt-live-chat-error-message-dismiss")};
r8.prototype.computeIcon=function(v){return v&&v.iconType?"yt-icons:"+v.iconType.toLowerCase():"yt-icons:close"};
_.k([_.H(),_.W("design:type",Object)],r8.prototype,"data",void 0);_.k([_.H({computed:"computeIcon(data.icon)"}),_.W("design:type",Object)],r8.prototype,"icon",void 0);r8=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],r8);
_.u(r8,"yt-live-chat-error-message-renderer",function(){if(V8U===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Ae0===void 0&&(Ae0=document.createElement("template"));var f=Ae0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);V8U=v}v=V8U;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var g46,NUM,uEx,jI6,GL0,TUM,i6d,zdM,Rd3,Ui,teb,BU_,qz,vTb,ET6,nTx,oT6,f3x,xk0,cE_,yEp,prM,Qnd,XrO,eJd,F1x,mkd,wrU,bOO,l3p,snO,rEU,Jn,Pp1,a3x,ZO1,SF1,Uk_,qFP,JE3,K1M,dk0,CpK,Md6,YFM,hJ0,AEP,Vd0,Dkb,I3_,gTO;g46=function(v,E){return _.LH(v.entities,"timedMarkersListSyncEntity",E)};
NUM=function(v,E){return _.LH(v.entities,"liveReactionsDataEntity",E)};
uEx=function(v,E){v=_.LH(v.entities,"booleanEntity",E);return!(!v||!v.value)};
jI6=function(v,E){var n=_.lc();n&&v&&_.aQ(n,_.tx(v),E)};
_.O6C=function(){_.Z("web_watch_log_theater_mode")&&_.YNI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.kLO=function(v,E,n){if(!v.includes("START_TIME_PLACEHOLDER")||!v.includes("END_TIME_PLACEHOLDER"))return v;var f=new Date(0),x=new Date(0);f.setUTCMilliseconds(E);x.setUTCMilliseconds(n);return v.replace("START_TIME_PLACEHOLDER",_.CC(f,7)).replace("END_TIME_PLACEHOLDER",_.CC(x,7))};
_.W60=function(v){return v.watch.isWatchActive};
_.Mz=function(v){return v!=null&&v.watch?v.watch.isWatchFullscreen:!1};
_.$JR=function(v){return _.bP(v)||_.Mz(v)||_.HPs(v)};
_.L6K=function(v){return!_.$JR(v)};
_.ST=function(v){return v.watch.watchScrollTop};
GL0=function(v){return v.watch.isLiveChatCollapsed};
TUM=function(v){return v.watch.openEngagementPanels};
i6d=function(v,E){return _.LH(v.entities,"booleanEntity",E)};
zdM=function(){return function(v){_.Mu(_.n7("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:v}))}};
Rd3=function(v){switch(v){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}};
Ui=function(v,E,n){var f=_.F$(n);v&&E&&f&&v.getPlayerPromise().then(function(x){_.L3E(f)&&_.Fu();(new _.xF(x)).executeCommand(f,E);_.Z("continue_playback_on_desktop_companion_click")||x.pauseVideo()})};
teb=function(v){var E=_.Aq(),n;if(n=_.JM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;n=(f=n())==null?void 0:f.layoutId}else n=null;Ui(E,n,v)};
BU_=function(v){var E=_.Aq(),n;if(n=_.JM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;n=(f=n())==null?void 0:f.layoutId}else n=null;Ui(E,n,v)};
qz=function(v,E){var n=v<0?"-":"";v=Math.abs(v);var f=Math.floor(v/3600),x=Math.floor(v)%3600,y=Math.floor(x/60);x=Math.floor(x)%60;var Q="";(E===void 0?0:E)&&(Q="."+Math.round((v-Math.floor(v))*10));return f>0?n+f+":"+(y<10?"0"+y:""+y)+":"+(x<10?"0"+x:""+x)+Q:n+y+":"+(x<10?"0"+x:""+x)+Q};
vTb=function(v){var E=v.match(/[^0-9:\.]/g);if(E&&E.length>0)return null;v=v.split(":");if(v.length===0||v.length>3)return null;E=1;for(var n=0;v.length>0;){var f=v.pop();if(f===void 0)break;var x=Number(f);if(f===""||isNaN(x))return null;n+=x*E;E*=60}return n};
ET6=function(v,E,n,f){v=Math.max(n,v);E=Math.min(E,f-n);v+E>f?(n=f,v=n-E):n=v+E;return{start:v,end:n}};
nTx=function(v,E,n,f,x,y){v<n?v=n:v+x>f&&(v=f-x);E>f&&(E=f);E=Math.min(v+y,Math.max(v+x,E));return{start:v,end:E}};
oT6=function(v,E,n,f,x,y){E>f?E=f:E-x<n&&(E=n+x);v<n&&(v=n);v=Math.min(E-x,Math.max(E-y,v));return{start:v,end:E}};
f3x=function(v){return _.Z("web_transcript_cue_id_killswitch")?String(v):"ytd-transcript-renderer_"+v};
xk0=function(v){return _.Z("web_transcript_cue_id_killswitch")?!0:v.startsWith("ytd-transcript-renderer")};
cE_=function(v){var E=_.Aq(),n;if(n=_.JM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;n=(f=n())==null?void 0:f.layoutId}else n=null;Ui(E,n,v)};
yEp=function(v){v.style.height="auto";v.style.height=Math.min(v.scrollHeight||20,80)+"px"};
prM=function(v,E){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:E}}],insertByPositionInSection:{sectionTargetId:v,position:"INSERTION_POSITION_LAST"}}}]}}}};
Qnd=function(v){var E=_.Aq(),n;n=(n=_.JM("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.layoutId:null;Ui(E,n,v)};
XrO=function(v){var E=_.Aq(),n;n=(n=_.JM("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.layoutId:null;Ui(E,n,v)};
eJd=function(v,E){E=E===void 0?!1:E;if(v.simpleText)v=[{text:v.simpleText}];else{var n;v=((n=v.runs)!=null?n:[]).map(function(f){return Object.assign({},f)})}if(E)for(E=_.p(v),n=E.next();!n.done;n=E.next())n.value.bold=!0;
return v};
F1x=function(v){var E=v.startEndTimeTemplate,n=v.startTimeUtcMillis;v=v.endTimeUtcMillis;if(E&&n&&v)return _.qD(_.kLO(_.JC(E),Number(n),Number(v)))};
mkd=function(v,E){var n,f,x=v==null?void 0:(n=v.viewCount)==null?void 0:(f=n.videoViewCountRenderer)==null?void 0:f.shortViewCount;if(!E&&x)return x;var y,Q;return v==null?void 0:(y=v.viewCount)==null?void 0:(Q=y.videoViewCountRenderer)==null?void 0:Q.viewCount};
wrU=function(v,E){var n=v==null?void 0:v.relativeDateText;return!E&&n?[n,!0]:[v==null?void 0:v.dateText,!1]};
bOO=function(v,E,n,f,x){f=f===void 0?!0:f;x=x===void 0?"":x;var y=mkd(v,E),Q=_.p(wrU(v,E)),e=Q.next().value;Q=Q.next().value;E=E?v==null?void 0:v.sponsorsOnlyFirstTimeLongText:v==null?void 0:v.sponsorsOnlyFirstTimeShortText;var F=[];n&&y&&F.push(y);!n&&Q||!e||F.push(e);v=[].concat(_.s8(F),[E,v==null?void 0:v.stationName,v==null?void 0:v.rating,v?F1x(v):void 0,v==null?void 0:v.upNextProgramText,v==null?void 0:v.superTitleLink]).filter(function(b){return!!b});
n={runs:[]};for(y=0;y<v.length;y++)n.runs.push.apply(n.runs,_.s8(eJd(v[y],f))),y<v.length-1&&n.runs.push({text:" "+x+" ",bold:f});return n};
l3p=function(v){if(v)return{runs:[{text:v,bold:!0}]}};
snO=function(v){var E,n,f,x;if(v=v==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.results)==null?void 0:(x=f.results)==null?void 0:x.contents){var y,Q;return(Q=(y=v.find(function(e){return!!e.videoPrimaryInfoRenderer}))==null?void 0:y.videoPrimaryInfoRenderer)==null?void 0:Q.updatedMetadataEndpoint}};
rEU=function(v,E){var n;return(n=v.sourceConfigs)==null?void 0:n.find(function(f){return f.videoId===E})};
Jn=function(v){return v==="End of video"||v==="End of playlist"};
Pp1=function(v){var E,n,f,x;return(E=v.getWatchNextResponse())==null?void 0:(n=E.contents)==null?void 0:(f=n.twoColumnWatchNextResults)==null?void 0:(x=f.playlist)==null?void 0:x.playlist};
a3x=function(v){var E,n,f,x,y,Q;return(E=Pp1(v))==null?void 0:(n=E.playlistButtons)==null?void 0:(f=n.menuRenderer)==null?void 0:(x=f.topLevelButtons)==null?void 0:(y=x[0])==null?void 0:(Q=y.playlistLoopButtonRenderer)==null?void 0:Q.playlistLoopStateEntityKey};
ZO1=function(v){var E=_.P().resolve(_.SY),n;return(E=(n=_.C(E.getAutoplayEndpoint(),_.dM))==null?void 0:n.playlistId)&&E===v};
SF1=function(v,E,n,f,x){function y(){_.wh.cancelJob(Ku);var Q=CpK(E,n/v.getPlaybackRate()),e=Q.hours,F=Q.minutes;Q=(Q.seconds*1E3||6E4)/v.getPlaybackRate();v.setVideoTimeLeft(Md6(e,F));f&&v.getPlayerState()!==0&&v.setSleepTimerTimeLeft(Md6(e,F,!0));(e>0||F>0)&&!x&&(Ku=_.xa(_.wh,y,Q))}
_.wh.cancelJob(Ku);Ku=_.xa(_.wh,y)};
Uk_=function(v,E,n){function f(){_.wh.cancelJob(ds);var x=CpK(E,n),y=x.hours;x=x.minutes;var Q=6E4/v.getPlaybackRate();if(y>0||x>0)v.setSleepTimerTimeLeft(Md6(y,x,!0)),ds=_.xa(_.wh,f,Q)}
_.wh.cancelJob(ds);ds=_.xa(_.wh,f)};
qFP=function(v,E){var n=v.getVolume()/(E/500),f=function(x){_.wh.cancelJob(IL);var y=Math.floor(x-n);v.setVolume(y,!1);y>0&&(IL=_.xa(_.wh,function(){f(y)},500))};
_.wh.cancelJob(IL);IL=_.xa(_.wh,function(){f(v.getVolume())})};
JE3=function(v,E){_.wh.cancelJob(IL);E&&v.syncVolume()};
K1M=function(){var v={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.tQ("SLEEP_TIMER_DISRUPTED")}}}}};_.P().resolve(_.OO).resolveCommand(v)};
dk0=function(v){return(v.getDuration()-v.getProgressState().current)*1E3};
CpK=function(v,E){v=v+E-(0,_.gd)();if(v<=0)return{hours:0,minutes:0,seconds:0};var n=new I3_(0,0,0,0,0,0,v);v=n.getHours();E=n.getMinutes();n=n.getSeconds();n!==0&&E++;E!==0&&E%60===0&&(v++,E=0);return{hours:v,minutes:E,seconds:n}};
Md6=function(v,E,n){return v>0&&E>0?n?_.tQ("TIME_LEFT_HOURS_MINUTES",{hours:v.toString(),minutes:E.toString()}):_.tQ("TIME_HOURS_MINUTES",{hours:v.toString(),minutes:E.toString()}):v>0?n?_.Bq("TIME_LEFT_HOURS",v):_.Bq("TIME_HOURS",v):n?_.tQ("TIME_LEFT_MINUTES",{minutes:E.toString()}):_.tQ("TIME_MINUTES",{minutes:E.toString()})};
YFM=function(v,E){if(v.timelyActions)return v.timelyActions.find(function(n){var f;return((f=_.C(n,Yk))==null?void 0:f.cueRangeId)===E})};
hJ0=function(v){var E=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.vl(v);v.keyMap_.forEach(function(n,f){_.L1(E,f)||this.remove(f)},v)};
AEP=function(v,E){v.reloadContinuationItemsCommandMatcher=E};
_.hn=function(v,E){v.insertBefore(E,v.childNodes[0]||null)};
Vd0=function(v){if(v>=48&&v<=57||v>=96&&v<=106||v>=65&&v<=90||_.f9&&v==0)return!0;switch(v){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 _.oG;default:return!1}};
Dkb=function(v){if(v.altKey&&!v.ctrlKey||v.metaKey||v.keyCode>=112&&v.keyCode<=123)return!1;if(Vd0(v.keyCode))return!0;switch(v.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!_.oG;default:return v.keyCode<166||v.keyCode>183}};
I3_=function(v,E,n,f,x,y,Q){this.date=typeof v==="number"?new Date(v,E||0,n||1,f||0,x||0,y||0,Q||0):new Date(v&&v.getTime?v.getTime():_.Rr())};
_.tf(I3_,_.wg);_.c=I3_.prototype;_.c.getHours=function(){return this.date.getHours()};
_.c.getMinutes=function(){return this.date.getMinutes()};
_.c.getSeconds=function(){return this.date.getSeconds()};
_.c.getMilliseconds=function(){return this.date.getMilliseconds()};
_.c.getUTCDay=function(){return this.date.getUTCDay()};
_.c.getUTCHours=function(){return this.date.getUTCHours()};
_.c.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.c.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.c.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.c.setHours=function(v){this.date.setHours(v)};
_.c.setMinutes=function(v){this.date.setMinutes(v)};
_.c.setSeconds=function(v){this.date.setSeconds(v)};
_.c.setMilliseconds=function(v){this.date.setMilliseconds(v)};
_.c.setUTCHours=function(v){this.date.setUTCHours(v)};
_.c.setUTCMinutes=function(v){this.date.setUTCMinutes(v)};
_.c.setUTCSeconds=function(v){this.date.setUTCSeconds(v)};
_.c.setUTCMilliseconds=function(v){this.date.setUTCMilliseconds(v)};
_.c.add=function(v){_.wg.prototype.add.call(this,v);v.hours&&this.setUTCHours(this.date.getUTCHours()+v.hours);v.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+v.minutes);v.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+v.seconds)};
_.c.JSC$9127_toIsoString=function(v){var E=_.wg.prototype.JSC$9127_toIsoString.call(this,v);return v?E+"T"+_.zj(this.getHours(),2)+":"+_.zj(this.getMinutes(),2)+":"+_.zj(this.getSeconds(),2):E+"T"+_.zj(this.getHours(),2)+_.zj(this.getMinutes(),2)+_.zj(this.getSeconds(),2)};
_.c.equals=function(v){return this.getTime()==v.getTime()};
_.c.toString=function(){return this.JSC$9127_toIsoString()};
_.c.clone=function(){var v=new I3_(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.HO_=function(v){return _.un({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:v}})};
gTO=new _.z("imageTileRenderer");var NSK=new _.z("adGridCardCollectionViewModel");var ujC=new _.z("carouselTitleViewModel");var jn_=new _.z("ctaCarouselItemViewModel");var OO0=new _.z("textFieldViewModel");_.kb0=new _.z("engagementPanelHeaderShowNavigationButtonCommand");var W1R=new _.z("hideEngagementPanelScrimAction");var $k3=new _.z("setActivePanelItemAction");var L13=new _.z("showEngagementPanelScrimAction");var GbR=new _.z("updateEngagementPanelAction");var TSx=new _.z("updateSearchInVideoResultsAction");var iO1=new _.z("transcriptCueGroupRenderer");var zJ3=new _.z("transcriptCueRenderer");var RJO=new _.z("transcriptFooterRenderer");var td6=new _.z("engagementPanelAdSubtitleRenderer");var BS1=new _.z("videoDescriptionFantasySectionViewModel");var vuK=new _.z("deleteClipEngagementPanelCommand");var Eu0=new _.z("loopCommand");var nu1=new _.z("changeCreatorEndscreenVisibilityCommand");var oup=new _.z("liveChatCallForQuestionsRenderer");var fyM=new _.z("updateTimedMarkersSyncObserverCommand");var Yk=new _.z("timelyActionViewModel");var xc3=new _.z("timelyActionsOverlayViewModel");var cN3=new _.z("repeatChapterCommand");var yNM=new _.z("watchPlayerOverflowMenuCommand");var pJ3=new _.z("compositeVideoOverlayRenderer");var QMM=new _.z("sortFilterSubMenuRenderer");var XJR=new _.z("switchListItemViewModel");var e73=new _.z("inputComposerViewModel");var FT0=new _.z("transcriptEditSegmentCommand");var mc_=new _.z("transcriptUpdateSegmentTextCommand");var wJC=new _.z("transcriptSearchBoxRenderer");var bNM=new _.z("transcriptSegmentListRenderer");var lyp=new _.z("transcriptSegmentRenderer");_.sMp=new _.z("updateDateTextAction");var rNC=new _.z("updateTitleAction");var PuO=new _.z("updateViewershipAction");var ayb=new _.z("carouselLockupRenderer");var ZNM=new _.z("expandableVideoDescriptionBodyRenderer");var Cux=new _.z("videoDescriptionYouchatSectionViewModel");_.An=_.WG("kevlar_watch_page_horizontal_margin",24);_.MXU=_.WG("kevlar_watch_page_columns_top_padding",24);_.Svb=426+_.An*2;_.Vi=_.WG("kevlar_watch_two_column_width_threshold",1E3);_.D9=_.An*2;_.H3=_.WG("kevlar_watch_secondary_width",402);_.UcR=_.WG("kevlar_watch_secondary_max_width",600);_.qvO=_.WG("kevlar_watch_max_player_width",1280);_.JNC=_.WG("kevlar_watch_flexy_metadata_height",136);_.KTP=_.D9+310+_.An;_.dc0=_.D9+360+_.An;var Iyx={PAUSE_CHAT:18};var Yv0;var h7p;var gs=function(){return _.g.apply(this,arguments)||this};
_.S(gs,_.g);gs.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
gs.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var v=_.C(this.data.button,_.wQ);v&&(v.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.hK.Object.defineProperties(gs,{template:{configurable:!0,enumerable:!0,get:function(){if(h7p===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Yv0===void 0&&(Yv0=document.createElement("template"));var f=Yv0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);h7p=v}v=h7p;return v}}});
_.k([_.h(_.rm),_.W("design:type",Object)],gs.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({selectorArgs:["data.enabledEntityKey"],selector:uEx,observer:"onEnabledChange"}),_.W("design:type",Boolean)],gs.prototype,"enabled",void 0);_.k([_.H(),_.W("design:type",Object)],gs.prototype,"data",void 0);gs=_.k([_.p5({is:"yt-disableable-button-view-model",noInjection:!0})],gs);var ANO;var VXp;var Dc1=["transVert01","transVert02","transVert03"],HNb="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Nz=function(){var v=_.g.apply(this,arguments)||this;v.emojiManager=_.af;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};v.reactionBuckets=[];v.noEmojiIdentifier="NO_EMOJI";return v};
_.S(Nz,_.g);_.c=Nz.prototype;_.c.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.c.desktopFountainEmojiSizePxChanged=function(){_.NQ(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.c.createUserReactionAnimation=function(v){this.createEmojiAnimation(v,!0)};
_.c.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var v;((v=this.data)==null?0:v.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.n7("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.s8(this.emojiContainer.children)).forEach(function(E){E.remove()})};
_.c.detached=function(){this.cleanupFountain()};
_.c.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var v;this.reactionBuckets=_.sh.unsafeClone((v=this.emojiFountainData)==null?void 0:v.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.c.processEmojiBucket=function(v){var E=this;if(this.reactionBuckets&&!(v>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var n=this.reactionBuckets[v];this.generateEmojiAnimations(n);if(v<this.reactionBuckets.length-1){var f;if(n==null?0:(f=n.duration)==null?0:f.seconds)this.emojiBucketTimerId=setTimeout(function(){E.processEmojiBucket(v+1)},Number(n.duration.seconds)*1E3)}}};
_.c.generateEmojiAnimations=function(v){var E=this,n=this.getRandomEmojiIdFromBucketWithOverride(v);if(n&&n!==this.noEmojiIdentifier){var f=0;v.targetEps?(f=this.linearInterpolateBounded(1,20,100,12,v.emojiSizeIndex||0),this.createEmojiAnimation(n,!1,v.emojiAnimationMs,f),f=this.getEmojiDelayMsFromTargetEps(v.targetEps)):(this.createEmojiAnimation(n),f=this.getEmojiDelayMsFromDistribution(v.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){E.generateEmojiAnimations(v)},f)}};
_.c.getRandomEmojiIdFromBucketWithOverride=function(v){if(!(v&&v.reactionsData&&v.reactionsData.length&&v.totalReactions))return this.noEmojiIdentifier;for(var E=v.totalReactions,n=1,f=_.p(v.reactionsData),x=f.next();!x.done;x=f.next())x=x.value,(x.reactionWeightOverride||x.reactionWeightOverride===0)&&x.reactionCount&&(E-=x.reactionCount,n-=x.reactionWeightOverride);f=!0;n<0&&(f=!1,E=v.totalReactions,n=1);if(f&&n>0&&E===0)if(n===1){x=0;for(var y=_.p(v.reactionsData),Q=y.next();!Q.done;Q=y.next())Q=
Q.value,Q.reactionCount&&Q.reactionCount>0&&x++;x=1/x;y=_.p(v.reactionsData);for(Q=y.next();!Q.done;Q=y.next())Q.value.reactionWeightOverride=x}else for(x=1/(1-n),y=_.p(v.reactionsData),Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q.reactionWeightOverride&&(Q.reactionWeightOverride*=x);x=Math.random();y=0;Q=_.p(v.reactionsData);for(var e=Q.next();!e.done;e=Q.next())if(e=e.value,e.reactionCount&&(y=(e.reactionWeightOverride||e.reactionWeightOverride===0)&&f?y+e.reactionWeightOverride:y+n*e.reactionCount/
E,y>x&&(e.reactionCount--,v.totalReactions--,e=this.reactionItemToEmojiString(e),e!==this.noEmojiIdentifier)))return e;return this.noEmojiIdentifier};
_.c.reactionItemToEmojiString=function(v){if(v.unicodeEmojiId)return v.unicodeEmojiId;if(v.emoteId)return v.emoteId;if(v.videoReactionType)switch(v.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.c.createEmojiAnimation=function(v,E,n,f){E=E===void 0?!1:E;this.lastEmojiRequestedForTesting=v;var x=v.startsWith("yt-icons:"),y=_.ro(this.emojiManager,v);if(y||x){var Q=document.createElement("emoji");Q.classList.add("yt-emoji-fountain-view-model");Q.classList.add(Dc1[Math.floor(Math.random()*Dc1.length)]);var e=document.createElement("div");e.classList.add("yt-emoji-fountain-view-model");e.classList.add("horizontal-container");e.classList.add(HNb[Math.floor(Math.random()*HNb.length)]);E?(n=document.createElement("div"),
n.classList.add("user-reaction-bubble"),n.classList.add("yt-emoji-fountain-view-model"),e.appendChild(n)):(n&&(Q.style.animationDuration=n+"ms",e.style.animationDuration=n+"ms"),f&&(Q.style.width=f+"px",Q.style.height=f+"px"));x?(x=document.createElement("yt-icon"),x.polymerController.icon=v,f&&(x.style.width=f+"px",x.style.height=f+"px"),v=x):v=this.emojiManager.createEmoji(y,!1);v.classList.add("yt-emoji-fountain-view-model");e.appendChild(v);Q.appendChild(e);this.emojiContainer.appendChild(Q);
Q.addEventListener("animationend",function(){Q.remove()});
var F,b;if((F=this.data)==null?0:(b=F.loggingDirectives)==null?0:b.trackingParams)E=E?_.ci(183501):_.ci(183500),jI6(this.data.loggingDirectives.trackingParams,E),_.ELN(E);setTimeout(function(){Q&&Q.remove()},2E3)}};
_.c.getEmojiDelayMsFromDistribution=function(v){return Math.random()*(v||1)*1E3};
_.c.getEmojiDelayMsFromTargetEps=function(v){return Math.random()*2*(1/v)*1E3};
_.c.linearInterpolateBounded=function(v,E,n,f,x){x=Math.min(Math.max(x,v),n);return(E*(n-x)+f*(x-v))/(n-v)};
Nz.prototype.onEmojiFountainDataEntityUpdate=Nz.prototype.onEmojiFountainDataEntityUpdate;Nz.prototype.desktopFountainEmojiSizePxChanged=Nz.prototype.desktopFountainEmojiSizePxChanged;Nz.prototype.isActiveChanged=Nz.prototype.isActiveChanged;_.k([_.H(),_.W("design:type",_.sp)],Nz.prototype,"emojiManager",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],Nz.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Nz.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Nz.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(v,E){return _.LH(v.entities,"emojiFountainDataEntity",E)}}),
_.W("design:type",Object)],Nz.prototype,"emojiFountainData",void 0);_.k([_.H(),_.W("design:type",Boolean)],Nz.prototype,"isActive",void 0);_.k([_.On("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nz.prototype,"isActiveChanged",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Nz.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",String)],Nz.prototype,"lastEmojiRequestedForTesting",void 0);
_.k([_.H({value:function(){return _.WG("desktop_fountain_emoji_size_px",20)}}),
_.W("design:type",Number)],Nz.prototype,"desktopFountainEmojiSizePx",void 0);_.k([_.On("desktopFountainEmojiSizePx"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nz.prototype,"desktopFountainEmojiSizePxChanged",null);_.k([_.Wp("#emoji-container"),_.W("design:type",HTMLElement)],Nz.prototype,"emojiContainer",void 0);
_.k([_.On("emojiFountainData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nz.prototype,"onEmojiFountainDataEntityUpdate",null);Nz=_.k([_.p5({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Nz);
_.u(Nz,"yt-emoji-fountain-view-model",function(){if(VXp===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ANO===void 0&&(ANO=document.createElement("template"));var f=ANO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);VXp=v}v=VXp;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var guO;var NZR;var uD=function(){return _.g.apply(this,arguments)||this};
_.S(uD,_.g);uD.prototype.onChoiceChanged=function(){this.data&&_.NQ(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
uD.prototype.onChoiceChanged=uD.prototype.onChoiceChanged;_.k([_.H(),_.W("design:type",Object)],uD.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uD.prototype,"onChoiceChanged",null);uD=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],uD);
_.u(uD,"yt-live-chat-banner-poll-choice",function(){if(NZR===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;guO===void 0&&(guO=document.createElement("template"));var f=guO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);NZR=v}v=NZR;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var ur6;var jMd;var jT=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework_with_live");v.small=!1;return v};
_.S(jT,_.g);jT.prototype.computeIsSmall=function(){var v;return((v=this.buttonOverrides)==null?void 0:v.size)==="S"};
jT.prototype.computeId=function(){return this.data&&this.data.targetId};
_.k([_.h(_.Ps.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],jT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],jT.prototype,"id",void 0);_.k([_.H(),_.W("design:type",Object)],jT.prototype,"buttonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],jT.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jT.prototype,"modern",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.W("design:type",Object)],jT.prototype,"small",void 0);jT=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-button"})],jT);
_.u(jT,"yt-live-chat-button",function(){if(jMd===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ur6===void 0&&(ur6=document.createElement("template"));var f=ur6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);jMd=v}v=jMd;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var ONM;var kFx;var Oi=function(){var v=_.g.apply(this,arguments)||this;v.inCollapsedBanner=!1;v.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};v.questionButtonOverrides={style:"mono",type:"filled"};return v};
_.S(Oi,_.g);_.c=Oi.prototype;_.c.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]]"}}}}}};
_.c.onContextMenuButtonClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
_.c.onYtRendererstamperFinished=function(){this.menuButton=_.K(this.hostElement).querySelector("#menu-button")};
_.c.dataChanged=function(){var v,E;if((E=_.C((v=this.data)==null?void 0:v.overflowMenuButton,_.qb))==null?0:E.command)this.data.contextMenuEndpoint=_.C(this.data.overflowMenuButton,_.qb).command};
_.c.onButtonClick=function(){var v,E=_.C((v=this.data)==null?void 0:v.askQuestionButton,_.qb);if(E){if(E.trackingParams&&(v=_.tx(E.trackingParams))){var n=_.lc();n&&_.qx(n,v)}_.jK(this.hostElement,"innertube-command",E.command)}};
Oi.prototype.onYtRendererstamperFinished=Oi.prototype.onYtRendererstamperFinished;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],Oi.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],Oi.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.H({observer:"dataChanged"}),_.W("design:type",Object)],Oi.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Oi.prototype,"inCollapsedBanner",void 0);_.k([_.H(),_.W("design:type",Object)],Oi.prototype,"buttonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],Oi.prototype,"questionButtonOverrides",void 0);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Oi.prototype,"onYtRendererstamperFinished",null);
Oi=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Oi);
_.u(Oi,"yt-live-chat-call-for-questions-renderer",function(){if(kFx===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ONM===void 0&&(ONM=document.createElement("template"));var f=ONM;n.call(E,f.content.cloneNode(!0),v.content.firstChild);kFx=v}v=kFx;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var WTd={};WTd.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 v=this;window.requestAnimationFrame(function(){v.restoreFocusNode_||(v.restoreFocusNode_=document.activeElement);var E=_.nC1(v.hostElement);E.length&&E[E.length-1].focus()})},
isAttachedChanged_:function(v,E){v?this.focusChild_():E&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(v){this.hidden||_.MQ(v).indexOf(this.hostElement)!==-1||(v.stopPropagation(),this.focusChild_())}};var $cC;var LT3;var kk=function(){return _.g.apply(this,arguments)||this};
_.S(kk,_.g);kk.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
kk.prototype.onClick=function(v){v.target!==this.confirmButton&&v.target!==this.cancelButton&&(this.hidden=!0)};
_.k([_.Wp("#confirm_button"),_.W("design:type",Object)],kk.prototype,"confirmButton",void 0);_.k([_.Wp("#cancel_button"),_.W("design:type",Object)],kk.prototype,"cancelButton",void 0);_.k([_.H(),_.W("design:type",GFO)],kk.prototype,"data",void 0);_.k([_.H({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],kk.prototype,"hidden",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(WTd.YtLiveChatDialogBehavior),_.W("design:type",Object)],kk.prototype,"ytLiveChatDialogBehavior",void 0);kk=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],kk);
var GFO=_.u(kk,"yt-live-chat-dialog-renderer",function(){if(LT3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;$cC===void 0&&($cC=document.createElement("template"));var f=$cC;n.call(E,f.content.cloneNode(!0),v.content.firstChild);LT3=v}v=LT3;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var TZ6;var iNC,z7M=function(){if(iNC!==void 0)return iNC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;TZ6===void 0&&(TZ6=document.createElement("template"));var f=TZ6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return iNC=v};var R7M;var tXM;var W3=function(){var v=_.g.apply(this,arguments)||this;v.tooltip=null;v.data=null;v.id="";v.active=!1;v.icon="";v.disabled=!1;v.showTooltip=!1;v.useToggledActiveState=!0;v.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return v};
_.S(W3,_.g);_.c=W3.prototype;
_.c.dataChanged=function(){var v;((v=this.data)==null?0:v.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,_.gn)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var E;if((E=this.data)==null?0:E.disabled)this.disabled=!0};
_.c.computeId=function(v){return v};
_.c.computeIcon=function(v,E){if(!v)return"";if(this.useToggledActiveState)return"yt-icons:"+v.toLowerCase();var n,f;return E&&((n=this.data)==null?0:(f=n.toggledIcon)==null?0:f.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+v.toLowerCase()};
_.c.logPDGEntryPoint=function(){_.sfX(_.$t("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")};
_.c.immediatelyShowTooltip=function(){var v=_.K(this.hostElement).querySelector("#tooltip");v.animationDelay=0;v.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};v.show()};
_.c.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.c.onClick=function(v){var E;((E=this.data)==null?0:E.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(),v.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.jK(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.c.computeShowTooltip=function(v,E){return!!(v&&v.tooltip&&E)};
_.c.maybeUpdateTooltipText=function(){var v=this,E;if((E=this.data)==null?0:E.tooltip){var n=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.gn)(v.tooltip).textContent=n},250)}};
_.c.handleLiveChatActions=function(v){var E=this;v.length&&(this.id!=="creator"&&this.id!=="product-picker"||v.forEach(function(n){(n=E.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",n))&&n.durationSec===n.fullDurationSec&&E.startBubble(E.colorFromDecimal(n.startBackgroundColor))}))};
_.c.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.c.startBubble=function(v){_.NQ(this.hostElement,{"--yt-live-chat-monetization-button-glow":v});this.hostElement.setAttribute("bubble","")};
_.c.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.c.colorFromDecimal=function(v){typeof v==="string"&&(v=Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
W3.prototype.onAnimationEnd=W3.prototype.onAnimationEnd;W3.prototype.disabledChanged=W3.prototype.disabledChanged;W3.prototype.dataChanged=W3.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],W3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.Ps.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],W3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],W3.prototype,"data",void 0);_.k([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],W3.prototype,"id",void 0);_.k([_.H({notify:!0,reflectToAttribute:!0}),_.W("design:type",Object)],W3.prototype,"active",void 0);
_.k([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.W("design:type",Object)],W3.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],W3.prototype,"disabled",void 0);_.k([_.H({computed:"computeShowTooltip(data, disabled)"}),_.W("design:type",Object)],W3.prototype,"showTooltip",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],W3.prototype,"useToggledActiveState",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"dataChanged",null);_.k([_.On("disabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"disabledChanged",null);_.k([_.jk("animationend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],W3.prototype,"onAnimationEnd",null);
W3=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],W3);
_.u(W3,"yt-live-chat-icon-toggle-button-renderer",function(){if(tXM===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;R7M===void 0&&(R7M=document.createElement("template"));var f=R7M;n.call(E,f.content.cloneNode(!0),v.content.firstChild);tXM=v}v=tXM;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var BZd;var vBp;var $k=function(){return _.g.apply(this,arguments)||this};
_.S($k,_.g);$k.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k([_.H(),_.W("design:type",Object)],$k.prototype,"data",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);$k=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],$k);
_.u($k,"yt-live-chat-message-input-prompt-header-renderer",function(){if(vBp===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;BZd===void 0&&(BZd=document.createElement("template"));var f=BZd;n.call(E,f.content.cloneNode(!0),v.content.firstChild);vBp=v}v=vBp;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var EBO;var nBO;var oB_;var fc0;var xyO;var c5b;var Lu=function(){return _.g.apply(this,arguments)||this};
_.S(Lu,_.g);_.k([_.H(),_.W("design:type",Object)],Lu.prototype,"data",void 0);Lu=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Lu);
_.u(Lu,"yt-live-chat-message-subtext-renderer",function(){if(c5b===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;xyO===void 0&&(xyO=document.createElement("template"));var f=xyO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);c5b=v}v=c5b;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Gf=function(){var v=_.g.apply(this,arguments)||this;v.subtextOnBottom=!1;v.buttonOverrides={style:"mono",type:"tonal"};return v};
_.S(Gf,_.g);Gf.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Gf.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Gf.prototype,"subtextOnBottom",void 0);_.k([_.H(),_.W("design:type",Object)],Gf.prototype,"buttonOverrides",void 0);
Gf=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Gf);
_.u(Gf,"yt-live-chat-message-renderer",function(){if(fc0===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;oB_===void 0&&(oB_=document.createElement("template"));var f=oB_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);fc0=v}v=fc0;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var y50;var pOP;var Tf=function(){var v=_.g.apply(this,arguments)||this;v.isRemovable=!1;v.hasPrefilledText=!1;v.isInputDirty=!1;v.overCharacterLimit=!1;v.underCharacterLimit=!1;v.showErrorMessage=!1;return v};
_.S(Tf,_.g);_.c=Tf.prototype;_.c.computeId=function(){return this.data.id};
_.c.computeInputData=function(){return this.data.inputData};
_.c.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.c.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.c.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.c.getLiveChatRichMessageInput=function(){return _.K(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.c.clearInput=function(){_.K(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.c.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.c.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.c.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.c.handleTextInputCharCountChanged=function(v){v=v.detail&&v.detail.characterCount;v!==void 0&&(this.characterCount=v,v!==0&&(this.isInputDirty=!0))};
_.c.onInputFocusOut=function(){this.isInputDirty=!0};
_.c.onClickCloseButton=function(){_.jK(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Tf.prototype.handleTextInputCharCountChanged=Tf.prototype.handleTextInputCharCountChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Tf.prototype,"data",void 0);_.k([_.H({computed:"computeId(data.id)"}),_.W("design:type",String)],Tf.prototype,"id",void 0);_.k([_.H({computed:"computeInputData(data.inputData)"}),_.W("design:type",Object)],Tf.prototype,"inputData",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.W("design:type",Object)],Tf.prototype,"isRemovable",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.W("design:type",Object)],Tf.prototype,"hasPrefilledText",void 0);_.k([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.W("design:type",Number)],Tf.prototype,"charactersRemaining",void 0);
_.k([_.H(),_.W("design:type",Number)],Tf.prototype,"characterCount",void 0);_.k([_.H(),_.W("design:type",Object)],Tf.prototype,"isInputDirty",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.W("design:type",Object)],Tf.prototype,"overCharacterLimit",void 0);_.k([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.W("design:type",Object)],Tf.prototype,"underCharacterLimit",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.W("design:type",Object)],Tf.prototype,"showErrorMessage",void 0);_.k([_.jk("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Tf.prototype,"handleTextInputCharCountChanged",null);
Tf=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Tf);
_.u(Tf,"yt-live-chat-poll-editor-input",function(){if(pOP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;y50===void 0&&(y50=document.createElement("template"));var f=y50;n.call(E,f.content.cloneNode(!0),v.content.firstChild);pOP=v}v=pOP;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var QEx;var XO3;var eFM={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},iD=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_button_rework_with_live");v.closeButtonOverrides={iconPosition:"icon-only"};v.startButtonOverrides={style:"mono",type:"filled"};v.addOptionButtonOverrides={style:"mono",type:"text"};return v};
_.S(iD,_.g);_.c=iD.prototype;
_.c.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"}}}}};
_.c.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var v;_.C((v=this.data)==null?void 0:v.startButton,_.qb)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.c.computeId=function(){return this.data&&this.data.id||""};
_.c.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.c.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.c.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.c.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.c.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var v=0;v<this.pollEditorInfoWithDefaults.minPollOptions;v++)this.addPollOptionData()};
_.c.getIsValidPoll=function(){var v=this;if(!this.pollEditorInfoWithDefaults)return!1;var E=this.pollEditorInfoWithDefaults,n=E.minPollOptionChars,f=E.maxPollOptionChars,x=E.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>E.maxPollQuestionChars)return!1;E=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(E).every(function(y,Q){y=y.characterCount;!y&&x[Q]&&(y=v.ytRendererBehavior.getSimpleString(x[Q]).length);return y!==void 0&&y>=n&&y<=f})};
_.c.isValidPollChanged=function(){var v;_.C((v=this.data)==null?void 0:v.startButton,_.qb)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.c.addPollOptionData=function(){var v=this.pollEditorInfoWithDefaults,E=v.maxPollOptionChars,n=v.optionPlaceholderText,f=v.customOptionPlaceholderText,x=v.pollOptionData;this.currentNumPollOptions>=v.maxPollOptions||(v={liveChatPollOptionInput:{inputData:{placeholder:f[this.currentNumPollOptions]||n,maxCharacterLimit:E},maxCharacterLimit:E,minCharacterLimit:v.minPollOptionChars,hasPrefilledText:!!f[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=v.minPollOptions}},x.charCountErrorText&&
(v.liveChatPollOptionInput.charCountErrorText=x.charCountErrorText),x.charsRemainingAltLabel&&(v.liveChatPollOptionInput.charsRemainingAltLabel=x.charsRemainingAltLabel),x.removeOptionAltText&&(v.liveChatPollOptionInput.removeOptionAltText=x.removeOptionAltText),this.push("pollOptionsData",v),x=Array.from(_.K(_.K(this.hostElement).querySelector("#poll-options")).children),x.forEach(function(y,Q){y.polymerController.set("data.id",Q)}),_.K(x[x.length-1]).querySelector("#input").focus())};
_.c.getPollOptionInputValues=function(){var v=this,E=[],n=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),f=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(n).forEach(function(x,y){var Q=null;x=x.getLiveChatRichMessageInput();var e;(x==null?0:(e=x.textSegments)==null?0:e.length)?Q=_.rW(x):f[y]&&(Q=v.formattedStringToLiveChatRichMessageInput(f[y]));E.push(Q)});
return E};
_.c.requestCreateAndStartPoll=function(v){var E=this.getPollOptionInputValues();if(!E.some(function(f){return!f})){E={optionText:E};
var n=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;n&&n.liveChatRichMessageInput&&(E.questionText=_.rW(n.liveChatRichMessageInput));_.$Z(this.hostElement,[v,E])}};
_.c.selectedChanged=function(){if(this.selected){var v=_.K(_.K(this.hostElement).querySelector("#start-button")).firstElementChild;if(v){var E;(E=_.K(v).querySelector("#button")||_.AV(v).querySelector("button"))==null||E.focus()}}};
_.c.handleTextInputChanged=function(v){var E;((E=v.target)==null?void 0:E.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=v.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.c.handleStartButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),(v=v.detail.args[1])&&this.requestCreateAndStartPoll(v))};
_.c.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.c.handleServiceRequestCompleted=function(v){this.createPollRequestInFlight=!1;(v=v.detail&&v.detail.data)&&v.success&&(_.jK(this.hostElement,"picker-cancelled"),_.OL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.c.onCloseClick=function(){_.jK(this.hostElement,"picker-cancelled");_.OL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.c.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.c.handlePollEditorInputClosed=function(v){var E=this.pollOptionsData.findIndex(function(n){return n.liveChatPollOptionInput.id===v.detail.id});
this.splice("pollOptionsData",E,1);this.isValidPoll=this.getIsValidPoll()};
_.c.onPickerCancelled=function(){this.reset()};
_.c.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var v=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;v&&v.setLiveChatRichMessageInput(null);if(v=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){v=_.p(Array.from(v));for(var E=v.next();!E.done;E=v.next())E.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.c.formattedStringToLiveChatRichMessageInput=function(v){return v.simpleText?{text_segments:[v.simpleText]}:{text_segments:v.runs}};
_.hK.Object.defineProperties(iD.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(eFM,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
iD.prototype.onPickerCancelled=iD.prototype.onPickerCancelled;iD.prototype.handlePollEditorInputClosed=iD.prototype.handlePollEditorInputClosed;iD.prototype.handleServiceRequestCompleted=iD.prototype.handleServiceRequestCompleted;iD.prototype.handleServiceRequestSent=iD.prototype.handleServiceRequestSent;iD.prototype.handleTextInputChanged=iD.prototype.handleTextInputChanged;iD.prototype.selectedChanged=iD.prototype.selectedChanged;iD.prototype.isValidPollChanged=iD.prototype.isValidPollChanged;
iD.prototype.shouldInitializePollChanged=iD.prototype.shouldInitializePollChanged;iD.prototype.dataChanged=iD.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],iD.prototype,"modern",void 0);
_.k([_.H(),_.W("design:type",Object)],iD.prototype,"closeButtonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],iD.prototype,"startButtonOverrides",void 0);_.k([_.H(),_.W("design:type",Object)],iD.prototype,"addOptionButtonOverrides",void 0);_.k([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.W("design:type",String)],iD.prototype,"id",void 0);_.k([_.H({value:function(){return[]}}),
_.W("design:type",Array)],iD.prototype,"pollOptionsData",void 0);_.k([_.A("pollEditorInfoWithDefaults"),_.W("design:type",Object),_.W("design:paramtypes",[])],iD.prototype,"pollQuestionData",null);_.k([_.H({value:0}),_.W("design:type",Number)],iD.prototype,"pollQuestionCharacterCount",void 0);_.k([_.A("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],iD.prototype,"pollQuestionCharactersRemaining",null);
_.k([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.W("design:type",Boolean)],iD.prototype,"overQuestionCharacterLimit",void 0);_.k([_.A("data.pollEditorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],iD.prototype,"pollEditorInfoWithDefaults",null);_.k([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.W("design:type",Number)],iD.prototype,"currentNumPollOptions",void 0);
_.k([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.W("design:type",Boolean)],iD.prototype,"hasMaxNumPollOptions",void 0);_.k([_.A("pollEditorInfoWithDefaults","pollOptionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iD.prototype,"shouldInitializePoll",null);_.k([_.H(),_.W("design:type",Object)],iD.prototype,"isValidPoll",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],iD.prototype,"createPollRequestInFlight",void 0);_.k([_.H(),_.W("design:type",Object)],iD.prototype,"selected",void 0);_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.W("design:type",Boolean)],iD.prototype,"showQuestionErrorMessage",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"dataChanged",null);_.k([_.On("shouldInitializePoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"shouldInitializePollChanged",null);_.k([_.On("isValidPoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"isValidPollChanged",null);
_.k([_.On("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"selectedChanged",null);_.k([_.jk("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iD.prototype,"handleTextInputChanged",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"handleServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iD.prototype,"handleServiceRequestCompleted",null);
_.k([_.jk("yt-live-chat-poll-editor-input-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iD.prototype,"handlePollEditorInputClosed",null);_.k([_.jk("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iD.prototype,"onPickerCancelled",null);iD=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],iD);
_.u(iD,"yt-live-chat-poll-editor-panel-renderer",function(){if(XO3===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;QEx===void 0&&(QEx=document.createElement("template"));var f=QEx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);XO3=v}v=XO3;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Fdb;var myK;var zf=function(){return _.g.apply(this,arguments)||this};
_.S(zf,_.g);zf.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
zf.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.hK.Object.defineProperties(zf.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var v,E;return(v=this.data)==null?void 0:(E=v.title)==null?void 0:E.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.F$((v=this.data)==null?void 0:v.onTapCommand)}}});
_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],zf.prototype,"ytEndpointBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zf.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zf.prototype,"itemId",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zf.prototype,"hasPromotion",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zf.prototype,"innertubeCommand",null);zf=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],zf);
_.u(zf,"yt-live-chat-product-picker-panel-item-view-model",function(){if(myK===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Fdb===void 0&&(Fdb=document.createElement("template"));var f=Fdb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);myK=v}v=myK;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var wOb;var bv6;var RL=function(){var v=_.g.apply(this,arguments)||this;v.id="product-picker";v.selected=!1;v.closeButtonId="close-button";v.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return v};
_.S(RL,_.g);_.c=RL.prototype;_.c.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.c.observeSelected=function(){this.selected&&this.hostElement.focus();var v=_.K(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");v.length&&v[0].focus()};
_.c.onCloseBuyFlow=function(){_.jK(this.hostElement,"picker-cancelled")};
_.c.onCloseClick=function(){_.jK(this.hostElement,"picker-cancelled");var v;((v=this.data)==null?0:v.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.closeButton,_.wQ))};
_.c.onCloseEngageWithAudienceEditorPanels=function(){_.jK(this.hostElement,"picker-cancelled")};
RL.prototype.observeSelected=RL.prototype.observeSelected;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RL.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],RL.prototype,"id",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],RL.prototype,"selected",void 0);_.k([_.H(),_.W("design:type",Object)],RL.prototype,"closeButtonId",void 0);_.k([_.On("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"observeSelected",null);
RL=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],RL);
_.u(RL,"yt-live-chat-product-picker-panel-view-model",function(){if(bv6===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;wOb===void 0&&(wOb=document.createElement("template"));var f=wOb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);bv6=v}v=bv6;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var lc_;var sEb;var tn=function(){var v=_.g.apply(this,arguments)||this;v.iconId="";v.icon="";v.disabled=!1;v.systemIcons=_.Z("kevlar_system_icons");return v};
_.S(tn,_.g);_.c=tn.prototype;_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.c.computeIconId=function(v){return v&&v.icon&&v.icon.iconType?v.icon.iconType.toLowerCase():""};
_.c.computeIcon=function(v){return v&&v.icon&&v.icon.iconType?(v=v.icon.iconType.toLowerCase(),(v.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+v):""};
_.c.computeDisabled=function(v){return!!v};
_.c.computeCommand=function(v,E){return E?void 0:v};
_.c.computeTooltip=function(v,E){return E&&v?v:""};
_.c.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],tn.prototype,"ytEndpointBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tn.prototype,"data",void 0);_.k([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.W("design:type",Object)],tn.prototype,"iconId",void 0);
_.k([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.W("design:type",Object)],tn.prototype,"icon",void 0);_.k([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.W("design:type",Object)],tn.prototype,"disabled",void 0);_.k([_.H({computed:"computeCommand(data.command, disabled)"}),_.W("design:type",Object)],tn.prototype,"command",void 0);_.k([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.W("design:type",String)],tn.prototype,"tooltip",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tn.prototype,"systemIcons",void 0);tn=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],tn);
_.u(tn,"yt-live-chat-product-button-renderer",function(){if(sEb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;lc_===void 0&&(lc_=document.createElement("template"));var f=lc_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);sEb=v}v=sEb;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var r5C;var PmM;var B3=function(){var v=_.g.apply(this,arguments)||this;v.selected=!1;v.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return v};
_.S(B3,_.g);_.c=B3.prototype;_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.c.computeId=function(v){return v.id||""};
_.c.onCloseClick=function(){_.jK(this.hostElement,"picker-cancelled")};
_.c.observeSelected=function(){this.selected&&this.hostElement.focus();var v=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");v.length&&v[0].focus()};
_.c.onCloseBuyFlow=function(){_.jK(this.hostElement,"picker-cancelled")};
_.c.onCloseEngageWithAudienceEditorPanels=function(){_.jK(this.hostElement,"picker-cancelled")};
B3.prototype.observeSelected=B3.prototype.observeSelected;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],B3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],B3.prototype,"data",void 0);
_.k([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.W("design:type",String)],B3.prototype,"id",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],B3.prototype,"selected",void 0);_.k([_.On("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B3.prototype,"observeSelected",null);B3=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],B3);
_.u(B3,"yt-live-chat-product-picker-renderer",function(){if(PmM===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;r5C===void 0&&(r5C=document.createElement("template"));var f=r5C;n.call(E,f.content.cloneNode(!0),v.content.firstChild);PmM=v}v=PmM;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var acO;var Zvd;var CmP;var MZ1;var vH=function(){return _.g.apply(this,arguments)||this};
_.S(vH,_.g);vH.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()};
vH.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
vH.prototype.created=function(){this.ids={background:_.lP(),maskOne:_.lP(),maskTwo:_.lP(),gradient:_.lP(),largeBackground:_.lP(),largeGradientOne:_.lP(),largeGradientTwo:_.lP(),largeGradientPath:_.lP()}};
vH.prototype.maybeLoadAnimationBackground=vH.prototype.maybeLoadAnimationBackground;_.k([_.H({value:!1}),_.W("design:type",Boolean)],vH.prototype,"useLargeBackground",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],vH.prototype,"useAnimationBackground",void 0);_.k([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.W("design:type",Boolean)],vH.prototype,"useRegularBackground",void 0);
_.k([_.H(),_.W("design:type",Object)],vH.prototype,"ids",void 0);_.k([_.H(),_.W("design:type",Object)],vH.prototype,"lottieAnimation",void 0);_.k([_.Wp("#animation-background"),_.W("design:type",HTMLDivElement)],vH.prototype,"animationBackground",void 0);_.k([_.On("useAnimationBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vH.prototype,"maybeLoadAnimationBackground",null);
vH=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],vH);
_.u(vH,"yt-live-interactivity-component-background",function(){if(MZ1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;CmP===void 0&&(CmP=document.createElement("template"));var f=CmP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);MZ1=v}v=MZ1;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Et=function(){var v=_.g.apply(this,arguments)||this;v.characterCount=0;v.showInputErrorMessage=!1;v.startQnaRequestInFlight=!1;v.modern=_.Z("web_button_rework_with_live");v.buttonOverrides={style:"mono",type:"filled"};v.closeButtonOverrides={iconPosition:"icon-only"};v.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return v};
_.S(Et,_.g);_.c=Et.prototype;
_.c.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]]"}}}}}};
_.c.onCharacterCountChanged=function(v){var E,n,f,x,y=(n=_.C(this==null?void 0:(E=this.data)==null?void 0:E.creatorCallForQuestions,oup))==null?void 0:(f=n.inputField)==null?void 0:(x=f.liveChatTextInputFieldRenderer)==null?void 0:x.maxCharacterLimit,Q,e;y!=null&&(v==null?void 0:(Q=v.detail)==null?void 0:Q.characterCount)!=null&&_.C(this==null?void 0:(e=this.data)==null?void 0:e.startButton,_.qb)&&(E=v.detail.characterCount>y,this.set("data.startButton.buttonRenderer.isDisabled",v.detail.characterCount===
0||E),this.showInputErrorMessage=E)};
_.c.onCloseClick=function(){_.jK(this.hostElement,"picker-cancelled");_.OL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.c.onPickerCancelled=function(){var v=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.setLiveChatRichMessageInput(null)};
_.c.handleOpenQnaStartPanel=function(){var v=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.focus()};
_.c.handleStartButtonAction=function(v){var E=this;if(v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),v=v.detail.args[1])){var n=_.K(this.hostElement).querySelector("#qna-creator-text-input-field"),f;(n==null?0:(f=n.liveChatRichMessageInput)==null?0:f.textSegments)&&n.liveChatRichMessageInput.textSegments.length!==0&&(f={rich_message:_.rW(n.liveChatRichMessageInput)},_.$Z(this.hostElement,[v,f]).then(function(){_.jK(E.hostElement,"picker-cancelled")}))}};
_.c.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.c.handleServiceRequestCompleted=function(v){var E;v=v==null?void 0:(E=v.detail)==null?void 0:E.data;(v==null?0:v.actions)&&v.actions.length>0?this.startQnaRequestInFlight=!1:_.OL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.c.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Et.prototype.handleServiceRequestError=Et.prototype.handleServiceRequestError;Et.prototype.handleServiceRequestCompleted=Et.prototype.handleServiceRequestCompleted;Et.prototype.handleServiceRequestSent=Et.prototype.handleServiceRequestSent;Et.prototype.onPickerCancelled=Et.prototype.onPickerCancelled;Et.prototype.onCharacterCountChanged=Et.prototype.onCharacterCountChanged;_.k([_.H(),_.W("design:type",Object)],Et.prototype,"characterCount",void 0);
_.k([_.H(),_.W("design:type",Object)],Et.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Et.prototype,"showInputErrorMessage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Et.prototype,"startQnaRequestInFlight",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Et.prototype,"modern",void 0);_.k([_.H(),_.W("design:type",Object)],Et.prototype,"buttonOverrides",void 0);
_.k([_.H(),_.W("design:type",Object)],Et.prototype,"closeButtonOverrides",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],Et.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.h(_.Zv.YtLiveChatItemBehavior),_.W("design:type",_.CK)],Et.prototype,"ytLiveChatItemBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);_.k([_.jk("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Et.prototype,"onCharacterCountChanged",null);_.k([_.jk("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Et.prototype,"onPickerCancelled",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Et.prototype,"handleServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Et.prototype,"handleServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Et.prototype,"handleServiceRequestError",null);Et=_.k([_.N({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Et);
_.u(Et,"yt-live-chat-qna-start-panel-renderer",function(){if(Zvd===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;acO===void 0&&(acO=document.createElement("template"));var f=acO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Zvd=v}v=Zvd;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var SWd;var Uy3;var nF=function(){return _.g.apply(this,arguments)||this};
_.S(nF,_.g);nF.prototype.dismiss=function(){_.jK(this.hostElement,"yt-live-chat-error-message-dismiss")};
nF.prototype.edit=function(){_.jK(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.k([_.H(),_.W("design:type",Object)],nF.prototype,"data",void 0);nF=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],nF);
_.u(nF,"yt-live-chat-text-actions-error-message-renderer",function(){if(Uy3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;SWd===void 0&&(SWd=document.createElement("template"));var f=SWd;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Uy3=v}v=Uy3;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var qWM;var J53;var Kdp;var dyP;var oo=function(){var v=_.g.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.S(oo,_.g);oo.prototype.sendReaction=function(){var v,E,n=((v=this.data)==null?void 0:v.emojiId)||((E=this.data)==null?void 0:E.emoteId),f;n&&((f=this.data)==null?0:f.shouldTriggerAnimation)&&_.OL(this.hostElement,"yt-create-user-reaction-animation",[n]);var x;(v=_.F$((x=this.data)==null?void 0:x.onTap))&&_.WE(v,this.hostElement);this.showNewnessDot&&_.OL(this.hostElement,"yt-hide-newness-dot")};
oo.prototype.onClick=function(v){(!v||v.clientX||v.clientY)&&this.sendReaction()};
oo.prototype.onKeyDown=function(v){v.key!=="Enter"&&v.key!==" "||v.repeat||this.sendReaction()};
_.hK.Object.defineProperties(oo.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!(((v=this.data)==null?0:v.emojiId)||((E=this.data)==null?0:E.emoteId))}}});
_.k([_.H(),_.W("design:type",Object)],oo.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],oo.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],oo.prototype,"newnessDotEligible",void 0);_.k([_.A("data.maybeShowNewnessDot"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oo.prototype,"showNewnessDot",null);_.k([_.A("data.emojiId","data.emoteId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oo.prototype,"useYtImage",null);
oo=_.k([_.p5({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],oo);
_.u(oo,"yt-reaction-control-panel-button-view-model",function(){if(dyP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Kdp===void 0&&(Kdp=document.createElement("template"));var f=Kdp;n.call(E,f.content.cloneNode(!0),v.content.firstChild);dyP=v}v=dyP;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var IcR;var YWO;var fF=function(){var v=_.g.apply(this,arguments)||this;v.reactionControlPanelExpanded=!1;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.S(fF,_.g);_.c=fF.prototype;_.c.expandedButtonsChanged=function(){var v,E;_.NQ(this.hostElement,{"--expanded-buttons-height":((E=(v=this.expandedButtonsData)==null?void 0:v.length)!=null?E:0)*36+"px"})};
_.c.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}}};
_.c.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.c.onMouseLeave=function(){var v=this;this.collapseTimer=setTimeout(function(){v.reactionControlPanelExpanded=!1},500)};
_.c.onFocusIn=function(){this.onMouseEnter()};
_.c.onFocusOut=function(){this.onMouseLeave()};
_.c.onCollapsedButtonFocusIn=function(){var v=this;setTimeout(function(){var E;(E=v.expandedButtons.querySelector("button"))==null||E.focus()},100)};
_.c.onCollapsedButtonFocusOut=function(v){v.stopPropagation()};
_.hK.Object.defineProperties(fF.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var v,E;return _.sh.unsafeClone((v=this.liveReactionsData)==null?void 0:v.emojiButtonData)||((E=this.data)==null?void 0:E.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((v=this.data)==null||!v.maybeShowNewnessDot)}}});
fF.prototype.expandedButtonsChanged=fF.prototype.expandedButtonsChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],fF.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fF.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fF.prototype,"reactionControlPanelExpanded",void 0);_.k([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NUM}),_.W("design:type",Object)],fF.prototype,"liveReactionsData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fF.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],fF.prototype,"newnessDotEligible",void 0);
_.k([_.A("liveReactionsData","data.expandedButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],fF.prototype,"expandedButtonsData",null);_.k([_.A("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],fF.prototype,"showNewnessDot",null);_.k([_.Wp("#expanded-buttons"),_.W("design:type",HTMLElement)],fF.prototype,"expandedButtons",void 0);
_.k([_.On("expandedButtonsData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fF.prototype,"expandedButtonsChanged",null);fF=_.k([_.p5({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],fF);
_.u(fF,"yt-reaction-control-panel-view-model",function(){if(YWO===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;IcR===void 0&&(IcR=document.createElement("template"));var f=IcR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);YWO=v}v=YWO;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var xN=new _.P7("yt-live-chat"),hF6=Date.parse("2024-7-24"),cH=function(){var v=_.g.apply(this,arguments)||this;v.emojiManager=_.af;v.newnessDotEligible=!1;v.newnessDotImpressionCounted=!1;v.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return v};
_.S(cH,_.g);_.c=cH.prototype;_.c.emojiCustomizationEnabledChanged=function(){var v;((v=this.data)==null?0:v.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((v=xN.getCreationTime("emoji-customization-count"))&&v<hF6&&xN.set("emoji-customization-count","0"),v=Number(xN.get("emoji-customization-count"))||0,v<3&&(this.newnessDotEligible=!0,xN.set("emoji-customization-count",(v+1).toString())),this.newnessDotImpressionCounted=!0)};
_.c.hideNewnessDot=function(){this.newnessDotEligible=!1;xN.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.c.handleReactionsMute=function(v){var E=_.lc(),n=_.ci(206221),f={checkboxData:{state:v?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};E&&_.qx(E,n,f);this.reactionsMuted=v};
_.c.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.c.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}}};
_.hK.Object.defineProperties(cH.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return(!((v=this.liveReactionsData)==null||!v.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
cH.prototype.liveReactionsSettingChanged=cH.prototype.liveReactionsSettingChanged;cH.prototype.emojiCustomizationEnabledChanged=cH.prototype.emojiCustomizationEnabledChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.rm),_.W("design:type",Object)],cH.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],cH.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cH.prototype,"data",void 0);_.k([_.H(),_.W("design:type",_.sp)],cH.prototype,"emojiManager",void 0);_.k([_.H(),_.W("design:type",Object)],cH.prototype,"newnessDotEligible",void 0);_.k([_.H(),_.W("design:type",Object)],cH.prototype,"newnessDotImpressionCounted",void 0);
_.k([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:uEx}),_.W("design:type",Boolean)],cH.prototype,"liveReactionsSetting",void 0);_.k([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NUM}),_.W("design:type",Object)],cH.prototype,"liveReactionsData",void 0);_.k([_.H({value:function(){var v=_.Z("enable_lwe_web_mute"),E=xN.get("allow-reactions");return E===void 0?!1:!E&&v}}),
_.W("design:type",Boolean)],cH.prototype,"reactionsMuted",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cH.prototype,"liveReactionsEnabled",null);_.k([_.On("data.emojiCustomizationEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cH.prototype,"emojiCustomizationEnabledChanged",null);
_.k([_.On("liveReactionsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cH.prototype,"liveReactionsSettingChanged",null);cH=_.k([_.p5({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],cH);
_.u(cH,"yt-reaction-control-panel-overlay-view-model",function(){if(J53===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;qWM===void 0&&(qWM=document.createElement("template"));var f=qWM;n.call(E,f.content.cloneNode(!0),v.content.firstChild);J53=v}v=J53;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var A5C={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(v){var E=this.$.pickers.selected;if(E){_.K(this.hostElement).removeAttribute(E+"-open");var n="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(n="#picker-buttons",E==="emoji"&&_.K(this.hostElement).querySelector("#emoji-picker-button")&&(n="#emoji-picker-button"));if(n=_.K(this.hostElement).querySelector(n).querySelector("#"+E))n.active=!1}n=v;E==v&&(n=null);E!=v&&
_.K(this.hostElement).setAttribute(v+"-open","");this.$.pickers.selected=n;_.OL(this.hostElement,"yt-live-chat-picker-changed",[n])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var yq=function(){var v=_.g.apply(this,arguments)||this;v.numSentMessages=0;v.timeoutDurationMs=0;v.timeoutMs=0;v.lastTimeoutTimeMs=0;v.pendingMessageId="";v.hasFiredInitialFocusActions=!1;v.isBeforeFocusEnabled=!0;v.id="";v.characterCount=0;v.maxCharacterLimit=0;v.remainingCharacterCount=0;v.inputExpanded=!1;v.buttonOverrides={iconPosition:"icon-only"};v.inReplyPanel=!1;v.countdownRatio=0;v.isTooltipVisible=!1;v.tooltipTimeout=1E4;v.systemIcons=_.Z("kevlar_system_icons");v.tallerEmojiPicker=_.Z("live_chat_taller_emoji_picker");
v.blockSendMessageWithCountdown=!_.Z("live_chat_enable_send_button_in_slow_mode");v.sendReplyMessageInFlight=!1;v.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"};v.onResize=function(){v.maybeToggleCharacterCount()};
return v};
_.S(yq,_.g);_.c=yq.prototype;
_.c.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"}}}};
_.c.attached=function(){window.addEventListener("resize",this.onResize)};
_.c.detached=function(){window.removeEventListener("resize",this.onResize)};
_.c.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.c.sendMessage=function(){var v=this,E,n,f,x;return _.X(function(y){if(v.sendDisabled)return y.return();v.isTooltipVisible&&_.OL(v.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(v.data.sendButton&&v.data.sendButton.buttonRenderer){v.input.completeEmojis();E=v.data.sendButton.buttonRenderer.serviceEndpoint;if(!E)return y.return();f=((n=_.C(E,_.B$X))==null?void 0:n.clientIdPrefix)||"";x={client_message_id:f+String(v.numSentMessages++),rich_message:_.rW(v.input.liveChatRichMessageInput)};
v.pendingMessageId=x.client_message_id;v.inReplyPanel&&(v.sendReplyMessageInFlight=!0);_.$Z(v.hostElement,[E,x]);v.input.setLiveChatRichMessageInput(null)}_.yQ(y)})};
_.c.handleSendButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),this.sendMessage())};
_.c.onSendCompleted=function(v,E){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(v=this.get("timeoutDurationUsec",E.data))&&this.handleTimeout(Number(v)/1E3);this.errorMessage=this.get("errorMessage",E.data);this.pendingMessageId=""};
_.c.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.OL(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.c.handlePickerButtonToggle=function(v){v=v.detail.targetId;this.ytPickerBehavior.togglePicker_(v);if(v==="emoji")this.input.focus();else if(v==="qna-start-panel"){var E,n;(E=_.K(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(n=E.querySelector("#qna-creator-text-input-field"))==null||n.focus()}};
_.c.onComponentReplaced=function(v){var E,n;v.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((E=v.replacement.liveChatMessageInputRenderer)==null?0:(n=E.headerRenderer)==null?0:n.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.c.onEmojiSelect=function(v){this.input.focus();this.input.insertEmoji(v.detail)};
_.c.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.c.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.OL(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.OL(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.c.onOpenPopupAction=function(v,E){var n=this;E===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.OL(n.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.c.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.c.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.c.focusChanged=function(){this.maybeToggleCharacterCount()};
_.c.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var v=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",v>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.c.computeId=function(){return this.data&&this.data.targetId||""};
_.c.computeSendDisabled=function(v,E,n,f){v=!!(this.blockSendMessageWithCountdown&&n||!v||E&&v>E||f);(E=_.K(this.hostElement).querySelector("#send-button"))&&E.children.length&&(E.children[0].disabled=v);return v};
_.c.handleTimeout=function(v){this.timeoutDurationMs=this.timeoutMs=v;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.c.updateTimeout=function(v){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(v-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=v,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.c.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.c.onErrorMessageEdit=function(v){this.input.setLiveChatRichMessageInput(v.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.c.errorMessageChanged=function(){var v=this;_.bz(function(){_.OL(v.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.c.computeAuthorNameColor=function(v){var E;if(_.Z("live_chat_author_name_color_usernames")&&(v==null?0:(E=v.authorName)==null?0:E.simpleText))return _.ua9(_.jRI(v.authorName.simpleText));if(_.Z("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.ua9(_.Nu(v.authorSeedColorArgb));if(_.Z("live_chat_colored_usernames"))return"#cc0000";var n;return _.Z("live_chat_simple_color_usernames")&&(v==null?0:(n=v.authorName)==null?0:n.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Nu(v.authorUsernameColorDark):_.Nu(v.authorUsernameColorLight):""};
_.c.onIsTooltipVisibleChanged=function(){var v=_.K(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){v.hidden=!1;v.setAttribute("role","alert")},0):(v.hidden=!0,v.removeAttribute("role"))};
_.c.onFocusedChanged=function(v){this.inputFocused=v.detail.value};
_.hK.Object.defineProperties(yq.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 v;return!((v=this.data)==null||!v.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.pickers)==null?void 0:E.find(function(n){return n.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return v?this.ytRendererBehavior.getSimpleString(v):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
yq.prototype.onIsTooltipVisibleChanged=yq.prototype.onIsTooltipVisibleChanged;yq.prototype.errorMessageChanged=yq.prototype.errorMessageChanged;yq.prototype.onErrorMessageEdit=yq.prototype.onErrorMessageEdit;yq.prototype.onErrorMessageDismiss=yq.prototype.onErrorMessageDismiss;yq.prototype.focusChanged=yq.prototype.focusChanged;yq.prototype.characterCountChanged=yq.prototype.characterCountChanged;yq.prototype.onEmojiSelect=yq.prototype.onEmojiSelect;yq.prototype.handlePickerButtonToggle=yq.prototype.handlePickerButtonToggle;
yq.prototype.onSendError=yq.prototype.onSendError;yq.prototype.onSendCompleted=yq.prototype.onSendCompleted;yq.prototype.sendMessage=yq.prototype.sendMessage;yq.prototype.dataChanged=yq.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],yq.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(A5C.YtPickerBehavior),_.W("design:type",Object)],yq.prototype,"ytPickerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Ps.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],yq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"hasFiredInitialFocusActions",void 0);
_.k([_.H(),_.W("design:type",Object)],yq.prototype,"isBeforeFocusEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"data",void 0);_.k([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"id",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"characterCount",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"maxCharacterLimit",void 0);
_.k([_.H(),_.W("design:type",Object)],yq.prototype,"remainingCharacterCount",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"inputExpanded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yq.prototype,"inputFocused",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],yq.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.k([_.H(),_.W("design:type",_.Up)],yq.prototype,"participantsManager",void 0);
_.k([_.H(),_.W("design:type",Object)],yq.prototype,"buttonOverrides",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"inReplyPanel",void 0);_.k([_.A("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"sendDisabled",null);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"countdownRatio",void 0);
_.k([_.A("countdownRatio"),_.W("design:type",Number),_.W("design:paramtypes",[])],yq.prototype,"countdownStrokeDashOffset",null);_.k([_.A("countdownRatio"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"countdownActive",null);_.k([_.A("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"hasInteractionMessage",null);
_.k([_.A("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"hasEmojiPickerButton",null);_.k([_.A("data, characterCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"showAvatar",null);_.k([_.A("data.pickers"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yq.prototype,"hasProductPickerPanelViewModel",null);
_.k([_.H(),_.W("design:type",Object)],yq.prototype,"errorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"genericErrorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"isTooltipVisible",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"tooltipTimeout",void 0);_.k([_.A("data.onInitialFocusCommand"),_.W("design:type",String),_.W("design:paramtypes",[])],yq.prototype,"tooltipMessage",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"tallerEmojiPicker",void 0);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],yq.prototype,"authorNameColor",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yq.prototype,"blockSendMessageWithCountdown",void 0);_.k([_.H(),_.W("design:type",Object)],yq.prototype,"sendReplyMessageInFlight",void 0);
_.k([_.Wp("#input"),_.W("design:type",_.xe1)],yq.prototype,"input",void 0);_.k([_.Wp("#count"),_.W("design:type",HTMLElement)],yq.prototype,"count",void 0);_.k([_.Wp("#input-container"),_.W("design:type",HTMLElement)],yq.prototype,"inputContainer",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"dataChanged",null);
_.k([_.jk("yt-live-chat-send-message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],yq.prototype,"sendMessage",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Jq]),_.W("design:returntype")],yq.prototype,"onSendCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"onSendError",null);
_.k([_.jk("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yq.prototype,"handlePickerButtonToggle",null);_.k([_.jk("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yq.prototype,"onEmojiSelect",null);
_.k([_.On("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"characterCountChanged",null);_.k([_.On("inputFocused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"focusChanged",null);_.k([_.jk("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"onErrorMessageDismiss",null);
_.k([_.jk("yt-live-chat-error-message-edit"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yq.prototype,"onErrorMessageEdit",null);_.k([_.On("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"errorMessageChanged",null);_.k([_.On("isTooltipVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yq.prototype,"onIsTooltipVisibleChanged",null);
yq=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],yq);
_.u(yq,"yt-live-chat-message-input-renderer",function(){if(nBO===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;EBO===void 0&&(EBO=document.createElement("template"));var f=EBO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);nBO=v}v=nBO;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var VZR;var DyR;var pF=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.firedOnClickCommand=!1;v.inReplyPanel=!1;return v};
_.S(pF,_.g);
pF.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"}}}};
pF.prototype.onButtonToggle=function(v){v.target.disabled||this.ytPickerBehavior.togglePicker_(v.detail.targetId)};
pF.prototype.onClick=function(){var v=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.OL(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return v.firedOnClickCommand=!1},5E3))};
_.hK.Object.defineProperties(pF.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.panels)==null?void 0:E.find(function(n){return n.liveChatProductPickerPanelViewModel}))!==void 0}}});
pF.prototype.onButtonToggle=pF.prototype.onButtonToggle;_.k([_.h(A5C.YtPickerBehavior),_.W("design:type",Object)],pF.prototype,"ytPickerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pF.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pF.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Object)],pF.prototype,"firedOnClickCommand",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pF.prototype,"inReplyPanel",void 0);_.k([_.A("data.pickers"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pF.prototype,"hasProductPickerPanelViewModel",null);
_.k([_.jk("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pF.prototype,"onButtonToggle",null);pF=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],pF);
_.u(pF,"yt-live-chat-restricted-participation-renderer",function(){if(DyR===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;VZR===void 0&&(VZR=document.createElement("template"));var f=VZR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);DyR=v}v=DyR;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Qq=function(){var v=_.g.apply(this,arguments)||this;v.genericErrorMessage=_.qD("Error, try again.");v.inReplyPanel=!1;v.hideBorder=!1;return v};
_.S(Qq,_.g);Qq.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}}}}}};
_.hK.Object.defineProperties(Qq,{template:{configurable:!0,enumerable:!0,get:function(){return z7M()}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qq.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Qq.prototype,"genericErrorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],Qq.prototype,"inReplyPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qq.prototype,"hideBorder",void 0);
Qq=_.k([_.p5({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Qq);_.u(Qq,"yt-live-chat-engagement-panel-input-renderer",function(){return z7M()},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var Hv1,gB_;Hv1=_.ci(115994);gB_=_.ci(115993);_.XI=function(v,E,n){var f=this;var x=n.dragDownAction;this.layer=0;this.JSC$19794_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$19794_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var y=_.Tl();_.BD(y,Hv1,this.layer);_.BD(y,gB_,this.layer);this.dragDownAction=function(){x();_.aX(y,{visualElement:f.fullscreen?Hv1:gB_})};
this.gesture=new _.ff(v,E,this.JSC$19794_watchConfig,"pandown");this.attach()};
_.XI.prototype.attach=function(){this.gesture.attach()};
_.XI.prototype.detach=function(){this.gesture.detach()};
_.XI.prototype.update=function(v){this.fullscreen=v;this.gesture.config=v?this.JSC$19794_watchFullScreenConfig:this.JSC$19794_watchConfig};var NPp={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(v){if(v&&v.length==1&&Array.isArray(v[0].loggingUrls)){v=_.sh.unsafeClone(v[0]);var E=this.macros||{},n=this.getAdModuleClient_();if(!n)return _.Gn();v.loggingUrls.forEach(function(f){if(f.baseUrl){var x=f.baseUrl;var y=E;y=y===void 0?{}:y;x=n.getOptions().includes("replaceUrlMacros")?_.Hbg(n,"replaceUrlMacros",{url:x,additionalMapping:y}):x;f.baseUrl=x}},this);
v=[v]}return _.$Z(this.hostElement,v)},
getAdModuleClient_:function(){var v=_.Aq(this);return v?(v=v.getPlayer())?new _.xF(v):null:null}}]};var uMb;var ey=function(){var v=_.g.apply(this,arguments)||this;v.isCollapsed=!1;v.modernPanels=_.Z("kevlar_watch_modern_panels");v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return v};
_.S(ey,_.g);_.c=ey.prototype;_.c.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.c.onDonateTap=function(){var v=this.get("data.donateButton.buttonRenderer.command");if(v){var E=_.lc(),n=this.get("data.donateButton.buttonRenderer.trackingParams");E&&n&&_.qx(E,_.tx(n));this.ytOpenPopupBehavior.openPopup(v)}};
_.c.onShowMore=function(){this.isCollapsed=!1;var v=_.lc(),E=this.get("data.expandButton.buttonRenderer.trackingParams");v&&E&&_.qx(v,_.tx(E))};
_.c.onShowLess=function(){this.isCollapsed=!0};
_.c.dataChanged=function(){_.NQ(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.handleUpdate=function(v){if(v=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",v))this.set("data.startLabel",v.startLabel),this.set("data.endLabel",v.endLabel),this.set("data.progress",v.progress),this.set("data.amountRaisedLabel",v.amountRaisedLabel),this.dataChanged()};
_.c.handleOpenPopupAction=function(v){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",v)&&_.OL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.c.computeHeaderBackgroundUrl=function(v,E){if(v)return E?v.headerBackgroundDarkUrl:v.headerBackgroundUrl};
_.c.isProgressBarVisible=function(v){return!(!v||v.progress===void 0)};
_.c.headerBackgroundClass=function(){return _.MX("HTML_DIR")==="rtl"?"flip":""};
ey.prototype.dataChanged=ey.prototype.dataChanged;_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],ey.prototype,"ytOpenPopupBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],ey.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],ey.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],ey.prototype,"isCollapsed",void 0);_.k([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.W("design:type",String)],ey.prototype,"headerBackgroundUrl",void 0);_.k([_.H(),_.W("design:type",Boolean)],ey.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ey.prototype,"modernPanels",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ey.prototype,"dataChanged",null);ey=_.k([_.N({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],ey);
_.u(ey,"ytd-donation-shelf-renderer",function(){if(uMb!==void 0)return uMb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uMb=v},{mode:1});var jE0;var FI=function(){return _.g.apply(this,arguments)||this};
_.S(FI,_.g);_.k([_.H(),_.W("design:type",Object)],FI.prototype,"data",void 0);FI=_.k([_.N({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],FI);
_.u(FI,"ytd-donation-unavailable-renderer",function(){if(jE0!==void 0)return jE0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jE0=v},{mode:1});var Ov6;var mV=function(){return _.g.apply(this,arguments)||this};
_.S(mV,_.g);mV.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mV.prototype,"data",void 0);mV=_.k([_.N({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],mV);
_.u(mV,"ytd-limited-state-message-renderer",function(){if(Ov6!==void 0)return Ov6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ov6=v},{mode:1});var kW1;var wb=function(){return _.g.apply(this,arguments)||this};
_.S(wb,_.g);wb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
wb.prototype.onTap=function(v){var E=this.data&&this.data.endpoint;E&&!_.Kh(_.MQ(v),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.jK(this.hostElement,"yt-navigate",{endpoint:E})};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wb.prototype,"data",void 0);wb=_.k([_.N({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],wb);
_.u(wb,"ytd-autotagging-metadata-renderer",function(){if(kW1!==void 0)return kW1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return kW1=v},{mode:1});var WdR;var bL=function(){return _.g.apply(this,arguments)||this};
_.S(bL,_.g);bL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bL.prototype,"data",void 0);bL=_.k([_.N({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],bL);
_.u(bL,"ytd-autotagging-metadata-row-renderer",function(){if(WdR!==void 0)return WdR;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return WdR=v},{mode:1});var $yU;var LdC;var lL=function(){var v=_.g.apply(this,arguments)||this;v.engagementPanelContent=!1;return v};
_.S(lL,_.g);lL.prototype.computeHasDividerLine=function(v,E){return v&&!E};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lL.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.W("design:type",Boolean)],lL.prototype,"hasDividerLine",void 0);_.k([_.H(),_.W("design:type",Object)],lL.prototype,"engagementPanelContent",void 0);
lL=_.k([_.N({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],lL);
_.u(lL,"ytd-metadata-row-header-renderer",function(){if(LdC!==void 0)return LdC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return LdC=v},{mode:1});var GW3;var st=function(){return _.g.apply(this,arguments)||this};
_.S(st,_.g);st.prototype.computeHasDividerLine=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],st.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],st.prototype,"hasDividerLine",void 0);st=_.k([_.N({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],st);
_.u(st,"ytd-metadata-row-renderer",function(){if(GW3!==void 0)return GW3;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return GW3=v},{mode:1});var TPM;var rb=function(){return _.g.apply(this,arguments)||this};
_.S(rb,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rb.prototype,"data",void 0);rb=_.k([_.N({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],rb);
_.u(rb,"ytd-metadata-with-image-row-renderer",function(){if(TPM!==void 0)return TPM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return TPM=v},{mode:1});var iv1;var PH=function(){var v=_.g.apply(this,arguments)||this;v.rounded=!0;v.fixie=!1;v.fullWidth=!1;return v};
_.S(PH,_.g);_.c=PH.prototype;_.c.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c.onDataChanged=function(){var v=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(E){v.onEndpointLinkKeyPress(E)}))};
_.c.onEndpointLinkKeyPress=function(v){v.target===this.endpointLink&&v.keyCode===13&&_.jK(this.hostElement,"click")};
_.c.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var v;if((v=this.data)==null?0:v.endpoint)_.LG(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.c.onYtNavigate=function(v){this.endpointHref||(v.stopPropagation(),v.preventDefault())};
_.c.onInformationButtonContainerClick=function(v){v.target.id!=="information-button-container"&&(v.stopPropagation(),v.preventDefault())};
_.c.computeStyle=function(v){return v};
_.c.computeIsThumbnailStyle=function(v){return v==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.c.computeThumbnailWidth=function(v){switch(v){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}};
_.c.computeThumbnailObjectFit=function(v){switch(v){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.hK.Object.defineProperties(PH.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
PH.prototype.onYtNavigate=PH.prototype.onYtNavigate;PH.prototype.onClick=PH.prototype.onClick;PH.prototype.onDataChanged=PH.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],PH.prototype,"componentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],PH.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],PH.prototype,"componentStyle",void 0);_.k([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.W("design:type",Boolean)],PH.prototype,"isThumbnailStyle",void 0);_.k([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.W("design:type",String)],PH.prototype,"thumbnailObjectFit",void 0);
_.k([_.H({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],PH.prototype,"thumbnailWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PH.prototype,"rounded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PH.prototype,"fixie",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PH.prototype,"fullWidth",void 0);_.k([_.Wp("#endpoint-link"),_.W("design:type",HTMLAnchorElement)],PH.prototype,"endpointLink",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PH.prototype,"onDataChanged",null);_.k([_.A("data.endpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],PH.prototype,"endpointHref",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],PH.prototype,"onClick",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PH.prototype,"onYtNavigate",null);PH=_.k([_.N({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],PH);
_.u(PH,"ytd-rich-metadata-renderer",function(){if(iv1!==void 0)return iv1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return iv1=v},{mode:_.HE("kevlar_poly_si_batch_j075")?1:2});var zFR;var ao=function(){var v=_.g.apply(this,arguments)||this;v.fixie=!1;v.fullWidth=!1;return v};
_.S(ao,_.g);ao.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
ao.prototype.computeHasDividerLine=function(v){return v};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ao.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],ao.prototype,"hasDividerLine",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ao.prototype,"fixie",void 0);_.k([_.H(),_.W("design:type",Object)],ao.prototype,"fullWidth",void 0);
ao=_.k([_.N({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],ao);
_.u(ao,"ytd-rich-metadata-row-renderer",function(){if(zFR!==void 0)return zFR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return zFR=v},{mode:1});var Zx=function(){var v=_.g.apply(this,arguments)||this;v.engagementPanelContent=!1;v.fixie=!1;v.fullWidth=!1;return v};
_.S(Zx,_.g);
Zx.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"}}}};
Zx.prototype.computeCollapsibleItems=function(v,E,n){return v===void 0||E===void 0||n===void 0||n?[]:v.slice(E)};
Zx.prototype.computeAlwaysShownItems=function(v,E){return v&&v.length?v.slice(0,E):[]};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Zx.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Zx.prototype,"collapsed",void 0);
_.k([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.W("design:type",Array)],Zx.prototype,"alwaysShownItems",void 0);_.k([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.W("design:type",Array)],Zx.prototype,"collapsibleItems",void 0);_.k([_.H(),_.W("design:type",Object)],Zx.prototype,"engagementPanelContent",void 0);_.k([_.H(),_.W("design:type",Object)],Zx.prototype,"fixie",void 0);
_.k([_.H(),_.W("design:type",Object)],Zx.prototype,"fullWidth",void 0);Zx=_.k([_.N({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Zx);
_.u(Zx,"ytd-metadata-row-container-renderer",function(){if($yU!==void 0)return $yU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return $yU=v},{mode:1});var RFK;var CF=function(){var v=_.g.apply(this,arguments)||this;v.currentPageUrl="";v.baseUrl="";v.isHiddenByUser=null;v.hidden=!1;v.showAboveScrim=!1;v.watchNextGrid=_.Z("kevlar_watch_grid");v.modernButtons=_.Z("web_modern_buttons");v.roundedContainer=!0;v.noBorder=!1;v.roundBackground=!_.Z("live_chat_round_background_killswitch");v.overflowHideChat=_.Z("live_chat_overflow_hide_chat");v.forceDarkTheme=!1;v.theaterWatchWhile=!1;v.isListeningForPlayerProgress=!1;v.JSC$19830_playerEvents=new Map;v.isFrameReady=
!1;v.player=null;v.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 v};
_.S(CF,_.g);_.c=CF.prototype;_.c.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.kZ(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.c.created=function(){var v=this;this.handleIframeEventListener=function(E){v.handleIframeEvent(E)};
this.handleKeyboardEventListener=function(E){v.handleKeyboardEvent(E)};
this.JSC$19830_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19830_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19830_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19830_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19830_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.c.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()};
_.c.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};
_.c.computeBaseUrl=function(v){var E="/live_chat";this.isChatReplay()&&(E="/live_chat_replay");return _.ig(_.Tu(_.Gu(_.qE(v),E),null),"").toString()};
_.c.dataChanged=function(){_.Z("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.c.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var v=this.url;if(this.isChatReplay()&&this.player){var E=Math.floor(this.player.getProgressState().current*1E3);v=_.KT(_.qE(v),"playerOffsetMs",E.toString()).toString()}E=this.chatframe;try{var n=v==="about:blank"?_.Ry6:_.bW(v),f=E.contentDocument.location,x=_.Zd(n);x!==void 0&&f.replace(x)}catch(y){E.src=v}}};
_.c.collapsedChanged=function(){_.jK(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.c.handleIframeEvent=function(v){if(v&&this.baseUrl.startsWith(v.origin)&&v.source===this.chatframe.contentWindow&&_.oF(v.data))if(v.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(v);else if(v.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(v.data["yt-show-feedback-dialog"]){var E=_.P().resolve(_.jp(_.axP));if(E){var n=v.ports,f;n&&n.length&&(f=function(){n[0].postMessage({})});
v=v.data["yt-show-feedback-dialog"];E.showFeedbackDialog(v.customProductData,v.feedbackContent,f,v.bucket)}}else if(v.data["yt-show-survey"])_.jK(this.hostElement,"yt-show-survey",v.data["yt-show-survey"]);else if(v.data["yt-purchase-membership"])_.P().resolve(_.OO).resolveCommand(v.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(v.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(v.data["yt-tunnel-out-live-service-request"]);else if(v.data["yt-user-activity"])_.H7();
else if(v.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(v.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(v.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(v.data["yt-open-popup"]);else if(v.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(v.data["yt-log-flow-logging-event-command"]);else if(v.data["yt-hide-live-chat"])this.onShowHideChat();else v.data["yt-report-moderation-state-log"]&&
this.player&&(E={cpn:this.player.getVideoData().cpn},_.eQ("liveChatBeingModerated",E))};
_.c.attachLiveChatResponseVeTrackingParams=function(v){v=_.tx(v);var E=_.lc(),n=_.JM("liveChatRenderer.trackingParams",this.data);E&&n&&_.aQ(E,_.tx(n),v)};
_.c.handleBuyflowMessages=function(v){var E=v.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,n=v.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,f=v.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.BaF(_.v_(_.C2),E.replace(/-/g,"+").replace(/_/g,"/"),function(x){v.ports[0].postMessage({success:!0,buyFlowResponse:x})},void 0,function(x){v.ports[0].postMessage({success:!1,
error:x&&x.message||"Buyflow rejected without error."})},_.Ef().get("hl"),void 0,function(){v.ports[0].postMessage({closed:!0})},n,f)};
_.c.setupPlayerProgressRelay=function(){var v=this;if(!this.isListeningForPlayerProgress){var E=_.V3();E!=null&&E.getPlayerPromise&&(E.getPlayerPromise().then(function(n){v.playerApiReady(n)}),this.isListeningForPlayerProgress=!0)}};
_.c.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.c.playerApiReady=function(v){this.setPlayer(v)};
_.c.playerProgressHandler=function(){if(this.player){var v=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":v.current})}};
_.c.playerAdStartHandler=function(v){this.postToContentWindow({"yt-player-ad-start":v})};
_.c.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.c.playerStateChangeHandler=function(v){this.postToContentWindow({"yt-player-state-change":v})};
_.c.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19830_playerEvents);v&&(this.player=v,this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$19830_playerEvents),_.jK(this.hostElement,"player-api-ready"))};
_.c.liveChatPageUrl=function(v,E,n,f){return!n||E?"about:blank":n.liveChatRenderer?(E=_.qE(this.currentPageUrl).JSC$7925_queryData_,hJ0(E),v=_.qE(v),E.add("continuation",n.liveChatRenderer.continuations[0].reloadContinuationData.continuation),n=_.bo()==="USER_INTERFACE_THEME_DARK",(f||n)&&E.add("dark_theme","true"),_.Tu(v,E),f=_.qE(v.toString()),n=f.JSC$7925_queryData_,"SESSION_INDEX"in _.ZU&&(n.add("authuser",_.MX("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.ZU&&n.add("pageId",_.MX("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.ZU&&n.add("sdc",_.MX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),f.toString()):""};
_.c.isCollapsed=function(v,E){return E!==null?E:this.isChatReplay()||v&&v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!0:v?v.liveChatRenderer?v.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Z("live_chat_hide_premiere_replay_message")||v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.c.isHidden=function(v,E,n){var f=E&&E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage,x=E&&E.liveChatRenderer&&E.liveChatRenderer.showHideButton,y=E&&E.liveChatRenderer&&E.liveChatRenderer.showButton;return n&&v&&!f&&!y||!n&&v&&!f&&!x?!0:E&&E.liveChatRenderer&&E.liveChatRenderer.initialDisplayState?E.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.c.computeButtonOverride=function(v,E){if(v&&E)return{type:"outline"}};
_.c.setCollapsedState=function(v){_.C(v,_.N$1)&&(this.isHiddenByUser=!!_.C(v,_.N$1).collapsed,!this.isHiddenByUser&&_.Z("enable_teaser_framework_web_client")&&_.OL(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.c.forwardReduxActionToIframe=function(v){this.postToContentWindow({"yt-live-chat-forward-redux-action":v})};
_.c.onLoopRangeChange=function(v){this.showAboveScrim=!(v==null||!v.postId)};
_.c.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.c.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.c.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.c.sendDarkThemePostMessage=function(v){this.postToContentWindow({"yt-live-chat-set-dark-theme":v})};
_.c.onLiveChatBuyFlowCallback=function(v){this.postToContentWindow({"yt-live-chat-buy-flow-callback":v})};
_.c.handleKeyboardEvent=function(v){(0,_.sh.containsValue)(Iyx,v.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:v.type,keyCode:v.keyCode}})};
_.c.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.c.postToContentWindow=function(v){if(this.isFrameReady)try{var E=window.location.protocol+"//"+window.location.host,n;(n=this.chatframe)!=null&&n.contentWindow?this.chatframe.contentWindow.postMessage(v,E):_.li(new _.yc("Tried posting a message to an iframe with no content window",v))}catch(f){_.mb(f)}};
_.c.shouldHideChatFrame=function(v){return v&&_.Z("hide_live_chat_button_when_collapsed")};
_.hK.Object.defineProperties(CF.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Z("live_chat_overflow_hide_chat")||_.Z("web_watch_chat_hide_button_killswitch"))return _.Z("live_chat_overflow_hide_chat");var v,E,n,f;return!!((v=this.data)==null?0:(E=v.liveChatRenderer)==null?0:(n=E.header)==null?0:(f=n.liveChatHeaderRenderer)==null?0:f.collapseButton)}}});
CF.prototype.collapsedChanged=CF.prototype.collapsedChanged;CF.prototype.urlChanged=CF.prototype.urlChanged;CF.prototype.dataChanged=CF.prototype.dataChanged;CF.prototype.onShowHideChat=CF.prototype.onShowHideChat;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],CF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],CF.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],CF.prototype,"ytOpenPopupBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],CF.prototype,"currentPageUrl",void 0);
_.k([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.W("design:type",Object)],CF.prototype,"baseUrl",void 0);_.k([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.W("design:type",String)],CF.prototype,"url",void 0);_.k([_.H(),_.W("design:type",Object)],CF.prototype,"isHiddenByUser",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.W("design:type",Object)],CF.prototype,"hidden",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.W("design:type",Boolean)],CF.prototype,"collapsed",void 0);_.k([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.W("design:type",Boolean)],CF.prototype,"hideChatFrame",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"showAboveScrim",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"watchNextGrid",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],CF.prototype,"modernButtons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"noBorder",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],CF.prototype,"roundBackground",void 0);
_.k([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.W("design:type",Object)],CF.prototype,"toggleButtonOverride",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],CF.prototype,"overflowHideChat",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"forceDarkTheme",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],CF.prototype,"enableShowWithoutHideChatButton",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],CF.prototype,"theaterWatchWhile",void 0);_.k([_.Wp("#chatframe"),_.W("design:type",HTMLIFrameElement)],CF.prototype,"chatframe",void 0);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CF.prototype,"onShowHideChat",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CF.prototype,"dataChanged",null);
_.k([_.On("url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CF.prototype,"urlChanged",null);_.k([_.On("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CF.prototype,"collapsedChanged",null);CF=_.k([_.N({is:"ytd-live-chat-frame",disableElementRegistration:!0})],CF);
_.u(CF,"ytd-live-chat-frame",function(){if(RFK!==void 0)return RFK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return RFK=v},{mode:1});var tZK;var Mf=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};return v};
_.S(Mf,_.g);Mf.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=_.p2(this.data.backgroundColor)))};
Mf.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var v=this.getFormattedStringLoggingDirectives(this.data.headline);v&&this.rendererBehavior.logExplicitClick(v)}};
Mf.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var v=this.getFormattedStringLoggingDirectives(this.data.description);v&&this.rendererBehavior.logExplicitClick(v)}};
Mf.prototype.getFormattedStringLoggingDirectives=function(v){return v&&v.runs&&v.runs.length>0&&v.runs[0]&&v.runs[0].loggingDirectives?v.runs[0].loggingDirectives:null};
Mf.prototype.dataChanged=Mf.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Mf.prototype,"rendererBehavior",void 0);_.k([_.h(NPp.YtMacroReplacementBehavior),_.W("design:type",Object)],Mf.prototype,"macroReplacementBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Mf.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Mf.prototype,"navigationEndpoint",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Mf.prototype,"enableColors",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Mf.prototype,"modern",void 0);_.k([_.H(),_.W("design:type",Object)],Mf.prototype,"buttonOverrides",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Mf.prototype,"dataChanged",null);Mf=_.k([_.N({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Mf);
_.u(Mf,"ytd-action-basic-immersive-content-renderer",function(){if(tZK!==void 0)return tZK;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return tZK=v},{mode:1});var BPU;var vcU;var Sy=function(){return _.g.apply(this,arguments)||this};
_.S(Sy,_.g);Sy.prototype.dataChanged=function(){var v;((v=this.data)==null?void 0:v.backgroundColor)!==void 0&&_.NQ(this.hostElement,{"--bgu-color":_.p2(this.data.backgroundColor)})};
Sy.prototype.onImageTileClick=function(){var v;((v=this.data)==null?0:v.navigationEndpoint)&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var E;((E=this.data)==null?0:E.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.hK.Object.defineProperties(Sy.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?void 0:v.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 v;return((v=this.data)==null?void 0:v.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var v,E,n;if(((v=this.data)==null?void 0:(E=v.detailsLine)==null?void 0:E.texts)!=null&&((n=this.data)==null?void 0:n.detailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.detailsLine.texts.map(function(x){return x.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var v,E,n;if(((v=this.data)==null?void 0:(E=v.optionalDetailsLine)==null?void 0:E.texts)!=null&&((n=this.data)==null?void 0:n.optionalDetailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.optionalDetailsLine.texts.map(function(x){return x.text}).join("")}return null}}});
Sy.prototype.dataChanged=Sy.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sy.prototype,"rendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Sy.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sy.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.backgroundColor"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Sy.prototype,"hasBackgroundColor",null);
_.k([_.A("data.objectFit"),_.W("design:type",Object),_.W("design:paramtypes",[])],Sy.prototype,"getObjectFit",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.tileRenderingStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Sy.prototype,"hasTileMetadata",null);_.k([_.A("data.detailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],Sy.prototype,"getSecondaryDetails",null);
_.k([_.A("data.optionalDetailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],Sy.prototype,"getOptionalDetails",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sy.prototype,"dataChanged",null);Sy=_.k([_.N({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Sy);
_.u(Sy,"ytd-image-tile-renderer",function(){if(vcU!==void 0)return vcU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vcU=v},{mode:1});var EcK;var Ut=function(){return _.g.apply(this,arguments)||this};
_.S(Ut,_.g);Ut.prototype.getOpenLinkIcon=function(){return _.Z("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Ut.prototype.onSitelinkTap=function(){_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Z("kevlar_command_handler_migration_killswitch"))_.LG(this.hostElement,this.data.clickCommands,this.hostElement);else for(var v=_.p(this.data.clickCommands),E=v.next();!E.done;E=v.next())this.ytComponentBehavior.resolveCommand(E.value)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ut.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ut.prototype,"rendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ut.prototype,"data",void 0);Ut=_.k([_.N({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Ut);
_.u(Ut,"ytd-sitelink-renderer",function(){if(EcK!==void 0)return EcK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return EcK=v},{mode:1});var qf=function(){var v=_.g.apply(this,arguments)||this;v.paddingFix=_.Z("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.S(qf,_.g);qf.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"}}}};
qf.prototype.dataChanged=function(){var v=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;v.ytMacroReplacementBehavior.sendServiceRequestAction([E])})};
qf.prototype.shouldHideFooter=function(v){return!(v&&_.Z("use_ads_engagement_panel_desktop_footer_cta"))};
_.hK.Object.defineProperties(qf.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(n){var f;return(f=_.C(n,gTO))==null?void 0:f.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(n){var f;return((f=_.C(n,gTO))==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
qf.prototype.dataChanged=qf.prototype.dataChanged;_.k([_.h(NPp.YtMacroReplacementBehavior),_.W("design:type",Object)],qf.prototype,"ytMacroReplacementBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qf.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qf.prototype,"paddingFix",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qf.prototype,"removeBorderFromImageTiles",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qf.prototype,"useFooteredMetadataRenderingStyle",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qf.prototype,"dataChanged",null);qf=_.k([_.N({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],qf);
_.u(qf,"ytd-action-engagement-panel-content-renderer",function(){if(BPU!==void 0)return BPU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return BPU=v},{mode:1});var nc6;var ocM=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});return _.w("ad-grid-card-image-full-metadata-view-model",{class:function(){var f;return((f=E().interaction)==null?0:f.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:v,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(f){return _.w(_.iO,{data:f.data,
customCommandResolver:n})}})),_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.w(_.x6,{cond:function(){return E().headline},
then:function(f){return _.w(_.nh,{text:f,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.w(_.x6,{cond:function(){return E().detailsLine},
then:function(f){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.w(_.mI,{data:f},{adDetailsLineViewModel:function(x){return _.w(_.O5,{data:x.data,customCommandResolver:n,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.w(_.x6,{cond:function(){return E().secondaryDetailsLine},
then:function(f){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.w(_.mI,{data:f},{adDetailsLineViewModel:function(x){return _.w(_.O5,{data:x.data,customCommandResolver:n,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"ti");var ffM=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});return _.w("ad-grid-card-image-view-model",{class:function(){var f;return((f=E().interaction)==null?0:f.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:v,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(f){return _.w(_.iO,{data:f.data,
customCommandResolver:n})}}),_.w("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.w(_.mI,{data:function(){return E().adCardBadge}},{adCardBadgeViewModel:_.n4l})))},"ui");var xN0=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});return _.w("ad-grid-card-text-view-model",{class:function(){var f;return((f=E().interaction)==null?0:f.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:v,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.w(_.x6,{cond:function(){return E().title},
then:function(f){return _.w(_.nh,{text:f,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.w("div",{class:function(){return _.Z("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.w(_.cG,{each:function(){var f;
return((f=E())==null?void 0:f.descriptions)||[]},
keyBy:"INDEX"},function(f){return _.w(_.nh,{text:f,className:function(){return _.Z("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.w("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.w(_.mI,{data:function(){return E().moreInfoButton}},{adButtonViewModel:function(f){return _.w(_.HB,{data:f.data,
customCommandResolver:n})}})))},"vi");var cU3=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;var f=v.adGridCardCollectionStyle;v=_.Ig();_.gt(v,{visibilityCallback:function(x){var y,Q=(y=E().interaction)==null?void 0:y.onFirstVisible;x&&Q&&_.lj(Q)},
showOption:_.VL});return _.w("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:v,style:function(){return"grid-template-columns: repeat("+Rd3(f?f():E().style)+", minmax(0, 1fr));"}},_.w(_.mI,{data:function(){var x;
return(x=E())==null?void 0:x.gridCards}},{adGridCardImageViewModel:function(x){return _.w(ffM,{data:x.data,
customCommandResolver:n})},
adGridCardImageFullMetadataViewModel:function(x){return _.w(ocM,{data:x.data,customCommandResolver:n})},
adGridCardTextViewModel:function(x){return _.w(xN0,{data:x.data,customCommandResolver:n})}}))},"wi");_.Yz(_.qu(function(v){var E=v.data;v=_.Ig();_.Nl(v,function(){return E().interaction},teb);
_.gt(v,{visibilityCallback:function(n){var f,x=(f=E().interaction)==null?void 0:f.onFirstVisible;n&&x&&_.lj(x)},
showOption:_.VL});return _.w("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:v},_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.w(_.x6,{cond:_.IyQ("(min-width: "+((0,_.s9)()+_.Vi)+"px)"),then:function(){return _.w(_.mI,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(n){return _.w(cU3,{data:n.data,
customCommandResolver:teb})}})},
else:function(){return _.w(_.mI,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(n){return _.w(cU3,{data:n.data,
customCommandResolver:teb,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.w(_.mI,{data:function(){return E().adButton}},{adButtonViewModel:function(n){return _.w(_.HB,{data:n.data,
customCommandResolver:teb})}})))},"xi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;v=_.Ig();_.Nl(v,function(){return E().interaction},BU_);
_.gt(v,{visibilityCallback:function(n){var f,x=(f=E().interaction)==null?void 0:f.onFirstVisible;n&&x&&_.lj(x)},
showOption:_.VL});return _.w("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:v},_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.w(_.mI,{data:function(){if(_.IyQ("(min-width: "+((0,_.s9)()+_.Vi)+"px)")())var n=E().adGridCardCollection;else{n=Object.assign({},_.C(E().adGridCardCollection,NSK));var f;n.gridCards!==void 0&&((f=n.gridCards)==null?void 0:f.length)>1?n.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":n.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";n={adGridCardCollectionViewModel:n}}return n}},{adGridCardCollectionViewModel:function(n){return _.w(cU3,{data:n.data,
customCommandResolver:BU_})}})),_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.w(_.mI,{data:function(){return E().adButton}},{adButtonViewModel:function(n){return _.w(_.HB,{data:n.data,
customCommandResolver:BU_})}})))},"yi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Kt}});var Jr=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return v};
_.S(Jr,_.g);_.c=Jr.prototype;_.c.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"}}}};
_.c.attached=function(){this.getDataFromPlayerAndRender()};
_.c.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.c.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.c.getDataFromPlayerAndRender=function(){var v=this,E=_.Aq(this.hostElement);E&&E.getPlayerPromise().then(function(n){v.getCachedDataAndListen(n)})};
_.c.getCachedDataAndListen=function(v){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=v)};
_.c.resolveCachedActions=function(){var v=_.JM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(v=v&&v())&&!_.sh.isEmpty(v)&&this.sendUpdateEngagementPanelAction(v);(v=(v=_.JM("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&v())&&!_.sh.isEmpty(v)&&this.sendChangeEngagementPanelVisibilityAction(v);(v=(v=_.JM("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&v())&&!_.sh.isEmpty(v)&&this.sendScrollToEngagementPanelCommand(v)};
_.c.sendUpdateEngagementPanelAction=function(v){var E;_.OL(this.hostElement,"yt-update-engagement-panel-action",[(E=_.sh.get(v,"action"))!=null?E:v])};
_.c.sendChangeEngagementPanelVisibilityAction=function(v){_.OL(this.hostElement,"yt-change-engagement-panel-visibility-action",[v])};
_.c.sendScrollToEngagementPanelCommand=function(v){_.OL(this.hostElement,"yt-scroll-to-engagement-panel-command",[v])};
_.c.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Z("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.li(Error("fm"))};
Jr.prototype.dataChanged=Jr.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Jr.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Jr.prototype,"componentBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Jr.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Jr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Jr.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Jr.prototype,"player",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jr.prototype,"dataChanged",null);Jr=_.k([_.N({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Jr);
_.u(Jr,"ytd-ads-engagement-panel-content-renderer",function(){if(nc6!==void 0)return nc6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return nc6=v},{mode:1});var yU3;var KF=function(){var v=_.g.apply(this,arguments)||this;v.player=null;v.JSC$19867_playerEvents=new Map;v.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return v};
_.S(KF,_.g);_.c=KF.prototype;_.c.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]]"}}}}}};
_.c.created=function(){this.player=null;this.JSC$19867_playerEvents=new Map;this.JSC$19867_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19867_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19867_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19867_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.c.attached=function(){var v=this,E=_.Aq();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));E&&E.getPlayerPromise().then(function(n){v.setPlayer(n);v.set("isPageLoad",!1)})};
_.c.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19867_playerEvents);this.set("player",v);v&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$19867_playerEvents),v.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.c.onLoopRangeChange=function(v){var E=_.P().resolve(_.jp(_.Y_));if((!E||E.isOnWatch())&&this.hostElement.clientHeight){var n;!v&&((n=this.data)==null?0:n.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.c.onVideoProgress=function(v){var E,n,f=((E=this.player)==null?void 0:(n=E.getPresentingPlayerType)==null?void 0:n.call(E))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f);var x;if(!f&&(x=this.player)!=null&&x.getLoopRange()){n=this.player.getLoopRange();E=n.startTimeMs;n=n.endTimeMs;f=this.player.getProgressState(1).seekableStart;var y;E<f*1E3&&((y=this.data)==null?0:y.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
v=n<v*1E3;var Q;((Q=this.player)==null?0:Q.getLoopRange())&&v&&this.player.seekTo(E/1E3)}};
_.c.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.c.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.c.onYtDeleteClipEngagementPanelCommand=function(v){_.C(v,vuK).command&&this.ytComponentBehavior.resolveCommand(_.C(v,vuK).command)};
_.hK.Object.defineProperties(KF.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.qD("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],KF.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],KF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],KF.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],KF.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],KF.prototype,"isAdPlaying",void 0);_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],KF.prototype,"isPageLoad",void 0);_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],KF.prototype,"isDarkTheme",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KF.prototype,"voteCount",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KF.prototype,"channelEndpoint",null);_.k([_.A("channelEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],KF.prototype,"channelHref",null);KF=_.k([_.N({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],KF);
_.u(KF,"ytd-clip-attribution-renderer",function(){if(yU3!==void 0)return yU3;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return yU3=v},{mode:1});var p9C;var db=function(){var v=_.g.apply(this,arguments)||this;v.player=null;v.JSC$19872_playerEvents=new Map;return v};
_.S(db,_.g);_.c=db.prototype;_.c.created=function(){this.player=null;this.JSC$19872_playerEvents=new Map;this.JSC$19872_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19872_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19872_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.c.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c.attached=function(){var v=this,E=_.Aq();E&&E.getPlayerPromise().then(function(n){v.setPlayer(n);v.set("isPageLoad",!1)})};
_.c.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19872_playerEvents);this.set("player",v);if(v){this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$19872_playerEvents);var E;(v==null?void 0:(E=v.getPresentingPlayerType)==null?void 0:E.call(v))===2&&this.playerAdStartHandler()}};
_.c.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.c.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.c.onVideoProgress=function(){var v,E,n=((v=this.player)==null?void 0:(E=v.getPresentingPlayerType)==null?void 0:E.call(v))===2;this.isAdPlaying!==n&&this.set("isAdPlaying",n)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],db.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],db.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],db.prototype,"isAdPlaying",void 0);
_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],db.prototype,"isPageLoad",void 0);db=_.k([_.N({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],db);
_.u(db,"ytd-clip-section-footer-renderer",function(){if(p9C!==void 0)return p9C;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return p9C=v},{mode:1});var QvR;var X9M;var Io=function(){return _.g.apply(this,arguments)||this};
_.S(Io,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Io.prototype,"data",void 0);Io=_.k([_.N({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Io);
_.u(Io,"ytd-clip-ad-state-renderer",function(){if(X9M!==void 0)return X9M;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return X9M=v},{mode:1});var e90;var YN=function(){var v=_.g.apply(this,arguments)||this;v.value="";v.valid=!1;v.userChangedValue=!1;v.disabled=!1;v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return v};
_.S(YN,_.g);_.c=YN.prototype;_.c.detached=function(){this.userChangedValue=!1};
_.c.handleKeyDown=function(v){if(_.oG)var E=13;else _.ejQ&&_.f9?E=13:E=13;v.keyCode===E&&v.preventDefault()};
_.c.handleInput=function(){var v=_.K(this.hostElement).querySelector("#title");if(v){var E=(v.value||"").replace(/\r|\n/g," ");this.set("value",E);v.value=E;this.valid=v.validate();this.userChangedValue=!0}};
_.c.handleBlur=function(){this.valid=_.K(this.hostElement).querySelector("#title").validate()};
_.c.onValueChanged=function(){_.jK(this.hostElement,"title-changed",{title:this.value})};
_.c.onValidChanged=function(){_.jK(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.c.setInput=function(v,E){var n=_.K(this.hostElement).querySelector("#title");n&&(n.value=v,this.handleInput(),E&&(n.invalid=!1,this.valid=!0))};
_.c.onClipCreationDisable=function(){this.set("disabled",!0)};
_.c.onClipCreationEnable=function(){this.set("disabled",!1)};
_.c.onClipCreationVisibilityChange=function(v){var E=this;v.visible?requestAnimationFrame(function(){var n;((n=_.K(E.hostElement).querySelector("#title"))==null?void 0:n.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
YN.prototype.onValidChanged=YN.prototype.onValidChanged;YN.prototype.onValueChanged=YN.prototype.onValueChanged;YN.prototype.handleBlur=YN.prototype.handleBlur;YN.prototype.handleInput=YN.prototype.handleInput;YN.prototype.handleKeyDown=YN.prototype.handleKeyDown;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],YN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],YN.prototype,"value",void 0);_.k([_.H(),_.W("design:type",Object)],YN.prototype,"valid",void 0);_.k([_.H(),_.W("design:type",Object)],YN.prototype,"userChangedValue",void 0);_.k([_.H(),_.W("design:type",Object)],YN.prototype,"disabled",void 0);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],YN.prototype,"handleKeyDown",null);
_.k([_.jk("input"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YN.prototype,"handleInput",null);_.k([_.jk("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YN.prototype,"handleBlur",null);_.k([_.On("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YN.prototype,"onValueChanged",null);
_.k([_.On("valid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YN.prototype,"onValidChanged",null);YN=_.k([_.N({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],YN);
_.u(YN,"ytd-clip-creation-text-input-renderer",function(){if(e90!==void 0)return e90;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return e90=v},{mode:1});var FQ3;var mN_;var w96;var bmd;var lfp;var hr=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};v.pendingStoryboardImages_={};v.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];v.tickLabelInterval=30;v.mediumTickInterval=5;v.largeTickInterval=15;v.aboveRulerHeight=32;v.rulerHeight=50;v.smallTickHeight=4;v.mediumTickHeight=8;v.largeTickHeight=16;v.mediaListeners_=
{};return v};
_.S(hr,_.g);_.c=hr.prototype;_.c.attached=function(){var v=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(E){E=_.p(["screen and (min-resolution: "+E+")","screen and (max-resolution: "+E+")"]);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=window.matchMedia(n);f&&(v.mediaListeners_[n]=v.updatePixelRatio_.bind(v),f.addEventListener?f.addEventListener("change",v.mediaListeners_[n]):f.addListener?f.addListener(v.mediaListeners_[n]):delete v.mediaListeners_[n])}})};
_.c.detached=function(){this.setPlayer(null);for(var v=_.p(Object.keys(this.mediaListeners_)),E=v.next();!E.done;E=v.next()){var n=E.value;E=this.mediaListeners_[n];(n=window.matchMedia(n))&&(n.removeEventListener?n.removeEventListener("change",E):n.removeListener&&n.removeListener(E))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.c.onVisibilityChangedAction_=function(v){var E=this;v.visible&&!this.player_&&(v=_.Aq())&&v.getPlayerPromise().then(function(n){E.setPlayer(n)})};
_.c.setPlayer=function(v){v&&this.set("player_",v)};
_.c.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.c.setUpCanvas_=function(){var v=this.rulerWidth,E=this.devicePixelRatio_,n=this.visible;this.set("canvasReady_",!1);if(n&&E!==0){n=this.aboveRulerHeight+this.rulerHeight;var f=_.K(this.hostElement).querySelector("#ticks");f.width=v*E;f.height=n*E;f.style.width=v+"px";f.style.height=n+"px";f.getContext("2d").scale(E,E);this.set("canvasReady_",!0)}};
_.c.drawRuler_=function(v,E,n,f,x,y,Q,e,F,b,l,r){v&&n&&E&&(v=_.K(this.hostElement).querySelector("#ticks"),E=v.getContext("2d"),E.clearRect(0,0,v.width,v.height),E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),E.lineWidth=2,E.beginPath(),E.moveTo(0,this.aboveRulerHeight),E.lineTo(v.width,this.aboveRulerHeight),E.moveTo(0,v.height),E.lineTo(v.width,v.height),E.stroke(),this.drawRulerTicks_(v,y,x,f),this.drawStoryboardImages_(v,n,y,x,f),E.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
E.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Q-y,f,!1),this.rulerHeight),n=this.timeToPixels_(e-y,f,!1),E.fillRect(n,this.aboveRulerHeight,v.width-n,this.rulerHeight),this.drawSpeedLines_(v,y,r))};
_.c.drawRulerTicks_=function(v,E,n,f){var x=v.getContext("2d");x.save();x.lineWidth=1;for(var y=Math.floor(Math.max(0,E-this.tickLabelInterval));y<E+n;y++){x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Q=(y-E)*f;x.beginPath();x.moveTo(Q,v.height);var e=this.smallTickHeight;y%this.largeTickInterval===0?e=this.largeTickHeight:y%this.mediumTickInterval===0&&(e=this.mediumTickHeight);x.lineTo(Q,v.height-e);x.stroke();y%this.tickLabelInterval===0&&(x.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),x.fillText(qz(y),Q+4,12),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.moveTo(Q,0),x.lineTo(Q,this.aboveRulerHeight),x.stroke())}x.restore()};
_.c.percentToHex_=function(v){v=Math.round(v*255).toString(16);v.length<2&&(v="0"+v);return v};
_.c.drawSpeedLines_=function(v,E,n){var f=v.getContext("2d");f.save();var x=Math.min(25,Math.abs(n)-15)/25,y=v.width*.3*x,Q=v.width*-.3,e=v.width*1.3,F=this.aboveRulerHeight;v=v.height;var b=Math.round(4*x),l=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");l.length<7&&(l="#"+l.substring(1,4).repeat(2));var r=this.percentToHex_(.5+x/2);r=l+r;l+="00";if(x>0)for(x=0;x<b;x++){var a=Q+Math.random()*(e-Q),M=F+Math.random()*(v-F),U=y+E%y,d=f.createLinearGradient(a,M,a+U,M);
n<0?(d.addColorStop(0,r),d.addColorStop(.4,r),d.addColorStop(.9,l)):(d.addColorStop(.1,l),d.addColorStop(.6,r),d.addColorStop(1,r));f.strokeStyle=d;f.lineWidth=1;f.beginPath();f.moveTo(a,M);f.lineTo(a+U,M);f.stroke()}f.restore()};
_.c.getStoryboardForTime_=function(v,E,n){n===void 0&&(n=E.getNumberOfStoryboardLevels()-1);v=E.getStoryboardFrameIndex(v,n);return E.getStoryboardFrame(v,n)};
_.c.drawStoryboardImages_=function(v,E,n,f,x){if(!this.disabled){v=v.getContext("2d");var y=this.getStoryboardForTime_(0,E);if(y){var Q=y.width/y.columns;y=y.height/y.rows;var e=Q/y,F=this.rulerHeight*e;F=this.tickLabelInterval*(e<this.tickLabelInterval*x/this.rulerHeight?1/Math.floor(this.tickLabelInterval*x/F):Math.round(F/(this.tickLabelInterval*x)));var b=F*x,l=this.rulerHeight,r=b/this.rulerHeight,a=Math.floor(Math.max(0,n-F));for(a-=a%F;a<n+f;a+=F){var M=this.getStoryboardForTime_(a,E),U=this.getPreloadedStoryboard_(M.url);
if(U){var d=(a-n)*x,Y=this.aboveRulerHeight,V=M.column*Q,O=M.row*y;if(e<r){var T=l/(b/e);M=Q;T*=y;O+=(y-T)/2}else M=b/(l*e)*Q,T=y,V+=(Q-M)/2;v.drawImage(U,V,O,M,T,d,Y,b,l)}else this.fetchStoryboardImage_(M)}}}};
_.c.getPreloadedStoryboard_=function(v){return this.storyboardImages_.find(function(E){if(E.src==v)return!0;var n=E.src.indexOf(v);return n!=-1&&n==E.src.length-v.length})};
_.c.fetchStoryboardImage_=function(v){var E=this,n=this.getPreloadedStoryboard_(v.url),f=this.pendingStoryboardImages_[v.url];n||f!==void 0||(n=new Promise(function(x){var y=new Image(v.width,v.height);y.src=v.url;y.onload=function(){x(y)};
y.onerror=function(){x(null)}}),this.pendingStoryboardImages_[v.url]=n,n.then(function(x){x&&E.push("storyboardImages_",x);
return x}).finally(function(){delete E.pendingStoryboardImages_[v.url]}))};
_.c.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.c.timeToPixels_=function(v,E,n){v*=E;return n===void 0||n?v+"px":v};
_.c.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
hr.prototype.drawRuler_=hr.prototype.drawRuler_;hr.prototype.setUpCanvas_=hr.prototype.setUpCanvas_;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],hr.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],hr.prototype,"start",void 0);_.k([_.H({value:30}),_.W("design:type",Number)],hr.prototype,"end",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],hr.prototype,"visible",void 0);_.k([_.H(),_.W("design:type",Object)],hr.prototype,"player_",void 0);_.k([_.H(),_.W("design:type",Number)],hr.prototype,"tickSpacing",void 0);_.k([_.H(),_.W("design:type",Number)],hr.prototype,"windowSizeSec",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],hr.prototype,"rulerWidth",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],hr.prototype,"rulerShift",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],hr.prototype,"canvasReady_",void 0);_.k([_.H({value:function(){return[]}}),
_.W("design:type",Array)],hr.prototype,"storyboardImages_",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],hr.prototype,"disabled",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],hr.prototype,"forceRender_",void 0);_.k([_.H({value:1}),_.W("design:type",Number)],hr.prototype,"devicePixelRatio_",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],hr.prototype,"windowSpeed",void 0);
_.k([_.On("visible","devicePixelRatio_","rulerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hr.prototype,"setUpCanvas_",null);
_.k([_.On("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.W("design:returntype")],hr.prototype,"drawRuler_",null);hr=_.k([_.p5({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],hr);
_.u(hr,"yt-clip-creation-scrubber-canvas",function(){if(lfp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);lfp=v}v=lfp;return v},
{mode:2});var svp;var rUC;var Ar=function(){var v=_.g.apply(this,arguments)||this;v.start=0;v.end=30;v.visible=!1;v.draggingLeft_=!1;v.draggingRight_=!1;v.draggingRuler_=!1;v.draggingWindow_=!1;v.seekableStart=0;v.seekableEnd=0;v.rulerWidth_=0;v.rulerShift_=0;v.windowSlideSpeed=0;v.disabled=!1;v.initialized=!1;v.durationAccessibilityLabel="";v.activeLoopRange_=!1;v.rulerDragMouseStart_=0;v.rulerDragRulerStart_=0;v.rulerDragStartTime_=0;v.rulerDragEndTime_=0;v.dragMouseLastX_=0;v.scrollInterval_=null;v.scrubberVe_=null;v.boundHandlers_=
{};v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.S(Ar,_.g);_.c=Ar.prototype;
_.c.created=function(){var v=this;this.JSC$19885_playerEvents=new Map;this.JSC$19885_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19885_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19885_playerEvents.set("onStateChange",this.onStateChange_);var E={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(E).forEach(function(n){v.boundHandlers_[n]=E[n].bind(v)})};
_.c.attached=function(){this.activeLoopRange_=!1;_.K(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ci(156731)};
_.c.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.K(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.c.onVisibilityChangedAction_=function(v){var E=this;v.visible&&!this.player_&&(v=_.Aq())&&v.getPlayerPromise().then(function(n){E.setPlayer(n)})};
_.c.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19885_playerEvents);v&&(this.set("player_",v),this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$19885_playerEvents))};
_.c.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.c.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.c.beginHandleDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=v.clientX,v.target===_.K(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():v.target===_.K(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.c.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.c.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.c.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.c.beginRulerDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=v.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.c.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.c.beginWindowScroll_=function(){var v=this;this.scrollInterval_=setInterval(function(){var E=v.windowSlideSpeed;if(E=_.P7x(v.start,v.boundedRulerStartLimit_())?E-.1:_.P7x(v.end,v.boundedRulerEndLimit_())?E+.1:0){var n=v.capRulerOffset_(v.rulerShift_+E);n==v.rulerShift_?E=0:(v.set("rulerShift_",n),_.jK(v.hostElement,"set-fixed-length-range",{start:v.start+E,duration:v.end-v.start}))}v.set("windowSlideSpeed",E)},33)};
_.c.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.c.endDrag_=function(){this.logClick();var v=void 0;this.draggingRight_?v=this.end-1:this.draggingLeft_&&(v=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,v);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))};
_.c.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.c.updateRulerSize_=function(){this.set("rulerWidth_",_.K(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.c.handleMouseDrag_=function(v){v.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(v):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(v):this.draggingWindow_&&this.handleWindowDrag_(v))};
_.c.handleRulerDrag_=function(v){v=this.pixelsToTime_(v.clientX-this.rulerDragMouseStart_);v=this.capRulerOffset_(this.rulerDragRulerStart_-v);this.set("rulerShift_",v);var E=this.rulerDragStartTime_-(this.rulerDragRulerStart_-v);_.jK(this.hostElement,"set-fixed-length-range",{start:E,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-v)-E})};
_.c.handleWindowDrag_=function(v){var E=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(E);_.jK(this.hostElement,"set-fixed-length-range",{start:this.start+v,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.c.capRulerOffset_=function(v){var E=this.seekableStart-this.pixelsToTime_(16),n=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(E,v),n)};
_.c.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.c.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.c.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.c.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.c.handleWindowHandleDrag_=function(v){var E=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(E);if(this.draggingLeft_){var n=this.start+v;var f=this.end}else this.draggingRight_&&(n=this.start,f=this.end+v);_.jK(this.hostElement,"set-range",{start:n,end:f,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.c.onVideoProgress_=function(v){this.disabled||(v=this.timeToPixels_(v-this.rulerShift_,this.tickSpacing_),_.K(this.hostElement).querySelector("#playhead").style.transform="translateX("+v+")")};
_.c.onClipCreationDisable_=function(){this.endDrag_()};
_.c.timeToPixels_=function(v,E,n){v*=E;return n===void 0||n?v+"px":v};
_.c.pixelsToTime_=function(v){return v/this.tickSpacing_};
_.c.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.c.centerRuler_=function(v,E,n){this.set("rulerShift_",this.capRulerOffset_(v+(E-v)/2-n/2))};
_.c.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.c.updateLoopRange_=function(v,E,n,f,x,y,Q){v&&(E&&f&&!n?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(v.pauseVideo(),v.seekTo(x,!1,void 0,void 0,50)):this.draggingRight_?(v.pauseVideo(),v.seekTo(y-.1,!1,void 0,void 0,50)):(Q!==void 0?v.seekTo(Q,!0,void 0,void 0,50):(E=v.getCurrentTime(),E<x||E>y?v.seekTo(x,!0,void 0,void 0,50):v.seekTo(E,!0,void 0,void 0,50)),v.playVideo()),v.setLoopRange({startTimeMs:x*1E3,endTimeMs:y*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(v.getCurrentTime())):
this.activeLoopRange_&&(v.setLoopRange(null),this.activeLoopRange_=!1))};
_.c.updateHandles_=function(){_.K(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.K(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.c.updateRuler_=function(){var v=this.end,E=this.start,n=this.draggableStartLimit_(),f=this.draggableEndLimit_();(E<n-.001||v>f+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.c.computeDurationLabel_=function(v,E){return v?v.replace("$clip_length",parseFloat(E).toFixed(1)):""};
_.c.computeDuration_=function(v,E){return this.isValidTime_(v)&&this.isValidTime_(E)&&v<E?E-v:0};
_.c.isValidTime_=function(v){return isNaN(parseFloat(v))||v<0?!1:this.player_?v>=this.seekableStart&&v<=this.seekableEnd:!0};
_.c.computeWindowSizeSec_=function(v,E,n){return Math.min((v||12E4)/1E3,n-E)};
_.c.computeTickSpacing_=function(v,E){return E?E/v:1};
_.c.onDragStateChanged_=function(){_.jK(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.c.centerRangeOnTime_=function(v){var E=this.duration;v=ET6(v-E/2,E,this.seekableStart,this.seekableEnd);_.jK(this.hostElement,"set-fixed-length-range",{start:v.start,duration:v.end-v.start})};
_.c.nearlyLessThan_=function(v,E,n){return v+(n===void 0?1E-6:n)<E};
_.c.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var v=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(v,this.start)||this.nearlyLessThan_(this.end,v))&&this.centerRangeOnTime_(v)}};
_.c.onStateChange_=function(v){this.visible&&!this.disabled&&v==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.c.computeDragState_=function(v,E,n,f){return v?"left":E?"right":n?"ruler":f?"window":"none"};
_.c.logClick=function(){var v=_.lc(),E=_.bc();v&&E&&this.scrubberVe_&&(_.Z("combine_ve_grafts")?_.t$(_.Tl(),this.scrubberVe_,E):_.aQ(v,E,this.scrubberVe_),_.qx(v,this.scrubberVe_))};
Ar.prototype.onDragStateChanged_=Ar.prototype.onDragStateChanged_;Ar.prototype.updateRuler_=Ar.prototype.updateRuler_;Ar.prototype.updateHandles_=Ar.prototype.updateHandles_;Ar.prototype.onUpdateLoopRange=Ar.prototype.onUpdateLoopRange;Ar.prototype.onInitializedChanged_=Ar.prototype.onInitializedChanged_;Ar.prototype.onVisibleChanged_=Ar.prototype.onVisibleChanged_;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ar.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",Object)],Ar.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"start",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"end",void 0);_.k([_.H({computed:"computeDuration_(start, end)"}),_.W("design:type",Number)],Ar.prototype,"duration",void 0);
_.k([_.H(),_.W("design:type",String)],Ar.prototype,"lengthTemplate",void 0);_.k([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.W("design:type",String)],Ar.prototype,"durationLabel",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"visible",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"player_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"draggingLeft_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"draggingRight_",void 0);
_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"draggingRuler_",void 0);_.k([_.H({value:!1}),_.W("design:type",Object)],Ar.prototype,"draggingWindow_",void 0);_.k([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.W("design:type",Number)],Ar.prototype,"tickSpacing_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"seekableStart",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"seekableEnd",void 0);
_.k([_.H(),_.W("design:type",Number)],Ar.prototype,"windowSizeMs",void 0);_.k([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.W("design:type",Number)],Ar.prototype,"windowSizeSec_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"rulerWidth_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"rulerShift_",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"windowSlideSpeed",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ar.prototype,"disabled",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"initialized",void 0);_.k([_.H(),_.W("design:type",Object)],Ar.prototype,"durationAccessibilityLabel",void 0);_.k([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.W("design:type",String)],Ar.prototype,"dragState",void 0);
_.k([_.On("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"onVisibleChanged_",null);_.k([_.On("initialized"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"onInitializedChanged_",null);_.k([_.On("player_","visible","disabled","initialized","start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"onUpdateLoopRange",null);
_.k([_.On("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"updateHandles_",null);_.k([_.On("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"updateRuler_",null);
_.k([_.On("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ar.prototype,"onDragStateChanged_",null);Ar=_.k([_.p5({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Ar);
_.u(Ar,"yt-clip-creation-scrubber-view",function(){if(rUC===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;svp===void 0&&(svp=document.createElement("template"));var f=svp;n.call(E,f.content.cloneNode(!0),v.content.firstChild);rUC=v}v=rUC;return v},{mode:2});var Vq=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};v.startHighlightTimeout=0;v.endHighlightTimeout=0;return v};
_.S(Vq,_.g);_.c=Vq.prototype;_.c.attached=function(){var v=this;this.startInput.addEventListener("input",function(E){return v.handleStartInput_(E)});
this.endInput.addEventListener("input",function(E){return v.handleEndInput_(E)});
this.startInput.addEventListener("focusout",function(E){return v.handleStartBlur_(E)});
this.endInput.addEventListener("focusout",function(E){return v.handleEndBlur_(E)})};
_.c.setPlayer=function(v){this.set("player_",v)};
_.c.onSetFixedLengthRange_=function(v){var E=v.detail;v=E.start;var n=E.duration,f=E.startLimit;E=E.endLimit;f||(f=this.seekableStart_);E||(E=this.seekableEnd_);v=ET6(v,n,f,E);this.start=v.start;this.end=v.end};
_.c.onSetRange_=function(v){var E=v.detail;v=E.start;var n=E.end,f=E.startLimit;E=E.endLimit;f||(f=this.seekableStart_);E||(E=this.seekableEnd_);if(v=nTx(v,n,f,E,this.minLengthSec,this.maxLengthSec))this.start=v.start,this.end=v.end};
_.c.updateInputs_=function(){var v=this.end,E=this.start;this.startInput.focused||(this.startInput.value=qz(E,!0));this.endInput.focused||(this.endInput.value=qz(v,!0))};
_.c.handleStartInput_=function(v){v=vTb(v.target.value);if(v===null)this.set("startValid",!1);else{var E=this.end,n=nTx(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);n?(this.set("endWillUpdate",n.end!==E),this.set("startValid",n.start===v)):this.set("startValid",!1)}};
_.c.handleEndInput_=function(v){v=vTb(v.target.value);if(v===null)this.set("endValid",!1);else{var E=this.start,n=oT6(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);n?(this.set("startWillUpdate",n.start!==E),this.set("endValid",n.end===v)):this.set("endValid",!1)}};
_.c.handleStartBlur_=function(v){v=vTb(v.target.value);v===null?this.startInput.value=qz(this.start,!0):this.forceUpdateInputs_(nTx(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.c.handleEndBlur_=function(v){v=vTb(v.target.value);v===null?this.endInput.value=qz(this.end,!0):this.forceUpdateInputs_(oT6(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.c.forceUpdateInputs_=function(v){v&&(this.start=v.start,this.end=v.end);this.startInput.value=qz(this.start,!0);this.endInput.value=qz(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.c.initializeClipRange_=function(){var v=this.seekableEnd_,E=this.seekableStart_,n=this.visible_,f=this.player_;if(!f||!n||E===null||!v)this.set("initialized",!1);else if(!this.initialized){var x=f.getCurrentTime(),y=this.getDefaultLengthSec_();n=f.getVideoData();var Q=f.getPlayerState()==1,e=n.isLive;y=Math.min(y,v-E);x=Math.max(0,x);v=e?oT6(x-y,x,E,v,this.minLengthSec,this.maxLengthSec):Q?ET6(x-y/2,y,E,v):ET6(x,y,E,v);this.start=v.start;this.end=v.end;this.set("initialized",!0);n.isLive&&f.seekTo(v.start);
this.startInput.value=qz(this.start,!0);this.endInput.value=qz(this.end,!0)}};
_.c.onStartChanged_=function(){var v=this;_.jK(this.hostElement,"start-changed",{start:this.start});var E;isNaN((E=this.oldStart)!=null?E:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){v.set("highlightStart",!1);v.startHighlightTimeout=0;v.oldStart=v.start},3E3))};
_.c.onEndChanged_=function(){var v=this;_.jK(this.hostElement,"end-changed",{end:this.end});var E;isNaN((E=this.oldEnd)!=null?E:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){v.set("highlightEnd",!1);v.endHighlightTimeout=0;v.oldEnd=v.end},3E3))};
_.c.onVisibilityChangedAction_=function(v){var E=this;this.set("visible_",v.visible);this.visible_&&!this.player_&&(v=_.Aq())&&v.getPlayerPromise().then(function(n){E.setPlayer(n)})};
_.c.computeMinLengthSec_=function(v){return v/1E3||5};
_.c.computeMaxLengthSec_=function(v){return v/1E3||60};
_.c.computeDefaultLengthSec_=function(v){return v/1E3};
_.c.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.c.computeSeekableStart_=function(v,E){return v&&E?v.getProgressState(1).seekableStart:0};
_.c.computeSeekableEnd_=function(v,E){return v&&E?v.getProgressState(1).seekableEnd:0};
_.c.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.c.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.c.onDragState_=function(v){this.set("highlightStart",v.detail.startChanging);this.set("highlightEnd",v.detail.endChanging)};
Vq.prototype.onDragState_=Vq.prototype.onDragState_;Vq.prototype.onEndChanged_=Vq.prototype.onEndChanged_;Vq.prototype.onStartChanged_=Vq.prototype.onStartChanged_;Vq.prototype.initializeClipRange_=Vq.prototype.initializeClipRange_;Vq.prototype.updateInputs_=Vq.prototype.updateInputs_;Vq.prototype.onSetRange_=Vq.prototype.onSetRange_;Vq.prototype.onSetFixedLengthRange_=Vq.prototype.onSetFixedLengthRange_;
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Vq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Vq.prototype,"data",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],Vq.prototype,"start",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Vq.prototype,"startValid",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vq.prototype,"startWillUpdate",void 0);_.k([_.H({value:30}),_.W("design:type",Number)],Vq.prototype,"end",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Vq.prototype,"endValid",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vq.prototype,"endWillUpdate",void 0);_.k([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.W("design:type",Number)],Vq.prototype,"minLengthSec",void 0);
_.k([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.W("design:type",Number)],Vq.prototype,"maxLengthSec",void 0);_.k([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.W("design:type",Number)],Vq.prototype,"defaultLengthSec",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Vq.prototype,"visible_",void 0);_.k([_.H(),_.W("design:type",Object)],Vq.prototype,"player_",void 0);
_.k([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.W("design:type",Number)],Vq.prototype,"seekableStart_",void 0);_.k([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.W("design:type",Number)],Vq.prototype,"seekableEnd_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Vq.prototype,"initialized",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vq.prototype,"disabled",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vq.prototype,"highlightStart",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vq.prototype,"highlightEnd",void 0);_.k([_.Wp("#start"),_.W("design:type",HTMLInputElement)],Vq.prototype,"startInput",void 0);_.k([_.Wp("#end"),_.W("design:type",HTMLInputElement)],Vq.prototype,"endInput",void 0);
_.k([_.jk("set-fixed-length-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vq.prototype,"onSetFixedLengthRange_",null);_.k([_.jk("set-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vq.prototype,"onSetRange_",null);_.k([_.On("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vq.prototype,"updateInputs_",null);
_.k([_.On("player_","visible_","seekableStart_","seekableEnd_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vq.prototype,"initializeClipRange_",null);_.k([_.On("start"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vq.prototype,"onStartChanged_",null);_.k([_.On("end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vq.prototype,"onEndChanged_",null);
_.k([_.jk("clips-drag-state"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vq.prototype,"onDragState_",null);Vq=_.k([_.p5({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Vq);
_.u(Vq,"yt-clip-creation-scrubber-renderer",function(){if(bmd===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;w96===void 0&&(w96=document.createElement("template"));var f=w96;n.call(E,f.content.cloneNode(!0),v.content.firstChild);bmd=v}v=bmd;return v},{mode:2});var Dx=function(){var v=_.g.apply(this,arguments)||this;v.player_=null;v.JSC$19899_playerEvents=new Map;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.S(Dx,_.g);_.c=Dx.prototype;_.c.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"}}}};
_.c.created=function(){this.JSC$19899_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19899_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19899_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19899_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.c.detached=function(){this.setPlayer(null)};
_.c.onVisibilityChangedAction_=function(v){var E=this,n;if((n=this.data)==null?0:n.externalVideoId){var f;this.videoId=(f=this.data)==null?void 0:f.externalVideoId}this.getPlayer().then(function(x){if(v.visible)E.returnTime=x.getCurrentTime(),E.isAtLiveHead=x.getProgressState().isAtLiveHead;else{var y=E.returnTime;E.isAtLiveHead&&(y=Number.POSITIVE_INFINITY);x.seekTo(y,void 0,void 0,void 0,51)}})};
_.c.getPlayer=function(){var v=this;if(!this.player_){var E=_.Aq();if(E)return E.getPlayerPromise().then(function(n){v.setPlayer(n);return n})}return Promise.resolve(this.player_)};
_.c.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19899_playerEvents);if(v){this.player_=v;var E;((E=this.data)==null?0:E.externalVideoId)||this.set("videoId",v.getVideoData().video_id||"");var n;(v==null?void 0:(n=v.getPresentingPlayerType)==null?void 0:n.call(v))===2&&(this.set("isAdPlaying",!0),_.OL(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$19899_playerEvents)}};
_.c.ready=function(){_.K(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.c.onTitleChanged_=function(v){this.set("titleValue",v.detail.title)};
_.c.onStartChanged_=function(v){this.set("start",v.detail.start)};
_.c.onEndChanged_=function(v){this.set("end",v.detail.end)};
_.c.onTitleValidChanged_=function(v){this.set("titleValid",v.detail.valid)};
_.c.onStartValidChanged_=function(v){this.set("startValid",v.detail.valid)};
_.c.onEndValidChanged_=function(v){this.set("endValid",v.detail.valid)};
_.c.onVideoDataChange_=function(){var v;if((v=this.data)==null||!v.externalVideoId){var E;this.set("videoId",((E=this.player_)==null?void 0:E.getVideoData().video_id)||"")}};
_.c.computeFormValid_=function(v,E,n,f){return!!(v&&E&&n&&f)};
_.c.computeCancelButton_=function(v,E,n){return v&&_.C(v,_.qb)?{buttonRenderer:Object.assign({},_.C(v,_.qb),{isDisabled:E||n})}:null};
_.c.computeSubmitButton_=function(v,E,n){return v&&_.C(v,_.qb)?{buttonRenderer:Object.assign({},_.C(v,_.qb),{command:void 0,isDisabled:!this.formValid||E||n})}:null};
_.c.computeSubmitCommand_=function(v){return v||null};
_.c.onSubmit_=function(v){var E=this;v.stopPropagation();v.preventDefault();this.submitCommand_&&(v={},v.comment_text=this.titleValue,v.clip_external_video_id=this.videoId,v.clip_offset_ms=parseInt(this.start*1E3,10),v.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.$Z(this.hostElement,[this.submitCommand_,v]).then(function(){E.set("isLoading_",!1)},function(){E.set("isLoading_",!1)}))};
_.c.playerAdStartHandler_=function(){_.OL(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.c.playerAdEndHandler_=function(){_.OL(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.c.onVideoProgress_=function(){var v=this;this.getPlayer().then(function(E){var n,f=(E==null?void 0:(n=E.getPresentingPlayerType)==null?void 0:n.call(E))===2;v.isAdPlaying!==f&&(f?v.playerAdStartHandler_():v.playerAdEndHandler_())})};
Dx.prototype.onEndValidChanged_=Dx.prototype.onEndValidChanged_;Dx.prototype.onStartValidChanged_=Dx.prototype.onStartValidChanged_;Dx.prototype.onTitleValidChanged_=Dx.prototype.onTitleValidChanged_;Dx.prototype.onEndChanged_=Dx.prototype.onEndChanged_;Dx.prototype.onStartChanged_=Dx.prototype.onStartChanged_;Dx.prototype.onTitleChanged_=Dx.prototype.onTitleChanged_;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",Object)],Dx.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dx.prototype,"data",void 0);_.k([_.H({value:""}),_.W("design:type",String)],Dx.prototype,"titleValue",void 0);
_.k([_.H({value:!1}),_.W("design:type",Boolean)],Dx.prototype,"titleValid",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],Dx.prototype,"start",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Dx.prototype,"startValid",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],Dx.prototype,"end",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Dx.prototype,"endValid",void 0);_.k([_.H({value:""}),_.W("design:type",String)],Dx.prototype,"videoId",void 0);
_.k([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.W("design:type",Boolean)],Dx.prototype,"formValid",void 0);_.k([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.W("design:type",Object)],Dx.prototype,"submitButton_",void 0);_.k([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.W("design:type",Object)],Dx.prototype,"submitCommand_",void 0);
_.k([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.W("design:type",Object)],Dx.prototype,"cancelButton_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Dx.prototype,"isLoading_",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Dx.prototype,"isAdPlaying",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],Dx.prototype,"returnTime",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Dx.prototype,"isAtLiveHead",void 0);
_.k([_.jk("title-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onTitleChanged_",null);_.k([_.jk("start-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onStartChanged_",null);_.k([_.jk("end-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onEndChanged_",null);
_.k([_.jk("title-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onTitleValidChanged_",null);_.k([_.jk("start-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onStartValidChanged_",null);_.k([_.jk("end-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dx.prototype,"onEndValidChanged_",null);
Dx=_.k([_.p5({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Dx);
_.u(Dx,"yt-clip-creation-renderer",function(){if(mN_===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;FQ3===void 0&&(FQ3=document.createElement("template"));var f=FQ3;n.call(E,f.content.cloneNode(!0),v.content.firstChild);mN_=v}v=mN_;return v},{mode:2});var HH=function(){return _.g.apply(this,arguments)||this};
_.S(HH,_.g);HH.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"}}}};
HH.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(v){return v.hasOwnProperty("clipCreationRenderer")})&&_.OL(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
HH.prototype.onPanelContentVisibleChanged=HH.prototype.onPanelContentVisibleChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],HH.prototype,"ytVisibilityBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],HH.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],HH.prototype,"panelContentVisible",void 0);_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HH.prototype,"onPanelContentVisibleChanged",null);HH=_.k([_.N({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],HH);
_.u(HH,"ytd-clip-section-renderer",function(){if(QvR!==void 0)return QvR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return QvR=v},{mode:1});var PZd;var gb=function(){return _.g.apply(this,arguments)||this};
_.S(gb,_.g);_.c=gb.prototype;
_.c.onKeyDown=function(v){if(this.snippetElements.length!==0&&(v=v.keyCode,v===38||v===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);v===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Jf(this.highlightedIndex,-1,this.snippetElements.length);v=this.snippetElements.length;var E=this.highlightedIndex%v;this.highlightedIndex=E*v<0?E+v:E;v=this.snippetElements[this.highlightedIndex];this.highlightSnippet(v);this.ensureVisible(v)}};
_.c.onKeyUp=function(v){var E=this;Dkb(v)&&(v.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.wh.cancelJob(this.inputTimerId),this.inputTimerId=_.wh.addLowPriorityJob(function(){E.typedValue&&(E.fetchSnippets(E.typedValue),E.logInputGesture(E.data))},1E3))};
_.c.onClick=function(v){(v=_.WUU(v.target,null,"snippet-item"))&&this.selectSnippet(v)};
_.c.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.c.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.c.ready=function(){var v=this;this.inputElement.addEventListener("focus",function(){v.snippetsWrapper.style.removeProperty("display")})};
_.c.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.c.getSourceTimelines=function(){if(!this.data)return[];var v=[];if(this.data.searchInVideoSources)for(var E=_.p(this.data.searchInVideoSources),n=E.next();!n.done;n=E.next())n=n.value,n==="SEARCH_IN_VIDEO_SOURCE_ASR"?v.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):n==="SEARCH_IN_VIDEO_SOURCE_OCR"&&v.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return v};
_.c.fetchSnippets=function(v){var E=_.OL(this.hostElement,"yt-get-current-video-id-action")[0],n=this.getSourceTimelines();v={getSearchInVideoCommand:{externalVideoId:E,query:v!=null?v:"",sourceTimelines:n},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})};
_.c.filterSnippets=function(v,E){var n=this;if(E){this.filteredSnippets=(0,_.sh.unsafeClone)(v);var f=RegExp(_.EDE(E),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Q){return f.test(n.ytRendererBehavior.getSimpleString(Q.snippet))});
v=_.p(this.filteredSnippets);for(var x=v.next();!x.done;x=v.next()){x=x.value;var y=this.ytRendererBehavior.getSimpleString(x.snippet);x.snippet={runs:[{text:y.substring(0,y.toLowerCase().indexOf(E))},{text:y.substring(y.toLowerCase().indexOf(E),y.toLowerCase().indexOf(E)+E.length),bold:!0},{text:y.substring(y.toLowerCase().indexOf(E)+E.length,y.length)}]}}}else this.filteredSnippets=v};
_.c.onUpdateSearchInVideoResults=function(v){if(!(this.snippets.length>0)){var E,n,f;if((f=(E=_.C(v,TSx))==null?void 0:(n=E.results)==null?void 0:n.length)!=null&&f){var x;this.filteredSnippets=this.snippets=((x=_.C(v,TSx))==null?void 0:x.results).map(function(y){var Q,e,F;return{startMs:y==null?void 0:(Q=y.searchInVideoResultRenderer)==null?void 0:Q.startMs,startTimeText:y==null?void 0:(e=y.searchInVideoResultRenderer)==null?void 0:e.startTimeText,snippet:y==null?void 0:(F=y.searchInVideoResultRenderer)==
null?void 0:F.snippet}})}}};
_.c.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};
_.c.highlightSnippet=function(v){v.classList.add("highlighted")};
_.c.removeSnippetHighlight=function(v){v.classList.remove("highlighted")};
_.c.selectSnippet=function(v){this.typedValue=String(v.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(v);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.c.ensureVisible=function(v){var E=this.snippetsWrapper.scrollTop,n=E+this.snippetsWrapper.clientHeight,f=v.offsetTop-this.snippetsWrapper.offsetTop;v=f+v.clientHeight;f<E?this.snippetsWrapper.scrollTop-=E-f:v>n&&(this.snippetsWrapper.scrollTop+=v-n)};
_.c.seekPlayer=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1){if(!v)return f.jumpTo(0);E=Number(v.dataset.startOffset);return _.m(f,_.V3().getPlayerPromise(),3)}n=f.yieldResult;n.seekTo(E/1E3,!0);n.wakeUpControls();_.yQ(f)})};
_.c.logInputGesture=function(v){var E=_.lc();E&&(v==null?0:v.trackingParams)&&_.Jc(E,_.tx(v.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.c.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("typed-value-changed",this.typedValue))};
_.c.updateTypedValueFromBinding=function(v){this.typedValue=v.currentTarget.value};
gb.prototype.typedValueChangedForBinding=gb.prototype.typedValueChangedForBinding;gb.prototype.dataChanged=gb.prototype.dataChanged;gb.prototype.panelContentVisibleChanged=gb.prototype.panelContentVisibleChanged;gb.prototype.onClick=gb.prototype.onClick;gb.prototype.onKeyUp=gb.prototype.onKeyUp;gb.prototype.onKeyDown=gb.prototype.onKeyDown;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],gb.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gb.prototype,"data",void 0);_.k([_.H({value:[]}),_.W("design:type",Array)],gb.prototype,"snippets",void 0);_.k([_.H({value:[]}),_.W("design:type",Array)],gb.prototype,"filteredSnippets",void 0);_.k([_.H({value:[]}),_.W("design:type",Array)],gb.prototype,"snippetElements",void 0);
_.k([_.Wp("#siv-input"),_.W("design:type",HTMLElement)],gb.prototype,"inputElement",void 0);_.k([_.Wp("#siv-snippets-wrapper"),_.W("design:type",HTMLElement)],gb.prototype,"snippetsWrapper",void 0);_.k([_.H(),_.W("design:type",String)],gb.prototype,"typedValue",void 0);_.k([_.H({value:-1}),_.W("design:type",Number)],gb.prototype,"highlightedIndex",void 0);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[_.Qu]),_.W("design:returntype")],gb.prototype,"onKeyDown",null);
_.k([_.jk("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[_.Qu]),_.W("design:returntype")],gb.prototype,"onKeyUp",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],gb.prototype,"onClick",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],gb.prototype,"panelContentVisible",void 0);
_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gb.prototype,"panelContentVisibleChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gb.prototype,"dataChanged",null);_.k([_.On("typedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gb.prototype,"typedValueChangedForBinding",null);
gb=_.k([_.N({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],gb);
_.u(gb,"ytd-search-in-video-renderer",function(){if(PZd!==void 0)return PZd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return PZd=v},{mode:1});var af0;var Nf=function(){return _.g.apply(this,arguments)||this};
_.S(Nf,_.g);Nf.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Nf.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]]"}}}}}};
Nf.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,E,n,f,x=(E=_.C((v=this.data)==null?void 0:v.onClickCommand,_.LkF))==null?void 0:(n=E.item)==null?void 0:(f=n.notificationTextRenderer)==null?void 0:f.successResponseText;x&&_.szX(this.hostElement,x)}};
_.hK.Object.defineProperties(Nf.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return this.isProductPlaceholder&&((v=this.data)==null?void 0:(E=v.hiddenProductOptions)==null?void 0:E.showDropCountdown)&&!!((n=this.data)==null?0:(f=n.hiddenProductOptions)==null?0:f.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var v;return!this.isProductPlaceholder&&!((v=this.data)==null?0:v.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null?0:v.priceReplacementText)&&!((E=this.data)==null||!E.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Nf.prototype,"componentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Nf.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"useCenterLayoutContainer",null);_.k([_.H({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],Nf.prototype,"buttonOverride",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"isProductPlaceholder",null);
_.k([_.A("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"showDropCountdown",null);_.k([_.A("isProductPlaceholder","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"showBrandName",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"showPriceReplacementText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"showPrice",null);
_.k([_.A("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],Nf.prototype,"showMetadata",null);Nf=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Nf);
_.u(Nf,"ytd-product-list-item-renderer",function(){if(af0!==void 0)return af0;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return af0=v},{mode:1});var Zmd;var uL=function(){return _.g.apply(this,arguments)||this};
_.S(uL,_.g);uL.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
uL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
uL.prototype.panelContentVisibleChanged=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return v.playerApi?n.jumpTo(2):_.m(n,_.V3().getPlayerPromise(),3);n.nextAddress!=2&&(v.playerApi=n.yieldResult);(E=v.playerApi)==null||E.productsInVideoVisibilityUpdated(!!v.panelContentVisible);_.yQ(n)})};
uL.prototype.panelContentVisibleChanged=uL.prototype.panelContentVisibleChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],uL.prototype,"panelContentVisible",void 0);_.k([_.H(),_.W("design:type",Object)],uL.prototype,"data",void 0);
_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],uL.prototype,"panelContentVisibleChanged",null);uL=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],uL);
_.u(uL,"ytd-product-list-renderer",function(){if(Zmd!==void 0)return Zmd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Zmd=v},{mode:1});var CZd;var jy=function(){var v=_.g.apply(this,arguments)||this;v.hideTimestamps=!!_.vs("hide-transcript-timestamps");v.currentCueIndex=-1;v.flatCues=[];v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};v.TEST_ONLY={getFlatCues:function(){return v.flatCues}};
return v};
_.S(jy,_.g);_.c=jy.prototype;_.c.hideTimestampsChanged=function(){_.Bg("hide-transcript-timestamps",this.hideTimestamps)};
_.c.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.c.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.c.dataChanged=function(){var v;if((v=this.data)!=null&&v.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;v=_.p(this.data.cueGroups);for(var E=v.next();!E.done;E=v.next()){E=_.p(_.C(E.value,iO1).cues);for(var n=E.next();!n.done;n=E.next())this.flatCues.push(Number(_.C(n.value,zJ3).startOffsetMs))}}};
_.c.onYtPlayerTimeChanged=function(v){if(!(v<0)){for(var E=this.currentCueIndex,n=E;;){var f=n>=0?this.flatCues[n]/1E3:-1;if(v+.5<f)--n;else if(f=n+1<this.flatCues.length?this.flatCues[n+1]/1E3:Infinity,v+.5>f)n+=1;else break}n!==E&&(E>=0&&((v=this.getCueElement(E))&&v.classList.remove("active"),(E=this.getCueGroupElement(E))&&E.classList.remove("active")),(E=this.getCueElement(n))&&E.classList.add("active"),(E=this.getCueGroupElement(n))&&E.classList.add("active"),this.currentCueIndex=n,this.isHovered||
this.scrollElementToTop(n))}};
_.c.scrollElementToTop=function(v){v=this.getCueElement(v>=3?v-3:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.c.getCueElement=function(v){return _.K(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[v]+'"]')};
_.c.getCueGroupElement=function(v){return(v=this.getCueElement(v))&&v.parentElement?v.parentElement.parentElement:null};
_.c.onTap=function(v){var E=_.Sk(v);v.target.classList.contains("cue")&&this.seekCueElement(E)};
_.c.onKeyPress=function(v){v.keyCode==13&&(v=_.WUU(v.target,null,"cue"))&&this.seekCueElement(v)};
_.c.seekCueElement=function(v){v=Number(v.getAttribute("start-offset"));_.OL(this.hostElement,"yt-transcript-player-seek",[v/1E3])};
_.c.onMouseEnter=function(){this.isHovered=!0};
_.c.onMouseLeave=function(){this.isHovered=!1};
jy.prototype.onMouseLeave=jy.prototype.onMouseLeave;jy.prototype.onMouseEnter=jy.prototype.onMouseEnter;jy.prototype.onKeyPress=jy.prototype.onKeyPress;jy.prototype.onTap=jy.prototype.onTap;jy.prototype.dataChanged=jy.prototype.dataChanged;jy.prototype.hideTimestampsChanged=jy.prototype.hideTimestampsChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],jy.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jy.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jy.prototype,"hideTimestamps",void 0);_.k([_.H(),_.W("design:type",Boolean)],jy.prototype,"isHovered",void 0);_.k([_.On("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jy.prototype,"hideTimestampsChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jy.prototype,"dataChanged",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jy.prototype,"onTap",null);_.k([_.jk("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jy.prototype,"onKeyPress",null);
_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jy.prototype,"onMouseEnter",null);_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jy.prototype,"onMouseLeave",null);jy=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],jy);
_.u(jy,"ytd-transcript-body-renderer",function(){if(CZd!==void 0)return CZd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return CZd=v},{mode:1});var M_x;var Ot=function(){var v=_.g.apply(this,arguments)||this;v.darkerPanels=_.Z("web_watch_darker_panels");return v};
_.S(Ot,_.g);Ot.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ot.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ot.prototype,"darkerPanels",void 0);Ot=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ot);
_.u(Ot,"ytd-transcript-footer-renderer",function(){if(M_x!==void 0)return M_x;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return M_x=v},{mode:1});var ST_;var UNd;var kN=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.showClearButton=!1;return v};
_.S(kN,_.g);_.c=kN.prototype;_.c.handleInput=function(v){var E=this;v.target.value.length?_.lz(this,"ytdTranscriptSearchBoxSearch",function(){E.emitSearchEvent(v)},500):(_.GmE(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=v.target.value.length>0};
_.c.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.c.handleClick=function(){var v,E=(v=this.data)==null?void 0:v.trackingParams;E&&_.El(_.Tl(),E)};
_.c.handleClear=function(){_.GmE(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var v,E,n=(E=_.C((v=this.data)==null?void 0:v.clearButton,_.qb))==null?void 0:E.trackingParams;n&&_.El(_.Tl(),n);this.clear()};
_.c.emitSearchEvent=function(v){_.jK(this.hostElement,"yt-transcript-search-box-search",{query:v.target.value});var E,n;(v=(n=_.C((E=this.data)==null?void 0:E.searchButton,_.qb))==null?void 0:n.trackingParams)&&_.El(_.Tl(),v)};
_.c.emitClearEvent=function(){_.jK(this.hostElement,"yt-transcript-search-box-clear")};
_.hK.Object.defineProperties(kN.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kN.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"systemIcons",void 0);kN=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],kN);
_.u(kN,"ytd-transcript-search-box-renderer",function(){if(UNd!==void 0)return UNd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return UNd=v},{mode:1});var qTU;var JUK;var WH=function(){return _.g.apply(this,arguments)||this};
_.S(WH,_.g);WH.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var v,E;this.sectionHeaderAriaLabel=(v=this.data)==null?void 0:(E=v.accessibility)==null?void 0:E.accessibilityData.label}};
WH.prototype.fireSelectedEvent=function(v){_.jK(this.hostElement,"ytd-transcript-section-header",{startMs:v})};
WH.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
WH.prototype.handleKeyPress=function(v){this.data&&v.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.hK.Object.defineProperties(WH.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.data)==null?void 0:v.enableTappableTranscriptHeader)!=null?E:!1}}});
WH.prototype.dataChanged=WH.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],WH.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],WH.prototype,"sectionHeaderAriaLabel",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],WH.prototype,"enableTappableTranscriptHeader",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WH.prototype,"dataChanged",null);
WH=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],WH);
_.u(WH,"ytd-transcript-section-header-renderer",function(){if(JUK!==void 0)return JUK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JUK=v},{mode:1});var KQp;var dNd;var $N=function(){var v=_.g.apply(this,arguments)||this;v.isEditMode=!1;v.touchCaptionsEnabled=!1;v.deleteCaptionCorrectionPopupCommand=null;v.voteCaptionCorrectionPopupCommand=null;v.roundedContainer=!0;v.mouseOver=!1;v.textChanged=!1;v.messages={suggest_correction:_.tQ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.tQ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.tQ("submit_correction",void 0,"Submit for review"),cancel_correction:_.tQ("cancel_correction",
void 0,"Cancel"),replay_segment:_.tQ("replay_segment",void 0,"Re-play segment"),delete_correction:_.tQ("delete_correction",void 0,"Delete correction")};v.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return v};
_.S($N,_.g);_.c=$N.prototype;_.c.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)};
_.c.handleDelete=function(v){if(this.deleteCaptionCorrectionPopupCommand){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);E&&this.ytdOpenPopupBehavior.openPopup(E);v.stopPropagation()}};
_.c.handleSubmit=function(v){if(this.data&&this.data.submitCaptionCorrectionCommand&&(v.stopPropagation(),this.textChanged)){var E;v=(E=_.C(this.data.submitCaptionCorrectionCommand,_.j6X))==null?void 0:E.params;E=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:v,correctionText:String(this.ironTextAreaElement.value),originalText:_.JC(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(E);this.isEditMode=!1}};
_.c.handleUpdateSegmentText=function(v){(v=_.C(v,mc_))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&(v.userCorrection&&(this.editedText=v.userCorrection),v.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.JC(this.data.snippet)),v.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=v.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=v.voteCaptionCorrectionPopupCommand?
v.voteCaptionCorrectionPopupCommand:null,v.accessibility&&(this.segmentAriaLabel=v.accessibility.accessibilityData.label))};
_.c.handleCancel=function(v){this.isEditMode=!1;v.stopPropagation();this.logClientVe(159409)};
_.c.handleEditSegmentCommand=function(v){(v=_.C(v,FT0))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&this.handleEdit()};
_.c.handleEditButtonClick=function(v){this.data&&(this.handleEdit(),v.stopPropagation())};
_.c.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var v;(v=this.ironTextAreaElement.textarea)==null||v.focus();this.logClientVe(159407)}};
_.c.handleMouseEnter=function(){this.mouseOver=!0};
_.c.handleMouseLeave=function(){this.mouseOver=!1};
_.c.handleReplay=function(v){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),v.stopPropagation(),this.logClientVe(159408))};
_.c.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()))};
_.c.handleKeypress=function(v){this.data&&(this.isEditMode?v.stopPropagation():this.isEnterPress(v)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(v)&&this.logClientVe(138758))};
_.c.handleTextboxClick=function(v){v.stopPropagation()};
_.c.handleTextboxKeydown=function(v){this.isControlEnterPress(v)?this.handleSubmit(v):v.key==="Escape"&&this.handleCancel(v)};
_.c.handleTextboxKeyup=function(){this.textChanged=_.JC(this.latestText)!==String(this.ironTextAreaElement.value)};
_.c.fireSelectedEvent=function(v){_.jK(this.hostElement,"yt-transcript-segment-selected",{startMs:v})};
_.c.fireReplayEvent=function(v,E){_.jK(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(v-100,0),endMs:E})};
_.c.fireEditEvent=function(v,E){_.jK(this.hostElement,"yt-transcript-segment-edit",{startMs:v,endMs:E})};
_.c.isEnterPress=function(v){return v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13?!0:!1};
_.c.isControlEnterPress=function(v){var E=v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13;return(v.ctrlKey||v.metaKey)&&E};
_.c.isCopyPress=function(v){var E=v.ctrlKey;return v.key==="c"&&E};
_.c.logClick=function(){var v,E=(v=this.data)==null?void 0:v.trackingParams;E&&_.El(_.Tl(),E)};
_.c.logClientVe=function(v){_.vg(_.Tl(),_.ci(v))};
_.hK.Object.defineProperties($N.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}}});
$N.prototype.handleMouseLeave=$N.prototype.handleMouseLeave;$N.prototype.handleMouseEnter=$N.prototype.handleMouseEnter;$N.prototype.dataChanged=$N.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],$N.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],$N.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],$N.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$N.prototype,"isEditMode",void 0);_.k([_.H(),_.W("design:type",Object)],$N.prototype,"touchCaptionsEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],$N.prototype,"editedText",void 0);_.k([_.H(),_.W("design:type",Object)],$N.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.k([_.H(),_.W("design:type",Object)],$N.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.k([_.H(),_.W("design:type",String)],$N.prototype,"segmentAriaLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$N.prototype,"roundedContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$N.prototype,"mouseOver",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$N.prototype,"textChanged",void 0);_.k([_.H(),_.W("design:type",Object)],$N.prototype,"messages",void 0);
_.k([_.Wp("#suggestion"),_.W("design:type",Object)],$N.prototype,"ironTextAreaElement",void 0);_.k([_.A("data","editedText"),_.W("design:type",Object),_.W("design:paramtypes",[])],$N.prototype,"latestText",null);_.k([_.A("touchCaptionsEnabled","isEditMode"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$N.prototype,"enableEditButton",null);
_.k([_.A("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$N.prototype,"enableUndoButton",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$N.prototype,"dataChanged",null);_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$N.prototype,"handleMouseEnter",null);
_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$N.prototype,"handleMouseLeave",null);$N=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],$N);
_.u($N,"ytd-transcript-segment-renderer",function(){if(dNd!==void 0)return dNd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dNd=v},{mode:1});var LF=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};v.isError=!1;v.darkerPanels=_.Z("web_watch_darker_panels");v.segmentOffsets=[];v.segmentIndex=-1;return v};
_.S(LF,_.g);_.c=LF.prototype;_.c.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"}}}}};
_.c.segmentsChanged=function(){this.updateOffsets()};
_.c.onYtPlayerTimeChanged=function(v){for(var E=this.segmentIndex,n=E;;){if(n>=0){var f=this.segmentOffsets[n].start;var x=this.segmentOffsets[n].isAutoScrollable}else f=-1,x=!0;var y=v+.5;if(!x){f=n+1<this.segmentOffsets.length?this.segmentOffsets[n+1].start:Infinity;if(y>=f){n+=1;continue}n=-1;break}if(y<f)f=n-1>=0&&this.segmentOffsets[n-1].isAutoScrollable,x=n===0||f?1:2,n-=x;else if(x=n+1<this.segmentOffsets.length&&this.segmentOffsets[n+1].isAutoScrollable?1:2,f=n+x<this.segmentOffsets.length?
this.segmentOffsets[n+x].start:Infinity,y>f)n+=x;else{if(n<0)break;n<this.segmentOffsets.length&&y>this.segmentOffsets[n].end&&(n=-1);break}}if(E!==n){if(E>=0){var Q;(Q=this.getSegmentElement(E))==null||Q.classList.remove("active")}this.segmentIndex=n;if(!(n<0)){var e;(e=this.getSegmentElement(n))==null||e.classList.add("active");this.isHovered||this.scrollElementToTop(n)}}};
_.c.handleSegmentEdit=function(v){v.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=v.target,_.OL(this.hostElement,"yt-transcript-player-edit",[v.detail.startMs/1E3,v.detail.endMs/1E3]))};
_.c.handleSegmentSelected=function(v){_.OL(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.c.handleSegmentReplay=function(v){_.OL(this.hostElement,"yt-transcript-player-replay",[v.detail.startMs/1E3,v.detail.endMs/1E3])};
_.c.handleSectionHeaderSelected=function(v){_.OL(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.c.onMouseEnter=function(){this.isHovered=!0};
_.c.onMouseLeave=function(){this.isHovered=!1};
_.c.onRetryButtonClick=function(){_.jK(this.hostElement,"transcript-retry-button-click")};
_.c.getSegmentElement=function(v){return _.K(this.hostElement).querySelector(":nth-child("+(v+1)+")")};
_.c.scrollElementToTop=function(v){v=this.getSegmentElement(v>=2?v-2:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.c.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(v){var E,n=(E=v.transcriptSegmentRenderer)!=null?E:v.transcriptSectionHeaderRenderer;return{start:Number(n.startMs)/1E3,end:Number(n.endMs)/1E3,isAutoScrollable:v.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.c.clearHighlightedSegments=function(){var v=_.K(this.hostElement);v=_.p(v.querySelectorAll("ytd-transcript-segment-renderer"));for(var E=v.next();!E.done;E=v.next())E.value.classList.remove("active")};
_.hK.Object.defineProperties(LF.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.searchResultSegments)||((E=this.data)==null?void 0:E.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
LF.prototype.onMouseLeave=LF.prototype.onMouseLeave;LF.prototype.onMouseEnter=LF.prototype.onMouseEnter;LF.prototype.handleSectionHeaderSelected=LF.prototype.handleSectionHeaderSelected;LF.prototype.handleSegmentReplay=LF.prototype.handleSegmentReplay;LF.prototype.handleSegmentSelected=LF.prototype.handleSegmentSelected;LF.prototype.handleSegmentEdit=LF.prototype.handleSegmentEdit;LF.prototype.segmentsChanged=LF.prototype.segmentsChanged;
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],LF.prototype,"isError",void 0);
_.k([_.H(),_.W("design:type",Object)],LF.prototype,"noResultLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],LF.prototype,"darkerPanels",void 0);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],LF.prototype,"segments",null);_.k([_.A("segments","noResultLabel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LF.prototype,"displayNoResults",null);
_.k([_.On("segments"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LF.prototype,"segmentsChanged",null);_.k([_.jk("yt-transcript-segment-edit"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],LF.prototype,"handleSegmentEdit",null);_.k([_.jk("yt-transcript-segment-selected"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],LF.prototype,"handleSegmentSelected",null);
_.k([_.jk("yt-transcript-segment-replay"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],LF.prototype,"handleSegmentReplay",null);_.k([_.jk("ytd-transcript-section-header"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],LF.prototype,"handleSectionHeaderSelected",null);_.k([_.jk("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LF.prototype,"onMouseEnter",null);
_.k([_.jk("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LF.prototype,"onMouseLeave",null);LF=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],LF);
_.u(LF,"ytd-transcript-segment-list-renderer",function(){if(KQp!==void 0)return KQp;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return KQp=v},{mode:1});var GA=function(){var v=_.g.apply(this,arguments)||this;v.hideTimestamps=!!_.vs("hide-transcript-timestamps");v.isLoadingTranscripts=!1;v.darkerPanels=_.Z("web_watch_darker_panels");v.isError=!1;v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return v};
_.S(GA,_.g);_.c=GA.prototype;_.c.headerChanged=function(){var v,E;this.baseGetTranscriptsCommand=(E=_.C((v=this.data)==null?void 0:v.header,wJC))==null?void 0:E.onTextChangeCommand};
_.c.bodyChanged=function(){var v=this.getBodyRenderer();v&&(v.initialSegments&&(this.initialTranscriptsRenderer=v),v.noResultLabel&&(this.noResultLabel=v.noResultLabel),v.retryLabel&&(this.retryLabel=v.retryLabel))};
_.c.detached=function(){this.clearSearchBoxText()};
_.c.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.c.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"}}}};
_.c.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.c.fireSearch=function(v){var E=this;if(v){var n=v.detail.query;if(this.baseGetTranscriptsCommand){var f;v=(f=_.C(this.baseGetTranscriptsCommand,_.VPo))==null?void 0:f.params;var x;f=_.C((x=this.data)==null?void 0:x.footer,RJO);var y;if((x=(y=_.C(f==null?void 0:f.languageMenu,QMM))==null?void 0:y.subMenuItems)&&x.length>0&&(y=x.find(function(F){return F.selected}))){var Q,e;
v=(Q=y.continuation)==null?void 0:(e=Q.reloadContinuationData)==null?void 0:e.continuation}Q=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:v,searchQuery:n}});this.ytComponentBehavior.resolveCommand(Q,{commandController:{onServerError:function(){E.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});AEP(this.ytContinuationHandlerBehavior,function(){return n===E.getCurrentSearchBoxText()})}}};
_.c.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.c.onRetryButtonClick=function(){this.isError=!1;var v={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:v}))};
_.c.hideTimestampsChanged=function(){_.Bg("hide-transcript-timestamps",this.hideTimestamps)};
_.c.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.c.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.c.handleSignalActionCopyTranscript=function(){var v=this,E=this.getBodyRenderer();E&&(E=((E==null?void 0:E.searchResultSegments)||(E==null?void 0:E.initialSegments)||[]).map(function(n){return _.C(n,lyp)}).filter(function(n){return!!n}).map(function(n){return{snippet:n.snippet||{runs:[{text:""}]},
startTimeText:n.startTimeText||{simpleText:""}}}).map(function(n){var f=(n.snippet.runs||[]).reduce(function(x,y){return x+y.text},"");
return v.hideTimestamps?f:n.startTimeText.simpleText+" "+f}).join("\n"),this.copyToClipboard(E))};
_.c.copyToClipboard=function(v){navigator.clipboard&&navigator.clipboard.writeText(v)};
_.c.getCurrentSearchBoxText=function(){var v;return(v=this.searchBox)==null?void 0:v.value};
_.c.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.c.getBodyRenderer=function(){var v;return _.C((v=this.data)==null?void 0:v.body,bNM)};
_.c.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.hK.Object.defineProperties(GA.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
GA.prototype.hideTimestampsChanged=GA.prototype.hideTimestampsChanged;GA.prototype.searchCleared=GA.prototype.searchCleared;GA.prototype.fireSearch=GA.prototype.fireSearch;GA.prototype.onReloadContinuationFinish=GA.prototype.onReloadContinuationFinish;GA.prototype.bodyChanged=GA.prototype.bodyChanged;GA.prototype.headerChanged=GA.prototype.headerChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],GA.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],GA.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GA.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GA.prototype,"hideTimestamps",void 0);
_.k([_.H(),_.W("design:type",Object)],GA.prototype,"isLoadingTranscripts",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GA.prototype,"darkerPanels",void 0);_.k([_.H(),_.W("design:type",Object)],GA.prototype,"isError",void 0);_.k([_.On("data.header"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GA.prototype,"headerChanged",null);
_.k([_.Tw("data.body"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GA.prototype,"bodyChanged",null);_.k([_.jk("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GA.prototype,"onReloadContinuationFinish",null);_.k([_.jk("yt-transcript-search-box-search"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],GA.prototype,"fireSearch",null);
_.k([_.jk("yt-transcript-search-box-clear"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GA.prototype,"searchCleared",null);_.k([_.On("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GA.prototype,"hideTimestampsChanged",null);GA=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],GA);
_.u(GA,"ytd-transcript-search-panel-renderer",function(){if(qTU!==void 0)return qTU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return qTU=v},{mode:1});var TA=function(){var v=_.g.apply(this,arguments)||this;v.player=null;v.playerPollJobId=0;return v};
_.S(TA,_.g);_.c=TA.prototype;_.c.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.c.onLoadReloadContinuation=function(v){_.Z("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:v.target.data.continuation}}):(v={clickTrackingParams:v.target.data.clickTrackingParams,getTranscriptEndpoint:{params:v.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}}))};
_.c.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"}}}};
_.c.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.c.attached=function(){this.updatePlayerListening()};
_.c.detached=function(){this.updatePlayerListening()};
_.c.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.c.startPlayerListening=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return(E=_.Aq())?_.m(n,E.getPlayerPromise(),2):n.return();v.player=n.yieldResult;v.playerPollJobId=_.wh.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3);
v.player.addEventListener("onCueRangeEnter",function(f){v.onCueRangeEnter(f)});
v.player.addEventListener("onCueRangeExit",function(f){v.onCueRangeExit(f)});
v.player.addEventListener("onStateChange",function(f){v.onPlayerStateChange(f)});
v.player.addEventListener("SEEK_TO",function(f){v.onPlayerSeek(f)});
_.yQ(n)})};
_.c.getPlayerVideoProgress=function(){var v=this;_.wh.cancelJob(this.playerPollJobId);if(this.player){var E=this.player.getCurrentTime();_.OL(this.hostElement,"yt-player-time-changed",[E])}this.playerPollJobId=_.wh.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3)};
_.c.stopPlayerListening=function(){this.player=null;_.wh.cancelJob(this.playerPollJobId)};
_.c.onPlayerStateChange=function(v){v===2&&this.removePendingCue()};
_.c.onPlayerSeek=function(v){var E;if(E=this.pendingReplayCueId)E=this.pendingReplayCueId,E=v===(_.Z("web_transcript_cue_id_killswitch")?Number(E):Number(E.split("_")[1]));E||this.removePendingCue()};
_.c.onCueRangeEnter=function(v){xk0(v)&&(this.pendingReplayCueId=v)};
_.c.onCueRangeExit=function(v){xk0(v)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.c.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.c.onYtTranscriptPlayerSeek=function(v){this.player&&this.player.seekTo(v,!0)};
_.c.onYtTranscriptPlayerReplay=function(v,E){this.player&&(this.player.addCueRange(f3x(v),v,E),this.player.seekTo(v,!0),this.player.playVideo())};
_.c.onYtTranscriptPlayerEdit=function(v,E){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(f3x(v),v,E),this.player.seekTo(v,!0))};
TA.prototype.onLoadReloadContinuation=TA.prototype.onLoadReloadContinuation;TA.prototype.panelContentVisibleChanged=TA.prototype.panelContentVisibleChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],TA.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TA.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],TA.prototype,"panelContentVisible",void 0);_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TA.prototype,"panelContentVisibleChanged",null);
_.k([_.jk("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],TA.prototype,"onLoadReloadContinuation",null);TA=_.k([_.N({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],TA);
_.u(TA,"ytd-transcript-renderer",function(){if(ST_!==void 0)return ST_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ST_=v},{mode:1});var IfM;var YTM;var iL=function(){return _.g.apply(this,arguments)||this};
_.S(iL,_.g);iL.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.LG(this.hostElement,[this.data.clickCommand],this.hostElement))};
iL.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.s9)()+_.Vi)+"px)"};
iL.prototype.updateShouldHideFromBinding=function(v){this.shouldHide=v.detail.value};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iL.prototype,"rendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iL.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],iL.prototype,"shouldHide",void 0);iL=_.k([_.N({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],iL);
_.u(iL,"ytd-ad-engagement-panel-banner-renderer",function(){if(YTM!==void 0)return YTM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YTM=v},{mode:_.HE("kevlar_poly_si_batch_j070")?1:2});var h9p;var zA=function(){var v=_.g.apply(this,arguments)||this;v.modernPanels=_.Z("kevlar_watch_modern_panels");v.buttonUpdate=_.Z("web_modern_buttons");v.adsSemanticText=_.Z("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.S(zA,_.g);zA.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.k([_.H(),_.W("design:type",Object)],zA.prototype,"data",void 0);_.k([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.W("design:type",Boolean)],zA.prototype,"hideDefaultAdBadge",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zA.prototype,"modernPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zA.prototype,"buttonUpdate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zA.prototype,"adsSemanticText",void 0);
zA=_.k([_.N({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],zA);
_.u(zA,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(h9p!==void 0)return h9p;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return h9p=v},{mode:1});var AUp;var Ro=function(){var v=_.g.apply(this,arguments)||this;v.darkerPanels=_.Z("web_watch_darker_panels");v.enableSqueezebackPanels=_.Z("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.Z("desktop_shorts_v2_anchored_panel");v.modernPanels=_.Z("kevlar_watch_modern_panels");v.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return v};
_.S(Ro,_.g);_.c=Ro.prototype;_.c.computeAdsInfoButton=function(){if(_.Z("web_modern_buttons")){var v,E;return(E=_.C((v=this.data)==null?void 0:v.subtitleComplex,td6))==null?void 0:E.adInfoRenderer}};
_.c.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}}}}}};
_.c.collapsedChanged=function(){var v;(v=this.data)!=null&&v.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Z("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.c.focus=function(v){this.titleElement&&_.dh(this.titleElement,v)};
_.c.computeTitleAriaLabel=function(v){var E=[];if(v.title){var n,f;E.push(this.ytRendererBehavior.getSimpleString(v.title)||((n=v.title.accessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label))}v.contextualInfo&&E.push(this.ytRendererBehavior.getSimpleString(v.contextualInfo));return E.join(" ")};
_.c.onHeaderClick=function(v){this.shouldTriggerHeaderClick(v)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.LG(this.hostElement,[this.data.onClickCommand],this.hostElement)):(v=this.getVisibilityToggleButton())&&v.click())};
_.c.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var v=_.C(this.data.visibilityButton,_.qb)||_.C(this.data.visibilityButton,_.J$);v&&this.ytRendererBehavior.logExplicitClick(v)}};
_.c.getVisibilityToggleButton=function(){var v=_.K(this.hostElement).querySelector("#visibility-button").firstElementChild;return(v==null?void 0:v.is)==="ytd-toggle-button-renderer"?v:null};
_.c.shouldTriggerHeaderClick=function(v){return!_.Kh(_.MQ(v),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.c.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(v){v=_.C(v,_.kb0);this.targetId&&(v==null?void 0:v.targetId)===this.targetId&&(v=v.navigationButton)&&this.set("data.navigationButton",v)};
_.hK.Object.defineProperties(Ro.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Z("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!!(((v=this.entity)==null?0:v.isActionButtonHidden)||this.hideActionButton)}}});
Ro.prototype.collapsedChanged=Ro.prototype.collapsedChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ro.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Ro.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Ro.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],Ro.prototype,"targetId",void 0);_.k([_.H(),_.W("design:type",Boolean)],Ro.prototype,"collapsed",void 0);_.k([_.H(),_.W("design:type",Boolean)],Ro.prototype,"hideActionButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ro.prototype,"shortsPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ro.prototype,"liveChatEngagementPanel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ro.prototype,"darkerPanels",void 0);_.k([_.Wp("#title"),_.W("design:type",HTMLElement)],Ro.prototype,"titleElement",void 0);_.k([_.H({computed:"computeAdsInfoButton(data)"}),_.W("design:type",Object)],Ro.prototype,"adsInfoButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ro.prototype,"enableSqueezebackPanels",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ro.prototype,"enableAnchoredPanel",void 0);_.k([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(v,E){return _.LH(v.entities,"engagementPanelTitleHeaderEntity",E)}}),
_.W("design:type",Object)],Ro.prototype,"entity",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ro.prototype,"modernPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ro.prototype,"adsSemanticText",null);_.k([_.Tw("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ro.prototype,"collapsedChanged",null);
_.k([_.A("entity","hideActionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ro.prototype,"isActionButtonHidden",null);Ro=_.k([_.N({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Ro);
_.u(Ro,"ytd-engagement-panel-title-header-renderer",function(){if(AUp!==void 0)return AUp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return AUp=v},{mode:1});var V_p;var tr=function(){return _.g.apply(this,arguments)||this};
_.S(tr,_.g);tr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tr.prototype,"data",void 0);tr=_.k([_.N({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],tr);
_.u(tr,"ytd-macro-markers-info-item-renderer",function(){if(V_p!==void 0)return V_p;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return V_p=v},{mode:1});var DN1;var Na3=function(v,E,n,f,x,y){_.QK.call(this);var Q=this;this.JSC$20001_containerElement=v;this.hostElement=E;this.supportedSyncItems=n;this.syncEntityKey=f;this.options=x;this.renderLazyListItems=y;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;HmU(this);gc0(this);this.JSC$20001_scrollAnimation=new _.Pd(function(e){v.scrollTop=e});
_.BV(this,this.JSC$20001_scrollAnimation);this.addOnDisposeCallback(function(){Q.exitBrowsingMode(!1);Q.activeItem&&Q.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.S(Na3,_.QK);var HmU=function(v){var E=_.yC(_.P().resolve(_.lQ),function(n){return n.entities.markersEngagementPanelSyncEntity||{}},function(n,f){var x;
n[v.syncEntityKey]!==f[v.syncEntityKey]&&((x=n[v.syncEntityKey])==null?void 0:x.activeItemIndex)!==void 0&&v.updatePanelActiveItem(n[v.syncEntityKey].activeItemIndex)});
v.unsubscribeFromTimedMarkersListSyncEntity=E;v.addOnDisposeCallback(E);ueO(v)},ueO=function(v){var E=_.P().resolve(_.lQ);
E=_.TEX(E.getState(),v.syncEntityKey);(E==null?void 0:E.activeItemIndex)!==void 0&&(E=v.getItemByIndex(E.activeItemIndex))&&v.setActiveItem(E)},gc0=function(v){var E=new _.ka(v.onScroll,50,v);
_.BV(v,E);var n=function(){E.fire()};
v.JSC$20001_containerElement.addEventListener("scroll",n);v.addOnDisposeCallback(function(){v.JSC$20001_containerElement.removeEventListener("scroll",n)})};
_.c=Na3.prototype;
_.c.updatePanelActiveItem=function(v){var E=this.getItemByIndex(v);if(E){if(this.setActiveItem(E),this.contentVisible)if(this.browsingMode){var n;((n=this.options)==null?void 0:n.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(v=jvK(this),E.offsetTop<this.JSC$20001_containerElement.clientHeight+this.JSC$20001_containerElement.scrollTop&&v&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));Omp(this)}else this.scrollToItem(E)}else _.li(new _.yc("Could not find "+this.supportedSyncItems+
" sync child to set active.",v,this.JSC$20001_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.c.getItemByIndex=function(v){var E;(E=this.renderLazyListItems)==null||E.call(this,v);E=this.JSC$20001_containerElement.querySelectorAll(this.supportedSyncItems);if(E.length>v)return E[v]};
_.c.setActiveItem=function(v){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));v.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=v};
_.c.scrollToItem=function(v){v=this.getScrollPositionForItem(v);this.JSC$20001_containerElement.scrollTop!==v&&this.JSC$20001_scrollAnimation.start(this.JSC$20001_containerElement.scrollTop,v,300)};
_.c.getScrollPositionForItem=function(v){if(this.JSC$20001_containerElement.querySelectorAll(this.supportedSyncItems)[0]===v)return 0;var E,n=((E=this.options)==null?0:E.percentOffset)?this.JSC$20001_containerElement.clientHeight*this.options.percentOffset:0;v=_.M0(v).y+this.JSC$20001_containerElement.scrollTop-(_.M0(this.JSC$20001_containerElement).y+n);return Math.max(0,Math.min(v,this.JSC$20001_containerElement.scrollHeight-this.JSC$20001_containerElement.offsetHeight))};
_.c.onScroll=function(){this.activeItemBelowSyncPosition=jvK(this);if(this.activeItem&&!this.JSC$20001_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20001_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var v;switch((v=this.options)==null?void 0:v.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!kER(this));Omp(this);break;default:this.enterBrowsingMode(!0)}}};
_.c.enterBrowsingMode=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1){if(E.browsingMode)return x.return();E.browsingMode=!0;v&&E.hostElement.classList.add("browsing-mode");E.playerExitBrowsingModeListener=function(){E.exitBrowsingMode(!1)};
return _.m(x,_.$_(),2)}n=x.yieldResult;(f=n)==null||f.addEventListener("SEEK_TO",E.playerExitBrowsingModeListener);_.yQ(x)})};
_.c.exitBrowsingMode=function(v){v=v===void 0?!0:v;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),v&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.c.removePlayerSeekListener=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1)return v.playerExitBrowsingModeListener?_.m(f,_.$_(),3):f.jumpTo(0);E=f.yieldResult;(n=E)==null||n.removeEventListener("SEEK_TO",v.playerExitBrowsingModeListener);v.playerExitBrowsingModeListener=void 0;_.yQ(f)})};
var Omp=function(v){var E;((E=v.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(kER(v)?v.hostElement.classList.remove("browsing-mode"):v.activeItem&&v.hostElement.classList.add("browsing-mode"))},jvK=function(v){if(!v.activeItem)return!1;
var E,n=((E=v.options)==null?0:E.percentOffset)?v.JSC$20001_containerElement.clientHeight*v.options.percentOffset:0;return v.activeItem.offsetTop>=v.JSC$20001_containerElement.scrollTop+n},kER=function(v){if(!v.activeItem)return!1;
var E=v.activeItem.offsetTop+14<=v.JSC$20001_containerElement.scrollTop+v.JSC$20001_containerElement.clientHeight;return v.activeItem.offsetTop+v.activeItem.clientHeight-14>=v.JSC$20001_containerElement.scrollTop&&E};
Na3.prototype.panelContentVisibleChanged=function(v){(this.contentVisible=v)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var WQ1=function(v,E){v.syncEntityKey=E;var n;(n=v.unsubscribeFromTimedMarkersListSyncEntity)==null||n.call(v);HmU(v)},$N6=function(v,E){v.options=E};var BH=function(){var v=_.g.apply(this,arguments)||this;v.browsingMode=!1;v.modern=_.Z("web_button_rework");v.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return v};
_.S(BH,_.g);_.c=BH.prototype;_.c.activeItemChanged=function(){if(!_.Z("synced_panel_scrolling_controller")){var v;((v=this.syncEntity)==null?void 0:v.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.c.created=function(){var v=this;_.Z("synced_panel_scrolling_controller")||(this.JSC$20005_scrollAnimation=new _.Pd(function(E){v.contents.scrollTop=E}),this.boundExitBrowsingMode=function(){v.exitBrowsingMode(!1)})};
_.c.detached=function(){if(_.Z("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.c.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"}}}};
_.c.dataChanged=function(){var v=this;_.Z("synced_panel_scrolling_controller")?_.IS(this,function(){if(v.scrollController){var E;(E=v.scrollController)==null||E.exitBrowsingMode(!1);var n,f,x;(f=v.scrollController)==null||WQ1(f,(x=(n=v.data)==null?void 0:n.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key");var y,Q,e;(e=v.scrollController)==null||$N6(e,{percentOffset:(y=v.data)==null?void 0:y.selectedItemAlignmentPercentOffset,floatingPillType:(Q=v.data)==null?void 0:Q.floatingPillType})}else{var F,
b,l,r;v.scrollController=new Na3(v.contents,v.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(r=(F=v.data)==null?void 0:F.syncModelEntityKey)!=null?r:"default-macro-markers-list-renderer-entity-key",{percentOffset:(b=v.data)==null?void 0:b.selectedItemAlignmentPercentOffset,floatingPillType:(l=v.data)==null?void 0:l.floatingPillType},function(a){v.renderLazyListItems(a)})}v.scrollController.panelContentVisibleChanged(!!v.panelContentVisible)}):this.exitBrowsingMode()};
_.c.computeButtonShape=function(){var v=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){v.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.c.computeSyncEnabled=function(v){return!(v==null||!v.syncButtonLabel)};
_.c.renderLazyListItems=function(v){for(var E=this.contents.children,n=0,f=0;f<E.length;f++){var x=void 0;(x=E[f].ytLazyListBehavior)==null||x.fillRemainingListItems();var y=void 0,Q=void 0;x=_.C((y=this.data)==null?void 0:(Q=y.contents)==null?void 0:Q[f],_.HmX);Q=y=void 0;if((y=x)==null?0:(Q=y.contents)==null?0:Q.length)n+=x.contents.length;if(n>=v)break}};
_.c.getItemByIndex=function(v){this.renderLazyListItems(v);var E=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(E.length>v)return E[v]};
_.c.setActiveItem=function(v){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);v.active!==void 0&&(v.active=!0);this.currentActiveItem=v};
_.c.handleSetActivePanelItemAction=function(v){if((v=_.C(v,$k3))&&this.panelTargetId===v.panelTargetId){v=v.itemIndex;if(_.Z("synced_panel_scrolling_controller")){var E,n;var f=(n=(E=this.data)==null?void 0:E.syncModelEntityKey)!=null?n:"default-macro-markers-list-renderer-entity-key"}else{var x;f=(x=this.data)==null?void 0:x.syncModelEntityKey}if(f){var y;((y=this.syncEntity)==null?void 0:y.activeItemIndex)!==v&&this.ytdReduxBehavior.dispatch(_.n7("markersEngagementPanelSyncEntity",f,{key:f,activeItemIndex:v}))}else this.updatePanelActiveItem(v)}};
_.c.updatePanelActiveItem=function(v){var E=this.getItemByIndex(v);E?(this.setActiveItem(E),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(E)):_.li(new _.yc("Could not find ytd-macro-markers-list-renderer sync child to set active.",v,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.c.scrollToItem=function(v){v=this.getScrollPositionForItem(v);this.contents.scrollTop!==v&&this.JSC$20005_scrollAnimation.start(this.contents.scrollTop,v,300)};
_.c.getScrollPositionForItem=function(v){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===v)return 0;v=_.M0(v).y+this.contents.scrollTop-_.M0(this.contents).y-this.getStickyHeaderHeight(v);return Math.min(v,this.contents.scrollHeight-this.contents.offsetHeight)};
_.c.getStickyHeaderHeight=function(v){if(v.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var E,n,f;return(f=(E=v.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(n=E.header)==null?void 0:n.offsetHeight)!=null?f:0}return 0};
_.c.onScroll=function(){_.Z("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20005_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.c.enterBrowsingMode=function(){var v=this;return _.X(function(E){if(E.nextAddress==1){if(v.browsingMode)return E.return();v.browsingMode=!0;return _.m(E,_.V3().getPlayerPromise(),2)}v.player=E.yieldResult;v.player.addEventListener("SEEK_TO",v.boundExitBrowsingMode);_.yQ(E)})};
_.c.exitBrowsingMode=function(v){this.browsingMode&&(this.browsingMode=!1,(v===void 0||v)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.c.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.c.onSyncClick=function(){if(_.Z("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.exitBrowsingMode()}else this.exitBrowsingMode()};
_.c.panelContentVisibleChanged=function(){if(_.Z("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
BH.prototype.panelContentVisibleChanged=BH.prototype.panelContentVisibleChanged;BH.prototype.dataChanged=BH.prototype.dataChanged;BH.prototype.activeItemChanged=BH.prototype.activeItemChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],BH.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],BH.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],BH.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],BH.prototype,"useCustomColors",void 0);_.k([_.H({computed:"computeSyncEnabled(data)"}),_.W("design:type",Boolean)],BH.prototype,"syncEnabled",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],BH.prototype,"panelTargetId",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],BH.prototype,"panelContentVisible",void 0);_.k([_.Wp("#contents"),_.W("design:type",HTMLElement)],BH.prototype,"contents",void 0);_.k([_.Wp("#sync-container"),_.W("design:type",HTMLElement)],BH.prototype,"syncContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],BH.prototype,"browsingMode",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],BH.prototype,"modern",void 0);_.k([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.TEX}),_.W("design:type",Object)],BH.prototype,"syncEntity",void 0);_.k([_.On("syncEntity.activeItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BH.prototype,"activeItemChanged",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BH.prototype,"dataChanged",null);_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BH.prototype,"panelContentVisibleChanged",null);BH=_.k([_.N({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],BH);
_.u(BH,"ytd-macro-markers-list-renderer",function(){if(DN1!==void 0)return DN1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return DN1=v},{mode:1});var LQp;var vx=function(){return _.g.apply(this,arguments)||this};
_.S(vx,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vx.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vx.prototype,"data",void 0);vx=_.k([_.N({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],vx);
_.u(vx,"ytd-error-corrections-section-item-renderer",function(){if(LQp!==void 0)return LQp;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return LQp=v},{mode:1});var GEp;var Eu=function(){return _.g.apply(this,arguments)||this};
_.S(Eu,_.g);Eu.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Eu.prototype,"data",void 0);Eu=_.k([_.N({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Eu);
_.u(Eu,"ytd-error-corrections-section-renderer",function(){if(GEp!==void 0)return GEp;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return GEp=v},{mode:1});var TaC;var nD=function(){return _.g.apply(this,arguments)||this};
_.S(nD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],nD.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nD.prototype,"data",void 0);nD=_.k([_.N({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],nD);
_.u(nD,"ytd-topic-link-renderer",function(){if(TaC!==void 0)return TaC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return TaC=v},{mode:1});var im_;var o7=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("kevlar_modern_sd_v2");v.modernLockupV2=_.Z("modernize_structured_description_playlist_lockups_v2");v.modernTypography=_.Z("web_modern_typography");return v};
_.S(o7,_.g);o7.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],o7.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],o7.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],o7.prototype,"modernLockupV2",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],o7.prototype,"modernTypography",void 0);o7=_.k([_.N({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],o7);
_.u(o7,"ytd-video-description-course-section-renderer",function(){if(im_!==void 0)return im_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return im_=v},{mode:1});var z9d;var fD=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("kevlar_modern_sd_v2");v.modernTypography=_.Z("web_modern_typography");return v};
_.S(fD,_.g);fD.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fD.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],fD.prototype,"modernTypography",void 0);
fD=_.k([_.N({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],fD);
_.u(fD,"ytd-video-description-files-section-renderer",function(){if(z9d!==void 0)return z9d;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return z9d=v},{mode:1});var R90;var xG=function(){return _.g.apply(this,arguments)||this};
_.S(xG,_.g);xG.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xG.prototype,"data",void 0);xG=_.k([_.N({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],xG);
_.u(xG,"ytd-video-description-gaming-section-renderer",function(){if(R90!==void 0)return R90;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return R90=v},{mode:1});var t_d;var cx=function(){var v=_.g.apply(this,arguments)||this;v.isExpanded=!1;return v};
_.S(cx,_.g);cx.prototype.computeHasDefaultMetadataEndpoint=function(v){var E;v=v==null?void 0:(E=v.defaultMetadata)==null?void 0:E.runs;return!(!v||v.length!==1||!v[0].navigationEndpoint)};
cx.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.hK.Object.defineProperties(cx.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cx.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],cx.prototype,"isExpanded",void 0);_.k([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],cx.prototype,"hasDefaultMetadataEndpoint",void 0);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cx.prototype,"isExpandable",null);_.k([_.A("data","isExpandable","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cx.prototype,"showExpandedMetadata",null);cx=_.k([_.N({is:"ytd-info-row-renderer",disableElementRegistration:!0})],cx);
_.u(cx,"ytd-info-row-renderer",function(){if(t_d!==void 0)return t_d;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return t_d=v},{mode:1});var BaP;var yG=function(){var v=_.g.apply(this,arguments)||this;v.currentIndex=0;v.supportComponentResize=!0;v.modern=_.Z("kevlar_modern_sd_v2");v.JSC$20031_lastScrollContainerWidth=NaN;return v};
_.S(yG,_.g);_.c=yG.prototype;
_.c.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"}}}};
_.c.getItemsPath=function(){return"videoLockups"};
_.c.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.c.onIronResize=function(){this.updateVideoLockupStyles()};
_.c.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.c.updateVideoLockupStyles=function(){var v;this.JSC$20031_scrollContainer!==void 0&&(v=this.videoLockups)!=null&&v.length&&(v=this.JSC$20031_scrollContainer.clientWidth,v!==this.JSC$20031_lastScrollContainerWidth&&(this.JSC$20031_lastScrollContainerWidth=v,_.NQ(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(v*.8,415)+"px"}),_.jK(this.hostElement,"iron-resize")))};
_.hK.Object.defineProperties(yG.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var v=[],E;if((E=this.data)==null||!E.carouselLockups)return v;E=_.p(this.data.carouselLockups);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;((f=_.C(n,ayb))==null?0:f.videoLockup)&&v.push(_.C(n,ayb).videoLockup)}return v}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoLockups)==null||!v.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var v=[],E;if((E=this.data)==null||!E.carouselLockups)return v;var n;return(n=_.C(this.data.carouselLockups[this.scrollCount],ayb))==null?void 0:n.infoRows}}});
yG.prototype.dataChanged=yG.prototype.dataChanged;yG.prototype.onIronResize=yG.prototype.onIronResize;yG.prototype.hiddenChanged=yG.prototype.hiddenChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yG.prototype,"componentBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],yG.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yG.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yG.prototype,"inlineStructuredDescription",void 0);_.k([_.H({value:2}),_.W("design:type",Number)],yG.prototype,"initialCount",void 0);_.k([_.H(),_.W("design:type",Object)],yG.prototype,"currentIndex",void 0);
_.k([_.H(),_.W("design:type",Number)],yG.prototype,"scrollCount",void 0);_.k([_.H(),_.W("design:type",Object)],yG.prototype,"supportComponentResize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yG.prototype,"contentHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],yG.prototype,"modern",void 0);_.k([_.Wp("#scroll-container"),_.W("design:type",HTMLDivElement)],yG.prototype,"JSC$20031_scrollContainer",void 0);
_.k([_.On("contentHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yG.prototype,"hiddenChanged",null);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],yG.prototype,"videoLockups",null);_.k([_.A("videoLockups"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yG.prototype,"hasVideoLockups",null);
_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yG.prototype,"onIronResize",null);_.k([_.A("data","scrollCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],yG.prototype,"infoRows",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yG.prototype,"dataChanged",null);yG=_.k([_.N({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],yG);
_.u(yG,"ytd-video-description-music-section-renderer",function(){if(BaP!==void 0)return BaP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return BaP=v},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var v1U;var pD=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("kevlar_modern_sd_v2");v.modernTypography=_.Z("web_modern_typography");return v};
_.S(pD,_.g);pD.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.k([_.H({}),_.W("design:type",Object)],pD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pD.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pD.prototype,"modernTypography",void 0);
pD=_.k([_.N({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],pD);
_.u(pD,"ytd-video-description-transcript-section-renderer",function(){if(v1U!==void 0)return v1U;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return v1U=v},{mode:1});var E16;_.Yz(_.qu(function(v){var E=_.Bi(_.rp1,function(){return v.data().firstProviderLinkStatusEntityKey}),n=_.Bi(_.rp1,function(){return v.data().secondProviderLinkStatusEntityKey}),f=function(){var x,y;
return((x=E())==null?void 0:x.linked)||((y=n())==null?void 0:y.linked)};
return _.w("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.w(_.nh,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return v.data().sectionTitle}}),_.w(_.nh,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return f()?v.data().connectedMessage:v.data().notConnectedMessage}}),_.w(_.x6,{cond:f,
then:function(){return _.w(_.mI,{data:function(){return v.data().connectedButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.w(_.x6,{cond:function(){return!f()},
then:function(){return _.w(_.mI,{data:function(){return v.data().notConnectedButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"zi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;return _.w("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.w("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.w(_.nh,{text:function(){return E().sectionTitle}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.w(_.nh,{text:function(){return E().bodyHeader}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.w(_.nh,{text:function(){return E().bodyText}})),_.w(_.x6,
{cond:function(){return E().attributionText},
then:function(){return _.w("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.w(_.nh,{text:function(){return E().attributionText}}))}}))},"Ai"),"how-this-was-made-section-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){return _.w("yt-video-description-youchat-section-view-model",{class:_.W8("ytVideoDescriptionYouchatSectionViewModelHost")},_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.w(_.nh,{text:function(){return v.data().sectionTitle}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.w(_.nh,{text:function(){return v.data().subHeaderText}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.w(_.C7,{data:function(){return _.C(v.data().primaryButton,
_.wQ)}})))},"Bi"),"yt-video-description-youchat-section-view-model",{props:{data:_.Kt}});var QG=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("kevlar_modern_sd_v2");v.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return v};
_.S(QG,_.g);_.c=QG.prototype;
_.c.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}}}}}};
_.c.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.c.dataChanged=function(){var v,E;this.hasDescriptionOnly=!(((v=this.data)==null?void 0:(E=v.items)==null?void 0:E.length)!==1||!_.C(this.data.items[0],ZNM))};
_.c.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.c.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.c.autoFocusDescription=function(){var v;((v=_.P().resolve(_.jp(_.cT)))==null?0:v.isKeyBoardInUse())&&this.description&&_.IY(this.description)};
_.c.resize=function(){if(_.Z("kevlar_disable_sd_resize"))this.JSC$20039_cardList&&_.jK(this.JSC$20039_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.jK(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.jK(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.c.scrollToSection=function(v){if(v=this.getSectionElement(v))_.OL(this.hostElement,"yt-scroll-to-watch-element",[v]),v.focus()};
_.c.getSectionElement=function(v){switch(v){case "infocards-item-section":var E;return(E=this.infocardsSection)!=null?E:null;case "transcript-item-section":var n;return(n=this.transcriptSection)!=null?n:null;case "how-this-was-made-section-item-section":var f;return(f=this.howThisWasMadeSection)!=null?f:null;case "files-item-section":var x;return(x=this.filesSection)!=null?x:null;default:return null}};
_.c.handleSetActiveItemAction=function(v){var E=_.C(v,$k3),n=E&&(E==null?void 0:E.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20039_cardList;if(E&&n){v=this.currentActiveChapter;var f=this.currentActiveProblem;E=n==null?void 0:n.getItemByIndex(E.itemIndex);var x=n=!0;E&&(E.active=!0,E.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(n=v!==E,x=!1,this.currentActiveChapter=E):(E==null?void 0:E.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(n=!1,x=f!==E,this.currentActiveProblem=E));v&&n&&(v.active=!1);f&&x&&(f.active=!1)}};
_.hK.Object.defineProperties(QG.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
QG.prototype.onYtExpanderMoreTapped=QG.prototype.onYtExpanderMoreTapped;QG.prototype.onHiddenChanged=QG.prototype.onHiddenChanged;QG.prototype.dataChanged=QG.prototype.dataChanged;QG.prototype.panelContentVisibleChanged=QG.prototype.panelContentVisibleChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],QG.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],QG.prototype,"ironResizableBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QG.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],QG.prototype,"panelContentVisible",void 0);_.k([_.H(),_.W("design:type",Boolean)],QG.prototype,"hasDescriptionOnly",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QG.prototype,"inlineStructuredDescription",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QG.prototype,"hidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QG.prototype,"shortsPanel",void 0);_.k([_.H(),_.W("design:type",Object)],QG.prototype,"videoSummary",void 0);_.k([_.H(),_.W("design:type",Object)],QG.prototype,"merchShelf",void 0);
_.k([_.A("videoSummary"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QG.prototype,"showVideoSummary",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],QG.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QG.prototype,"engagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],QG.prototype,"watchWhileSdp",void 0);
_.k([_.Wp("ytd-expandable-video-description-body-renderer"),_.W("design:type",Object)],QG.prototype,"description",void 0);_.k([_.Wp("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],QG.prototype,"JSC$20039_cardList",void 0);_.k([_.Wp("ytd-horizontal-card-list-renderer[center-items]"),_.W("design:type",Object)],QG.prototype,"problemWalkthroughCardList",void 0);_.k([_.Wp("ytd-shelf-renderer"),_.W("design:type",Object)],QG.prototype,"shelfSection",void 0);
_.k([_.Wp("ytd-video-description-music-section-renderer"),_.W("design:type",Object)],QG.prototype,"musicMetadataSection",void 0);_.k([_.Wp("ytd-video-description-infocards-section-renderer"),_.W("design:type",Object)],QG.prototype,"infocardsSection",void 0);_.k([_.Wp("ytd-video-description-transcript-section-renderer"),_.W("design:type",Object)],QG.prototype,"transcriptSection",void 0);
_.k([_.Wp("how-this-was-made-section-view-model"),_.W("design:type",Object)],QG.prototype,"howThisWasMadeSection",void 0);_.k([_.Wp("ytd-video-description-files-section-renderer"),_.W("design:type",Object)],QG.prototype,"filesSection",void 0);_.k([_.On("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QG.prototype,"panelContentVisibleChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QG.prototype,"dataChanged",null);_.k([_.On("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QG.prototype,"onHiddenChanged",null);_.k([_.jk("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QG.prototype,"onYtExpanderMoreTapped",null);
QG=_.k([_.N({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],QG);
_.u(QG,"ytd-structured-description-content-renderer",function(){if(E16!==void 0)return E16;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return E16=v},{mode:2});var n1b;var o16;var Xi=function(){return _.g.apply(this,arguments)||this};
_.S(Xi,_.g);Xi.prototype.computeAriaLabel=function(v){var E,n;return(v==null?void 0:(E=v.accessibility)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label)||_.tQ("LOADING",void 0,"Loading")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Xi.prototype,"data",void 0);_.k([_.H({computed:"computeAriaLabel(data)"}),_.W("design:type",String)],Xi.prototype,"ariaLabel",void 0);Xi=_.k([_.p5({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Xi);
_.u(Xi,"yt-content-loading-renderer",function(){if(o16===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;n1b===void 0&&(n1b=document.createElement("template"));var f=n1b;n.call(E,f.content.cloneNode(!0),v.content.firstChild);o16=v}v=o16;return v},{mode:_.HE("kevlar_poly_si_batch_j043")?1:2});_.Yz(_.qu(function(v){var E=_.p(_.t7(!1,void 0,"WbYeXc")),n=E.next().value,f=E.next().value;E=_.p(_.t7(!1,void 0,"msXkzc"));var x=E.next().value,y=E.next().value;_.l5(function(){var F=_.C(v.data().collaboratePlaylistCollaborationSetting,XJR);F&&f(F.switchedOnByDefault);var b=_.C(v.data().allowNewCollaboratorsPlaylistCollaborationSetting,XJR);b&&y(b.switchedOnByDefault);if(!F&&!b||!F&&v.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")f(!0),y(!0)});
var Q=function(F){f(F);y(F);var b=v.data().playlistCollaborationEntityKey||"";var l=_.Zj().getState();(l=_.LH(l.entities,"playlistCollaborationEntity",b))&&(l==null?void 0:l.isCollaborative)===F||_.Zj().dispatch(_.n7("playlistCollaborationEntity",b,Object.assign({},l,{isCollaborative:F})))},e=function(F){y(F)};
return _.w("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.mI,{data:function(){return v.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(F){return _.w(_.ma,{data:F.data,
onSwitch:Q})}})),_.w(_.x6,{cond:n,
then:function(){return _.w("div",null,_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.mI,{data:function(){return v.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(F){return _.w(_.ma,{data:F.data,
onSwitch:e,overrideDisabled:!1})}})),_.w(_.x6,{cond:x,
then:function(){return _.w("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.w(_.mI,{data:function(){return v.data().copyLinkButton}},{buttonViewModel:_.C7}))}}),_.w("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.w(_.mI,{data:function(){return v.data().playlistCollaborators}},{contentListItemViewModel:_.Mnd})))}}))},"Ci"),"playlist-collaboration-view-model",{props:{data:_.Kt}});var fPK=_.qu(function(v){var E=v.data;var n=v.customCommandResolver;return _.w(_.gF,null,_.w("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.w(_.mI,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(f){return _.w(_.Q8X,{data:f.data,
customCommandResolver:n})}})),_.w("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.w(_.x6,{cond:function(){return E().headline},
then:function(f){return _.w(_.nh,{text:f,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.w("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.w(_.mI,{data:function(){return E().adBadge}},{adBadgeViewModel:function(f){return _.w(_.jz,{data:f.data,
hasDot:function(){return E().primaryDetailsLine!==void 0},
customCommandResolver:n,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.w(_.mI,{data:function(){return E().primaryDetailsLine}},{adDetailsLineViewModel:function(f){return _.w(_.O5,{data:f.data,
customCommandResolver:n,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Di"),x5_=_.qu(function(v){var E=v.data;
var n=v.customCommandResolver;v=_.Ig();_.Nl(v,function(){return E().interaction},n);
_.gt(v,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});return _.w("ad-avatar-lockup-view-model",{class:function(){var f;return((f=E().interaction)==null?0:f.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:v,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w(_.Q1,null,_.w(_.y1,{when:function(){return E().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.w(fPK,{data:E,
customCommandResolver:n})}),_.w(_.pk,null,function(){return null})))},"Ei");_.Yz(_.qu(function(v){var E=v.data;var n=v.panelContentVisibility;v=_.Ig();_.Nl(v,function(){return E().interaction},cE_);
_.gt(v,{visibilityCallback:function(x){var y,Q=(y=E().interaction)==null?void 0:y.onFirstVisible;x&&Q&&_.lj(Q)},
showOption:_.VL});_.ea(function(){var x,y;if(y=_.JM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;y=(Q=y())==null?void 0:Q.onLayoutVisibleCallback}else y=null;(x=y)==null||x()});
var f=function(){return n()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.w("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:v},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.w(_.x6,{cond:_.IyQ("(min-width: "+((0,_.s9)()+_.Vi)+"px) or (max-width: 600px)"),then:function(){return _.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(x){return _.w(_.iO,{data:x.data,
targetHeight:80,customCommandResolver:cE_})}})}})),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.w(_.mI,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(x){return _.w(x5_,{data:x.data,
customCommandResolver:cE_})}})),_.w(_.x6,{cond:f,
then:function(){return _.w(_.mI,{data:function(){return E().adButton}},{adButtonViewModel:function(x){return _.w(_.HB,{data:x.data,
customCommandResolver:cE_})}})},
else:function(){return _.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:_.C7})}}),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.w(_.mI,{data:function(){var x=_.C(E().toggleButton,_.bS);
return{toggleButtonViewModel:Object.assign({},x,{isTogglingDisabled:!0,isToggled:f()})}}},{toggleButtonViewModel:_.lS})))))},"Fi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Kt,
panelContentVisibility:_.Kt}});_.Yz(_.qu(function(v){var E=function(){return _.C(v.data().inputComposerViewModel,e73)},n=function(){var Y;
return((Y=E())==null?void 0:Y.youchatPendingResponseEntityKey)||""},f=_.Bi(_.$VK,n),x=function(){var Y;
return!((Y=f())==null||!Y.isPendingResponse)},y=_.p(_.t7(!0,void 0,"DR0q1d")),Q=y.next().value,e=y.next().value,F=function(){return E().sectionTargetId||"youchat_messages_section"};
y=_.Y$();var b=_.Ig(),l=_.Bi(i6d,"chat_input_view_model_state"),r=zdM(),a=function(){var Y;return!((Y=l())==null||!Y.value)};
_.l5(function(){var Y;!a()&&((Y=E())==null?0:Y.welcomeFeatureContinuation)&&(Y={continuationCommand:{token:E().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.mG(Y),r(!0));var V=F(),O;(O=_.P().resolve(_.jp(_.zB)))==null||O.addEventListener("yt-navigate-start",function(){_.QX.remove(V);r(!1)},{once:!0})});
var M=_.ij(function(Y){var V=x()||!1;yEp(b.value);V||Y.key!=="Enter"||Y.shiftKey||(Y.preventDefault(),d());return!1}),U=_.ij(function(){e(b.value.value.length===0);
return!1}),d=function(){var Y,V,O,T,L,xX,t,QE,MF;
return _.X(function(K1){Y=b.value.value;b.value.value="";yEp(b.value);V=prM(F(),Y);_.mG(V);O=_.LRp(n());_.lj(((T=E())==null?void 0:T.onSubmitCommand)||{});O(!0);xX=String(Math.floor(((L=_.Lh())==null?void 0:L.getCurrentTime())||0)*1E3);QE={continuationCommand:{token:(t=E())==null?void 0:t.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};MF={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Y,playerOffsetMs:xX}};_.mG(QE,{form:{formData:MF},commandController:{onSuccess:function(){O(!1)},
onServerError:function(){var JG=F();_.mG({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:JG}}]}}});O(!1)}}});
_.yQ(K1)})};
return _.w("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:y},_.w("div",{class:"chatInputViewModelChatInputWrapper"},_.w("form",{class:"chatInputViewModelChatInputForm"},_.w("textarea",{class:"chatInputViewModelChatInput",el:b,"on:keydown":M,"on:keyup":U,placeholder:function(){var Y,V;var O=_.C((V=E())==null?void 0:V.inputFormField,OO0);return O==null?void 0:(Y=O.contentProperties)==null?void 0:Y.placeholderText},
rows:1}),_.w(_.C7,{data:function(){return _.C(v.data().sendButton,_.wQ)},
onClick:function(Y){Y.preventDefault();d();e(b.value.value.length===0)},
buttonOverrides:function(){return{disabled:Q()||x()}}})),_.w(_.nh,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Y;return(Y=_.C(v.data().disclaimer,_.DhX))==null?void 0:Y.text}})))},"Gi"),"yt-chat-input-view-model",{props:{data:_.Kt}});var c3d=["engagement-panel-clip-create","engagement-panel-clip-view"],y3_=0,el=function(){var v=_.g.apply(this,arguments)||this;var E;v.headerData=(E=v.data)==null?void 0:E.header;v.darkerPanels=_.Z("web_watch_darker_panels");v.matchContentTheme=_.Z("web_watch_panel_content_match_theme");v.disableAutoFill=!1;v.isFullscreen=!1;v.modernPanels=_.Z("kevlar_watch_modern_panels");v.liveChatReplyPanel=!1;v.enableAnchoredPanel=_.Z("desktop_shorts_v2_anchored_panel");v.disableBackdropFilter=_.Z("web_disable_backdrop_filter");
v.trackEngagementPanelVisibility=_.Z("web_watch_track_engagement_panel_visibility");v.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 v};
_.S(el,_.g);_.c=el.prototype;
_.c.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(v){var E;
if((v==null?void 0:(E=v.webComponentHint)==null?void 0:E.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";v=v==null?void 0:v.contents;if(!v||v.length<1)return"ytd-section-list-renderer";var n,f;v=(n=v[0])==null?void 0:(f=n.itemSectionRenderer)==null?void 0:f.contents;if(!v||v.length<1)return"ytd-section-list-renderer";var x;return((x=v[0])==null?0:x.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.c.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var v;if((v=this.hostElement.parentElement)==null?0:v.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.c.detached=function(){this.updateTheaterDisablement()};
_.c.showPanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.wh.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.c.maybeScrollToItemSection=function(v){var E=this,n,f=v==null?void 0:(n=v.sectionListEngagementPanelExtras)==null?void 0:n.scrollToItemSectionIdentifier;f&&_.wh.addJob(function(){var x;(x=E.sectionListRendererElement)==null||x.scrollToItemSection(f)},8)};
_.c.hidePanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.wh.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.c.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.c.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.c.updatePanel=function(v,E,n,f){var x=this;if((v=v==null?void 0:v.engagementPanelSectionListRenderer)||f){if(v){f=v.header;var y=v.content,Q=v.footer;(v=v.targetId)&&this.set("data.targetId",v);f&&this.set("data.header",f);y&&this.set("data.content",y);Q&&this.set("data.footer",Q)}else f&&(v=f.content,y=f.secondaryHeaderContent,(f=f.targetId)&&this.set("data.targetId",f),v&&this.set("data.content",v),y&&(this.secondaryHeaderData=y));this.updateChildVisibilityProperties();if(E){var e;_.Z("kevlar_update_panel_focus_scroll_killswitch")||
(e={preventScroll:!0});this.focus(e)}_.IS(this,function(){_.jK(x.hostElement,"yt-refit");x.maybeScrollToItemSection(n)})}};
_.c.computeHeaderData=function(){var v,E=(0,_.sh.unsafeClone)((v=this.data)==null?void 0:v.header);if(E){v=new _.z(Object.keys(E)[0]);var n=_.C(E,v),f=_.C(this.secondaryHeaderData,v);f&&_.c8(E,v,Object.assign({},f,n))}return E};
_.c.getReloadContinuation=function(){var v,E,n,f=_.p(((v=this.data)==null?void 0:(E=v.content)==null?void 0:(n=E.sectionListRenderer)==null?void 0:n.continuations)||[]);for(v=f.next();!v.done;v=f.next())if(v=v.value,v.reloadContinuationData)return v.reloadContinuationData.continuation};
_.c.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var v;((v=this.data)==null?0:v.targetId)&&(v=this.contentElement.firstElementChild)&&v.setAttribute("panel-target-id",this.data.targetId)};
_.c.forwardPopupClosedToFlowRootRenderer=function(){var v=_.K(this.hostElement).querySelector("ytd-flow-root-renderer");if(v)v.onPopupClosed()};
_.c.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var v=_.Z("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen;if(_.Z("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||v){var E;this.visibility=(E=this.data)==null?void 0:E.visibility;var n;this.trackEngagementPanelVisibility&&
((n=this.data)==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var f,x,y,Q;this.contentEmpty=!!(((f=this.data)==null?0:(x=f.content)==null?0:x.structuredDescriptionContentRenderer)&&Object.keys((y=this.data)==null?void 0:(Q=y.content)==null?void 0:Q.structuredDescriptionContentRenderer).length===0);(v=_.P().resolve(_.XQ))&&v.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility=
"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.c.isFullscreenChanged=function(){this.isFullscreen&&_.Z("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.c.focus=function(v){if(this.header)this.header.focus(v);else{var E;(E=_.K(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||E.focus(v)}};
_.c.visibilityChanged=function(){if(!_.Z("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var v=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",n=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=f||!this.lastVisibility,y,Q,e=(y=this.data)==null?void 0:(Q=y.identifier)==null?void 0:Q.tag,
F;if(((F=this.data)==null?0:F.onShowCommands)&&v&&x)_.LG(this.hostElement,this.data.onShowCommands,this.hostElement),e&&_.dG().dispatch(_.un({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:e}}));else{var b;((b=this.data)==null?0:b.onHideCommands)&&E&&n&&(_.LG(this.hostElement,this.data.onHideCommands,this.hostElement),e&&_.dG().dispatch(_.un({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:e}})))}v&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*y3_++));_.Z("kevlar_watch_focus_on_engagement_panels")&&
v&&f&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.c.notifyVisibilityChanged=function(v){var E;_.kZ(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,v,(E=this.data)==null?void 0:E.targetId])};
_.c.updateTheaterDisablement=function(){if(!_.Z("kevlar_watch_theater_disablement_killswitch")){var v=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&c3d.includes(v)&&!_.Z("watch_next_grid_ignore_disallowed_panels")){var E=_.bP(_.dG().getState()),n=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";v!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():n?(this.originalTheaterState===void 0&&(this.originalTheaterState=E,this.theaterDisablementPanelIdentifier=
v),E&&_.OL(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.c.clearTheaterDisablement=function(){_.OL(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.c.updateChildVisibilityProperties=function(){this.hostElement||_.Z("kevlar_panel_property_init_killswitch")||this._enableProperties();var v=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=v);var E,n=(E=this.headerElement)==null?void 0:E.firstElementChild;if(n&&!this.adHeaderImageLockupViewModel){E=v==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";n.collapsed=E;n=_.K(n).querySelector("#visibility-button");if(!n)return;(n=n.firstElementChild)&&
n.polymerController.is==="ytd-toggle-button-renderer"&&n.polymerController.data.isToggled!==E&&n.polymerController.set("data.isToggled",E)}var f;if(E=(f=this.contentElement)==null?void 0:f.firstElementChild)if(v&&v!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")E.removeAttribute("panel-content-visible");else{E.setAttribute("panel-content-visible","");var x;(x=E.markDirty)==null||x.call(E)}};
_.c.onYtChangeEngagementPanelVisibilityAction=function(v){var E=this,n,f=(n=this.data)==null?void 0:n.targetId,x,y,Q;n=((x=this.data)==null?void 0:(y=x.identifier)==null?void 0:y.tag)||((Q=this.data)==null?void 0:Q.panelIdentifier);var e=_.C(v,_.$mz),F;v=f&&(e==null?void 0:e.targetId)===f||n&&(e==null?void 0:(F=e.panelIdentifier)==null?void 0:F.tag)===n;this.dialog&&v&&(e==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f==="engagement-panel-comments-section"?_.OL(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.OL(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",n]));f=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";F=this.isFullscreen&&_.Z("kevlar_single_panel_fullscreen");f=!v&&(e==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!f&&F;_.Z("kevlar_use_engagement_panel_management_component")||(v?(f=e.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!f?_.wh.addJob(function(){E.visibility=e.visibility},2,this.hideDelayMs):this.visibility=e.visibility,e.visibility&&this.notifyVisibilityChanged(e.visibility)):f&&this.hidePanel())};
_.c.onYtScrollToEngagementPanelCommand=function(v){var E,n=(E=this.data)==null?void 0:E.targetId,f,x,y;E=((f=this.data)==null?void 0:(x=f.identifier)==null?void 0:x.tag)||((y=this.data)==null?void 0:y.panelIdentifier);v=_.C(v,_.n21);var Q;(n&&(v==null?void 0:v.targetId)===n||E&&(v==null?void 0:(Q=v.panelIdentifier)==null?void 0:Q.tag)===E)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.OL(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.c.attachVEs=function(v){var E,n;(v==null?0:(E=v.content)==null?0:(n=E.productListRenderer)==null?0:n.trackingParams)&&_.Tl().graftServerVe(v.content.productListRenderer.trackingParams);var f,x;(v==null?0:(f=v.content)==null?0:(x=f.transcriptRenderer)==null?0:x.trackingParams)&&_.Tl().graftServerVe(v.content.transcriptRenderer.trackingParams)};
_.c.onYtUpdateEngagementPanelAction=function(v){var E,n=(E=this.data)==null?void 0:E.targetId;v=_.C(v,GbR);n&&(v==null?void 0:v.targetId)===n&&(this.updatePanel({engagementPanelSectionListRenderer:{header:v==null?void 0:v.header,content:v==null?void 0:v.content}},!1),this.attachVEs(v))};
_.c.onYtShowEngagementPanelScrimAction=function(v){var E,n=(E=this.data)==null?void 0:E.targetId;v=_.C(v,L13);n&&(v==null?void 0:v.engagementPanelTargetId)===n&&(this.scrimmed=!0)};
_.c.onYtHideEngagementPanelScrimAction=function(v){var E,n=(E=this.data)==null?void 0:E.targetId;v=_.C(v,W1R);n&&(v==null?void 0:v.engagementPanelTargetId)===n&&(this.scrimmed=!1)};
_.c.getIdentifier=function(){var v,E,n;return((v=this.data)==null?void 0:v.panelIdentifier)||((E=this.data)==null?void 0:(n=E.identifier)==null?void 0:n.tag)};
_.c.getSurface=function(){var v,E;return(v=this.data)==null?void 0:(E=v.identifier)==null?void 0:E.surface};
_.hK.Object.defineProperties(el.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var v=this.getIdentifier();return v==="engagement-panel-youchat"||v==="PAyouchat"}}});
el.prototype.visibilityChanged=el.prototype.visibilityChanged;el.prototype.isFullscreenChanged=el.prototype.isFullscreenChanged;el.prototype.dataChanged=el.prototype.dataChanged;el.prototype.forwardPopupClosedToFlowRootRenderer=el.prototype.forwardPopupClosedToFlowRootRenderer;el.prototype.onYtRendererstamperFinished=el.prototype.onYtRendererstamperFinished;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],el.prototype,"actionHandlerBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],el.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],el.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],el.prototype,"data",void 0);
_.k([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.W("design:type",Object)],el.prototype,"headerData",void 0);_.k([_.H(),_.W("design:type",Object)],el.prototype,"secondaryHeaderData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"visibility",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"contentEmpty",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"scrimmed",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"dialog",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"dropdown",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"darkerPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"matchContentTheme",void 0);_.k([_.H(),_.W("design:type",Object)],el.prototype,"disableAutoFill",void 0);
_.k([_.H({reflectToAttribute:!0,value:_.Z("optimal_reading_width_comments_ep")}),_.W("design:type",Boolean)],el.prototype,"optimalReadingWidthComments",void 0);_.k([_.H(),_.W("design:type",Number)],el.prototype,"hideDelayMs",void 0);_.k([_.H({selector:_.Mz,reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"isFullscreen",void 0);_.k([_.H(),_.W("design:type",Number)],el.prototype,"showDelayMs",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.targetId"),_.W("design:type",Object),_.W("design:paramtypes",[])],el.prototype,"targetId",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],el.prototype,"webSize",null);_.k([_.H(),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],el.prototype,"hideFooterBorder",null);_.k([_.H(),_.W("design:type",Object)],el.prototype,"isWatch",void 0);
_.k([_.H(),_.W("design:type",Object)],el.prototype,"originalTheaterState",void 0);_.k([_.H(),_.W("design:type",Object)],el.prototype,"theaterDisablementPanelIdentifier",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"modernPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"isWatchWhilePanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"shortsPanel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],el.prototype,"liveChatEngagementPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"liveChatReplyPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"enableAnchoredPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],el.prototype,"disableBackdropFilter",void 0);
_.k([_.H(),_.W("design:type",Object)],el.prototype,"trackEngagementPanelVisibility",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],el.prototype,"headerElement",void 0);_.k([_.Wp("#header > *"),_.W("design:type",HTMLElement)],el.prototype,"header",void 0);_.k([_.Wp("ytd-section-list-renderer"),_.W("design:type",Object)],el.prototype,"sectionListRendererElement",void 0);
_.k([_.Wp("panel-ad-header-image-lockup-view-model"),_.W("design:type",HTMLElement)],el.prototype,"adHeaderImageLockupViewModel",void 0);_.k([_.Wp("#content"),_.W("design:type",HTMLElement)],el.prototype,"contentElement",void 0);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],el.prototype,"onYtRendererstamperFinished",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],el.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.k([_.Tw("data","isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],el.prototype,"dataChanged",null);_.k([_.On("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],el.prototype,"isFullscreenChanged",null);
_.k([_.On("visibility"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],el.prototype,"visibilityChanged",null);el=_.k([_.N({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],el);
_.u(el,"ytd-engagement-panel-section-list-renderer",function(){if(IfM!==void 0)return IfM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return IfM=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var paK;var Fi=function(){var v=_.g.apply(this,arguments)||this;v.lastRenderedPanelIds=new Set;v.visiblePanels=[];v.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.S(Fi,_.g);_.c=Fi.prototype;_.c.dataChanged=function(){if(this.data){for(var v=[],E=_.p(this.data),n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0,x=void 0,y=(f=n)==null?void 0:(x=f.engagementPanelSectionListRenderer)==null?void 0:x.visibility;x=f=void 0;((f=n)==null?0:(x=f.engagementPanelSectionListRenderer)==null?0:x.targetId)&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&v.push(n)}this.visiblePanels=v}else this.visiblePanels=[]};
_.c.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}}};
_.c.withoutVisiblePanelById=function(v){return this.visiblePanels.filter(function(E){var n;return((n=E.engagementPanelSectionListRenderer)==null?void 0:n.targetId)!==v})};
_.c.onYtChangeEngagementPanelVisibilityAction=function(v){var E=this,n=_.C(v,_.$mz);if(this.data&&(n==null?0:n.targetId)&&(n==null?0:n.visibility)){var f,x=(f=this.data.find(function(Q){var e;return((e=Q.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===n.targetId}))==null?void 0:f.engagementPanelSectionListRenderer;
if(x){var y=this.withoutVisiblePanelById(n.targetId);n.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(v=this.data.find(function(Q){var e;return((e=Q.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===n.targetId}))&&(y=[v].concat(_.s8(y)));
this.hideDelayMs&&n.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&y.length===0?_.wh.addJob(function(){x.visibility=n.visibility;E.visiblePanels=y},10,this.hideDelayMs):(x.visibility=n.visibility,this.visiblePanels=y);
_.kZ(this.hostElement,"yt-engagement-panels-visible-changed",[y])}}};
_.c.onRendererstamperFinished=function(){var v=new Set(this.visiblePanels.map(function(E){var n;return(n=E.engagementPanelSectionListRenderer)==null?void 0:n.targetId}));
this.handlePanelVisibilityChange(v,this.lastRenderedPanelIds);this.lastRenderedPanelIds=v};
_.c.handlePanelVisibilityChange=function(v,E){v=v===void 0?new Set:v;E=E===void 0?new Set:E;if(this.data)for(var n=_.p(this.data),f=n.next();!f.done;f=n.next()){f=f.value;var x=void 0,y=void 0,Q=(x=f)==null?void 0:(y=x.engagementPanelSectionListRenderer)==null?void 0:y.targetId;if(Q&&(x=E.has(Q),y=v.has(Q),Q=void 0,!x&&y?(y=x=void 0,Q=(x=f)==null?void 0:(y=x.engagementPanelSectionListRenderer)==null?void 0:y.onShowCommands):x&&!y&&(y=x=void 0,Q=(x=f)==null?void 0:(y=x.engagementPanelSectionListRenderer)==
null?void 0:y.onHideCommands),Q))for(f=_.p(Q),Q=f.next();!Q.done;Q=f.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
Fi.prototype.onRendererstamperFinished=Fi.prototype.onRendererstamperFinished;Fi.prototype.dataChanged=Fi.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Fi.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Fi.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fi.prototype,"lastRenderedPanelIds",void 0);_.k([_.H(),_.W("design:type",Number)],Fi.prototype,"hideDelayMs",void 0);_.k([_.H(),_.W("design:type",Array)],Fi.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],Fi.prototype,"visiblePanels",void 0);_.k([_.H(),_.W("design:type",Boolean)],Fi.prototype,"isWatchWhilePanel",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fi.prototype,"dataChanged",null);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fi.prototype,"onRendererstamperFinished",null);Fi=_.k([_.N({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Fi);
_.u(Fi,"ytd-watch-engagement-panels",function(){if(paK!==void 0)return paK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return paK=v},{mode:1});var QAM;var mv=function(){return _.g.apply(this,arguments)||this};
_.S(mv,_.g);mv.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Dd(_.K(this.hostElement).querySelector("#text"),_.f1g(_.yRz,this.data.companionLegalText))};
mv.prototype.computeAutoScrollEnabled=function(v,E){return v&&!E};
mv.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
mv.prototype.onToggleTap=function(){this.expanded=!this.expanded};
mv.prototype.expandedChanged=mv.prototype.expandedChanged;mv.prototype.dataChanged=mv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.pc_),_.W("design:type",Object)],mv.prototype,"ytdAutoScrollBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],mv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],mv.prototype,"expanded",void 0);
_.k([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.W("design:type",Boolean)],mv.prototype,"autoScrollEnabled",void 0);_.k([_.H(),_.W("design:type",String)],mv.prototype,"expanderIcon",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mv.prototype,"dataChanged",null);
_.k([_.On("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mv.prototype,"expandedChanged",null);mv=_.k([_.N({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],mv);
_.u(mv,"ytd-companion-legal-text-renderer",function(){if(QAM!==void 0)return QAM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return QAM=v},{mode:1});var XaU;var wX=function(){var v=_.g.apply(this,arguments)||this;v.buttonUpdate=_.Z("web_modern_buttons");v.kevlarWatchGrid=_.Z("kevlar_watch_grid");v.centerAlignDescription=_.Z("action_companion_center_align_description");v.truncateDomain=_.Z("action_companion_truncate_domain");return v};
_.S(wX,_.g);_.c=wX.prototype;_.c.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.c.getOnLayoutVisibleCallback=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.c.getLayoutId=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.c.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",wX.JSC$20085_DEFAULT_AD_BADGE_RENDERER);var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.c.getButtonRenderer=function(v){return v.actionButton&&_.C(v.actionButton,_.qb)?(delete _.C(v.actionButton,_.qb).navigationEndpoint,_.C(v.actionButton,_.qb)):{}};
_.c.onClick=function(v){var E=this;if((!_.Z("web_modern_buttons")||!_.Kh(_.MQ(v),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){v=_.Aq();var n=this.getLayoutId();v&&n&&_.Z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(f){(new _.xF(f)).executeCommand(E.data.navigationEndpoint,n)}):_.Z("kevlar_companion_resolve_command_killswitch")?_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.OL(this.hostElement,"yt-companion-ad-clicked",["action-companion",n])}};
_.hK.Object.defineProperties(wX.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?0:(E=v.detailsLine)==null?0:(n=E.adRating)==null?0:n.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 v,E,n,f;return((v=this.data)==null?0:(E=v.detailsLine)==null?0:(n=E.adRating)==null?0:(f=n.ratingIcon)==null?0:f.iconType)?_.jI(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return((v=this.data)==null?0:(E=v.detailsLine)==null?0:(n=E.texts)==null?0:(f=n[0])==null?0:f.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 v,E;return((v=this.data)==null?0:(E=v.description)==null?0:E.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var v=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return v?v.indexOf("/default_banner")!==-1:!0}}});
wX.prototype.onClick=wX.prototype.onClick;wX.prototype.dataChanged=wX.prototype.dataChanged;wX.JSC$20085_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.tQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],wX.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wX.prototype,"rendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wX.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wX.prototype,"buttonUpdate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wX.prototype,"kevlarWatchGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wX.prototype,"centerAlignDescription",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wX.prototype,"truncateDomain",void 0);
_.k([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.W("design:type",Object)],wX.prototype,"buttonOverride",void 0);_.k([_.A("data.detailsLine.adRating.ratingText"),_.W("design:type",Object),_.W("design:paramtypes",[])],wX.prototype,"getRating",null);_.k([_.A("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wX.prototype,"computeRatingHidden",null);
_.k([_.A("data.detailsLine.adRating.ratingIcon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],wX.prototype,"iconType",null);_.k([_.A("data.detailsLine.texts.0.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],wX.prototype,"getDetailsLine",null);_.k([_.A("getDetailsLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wX.prototype,"computeDetailsLineHidden",null);
_.k([_.A("data.description.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],wX.prototype,"getDescriptionText",null);_.k([_.A("getDescriptionText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wX.prototype,"computeDescriptionTextHidden",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],wX.prototype,"interactionLoggingClientData",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wX.prototype,"hideBanner",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wX.prototype,"dataChanged",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],wX.prototype,"onClick",null);wX=_.k([_.N({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],wX);
_.u(wX,"ytd-action-companion-ad-renderer",function(){if(XaU!==void 0)return XaU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return XaU=v},{mode:_.HE("kevlar_poly_si_batch_j067")?1:2});var e2C;var FYO;var bK=function(){var v=_.g.apply(this,arguments)||this;v.buttonUpdate=_.Z("web_modern_buttons");v.hideLegacyBanner=_.Z("enable_dsa_one_click_ata_translators_infeed_elements");v.adInfoButtonStyle="mono";v.adInfoButtonType="text";v.noDotAdBadge=!0;return v};
_.S(bK,_.g);_.c=bK.prototype;_.c.getOnLayoutVisibleCallback=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.c.getLayoutId=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.c.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 v=this.data.image.thumbnail.thumbnails[0];this.imageSrc=v.url?_.bW(v.url):void 0;this.imageWidth=v.width||0;this.imageHeight=v.height||0}this.data.clickthroughEndpoint&&_.C(this.data.clickthroughEndpoint,_.Us)&&(v=_.C(this.data.clickthroughEndpoint,_.Us).url,_.Z("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
v||"":v?(v=_.bW(v),this.clickThroughUrl=_.ec(v)):this.clickThroughUrl=void 0);(v=this.getOnLayoutVisibleCallback())&&v()}};
_.c.onClick=function(v){_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(v)};
_.c.handleClick=function(){var v=this;this.data&&this.data.clickthroughEndpoint&&(_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(E){v.macroReplacementBehavior.sendServiceRequestAction([E])}),_.OL(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.c.onLoad=function(){_.kZ(this.hostElement,"yt-refit-popups-action")};
_.hK.Object.defineProperties(bK.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
bK.prototype.onLoad=bK.prototype.onLoad;bK.prototype.onClick=bK.prototype.onClick;bK.prototype.dataChanged=bK.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bK.prototype,"rendererBehavior",void 0);_.k([_.h(NPp.YtMacroReplacementBehavior),_.W("design:type",Object)],bK.prototype,"macroReplacementBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bK.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bK.prototype,"buttonUpdate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bK.prototype,"hideLegacyBanner",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bK.prototype,"adInfoButtonStyle",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bK.prototype,"adInfoButtonType",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bK.prototype,"macros",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bK.prototype,"interactionLoggingClientData",null);_.k([_.H(),_.W("design:type",String)],bK.prototype,"clickThroughUrl",void 0);_.k([_.H(),_.W("design:type",_.pc)],bK.prototype,"imageSrc",void 0);_.k([_.H(),_.W("design:type",Number)],bK.prototype,"imageWidth",void 0);_.k([_.H(),_.W("design:type",Number)],bK.prototype,"imageHeight",void 0);_.k([_.H(),_.W("design:type",Object)],bK.prototype,"noDotAdBadge",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bK.prototype,"dataChanged",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],bK.prototype,"onClick",null);_.k([_.jk("load"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bK.prototype,"onLoad",null);bK=_.k([_.N({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bK);
_.u(bK,"ytd-image-companion-renderer",function(){if(FYO!==void 0)return FYO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return FYO=v},{mode:_.HE("kevlar_poly_si_batch_j067")?1:2});var m56;var lK=function(){return _.g.apply(this,arguments)||this};
_.S(lK,_.g);_.c=lK.prototype;_.c.dataChanged=function(){this.set("data.adBadge",lK.JSC$20094_DEFAULT_AD_BADGE_RENDERER);if(this.data){var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.c.getOnLayoutVisibleCallback=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.c.getLayoutId=function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.c.onCompanionClicked=function(v){this.data&&(v.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.OL(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.c.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var v=_.Aq(),E=this.getLayoutId(),n=this.data.clickToAdvSiteEndpoint;v&&E&&_.Z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(f){(new _.xF(f)).executeCommand(n,E)}):_.jK(this.hostElement,"yt-navigate",{endpoint:n})}};
_.c.sendTrackingPings=function(v){if(v&&v.length!==0&&v[0].loggingUrls&&(v=v[0].loggingUrls.map(this.getBaseUrl)))for(var E=0;E<v.length;E++)_.SD(v[E])};
_.c.getBaseUrl=function(v){return v.baseUrl||""};
_.hK.Object.defineProperties(lK.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.JM("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
lK.prototype.onCompanionClicked=lK.prototype.onCompanionClicked;lK.prototype.dataChanged=lK.prototype.dataChanged;lK.JSC$20094_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.tQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lK.prototype,"data",void 0);_.k([_.Wp("#title"),_.W("design:type",HTMLElement)],lK.prototype,"shopTitle",void 0);
_.k([_.Tw("data.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lK.prototype,"dataChanged",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lK.prototype,"interactionLoggingClientData",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],lK.prototype,"onCompanionClicked",null);
lK=_.k([_.N({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],lK);
_.u(lK,"ytd-shopping-companion-renderer",function(){if(m56!==void 0)return m56;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return m56=v},{mode:1});_.Yz(_.qu(function(v){var E=v.data;var n=_.Ig();_.Nl(n,function(){return E().interaction},Qnd);
_.gt(n,{visibilityCallback:function(f){var x,y=(x=E().interaction)==null?void 0:x.onFirstVisible;f&&y&&_.lj(y)},
showOption:_.VL});_.ea(function(){var f,x;x=(x=_.JM("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(f=x)==null||f()});
v=_.ij(function(){_.kZ(n.value,"yt-refit-popups-action")});
return _.w("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":v,el:n,"aria-label":function(){var f,x;return(f=E().interaction)==null?void 0:(x=f.accessibility)==null?void 0:x.label}},_.w("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(f){return _.w(_.iO,{data:f.data,
targetHeight:80,customCommandResolver:Qnd})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.w(_.mI,{data:function(){return E().adBadge}},{adBadgeViewModel:function(f){return _.w(_.jz,{data:f.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:_.C7}))))},"Hi"),"banner-image-layout-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;v=_.Ig();_.Nl(v,function(){return E().interaction},XrO);
_.gt(v,{visibilityCallback:function(n){var f,x=(f=E().interaction)==null?void 0:f.onFirstVisible;n&&x&&_.lj(x)},
showOption:_.VL});_.ea(function(){var n,f;f=(f=_.JM("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.onLayoutVisibleCallback:null;(n=f)==null||n()});
return _.w("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:v},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.w(_.mI,{data:function(){return E().adImage}},{adImageViewModel:function(n){return _.w(_.iO,{data:n.data,
targetHeight:80,customCommandResolver:XrO})}})),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.w(_.mI,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(n){return _.w(x5_,{data:n.data,
customCommandResolver:XrO})}})),_.w(_.mI,{data:function(){return E().adButton}},{adButtonViewModel:function(n){return _.w(_.HB,{data:n.data,
customCommandResolver:XrO})}}),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.w(_.mI,{data:function(){return E().menu}},{buttonViewModel:_.C7}))))},"Ii"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Kt}});var waU={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"},su=function(){var v=_.g.apply(this,arguments)||this;v.updateCompanionDataJobId=0;v.contentVideoId=null;v.player=null;v.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return v};
_.S(su,_.g);_.c=su.prototype;_.c.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:waU}}};
_.c.attached=function(){var v=this,E=_.Aq();E&&E.getPlayerPromise().then(function(n){v.getCachedDataAndListen(n)})};
_.c.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.c.updateRendererStamper=function(){var v={};if(this.data)for(var E in waU)if(this.data[E]){v[E]=this.data[E];break}if(this.oneofRenderer!=void 0||Object.keys(v).length)this.oneofRenderer=v};
_.c.getCachedDataAndListen=function(v){var E=this.retrieveCachedCompanionData();E&&Object.keys(E).length&&this.receiveCompanionData(E);this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=v};
_.c.retrieveCachedCompanionData=function(){return _.n1.yt&&_.n1.yt.www&&_.n1.yt.www.ads&&_.n1.yt.www.ads.eventcache&&_.n1.yt.www.ads.eventcache.getLastCompanionData?_.n1.yt.www.ads.eventcache.getLastCompanionData():null};
_.c.receiveCompanionData=function(v){v&&Object.keys(v).length?(this.contentVideoId=v.contentVideoId,this.setCompanionData(v)):this.setCompanionData(v)};
_.c.setCompanionData=function(v){this.cancelPendingCompanionAdJobs();if(v){this.updateCompanionDataJobId=0;for(var E in waU)waU.hasOwnProperty(E)&&(this.data[E]=void 0);v.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",v.shoppingCompanionCarouselRenderer):v.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",v.imageCompanionAdRenderer):v.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",v.actionCompanionAdRenderer),_.kZ(this.hostElement,
"yt-hide-unlimited-offer-module"),_.kZ(this.hostElement,"yt-hide-tvfilm-offer-module")):v.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",v.bannerImageLayoutViewModel):v.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",v.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.c.dataChanged=function(){var v=this,E=_.Aq();E?E.getPlayerPromise().then(function(n){v.contentVideoId&&n.getVideoUrl().includes("v="+v.contentVideoId)||(v.cancelPendingCompanionAdJobs(),v.updateRendererStamper())}):_.Kk(Error("gm"))};
_.c.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.wh.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.c.handleCompanionAdClicked=function(v,E){this.player.onAdUxClicked(v,E);this.player.pauseVideo()};
su.prototype.dataChanged=su.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],su.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],su.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],su.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],su.prototype,"oneofRenderer",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],su.prototype,"dataChanged",null);su=_.k([_.N({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],su);
_.u(su,"ytd-companion-slot-renderer",function(){if(e2C!==void 0)return e2C;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return e2C=v},{mode:_.HE("kevlar_poly_si_batch_j067")?
1:2});var bAO;var rX=function(){return _.g.apply(this,arguments)||this};
_.S(rX,_.g);rX.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
rX.prototype.dataChanged=rX.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rX.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],rX.prototype,"companionSlotData",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rX.prototype,"dataChanged",null);
rX=_.k([_.N({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],rX);
_.u(rX,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(bAO!==void 0)return bAO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bAO=v},{mode:1});var lPO;var Px=function(){var v=_.g.apply(this,arguments)||this;v.skinnyMode=!1;v.COMPACT_EVENT_COUNT=4;v.onShelfToggleButtonTap=function(){v.logTap(v.data);v.showingMore=!v.showingMore};
v.onShelfToggleButtonFocus=function(){v.showingMore||(v.logTap(v.data),v.showingMore=!0,_.IS(v,function(){var E=v.COMPACT_EVENT_COUNT-1,n;(n=_.K(v.hostElement).querySelector("#event-"+E))==null||n.focus()}))};
return v};
_.S(Px,_.g);_.c=Px.prototype;_.c.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.c.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.c.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.uo(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.uo(this.infoTooltip,this.infoTooltip.hide))};
_.c.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.uo(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.uo(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.uo(this.infoTooltip,this.infoTooltip.hide))};
_.c.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)};
_.c.onShowingMoreChanged=function(){var v;this.showingMoreChanged((v=this.showingMore)!=null?v:!1)};
_.c.showingMoreChanged=function(v){var E=this.get("data.events")||[];this.set("restEvents",E.slice(1,v?E.length:this.COMPACT_EVENT_COUNT).map(function(n){return n.ticketEventRenderer}));
E.slice(0,v?E.length:this.COMPACT_EVENT_COUNT).forEach(function(n){var f=_.lc();n=n.ticketEventRenderer.trackingParams;_.bc()&&f&&n&&(n=_.tx(n),f&&_.ZI(f,n))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.c.computeAriaLabel=function(v){return v.subtitle1+", "+v.subtitle2};
_.c.logTap=function(v){_.bc()&&this.ytRendererBehavior.logExplicitClick(v)};
_.c.isKeyboardAction=function(v){return this.get("detail.x",v)===0&&this.get("detail.y",v)===0};
_.c.onFirstEventTap=function(v){v.target&&this.handleTap(v.target,this.firstEvent,this.isKeyboardAction(v))};
_.c.onTicketLinkTap=function(v){v.target&&this.handleTap(v.target,v.model.item,this.isKeyboardAction(v))};
_.c.handleTap=function(v,E,n){if(E.buttonCommand)if(E.hasMultipleOffers)Object.assign(_.C(E.buttonCommand,_.rR),{properties:{source:n?"keyboard":"tap"}}),this.logTap(E),this.popupPositionTarget=v,_.LG(this.hostElement,[E.buttonCommand],this.hostElement);else{var f;if((f=_.C(E.buttonCommand,_.Us))==null?0:f.url)this.logTap(E),_.Kc(window,_.C(E.buttonCommand,_.Us).url)}};
Px.prototype.onShowingMoreChanged=Px.prototype.onShowingMoreChanged;Px.prototype.dataChanged=Px.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Px.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Px.prototype,"firstEvent",void 0);_.k([_.H(),_.W("design:type",Object)],Px.prototype,"restEvents",void 0);_.k([_.H(),_.W("design:type",String)],Px.prototype,"imageUrl",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Px.prototype,"showingMore",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Px.prototype,"canShowMore",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Px.prototype,"skinnyMode",void 0);_.k([_.H(),_.W("design:type",HTMLElement)],Px.prototype,"popupPositionTarget",void 0);_.k([_.Wp("#banner-info-tooltip"),_.W("design:type",Object)],Px.prototype,"infoTooltip",void 0);
_.k([_.Wp("#info-container"),_.W("design:type",HTMLElement)],Px.prototype,"infoContainer",void 0);_.k([_.Wp("#shelf-toggler"),_.W("design:type",HTMLElement)],Px.prototype,"shelfToggleButton",void 0);_.k([_.Wp("#separator"),_.W("design:type",HTMLDivElement)],Px.prototype,"separator",void 0);_.k([_.H(),_.W("design:type",String)],Px.prototype,"shelfTogglerLabelText",void 0);_.k([_.H(),_.W("design:type",String)],Px.prototype,"shelfTogglerIcon",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Px.prototype,"dataChanged",null);_.k([_.Tw("showingMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Px.prototype,"onShowingMoreChanged",null);Px=_.k([_.N({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Px);
_.u(Px,"ytd-ticket-shelf-renderer",function(){if(lPO!==void 0)return lPO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lPO=v},{mode:1});var sA1;var r3b;var a7=function(){return _.g.apply(this,arguments)||this};
_.S(a7,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],a7.prototype,"data",void 0);a7=_.k([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],a7);
_.u(a7,"ytd-comments-entry-point-message-renderer",function(){if(r3b!==void 0)return r3b;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return r3b=v},{mode:1});var PtU;var ZF=function(){return _.g.apply(this,arguments)||this};
_.S(ZF,_.g);_.hK.Object.defineProperties(ZF.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.teaserAvatar)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ZF.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZF.prototype,"hasAvatar",null);ZF=_.k([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],ZF);
_.u(ZF,"ytd-comments-entry-point-teaser-renderer",function(){if(PtU!==void 0)return PtU;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return PtU=v},{mode:1});var aPR;var CD=function(){return _.g.apply(this,arguments)||this};
_.S(CD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CD.prototype,"data",void 0);CD=_.k([_.N({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],CD);
_.u(CD,"ytd-comments-simplebox-renderer",function(){if(aPR!==void 0)return aPR;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return aPR=v},{mode:1});var MK=function(){var v=_.g.apply(this,arguments)||this;v.fullHeight=!_.Z("comment_teaser_full_height_kill_switch")&&_.Z("kevlar_watch_grid");return v};
_.S(MK,_.g);MK.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"}}}};
MK.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
MK.prototype.onTap=function(){var v=this.tapCommand;v&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(v))};
MK.prototype.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.hK.Object.defineProperties(MK.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.onTap)return this.data.onTap;var E,n;if(((E=this.data)==null?0:E.teaserContent)||((n=this.data)==null?0:n.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
MK.prototype.onKeyUp=MK.prototype.onKeyUp;MK.prototype.onTap=MK.prototype.onTap;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],MK.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],MK.prototype,"fullHeight",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"tapCommand",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"simpleboxPlaceholder",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MK.prototype,"hasSimpleboxPlaceholder",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"simpleboxAvatar",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"teaserContent",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MK.prototype,"hasTeaserContent",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"teaserAvatar",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MK.prototype,"hasTeaserAvatar",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"messageText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MK.prototype,"contentRenderer",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MK.prototype,"hasContents",null);
_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MK.prototype,"hasContentRenderer",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MK.prototype,"onTap",null);_.k([_.jk("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[_.Qu]),_.W("design:returntype")],MK.prototype,"onKeyUp",null);MK=_.k([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],MK);
_.u(MK,"ytd-comments-entry-point-header-renderer",function(){if(sA1!==void 0)return sA1;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return sA1=v},{mode:1});var ZAd;_.uj(_.TG,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var Ct6=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),MEx={numberText:"",heightPx:2*Ct6,shouldAnimate:!1},Sl=function(){var v=_.g.apply(this,arguments)||this;v.usingAnimatedComponents=!0;v.wasDetailed=!1;v.JSC$20131_browserSupportsAnimation=_.Z("web_supports_animations_api");v.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};v.detailed=!1;v.shouldAnimate=!1;v.viewCountProps=MEx;v.dateTextProps=
MEx;v.metadataBadgesInDescription=_.Z("web_metadata_badges_in_description");return v};
_.S(Sl,_.g);_.c=Sl.prototype;_.c.resetAnimationState=function(){this.shouldAnimate=!1};
_.c.updateDynamicMetadata=function(){if(this.JSC$20131_browserSupportsAnimation){if(!this.detailed){var v,E,n,f;var x=(v=this.videoPrimaryInfoRenderer)==null?void 0:(E=v.viewCount)==null?void 0:(n=E.videoViewCountRenderer)==null?void 0:(f=n.extraShortViewCount)==null?void 0:f.simpleText;var y,Q,e,F;var b=(y=this.videoPrimaryInfoRenderer)==null?void 0:(Q=y.viewCount)==null?void 0:(e=Q.videoViewCountRenderer)==null?void 0:(F=e.shortViewCount)==null?void 0:F.simpleText}if(!b){var l,r,a,M;x=(l=this.videoPrimaryInfoRenderer)==
null?void 0:(r=l.viewCount)==null?void 0:(a=r.videoViewCountRenderer)==null?void 0:(M=a.unlabeledViewCountValue)==null?void 0:M.simpleText;var U,d,Y,V;b=(U=this.videoPrimaryInfoRenderer)==null?void 0:(d=U.viewCount)==null?void 0:(Y=d.videoViewCountRenderer)==null?void 0:(V=Y.viewCount)==null?void 0:V.simpleText}var O,T,L;v=Number((O=this.videoPrimaryInfoRenderer)==null?void 0:(T=O.viewCount)==null?void 0:(L=T.videoViewCountRenderer)==null?void 0:L.originalViewCount);var xX,t;O=(xX=this.videoPrimaryInfoRenderer)==
null?void 0:(t=xX.relativeDateText)==null?void 0:t.simpleText;var QE;xX=!((QE=this.videoPrimaryInfoRenderer)==null||!QE.relativeDateText);if(x&&b&&v&&(O||!xX)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;QE=b.split(new RegExp("("+x+")"));x=l3p(QE[0]);var MF;b={numberText:(MF=QE[1])!=null?MF:"",numberValue:v,heightPx:2*Ct6,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var K1;MF=((K1=QE[2])!=null?K1:"")+"  ";this.setViewCount(b,x,l3p(MF));
if(!this.detailed&&xX){x=O.split(/(\d+)/);K1=l3p(x[0]);var JG;MF={numberText:(JG=x[1])!=null?JG:"",heightPx:2*Ct6,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var $X;JG=(($X=x[2])!=null?$X:"")+"  ";this.setDateText(MF,K1,l3p(JG))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.c.setViewCount=function(v,E,n){_.JC(E)!==_.JC(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=E);this.viewCountProps.numberText!==(v==null?void 0:v.numberText)&&(this.viewCountProps=v||MEx);_.JC(n)!==_.JC(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=n)};
_.c.setDateText=function(v,E,n){_.JC(E)!==_.JC(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=E);this.dateTextProps.numberText!==(v==null?void 0:v.numberText)&&(this.dateTextProps=v||MEx);_.JC(n)!==_.JC(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=n)};
_.c.onYtUpdateViewershipAction=function(v){this.videoPrimaryInfoRenderer&&(_.C(v,PuO).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.C(v,PuO).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.C(v,PuO).viewCount)))};
_.c.onYtUpdateDateTextAction=function(v){if(this.videoPrimaryInfoRenderer){v=_.C(v,_.sMp).dateText;this.shouldAnimate=!0;var E;((E=this.videoPrimaryInfoRenderer)==null?0:E.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",v):this.set("videoPrimaryInfoRenderer.dateText",v)}};
_.hK.Object.defineProperties(Sl.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return bOO(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.JC(bOO(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.JC(this.viewCountPreNumberText),this.viewCountProps.numberText,_.JC(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.JC(this.dateTextPreNumberText),this.dateTextProps.numberText,_.JC(this.dateTextPostNumberText)].join("")}}});
Sl.prototype.updateDynamicMetadata=Sl.prototype.updateDynamicMetadata;Sl.prototype.resetAnimationState=Sl.prototype.resetAnimationState;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Sl.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sl.prototype,"videoPrimaryInfoRenderer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"detailed",void 0);_.k([_.H(),_.W("design:type",Object)],Sl.prototype,"shouldAnimate",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"viewCountPreNumberText",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"viewCountProps",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"viewCountPostNumberText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"dateTextPreNumberText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"dateTextProps",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"dateTextPostNumberText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Sl.prototype,"metadataBadgesInDescription",void 0);_.k([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.W("design:type",Object),_.W("design:paramtypes",[])],Sl.prototype,"infoText",null);
_.k([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.W("design:type",String),_.W("design:paramtypes",[])],Sl.prototype,"descriptionInfoTooltipText",null);_.k([_.A("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],Sl.prototype,"animatedViewCountAccessibilityLabel",null);
_.k([_.A("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],Sl.prototype,"animatedDateTextAccessibilityLabel",null);_.k([_.On("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sl.prototype,"resetAnimationState",null);
_.k([_.On("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sl.prototype,"updateDynamicMetadata",null);Sl=_.k([_.N({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Sl);
_.u(Sl,"ytd-watch-info-text",function(){if(ZAd!==void 0)return ZAd;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZAd=v},{mode:1});var S76;var U5b=_.qu(function(v){var E=v.data;var n=v.setTapCommand;_.Xp(function(){var f=_.F$(E().onTap);n(f)});
return _.w("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.w(_.mI,{data:function(){return E().avatar}},{avatarViewModel:_.XK}),_.w("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.w("span",null,function(){return E().simpleboxText})))},"Ji");var q73=_.qu(function(v){return _.w("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.w(_.x6,{cond:function(){return _.C(v.data().avatar,_.HT)},
then:function(E){return _.w(_.XK,{data:E,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.w("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.w(_.nh,{text:function(){return v.data().teaserText}})))},"Ki");var J3R=_.qu(function(v){var E=v.data;var n=v.setTapCommand;_.Xp(function(){var f=_.F$(E().onTap);n(f)});
return _.w("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.w(_.mI,{data:function(){return E().teasers}},{commentsEntryPointTeaserViewModel:q73}))},"Li");var KYC=_.qu(function(v){var E=v.data;var n=v.setTapCommand;_.Xp(function(){var f=_.F$(E().onTap);n(f)});
return _.w("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.w(_.nh,{text:function(){return E().messageText}}))},"Mi");var d5x=_.qu(function(v){var E=v.data;var n=v.setTapCommand;var f=v.isDisabled;_.Xp(function(){var x=(f==null?0:f())?void 0:_.F$(E().onTap);n(x)});
return _.w("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.w(_.B8,{icon:function(){return E().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.w(_.x6,{cond:function(){return E().image},
then:function(x){return _.w(_.UZ,{data:x,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.w(_.nh,{text:function(){return E().text},
className:function(){return E().image||E().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.w(_.mI,{data:function(){return E().button}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:f==null?void 0:f()}}})}}))},"Ni");var IPp=_.qu(function(v){var E=v.data;var n=v.itemIndex;var f=v.selectedIndex;var x=v.indexUpdatedCallback;var y=v.observer;v=v.title;var Q=_.Ig(),e=function(r){n()===f()&&x(r)},F=_.mc(GL0),b=_.mc(TUM),l=function(){var r,a,M;
return((r=E())==null?void 0:r.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!F()||((a=E())==null?void 0:a.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&b().includes("PAposts_by_host")||((M=E())==null?void 0:M.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&b().includes("PAyouchat")};
_.l5(function(){y&&y().observe(Q.value)});
return _.w("yt-carousel-item-view-model",{el:Q,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":v},_.w(_.mI,{data:function(){var r,a;return(a=(r=_.C(E().carouselItem,jn_))==null?void 0:r.textCarousel)!=null?a:E().carouselItem}},{textCarouselItemViewModel:function(r){return _.w(d5x,{data:r.data,
setTapCommand:e,isDisabled:l})},
commentTeaserCarouselItemViewModel:function(r){return _.w(J3R,{data:r.data,setTapCommand:e})},
commentInputBoxCarouselItemViewModel:function(r){return _.w(U5b,{data:r.data,setTapCommand:e})},
commentsEntryPointMessageViewModel:function(r){return _.w(KYC,{data:r.data,setTapCommand:e})}}))},"Oi");var Y7P=_.qu(function(v){var E=v.numDots;var n=v.activeIndex;return _.w("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.w(_.cG,{each:function(){return Array.from({length:E()})},
keyBy:"INDEX"},function(f,x){return _.w("div",{class:function(){var y={};return _.LR("ytCarouselDotsShapeDot",(y.ytCarouselDotsShapeDotActive=x===n(),y))}})}))},"Pi");var h2U=_.qu(function(v){var E=v.data;var n=v.handleCarouselNavigation;var f=v.numItems;var x=v.selectedIndex;var y=function(){return{disabled:x()===0}},Q=function(){return{disabled:x()===f()-1}};
return _.w("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.w("div",null,_.w("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return E().title}),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(e){return _.w("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return E().subtitleAccessibilityText}},e)}})),_.w(_.x6,{cond:function(){return f()>1},
then:function(){return _.w("div",{class:"ytCarouselTitleViewModelNavigation"},_.w(Y7P,{numDots:f,activeIndex:x}),_.w(_.x6,{cond:function(){return E().previousButton},
then:function(e){return _.w(_.mI,{data:e},{buttonViewModel:function(F){return _.w(_.C7,{data:F.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return n(-1)},
buttonOverrides:y})}})}}),_.w(_.x6,{cond:function(){return E().nextButton},
then:function(e){return _.w(_.mI,{data:e},{buttonViewModel:function(F){return _.w(_.C7,{data:F.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return n(1)},
buttonOverrides:Q})}})}}))}}))},"Qi");_.Yz(_.qu(function(v){var E=v.data;var n=_.Ig(),f=_.Ig(),x=_.MX("HTML_DIR")==="rtl",y=!1,Q=0,e=0;v=_.p(_.t7(0,void 0,"m0dtIf"));var F=v.next().value,b=v.next().value;v=_.p(_.t7(0,void 0,"fL6I6"));var l=v.next().value,r=v.next().value;v=_.p(_.t7(!1,void 0,"ZPrwNb"));var a=v.next().value,M=v.next().value,U=function(){var QE,MF,K1;return(K1=(QE=E())==null?void 0:(MF=QE.carouselTitles)==null?void 0:MF.length)!=null?K1:0},d=function(){f.value&&f.value.scrollLeft!==Q&&b((x?f.value.scrollLeft<Q:f.value.scrollLeft>
Q)?Math.min(F()+1,U()-1):Math.max(F()-1,0))},Y;
window.IntersectionObserver&&(Y=new IntersectionObserver(function(QE){QE=_.p(QE);for(var MF=QE.next();!MF.done;MF=QE.next())if(MF.value.isIntersecting){if(y){y=!1;break}d()}else b(e)},{threshold:.2}));
_.Xp(function(){if(f.value){var QE=(x?-1:1)*(l()/U()+12)*(a()&&Y?e:F());typeof f.value.scrollTo==="function"?f.value.scrollTo({left:QE,behavior:"smooth"}):f.value.scrollLeft=QE;Q=QE;e=a()&&Y?e:F()}});
var V,O=function(QE){V=QE};
_.l5(function(){var QE=function(){var K1=f.value.offsetWidth*U(),JG=24*(U()-1);r(K1+JG)};
QE();if(window.ResizeObserver){var MF=new ResizeObserver(QE);MF.observe(f.value);_.Fp(function(){MF.disconnect();Y&&Y.disconnect()})}});
v=_.ij(function(QE){if(_.$ty(_.JF(QE),n.value,["BUTTON".toString()])||!V)return!1;_.P().resolve(_.OO).resolveCommand(V,{forceClickLogging:!0});return!1});
var T=function(QE){QE=F()+QE;QE>=0&&QE<U()&&(y=!0,b(QE))},L=_.ij(function(){M(!0);
return!1}),xX=_.ij(function(){Y||d();
M(!1);return!1}),t={};
return _.w("yt-video-metadata-carousel-view-model",{class:_.W8("ytVideoMetadataCarouselViewModelHost",(t.ytVideoMetadataCarouselViewModelShortMode=_.Z("mweb_video_metadata_carousel_short_mode"),t)),el:n,"on:click":v,"on:touchstart":L,"on:touchend":xX,hidden:function(){var QE,MF;return!((QE=E())==null?0:(MF=QE.carouselItems)==null?0:MF.length)}},_.w("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.w(_.x6,{cond:function(){return E().carouselTitles},
then:function(QE){return _.w(_.mI,{data:function(){return QE()[a()&&Y?e:F()]}},{carouselTitleViewModel:function(MF){return _.w(h2U,{data:MF.data,
handleCarouselNavigation:T,numItems:U,selectedIndex:F})}})}})),_.w("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:f},_.w("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+l()+"px;"}},_.w(_.x6,{cond:function(){return E().carouselItems},
then:function(QE){return _.w(_.cG,{each:QE},function(MF,K1){return _.w(_.mI,{data:function(){return MF}},{carouselItemViewModel:function(JG){return _.w(IPp,{data:JG.data,
itemIndex:K1,selectedIndex:F,indexUpdatedCallback:O,observer:Y,title:function(){a:{var $X=K1();var HI,uE=(HI=E())==null?void 0:HI.carouselTitles;if(uE&&($X=uE[$X])){var WI;$X=(WI=_.C($X,ujC))==null?void 0:WI.title;break a}$X=void 0}return $X}})}})})}}))))},"Ri"),"yt-video-metadata-carousel-view-model",{props:{data:_.Kt}});var A36=_.Z("web_action_buttons_update_owner_width")?32:12,Uu=function(){var v=_.g.apply(this,arguments)||this;v.metadataBadgesInDescription=_.Z("web_metadata_badges_in_description");v.descriptionCollapsed=!0;v.useFadedScrimDescription=_.Z("kevlar_enable_faded_scrim_on_description");v.skinnyMode=!1;v.playlist=!1;v.isDark=document.documentElement.hasAttribute("dark");v.disableVideoOwnerOnTap=_.Z("swatchie_video_owner_on_tap_ks");v.swatcherooDelayLoad=_.Z("swatcheroo_enable_ghost_cards");v.primaryMenuWidth=
0;v.videoId="";v.titleHeadlineXs=_.Z("web_watch_typography_title_headline_xs");v.titleHeadlineS=_.Z("web_watch_typography_title_headline_s");v.titleHeadlineM=_.Z("web_watch_typography_title_headline_m");v.titleHashtagBlackLinkified=_.Z("web_title_hashtag_black_linkified");v.titleHashtagGreyLinkified=_.Z("web_title_hashtag_grey_linkified");v.actionButtonsUpdateOwnerWidth=_.Z("web_action_buttons_update_owner_width");v.shouldForceIconOnly=!1;v.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};v.isFullscreen=!1;return v};
_.S(Uu,_.g);_.c=Uu.prototype;_.c.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.c.updateOwnerAndDescriptionPosition=function(){_.Z("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.hn(this.bottomRowElement,this.ownerElement)):(_.hn(this.bottomRowElement,this.descriptionElement),_.hn(this.topRowElement,this.ownerElement)))};
_.c.titleOnTap=function(v){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||this.handleExpandDescriptionCommands()}};
_.c.videoOwnerOnTap=function(v){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.c.detached=function(){var v=this,E;return _.X(function(n){(E=v.resizeObserver)==null||E.disconnect();_.yQ(n)})};
_.c.maybeAttachResizeObserver=function(){var v=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.ka(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){v.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.c.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var v=this.hostElement.clientWidth,E=Math.max(this.largerItemWrap?400:350,v/2-A36);if(_.Z("web_action_buttons_update_owner_width")){var n;E=(((n=document.getElementById("owner"))==null?void 0:n.clientWidth)||0)+A36}this.actionsOnSeparateLine=this.primaryMenuWidth>v-E?!0:!1}};
_.c.stripAttributedDescription=function(v){return{content:v.content.replace(/[\r\n]{2,}/g,"\n")}};
_.c.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Z("web_modern_buttons"),forceIconButton:!_.Z("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:_.Z("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"}}}};
_.c.videoPrimaryInfoRendererChanged=function(){var v;if((v=this.videoPrimaryInfoRenderer)==null?0:v.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.c.videoSecondaryInfoRendererChanged=function(){var v,E;(E=(v=this.descriptionInlineExpander).collapse)==null||E.call(v);this.descriptionExpandClientVe=_.ci(110509);this.descriptionCollapseClientVe=_.ci(110510);v=_.lc();E=_.bc();v&&E&&(_.Z("combine_ve_grafts")?(_.t$(_.Tl(),this.descriptionExpandClientVe,E),_.t$(_.Tl(),this.descriptionCollapseClientVe,E)):_.Nt(v,E,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.c.structuredDescriptionContentRendererChanged=function(){_.Z("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.c.updateTopLevelIconsOnly=function(){var v=this;_.Z("top_level_update_killswitch")||this.menu&&_.wh.addLowPriorityJob(function(){v.menu.topLevelIconsOnly=v.skinnyMode},_.WG("swathceroo_delay_flexible_menu_update",100))};
_.c.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Z("web_action_buttons_minimize_subscribe")};
_.c.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.c.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.c.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.c.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Z("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var v,E;(E=(v=this.structuredDescriptionContentRendererElement).resize)==null||E.call(v)}};
_.c.onRenderStamperFinished=function(v){(v==null?void 0:v.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.c.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.c.onYtExpanderLessTapped=function(){var v,E=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showLessCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.c.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.c.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.c.onDescriptionClick=function(v){if(!_.Kh(_.MQ(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Z("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.c.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.c.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.c.logCollapseClick=function(){var v=_.lc();v&&this.descriptionCollapseClientVe&&_.qx(v,this.descriptionCollapseClientVe)};
_.c.logExpandClick=function(){var v=_.lc();v&&this.descriptionExpandClientVe&&_.qx(v,this.descriptionExpandClientVe)};
_.c.collapseDescription=function(){this.descriptionCollapsed=!0};
_.c.scrollToTopOfContainer=function(){_.OL(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.c.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.c.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.c.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.c.resize=function(){if(this.descriptionInlineExpander){var v,E;(E=(v=this.descriptionInlineExpander).resize)==null||E.call(v)}else _.li(new _.yc("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var n;(n=this.menu)==null||n.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.Z("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.c.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var v,E,n,f,x=_.Z("web_action_buttons_update_owner_width")?(n=(v=_.K(this.menu).querySelector("#button-shape"))==null?void 0:v.clientWidth)!=null?n:0:(f=(E=_.K(this.menu).querySelector("#button"))==null?void 0:E.clientWidth)!=null?f:0,y,Q;v=((Q=(y=_.K(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:y.clientWidth)!=null?Q:0)+8+x;var e,F;x=(F=(e=_.K(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:e.children.length)!=null?F:2;v<=8*x||(this.primaryMenuWidth=v)}};
_.c.onYtUpdateTitleAction=function(v){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.C(v,rNC).title)};
_.c.onYtUpdateDescriptionAction=function(v){if(v=_.C(v,_.LpP)){var E,n=!((E=this.videoSecondaryInfoRenderer)==null||!E.attributedDescription);v.isEmpty||!v.description&&!v.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):v.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",v.attributedDescription):v.description&&(n?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.yI(v.description)):this.set("videoSecondaryInfoRenderer.description",v.description))}};
_.c.onYtDarkModeToggledAction=function(v){this.isDark=v};
_.c.registerPanel=function(){if(!_.Z("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var v=_.Z("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen,E=_.P().resolve(_.XQ);E&&!v&&E.registerPanel("engagement-panel-structured-description",this)}};
_.c.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.c.showPanel=function(v){this.expandDescription();var E=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;E.resize();var n,f=v==null?void 0:(n=v.sectionListEngagementPanelExtras)==null?void 0:n.scrollToItemSectionIdentifier;f?_.wh.addJob(function(){E==null||E.scrollToSection(f)},8):this.scrollToTopOfContainer()};
_.c.isVisible=function(){return!this.descriptionCollapsed};
_.c.getReloadContinuation=function(){};
_.c.hidePanel=function(){};
_.c.updatePanel=function(){};
_.hK.Object.defineProperties(Uu.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.structuredDescriptionContentRenderer)!=null&&v.items){var E;v=_.p((E=this.structuredDescriptionContentRenderer)==null?void 0:E.items);for(E=v.next();!E.done;E=v.next())if(E=_.C(E.value,_.vql))return E}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoPrimaryInfoRenderer)==null?0:v.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return!!((v=this.videoSecondaryInfoRenderer)==null?0:(E=v.owner)==null?0:(n=E.videoOwnerRenderer)==null?0:n.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.Z("swatchie_sd_new_line_strip_ks")){var v,E;if((v=this.videoSecondaryInfoRenderer)==null?0:(E=v.attributedDescription)==null?0:E.content){var n,f;return(f=this.stripAttributedDescription((n=this.videoSecondaryInfoRenderer)==null?void 0:n.attributedDescription))!=null?f:{runs:[]}}}var x,y,Q,e;return(e=(Q=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.description)!=null?Q:(y=this.videoSecondaryInfoRenderer)==null?
void 0:y.attributedDescription)!=null?e:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.headerRuns)!=null?E:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentsEntryPointHeaderRenderer)==null||!v.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoMetadataCarousel)==null||!v.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.WG("swatchie_desc_lines",3):this.hasTeaserCarousel?_.WG("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var v,E,n=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(E=v.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(n&&n.rows&&n.collapsedItemCount!==void 0&&!(n.rows.length<=n.collapsedItemCount))return n.rows=n.rows.slice(n.collapsedItemCount),n.collapsedItemCount=0,n}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var v,E,n=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(E=v.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(n&&n.rows&&n.collapsedItemCount!==void 0)return n.rows=n.rows.slice(0,n.collapsedItemCount),n.collapsedItemCount=n.rows.length,n}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.structuredDescriptionContentRenderer)==null?0:(E=v.items)==null?0:E.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 v;return(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.videoSecondaryInfoRenderer)==null?0:(E=v.owner)==null?0:(n=E.videoOwnerRenderer)==null?0:n.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return!!((v=this.videoPrimaryInfoRenderer)==null?0:(E=v.videoActions)==null?0:(n=E.menuRenderer)==null?0:(f=n.flexibleItems)==null?0:f.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Za(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Za(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var v=this;if(_.Z("web_title_hashtag_grey_delinkified")){var E,n=_.sh.unsafeClone((E=this.videoPrimaryInfoRenderer)==null?void 0:E.title);(E=n==null?void 0:n.runs)&&E.forEach(function(f){if(f==null?0:f.navigationEndpoint)f.textColor=4284506208,v.isDark&&(f.textColor=4289374890)});
return n}return(n=this.videoPrimaryInfoRenderer)==null?void 0:n.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_title_hashtag_black_delinkified")||_.Z("web_title_hashtag_grey_delinkified")}}});
Uu.prototype.resetDescriptionState=Uu.prototype.resetDescriptionState;Uu.prototype.registerPanel=Uu.prototype.registerPanel;Uu.prototype.onYtExpanderLessTapped=Uu.prototype.onYtExpanderLessTapped;Uu.prototype.onYtExpanderMoreTapped=Uu.prototype.onYtExpanderMoreTapped;Uu.prototype.onRenderStamperFinished=Uu.prototype.onRenderStamperFinished;Uu.prototype.onYtTextInlineExpanderExpandedChanged=Uu.prototype.onYtTextInlineExpanderExpandedChanged;Uu.prototype.onYtTextInlineExpanderCollapseClicked=Uu.prototype.onYtTextInlineExpanderCollapseClicked;
Uu.prototype.onYtTextInlineExpanderExpandClicked=Uu.prototype.onYtTextInlineExpanderExpandClicked;Uu.prototype.moveActionsElement=Uu.prototype.moveActionsElement;Uu.prototype.updateShouldForceIconOnly=Uu.prototype.updateShouldForceIconOnly;Uu.prototype.updateTopLevelIconsOnly=Uu.prototype.updateTopLevelIconsOnly;Uu.prototype.structuredDescriptionContentRendererChanged=Uu.prototype.structuredDescriptionContentRendererChanged;Uu.prototype.videoSecondaryInfoRendererChanged=Uu.prototype.videoSecondaryInfoRendererChanged;
Uu.prototype.videoPrimaryInfoRendererChanged=Uu.prototype.videoPrimaryInfoRendererChanged;Uu.prototype.maybeUpdateActionsOnSeparateLine=Uu.prototype.maybeUpdateActionsOnSeparateLine;Uu.prototype.updateOwnerAndDescriptionPosition=Uu.prototype.updateOwnerAndDescriptionPosition;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Uu.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Uu.prototype,"ytdReduxBehavior",void 0);_.k([_.Wp("#above-the-fold"),_.W("design:type",HTMLElement)],Uu.prototype,"aboveTheFoldContainer",void 0);_.k([_.Wp("#menu ytd-menu-renderer"),_.W("design:type",Object)],Uu.prototype,"menu",void 0);
_.k([_.Wp("#description-inline-expander"),_.W("design:type",Object)],Uu.prototype,"descriptionInlineExpander",void 0);_.k([_.Wp("#faded-structured-description"),_.W("design:type",Object)],Uu.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.k([_.Wp("#structured-description"),_.W("design:type",Object)],Uu.prototype,"structuredDescriptionContentRendererElement",void 0);_.k([_.Wp("#title"),_.W("design:type",HTMLElement)],Uu.prototype,"titleElement",void 0);
_.k([_.Wp("#description"),_.W("design:type",HTMLElement)],Uu.prototype,"descriptionElement",void 0);_.k([_.Wp("#description-interaction"),_.W("design:type",Object)],Uu.prototype,"descriptionInteraction",void 0);_.k([_.Wp("#owner"),_.W("design:type",HTMLElement)],Uu.prototype,"ownerElement",void 0);_.k([_.Wp("#top-row"),_.W("design:type",HTMLElement)],Uu.prototype,"topRowElement",void 0);_.k([_.Wp("#bottom-row"),_.W("design:type",HTMLElement)],Uu.prototype,"bottomRowElement",void 0);
_.k([_.Wp("#actions"),_.W("design:type",HTMLElement)],Uu.prototype,"actionsElement",void 0);_.k([_.Wp("#bottom-actions"),_.W("design:type",HTMLElement)],Uu.prototype,"bottomActionsElement",void 0);_.k([_.Wp("#ytd-watch-info-text"),_.W("design:type",Object)],Uu.prototype,"watchInfoTextElement",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"videoPrimaryInfoRenderer",void 0);
_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"videoSecondaryInfoRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"commentsEntryPointHeaderRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"videoMetadataCarousel",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"structuredDescriptionContentRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"videoSummary",void 0);
_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"merchShelf",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"infoPanelBelowMetadata",void 0);_.k([_.A("structuredDescriptionContentRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"productShelf",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"metadataBadgesInDescription",void 0);
_.k([_.A("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"shouldHideBadges",null);_.k([_.A("productShelf","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"shouldShowProductShelf",null);_.k([_.H(),_.W("design:type",Boolean)],Uu.prototype,"isWatchFlexy",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"descriptionCollapsed",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Uu.prototype,"useFadedScrimDescription",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"skinnyMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"largerItemWrap",null);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"playlist",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"clarifyBox",void 0);
_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"playerAds",void 0);_.k([_.H(),_.W("design:type",Boolean)],Uu.prototype,"isDark",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Uu.prototype,"actionsOnSeparateLine",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"disableVideoOwnerOnTap",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"swatcherooDelayLoad",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Uu.prototype,"suppressTopLevelMetadataRows",void 0);_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"primaryMenuWidth",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"videoId",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"titleHeadlineXs",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"titleHeadlineS",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"titleHeadlineM",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"titleHashtagBlackLinkified",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"titleHashtagGreyLinkified",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.k([_.H(),_.W("design:type",Object)],Uu.prototype,"shouldForceIconOnly",void 0);_.k([_.Tw("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"updateOwnerAndDescriptionPosition",null);_.k([_.Tw("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.k([_.A("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"descriptionText",null);_.k([_.A("videoSecondaryInfoRenderer.headerRuns"),_.W("design:type",Array),_.W("design:paramtypes",[])],Uu.prototype,"headerRuns",null);_.k([_.H({value:!1}),_.A("commentsEntryPointHeaderRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"hasTeaser",null);
_.k([_.H({value:!1,reflectToAttribute:!0}),_.A("videoMetadataCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"hasTeaserCarousel",null);_.k([_.H({value:3}),_.A("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"descriptionMaxLines",null);_.k([_.A("videoSecondaryInfoRenderer.metadataRowContainer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"collapsibleMetadataRows",null);
_.k([_.A("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"alwaysVisibleMetadataRows",null);_.k([_.A("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"hasInlineStructuredDescription",null);
_.k([_.A("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"showInlineStructuredDescription",null);_.k([_.A("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"descriptionExpandCommand",null);
_.k([_.A("videoSecondaryInfoRenderer.owner"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"videoOwnerCommand",null);_.k([_.H({reflectToAttribute:!0}),_.A("videoPrimaryInfoRenderer.videoActions"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"flexMenuEnabled",null);_.k([_.H({selector:_.Mz,reflectToAttribute:!0}),_.W("design:type",Object)],Uu.prototype,"isFullscreen",void 0);
_.k([_.A("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"showAttributedStringDescription",null);_.k([_.A("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"showFormattedStringDescription",null);
_.k([_.A("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uu.prototype,"showFadedStructuredDescription",null);_.k([_.Tw("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"videoPrimaryInfoRendererChanged",null);_.k([_.A("videoPrimaryInfoRenderer.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"videoTitle",null);
_.k([_.A("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uu.prototype,"noEndpoints",null);_.k([_.Tw("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"videoSecondaryInfoRendererChanged",null);
_.k([_.On("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"structuredDescriptionContentRendererChanged",null);_.k([_.On("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"updateTopLevelIconsOnly",null);
_.k([_.On("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"updateShouldForceIconOnly",null);_.k([_.On("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"moveActionsElement",null);_.k([_.jk("yt-text-inline-expander-expand-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.k([_.jk("yt-text-inline-expander-collapse-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.k([_.jk("yt-text-inline-expander-expanded-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Uu.prototype,"onRenderStamperFinished",null);_.k([_.jk("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"onYtExpanderMoreTapped",null);_.k([_.jk("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"onYtExpanderLessTapped",null);
_.k([_.On("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"registerPanel",null);_.k([_.On("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uu.prototype,"resetDescriptionState",null);Uu=_.k([_.N({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Uu);
_.u(Uu,"ytd-watch-metadata",function(){if(S76!==void 0)return S76;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return S76=v},{mode:2});_.OA6=function(v){_.QK.call(this);this.JSC$20154_watchApi=v;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;VEp(this);D5M(this);HA0(this);g11(this);NDU(this);uFp(this);jAU(this)};
_.S(_.OA6,_.QK);var HA0=function(v){var E=function(){_.Z("kevlar_is_pupi_enabled")||qK(v)};
v.JSC$20154_watchApi.getRoot().addEventListener("yt-player-updated",E);v.addOnDisposeCallback(function(){v.JSC$20154_watchApi.getRoot().removeEventListener("yt-player-updated",E)})},NDU=function(v){if(_.Z("kevlar_endscreen_auto_theater_mode")){var E=v.JSC$20154_watchApi.subscribeToActiveChanged(function(){kzR(v)},!1);
v.addOnDisposeCallback(E)}},VEp=function(v){var E,n,f,x,y;
_.X(function(Q){if(Q.nextAddress==1)return _.m(Q,v.JSC$20154_watchApi.playerApi,2);E=Q.yieldResult;n=function(e){e=!!e;J0(v)&&(e=e?2:1,_.jO.getInstance().setState(e,!0,!1))};
f=function(e){e&&_.L6K(_.dG().getState())&&(_.OL(v.JSC$20154_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),v.temporaryTheaterMode=!0)};
x=function(e){_.Z("kevlar_player_update_autonav_on_new_data")&&e.type==="newdata"&&(_.Z("kevlar_is_pupi_enabled")||qK(v))};
y=function(e){v.onPlayerStateChange(e)};
_.Z("kevlar_endscreen_auto_theater_mode")&&E.addEventListener("onAutonavCancelled",f);E.addEventListener("onAutonavChangeRequest",n);E.addEventListener("onVideoDataChange",x);E.addEventListener("onStateChange",y);v.addOnDisposeCallback(function(){E.removeEventListener("onAutonavChangeRequest",n);E.removeEventListener("onVideoDataChange",x);E.removeEventListener("onStateChange",y);_.Z("kevlar_endscreen_auto_theater_mode")&&E.removeEventListener("onAutonavCancelled",f)});
_.yQ(Q)})},D5M=function(v){v.JSC$20154_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){v.autonavCancelledBySignal=!0;
_.Z("kevlar_is_pupi_enabled")||qK(v)});
v.JSC$20154_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(E,n,f){n&&qK(v,f)});
v.JSC$20154_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){J0(v)&&_.jO.getInstance().setState(2,!0,!0)});
v.JSC$20154_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){J0(v)&&_.jO.getInstance().setState(1,!0,!0)});
v.addOnDisposeCallback(function(){v.JSC$20154_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");v.JSC$20154_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");v.JSC$20154_watchApi.unregisterActionHandler("yt-enable-autoplay-command");v.JSC$20154_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},g11=function(v){var E=v.JSC$20154_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){jAU(v)}),n=v.JSC$20154_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){uFp(v)});
v.addOnDisposeCallback(function(){v.JSC$20154_watchApi.unsubscribeByKey(E);v.JSC$20154_watchApi.unsubscribeByKey(n)})},jAU=function(v){v.autonavCancelledBySignal=!1;
_.Z("kevlar_is_pupi_enabled")||qK(v)},uFp=function(v){var E=v.JSC$20154_watchApi.getWatchNextResponse(),n,f;
var x=(E=(f=_.C(E==null?void 0:(x=E.playerOverlays)==null?void 0:(n=x.playerOverlayRenderer)==null?void 0:n.autonavToggle,_.Tr1))==null?void 0:f.enabled)?2:1;_.Z("kevlar_is_pupi_enabled")?_.jO.getInstance().setState(x,!1,!1):qK(v);_.Z("web_persist_server_autonav_state_on_client")&&typeof E==="boolean"&&_.DTX(x===2)},J0=function(v){if(v.autonavCancelledBySignal)return!1;
var E,n,f,x;return!!((E=v.JSC$20154_watchApi.getWatchNextResponse())==null?0:(n=E.contents)==null?0:(f=n.twoColumnWatchNextResults)==null?0:(x=f.autoplay)==null?0:x.autoplay)};
_.OA6.prototype.onPlayerStateChange=function(v){if(v===0){v=!_.jO.getInstance().isAutoplaySetExplicitly();var E=this.JSC$20154_watchApi.getWatchNextResponse(),n,f,x,y;E=_.C(E==null?void 0:(n=E.contents)==null?void 0:(f=n.twoColumnWatchNextResults)==null?void 0:(x=f.autoplay)==null?void 0:(y=x.autoplay)==null?void 0:y.autoplayExplicitChoiceDialogRenderer,_.qS1);J0(this)&&v&&E&&_.ki.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:E},popupType:"DIALOG"}})}else kzR(this)};
var kzR=function(v){v.temporaryTheaterMode&&(v.temporaryTheaterMode=!1,_.OL(v.JSC$20154_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},qK=function(v,E){E=E===void 0?!1:E;
var n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20154_watchApi.playerApi,2);n=f.yieldResult;J0(v)?n.setAutonavState(_.jO.getInstance().getState(),E):n.setAutonavState(1,E);_.yQ(f)})};var WYd={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"};_.LYp=function(v){_.QK.call(this);var E=this;this.JSC$20159_watchApi=v;var n=this.JSC$20159_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$5_(E)});
this.addOnDisposeCallback(function(){E.JSC$20159_watchApi.unsubscribeByKey(n)});
$5_(this)};
_.S(_.LYp,_.QK);var $5_=function(v){var E=v.JSC$20159_watchApi.getPlayerResponse(),n=v.JSC$20159_watchApi.getWatchNextResponse();if(!_.z2y(E==null?void 0:E.playabilityStatus,n==null?void 0:n.playerOverlays)){var f;var x=E==null?void 0:(f=E.playabilityStatus)==null?void 0:f.errorScreen}v.JSC$20159_watchApi.provideRenderingData("ERROR_SCREEN",x)};var Gzd=_.qu(function(v){var E=v.data;return _.w("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.w("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.w(_.mI,{data:function(){return E().channelAvatar}},{avatarViewModel:_.XK}),_.w(_.nh,{text:function(){return E().subtitle}})))},"Si");var TD1=_.qu(function(v){return _.w("yt-player-quick-action-buttons",{class:_.W8("ytPlayerQuickActionButtonsHost")},_.w(_.cG,{each:v.data},function(E){return _.w(_.mI,{data:function(){return E}},{buttonViewModel:_.C7,
likeButtonViewModel:function(n){return _.w(_.ld,{data:n.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.bd})}))},"Ti");_.z2K=function(v){_.QK.call(this);var E=this;this.JSC$20162_watchApi=v;v=_.p(_.t7({},void 0,"ufFdVc"));this.quickActionsViewModel=v.next().value;this.setQuickActionsViewModel=v.next().value;v=_.p(_.t7({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=v.next().value;this.setPlayerOverlayVideoDetailsRenderer=v.next().value;var n=this.JSC$20162_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iAx(E)});
this.addOnDisposeCallback(function(){E.JSC$20162_watchApi.unsubscribeByKey(n)});
iAx(this)};
_.S(_.z2K,_.QK);
var iAx=function(v){var E,n,f,x,y,Q,e,F,b,l,r,a,M,U;_.X(function(d){if(d.nextAddress==1)return _.m(d,v.JSC$20162_watchApi.playerApi,2);E=d.yieldResult;n=v.JSC$20162_watchApi.getWatchNextResponse();y=(f=n)==null?void 0:(x=f.playerOverlays)==null?void 0:x.playerOverlayRenderer;e=_.C((Q=y)==null?void 0:Q.fullscreenQuickActionsBar,_.y81);(b=(F=v).setQuickActionsViewModel)==null||b.call(F,e||{});e&&R2x(v,E);a=(l=y)==null?void 0:(r=l.videoDetails)==null?void 0:r.playerOverlayVideoDetailsRenderer;(U=(M=
v).setPlayerOverlayVideoDetailsRenderer)==null||U.call(M,a||{});a&&tEC(v,E);_.yQ(d)})},R2x=function(v,E){if(!v.quickActionButtonsContainer){v.quickActionButtonsContainer=document.createElement("div");
E.setFullscreenQuickActions(v.quickActionButtonsContainer);var n=function(){return v.quickActionsViewModel().quickActionButtons||[]},f=_.Fo(v.quickActionButtonsContainer,function(){return _.w(TD1,{data:n})});
v.addOnDisposeCallback(function(){E.setFullscreenQuickActions(void 0);f()})}},tEC=function(v,E){if(!v.playerOverlayVideoDetailsRendererContainer){v.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
E.setPlayerOverlayVideoDetailsRenderer(v.playerOverlayVideoDetailsRendererContainer);var n=_.Fo(v.playerOverlayVideoDetailsRendererContainer,function(){return _.w(Gzd,{data:v.playerOverlayVideoDetailsRenderer})});
v.addOnDisposeCallback(function(){E.setPlayerOverlayVideoDetailsRenderer(void 0);n()})}};_.KD=function(v){_.QK.call(this);var E=this;this.JSC$20167_watchApi=v;this.JSC$20167_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;v=_.yC(_.dG(),_.Mz,function(n){BD6(E,n)});
this.addOnDisposeCallback(v);v=_.yC(_.dG(),_.ST,function(n){E.onWatchScroll(n)});
this.addOnDisposeCallback(v);_.Z("kevlar_watch_while_v2")&&(v=_.yC(_.dG(),_.mW,function(n){v3R(E,n)}),this.addOnDisposeCallback(v));
E30(this);n3p(this);o33();this.onWatchScroll(_.ST(_.dG().getState()));_.Sp("START_IN_FULL_WINDOW_MODE")&&this.JSC$20167_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.S(_.KD,_.QK);var E30=function(v){v.JSC$20167_watchApi.registerActionHandler("yt-fullscreen-change-action",function(E){var n=v.JSC$20167_watchApi.isActive();E&&!n||_.dG().dispatch(_.un({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!E}}))});
v.addOnDisposeCallback(function(){v.JSC$20167_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},n3p=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20167_watchApi.playerApi,2);E=f.yieldResult;n=function(){v.onFullerscreenEduClicked()};
E.addEventListener("onFullerscreenEduClicked",n);v.addOnDisposeCallback(function(){E.removeEventListener("onFullerscreenEduClicked",n)});
_.yQ(f)})},BD6=function(v,E){var n;
_.X(function(f){if(f.nextAddress==1)return v.isFullscreen=!!_.Hq(),_.m(f,v.JSC$20167_watchApi.playerApi,2);n=f.yieldResult;v.JSC$20167_miniplayerActive||n.setFauxFullscreen(v.isFullscreen);if(E&&(v.JSC$20167_watchApi.focusOnPlayer(),!v.fullerscreenEduButtonShownThisPlayback)){v.fullerscreenEduButtonShownThisPlayback=!0;var x=_.vs("yt-fullerscreen-edu-button-shown-count")||0;_.Bg("yt-fullerscreen-edu-button-shown-count",x+1,31536E3);v.updateFullerscreenEduButtonSubtleModeState()}_.yQ(f)})},v3R=function(v,
E){var n;
_.X(function(f){if(f.nextAddress==1)return v.JSC$20167_miniplayerActive=E,_.m(f,v.JSC$20167_watchApi.playerApi,2);n=f.yieldResult;n.setFauxFullscreen(!v.JSC$20167_miniplayerActive&&v.isFullscreen);_.yQ(f)})};
_.KD.prototype.onWatchScroll=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return _.Z("external_fullscreen_with_edu")?_.m(x,E.JSC$20167_watchApi.playerApi,2):x.return();n=x.yieldResult;f=v<=0;E.shouldShowFullerscreenEdu!==f&&(E.shouldShowFullerscreenEdu=f,n.updateFullerscreenEduButtonVisibility(!E.shouldShowFullerscreenEdu));_.yQ(x)})};
_.KD.prototype.onFullerscreenEduClicked=function(){this.JSC$20167_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var v=_.vs("yt-fullerscreen-edu-button-click-count")||0;_.Bg("yt-fullerscreen-edu-button-click-count",v+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.KD.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var v=this,E,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return E=_.vs("yt-fullerscreen-edu-button-click-count")||0,n=_.vs("yt-fullerscreen-edu-button-shown-count")||0,f=_.WG("external_fullscreen_button_click_threshold"),x=_.WG("external_fullscreen_button_shown_threshold"),y=E>=f||n>=x,_.m(e,v.JSC$20167_watchApi.playerApi,2);Q=e.yieldResult;Q.updateFullerscreenEduButtonSubtleModeState(y);_.yQ(e)})};
_.KD.prototype.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);var v=_.Hq();_.Z("kevlar_exit_fullscreen_leaving_watch")&&v&&_.gM(v)};
var o33=function(){if(_.Z("web_watch_add_viewport_meta_tag")){var v=document.querySelector("meta[name=viewport]"),E=document.head;E&&!v&&(v=document.createElement("meta"),v.name="viewport",v.content="width=device-width, initial-scale=1.0, viewport-fit=cover",E.appendChild(v))}};_.dX=function(v){_.QK.call(this);var E=this;this.JSC$20171_watchApi=v;this.jobId=0;this.pendingRequestId=void 0;var n=this.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fiC(E)});
this.addOnDisposeCallback(function(){E.JSC$20171_watchApi.unsubscribeByKey(n)});
fiC(this)};
_.S(_.dX,_.QK);var xRU=function(v){_.wh.cancelJob(v.jobId);v.pendingRequestId=void 0},fiC=function(v){xRU(v);
var E=snO(v.JSC$20171_watchApi.getWatchNextResponse());if(E){var n=250,f,x=(f=_.C(E,_.Q6g))==null?void 0:f.initialDelayMs;_.Z("web_watch_updated_metadata_server_initial_delay")&&x&&(n=x);v.jobId=_.wh.addLowPriorityJob(function(){return v.fetchUpdatedMetadata(E)},n)}};
_.dX.prototype.fetchUpdatedMetadata=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V;return _.X(function(O){switch(O.nextAddress){case 1:E&&(f={continuation:E});if(!_.Z("web_get_updated_metadata_fantasy_panel_continuation_params")){O.jumpTo(2);break}x=_.P().resolve(_.XQ);y="PAsports_fantasy";return _.m(O,x.isVisible(y,!0),3);case 3:O.yieldResult&&(b=(e=(Q=x).getUpdatePanelContinuationData)==null?void 0:(F=e.call(Q,y))==null?void 0:F.updatePanelContinuationRequest)&&(f||(f={}),f.clientParams=
{panelContinuationParams:{panelContinuation:b}});case 2:l=_.P().resolve(_.ok);if(!l)return _.mb(Error("hm")),O.return();r={};n.pendingRequestId=r;return _.m(O,_.Mq(l,v,f),4);case 4:a=O.yieldResult;if(r!==n.pendingRequestId)return O.return();d=(M=a)==null?void 0:(U=M.continuation)==null?void 0:U.timedContinuationData;((Y=d)==null?0:Y.continuation)&&((V=d)==null?0:V.timeoutMs)&&(n.jobId=_.wh.addLowPriorityJob(function(){return n.fetchUpdatedMetadata(v,d.continuation)},d.timeoutMs));
_.yQ(O)}})};
_.dX.prototype.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);xRU(this)};var cgd=_.qu(function(v){var E=_.ij(function(){var f=v.data().videoId;if(v.active())f=_.DI(f),_.P().resolve(_.OO).resolveCommand(f);else{var x=v.playerApi(),y=x.getAvailableAudioTracks(),Q,e,F=(Q=v.sourceVideoConfig().audioTracks)==null?void 0:(e=Q.find(function(b){return b.isDefaultForSource}))==null?void 0:e.id;
if(y=y.find(function(b){return b.getLanguageInfo().getId()===F}))x.setAudioTrack(y,!0),x.setCompositeParam({activeVideoId:f}),v.setActiveSourceId(f)}}),n={};
return _.w("ytw-composite-source-video-overlay",{class:_.W8("ytwCompositeSourceVideoOverlayHost",(n.ytwCompositeSourceVideoOverlayActive=v.active,n.ytwCompositeSourceVideoOverlayInteracting=v.interacting,n)),style:_.tZ({left:function(){var f;return((f=v.data().topLeftCornerX)!=null?f:0)*100+"%"},
top:function(){var f;return((f=v.data().topLeftCornerY)!=null?f:0)*100+"%"},
width:function(){var f;return((f=v.data().width)!=null?f:0)*100+"%"},
height:function(){var f;return((f=v.data().height)!=null?f:0)*100+"%"}}),
"on:click":E},_.w("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Ui");var ygx=_.qu(function(v){var E=_.p(_.Rj(function(){var e,F=(e=v.data().sources)==null?void 0:e.find(function(b){return b.isActive});
if(F)return F.videoId})),n=E.next().value,f=E.next().value;
E=_.p(_.t7(!1,void 0,"WI4BUb"));var x=E.next().value,y=E.next().value;E=_.ij(function(){y(!0)});
var Q=_.ij(function(){y(!1)});
return _.w("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":E,"on:mouseout":Q},_.w(_.x6,{cond:function(){return v.data().sources},
then:function(e){return _.w(_.cG,{each:e},function(F){return _.w(cgd,{data:F,active:function(){return F.videoId===n()},
setActiveSourceId:f,interacting:x,playerApi:v.playerApi,sourceVideoConfig:function(){return rEU(v.compositeVideoConfig(),F.videoId)}})})}}))},"Vi");_.XSd=function(v){_.QK.call(this);this.JSC$20187_watchApi=v;v=_.p(_.t7({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=v.next().value;this.setCompositeVideoOverlayRenderer=v.next().value;v=_.p(_.t7({},void 0,"U5hcq"));this.compositeVideoConfig=v.next().value;this.setCompositeVideoConfig=v.next().value;pSU(this);QdU(this)};
_.S(_.XSd,_.QK);var pSU=function(v){var E=v.JSC$20187_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){QdU(v)});
v.addOnDisposeCallback(function(){v.JSC$20187_watchApi.unsubscribeByKey(E)})},eWx=function(v){var E;
return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20187_watchApi.playerApi,2);E=n.yieldResult;E.setCompositeVideoOverlayRendererComponent(v.container);_.yQ(n)})},FEb=function(v){var E;
return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20187_watchApi.playerApi,2);E=n.yieldResult;E.setCompositeVideoOverlayRendererComponent(void 0);_.yQ(n)})},mR_=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20187_watchApi.playerApi,2);E=f.yieldResult;v.container=document.createElement("div");n=_.Fo(v.container,function(){return _.w(ygx,{data:v.compositeVideoOverlayRenderer,compositeVideoConfig:v.compositeVideoConfig,playerApi:E})});
v.addOnDisposeCallback(n);_.yQ(f)})},QdU=function(v){var E,n,f,x,y,Q,e,F;
_.X(function(b){return b.nextAddress==1?(E=v.JSC$20187_watchApi.getPlayerResponse(),y=_.C((n=E)==null?void 0:(f=n.overlay)==null?void 0:(x=f.playerControlsOverlayRenderer)==null?void 0:x.compositeVideoOverlay,pJ3),F=(Q=E)==null?void 0:(e=Q.playerConfig)==null?void 0:e.compositeVideoConfig,y&&v.setCompositeVideoOverlayRenderer(y),F&&v.setCompositeVideoConfig(F),y&&F?v.container?b.jumpTo(6):_.m(b,mR_(v),6):wSM(v)?_.m(b,FEb(v),0):b.jumpTo(0)):wSM(v)?b.jumpTo(0):_.m(b,eWx(v),0)})},wSM=function(v){var E;
return!((E=v.container)==null||!E.parentElement)};
_.XSd.prototype.disposeInternal=function(){wSM(this)&&FEb(this);_.QK.prototype.disposeInternal.call(this)};_.PeK=function(v){_.QK.call(this);var E=this;this.JSC$20193_watchApi=v;var n=this.JSC$20193_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var f=E.JSC$20193_watchApi.getPlayerResponse();if(f){var x,y;if(f=_.C((x=f.endscreen)==null?void 0:(y=x.endscreenRenderer)==null?void 0:y.hideButton,_.bS)){var Q;(Q=E.setEndscreenHideButton)==null||Q.call(E,f);bfC(E)}}});
this.addOnDisposeCallback(function(){E.JSC$20193_watchApi.unsubscribeByKey(n)});
v=_.p(_.t7({},void 0,"PPHRb"));this.endscreenHideButton=v.next().value;this.setEndscreenHideButton=v.next().value;lib(this);sdR(this);rgM(this)};
_.S(_.PeK,_.QK);var bfC=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return v.creatorEndscreenHideButtonContainer?f.return():_.m(f,v.JSC$20193_watchApi.playerApi,2);E=f.yieldResult;v.creatorEndscreenHideButtonContainer=document.createElement("div");_.dC(v.creatorEndscreenHideButtonContainer,!1);E.setCreatorEndscreenHideButton(v.creatorEndscreenHideButtonContainer);n=_.Fo(v.creatorEndscreenHideButtonContainer,function(){return _.w(_.lS,{data:v.endscreenHideButton,useOutlinedIcon:!0})});
v.addOnDisposeCallback(function(){n();E.setCreatorEndscreenHideButton(void 0)});
_.yQ(f)})},lib=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20193_watchApi.playerApi,2);E=f.yieldResult;n=function(){v.creatorEndscreenHideButtonContainer&&_.dC(v.creatorEndscreenHideButtonContainer,!0)};
E.addEventListener("endscreenelementshown",n);v.addOnDisposeCallback(function(){E.removeEventListener("endscreenelementshown",n)});
_.yQ(f)})},sdR=function(v){var E=function(){v.creatorEndscreenHideButtonContainer&&_.dC(v.creatorEndscreenHideButtonContainer,!1)},n=v.JSC$20193_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",E),f=v.JSC$20193_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",E);
v.addOnDisposeCallback(function(){v.JSC$20193_watchApi.unsubscribeByKey(n);v.JSC$20193_watchApi.unsubscribeByKey(f)})},rgM=function(v){v.JSC$20193_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(E){var n=_.C(E,nu1);
v.JSC$20193_watchApi.playerApi.then(function(f){f==null||f.setCreatorEndscreenVisibility(!!n.hide)})});
v.addOnDisposeCallback(function(){v.JSC$20193_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Zfx=function(v){_.QK.call(this);this.JSC$20199_watchApi=v;aiK(this)};
_.S(_.Zfx,_.QK);var aiK=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20199_watchApi.playerApi,2);E=f.yieldResult;n=function(x){_.dG().dispatch(_.un({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:x}}))};
E.addEventListener("onRetroModeChanged",n);v.addOnDisposeCallback(function(){E.removeEventListener("onRetroModeChanged",n)});
_.yQ(f)})};var ds=0,Ku=0,IL=0;var CeM;CeM=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.I7=function(v){_.QK.call(this);this.JSC$20212_watchApi=v;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;M13(this)};
_.S(_.I7,_.QK);
var M13=function(v){var E,n,f;_.X(function(x){if(x.nextAddress==1)return _.m(x,v.JSC$20212_watchApi.playerApi,2);E=x.yieldResult;if(v.isDisposed())return x.return();v.sessionStorage=_.KUO("yt-sleep-timer");v.sessionStorage||_.li(new _.yc("SessionStorage for Sleep Timer is undefined."));((n=v.sessionStorage)==null?void 0:n.get("yt-sleep-timer"))==="true"&&(K1M(),(f=v.sessionStorage)==null||f.remove("yt-sleep-timer"),E.syncVolume());SrU(v,E);URb(v,E);qrx(v,E);_.yQ(x)})},SrU=function(v,E){var n=function(b){v.onSleepTimerSettingsChanged(b,
E)},f=function(b){v.onPlayerStateChange(b,E)},x=function(){v.onLoopChange(E)},y=function(){v.onCloseMiniplayer(E)},Q=function(){SF1(E,(0,_.gd)(),dk0(E),v.selectedOption==="End of video",E.getPlayerState()!==1)},e=function(){v.onSeekComplete(E)},F=function(){_.wh.cancelJob(Ku);
var b=E.getCurrentTime()>=E.getDuration(),l=v.selectedOption==="End of video"||v.selectedOption==="End of playlist"&&!ZO1(v.playlistId);b&&l&&Jgx(v,E)};
E.addEventListener("onSleepTimerSettingsChanged",n);E.addEventListener("onLoopChange",x);E.addEventListener("onLoopRangeChange",x);E.addEventListener("onStateChange",f);E.addEventListener("onCloseMiniplayer",y);E.addEventListener("onSleepTimerFeatureAvailable",Q);E.addEventListener("SEEK_COMPLETE",e);E.addEventListener("onAdStart",F);v.addOnDisposeCallback(function(){E.removeEventListener("onSleepTimerSettingsChanged",n);E.removeEventListener("onLoopChange",x);E.removeEventListener("onLoopRangeChange",
x);E.removeEventListener("onStateChange",f);E.removeEventListener("onCloseMiniplayer",y);E.removeEventListener("onSleepTimerFeatureAvailable",Q);E.removeEventListener("SEEK_COMPLETE",e);E.removeEventListener("onAdStart",F)})},URb=function(v,E){var n=v.JSC$20212_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var f=E.getVideoData().video_id,x,y=(x=Pp1(v.JSC$20212_watchApi))==null?void 0:x.playlistId;
v.pauseAutonavPlayback&&(E.pauseVideo(),E.syncVolume(),v.pauseAutonavPlayback=!1);if(v.selectedOption==="End of video"&&f!==v.videoId)YG(v,E);else{if(v.selectedOption==="End of playlist"){x=ZO1(v.playlistId);if(y!==v.playlistId){YG(v,E);break a}x?x&&KEd(v,E):dR6(v,E)}v.videoId=f;v.playlistId=y}}});
v.addOnDisposeCallback(function(){v.JSC$20212_watchApi.unsubscribeByKey(n)})},qrx=function(v,E){var n=_.P().resolve(_.lQ),f=_.yC(n,_.hrX,function(y){y&&v.selectedOption!=="Off"&&YG(v,E)}),x=v.JSC$20212_watchApi.subscribeToActiveChanged(function(y){var Q,e;
return _.X(function(F){if(F.nextAddress==1)return _.m(F,_.xo().navigationFinishPromise,2);Q=!_.pYU();e=_.P().resolve(_.hf).isMiniplayerActive();y||!Jn(v.selectedOption)||e||Q||YG(v,E);_.yQ(F)})},!1);
n=_.yC(n,function(y){return y.entities.playlistLoopStateEntity||{}},function(y){y=y===void 0?{}:y;
var Q=a3x(v.JSC$20212_watchApi);if(Q){var e;((e=y[Q])==null?void 0:e.state)==="PLAYLIST_LOOP_STATE_ALL"&&Jn(v.selectedOption)&&YG(v,E)}});
v.addOnDisposeCallback(f);v.addOnDisposeCallback(n);v.addOnDisposeCallback(x)};
_.I7.prototype.onSleepTimerSettingsChanged=function(v,E){switch(v){case "Off":this.selectedOption!=="Off"&&YG(this,E);break;case "End of video":case "End of playlist":Ii3(this,v,E);break;default:Ii3(this,v,E,CeM.get(v))}};
_.I7.prototype.onLoopChange=function(v){(v.getLoopVideo()||v.getLoopRange())&&Jn(this.selectedOption)&&YG(this,v)};
_.I7.prototype.onCloseMiniplayer=function(v){Jn(this.selectedOption)&&YG(this,v)};
var Ii3=function(v,E,n,f){Yr_(v,n);v.selectedOption=E;v.videoId=n.getVideoData().video_id;v.playlistId="";var x;(x=v.sessionStorage)==null||x.set("yt-sleep-timer","true");v.adjustmentsCount++;SF1(n,(0,_.gd)(),dk0(n),v.selectedOption==="End of video");if(v.selectedOption==="End of video")dR6(v,n),hW3(v,n);else if(v.selectedOption==="End of playlist"){hW3(v,n);var y,Q;v.playlistId=(Q=(y=Pp1(v.JSC$20212_watchApi))==null?void 0:y.playlistId)!=null?Q:"";ZO1(v.playlistId)||dR6(v,n)}else f&&(v.presetFadeSchedulerId=
_.xa(_.wh,function(){qFP(n,15E3)},f-15E3),v.presetPauseSchedulerId=_.xa(_.wh,function(){Jgx(v,n)},f),Uk_(n,(0,_.gd)(),f))},Jgx=function(v,E){if(v.JSC$20212_watchApi.isActive()){var n={dismissDialogEndpoint:{}};
var f={commandExecutorCommand:{commands:[n,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};n={buttonViewModel:{title:_.tQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:n}}};f={buttonViewModel:{title:_.tQ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:f}}};var x={dialogHeaderViewModel:{headline:{content:_.tQ("SLEEP_TIMER_ENDED_TITLE")}}},
y={basicContentViewModel:{paragraphs:[{text:{content:_.tQ("SLEEP_TIMER_ENDED_TEXT")}}]}};n={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:x,content:y,footer:{panelFooterViewModel:{primaryButton:n,secondaryButton:f,shouldHideDivider:!0}}}}}}};_.P().resolve(_.OO).resolveCommand(n,{form:{element:v}})}else K1M();AgO(v,!1);V1M(v,E);E.pauseVideo();_.jO.getInstance().getState()===2&&E.getPlayerState()===5&&(v.pauseAutonavPlayback=!0)},YG=function(v,E){AgO(v,!0);
V1M(v,E);K1M()},V1M=function(v,E){Yr_(v,E);
v.selectedOption="Off";v.videoId="";v.playlistId="";v.adjustmentsCount=0;var n;(n=v.sessionStorage)==null||n.remove("yt-sleep-timer");_.wh.cancelJob(ds);E.resetSleepTimerMenuSettings()},AgO=function(v,E){E={timer_length_adjustment_times_during_session:v.adjustmentsCount-1,
is_session_cancelled:E};switch(v.selectedOption){case "Off":E.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:E.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",E.option_duration_in_minutes=CeM.get(v.selectedOption)/6E4}_.eQ("sleepTimerSessionFinishEvent",E)};
_.I7.prototype.onPlayerStateChange=function(v,E){v===1?SF1(E,(0,_.gd)(),dk0(E),this.selectedOption==="End of video"):v===0?(_.wh.cancelJob(Ku),E.setVideoTimeLeft(Md6(0,0))):v===2&&_.wh.cancelJob(Ku);this.selectedOption==="End of video"?v===0?Jgx(this,E):v===2&&JE3(E):this.selectedOption!=="End of playlist"||ZO1(this.playlistId)||(v===0?Jgx(this,E):v===2&&JE3(E))};
_.I7.prototype.onSeekComplete=function(v){v.getPlayerState()===2&&SF1(v,(0,_.gd)(),dk0(v),this.selectedOption==="End of video",!0)};
_.I7.prototype.onCueRangeEnter=function(v,E){v==="sleep-timer-fade-audio"&&qFP(E,(E.getDuration()-E.getProgressState().current)*1E3)};
_.I7.prototype.onCueRangeExit=function(v,E){v==="sleep-timer-fade-audio"&&E.getPlayerState()!==0&&JE3(E,!0)};
var dR6=function(v,E){E.addCueRange("sleep-timer-fade-audio",E.getDuration()-15,E.getDuration());E.addEventListener("onCueRangeEnter",function(n){v.onCueRangeEnter(n,E)});
E.addEventListener("onCueRangeExit",function(n){v.onCueRangeExit(n,E)})},KEd=function(v,E){E.removeCueRange("sleep-timer-fade-audio");
E.removeEventListener("onCueRangeEnter",function(n){v.onCueRangeEnter(n,E)});
E.removeEventListener("onCueRangeExit",function(n){v.onCueRangeExit(n,E)})},Yr_=function(v,E){Jn(v.selectedOption)?KEd(v,E):(_.wh.cancelJob(v.presetPauseSchedulerId),_.wh.cancelJob(v.presetFadeSchedulerId),v.presetPauseSchedulerId=0,v.presetFadeSchedulerId=0);
JE3(E,!0)},hW3=function(v,E){E.setLoop(!1);
E.setLoopVideo(!1);E.setLoopRange(null);(v=a3x(v.JSC$20212_watchApi))&&_.P().resolve(_.lQ).dispatch(_.n7("playlistLoopStateEntity",v,{key:v,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.NHO=function(v){_.QK.call(this);this.JSC$20215_watchApi=v;DRb(this);HfC(this);g3M(this);v=v.getRoot();if(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-grid")v.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.O6C();_.Z("web_watch_log_theater_mode_cookie_state")&&_.nE.get("wide","0")==="1"&&_.YNI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.S(_.NHO,_.QK);var DRb=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20215_watchApi.playerApi,2);E=f.yieldResult;n=function(x){uCU(v,!!x)};
E.addEventListener("SIZE_CLICKED",n);v.addOnDisposeCallback(function(){E.removeEventListener("SIZE_CLICKED",n)});
_.yQ(f)})},HfC=function(v){v.JSC$20215_watchApi.registerActionHandler("yt-toggle-theater-mode",function(E,n){uCU(v,E,n===void 0?!0:n)});
v.addOnDisposeCallback(function(){v.JSC$20215_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.NHO.prototype.getState=function(){return _.bP(_.dG().getState())};
var uCU=function(v,E,n){n=n===void 0?!0:n;var f,x,y,Q=_.Z("enable_player_resize_transition")&&!!v.JSC$20215_watchApi.getWatchNextResponse()&&!((f=v.JSC$20215_watchApi.getWatchNextResponse())==null?0:(x=f.contents)==null?0:(y=x.twoColumnWatchNextResults)==null?0:y.conversationBar);_.dgx(function(){_.dG().dispatch(_.un({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:E}}));_.Z("theater_mode_scroll_to_top_killswitch")||v.JSC$20215_watchApi.scrollWatchTo(0,!1);_.Hq()&&_.Z("external_fullscreen")&&_.gM(document.documentElement);
g3M(v);n&&_.oP("wide",E?"1":"0",-1);_.OL(v.JSC$20215_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);v.JSC$20215_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:E});E&&_.O6C()},{shouldWrap:Q})},g3M=function(v){var E;
_.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20215_watchApi.playerApi,2);E=n.yieldResult;E.setSizeStyle(!0,v.getState());_.yQ(n)})};var kDP=function(v){_.QK.call(this);var E=this;this.playerApi=v;this.timeToPanelSyncKeyMap={};var n;if(v==null?0:(n=v.isReady)==null?0:n.call(v)){n=_.yC(_.P().resolve(_.lQ),function(x){return x.entities.timedMarkersListSyncEntity||{}},function(x,y){x=x===void 0?{}:x;
y=y===void 0?{}:y;for(var Q=_.p(Object.keys(y)),e=Q.next();!e.done;e=Q.next())e=e.value,x[e]!==y[e]&&jdC(E,y[e]);y=_.p(Object.keys(x));for(Q=y.next();!Q.done;Q=y.next())Q=Q.value,e=x[Q],E.timeToPanelSyncKeyMap[Q]&&Of0(E,e)});
this.addOnDisposeCallback(n);var f=function(x){E.onCueRangeEnter(x)};
v.addEventListener("onCueRangeEnter",f);this.addOnDisposeCallback(function(){var x;(x=v.removeEventListener)==null||x.call(v,"onCueRangeEnter",f)})}};
_.S(kDP,_.QK);
var Of0=function(v,E){var n,f;if((n=v.playerApi)==null?0:(f=n.isReady)==null?0:f.call(n)){var x;if((n=E==null?void 0:(x=E.timedListData)==null?void 0:x.sections)&&E!=null&&E.key)for(x=_.p(n),n=x.next();!n.done;n=x.next())if(n=n.value,n.timedSyncDataList&&n.sectionId)for(f=0;f<n.timedSyncDataList.length;f++){var y=n.timedSyncDataList[f];y.syncItemId&&v.playerApi.addCueRange(n.sectionId+"_"+E.key+"_"+y.syncItemId,Number(y.videoTimeMs)/1E3,f===n.timedSyncDataList.length-1?0x8000000000000:Number(n.timedSyncDataList[f+
1].videoTimeMs)/1E3)}}},jdC=function(v,E){var n,f;
if((n=v.playerApi)==null?0:(f=n.isReady)==null?0:f.call(n)){var x;if((n=E==null?void 0:(x=E.timedListData)==null?void 0:x.sections)&&E!=null&&E.key)for(x=_.p(n),n=x.next();!n.done;n=x.next())if(n=n.value,n.timedSyncDataList&&n.sectionId){f=_.p(n.timedSyncDataList);for(var y=f.next();!y.done;y=f.next())y=y.value,y.syncItemId&&v.playerApi.removeCueRange(n.sectionId+"_"+E.key+"_"+y.syncItemId)}}};
kDP.prototype.onCueRangeEnter=function(v){for(var E=_.p(Object.keys(this.timeToPanelSyncKeyMap)),n=E.next();!n.done;n=E.next()){n=n.value;var f=_.p(v.split("_"+n+"_")),x=f.next().value;f=f.next().value;if(x&&f){v=_.P().resolve(_.lQ);E=this.timeToPanelSyncKeyMap[n];var y=_.TEX(v.getState(),E);n=WEP(n,x,f);if(n===-1)break;n={activeSyncId:f,activeItemIndex:n,activeSectionInfo:{sectionIdentifier:x}};y?v.dispatch(_.sI("markersEngagementPanelSyncEntity",E,n)):v.dispatch(_.n7("markersEngagementPanelSyncEntity",
E,Object.assign({},{key:E},n)));break}}};
var WEP=function(v,E,n){var f=_.P().resolve(_.lQ),x,y;v=(x=g46(f.getState(),v))==null?void 0:(y=x.timedListData)==null?void 0:y.sections;if(!v)return-1;x=0;y=_.p(v);for(v=y.next();!v.done;v=y.next()){v=v.value;f=v.timedSyncDataList||[];if(v.sectionId===E)return E=f.findIndex(function(Q){return Q.syncItemId===n}),E===-1?E:x+E;
x+=f.length}return-1};_.GD3=function(v){_.QK.call(this);var E=this;this.JSC$20227_watchApi=v;this.unresolvedCommands=[];this.JSC$20227_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(n){$RR(E,n)});
this.addOnDisposeCallback(function(){E.JSC$20227_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
LE_(this)};
_.S(_.GD3,_.QK);var LE_=function(v){var E;_.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20227_watchApi.playerApi,2);E=n.yieldResult;if(v.isDisposed())return n.return();v.timedSyncObserver=new kDP(E);v.unresolvedCommands.length&&(v.unresolvedCommands.forEach(function(f){return $RR(v,f)}),v.unresolvedCommands=[]);
_.BV(v,v.timedSyncObserver);_.yQ(n)})},$RR=function(v,E){if(v.timedSyncObserver){var n=_.C(E,fyM);
if(n&&n.timedSyncEntityKey&&n.panelSyncEntityKey){v=v.timedSyncObserver;E=n.timedSyncEntityKey;var f=n.panelSyncEntityKey;n=!!n.isEnabled;n=n===void 0?!0:n;var x=_.P().resolve(_.lQ);x=g46(x.getState(),E);n?v.timeToPanelSyncKeyMap[E]||(v.timeToPanelSyncKeyMap[E]=f,Of0(v,x)):(delete v.timeToPanelSyncKeyMap[E],jdC(v,x))}}else v.unresolvedCommands.push(E)};var TH1=_.qu(function(v){var E=v.data,n=v.maybeLogSmartSkipClientData,f=_.Ig();_.Ya(f,function(){return E().rendererContext},{onTap:function(l,r){r({disableClickTracking:!0})}});
var x=null,y=null,Q=_.Z("web_enable_auto_focus_for_timely_action_button"),e=function(){x=document.activeElement},F=function(){E().smartSkipMetadata&&(x=document.activeElement,_.dVU(function(){return y}))},b=function(l){if(E().smartSkipMetadata&&(!l||l.key!=="Enter")){x&&x.isConnected&&(_.dVU(function(){return x}),x=null);
var r;(r=y)==null||r.blur()}};
v=_.ij(function(){n==null||n(!0,E());return!1});
_.gt(f,{visibilityCallback:function(l){if(Q)l?y&&E().smartSkipMetadata&&(F(),document.addEventListener("focusin",e)):(document.removeEventListener("focusin",e),b());else if(l&&_.Z("web_ephemeral_actions")){l=_.K7(E().rendererContext);var r=Number(E().maxVisibleDurationMilliseconds),a,M=(a=_.C(E().rendererContext,_.AF))==null?void 0:a.label;l&&r&&M&&(a={label:M,command:l,durationMs:r},_.P().resolve(_.Bw).enqueue(a))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.mM(function(){if(Q){var l;if((y=(l=f.value)==null?void 0:l.querySelector("button"))&&E().smartSkipMetadata){var r;(r=f.value)==null||r.addEventListener("keydown",b)}}});
_.Fp(function(){Q&&(y&&E().smartSkipMetadata&&y.removeEventListener("keydown",b),document.removeEventListener("focusin",e),b())});
return _.w("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:f,"on:click":v},_.w(_.mI,{data:function(){return E().content}},{buttonViewModel:_.C7}))},"Wi");var ifO=_.qu(function(v){var E=v.data,n=v.playerApi,f=_.P().resolve(_.DKP);v=_.p(_.Rj(function(){E()}));
var x=v.next().value,y=v.next().value,Q=function(){return YFM(E(),x())},e=function(b,l){var r,a,M=(r=_.C(l==null?void 0:l.rendererContext,_.xS9))==null?void 0:(a=r.loggingDirectives)==null?void 0:a.trackingParams;
if((l=l==null?void 0:l.smartSkipMetadata)&&l.loggingData&&(a=l.loggingData,l=a.algorithmId,r=a.startMilliseconds,a=a.endMilliseconds,l&&r!==void 0&&a!==void 0)){var U,d;b={smartSkipData:Object.assign({},{versionName:l,startMediaTimeMs:r,endMediaTimeMs:a},b&&{userInteractionMediaTimeMs:(Math.floor(((U=_.Aq())==null?void 0:(d=U.getPlayer())==null?void 0:d.getCurrentTime())||0)*1E3).toString()})};U=_.lc();var Y;M&&(Y=_.tx(M));U&&Y&&_.KH(U,Y,b)}},F=function(b,l){var r=YFM(E(),b);
if(r){var a=_.C(r,Yk),M;if(M=l)M=n(),r=_.C(r,Yk),M=r!=null&&r.smartSkipMetadata?!(M==null?0:M.isSameMarkerTypeVisible((r==null?void 0:r.smartSkipMetadata.markerKey)||"")):!0;if(M){var U,d;(a==null?0:(U=a.smartSkipMetadata)==null?0:(d=U.loggingData)==null?0:d.isCounterfactual)||(e(!1,a),y(b))}else l||x()!==b||y(void 0)}};
_.Xp(function(){var b=E().timelyActions;if(b){b=_.p(b);for(var l=b.next();!l.done;l=b.next()){l=_.C(l.value,Yk);var r=void 0;(r=l)!=null&&r.cueRangeId&&f.timelyActionsMap.set(l.cueRangeId,F)}_.Fp(function(){f.timelyActionsMap.clear()})}});
return _.w("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.w(_.mI,{data:Q},{timelyActionViewModel:function(b){return _.w(TH1,{data:b.data,maybeLogSmartSkipClientData:function(){e(!0,_.C(Q(),Yk))}})}}))},"Xi");_.RW_=function(v){_.QK.call(this);this.JSC$20239_watchApi=v;v=_.p(_.t7({},void 0,"pLDp2"));this.timelyActionsOverlay=v.next().value;this.setTimelyActionsOverlay=v.next().value;zW1(this)};
_.S(_.RW_,_.QK);var zW1=function(v){var E,n,f,x;_.X(function(y){if(y.nextAddress==1)return t1M(v),BHd(v),v.timelyActionsContainer=document.createElement("div"),_.m(y,v.JSC$20239_watchApi.playerApi,2);E=y.yieldResult;(f=(n=E).insertTimelyActionUi)==null||f.call(n,v.timelyActionsContainer);x=_.Fo(v.timelyActionsContainer,function(){return _.w(ifO,{data:v.timelyActionsOverlay,playerApi:E})});
v.addOnDisposeCallback(x);_.yQ(y)})},BHd=function(v){var E=v.JSC$20239_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){t1M(v)});
v.addOnDisposeCallback(function(){v.JSC$20239_watchApi.unsubscribeByKey(E)})},t1M=function(v){var E=v.JSC$20239_watchApi.getWatchNextResponse();
if(E){var n,f;if(E=_.C((n=E.playerOverlays)==null?void 0:(f=n.playerOverlayRenderer)==null?void 0:f.timelyActionsOverlayViewModel,xc3)){var x;(x=v.setTimelyActionsOverlay)==null||x.call(v,E)}}};_.EAO=function(v){_.QK.call(this);this.JSC$20243_watchApi=v;vA6(this)};
_.S(_.EAO,_.QK);var vA6=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20243_watchApi.playerApi,2);E=f.yieldResult;n=function(x){_.ki.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.C(x,_.Z$R)},popupType:"TOAST"}})};
E.addEventListener("onYtShowToast",n);v.addOnDisposeCallback(function(){E.removeEventListener("onYtShowToast",n)});
_.yQ(f)})};var nAC,x46,oA0,fsx,QpM,yH_,ph0,eD3,FJx;nAC=!1;_.cH6=function(v){_.QK.call(this);this.JSC$20246_watchApi=v;this.fullscreen=this.theater=!1;oA0(this);fsx(this);x46(this)};
_.S(_.cH6,_.QK);x46=function(v){var E,n,f;_.X(function(x){if(x.nextAddress==1)return _.m(x,v.JSC$20246_watchApi.playerApi,2);E=x.yieldResult;if(v.isDisposed())return x.return();n=v.JSC$20246_watchApi.getElement("CINEMATICS");if(!n)return x.return();v.JSC$20246_cinematicController=new _.oL(n,E);_.BV(v,v.JSC$20246_cinematicController);_.WB6(v.JSC$20246_cinematicController);yH_(v,_.YpQ());f=v.JSC$20246_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(y){ph0(v,y)});
v.addOnDisposeCallback(function(){v.JSC$20246_watchApi.unsubscribeByKey(f)});
QpM(v);ph0(v,v.JSC$20246_cinematicController.isAllowed());_.XhU(v,v.fullscreen,v.theater);eD3(v);_.yQ(x)})};
oA0=function(v){var E=v.JSC$20246_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QpM(v)});
v.addOnDisposeCallback(function(){v.JSC$20246_watchApi.unsubscribeByKey(E)})};
fsx=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20246_watchApi.playerApi,2);E=f.yieldResult;n=function(x){yH_(v,x)};
E.addEventListener("cinematicSettingsToggleChange",n);v.addOnDisposeCallback(function(){E.removeEventListener("cinematicSettingsToggleChange",n)});
_.yQ(f)})};
QpM=function(v){var E=v.JSC$20246_watchApi.getWatchNextResponse(),n;E=_.C(E==null?void 0:(n=E.pageVisualEffects)==null?void 0:n[0],_.sr);var f;(f=v.JSC$20246_cinematicController)==null||_.LBM(f,E)};
yH_=function(v,E){var n;(n=v.JSC$20246_cinematicController)==null||_.$ZK(n,E);FJx(v)};
ph0=function(v,E){var n;_.X(function(f){if(f.nextAddress==1)return _.Z("kevlar_watch_cinematics_invisible")&&(E=!1),_.m(f,v.JSC$20246_watchApi.playerApi,2);n=f.yieldResult;n.updateCinematicSettings(E);FJx(v);_.yQ(f)})};
eD3=function(v){var E=_.Ef();if(_.Z("kevlar_measure_ambient_mode_idle")&&!E.getFlag(192)&&!nAC){nAC=!0;var n=_.cP(_.wh,function(){_.P().resolve(_.qxd).start(1E4)},5E3);
v.addOnDisposeCallback(function(){_.wh.cancelJob(n);_.P().resolve(_.qxd).stop()})}};
_.XhU=function(v,E,n){v.fullscreen=E;v.theater=n;var f;(f=v.JSC$20246_cinematicController)==null||f.setFullscreen(v.fullscreen,v.theater);if(_.Z("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(v.theater||v.fullscreen){var x;(x=v.JSC$20246_cinematicController)!=null&&(x=x.currentCinematicEffect)!=null&&(x=x.storyboardManager,x.paused=!1,_.qJp(x),x.update())}else(v=v.JSC$20246_cinematicController)==null||(x=v.currentCinematicEffect)!=null&&x.pause()};
FJx=function(v){if(_.Z("web_cinematic_theater_mode")||_.Z("web_cinematic_fullscreen")){var E;v.JSC$20246_watchApi.getRoot().toggleCinematicsActive(!((E=v.JSC$20246_cinematicController)==null||!E.isEnabled()))}};_.ls0=function(v){_.QK.call(this);var E=this;this.JSC$20249_watchApi=v;this.commentsReady=!1;this.setCommentsJobId=0;v=_.yC(_.dG(),_.ST,function(){m4b(E)});
this.addOnDisposeCallback(v);var n=this.JSC$20249_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){whM(E)}),f=this.JSC$20249_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){whM(E)});
this.addOnDisposeCallback(function(){E.JSC$20249_watchApi.unsubscribeByKey(n);E.JSC$20249_watchApi.unsubscribeByKey(f)});
var x=function(){_.Z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&b_O(E,"false")};
this.JSC$20249_watchApi.getRoot().addEventListener("yt-page-data-will-update",x);this.addOnDisposeCallback(function(){E.JSC$20249_watchApi.getRoot().removeEventListener("yt-page-data-will-update",x)});
whM(this)};
_.S(_.ls0,_.QK);var whM=function(v){v.commentsReady=!1;_.wh.cancelJob(v.setCommentsJobId);v.setCommentsJobId=_.cP(_.wh,function(){m4b(v)},1E3)},m4b=function(v){if(!v.commentsReady){_.FD("cmi");
_.wh.cancelJob(v.setCommentsJobId);var E,n,f,x,y=(E=v.JSC$20249_watchApi.getWatchNextResponse())==null?void 0:(n=E.contents)==null?void 0:(f=n.twoColumnWatchNextResults)==null?void 0:(x=f.results)==null?void 0:x.results.contents;E=void 0;if(y&&y.length)for(y=_.p(y),n=y.next();!n.done;n=y.next())if(n=n.value,x=f=void 0,((f=n)==null?void 0:(x=f.itemSectionRenderer)==null?void 0:x.sectionIdentifier)==="comment-item-section"){_.Z("web_watch_provide_undefined_comments")?E=n.itemSectionRenderer:v.JSC$20249_watchApi.provideRenderingData("COMMENTS",
n.itemSectionRenderer);b_O(v,"true");break}_.Z("web_watch_provide_undefined_comments")&&v.JSC$20249_watchApi.provideRenderingData("COMMENTS",E);v.commentsReady=!0;v.JSC$20249_watchApi.dispatchEvent("yt-watch-comments-ready")}},b_O=function(v,E){var n;
(n=v.JSC$20249_watchApi.getElement("COMMENTS"))==null||n.setAttribute("canScheduleJobs",E)};_.DF=function(v){_.QK.call(this);var E=this;this.JSC$20252_watchApi=v;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Z("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Z("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Z("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.WG("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)spM(this);
else{var n=this.JSC$20252_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){h0(E);A0(E)}),f=this.JSC$20252_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VG(E);
A0(E)});
this.JSC$20252_watchApi.getRoot().is==="ytd-watch-grid"&&_.Z("swatcheroo_pbs_load_grid")&&(rHR(this),P20(this));this.addOnDisposeCallback(function(){E.JSC$20252_watchApi.unsubscribeByKey(n);E.JSC$20252_watchApi.unsubscribeByKey(f);_.wh.cancelJob(E.provideRichGridJobId)});
h0(this);VG(this)}};
_.S(_.DF,_.QK);var spM=function(v){var E=v.JSC$20252_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){v.providePlayerJobId=_.Fw(_.wh,function(){h0(v);A0(v)},v.provideAllDataDelayMs)}),n=v.JSC$20252_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v.provideWatchNextJobId=_.Fw(_.wh,function(){VG(v);
A0(v)},v.provideAllDataDelayMs)}),f=v.JSC$20252_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){v.provideWatchNextJobId=_.Fw(_.wh,function(){VG(v);
A0(v)},v.provideAllDataDelayMs)});
v.JSC$20252_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.cP(_.wh,function(){h0(v);VG(v);A0(v)},100)});
v.JSC$20252_watchApi.addPageDisposeJob(function(){_.wh.cancelJob(v.provideWatchNextJobId);_.wh.cancelJob(v.providePlayerJobId)});
v.addOnDisposeCallback(function(){v.JSC$20252_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");v.JSC$20252_watchApi.unsubscribeByKey(E);v.JSC$20252_watchApi.unsubscribeByKey(n);v.JSC$20252_watchApi.unsubscribeByKey(f);_.wh.cancelJob(v.providePlayerJobId);_.wh.cancelJob(v.provideWatchNextJobId)});
h0(v);VG(v)},h0=function(v){var E=v.JSC$20252_watchApi.getPlayerResponse(),n,f,x=(f=E==null?void 0:(n=E.playabilityStatus)==null?void 0:n.messageRenderers)!=null?f:[],y,Q;
E=(Q=E==null?void 0:(y=E.playabilityStatus)==null?void 0:y.messages)!=null?Q:[];y=_.p(E);for(Q=y.next();!Q.done;Q=y.next())x.push({alertRenderer:{text:_.qD(Q.value),type:"WARNING"}});v.JSC$20252_watchApi.provideRenderingData("ALERTS",x)},VG=function(v){var E=[],n,f,x,y=v.JSC$20252_watchApi.getWatchNextResponse(),Q,e,F,b,l=y==null?void 0:(Q=y.contents)==null?void 0:(e=Q.twoColumnWatchNextResults)==null?void 0:(F=e.results)==null?void 0:(b=F.results)==null?void 0:b.contents;
if(l)for(Q=_.p(l),e=Q.next();!e.done;e=Q.next())if(e=e.value,e.videoPrimaryInfoRenderer)var r=e;else if(e.videoSecondaryInfoRenderer){var a=e;b=F=void 0;e=Object.assign({},(F=e.videoSecondaryInfoRenderer)==null?void 0:(b=F.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(e.rows&&e.collapsedItemCount!==void 0){e.rows=e.rows.slice(0,e.collapsedItemCount).filter(function($w){return!!$w.richMetadataRowRenderer});
e.collapsedItemCount=e.rows.length;var M={metadataRowContainerRenderer:e}}}else if(e.merchandiseShelfRenderer)var U=e;else if(e.ticketShelfRenderer)var d=e;else if(e.expandableMetadataRenderer)var Y=e;else if(e.itemSectionRenderer)if(F=e.itemSectionRenderer.contents,b=void 0,v.directlyProvideComments&&((b=e.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section")_.FD("cmi"),v.JSC$20252_watchApi.provideRenderingData("COMMENTS",e.itemSectionRenderer);else if(F)for(e=_.p(F),F=
e.next();!F.done;F=e.next())if(F=F.value,F.commentsEntryPointHeaderRenderer)var V=F;else if(F.clarificationRenderer||F.infoPanelContainerRenderer||F.infoPanelContentRenderer||F.emergencyOneboxRenderer){E.push(F);var O=O||!!a}else F.limitedStateMessageRenderer?f=F:F.videoMetadataCarouselViewModel&&(x=F);if(_.Z("web_watch_merch_in_sd_when_ticket_shelf_present")&&U&&d){var T=U;U=void 0}if(v.provideWatchNextSecondaryResults){var L,xX,t;v.JSC$20252_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
y==null?void 0:(L=y.contents)==null?void 0:(xX=L.twoColumnWatchNextResults)==null?void 0:(t=xX.secondaryResults)==null?void 0:t.secondaryResults)}if(v.JSC$20252_watchApi.getRoot().is==="ytd-watch-grid"){var QE,MF;v.JSC$20252_watchApi.provideRenderingData("LIVE_CHAT",y==null?void 0:(QE=y.contents)==null?void 0:(MF=QE.twoColumnWatchNextResults)==null?void 0:MF.conversationBar)}var K1,JG,$X,HI;(L=y==null?void 0:(K1=y.contents)==null?void 0:(JG=K1.twoColumnWatchNextResults)==null?void 0:($X=JG.secondaryResults)==
null?void 0:(HI=$X.secondaryResults)==null?void 0:HI.offerModule)&&(L.donationShelfRenderer||L.donationUnavailableRenderer)&&v.JSC$20252_watchApi.getRoot().is!=="ytd-watch-grid"&&(n=L);K1=v.JSC$20252_watchApi.getPlayerResponse();if(!K1||!_.z2y(K1.playabilityStatus,y==null?void 0:y.playerOverlays)){var uE;if(y==null?0:(uE=y.contents)==null?0:uE.singleColumnWatchNextResults){var WI,bX;var n0=y==null?void 0:(WI=y.contents.singleColumnWatchNextResults.results)==null?void 0:(bX=WI.results)==null?void 0:
bX.contents}else{var qi,fl,yP,IF;uE=!!(l==null?0:(qi=l[0])==null?0:(fl=qi.itemSectionRenderer)==null?0:(yP=fl.contents)==null?0:(IF=yP[0])==null?0:IF.backgroundPromoRenderer);var QP,T3;qi=!!(y==null?0:(QP=y.contents)==null?0:(T3=QP.twoColumnWatchNextResults)==null?0:T3.secondaryResults);uE&&!qi&&(n0=l)}}l=E[0];QP=E[1];O&&E.length===1&&(QP=l,l=void 0);v.JSC$20252_watchApi.provideRenderingData("PRIMARY_INFO",r);v.JSC$20252_watchApi.provideRenderingData("SECONDARY_INFO",a);v.JSC$20252_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
V);v.JSC$20252_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",x);v.JSC$20252_watchApi.provideRenderingData("CLARIFICATION",l);v.JSC$20252_watchApi.provideRenderingData("RICH_METADATA",M);v.JSC$20252_watchApi.provideRenderingData("MERCH_SHELF",U);_.Z("web_watch_merch_in_sd_when_ticket_shelf_present")&&v.JSC$20252_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",T);v.JSC$20252_watchApi.provideRenderingData("TICKET_SHELF",d);v.JSC$20252_watchApi.provideRenderingData("LIMITED_STATE",f);v.JSC$20252_watchApi.getRoot().is!==
"ytd-watch-grid"&&v.JSC$20252_watchApi.provideRenderingData("DONATION_SHELF",n);v.JSC$20252_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",n0);v.JSC$20252_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",QP);v.JSC$20252_watchApi.provideRenderingData("EXPANDABLE_METADATA",Y);if(v.swatcherooProvideAllDataOnScheduledJob){var aK,yE,Cl,VP,JR,d1;r=y==null?void 0:(aK=y.contents)==null?void 0:(yE=aK.twoColumnWatchNextResults)==null?void 0:(Cl=yE.secondaryResults)==null?void 0:(VP=Cl.secondaryResults)==
null?void 0:(JR=VP.results)==null?void 0:(d1=JR[0])==null?void 0:d1.richGridRenderer;v.JSC$20252_watchApi.provideRenderingData("RICH_GRID_RENDERER",r)}};
_.DF.prototype.hasCompanionAds=function(v){var E,n;return(n=v==null?void 0:(E=v.adPlacements)==null?void 0:E.some(function(f){var x,y,Q,e;return(f==null?void 0:(x=f.adPlacementRenderer)==null?void 0:(y=x.renderer)==null?void 0:y.actionCompanionAdRenderer)||(f==null?void 0:(Q=f.adPlacementRenderer)==null?void 0:(e=Q.renderer)==null?void 0:e.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?n:!1};
var A0=function(v){if(!_.Z("swaterdoo_ps_wn_handle_ks")){v.swatcherooProvideAllDataOnScheduledJob||P20(v,3E3);var E=v.JSC$20252_watchApi.getPlayerResponse(),n,f,x,y,Q,e=(n=v.JSC$20252_watchApi.getWatchNextResponse())==null?void 0:(f=n.contents)==null?void 0:(x=f.twoColumnWatchNextResults)==null?void 0:(y=x.secondaryResults)==null?void 0:(Q=y.secondaryResults)==null?void 0:Q.offerModule;E=v.hasCompanionAds(E);var F,b;n=(e==null?void 0:(F=e.tvfilmOfferModuleRenderer)==null?void 0:F.clientShouldSuppressIfCompanionAdDisplayed)||
(e==null?void 0:(b=e.unlimitedOfferModuleRenderer)==null?void 0:b.suppressIfCompanionAds);F=E&&n;v.JSC$20252_watchApi.getRoot().is==="ytd-watch-grid"&&v.JSC$20252_watchApi.provideRenderingData("OFFER_MODULE",F?void 0:e)}},P20=function(v,E){_.Z("swatcheroo_pbs_load_grid")&&(v.provideRichGridJobId&&_.wh.cancelJob(v.provideRichGridJobId),v.provideRichGridJobId=_.Fw(_.wh,function(){v.provideRichGridJobId=0;
var n,f,x,y,Q,e,F,b=(n=v.JSC$20252_watchApi.getWatchNextResponse())==null?void 0:(f=n.contents)==null?void 0:(x=f.twoColumnWatchNextResults)==null?void 0:(y=x.secondaryResults)==null?void 0:(Q=y.secondaryResults)==null?void 0:(e=Q.results)==null?void 0:(F=e[0])==null?void 0:F.richGridRenderer;b&&v.JSC$20252_watchApi.provideRenderingData("RICH_GRID_RENDERER",b)},E))},rHR=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20252_watchApi.playerApi,2);E=f.yieldResult;n=function(){v.onPlaybackStart()};
E.addEventListener("onPlaybackStartExternal",n);v.addOnDisposeCallback(function(){E.removeEventListener("onPlaybackStartExternal",n)});
_.yQ(f)})};
_.DF.prototype.onPlaybackStart=function(){P20(this)};_.Z_O=function(v){_.QK.call(this);var E=this;this.JSC$20262_watchApi=v;v.playerApi.then(function(n){E.player=n});
this.gestures=new _.XI(this.JSC$20262_watchApi.getRoot(),v.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.W60(_.dG().getState())&&_.ST(_.dG().getState())<=0)if(_.Mz(_.dG().getState())){var n;(n=E.player)==null||n.toggleFullscreen()}else _.OL(E.JSC$20262_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
asb(this)};
_.S(_.Z_O,_.QK);var asb=function(v){var E=_.yC(_.dG(),_.Mz,function(n){v.gestures&&v.gestures.update(n)});
v.addOnDisposeCallback(E);E=_.yC(_.dG(),_.ST,function(n){v.gestures&&(n>0?v.gestures.detach():v.gestures.attach())});
v.addOnDisposeCallback(E)};_.MvU=function(v){_.QK.call(this);var E=this;this.JSC$20265_watchApi=v;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(v.subscribeToActiveChanged(function(n){E.onActiveChanged(n)}));
C21(this)};
_.S(_.MvU,_.QK);var SYx=function(v){if(_.Z("swatcheroo_page_dispose_all_watch_data"))v.pageDisposalDataTypes=Object.values(WYd).filter(function(n){return n!=="PLAYLIST"});
else if(_.Z("swatcheroo_page_dispose_rich_grid")){var E;(E=v.pageDisposalDataTypes)==null||E.push("RICH_GRID_RENDERER")}},C21=function(v){_.Z("swatcheroo_enable_ghost_cards")&&(SYx(v),v.JSC$20265_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.wh.cancelJob(v.clearDataJobId);
v.clearDataJobId=0}),v.runPageDisposeJob=function(){var E=_.P().resolve(_.Y_).getDestinationPageType()==="watch";
v.clearDataJobId=_.Fw(_.wh,v.runClearDataJob,E?0:_.WG("web_watch_delay_page_dispose_ms",1E4))},v.runClearDataJob=function(){U4C(v)},v.runOnYtNavigateAwayFinish=function(){v.clearDataJobId&&(_.wh.cancelJob(v.clearDataJobId),v.clearDataJobId=0,U4C(v))},document.addEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish),v.JSC$20265_watchApi.addPageDisposeJob(v.runPageDisposeJob),v.addOnDisposeCallback(function(){v.JSC$20265_watchApi.removePageDisposeJob(v.runPageDisposeJob);
v.JSC$20265_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish)}))},U4C=function(v){v.pageDisposalDataTypes.forEach(function(E){v.JSC$20265_watchApi.provideRenderingData(E,void 0)});
v.clearDataJobId=0};
_.MvU.prototype.onActiveChanged=function(v){v&&((v=document.querySelector("#watch-page-skeleton"))&&_.fT(v),qYU(this),document.body.removeAttribute("no-y-overflow"),_.Sp("IS_SHELL_LOAD")&&_.VnP())};
var qYU=function(v){_.X(function(E){if(E.nextAddress==1)return _.m(E,v.JSC$20265_watchApi.playerApi,2);_.uT();_.yQ(E)})};var JH_;JH_=_.Z("kevlar_watch_while_counterfactual")?0:.25;_.Hx=function(v){_.QK.call(this);this.JSC$20268_watchApi=v;this.JSC$20268_watchWhileEnabled=_.Z("kevlar_watch_while_v2");this.pipEnabled=_.Z("web_enable_pip_on_miniplayer");KJC(this);d4d(this);Is_(this)};
_.S(_.Hx,_.QK);var KJC=function(v){v.JSC$20268_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){YY_(v)});
v.addOnDisposeCallback(function(){v.JSC$20268_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},d4d=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20268_watchApi.playerApi,2);E=f.yieldResult;n=function(){YY_(v)};
E.addEventListener("onCollapseMiniplayer",n);v.addOnDisposeCallback(function(){E.removeEventListener("onCollapseMiniplayer",n)});
_.yQ(f)})},Is_=function(v){var E=v.JSC$20268_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&E&&v.JSC$20268_watchWhileEnabled&&(v.playerIntersectionObserver=new IntersectionObserver(function(n){v.handleIntersect(n)},{threshold:[JH_]}),v.playerIntersectionObserver.observe(E),v.addOnDisposeCallback(function(){var n;
(n=v.playerIntersectionObserver)==null||n.disconnect()}))},YY_=function(v){var E,n,f;
_.X(function(x){if(x.nextAddress==1){E=_.P().resolve(_.Y_);n=E.data;f=_.if$(n.response,n.playerResponse);_.xo().miniplayerButtonActivation=!0;if(v.pipEnabled)return _.xo().watchPipActivation=!0,x.jumpTo(2);_.P().resolve(_.hf).collapse();return _.m(x,_.xo().navigationFinishPromise,2)}if(x.nextAddress!=4)return _.xo().currentEndpoint=f.watchEndpoint||null,_.m(x,_.P().resolve(_.hf).activate(v.JSC$20268_watchApi.getElement("PLAYER"),f,n),4);_.xo().userActivation=!0;_.yQ(x)})};
_.Hx.prototype.handleIntersect=function(v){hD1(this,v[v.length-1])};
var hD1=function(v,E){v.watchWhileJobId&&_.wh.cancelJob(v.watchWhileJobId);v.watchWhileJobId=_.wh.addLowPriorityJob(function(){var n,f;return _.X(function(x){if(x.nextAddress==1)return v.watchWhileJobId=void 0,n=_.P().resolve(_.hf),E.intersectionRatio>JH_?n.isMiniplayerActive()?_.m(x,n.deactivate(),0):x.jumpTo(0):(f=!n.isMiniplayerActive())?_.m(x,AHU(v),5):x.jumpTo(4);x.nextAddress!=4&&(f=x.yieldResult);if(!f)return x.jumpTo(0);_.xo().watchWhileActivation=!0;return _.m(x,Vv0(v),0)})},100)},AHU=function(v){return _.X(function(E){return E.nextAddress==
1?_.Z("kevlar_watch_while_paused")?E.return(!0):_.m(E,v.isPlayerPlaying(),2):E.return(E.yieldResult)})};
_.Hx.prototype.isPlayerPlaying=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20268_watchApi.playerApi,2);E=n.yieldResult;return n.return(E.getPlayerStateObject().isPlaying)})};
var Vv0=function(v){var E,n;return _.X(function(f){E=_.P().resolve(_.Y_).data;n=_.if$(E.response,E.playerResponse);_.xo().currentEndpoint=n.watchEndpoint||null;return _.m(f,_.P().resolve(_.hf).activate(v.JSC$20268_watchApi.getElement("PLAYER"),n,E),0)})};_.gAP=function(v){_.QK.call(this);this.JSC$20272_watchApi=v;D4R(this);H_M(this)};
_.S(_.gAP,_.QK);var H_M=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20272_watchApi.playerApi,2);E=f.yieldResult;n=function(x){var y;x.sessionData&&x.sessionData.itct&&(y=x.sessionData.itct);var Q=x.watchEndpoint;if(Q&&x.sessionData&&x.sessionData.autonav)Q=_.y91(Q,y);else{var e;Q=_.DI(x.videoId,(e=x.listId)!=null?e:void 0,y)}y={endpoint:Q};x.sessionData&&(y.tempData=x.sessionData);v.JSC$20272_watchApi.dispatchEvent("yt-navigate",y)};
E.addEventListener("onPlayVideo",n);v.addOnDisposeCallback(function(){E.removeEventListener("onPlayVideo",n)});
_.yQ(f)})},D4R=function(v){var E=function(n){v.onYtNavigate(n)};
v.JSC$20272_watchApi.getRoot().addEventListener("yt-navigate",E);v.addOnDisposeCallback(function(){v.JSC$20272_watchApi.getRoot().removeEventListener("yt-navigate",E)})};
_.gAP.prototype.onYtNavigate=function(v){var E=this,n,f,x,y,Q,e,F,b,l;return _.X(function(r){if(r.nextAddress==1){if(!((n=v.detail)==null?0:(f=n.endpoint)==null?0:f.watchEndpoint))return r.return();x=v.detail.endpoint.watchEndpoint;y=E.JSC$20272_watchApi.getWatchNextResponse();e=_.C((Q=y)==null?void 0:Q.currentVideoEndpoint,_.dM);if(!e)return r.return();if(x.videoId!==e.videoId||x.playlistId&&x.playlistId!==e.playlistId||typeof x.startTimeSeconds!=="number")return r.jumpTo(0);v.stopPropagation();
(F=_.Z("kevlar_watch_while_v2")&&!_.Z("kevlar_watch_while_counterfactual"))&&_.P().resolve(_.hf).isMiniplayerActive()||E.JSC$20272_watchApi.scrollWatchTo(0,!0);return _.m(r,E.JSC$20272_watchApi.playerApi,3)}b=r.yieldResult;l=x.startTimeSeconds;b.seekTo(l,void 0,void 0,void 0,84);b.wakeUpControls();l<b.getDuration()&&b.playVideo();_.yQ(r)})};_.uR_=function(v){_.QK.call(this);var E=this;this.JSC$20275_watchApi=v;var n=this.JSC$20275_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NcK(E)});
this.addOnDisposeCallback(function(){E.JSC$20275_watchApi.unsubscribeByKey(n)});
NcK(this)};
_.S(_.uR_,_.QK);var NcK=function(v){var E=v.JSC$20275_watchApi.getWatchNextResponse();if(E){var n,f=[].concat(_.s8((n=E==null?void 0:E.engagementPanels)!=null?n:[]));f.unshift.apply(f,_.s8(jpR(E)));v.JSC$20275_watchApi.provideRenderingData("ENGAGEMENT_PANELS",f)}},O__=function(){var v;
return(v=_.SC(window.location.href,"list"))==null?void 0:v.startsWith("LJ")},kOP=function(v){var E,n,f,x=(E=v.engagementPanels)==null?void 0:(n=E.find(function(M){var U;
return((U=M.engagementPanelSectionListRenderer)==null?void 0:U.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(f=n.engagementPanelSectionListRenderer.content)==null?void 0:f.structuredDescriptionContentRenderer,y;
if(_.C(x==null?void 0:(y=x.items)==null?void 0:y.find(function(M){return!!_.C(M,Cux)}),Cux))return!0;
var Q,e,F,b;if(v=(((Q=v.contents)==null?void 0:(e=Q.twoColumnWatchNextResults)==null?void 0:(F=e.results)==null?void 0:(b=F.results)==null?void 0:b.contents)||[]).find(function(M){return M.videoPrimaryInfoRenderer})){var l,r,a;
return(((l=v.videoPrimaryInfoRenderer)==null?void 0:(r=l.videoActions)==null?void 0:(a=r.menuRenderer)==null?void 0:a.flexibleItems)||[]).some(function(M){M=_.C(M,_.Kw1);if(!M)return!1;var U,d;M=(U=M.topLevelButton)==null?void 0:(d=U.buttonViewModel)==null?void 0:d.onTap;if(!M)return!1;U=_.F$(M);if(!U)return!1;var Y;return((Y=_.C(U,_.Uy))==null?void 0:Y.panelIdentifier)==="PAyouchat"})}return!1},jpR=function(v){var E=[];
if(!_.Z("web_watch_inject_placeholder_fantasy_panel_killswitch")){var n,f,x,y=(n=v.engagementPanels)==null?void 0:(f=n.find(function(e){var F;return((F=e.engagementPanelSectionListRenderer)==null?void 0:F.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(x=f.engagementPanelSectionListRenderer.content)==null?void 0:x.structuredDescriptionContentRenderer,Q;
_.C(y==null?void 0:(Q=y.items)==null?void 0:Q.find(function(e){return!!_.C(e,BS1)}),BS1)&&(n=_.Bj("PAsports_fantasy"),n.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(n))}kOP(v)&&(v=_.Bj("PAyouchat"),v.engagementPanelSectionListRenderer.targetId="PAyouchat",v.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(v));
O__()&&(v=_.Bj("PAlearning_chat"),v.engagementPanelSectionListRenderer.targetId="PAlearning_chat",v.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(v));return E};_.$4P=function(v){_.QK.call(this);this.JSC$20278_watchApi=v;WJU(this)};
_.S(_.$4P,_.QK);var WJU=function(v){v.JSC$20278_watchApi.registerActionHandler("yt-loop-command",function(E){LJK(v,E)});
v.JSC$20278_watchApi.registerActionHandler("yt-repeat-chapter-command",function(E){GO3(v,E)});
v.addOnDisposeCallback(function(){v.JSC$20278_watchApi.unregisterActionHandler("yt-loop-command");v.JSC$20278_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},LJK=function(v,E){var n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20278_watchApi.playerApi,2);n=f.yieldResult;_.C(E,Eu0).loop?(n.setLoopRange({startTimeMs:Number(_.C(E,Eu0).startTimeMs),endTimeMs:Number(_.C(E,Eu0).endTimeMs),postId:_.C(E,Eu0).postId,type:"clips"}),n.playVideo()):n.setLoopRange(null);_.yQ(f)})},GO3=function(v,E){var n,f;
_.X(function(x){if(x.nextAddress==1)return _.m(x,v.JSC$20278_watchApi.playerApi,2);n=x.yieldResult;f=_.C(E,cN3).repeat;f==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(n.setLoopRange({startTimeMs:Number(_.C(E,cN3).startTimeMs),endTimeMs:Number(_.C(E,cN3).endTimeMs),type:"repeatChapter"}),n.playVideo()):f==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&n.setLoopRange(null);_.yQ(x)})};_.i_3=function(v){_.QK.call(this);this.JSC$20283_watchApi=v;TcR(this)};
_.S(_.i_3,_.QK);var TcR=function(v){v.JSC$20283_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(E){zDb(v,E)});
v.addOnDisposeCallback(function(){v.JSC$20283_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},zDb=function(v,E){var n,f,x,y,Q,e,F,b,l,r,a;
_.X(function(M){if(M.nextAddress==1)return _.m(M,v.JSC$20283_watchApi.playerApi,2);n=M.yieldResult;if(y=(x=(f=_.C(E,yNM))==null?void 0:f.highlightedMenuItemKey)!=null?x:"")(e=(Q=n).highlightSettingsMenuItem)==null||e.call(Q,y);if(l=(b=(F=_.C(E,yNM))==null?void 0:F.openMenuItemKey)!=null?b:"")(a=(r=n).openSettingsMenuItem)==null||a.call(r,l);_.yQ(M)})};var RD6=_.$s("/youtube/app/watch/player_state","playerStateEntity");_.Bc1=function(v){_.QK.call(this);this.JSC$20286_watchApi=v;tvR(this)};
_.S(_.Bc1,_.QK);var vkx=function(v){switch(v){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"}},tvR=function(v){var E,n;
_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20286_watchApi.playerApi,2);E=f.yieldResult;n=function(x){v.onPlayerStateChange(x)};
E.addEventListener("onStateChange",n);v.addOnDisposeCallback(function(){E.removeEventListener("onStateChange",n)});
_.yQ(f)})};
_.Bc1.prototype.onPlayerStateChange=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,E.JSC$20286_watchApi.playerApi,2);n=x.yieldResult;f=n.getVideoData().video_id;_.Zj().dispatch(_.n7("playerStateEntity",RD6,{key:RD6,playerState:vkx(v),videoId:f}));_.yQ(x)})};_.Ek0=function(v){_.QK.call(this);var E=this;this.JSC$20290_watchApi=v;_.P().resolve(_.SY).setPlayer(this.JSC$20290_watchApi.getElement("PLAYER"));v=this.JSC$20290_watchApi.subscribeToActiveChanged(function(n){E.onActiveChanged(n)});
this.addOnDisposeCallback(v)};
_.S(_.Ek0,_.QK);_.Ek0.prototype.onActiveChanged=function(v){var E=this,n=_.P().resolve(_.SY),f=function(){nk_(E)};
v?(v=this.JSC$20290_watchApi.getElement("PLAYLIST_PANEL"))?(n.setPlaylistComponent(v),n.addEventListener("yt-playlist-data-updated",f),this.addOnDisposeCallback(function(){n.removeEventListener("yt-playlist-data-updated",f)}),nk_(this)):_.Kk(Error("im")):(n.removeEventListener("yt-playlist-data-updated",f),n.cancelVideoSkip())};
var nk_=function(v){var E=_.P().resolve(_.SY);v.JSC$20290_watchApi.provideRenderingData("PLAYLIST",E.getPlaylistData())};_.gX=function(v){_.QK.call(this);var E=this;this.JSC$20293_watchApi=v;this.onPageScroll=function(){E.scrollThrottle.fire();E.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.ka(this.onThrottledScroll,200,this);_.BV(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.ka(this.onMastheadThrottledScroll,50,this);_.BV(this,this.mastheadScrollThrottle);this.animation=new _.Pd(function(n){E.JSC$20293_watchApi.getRoot().setScrollTop(n)});
v=_.yC(_.dG(),_.Mz,function(){okp(E)});
this.addOnDisposeCallback(v);f9R(this);xz_(this);this.onThrottledScroll()};
_.S(_.gX,_.QK);
var okp=function(v){var E=v.JSC$20293_watchApi.getRoot();!v.pageScrollElement&&E.pageScrollElement?(v.pageScrollElement=E.pageScrollElement,E.pageScrollElement.addEventListener("scroll",v.onPageScroll),v.addOnDisposeCallback(function(){v.pageScrollElement&&v.pageScrollElement.removeEventListener("scroll",v.onPageScroll)})):v.pageScrollElement&&!E.pageScrollElement&&(v.pageScrollElement.removeEventListener("scroll",v.onPageScroll),v.pageScrollElement=void 0)},f9R=function(v){window.addEventListener("scroll",v.onPageScroll);
v.addOnDisposeCallback(function(){window.removeEventListener("scroll",v.onPageScroll)})},xz_=function(v){v.JSC$20293_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(E){a:{var n;
if(n=v.JSC$20293_watchApi.getRoot().contains(E)&&!v.animation.isAnimating()){n=E.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var f,x,y=(E==null?void 0:(f=E.parentElement)==null?void 0:(x=f.parentElement)==null?void 0:x.id)==="fixed-secondary";n=!(n&&y)}if(n){if(_.Z("kevlar_watch_scroll_manager_absolute_offset_killswitch"))f=E.offsetTop;else for(f=0,x=E;x!==null;)f+=x.offsetTop,f-=x.scrollTop,x=x.offsetParent;x=f;f=x-24;E=x+E.offsetHeight+24;x=v.JSC$20293_watchApi.getRoot().getPageScrollingElement();
n=v.JSC$20293_watchApi.getRoot().getScrollTop();y=n+x.clientHeight-56;if(f<n+56)E=f-56;else if(E>y)E-=x.clientHeight;else break a;v.scrollWatchTo(Math.max(0,E),!0)}}});
v.addOnDisposeCallback(function(){v.JSC$20293_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.gX.prototype.onThrottledScroll=function(){var v=_.dG(),E=v.dispatch,n=this.JSC$20293_watchApi.getRoot().getScrollTop();E.call(v,_.un({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:n}}))};
_.gX.prototype.onMastheadThrottledScroll=function(){this.JSC$20293_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20293_watchApi.getRoot().getScrollTop())};
_.gX.prototype.scrollWatchTo=function(v,E){(E===void 0?0:E)?this.animation.start(this.JSC$20293_watchApi.getRoot().getScrollTop(),Math.max(0,v),500):this.JSC$20293_watchApi.getRoot().setScrollTop(v)};_.p3K=function(v){_.QK.call(this);var E=this;this.JSC$20296_watchApi=v;var n=this.JSC$20296_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cnp(E)}),f=this.JSC$20296_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yn_(E)});
this.addOnDisposeCallback(function(){E.JSC$20296_watchApi.unsubscribeByKey(n);E.JSC$20296_watchApi.unsubscribeByKey(f)});
cnp(this);yn_(this)};
_.S(_.p3K,_.QK);
var cnp=function(v){var E,n,f,x=(f=(E=v.JSC$20296_watchApi.getPlayerResponse())==null?void 0:(n=E.videoDetails)==null?void 0:n.title)!=null?f:"";v.JSC$20296_watchApi.dispatchEvent("yt-update-title",x)},yn_=function(v){var E,n,f,x,y,Q,e,F=(e=((Q=(E=v.JSC$20296_watchApi.getWatchNextResponse())==null?void 0:(n=E.contents)==null?void 0:(f=n.twoColumnWatchNextResults)==null?void 0:(x=f.results)==null?void 0:(y=x.results)==null?void 0:y.contents)!=null?Q:[]).find(function(b){return!!b.videoPrimaryInfoRenderer}))==null?
void 0:e.videoPrimaryInfoRenderer;
(E=_.JC(F==null?void 0:F.title))&&v.JSC$20296_watchApi.dispatchEvent("yt-update-title",E)};_.X3U=function(v){_.QK.call(this);this.JSC$20299_watchApi=v;QLR(this)};
_.S(_.X3U,_.QK);var QLR=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$20299_watchApi.playerApi,2);E=f.yieldResult;n=function(){v.onYpcContentRequest()};
E.addEventListener("onYpcContentRequest",n);v.addOnDisposeCallback(function(){E.removeEventListener("onYpcContentRequest",n)});
_.yQ(f)})};
_.X3U.prototype.onYpcContentRequest=function(){var v,E,n,f,x,y=(v=this.JSC$20299_watchApi.getWatchNextResponse())==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.secondaryResults)==null?void 0:(x=f.secondaryResults)==null?void 0:x.offerModule,Q,e,F,b;v=(b=(F=(e=(Q=y==null?void 0:y.episodeOfferModuleRenderer)!=null?Q:y==null?void 0:y.movieOfferModuleRenderer)!=null?e:y==null?void 0:y.unlimitedOfferModuleRenderer)!=null?F:y==null?void 0:y.liveOfferModuleRenderer)!=
null?b:y==null?void 0:y.tvfilmOfferModuleRenderer;var l,r,a;y=(a=y==null?void 0:(l=y.tvfilmOfferModuleRenderer)==null?void 0:(r=l.actionButtons)==null?void 0:r.length)!=null?a:0;r=Math.max(y-1,0);var M,U,d;l=(d=v==null?void 0:(M=v.offerButton)==null?void 0:M.buttonRenderer)!=null?d:v==null?void 0:(U=v.actionButtons)==null?void 0:U[r].buttonRenderer;var Y,V;(M=(V=(Y=l==null?void 0:l.navigationEndpoint)!=null?Y:l==null?void 0:l.serviceEndpoint)!=null?V:l==null?void 0:l.command)&&_.ki.instance.resolveCommand(M)};
}catch(e){_._DumpException(e)}
try{
var Td6,$pC,kT3;_.Wxd=function(){var v=_.sh.clone(OE_),E;return(new _.z2(function(n,f){v.onSuccess=function(x){_.$OI(x)?n(new kT3(x)):f(new _.DW("Request failed, status="+_.Ga(x),"net.badstatus",x))};
v.onError=function(x){f(new _.DW("Unknown request error","net.unknown",x))};
v.onTimeout=function(x){f(new _.DW("Request timed out","net.timeout",x))};
E=_.tM("//googleads.g.doubleclick.net/pagead/id",v)})).thenCatch(function(n){if(n instanceof _.Hj){var f;
(f=E)==null||f.abort()}return _.nR(n)})};
_.LxP=function(v){a:{var E="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(E="EMBEDDED_PLAYER_MODE_PFL");var n=v.raw_embedded_player_response;if(!n&&(v=v.embedded_player_response))try{n=JSON.parse(v)}catch(x){break a}if(n)b:for(var f in $pC)if($pC[f]==n.embeddedPlayerMode){E=$pC[f];break b}}return E==="EMBEDDED_PLAYER_MODE_PFL"};
_.GTU=function(){if(_.Z("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.l6$())return Error("pf");var v=_.MX("PLAYER_VARS",{});if(_.sh.get(v,"privembed",!1)=="1")return Error("qf");if(_.LxP(v))return Error("rf")};
Td6=function(v){switch(v){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:_.p0(v,"unknown result type")}};
_.iEO=function(v,E,n){E=_.bKI[E];n={detected:v===0,source:E.nC5,detectionResult:Td6(v),contentCpn:n};_.eQ("biscottiBasedDetection",n);_.zO1.increment(E.nC5,v);E.nKq!==void 0&&_.Ck("CATSTAT",_.m3Q(v,E))};
_.Hc=function(v,E){var n={};n.key=v;n.value=E;return _.kvy().then(function(f){return new Promise(function(x,y){try{var Q=f.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(n);Q.onsuccess=function(){x()};
Q.onerror=function(){y()}}catch(e){y(e)}})})};
_.R56=function(){var v=_.WG("user_engagement_experiments_rate_limit_ms"),E=z5p.get("last-user-engagement-exp-trigger-timestamp");return!E||(0,_.gd)()>=E+v?(z5p.set("last-user-engagement-exp-trigger-timestamp",(0,_.gd)()),!0):!1};
_.gf=function(v,E,n,f,x){E=E===void 0?null:E;n=n===void 0?null:n;f=f===void 0?null:f;x=x===void 0?null:x;v={youThereEventType:v};n&&(v.lactThresholdMs=n.lactThresholdMs,v.mediaPosSec=n.promptDelaySec,v.lactServerRequestMs=n.lactServerRequestMs,v.triggerReason=n.triggerReason);x!=null&&(v.renderingMediaPosSec=Math.round(x));E||(E=_.lc());E&&(v.clientScreenNonce=E);f&&(v.clientPlaybackNonce=f);_.eQ("youThere",v)};
$pC={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"};kT3=function(v){this.xhr=v};
_.DW=function(v,E,n){_.vI.call(this,v+", errorCode="+E);this.errorCode=E;this.xhr=n;this.name="PromiseAjaxError"};
_.S(_.DW,_.vI);var OE_={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var z5p=new _.P7("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.qhU=function(v){return _.un({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:v})};
}catch(e){_._DumpException(e)}
try{
var Ou,Zu0,CD_,MTC,Sid,JnU,Hu3,gkK,Ns3,UzC,qiC,Yi6,I9p,Ou_;_.a9_=function(){var v=window.location.hash;v.charAt(0)==="#"&&(v=v.charAt(1)==="!"?v.substring(2):v.substring(1));return _.Y6(v)};
Ou=function(v,E,n){var f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,E(),2);f=x.yieldResult;n(f,v);_.yQ(x)})};
Zu0=function(){return _.X(function(v){return v.nextAddress==1?_.m(v,(_.GTU()!==void 0?_.nR(Error("sf")):_.Wxd()).then(function(){return 1},function(E){if(E.message==="Biscotti id is disabled")return 3;
_.li("Failed fetching bid");return 0}),2):v.return(v.yieldResult)})};
CD_=function(){return _.EMy(_.hh)};
MTC=function(){return _.nMQ()===0?0:_.oMN()};
Sid=function(){return _.GUA(_.MVN([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
JnU=function(){for(var v=function(x){return _.CQ$(x)},E=[UzC,
qiC],n=2,f=0;f<E.length&&(n=_.GUA(_.MVN(E[f],v)),n!==0);f++);return n};
_.KF_=function(v){_.X(function(E){switch(E.nextAddress){case 1:return _.m(E,Ou("b.f_",Zu0,v),2);case 2:return _.m(E,Ou("j.s_",_.$2G,v),3);case 3:return _.m(E,Ou("r.s_",_.OtF,v),4);case 4:return _.m(E,Ou("e.h_",JnU,v),5);case 5:if(!_.Z("ab_det_sc_inj")){E.jumpTo(6);break}return _.m(E,Ou("s.i_",_.BmE,v),6);case 6:if(_.Z("ab_deg_unex_thr")){E.jumpTo(8);break}return _.m(E,Ou("a.o_",_.RbE,v),8);case 8:if(_.Z("ks_get_o_pp")){E.jumpTo(10);break}return _.m(E,Ou("g.o_",_.zbL,v),10);case 10:if(_.Z("ks_det_gpbl")){E.jumpTo(12);
break}return _.m(E,Ou("p.i_",_.itE,v),12);case 12:return _.m(E,Ou("f.i_",_.IQA,v),14);case 14:return _.m(E,Ou("a.b_",_.ugy,v),15);case 15:return _.m(E,Ou("p.m_",_.A1A,v),16);case 16:if(!_.Z("ab_det_el_h_v2")){E.jumpTo(17);break}return _.m(E,Ou("n.h_",Sid,v),17);case 17:return _.m(E,Ou("o.p_",CD_,v),19);case 19:if(_.Z("ab_det_apm"))return _.m(E,Ou("o.a_",MTC,v),0);E.jumpTo(0)}})};
_.dzR=function(v,E){v={videoId:v};E&&(v.playlistId=E);return v};
_.hIC=function(){if(_.l6$()){var v=_.MX("PLAYER_VARS",{});if(_.sh.get(v,"privembed",!1)!="1"&&!_.LxP(v)){var E=function(){I9p=!0;"google_ad_status"in window?_.Ck("DCLKSTAT",1):_.Ck("DCLKSTAT",2)};
try{_.CG("//static.doubleclick.net/instream/ad_status.js",E)}catch(n){}Yi6.push(_.wh.addLowPriorityJob(function(){if(!(I9p||"google_ad_status"in window)){try{_.plF("//static.doubleclick.net/instream/ad_status.js",E)}catch(n){}I9p=!0;_.Ck("DCLKSTAT",3)}},5E3))}}};
_.An6=function(v,E){v=v.width-_.Iq6();return Math.max(_.H3,Math.min(_.UcR,_.H3+(v-(_.D9+_.H3+_.An+2*_.An+E))))};
_.kG=function(v,E,n){n=n===void 0?!1:n;var f=Math.max(v.width,_.Svb);if(_.Z("kevlar_watch_feed_big_thumbs")&&v.width>=1550-_.s9()&&v.height>=800)f-=_.dc0;else if(v.width>=_.Vi){var x=_.D9+_.H3+_.An;_.Z("kevlar_watch_feed_big_thumbs")&&(x=_.KTP);f-=x}else f-=_.D9;f=Math.min(f,_.qvO);x=240;n&&(x=380);E<.5624||(!_.Z("kevlar_watch_flexy_disable_small_window_sizing")&&(v.height<630&&v.width>=657||v.height>=630&&v.width>=_.Vi&&v.width<1327)?x=360:!_.Z("kevlar_watch_flexy_disable_large_window_sizing")&&
v.height>=630&&v.width>=1327&&(x=480));var y=Math.min(f*E,v.height-(56+_.MXU+_.JNC));y=Math.max(y,x);E<1?f=y/E:v.width>=_.Vi&&(f=_.kG(v,.5625,n).width);return new _.fs(Math.round(f),Math.round(y))};
_.VTO=function(v){var E=0;v.indexOf("h")!=-1&&(v=v.split("h"),E=v[0]*60*60,v=v[1]);v.indexOf("m")!=-1&&(v=v.split("m"),E=v[0]*60+E,v=v[1]);v.indexOf("s")!=-1?(v=v.split("s"),E=v[0]*1+E):E=v*1+E;return E};
_.Dz1=function(){_.WG("service_worker_push_logged_out_prompt_watches")!=-1&&_.NV("WatchCount").then(function(v){v>=100||_.Hc("WatchCount",v+1)})};
Hu3=function(v){var E=v.externalVideoId||"";return E?(_.Z("webfe_watch_shorts_canonical_url_fix")||_.MX("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&v.isShortsEligible?"https://www.youtube.com/shorts/"+E:"https://www.youtube.com/watch?v="+E:""};
gkK=function(v){var E=[];v.viewCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:v.viewCount});v.likeCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:v.likeCount});return E};
Ns3=function(v){var E,n,f={"@context":"https://schema.org","@type":"VideoObject",description:_.JC(v.description),duration:"PT"+(v.lengthSeconds||"0")+"S",embedUrl:v.embed?v.embed.iframeUrl:"",name:_.JC(v.title),thumbnailUrl:((E=v.thumbnail)==null?void 0:(n=E.thumbnails)==null?void 0:n.map(function(l){return l&&l.url||""}))||[],
uploadDate:v.publishDate};_.Z("mweb_video_schema_id_killswitch")||(f["@id"]=Hu3(v));E=gkK(v);E.length&&(f.interactionStatistic=E);v.category&&(f.genre=v.category);v.ownerChannelName&&(f.author=v.ownerChannelName);v.liveBroadcastDetails&&(f.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:v.liveBroadcastDetails.startTimestamp,endDate:v.liveBroadcastDetails.endTimestamp}]);if(v.learningResource){v=v.learningResource;f["@type"]=["VideoObject","LearningResource"];var x;if((x=v.learningResourceType)==
null?0:x.length)f.learningResourceType=v.learningResourceType[0];var y;if((y=v.educationalAlignment)==null?0:y.length)f.educationalAlignment={"@type":"AlignmentObject",targetName:v.educationalAlignment[0]};var Q;if((Q=v.educationalLevel)==null?0:Q.length){x=v.educationalLevel[0];var e;if((e=v.educationalLevelCountry)==null?0:e.length)x+=" ("+v.educationalLevelCountry+")";f.educationalLevel=x}var F,b;if(((F=v.learningResourceType)==null?0:F.length)&&v.learningResourceType[0]==="Problem walkthrough"&&
((b=v.problemDescriptions)==null?0:b.length))for(f.hasPart=[],e=_.p(v.problemDescriptions),F=e.next();!F.done;F=e.next())x=F.value,F=x.problemDescriptionText,b=x.startOffset,x=x.url,F&&b!==void 0&&x&&f.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:F,text:F,startOffset:b,url:x})}return f};
_.u9M=function(v){return _.un({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:v}})};
UzC=[["I2dubGE0dTdzNXM2bHByaW1hcnk=",null],[null,["IzZnaW92OWZtbTJhM3l0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVy","IzR0cXk1enlybWYyZHN0eWxlLXNjb3Bl"]],["Izk5dXdsdHV6dHFmZ21hc3RoZWFkLWFk",["IzM4djJpcDJ1Y2M2cHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="]],[null,["ciNxOWplbHhrOTh6bXl0ZC1yaWNoLWdyaWQtcmVuZGVyZQ==","Izg2dGR2dDE3dW5vY3N0eWxlLXNjb3Bl"]],[null,["I3l5NWxmbngxbXdzMnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXI=","I2NsZGhkd3Y2N2J5MXN0eWxlLXNjb3Bl"]],[null,["I2g2cGJ5aWR4emljNHl0ZC1hZC1zbG90LXJlbmRlcmVy"]]];
qiC=[["I2gwbmliMnYyMmg3eXBsYXllci1hZHM=",null]];Yi6=[];I9p=!1;_.jL6=["engagement-panel-ads"];Ou_=new _.z("updateSentimentBarStateCommand");_.kfx=new _.z("showSurveyCommand");_.Wx=new _.z("changeMarkersVisibilityCommand");var $zp,LFP,zIP,iu3,Ts0,$G;_.WFU=function(v,E){this.playerProvider_=v;this.actionSenderElement_=E;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.WFU.prototype.reset=function(){$zp(this);this.isUserPredictedAbsent_=!1};
$zp=function(v,E){!v.youThereData_||v.showWarningJob_||E!==void 0&&E||(_.gf("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.lc(),v.youThereData_,v.clientPlaybackNonce_),_.Fu());_.wh.cancelJob(v.showWarningJob_);v.showWarningJob_=0;_.wh.cancelJob(v.showBlockingWarningJob_);v.showBlockingWarningJob_=0;_.wh.cancelJob(v.pausePlaybackJob_);v.pausePlaybackJob_=0;v.youThereData_=null;v.clientPlaybackNonce_=void 0;v.inYouThereFlow_=!1};
_.GfM=function(v,E){var n,f,x;_.X(function(y){if(y.nextAddress==1)return v.reset(),_.m(y,v.playerProvider_().getPlayerPromise(),2);n=y.yieldResult;v.clientPlaybackNonce_=n.getVideoData().cpn;v.youThereData_=E.configData.youThereData;if(!v.youThereData_)return y.return();if(v.youThereData_.triggerReason&&v.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.R56())return _.gf("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.lc(),v.youThereData_,v.clientPlaybackNonce_),y.return();f=v.youThereData_.promptDelaySec;
x=n.getCurrentTime();v.showWarningJob_=_.wh.addLowPriorityJob(function(){return _.X(function(Q){v.showWarningJob_=0;return _.m(Q,LFP(v),0)})},Math.max(f-x,0)*1E3);
_.yQ(y)})};
LFP=function(v){var E,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return _.m(e,v.playerProvider_().getPlayerPromise(),2);if(e.nextAddress!=3)return E=e.yieldResult,n=E.getCurrentTime(),_.m(e,Ts0(v),3);f=e.yieldResult;if(!f||!v.youThereData_)return e.return();if(_.Z("check_user_lact_at_prompt_shown_time_on_web")&&(x=parseInt(v.youThereData_.lactThresholdMs,10),_.gh()<x))return _.gf("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.lc(),v.youThereData_,v.clientPlaybackNonce_),e.return();if(v.youThereData_.playbackPauseDelayMs<=
0)return iu3(v),e.return();!_.Z("external_fullscreen")&&(y=_.Hq())&&(v.ignoreFullscreenExitUserActivity_=!0,_.wh.addLowPriorityJob(function(){v.ignoreFullscreenExitUserActivity_=!1},2E3),_.gM(y));
v.youThereData_.showToastWarningPrompt&&($G(v,v.youThereData_.showWarningActions),v.inYouThereFlow_=!0,_.gf("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.lc(),v.youThereData_,v.clientPlaybackNonce_,n),_.gf("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.lc(),v.youThereData_,v.clientPlaybackNonce_,n));Q=0;v.youThereData_.blockingPromptDelayMs&&(Q=v.youThereData_.blockingPromptDelayMs);v.showBlockingWarningJob_=_.wh.addLowPriorityJob(function(){return _.X(function(F){v.showBlockingWarningJob_=0;return _.m(F,
zIP(v),0)})},Q);
_.yQ(e)})};
zIP=function(v){var E,n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,Ts0(v),2);E=x.yieldResult;if(!v.youThereData_)return x.return();E&&(v.youThereData_.showBlockingWarningAction&&(_.gf("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.lc(),v.youThereData_,v.clientPlaybackNonce_),(n=_.C(v.youThereData_.showBlockingWarningAction,_.Tn))?$G(v,n.commands):$G(v,[v.youThereData_.showBlockingWarningAction]),v.inYouThereFlow_=!0),f=v.youThereData_.playbackPauseDelayMs,v.pausePlaybackJob_=
_.wh.addLowPriorityJob(function(){return _.X(function(y){v.pausePlaybackJob_=0;return _.m(y,iu3(v),0)})},f));
_.yQ(x)})};
iu3=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,Ts0(v),2);E=n.yieldResult;if(!v.youThereData_)return n.return();E&&(_.gf("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.lc(),v.youThereData_,v.clientPlaybackNonce_),$G(v,v.youThereData_.showPausedActions),v.inYouThereFlow_=!0);_.yQ(n)})};
_.WFU.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var v=_.C(this.youThereData_.userActiveDuringFlowAction,_.Tn);v?$G(this,v.commands):$G(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.gf("YOU_THERE_EVENT_TYPE_LACT_RESET",_.lc(),this.youThereData_,this.clientPlaybackNonce_),_.Fu());$zp(this,!0)}_.RIK(this,!1)};
_.tTx=function(v){_.gf("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.lc(),v.youThereData_,v.clientPlaybackNonce_)};
Ts0=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.playerProvider_().getPlayerPromise(),2);E=f.yieldResult;n=E.getPlayerState();return f.return(n==-1||n==1||n==3)})};
_.RIK=function(v,E){var n;_.X(function(f){if(f.nextAddress==1){if(v.isUserPredictedAbsent_==E)return f.jumpTo(0);v.isUserPredictedAbsent_=E;return _.m(f,v.playerProvider_().getPlayerPromise(),3)}n=f.yieldResult;n.setUserEngagement(E);E&&_.gf("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.lc(),v.youThereData_,v.clientPlaybackNonce_);_.yQ(f)})};
$G=function(v,E){if(_.Z("handle_service_request_actions")||_.Z("kevlar_youthere_service_endpoint_actions_killswitch"))_.LG(v.actionSenderElement_,E,v.actionSenderElement_);else{E=_.p(E);for(var n=E.next();!n.done;n=E.next())n=n.value,n.commandMetadata&&n.commandMetadata.webCommandMetadata&&n.commandMetadata.webCommandMetadata.sendPost?_.$Z(v.actionSenderElement_,[n]):_.LG(v.actionSenderElement_,[n],v.actionSenderElement_)}};var Bs0;var vN0;var LD=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return v};
_.S(LD,_.g);LD.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var v=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(v=this.data.percentIfLiked||0,this.activated=!0):(v=this.data.percentIfIndifferent||0,this.activated=!1);_.K(this.hostElement).querySelector("#like-bar").style.width=v+"%"}};
LD.prototype.handleUpdateSentimentBarStateCommand=function(v){this.data&&this.set("data.likeStatus",_.C(v,Ou_).likeStatus)};
LD.prototype.observeLikeStatus=LD.prototype.observeLikeStatus;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],LD.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],LD.prototype,"activated",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],LD.prototype,"systemIcons",void 0);_.k([_.On("data.likeStatus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LD.prototype,"observeLikeStatus",null);LD=_.k([_.N({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],LD);
_.u(LD,"ytd-sentiment-bar-renderer",function(){if(vN0!==void 0)return vN0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vN0=v},{mode:1});var ENC;var Gp=function(){var v=_.g.apply(this,arguments)||this;v.small=!0;return v};
_.S(Gp,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Gp.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Gp.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Gp.prototype,"small",void 0);Gp=_.k([_.N({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Gp);
_.u(Gp,"ytd-video-view-count-renderer",function(){if(ENC!==void 0)return ENC;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ENC=v},{mode:_.HE("kevlar_poly_si_batch_j080")?1:2});var Tp=function(){var v=_.g.apply(this,arguments)||this;v.infoFormattedStrings=[];v.wrapVideoActions=_.Z("kevar_watch_wrap_video_actions");v.hideSentimentBar=_.Z("kevlar_watch_hide_sentiment_bar");v.actionMap={};return v};
_.S(Tp,_.g);_.c=Tp.prototype;_.c.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Z("web_modern_buttons"),forceIconButton:!_.Z("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.c.dataChanged=function(){_.Z("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.c.computeInfoFormattedStrings=function(v){if(!v)return[];var E=[];v.dateText&&E.push(v.dateText);v.stationName&&E.push(v.stationName);v.rating&&E.push(v.rating);v.startEndTimeTemplate&&v.startTimeUtcMillis&&v.endTimeUtcMillis&&E.push(_.qD(_.kLO(_.JC(v.startEndTimeTemplate),Number(v.startTimeUtcMillis),Number(v.endTimeUtcMillis))));v.upNextProgramText&&E.push(v.upNextProgramText);return E};
_.c.scheduleInitialUpdatedMetadataRequest=function(){var v,E=(v=this.data)==null?void 0:v.updatedMetadataEndpoint;if(E){var n;v=Number((n=_.C(E,_.Q6g))==null?void 0:n.initialDelayMs);n=isNaN(v)?250:v;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),n)}};
_.c.setSentimentBarWidth=function(){var v=this;_.IS(this,function(){var E=_.K(v.hostElement).querySelector("ytd-menu-renderer");if(E){E=E.topLevelButtons;for(var n=0,f=0;f<E.length;f++){var x=E[f],y=v.get("toggleButtonSupportedData.toggleButtonIdData.id",x.data);if(y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||y==="TOGGLE_BUTTON_ID_TYPE_LIKE")n+=x.clientWidth+8;else break}n&&(v.sentiment.style.width=n-8+" px")}})};
_.c.fetchUpdatedMetadata=function(v){var E;v&&(E={continuation:v});var n;(v=(n=this.data)==null?void 0:n.updatedMetadataEndpoint)&&_.P().resolve(_.OO).resolveCommand(v,{form:Object.assign({},E,{element:this.hostElement})})};
_.c.onYtServiceRequestSent=function(v,E){E.endpoint&&_.C(E.endpoint,_.DE)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Z("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.C(E.endpoint,_.DE).status),this.setSentimentBarWidth())};
_.c.hasUpdateSentimentBarStateCommands=function(){var v,E,n,f,x=(f=(v=this.data)==null?void 0:(E=v.videoActions)==null?void 0:(n=E.menuRenderer)==null?void 0:n.topLevelButtons)!=null?f:[];v=_.p(x);for(E=v.next();!E.done;E=v.next()){E=E.value;x=f=n=void 0;var y=(n=E.toggleButtonRenderer)==null?void 0:(f=n.toggleButtonSupportedData)==null?void 0:(x=f.toggleButtonIdData)==null?void 0:x.id;if(y==="TOGGLE_BUTTON_ID_TYPE_LIKE"||y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){f=n=void 0;E=(f=_.C((n=E.toggleButtonRenderer)==
null?void 0:n.defaultServiceEndpoint,_.Tn))==null?void 0:f.commands;if(!E)break;E=_.p(E);for(n=E.next();!n.done;n=E.next())if(_.C(n.value,Ou_))return!0}}return!1};
_.c.onYtServiceRequestCompleted=function(v,E){var n;(v=(n=E.data)==null?void 0:n.loggingDirectives)&&_.bPX(_.Tl(),v);this.get("continuation.timedContinuationData",E.data)&&this.data&&this.data.updatedMetadataEndpoint&&(E=E.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,E.continuation),E.timeoutMs))};
_.c.computeHasDateText=function(v){return!!v&&!!v.dateText};
_.hK.Object.defineProperties(Tp.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return!((f=(v=this.data)==null?void 0:(E=v.videoActions)==null?void 0:(n=E.menuRenderer)==null?void 0:n.flexibleItems)==null||!f.length)}}});
Tp.prototype.onYtServiceRequestCompleted=Tp.prototype.onYtServiceRequestCompleted;Tp.prototype.onYtServiceRequestSent=Tp.prototype.onYtServiceRequestSent;Tp.prototype.dataChanged=Tp.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Tp.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.A1.YtTaskEmitterBehavior),_.W("design:type",Object)],Tp.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Tp.prototype,"data",void 0);_.k([_.H({computed:"computeInfoFormattedStrings(data)"}),_.W("design:type",Array)],Tp.prototype,"infoFormattedStrings",void 0);
_.k([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Tp.prototype,"hasDateText",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Tp.prototype,"wrapVideoActions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Tp.prototype,"hideSentimentBar",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Tp.prototype,"flexMenuEnabled",null);
_.k([_.Wp("#sentiment"),_.W("design:type",Object)],Tp.prototype,"sentiment",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Tp.prototype,"dataChanged",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],Tp.prototype,"onYtServiceRequestSent",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],Tp.prototype,"onYtServiceRequestCompleted",null);
_.u(Tp,"ytd-video-primary-info-renderer",function(){if(Bs0===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);Bs0=v}v=Bs0;return v},{mode:1});var nNp;var iK=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.S(iK,_.g);_.c=iK.prototype;_.c.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"}}}};
_.c.dataChanged=function(){var v;this.descriptionToggled=!((v=this.data)==null||!v.defaultExpanded);var E;this.collapsed=this.descriptionAlwaysCollapsed||!((E=this.data)==null?0:E.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ci(110509);this.showLessClientVe=_.ci(110510);v=_.lc();E=_.bc();v&&E&&_.Nt(v,E,[this.showMoreClientVe,this.showLessClientVe])};
_.c.onYtExpanderMoreTapped=function(){var v,E=(v=this.data)==null?void 0:v.showMoreCommand;E&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(E);(v=_.lc())&&this.showMoreClientVe&&_.qx(v,this.showMoreClientVe)};
_.c.onYtExpanderLessTapped=function(){var v=_.lc();v&&this.showLessClientVe&&_.qx(v,this.showLessClientVe);var E;(v=(E=this.data)==null?void 0:E.showLessCommand)&&this.componentBehavior.resolveCommand(v)};
_.c.handleUpdateDateTextAction=function(v){this.data&&this.data.dateText&&this.set("data.dateText",_.C(v,_.sMp).dateText)};
_.c.handleUpdateDescriptionAction=function(v){if(v=_.C(v,_.LpP))v.isEmpty||!v.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.yI(v.description)):this.set("data.description",v.description)};
_.c.onYtChangeEngagementPanelVisibilityAction=function(v){if(_.Z("web_structured_description_show_more")||_.Z("web_engagement_panel_open_description")){var E,n=(E=_.C(v,_.$mz))==null?void 0:E.targetId,f;v=((f=_.C(v,_.$mz))==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";n==="engagement-panel-structured-description"&&v&&(this.descriptionToggled=!0)}};
_.c.updateCollapsedFromBinding=function(v){this.collapsed=v.detail.value};
_.c.updateDescriptionToggledFromBinding=function(v){this.descriptionToggled=v.detail.value};
_.c.updateCanCollapseFromBinding=function(v){this.canCollapse=v.detail.value};
_.hK.Object.defineProperties(iK.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer;return!!n&&!!n.rows&&n.rows.length>n.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.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}}});
iK.prototype.onYtExpanderLessTapped=iK.prototype.onYtExpanderLessTapped;iK.prototype.onYtExpanderMoreTapped=iK.prototype.onYtExpanderMoreTapped;iK.prototype.dataChanged=iK.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],iK.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],iK.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iK.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],iK.prototype,"collapsed",void 0);_.k([_.H(),_.W("design:type",Boolean)],iK.prototype,"descriptionToggled",void 0);
_.k([_.H(),_.W("design:type",Boolean)],iK.prototype,"canCollapse",void 0);_.k([_.H(),_.W("design:type",Object)],iK.prototype,"subscribeButtonData",void 0);_.k([_.H(),_.W("design:type",Number)],iK.prototype,"descriptionCollapsedHeight",void 0);_.k([_.H(),_.W("design:type",Object)],iK.prototype,"structuredDescriptionContentRenderer",void 0);_.k([_.H({value:function(){return _.Z("web_watch_description_always_collapsed")}}),
_.W("design:type",Boolean)],iK.prototype,"descriptionAlwaysCollapsed",void 0);_.k([_.Wp("#description"),_.W("design:type",HTMLDivElement)],iK.prototype,"description",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iK.prototype,"dataChanged",null);_.k([_.jk("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iK.prototype,"onYtExpanderMoreTapped",null);
_.k([_.jk("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iK.prototype,"onYtExpanderLessTapped",null);_.k([_.A("data.metadataRowContainer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"metadataCollapsible",null);_.k([_.A("data","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"hasInlineStructuredDescription",null);
_.k([_.A("data.attributedDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"hasAttributedDescription",null);_.k([_.A("hasInlineStructuredDescription","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"loadStructuredDescription",null);_.k([_.A("data","structuredDescriptionContentRenderer","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"showInlineStructuredDescription",null);
_.k([_.A("data","hasInlineStructuredDescription","metadataCollapsible"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iK.prototype,"descriptionAlwaysCollapsible",null);
_.u(iK,"ytd-video-secondary-info-renderer",function(){if(nNp===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);nNp=v}v=nNp;return v},{mode:2});var oNP;var zp=function(){return _.g.apply(this,arguments)||this};
_.S(zp,_.g);zp.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:_.Z("web_modern_buttons"),forceIconButton:!_.Z("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
zp.prototype.activate=function(v){v.appendTo(this.player);v.getPlayerPromise().then(function(E){E.setMinimized(!0)});
this.active=!0};
zp.prototype.deactivate=function(){var v=this.player.firstElementChild;v.getPlayerPromise().then(function(E){E.setMinimized(!1)});
this.active=!1;return v};
zp.prototype.onScrollUpTap=function(){var v=_.P().resolve(_.Y_).getCurrentPage();v&&v.setScrollTop(0)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],zp.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zp.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],zp.prototype,"active",void 0);
_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.W("design:type",Boolean)],zp.prototype,"darkLaunch",void 0);_.k([_.Wp("#player"),_.W("design:type",HTMLDivElement)],zp.prototype,"player",void 0);zp=_.k([_.N({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],zp);
_.u(zp,"ytd-miniplayer-bar-renderer",function(){if(oNP!==void 0)return oNP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oNP=v},{mode:1});_.Yz(_.qu(function(v){var E=_.Ig();_.Xp(function(){var n;if(n=JSON)n=Ns3(v.data()),n=_.YR(JSON.stringify(n).replace(/</g,"\\u003C"));var f=v.data(),x=_.JC(f.title).trim().length===0,y=!f.publishDate||f.publishDate.trim().length===0,Q,e,F,b,l=!((Q=f.thumbnail)==null?0:(e=Q.thumbnails)==null?0:e.length)||!((F=f.thumbnail)==null?0:F.thumbnails[0].url)||((b=f.thumbnail)==null?void 0:b.thumbnails[0].url.trim().length)===0;E.value&&n&&!(x||y||l)&&_.AA(E.value,n)});
return _.w("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.w("script",{el:E,type:"application/ld+json"}))},"Yi"),"player-microformat-renderer",{props:{data:_.Ij}});
}catch(e){_._DumpException(e)}
try{
var sL3;_.eI0=function(v){return v.watch.watchWindowSize};
_.FFP=function(v){return _.un({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:v}})};
sL3=function(v){_.QK.call(this);var E=this;this.JSC$20303_watchApi=v;v=_.yC(_.dG(),_.HPs,function(){mz3(E)});
this.addOnDisposeCallback(v);v=_.yC(_.dG(),_.eI0,function(){mz3(E)});
this.addOnDisposeCallback(v);w3P(this);bu6(this);l9P()};
_.S(sL3,_.QK);var w3P=function(v){var E=function(f){_.dG().dispatch(_.HO_(f.matches))},n=window.matchMedia("(max-width: "+(999+_.s9())+"px)");
n.addListener(E);v.addOnDisposeCallback(function(){n.removeListener(E)});
E(n)},bu6=function(v){v.JSC$20303_watchApi.registerActionHandler("yt-window-resized",function(){l9P()});
v.addOnDisposeCallback(function(){v.JSC$20303_watchApi.unregisterActionHandler("yt-window-resized")})},l9P=function(){var v=_.tC();
_.dG().dispatch(_.un({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:v.width,height:v.height}}}))},mz3=function(v){var E;
_.X(function(n){if(n.nextAddress==1)return _.m(n,v.JSC$20303_watchApi.playerApi,2);E=n.yieldResult;E.setSize(NaN,NaN);_.yQ(n)})};_.NK=function(v){_.jn.call(this);var E=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(n){E.initOrDisposeActiveModules(n)}));
this.onAttached()};
_.S(_.NK,_.jn);_.c=_.NK.prototype;_.c.getRoot=function(){return this.rootElement};
_.c.getElement=function(v){return this.rootElement.getElement(v)};
_.c.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.c.getPlayerResponse=function(){return this.playerResponse};
_.c.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.c.getWatchNextResponse=function(){return this.watchNextResponse};
_.c.registerActionHandler=function(v,E){var n=this;if(_.Z("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Jo(_.qw.getInstance(),(f[v]=E,f),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),f={},_.Jo(_.qw.getInstance(),(f[v]=function(){var x=_.rV.apply(0,arguments);return(n.actionHandlers.get(v)||[]).map(function(y){return y.apply(null,_.s8(x))})},f),this.getRoot())),this.actionHandlers.get(v).push(E)};
_.c.unregisterActionHandler=function(v){if(_.Z("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.K3(_.qw.getInstance(),(E[v]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(v))?(E.pop(),E.length===0&&(E={},_.K3(_.qw.getInstance(),(E[v]=!0,E),this.getRoot()),this.actionHandlers.delete(v))):_.li(new _.yc("Attempted to unregister an action handler which is not registered.",v))};
_.c.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Gs(this.rootElement.pageDisposeJobs,v)};
_.c.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.zs(this.rootElement.pageDisposeJobs,v)};
_.c.dispatchEvent=function(v,E){_.jK(this.rootElement,v,E)};
_.c.provideRenderingData=function(v,E){this.rootElement.provideRenderingData(v,E)};
_.c.scrollWatchTo=function(v,E){var n;(n=this.watchScrollManager)==null||n.scrollWatchTo(v,E)};
_.c.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.IS(v,function(){if(v&&v.firstElementChild){var E=v.querySelector(".html5-video-player");E&&(_.gT(_.P().resolve(_.ph)),E.focus())}else _.li(Error("jm"))})};
_.c.updateCinematicFullscreenConfig=function(){var v=!!this.rootElement.theater,E=!!this.rootElement.fullscreen,n;(n=this.watchCinematicManager)==null||_.XhU(n,E,v)};
_.c.subscribeToActiveChanged=function(v,E){E=E===void 0?!0:E;var n=_.yC(_.dG(),_.W60,function(f){v(f)});
E&&v(_.W60(_.dG().getState()));return n};
_.c.isActive=function(){return _.W60(_.dG().getState())};
_.c.onAttached=function(){var v=_.Z("external_fullscreen");_.Z("use_unified_flag_accessor")&&(v=_.P().resolve(_.QOC).retriever.getFlag(_.UE1));(v||_.Sp("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var rnx=function(v){return v.getRoot().is==="ytd-watch-flexy"||v.getRoot().is==="ytd-watch-grid"},uK=function(v){return v.getRoot().is==="ytd-watch-fixie"};
_.NK.prototype.initPersistentModules=function(){if(uK(this)||rnx(this)&&_.Z("kevlar_watch_flexy_theater_manager")){var v=new _.NHO(this);_.BV(this,v)}v=new _.MvU(this);_.BV(this,v);v=new _.KD(this);_.BV(this,v);v=new _.DF(this);_.BV(this,v);v=new _.Bc1(this);_.BV(this,v);v=new _.I7(this);_.BV(this,v);if(uK(this)||rnx(this)&&_.Z("kevlar_watch_flexy_playlist_manager"))v=new _.Ek0(this),_.BV(this,v)};
_.NK.prototype.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.gX(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.gAP(this)),this.activeModules.push(new _.OA6(this)),uK(this)&&this.activeModules.push(new sL3(this)),this.activeModules.push(new _.p3K(this)),this.activeModules.push(new _.Hx(this)),(uK(this)||_.Z("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.LYp(this)),this.activeModules.push(new _.$4P(this)),
(uK(this)||_.Z("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.X3U(this)),(uK(this)||_.Z("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.EAO(this)),_.Z("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.cH6(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Z("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.i_3(this)),_.Z("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Z_O(this)),
v=_.Z("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Z("kevlar_watch_flexy_comments_manager")&&!v&&this.activeModules.push(new _.ls0(this)),_.Z("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.dX(this)),this.activeModules.push(new _.GD3(this)),this.activeModules.push(new _.uR_(this)),_.Z("web_enable_timely_actions")&&this.activeModules.push(new _.RW_(this)),_.Z("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.PeK(this)),
_.Z("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.XSd(this)),_.Z("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.z2K(this)),_.Z("web_player_rtr_ctrls")&&this.activeModules.push(new _.Zfx(this))):(_.js(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.NK.prototype.disposeInternal=function(){_.jn.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hK.Object.defineProperties(_.NK.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var HP3,PS,gd0,NfR,jw6,OPp,uxO,kCC;HP3=function(){var v=_.oQ();v.info||(v.info={});return v.info};
PS=function(v){return Math.round(_.xs()+v)};
gd0=function(){var v;if(_.Z("csi_use_performance_navigation_timing")||_.Z("csi_use_performance_navigation_timing_tvhtml5")){var E,n,f,x=_.fH==null?void 0:(v=_.fH.getEntriesByType)==null?void 0:(E=v.call(_.fH,"navigation"))==null?void 0:(n=E[0])==null?void 0:(f=n.toJSON)==null?void 0:f.call(n);x?(x.requestStart=PS(x.requestStart),x.responseEnd=PS(x.responseEnd),x.redirectStart=PS(x.redirectStart),x.redirectEnd=PS(x.redirectEnd),x.domainLookupEnd=PS(x.domainLookupEnd),x.connectStart=PS(x.connectStart),
x.connectEnd=PS(x.connectEnd),x.responseStart=PS(x.responseStart),x.secureConnectionStart=PS(x.secureConnectionStart),x.domainLookupStart=PS(x.domainLookupStart),x.isPerformanceNavigationTiming=!0,v=x):v=_.fH.timing}else v=_.Z("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.fH.timing)):_.fH.timing;return v};
NfR=function(){if(_.fH.getEntriesByType){var v=_.fH.getEntriesByType("paint");if(v=_.gL(v,function(n){return n.name==="first-paint"}))return PS(v.startTime)}var E;
_.Z("csi_use_performance_navigation_timing")||_.Z("csi_use_performance_navigation_timing_tvhtml5")?E=_.fH.getEntriesByType("first-paint")[0].startTime:E=_.fH.timing.msFirstPaint;return E?Math.max(0,E):0};
jw6=function(){var v=window.location.protocol,E=_.fH.getEntriesByType("resource");E=_.v2(E,function(n){return n.name.indexOf(v+"//fonts.gstatic.com/s/")===0});
(E=uxO(E,function(n,f){return f.duration>n.duration?f:n}))&&E.startTime>0&&E.responseEnd>0&&(_.cR("wffs",PS(E.startTime)),_.cR("wffe",PS(E.responseEnd)))};
OPp=function(v,E){v=document.querySelector(v);if(!v)return!1;var n="",f=v.nodeName;f==="SCRIPT"?(n=v.src,n||(n=v.getAttribute("data-timing-href"))&&(n=window.location.protocol+n)):f==="LINK"&&(n=v.href);_.dV(document)&&v.setAttribute("nonce",_.dV(document));return n?(v=_.fH.getEntriesByName(n))&&v[0]&&(v=v[0],n=_.xs(),_.cR("rsf_"+E,n+Math.round(v.fetchStart)),_.cR("rse_"+E,n+Math.round(v.responseEnd)),v.transferSize!==void 0&&v.transferSize===0)?!0:!1:!1};
_.ad=function(v,E){_.qX(function(){_.G0E("").info.actionType=v;E&&_.Ck("TIMING_AFT_KEYS",E);_.Ck("TIMING_ACTION",v);var n=_.Q9s(_.MX("TIMING_INFO",{}));Object.keys(n).length>0&&_.yf(n);n={isNavigation:!0,actionType:_.zk9(_.MX("TIMING_ACTION"))};var f=_.MX("PREVIOUS_ACTION");f&&(n.previousAction=_.zk9(f));if(f=_.MX("CLIENT_PROTOCOL"))n.httpProtocol=f;if(f=_.MX("CLIENT_TRANSPORT"))n.transportProtocol=f;(f=_.lc())&&f!=="UNDEFINED_CSN"&&(n.clientScreenNonce=f);f=_.pN1();if(f===1||f===-1)n.isVisible=!0;
f=_.uS1().loadType==="cold";var x=HP3();f||(f=x.yt_lt==="cold");if(f){n.loadType="cold";f=HP3();x=gd0();var y=_.xs(),Q=_.MX("CSI_START_TIMESTAMP_MILLIS",0);Q>0&&!_.Z("embeds_web_enable_csi_start_override_killswitch")&&(y=Q);y&&(_.cR("srt",x.responseStart),f.prerender!==1&&_.EeG(y));f=NfR();f>0&&_.cR("fpt",f);f=gd0();f.isPerformanceNavigationTiming&&_.yf({performanceNavigationTiming:!0},void 0);_.cR("nreqs",f.requestStart,void 0);_.cR("nress",f.responseStart,void 0);_.cR("nrese",f.responseEnd,void 0);
f.redirectEnd-f.redirectStart>0&&(_.cR("nrs",f.redirectStart,void 0),_.cR("nre",f.redirectEnd,void 0));f.domainLookupEnd-f.domainLookupStart>0&&(_.cR("ndnss",f.domainLookupStart,void 0),_.cR("ndnse",f.domainLookupEnd,void 0));f.connectEnd-f.connectStart>0&&(_.cR("ntcps",f.connectStart,void 0),_.cR("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=_.xs()&&f.connectEnd-f.secureConnectionStart>0&&(_.cR("nstcps",f.secureConnectionStart,void 0),_.cR("ntcpe",f.connectEnd,void 0));_.fH&&"getEntriesByType"in
_.fH&&jw6();f=[];if(document.querySelector&&_.fH&&_.fH.getEntriesByName)for(var e in kCC)kCC.hasOwnProperty(e)&&(x=kCC[e],OPp(e,x)&&f.push(x));if(f.length>0)for(n.resourceInfo=[],e=_.p(f),f=e.next();!f.done;f=e.next())n.resourceInfo.push({resourceCache:f.value})}_.yf(n);n=_.OL1();n.preLoggedGelInfos||(n.preLoggedGelInfos=[]);e=n.preLoggedGelInfos;n=_.k0E();f=void 0;for(x=0;x<e.length;x++)if(y=e[x],y.loadType){f=y.loadType;break}if(_.uS1().loadType==="cold"&&(n.loadType==="cold"||f==="cold")){f=_.j_9();
x=_.OL1();x=x.gelTicks?x.gelTicks:x.gelTicks={};for(var F in f)if(!(F in x))if(typeof f[F]==="number")_.cR(F,_.pH(F));else if(_.Z("log_repeated_ytcsi_ticks"))for(y=_.p(f[F]),Q=y.next();!Q.done;Q=y.next())Q=Q.value,_.cR(F.slice(1),Q);F={};f=!1;e=_.p(e);for(x=e.next();!x.done;x=e.next())f=x.value,_.kuE(n,f),_.kuE(F,f),f=!0;f&&_.yf(F)}_.emX(!0);F=_.MX("TIMING_ACTION");_.JM("ytglobal.timingready_")&&F&&_.ZzF()&&_.XNG()&&_.cSX()})()};
uxO=function(v,E){return Array.prototype.reduce.call(v,E,{duration:0})};
kCC={'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 WKx={};WKx.YtVisibilityRootBehavior=[_.g51.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.uU(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.MX("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var v=_.MX("INNERTUBE_CLIENT_NAME")!=="WEB";_.Z("kevlar_use_vimio_behavior")&&v&&_.L8w()}}];_.Zi={};_.Zi.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(v){v.detail.contextProvider=this;v.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
WKx.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Sw();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(v){var E=this;this.pageCount+=1;_.Z("kevlar_use_vimio_behavior")&&(_.MX("INNERTUBE_CLIENT_NAME")==="WEB"?_.wh.addJob(function(){E.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(v)},
loadPage_:function(v){this.data=v},
ytPageBehaviorActiveObserver_:function(v){var E=this;_.Z("kevlar_use_vimio_behavior")&&(v?_.MX("INNERTUBE_CLIENT_NAME")==="WEB"?_.wh.addJob(function(){E.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(v){if(!this.setScrollTopJobId_){var E=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){E.setScrollTopJobId_=0;var n=_.P().resolve(_.jp(_.ph));n&&_.gT(n);this.getPageScrollingElement().scrollTop=v}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.rx(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var DtO;var rH=function(){var v=_.g.apply(this,arguments)||this;v.playerListenerConfig=null;v.actionMap={"yt-show-watch-page-survey":"openSurvey"};return v};
_.S(rH,_.g);_.c=rH.prototype;_.c.dataChanged=function(){var v=this,E=_.Aq();E&&E.getPlayerPromise().then(function(f){v.maybeRemovePlayerListeners(f)});
var n=this.data&&this.data.survey;n&&((n=(n=n.singleOptionSurveyRenderer||n.checkboxSurveyRenderer||n.multiStageSurveyRenderer)&&n.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(E,n):this.openSurvey())};
_.c.triggerWatchPageSurvey=function(v,E){var n=this,f,x,y,Q,e,F,b,l,r;return _.X(function(a){if(a.nextAddress==1)return v?_.m(a,v.getPlayerPromise(),2):a.return();n.player=a.yieldResult;if(!n.player)return a.return();f={};x=_.p(E);for(y=x.next();!y.done;y=x.next())Q=y.value,e=_.p(n.createEventListenerPair(Q)),F=e.next().value,b=e.next().value,l=F,r=b,l&&r&&(f[l]=r,n.ytPlayerListenerBehavior.listenToPlayerEvent(n.player,l,r));n.playerListenerConfig=f;_.yQ(a)})};
_.c.createEventListenerPair=function(v){var E=v.playbackEventTrigger;return E?this.handlePlaybackTrigger(E):(v=v.watchTimeTrigger)?this.handleWatchTimeTrigger(v):[void 0,void 0]};
_.c.handleWatchTimeTrigger=function(v){var E=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var n=v.videoWatchFraction,f=v.watchTimeSec;return f&&n?["onVideoProgress",function(){E.player&&E.isWatchTimeConditionMet(E.player,n,f)&&E.showSurvey()}]:[void 0,
void 0]};
_.c.isWatchTimeConditionMet=function(v,E,n){var f=v.getProgressState(),x=f.current-this.lastKnownPlaybackPosition;x<5&&(this.accumulatedMediaTime+=x);this.lastKnownPlaybackPosition=f.current;f=Math.round(this.accumulatedMediaTime/f.duration*1E3)/1E3;return v.getPresentingPlayerType&&v.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>n||f>E)};
_.c.handlePlaybackTrigger=function(v){var E=this;v=v.playbackEvent;if(v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var n="onStateChange";var f=function(x){x===0&&E.showSurvey()}}else v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(n="onVideoProgress",f=function(x){E.player&&E.player.getPresentingPlayerType&&E.player.getPresentingPlayerType()===1&&x&&E.showSurvey()}):v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(n="onAdEnd",f=this.showSurvey);
return[n,f]};
_.c.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.c.openSurvey=function(){var v=this,E=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.qhU(!!E));_.wh.addJob(function(){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:E}})},0,0)};
_.c.maybeRemovePlayerListeners=function(v){if(this.playerListenerConfig){for(var E=_.p(Object.keys(this.playerListenerConfig)),n=E.next();!n.done;n=E.next())n=n.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(v,n,this.playerListenerConfig[n]);this.playerListenerConfig=null}};
rH.prototype.dataChanged=rH.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],rH.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],rH.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],rH.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],rH.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rH.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],rH.prototype,"playerListenerConfig",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],rH.prototype,"lastKnownPlaybackPosition",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],rH.prototype,"accumulatedMediaTime",void 0);_.k([_.H(),_.W("design:type",Object)],rH.prototype,"player",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rH.prototype,"dataChanged",null);rH=_.k([_.N({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],rH);
_.u(rH,"ytd-survey-trigger-renderer",function(){if(DtO!==void 0)return DtO;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return DtO=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
var UJP=new _.z("promotedSparklesWebRenderer");var qjd=new _.z("relatedChipCommand");var Jib;var K6d;var ws=function(){return _.g.apply(this,arguments)||this};
_.S(ws,_.g);ws.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ws.prototype,"data",void 0);ws=_.k([_.N({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],ws);
_.u(ws,"ytd-compact-tvfilm-entry-point-renderer",function(){if(K6d!==void 0)return K6d;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return K6d=v},{mode:1});var dJM;var IZ3;var Yjb;var bD=function(){return _.g.apply(this,arguments)||this};
_.S(bD,_.g);bD.prototype.ready=function(){this.initializeDefs()};
bD.prototype.initializeDefs=function(){var v=this.meta.byKey("yt-icons"),E=_.K(v).querySelector("#star"),n=_.K(v).querySelector("#star_half");v=_.K(v).querySelector("#star_border");E&&this.defs.appendChild(E.cloneNode(!0));n&&this.defs.appendChild(n.cloneNode(!0));v&&this.defs.appendChild(v.cloneNode(!0))};
bD.prototype.percentChanged=function(){for(var v=this.rating;v.firstChild;)v.removeChild(v.firstChild);var E=Math.round(this.percent/10);v=Math.floor(E/2);E%=2;var n=5-v-E;this.appendStars("star",v,0);this.appendStars("star_half",E,v);this.appendStars("star_border",n,v+E)};
bD.prototype.appendStars=function(v,E,n){for(var f=0;f<E;f++){var x=(18+this.spacing)*(f+n),y=document.createElementNS("http://www.w3.org/2000/svg","use");_.JJ1(y,"#"+v);y.setAttribute("x",""+x);y.setAttribute("y","0");this.rating.appendChild(y)}};
bD.prototype.percentChanged=bD.prototype.percentChanged;_.k([_.Wp("#defs"),_.W("design:type",HTMLElement)],bD.prototype,"defs",void 0);_.k([_.Wp("#rating"),_.W("design:type",HTMLElement)],bD.prototype,"rating",void 0);_.k([_.H(),_.W("design:type",Number)],bD.prototype,"percent",void 0);_.k([_.H({value:6}),_.W("design:type",Number)],bD.prototype,"spacing",void 0);_.k([_.H({value:_.m4.create("iron-meta",{type:"iconset"})}),_.W("design:type",_.sS)],bD.prototype,"meta",void 0);
_.k([_.On("percent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bD.prototype,"percentChanged",null);bD=_.k([_.N({disableElementRegistration:!0,is:"ytd-ratings"})],bD);
_.u(bD,"ytd-ratings",function(){if(Yjb!==void 0)return Yjb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Yjb=v},{mode:1});var lD=function(){return _.g.apply(this,arguments)||this};
_.S(lD,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lD.prototype,"data",void 0);lD=_.k([_.N({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],lD);
_.u(lD,"ytd-offer-review-renderer",function(){if(IZ3!==void 0)return IZ3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return IZ3=v},{mode:1});var si=function(){var v=_.g.apply(this,arguments)||this;v.badges=[{textBadge:{label:_.qD("CC")}}];return v};
_.S(si,_.g);_.c=si.prototype;_.c.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.c.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(v&&v.commandMetadata&&_.C(v.commandMetadata,_.PD)&&_.C(v.commandMetadata,_.PD).fireAutomatically)_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}});else{var E;v&&((E=_.C(v,_.PD))==null?0:E.fireAutomatically)&&_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})}};
_.c.isEmptyContent=function(v){return this.isStorefrontEntryPointEmpty(v)&&this.shouldHideOfferModule(v)};
_.c.isStorefrontEntryPointEmpty=function(v){return!v||!v.storefrontEntryPoint};
_.c.shouldHideOfferModule=function(v){return!!v.hideVideoDetails};
_.c.isOfferModuleNavigationInactive=function(v){return!v.navigationEndpoint&&!v.serviceEndpoint};
_.c.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
si.prototype.dataChanged=si.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],si.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.W("design:type",Boolean)],si.prototype,"hidden",void 0);
_.k([_.H(),_.W("design:type",Object)],si.prototype,"badges",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],si.prototype,"dataChanged",null);si=_.k([_.N({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],si);
_.u(si,"ytd-movie-offer-module-renderer",function(){if(dJM!==void 0)return dJM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dJM=v},{mode:1});var hd1;var rs=function(){return _.g.apply(this,arguments)||this};
_.S(rs,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],rs.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rs.prototype,"data",void 0);rs=_.k([_.N({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],rs);
_.u(rs,"ytd-media-masthead-renderer",function(){if(hd1!==void 0)return hd1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hd1=v},{mode:1});var Ai_;_.Yz(_.TDz,"course-metadata-view-model",{props:{data:_.Ij,isOverlay:_.Ij}});var P3=function(){var v=_.g.apply(this,arguments)||this;v.isMetadataVisible=!1;v.modernPanels=_.Z("kevlar_watch_modern_panels");v.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return v};
_.S(P3,_.g);_.c=P3.prototype;
_.c.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"}}}}};
_.c.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.c.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.c.expanderChanged=function(){var v;if((v=this.data)==null?0:v.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.c.isExpandButtonToggled=function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.expandMetadataButton,_.bS))==null?void 0:E.isToggled};
_.c.onVisibilityButtonClick=function(){var v;if((v=this.data)==null?0:v.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.c.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
P3.prototype.expanderChanged=P3.prototype.expanderChanged;P3.prototype.dataChanged=P3.prototype.dataChanged;P3.prototype.descriptionChanged=P3.prototype.descriptionChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],P3.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],P3.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],P3.prototype,"isMetadataVisible",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],P3.prototype,"modernPanels",void 0);_.k([_.Wp("#expander"),_.W("design:type",Object)],P3.prototype,"expander",void 0);_.k([_.On("data.description"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P3.prototype,"descriptionChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P3.prototype,"dataChanged",null);_.k([_.On("isMetadataVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P3.prototype,"expanderChanged",null);P3=_.k([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],P3);
_.u(P3,"ytd-tvfilm-offer-module-renderer",function(){if(Ai_!==void 0)return Ai_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ai_=v},{mode:2});var Vex;var aL=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return v};
_.S(aL,_.g);aL.prototype.dataChanged=function(){this.hostElement.hidden=!1};
aL.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
aL.prototype.onThumbnailTap=function(v){this.data&&this.data.serviceEndpoint&&(_.P().resolve(_.OO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),v.stopPropagation())};
aL.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
aL.prototype.dataChanged=aL.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],aL.prototype,"rendererBehaviors",void 0);_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],aL.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],aL.prototype,"data",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aL.prototype,"dataChanged",null);aL=_.k([_.N({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],aL);
_.u(aL,"ytd-unlimited-offer-module-renderer",function(){if(Vex!==void 0)return Vex;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Vex=v},{mode:1});var DJx;var H60;var Z9=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return v};
_.S(Z9,_.g);Z9.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Z9.prototype.handleRelatedChipCommand=function(v){v=_.C(v,qjd);var E=v.contents;E?_.kZ(this.hostElement,"yt-item-section-replace-action",[E,v.targetSectionIdentifier]):_.kZ(this.hostElement,"yt-item-section-continuation-action",[v.continuationData,v.targetSectionIdentifier])};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Z9.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Z9.prototype,"data",void 0);Z9=_.k([_.p5({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Z9);
_.u(Z9,"yt-related-chip-cloud-renderer",function(){if(H60===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;DJx===void 0&&(DJx=document.createElement("template"));var f=DJx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);H60=v}v=H60;return v},{mode:2});var Cu=function(){var v=_.g.apply(this,arguments)||this;v.isTwoColumns=!0;v.hideOfferModules=!1;v.watchFeedBigThumbs=_.Z("kevlar_watch_feed_big_thumbs");v.watchNextGridHideChips=_.Z("kevlar_watch_grid_hide_chips");v.eligibleToSwitchToGrid=_.Z("web_watch_eligible_to_switch_to_grid");v.disableShortsShelfHeightOverride=_.Z("web_shorts_wn_shelf_ratio_tuning");v.isWatchNextGrid=!1;v.reuseComponents=!_.Z("kevlar_watch_grid");v.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return v};
_.S(Cu,_.g);_.c=Cu.prototype;
_.c.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:!_.Z("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}}};
_.c.getItemsPath=function(){return"data.results"};
_.c.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.c.created=function(){this.ytLazyListBehavior.initialCount=1};
_.c.ready=function(){_.NQ(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%"})};
_.c.resultsChanged=function(){if(this.data&&this.data.results){for(var v=this.data.results,E=null,n=null,f=0;f<v.length;f++)v[f].relatedChipCloudRenderer?E=v[f].relatedChipCloudRenderer:v[f].itemSectionRenderer&&(n=v[f].itemSectionRenderer);if(E&&n)for(this.set("data.continuations",[]),v=_.C(E.content,_.YSS).chips,E=0;E<v.length;E++)if(f=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",v[E]),f.loadCached||!f.contents){f.contents=n.contents;break}}};
_.c.dataChanged=function(){var v=this,E;if((E=this.data)!=null&&E.results&&this.hasAllowedInstreamAd(this.playerData)){if(E=this.data.results.filter(function(e){return!!e.promotedSparklesWebRenderer})){for(var n=0;n<E.length;n++){var f=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",E[n]);
if(f)for(var x=0;x<f.length;x++)f[x]&&f[x].baseUrl&&_.SD(f[x].baseUrl)}this.set("data.results",this.data.results.filter(function(e){return!e.promotedSparklesWebRenderer}))}if(E=this.data.results.filter(function(e){return!!v.getSparklesAd(e)})){E=_.p(E);
for(x=E.next();!x.done;x=E.next())if(f=n=void 0,x=(n=this.getSparklesAd(x.value))==null?void 0:(f=n.errorCommand)==null?void 0:f.loggingUrls)for(n=_.p(x),f=n.next();!f.done;f=n.next())(f=f.value)&&f.baseUrl&&_.SD(f.baseUrl);var y,Q;this.set("data.results",(y=this.data)==null?void 0:(Q=y.results)==null?void 0:Q.filter(function(e){return!e.adSlotRenderer}))}}};
_.c.getSparklesAd=function(v){var E,n;v=_.C((E=v.adSlotRenderer)==null?void 0:(n=E.fulfillmentContent)==null?void 0:n.fulfilledLayout,_.BO1);return _.C(v==null?void 0:v.renderingContent,UJP)};
_.c.hasAllowedInstreamAd=function(v){v=this.get("adPlacements",v)||[];for(var E=0;E<v.length;E++){var n=this.get("adPlacementRenderer.config.adPlacementConfig",v[E]);if(n&&n.suppressDisplayAd)return!0}return!1};
_.c.computeHideUnlimitedOfferModule=function(v,E){return v&&v.offerModule&&E&&v.offerModule.unlimitedOfferModuleRenderer&&v.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(E)?!0:!1};
_.c.hideUnlimitedOfferModuleChanged=function(){var v=_.K(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");v&&(v.hidden=this.hideUnlimitedOfferModule)};
_.c.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||E.forEach(function(n){n.containerType=v})}};
_.c.computeHideTvfilmOfferModule=function(v,E){var n,f;return!!((v==null?0:(n=v.offerModule)==null?0:(f=n.tvfilmOfferModuleRenderer)==null?0:f.clientShouldSuppressIfCompanionAdDisplayed)&&E&&this.hasCompanionAds(E))};
_.c.hideTvfilmOfferModuleChanged=function(){var v=_.K(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");v&&(v.hidden=this.hideTvfilmOfferModule)};
_.c.hasCompanionAds=function(v){v=this.get("adPlacements",v)||[];for(var E=0;E<v.length;E++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",v[E]))return!0;var n=void 0,f=void 0,x=void 0;if(!_.Z("web_watch_top_banner_companion_check_killswitch")&&((n=v[E])==null?0:(f=n.adPlacementRenderer)==null?0:(x=f.renderer)==null?0:x.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.c.hasSuppressedResults=function(v){return v==null?!0:v.filter(function(E){return!E.continuationItemRenderer&&!E.compactPromotedVideoRenderer&&!E.promotedSparklesWebRenderer}).length===0};
_.c.computeShowButton=function(v,E){return this.isWatchNextGrid?v:v||this.hasSuppressedResults(E)};
_.c.showButtonChanged=function(){if(this.isWatchNextGrid){var v=_.K(this.hostElement).querySelector("ytd-rich-grid-renderer");v&&this.showButton!==null&&(v.continuationShowButton=this.showButton)}else{v=_.K(this.hostElement).querySelector("yt-next-continuation");var E=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer"),n=_.K(this.hostElement).querySelector("ytd-item-section-renderer");v&&(v.showButton=this.showButton);E&&(E.showButton=this.showButton);n&&(n.continuationShowButton=
this.showButton)}};
_.c.continuationTap=function(v){var E;if(((E=this.data)==null?void 0:E.continuations)!=null&&v.target.tagName==="TP-YT-PAPER-BUTTON")for(v=this.data.continuations,E=0;E<v.length;E++)v[E].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(v[E].nextContinuationData||{})};
_.c.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("shown-items-changed",this.shownItems))};
_.hK.Object.defineProperties(Cu.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.shownItems)==null||!v.some(function(E){return!!E.lockupViewModel}))}}});
Cu.prototype.shownItemsChangedForBinding=Cu.prototype.shownItemsChangedForBinding;Cu.prototype.showButtonChanged=Cu.prototype.showButtonChanged;Cu.prototype.hideTvfilmOfferModuleChanged=Cu.prototype.hideTvfilmOfferModuleChanged;Cu.prototype.updateLockupContainerTypes=Cu.prototype.updateLockupContainerTypes;Cu.prototype.hideUnlimitedOfferModuleChanged=Cu.prototype.hideUnlimitedOfferModuleChanged;Cu.prototype.dataChanged=Cu.prototype.dataChanged;Cu.prototype.resultsChanged=Cu.prototype.resultsChanged;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Cu.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.S6.YtNextContinuationBehavior),_.W("design:type",Object)],Cu.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.h(_.MU),_.W("design:type",Object)],Cu.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Cu.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Cu.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Cu.prototype,"playerData",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Cu.prototype,"autoFill",void 0);_.k([_.H({value:60}),_.W("design:type",Number)],Cu.prototype,"targetFramerate",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cu.prototype,"isTwoColumns",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cu.prototype,"hideOfferModules",void 0);_.k([_.H(),_.W("design:type",Object)],Cu.prototype,"shownItems",void 0);_.k([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.W("design:type",Boolean)],Cu.prototype,"hideUnlimitedOfferModule",void 0);
_.k([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.W("design:type",Boolean)],Cu.prototype,"hideTvfilmOfferModule",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cu.prototype,"watchFeedBigThumbs",void 0);_.k([_.H(),_.W("design:type",Object)],Cu.prototype,"watchNextGridHideChips",void 0);_.k([_.H(),_.W("design:type",Object)],Cu.prototype,"eligibleToSwitchToGrid",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cu.prototype,"disableShortsShelfHeightOverride",void 0);_.k([_.H({selector:_.SS}),_.W("design:type",Object)],Cu.prototype,"isGridViewEnabled",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Cu.prototype,"showMoreButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Cu.prototype,"isWatchNextGrid",void 0);
_.k([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.W("design:type",Boolean)],Cu.prototype,"showButton",void 0);_.k([_.Tw("data.results.*"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"resultsChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"dataChanged",null);
_.k([_.On("hideUnlimitedOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"hideUnlimitedOfferModuleChanged",null);_.k([_.A("isGridViewEnabled","containsLockupViewModel","data"),_.H({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Cu.prototype,"lockupContainerType",null);
_.k([_.On("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],Cu.prototype,"updateLockupContainerTypes",null);_.k([_.On("hideTvfilmOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"hideTvfilmOfferModuleChanged",null);_.k([_.On("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"showButtonChanged",null);
_.k([_.On("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cu.prototype,"shownItemsChangedForBinding",null);_.k([_.A("shownItems"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Cu.prototype,"containsLockupViewModel",null);
_.u(Cu,"ytd-watch-next-secondary-results-renderer",function(){if(Jib===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);Jib=v}v=Jib;return v},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.fxd={};
_.fxd.YtdWatchBehavior=[_.B.YtRendererBehavior,_.I2.YtPlayerListenerBehavior,_.gm.YtRendererstamperBehavior,_.N2.YtActionHandlerBehavior,_.Zi.YtPageBehavior,_.TU.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 _.Sp("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Z("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 _.Sp("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 _.Z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Z("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.WG("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.WG("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!_.Z("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Z("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 _.Z("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Z("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Z("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("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 _.Z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("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 _.Z("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 v={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:_.Zh(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Zh(["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"||_.Z("swa_prov_panels_ks")?v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},v.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return v},
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 v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.Z("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.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;_.Z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Z("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.WFU(function(){return _.hq(v)},this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.Z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.BX;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;_.Z("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Z("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));_.Z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.uo(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.Z("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.Z("kevlar_watch_while_v2")&&!_.Z("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.Z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.jK(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var E=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var n;(n=this.watchController)==null||n.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.XD({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.FD("nw");this.loading=!1;_.cP(_.wh,function(){E.initDclkstatus_();var f,x=((f=E.player)==null?void 0:f.getVideoData().cpn)||"";_.KF_(function(y,Q){_.iEO(y,Q,x)})})},
onPageLoadWithSameData_:function(){_.Z("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 v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;if(_.Z("kevlar_watch_frame0_loading_state")){var E,n,f;v=(E=this.loadingData)==null?void 0:(n=E.endpoint)==null?void 0:(f=n.watchEndpoint)==null?void 0:f.videoId;var x;v&&(x="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,n;(n=(E=this.watchMetadata).updateSentimentBarWidth)==
null||n.call(E);var f,x;(x=(f=this.watchMetadata).resize)==null||x.call(f)}_.Z("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(v){var E=_.K(this.hostElement).querySelector(v);E?_.NA(E,!1):_.li(new _.yc("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var E=_.K(this.hostElement).querySelector(v);E?_.uc(E):_.li(new _.yc("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?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(v){var E=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wh.addLowPriorityJob(function(){E.onWindowResized_(_.tC(!0))})},
updateTheaterModeState_:function(v){if(!_.Z("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.O6C()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var v=this.theater;_.Z("external_fullscreen")&&this.fullscreen&&(v=!0);v=v?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),n=_.Z("kevlar_watch_while_v2")||_.Z("web_watch_pip");E.parentElement!==v&&(n&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.hq(this).appendTo(v,E),v.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.P().resolve(_.hf).deactivate(),2);v.updatePlayerLocation();_.yQ(E)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var E=this.getCinematicsLocationContainer();v.parentElement!==E&&E.appendChild(v);var n;(n=this.watchController)==null||n.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(v,E){var n=document.documentElement.hasAttribute("dark"),f=n&&_.Z("web_cinematic_theater_mode"),x=n&&_.Z("web_cinematic_fullscreen");n=!n&&this.cinematicLightTheme;return v&&f||E&&x||(E||v)&&n},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v=this,E;(E=this.watchController)==null||E.setWatchNextResponse(this.data);_.Z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.P().resolve(_.SY).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,_.Z("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.wh.addLowPriorityJob(function(){_.kZ(v.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Z("web_watch_start_chat_in_theater_mode")){var n,f,x;if((n=this.data)==null?0:(f=n.contents)==null?0:(x=f.twoColumnWatchNextResults)==null?0:x.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var y,Q;((y=this.data)==null?0:(Q=y.contents)==null?0:Q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(v){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(E=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),E&&!v||_.IS(this,function(){_.FD("pbu")}));
this.setPlayerAds_();_.kZ(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(v,E){if((_.Z("kevlar_watch_while_v2")||_.Z("web_watch_pip"))&&this.playerData&&E)return this.playerData.videoDetails},
watchPageActiveChanged_:function(v){_.dG().dispatch(_.FFP(this.active));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new _.NK(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);_.Z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.hq(this);_.Z("kevlar_disable_prepare_player")||
E.preparePlayer();_.Z("kevlar_watch_flexy_playlist_manager")||_.P().resolve(_.SY).setPlayer(E);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.s9()+"px"};this.is==="ytd-watch-grid"&&(E["--ytd-watch-flexy-sidebar-width"]=_.H3+"px",E["--ytd-watch-grid-horizontal-page-margins"]=_.An+"px",E["--ytd-watch-grid-columns-top-margins"]=_.MXU+"px",E["--ytd-watch-grid-min-player-height-medium"]="360px");!_.WG("kv_pl_mx_sz_ks")&&
_.WG("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.qvO+"px");_.WG("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.JNC+"px");this.safeUpdateStyles(E);_.Z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.XI(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
_.Z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var v=_.s9(),E=_.Vi+v,n=E;this.fixedPanels&&(E+=_.H3);var f=657+v;v=1327+v;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(v+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+n+"px)"},
calculateCurrentPlayerSize_:function(){var v=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild,E=this.squeezeback&&!_.Z("web_watch_squeezeback_player_size_killswitch");return v&&v.active||this.theater||_.Z("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||E||!this.active||!this.windowSize_?new _.fs(NaN,NaN):_.kG(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.kG(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.uU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.tC());_.Z("browse_skeleton_removal_on_watch_killswitch")||_.Sp("IS_SHELL_LOAD")&&_.VnP();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.hq(this);E.addEventListener("yt-player-updated",_.uo(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(n){v.playerApiReady_(n)});
_.Z("kevlar_watch_flexy_playlist_manager")||(E=_.P().resolve(_.SY),_.Z("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.uo(this,this.onYtNavigate_)),E.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.uo(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wh.addLowPriorityJob(function(){_.jK(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.hq(this).removeEventListener("yt-player-updated",_.uo(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Z("kevlar_watch_flexy_playlist_manager")){var v=_.P().resolve(_.SY);_.Z("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.uo(this,this.onYtNavigate_));
v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.uo(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.jK(this.hostElement,"yt-autonav-pause-player",!1);v=_.Hq();_.Z("kevlar_exit_fullscreen_leaving_watch")&&v&&_.gM(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.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(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ad("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Z("kevlar_unified_player")||_.Z("kevlar_player_new_bootstrap_adoption"))&&_.uT()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,E){E=E===void 0?!0:E;_.Hq()&&_.Z("external_fullscreen")&&_.gM(document.documentElement);this.theaterRequested_=v;E&&_.oP("wide",v?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.OL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.jK(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(v){_.ss(v,typeof this.player),this.player&&_.ss(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.OL(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,E){return this.loading?E:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next())E=E.value,E.youThereRenderer&&_.GfM(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.gh()<v.lowEngagementThresholdMs||_.RIK(E,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OL(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,E,n){return!!v&&!this.isVideoPlayable_(v,n)&&!E},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,E){if(!v)return!1;var n=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var x;E=E==null?void 0:(x=E.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!n||!!f||!!v||!!E},
hasWatchNextResponseErrorRenderer:function(v){var E=this.getPageContents(v),n,f,x,y,Q;return!(v==null?0:(n=v.contents)==null?0:(f=n.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((x=E[0])==null?0:(y=x.itemSectionRenderer)==null?0:(Q=y.contents[0])==null?0:Q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,E,n){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.Z("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&x.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);y==void 0&&(y=!0);!n||this.isVideoPlayable_(v,this.getPlayerOverlays_(E))||
f||x||!y||_.P().resolve(_.SY).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Dz1()},
onPlayerFeedbackStartRequest_:function(v){_.OL(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.OL(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,E,n,f,x,y,Q,e,F=((v=this.data)==null?NaN:(E=v.contents)==null?NaN:(n=E.twoColumnWatchNextResults)==null?NaN:(f=n.secondaryResults)==null?NaN:(x=f.secondaryResults)==null?NaN:(y=x.offerModule)==null?NaN:(Q=y.tvfilmOfferModuleRenderer)==null?NaN:(e=Q.actionButtons)==null?NaN:e.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(F>=0?F:0)+".buttonRenderer."];E=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(n=E.next();!n.done;n=E.next())for(n=n.value,f=_.p(v),x=f.next();!x.done;x=f.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+n+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.WE(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.jK(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.jK(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.dG().dispatch(_.x8P(v))},
onPlayerSubscribe_:function(v){_.OL(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.OL(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.OL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
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(v){return!_.Z("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return _.Z("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Z("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var v,E,n,f;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.secondaryResults)==null?void 0:f.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Z("swatcheroo_pbs_load_grid")&&!_.Z("swatcheroo_provide_all_data_on_scheduled_job")){_.wh.cancelJob(this.setRichGridJobId_);var v,E,n,f,x,y,Q;this.setRichGridRendererData((v=this.data)==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.secondaryResults)==null?void 0:(x=f.secondaryResults)==null?void 0:(y=x.results)==null?void 0:(Q=y[0])==null?
void 0:Q.richGridRenderer)}},
setRichGridRendererData:function(v){this.richGridRendererData=v},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,E=(v=this.data)==null?void 0:v.engagementPanels;if(E==null?0:E.length){v=null;E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;if(((f=n.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){v=n;break}}var x,y,Q;v=(x=v)==null?void 0:(y=x.engagementPanelSectionListRenderer)==null?void 0:(Q=y.content)==null?void 0:Q.structuredDescriptionContentRenderer;if(v==null?0:v.items){x=
[];y=_.p(v.items);for(Q=y.next();!Q.done;Q=y.next()){Q=Q.value;if(!_.Z("sd_horizontal_list_show_nav_killswitch")){var e=f=n=E=v=void 0,F=void 0,b=(v=Q.horizontalCardListRenderer)==null?void 0:(E=v.header)==null?void 0:(n=E.richListHeaderRenderer)==null?void 0:(f=n.navigationButton)==null?void 0:(e=f.buttonRenderer)==null?void 0:(F=e.command)==null?void 0:F.commandExecutorCommand;b&&b.commands&&(b.commands=b.commands.filter(function(l){return!_.C(l,_.kb0)}))}Q.expandableVideoDescriptionBodyRenderer||
Q.videoDescriptionHeaderRenderer||x.push(Q)}return{items:x}}}},
constructWarning_:function(v){return{text:_.qD(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.jK(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.Z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.hq(this).getPlayerPromise().then(function(n){n.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.jK(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.wh.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.cP(_.wh,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.Z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.FD("cmi");_.wh.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.p(v);for(var E=v.next();!E.done;E=v.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.jK(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.FD("cmc")},
doRemoveComments_:function(){this.comments={};_.Z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wh.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wh.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,E){var n=_.C(E.endpoint,_.dM);n&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||n.videoId!==E.videoId||n.playlistId&&n.playlistId!==E.playlistId||n.index!==void 0&&n.index!==E.index||typeof n.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.hq(this).getPlayerPromise().then(function(f){var x=n.startTimeSeconds;f.seekTo(x);f.wakeUpControls();x<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.a9_();"t"in v&&(v=_.VTO(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var E,n;(v=_.JC(v==null?void 0:(E=v[0])==null?void 0:(n=E.videoPrimaryInfoRenderer)==null?void 0:n.title))&&_.jK(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.jK(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,E,n){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===n&&(n=f.list,_.Z("polymer_enable_mdx_queue")&&n&&n.startsWith("RQ")&&(n=void 0),f.video_id!==v||n!=E)){var x;_.Z("kevlar_player_watch_endpoint_navigation")?x=_.y91(_.dzR(v,E)):x=this.buildWatchEndpoint_(v,E);_.jK(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,E,n){return _.DI(v,E,n)},
initDclkstatus_:function(){_.hIC()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var E=v.querySelector("#primary-info"),n=v.querySelector("#secondary-info"),f=v.querySelector("#related");E&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(E);n&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(n);f&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.fT(v)}},
handlePlayerUpdated_:function(){_.hq(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,E){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof E!=="undefined"){var n=this.watchNextSkeletonEl_.children,f=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,n.length);E||(f=0,v=n.length);for(E=f;E<v;E++)n[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.Z("external_fullscreen")||_.OL(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.hq(this);E.getPlayerPromise().then(function(n){n.setFauxFullscreen(!!_.Hq())});
this.updateFullBleedElementLocations();v&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,E){return E&&!!v},
computeResponseHasComments:function(v){var E,n,f,x,y;return!!(v==null?0:(E=v.contents)==null?0:(n=E.twoColumnWatchNextResults)==null?0:(f=n.results)==null?0:(x=f.results)==null?0:(y=x.contents)==null?0:y.some(function(Q){var e;return(Q==null?void 0:(e=Q.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,E,n,f){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&f?!1:!!v&&!!Object.keys(v).length&&!E},
identity:_.NF,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var E=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.hq(this).getPlayerPromise().then(function(n){var f=n.getPlayerState();f!==5&&f!==0&&(n=1/n.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==n&&(E.videoHeightToWidthRatio_=n))})},
schedulePlayerSizeUpdate_:function(v){var E=this,n=_.Z("kevlar_watch_while_v2")||_.Z("web_watch_pip"),f=function(){if(E.watchMetadata){var x,y;(y=(x=E.watchMetadata).resize)==null||y.call(x)}_.hq(E).getPlayerPromise().then(function(Q){if(_.Z("kevlar_set_internal_player_size")){if(!n||!E.isMiniplayerActive()){var e=E.calculateCurrentPlayerSize_();Q.setInternalSize(e.width,e.height)}}else Q.setSize(NaN,NaN);_.Z("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
v?f():_.Fw(_.wh,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.C(v,_.kfx).survey)},
onDownloadedVideoDeleted:function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1){if(!E.active||(n=E.playerData)==null||!n.offlineState||E.videoId!==v)return x.return();(f=E.player)==null||f.stopVideo();_.xo().navigatingAwayFromWatchDeletedVideo=!0;_.WE(_.zd9,E.hostElement);return _.m(x,_.xo().navigationFinishPromise,2)}_.xo().navigatingAwayFromWatchDeletedVideo=!1;_.yQ(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.Jf(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var E=this.windowSize_.height>=624,n=this.active?this.getScrollTop():0;!v.active&&E&&n>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!E||n<this.watchWhileScrollThreshold_&&!_.Hq())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var v=_.K(this.hostElement).querySelector("#secondary-inner");if(v){var E=_.K(this.hostElement).querySelector("#below"),n=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#comments");f&&n&&E&&(this.defaultTwoColumnLayout?(v.appendChild(f),n.appendChild(v)):(E.appendChild(f),_.hn(E,v)))}}},
isTwoColumnsChanged_:function(v,E){if(v!==!0||E!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(v=_.K(this.hostElement).querySelector("#secondary-inner"))){E=_.K(this.hostElement).querySelector("#below");var n=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#comments");f&&n&&E&&(this.isTwoColumns_?(v.appendChild(f),n.appendChild(v)):(E.appendChild(f),_.hn(E,v)))}}else{v=!_.Z("live_chat_over_engagement_panels");E=_.K(this.hostElement).querySelector("#chat-container");
n=_.K(this.hostElement).querySelector("#panels");var x=_.K(this.hostElement).querySelector("#alerts");f=_.K(this.hostElement).querySelector("#playlist");var y=_.K(this.hostElement).querySelector("#related"),Q=_.K(this.hostElement).querySelector("#donation-shelf"),e=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(x=_.K(this.hostElement).querySelector("#secondary-inner"),v&&x.appendChild(n),x.appendChild(f),_.Z("web_watch_theater_chat")||x.appendChild(E),v||x.appendChild(n),x.appendChild(Q),
x.appendChild(y)):(v&&_.Mm(n,x),_.Mm(f,x),_.Z("web_watch_theater_chat")||_.Mm(E,x),v||_.Mm(n,x),_.Mm(Q,x),e&&_.Mm(y,e));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Z("web_watch_theater_chat")){var v=_.K(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.Z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?_.Z("web_watch_theater_chat_beside_player")?(E=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(v==null?void 0:v.parentElement)!==E&&E.append(v),this.panelsBesidePlayer=!0):
_.Z("web_watch_theater_fixed_chat")&&(E=_.K(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==E&&E.append(v),this.fixedPanels=!0):(_.Z("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Z("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),E=_.K(this.hostElement).querySelector("#playlist"),v&&E?_.Sr(v,E):_.li(new _.yc("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!E})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,E){return _.Z("sw_metadata_vis_toggle_ks")?!0:!!v||!!E},
computeForceDarkPanelTheme:function(v){return _.Z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.NQ(this.hostElement,v)}catch(E){_.li(E)}},
videoHeightToWidthRatioChanged_:function(v,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.hq(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.hq(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.tTx(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var E=_.vs(v)||0;_.Bg(v,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.vs("yt-fullerscreen-edu-button-click-count")||0,E=_.vs("yt-fullerscreen-edu-button-shown-count")||0,n=_.WG("external_fullscreen_button_shown_threshold"),f=v>=_.WG("external_fullscreen_button_click_threshold")||E>=n;_.hq(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.P().resolve(_.SY).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var v=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.wh.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.wh.addLowPriorityJob(function(){v.fullHeightPanelPositionUpdateJobId=0;var E=_.K(v.hostElement).querySelector("#secondary"),n=_.K(v.hostElement).querySelector("#fixed-secondary");E=E.getBoundingClientRect();var f=E.width;v.swatcherooSqueezeback&&
(f+=_.An);if(v.swatcherooSqueezeback){var x=_.K(v.hostElement).querySelector("#squeezeback-constraining-container");x.style.width=f+"px";x.style.flex="0 0 "+f+"px"}n.style.width=f+"px";n.style.left=E.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.wh.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.wh.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var E;!v.isTwoColumns_||v.theater||v.fullscreen?E=460:E=v.calculateNormalPlayerSize_().height;var n=E+"px";_.Z("live_chat_taller_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Z("live_chat_medium_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Z("live_chat_scaled_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":n,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var v=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Z("web_watch_flexy_adjust_sidebar_width"))&&!_.Z("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.wh.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.wh.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;if(v.isTwoColumns_){var E=_.An6(v.windowSize_,v.calculateNormalPlayerSize_().width);E!==v.currentSidebarWidth&&(v.currentSidebarWidth=
E,v.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":E+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.LG(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var E=_.K(this.hostElement).querySelector("#engagement-panel-scrim");v?E.addEventListener("tap",_.uo(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.uo(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var E=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var n=this.getPageScrollingElement(),f=this.getScrollTop(),x=f+n.clientHeight-56;if(E<f+56)E-=56;else if(v>x)E=v-n.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.Z("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.xr().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,E,n){this.active&&this.trackEngagementPanelVisibility&&!_.jL6.includes(n)&&(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(n),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.kZ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),E!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(n),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeFullBleedPlayer:function(v,E){return v||E},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,E){return!v&&E},
updatePanelsLocation:function(){if(_.Z("web_watch_enable_fs_squeezeback_panels")){var v=_.K(this.hostElement).querySelector("#below"),E=_.K(this.hostElement).querySelector("#panels"),n=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),f=_.K(this.hostElement).querySelector("#secondary-inner");this.fullscreen?n.appendChild(E):this.isTwoColumns_?_.hn(f,E):v.appendChild(E)}},
swatcherooUpdatePanelsLocation:function(v,E,n,f,x,y){if(this.is==="ytd-watch-grid"){E=v&&!E;this.swatcherooSplitScroll&&(E?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));n=_.K(this.hostElement).querySelector("#panels");var Q=_.K(this.hostElement).querySelector("#playlist"),e=_.K(this.hostElement).querySelector("#fixed-secondary"),F=_.K(this.hostElement).querySelector("#fixed-below"),
b=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),l=_.K(this.hostElement).querySelector("#chat-container");y&&(v?e.appendChild(n):F.appendChild(n));x?v?e.appendChild(l):F.appendChild(l):_.Sr(l,b);f?v?e.appendChild(Q):F.appendChild(Q):_.Sr(Q,b);this.swatcherooSplitScroll&&(v=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#columns"),x=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),E?x.appendChild(v):
f.appendChild(v))}},
computeMetadataSkinnyMode:function(v,E,n){return this.is!=="ytd-watch-grid"?!1:v?n:E},
computeWatchWhilePanelsActive:function(v,E){return v||E},
computeNoBorderOnChat:function(v){return _.Z("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,E){return v&&!E},
computePanelExpanded:function(v,E,n){return v||E||n},
computeSqueezeback:function(v,E){if(_.Z("web_watch_enable_fs_squeezeback_panels"))return v&&E},
computeSwatcherooSqueezeback:function(v,E,n){return this.is!=="ytd-watch-grid"||_.Z("ww_squeezeback_killswitch")?!1:v&&E&&n},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(v){_.hq(this).getPlayerPromise().then(function(E){var n;(n=E.changeMarkerVisibility)==null||n.call(E,_.C(v,_.Wx).isVisible||!1,_.C(v,_.Wx).entityKeys||[],_.C(v,_.Wx).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.dG().dispatch(_.u9M(v.detail))},
onSetPlaylistCollapsed:function(v){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!v)},
provideRenderingData:function(v,E){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.Z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=E;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=
E;break;case "DONATION_SHELF":this.donation=E;break;case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
E}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.P().resolve(_.hf).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Bd0;_.t5P=function(v){return v.shorts.isShortsActive};
_.vH3=function(v){return v.findIndex(function(E){return Bd0.indexOf(E.tagName)>-1})>-1};
_.EHd=function(v){return _.un({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:v}})};
_.nHC=function(){var v=_.P().resolve(_.LQ);_.zVF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(v.isFullscreenEnabled()?_.gM(document.documentElement):_.S69(document.documentElement))};
Bd0=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.ON=new Map;_.ON.set(32,59972);_.ON.set(27,50765);_.ON.set(70,60102);_.ON.set(76,60221);_.ON.set(77,60222);_.ON.set(74,60223);_.ON.set(84,60224);_.ON.set(38,61941);_.ON.set(40,61942);_.ON.set(73,62521);_.ON.set(67,62522);_.ON.set(80,63390);_.ON.set(78,63397);_.ON.set(75,59972);_.ON.set(188,63385);_.ON.set(190,63384);_.ON.set(36,63387);
_.ON.set(35,63386);_.ON.set(37,63388);_.ON.set(39,63389);_.ON.set(79,63423);_.ON.set(87,63424);_.ON.set(107,63426);_.ON.set(109,63425);_.ON.set(65,63428);_.ON.set(83,63430);_.ON.set(68,63429);_.ON.set(221,63431);_.ON.set(219,63432);_.ON.set(97,63439);_.ON.set(98,63440);_.ON.set(99,63441);_.ON.set(100,63442);_.ON.set(101,63443);_.ON.set(102,63444);_.ON.set(103,63445);_.ON.set(104,63446);_.ON.set(105,63447);_.kd=new Map;_.kd.set(80,63390);_.kd.set(78,63397);_.kd.set(188,63400);_.kd.set(190,63401);
_.kd.set(191,60765);_.kd.set(13,247917);_.Wc=new Map;_.$d=new Map;
}catch(e){_._DumpException(e)}
try{
var nrO,x0O,cJb,yJU;_.t8d=function(v){return v.ui.guideIsVisibleButNotPersistent};
_.BYP=function(v){return v.ui.tabGesturesIsActive};
_.vrU=function(){var v=_.$6("service_worker_scope");try{return navigator.serviceWorker.getRegistration(v)}catch(E){return Promise.reject(E)}};
_.ErR=function(v){return!(!v||!v.pushManager)};
nrO=function(){return _.vrU().then(_.ErR).catch(function(){return!1})};
_.or_=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?nrO():Promise.resolve(!1)};
_.fJM=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
x0O=function(){var v,E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,_.wr.getInstance(),2);case 2:v=f.yieldResult;if(!v){E=void 0;f.jumpTo(3);break}return _.m(f,v.get("lmqf"),4);case 4:E=f.yieldResult;case 3:switch((n=E)||(n="SD"),n){case "HD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
cJb=function(v){var E,n,f;return _.X(function(x){if(x.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Z("disable_av1_setting")){var y=window.localStorage["yt-player-av1-pref"];y=y==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":y==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else y="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(E=v===y)return x.jumpTo(2);f=n=v;return _.m(x,x0O(),3)}x.nextAddress!=2&&(E=f===x.yieldResult);return x.return(E)})};var pVK;var Qip=_.bI.IronButtonState,XV1=(0,_.Fl)(HTMLElement);
_.Ee({_template:function(){if(pVK!==void 0)return pVK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;yJU===void 0&&(yJU=document.createElement("template"));var f=yJU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return pVK=v},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Qip,_.mw,_.lI,_.Pk],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(v){var E=(0,_.vZ)(this);E.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:v});E.shadowRoot.appendChild(v);return XV1.prototype._attachDom.call(this,v)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.pG(this.$.content).getDistributedNodes(),E=0,n=v.length;E<n;E++)if(v[E].nodeType===Node.ELEMENT_NODE)return v[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var E="";v?E=v.label||v.getAttribute("label")||v.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(v,E){return E?E:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",v)}});_.KJ=new _.z("navigateAction");var epb=new _.z("formRenderer");var d8=function(){var v=_.L2.apply(this,arguments)||this;v.showInput=!1;return v};
_.S(d8,_.L2);_.c=d8.prototype;_.c.detached=function(){this.showInput&&window.removeEventListener("click",_.uo(this,this.closeOnOutsideClick_))};
_.c.stopPropagation_=function(v){this.showInput&&v.stopPropagation()};
_.c.closeOnOutsideClick_=function(v){this.closeOnOutsideClickCondition(v)&&(this.showInput=!1,window.removeEventListener("click",_.uo(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.c.closeOnOutsideClickCondition=function(){return!0};
_.c.closeOnOutsideClickHandler=function(){};
_.c.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.uo(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.c.openOnClickHandler=function(){};
_.c.showInputChanged=function(){};
_.c.setShowInput=function(v){this.showInput=v};
d8.prototype.setShowInput=d8.prototype.setShowInput;d8.prototype.showInputChanged=d8.prototype.showInputChanged;d8.prototype.openOnClickHandler=d8.prototype.openOnClickHandler;d8.prototype.openOnClick_=d8.prototype.openOnClick_;d8.prototype.closeOnOutsideClickHandler=d8.prototype.closeOnOutsideClickHandler;d8.prototype.closeOnOutsideClickCondition=d8.prototype.closeOnOutsideClickCondition;d8.prototype.closeOnOutsideClick_=d8.prototype.closeOnOutsideClick_;d8.prototype.stopPropagation_=d8.prototype.stopPropagation_;
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],d8.prototype,"showInput",void 0);_.k([_.jk("click"),_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],d8.prototype,"stopPropagation_",null);_.k([_.On("showInput"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],d8.prototype,"showInputChanged",null);d8=_.k([_.Gw()],d8);_.FlC=[d8.prototype];var m0K;var wVb;var IN=function(){return _.g.apply(this,arguments)||this};
_.S(IN,_.g);_.c=IN.prototype;_.c.computePreselectedOption=function(v,E){return E===this.itemSelected_?v:void 0};
_.c.dataChanged_=function(){var v=this;this.preselectedSubreason=this.itemSelected_=-1;var E;(E=this.data)!=null&&E.key&&_.IS(this,function(){var n,f=Number((n=v.data)==null?void 0:n.key);!Number.isNaN(f)&&(v.itemSelected_=f,n=(n=(v.data.items||[])[f])&&n.optionSelectableItemRenderer&&n.optionSelectableItemRenderer.preselectedIndex)&&(v.preselectedSubreason=n)})};
_.c.isSubReasonHidden_=function(v,E){return v!=E};
_.c.onTopItemSelected_=function(v,E){for(var n=_.K(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),f=0,x=n.length;f<x;f++)n[f].select(0);_.OL(this.hostElement,"yt-report-form-update",[E.item.value]);v.stopPropagation()};
_.c.onItemSelected_=function(v,E){_.OL(this.hostElement,"yt-report-form-update",[E.item.value]);v.stopPropagation()};
_.c.getItem_=function(v){return v.serviceItem?v.serviceItem:v.navigationItem?v.navigationItem:v.optionSelectableItemRenderer?v.optionSelectableItemRenderer:null};
_.c.computeText_=function(v){return(v=this.getItem_(v))?this.ytRendererBehavior.getSimpleString(v.text):null};
_.c.validate=function(){return this.itemSelected_!==-1};
_.c.computeAriaLabel_=function(v){var E=_.JC(v.text);(v=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label)&&(E+=". "+v);return E};
_.c.computeItemSelected_=function(v){return v};
_.c.preventSelection_=function(v){v.stopPropagation();this.tooltipTapped=!0};
_.c.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.c.updateItemSelectedFromBinding=function(v){this.itemSelected_=v.detail.value};
_.c.save=function(){var v;this.validate()&&(v=this.data)!=null&&v.items&&(v=this.data.items[this.itemSelected_],v!=null&&v.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(v.optionSelectableItemRenderer.submitEndpoint)||_.$Z(this.hostElement,[v.optionSelectableItemRenderer.submitEndpoint])))};
IN.prototype.onPaperRippleTransitionEnd_=IN.prototype.onPaperRippleTransitionEnd_;IN.prototype.dataChanged_=IN.prototype.dataChanged_;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],IN.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IN.prototype,"data",void 0);_.k([_.H({value:-1}),_.W("design:type",Number)],IN.prototype,"itemSelected_",void 0);
_.k([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.W("design:type",Number)],IN.prototype,"value",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],IN.prototype,"restoreFocusOnClose",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],IN.prototype,"tooltipTapped",void 0);_.k([_.H({value:-1}),_.W("design:type",Number)],IN.prototype,"preselectedSubreason",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IN.prototype,"dataChanged_",null);_.k([_.jk("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IN.prototype,"onPaperRippleTransitionEnd_",null);IN=_.k([_.p5({is:"yt-options-renderer",disableElementRegistration:!0})],IN);
_.u(IN,"yt-options-renderer",function(){if(wVb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;m0K===void 0&&(m0K=document.createElement("template"));var f=m0K;n.call(E,f.content.cloneNode(!0),v.content.firstChild);wVb=v}v=wVb;return v},{mode:2});var bs0;var lJp;var si_;var rJ3;var PUR;var aJx;var Yv=function(){return _.g.apply(this,arguments)||this};
_.S(Yv,_.g);Yv.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Yv.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Yv.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.Wq(this.hostElement,"yt-share-panel-can-select-contact-action"))v&&v.detail&&(v.detail.x||v.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:v?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.OL(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.k([_.H({observer:"onDataChanged"}),_.W("design:type",Object)],Yv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],Yv.prototype,"componentTitle",void 0);_.k([_.Wp("#thumbnail"),_.W("design:type",Object)],Yv.prototype,"thumbnail",void 0);Yv=_.k([_.p5({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Yv);
_.u(Yv,"yt-enrolled-contact-renderer",function(){if(aJx===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;PUR===void 0&&(PUR=document.createElement("template"));var f=PUR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);aJx=v}v=aJx;return v},{mode:2});var Zs_;var CUp;var hu=function(){return _.g.apply(this,arguments)||this};
_.S(hu,_.g);hu.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
hu.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
hu.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.Wq(this.hostElement,"yt-share-panel-can-select-contact-action"))v&&v.detail&&(v.detail.x||v.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:v?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.OL(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.k([_.H({observer:"onDataChanged"}),_.W("design:type",Object)],hu.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],hu.prototype,"componentTitle",void 0);_.k([_.Wp("#thumbnail"),_.W("design:type",Object)],hu.prototype,"thumbnail",void 0);hu=_.k([_.p5({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],hu);
_.u(hu,"yt-suggested-contact-renderer",function(){if(CUp===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Zs_===void 0&&(Zs_=document.createElement("template"));var f=Zs_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);CUp=v}v=CUp;return v},{mode:2});var Au=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-share-panel-reset-action":"onReset"};return v};
_.S(Au,_.g);Au.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"}}}}}};
Au.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.OL(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Au.prototype.onReset=function(){for(var v=_.K(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),E=v.length-1;E>=0;E--)v[E].classList.toggle("selected")};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({observer:"onDataChanged"}),_.W("design:type",Object)],Au.prototype,"data",void 0);
Au=_.k([_.p5({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Au);
_.u(Au,"yt-contact-section-renderer",function(){if(rJ3===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;si_===void 0&&(si_=document.createElement("template"));var f=si_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);rJ3=v}v=rJ3;return v},{mode:2});var Vg=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return v};
_.S(Vg,_.g);_.c=Vg.prototype;_.c.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"}}}};
_.c.onYtRefreshFormCommand=function(v){var E;(v=_.C((E=_.C(v,_.v2F))==null?void 0:E.formRenderer,epb))&&this.set("data",v)};
_.c.reset=function(){var v=_.K(this.hostElement).querySelector("#fields").children;v=_.p(v);for(var E=v.next();!E.done;E=v.next())E=E.value,E.reset&&E.reset()};
_.c.getForm=function(){var v={},E=_.K(this.hostElement).querySelector("#fields").children;E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;if(!n.validate())return null;v[n.data.key]=n.value}return v};
_.c.submitFormFields=function(){if(this.fields)for(var v=_.p(this.fields),E=v.next();!E.done;E=v.next())E=E.value,E.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?E.save():E.nodeName==="YT-OPTIONS-RENDERER"&&E.save()};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Vg.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Vg.prototype,"data",void 0);_.k([_.$y("#fields > *"),_.W("design:type",Array)],Vg.prototype,"fields",void 0);
Vg=_.k([_.p5({is:"yt-form-renderer",disableElementRegistration:!0})],Vg);
_.u(Vg,"yt-form-renderer",function(){if(lJp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;bs0===void 0&&(bs0=document.createElement("template"));var f=bs0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);lJp=v}v=lJp;return v},{mode:2});var MsO;var Dh=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return v};
_.S(Dh,_.g);Dh.prototype.onCheckboxChange=function(v){this.data&&(v=(this.checked=_.Sk(v).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})};
Dh.prototype.handleUpdateCheckboxCommand=function(v){(v=_.C(v,_.byU))&&this.data&&this.data.id===v.id&&(this.set("data.disabled",v.disabled),this.set("data.title",v.title))};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Dh.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dh.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Dh.prototype,"checked",void 0);Dh=_.k([_.N({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Dh);
_.u(Dh,"ytd-settings-checkbox-renderer",function(){if(MsO!==void 0)return MsO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return MsO=v},{mode:1});var ShM;var Ht=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return v};
_.S(Ht,_.g);Ht.prototype.dataChanged=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return v.radio.removeAttribute("checked"),!v.data||!v.data.id||v.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.fJM()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(E=v.data&&v.data.id)?_.m(n,cJb(v.data.id),4):n.jumpTo(3):(v.set("data.hidden",!0),n.jumpTo(0));n.nextAddress!=3&&(E=n.yieldResult);E&&_.OL(v.hostElement,"yt-select-settings-radio-option",[v.data.id]);_.yQ(n)})};
Ht.prototype.onButtonChanged=function(v){_.Sk(v).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.OL(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Ht.prototype.onSelectOption=function(v){this.data&&this.data.id&&(this.data.id===v?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.k([_.Wp("#radio"),_.W("design:type",Object)],Ht.prototype,"radio",void 0);_.k([_.H(),_.W("design:type",Object)],Ht.prototype,"data",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],Ht.prototype,"dataChanged",null);Ht=_.k([_.N({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Ht);
_.u(Ht,"ytd-settings-radio-option-renderer",function(){if(ShM!==void 0)return ShM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ShM=v},{mode:1});var U0b;var g8=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return v};
_.S(g8,_.g);
g8.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"}}}};
g8.prototype.handleUpdateTextCommand=function(v){(v=_.C(v,_.lrw))&&this.data&&this.data.id===v.id&&this.set("data",v)};
g8.prototype.handleUpdateConnectedAppRendererCommand=function(v){if(_.C(v,_.PgX)&&this.data){var E,n;if(v=(E=_.C(v,_.PgX))==null?void 0:(n=E.newConnectedAppRenderer)==null?void 0:n.connectedAppRenderer)this.data=v}};
g8.prototype.computeConnectedAppStyle=function(v){return v.style?v.style.toLowerCase().replace(/_/g,"-"):""};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],g8.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.W("design:type",String)],g8.prototype,"connectedAppStyle",void 0);g8=_.k([_.N({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],g8);
_.u(g8,"ytd-connected-app-renderer",function(){if(U0b!==void 0)return U0b;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return U0b=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.lY("iuT5Oc");

_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("L3n37");
var ejx=function(v){return v.watch.isLearningJourneyActive},FVM=_.ci(115994),mfU=_.ci(115993),wHO=function(v,E,n){var f=this;
var x=n.dragDownAction;this.layer=0;this.JSC$20366_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$20366_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var y=_.Tl();_.BD(y,FVM,this.layer);_.BD(y,mfU,this.layer);this.dragDownAction=function(){x();_.aX(y,{visualElement:f.fullscreen?FVM:mfU})};
this.gesture=new _.ff(v,E,this.JSC$20366_watchConfig,"pandown");this.attach()};
wHO.prototype.attach=function(){this.gesture.attach()};
wHO.prototype.detach=function(){this.gesture.detach()};
wHO.prototype.update=function(v){this.fullscreen=v;this.gesture.config=v?this.JSC$20366_watchFullScreenConfig:this.JSC$20366_watchConfig};var bF6=function(v){_.jn.call(this);var E=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(n){E.initOrDisposeActiveModules(n)}));
this.onAttached()};
_.S(bF6,_.jn);_.c=bF6.prototype;_.c.getRoot=function(){return this.rootElement};
_.c.getElement=function(v){return this.rootElement.getElement(v)};
_.c.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.c.getPlayerResponse=function(){return this.playerResponse};
_.c.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.c.getWatchNextResponse=function(){return this.watchNextResponse};
_.c.registerActionHandler=function(v,E){var n=this;if(_.Z("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Jo(_.qw.getInstance(),(f[v]=E,f),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),f={},_.Jo(_.qw.getInstance(),(f[v]=function(){var x=_.rV.apply(0,arguments);return(n.actionHandlers.get(v)||[]).map(function(y){return y.apply(null,_.s8(x))})},f),this.getRoot())),this.actionHandlers.get(v).push(E)};
_.c.unregisterActionHandler=function(v){if(_.Z("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.K3(_.qw.getInstance(),(E[v]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(v))?(E.pop(),E.length===0&&(E={},_.K3(_.qw.getInstance(),(E[v]=!0,E),this.getRoot()),this.actionHandlers.delete(v))):_.li(new _.yc("Attempted to unregister an action handler which is not registered.",v))};
_.c.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Gs(this.rootElement.pageDisposeJobs,v)};
_.c.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.zs(this.rootElement.pageDisposeJobs,v)};
_.c.dispatchEvent=function(v,E){_.jK(this.rootElement,v,E)};
_.c.provideRenderingData=function(v,E){this.rootElement.provideRenderingData(v,E)};
_.c.scrollWatchTo=function(v,E){var n;(n=this.watchScrollManager)==null||n.scrollWatchTo(v,E)};
_.c.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.IS(v,function(){if(v&&v.firstElementChild){var E=v.querySelector(".html5-video-player");E&&(_.gT(_.P().resolve(_.ph)),E.focus())}else _.li(Error("jm"))})};
_.c.updateCinematicFullscreenConfig=function(){var v=!!this.rootElement.theater,E=!!this.rootElement.fullscreen,n;(n=this.watchCinematicManager)==null||_.XhU(n,E,v)};
_.c.subscribeToActiveChanged=function(v,E){E=E===void 0?!0:E;var n=_.yC(_.dG(),ejx,function(f){v(f)});
E&&v(ejx(_.dG().getState()));return n};
_.c.isActive=function(){return ejx(_.dG().getState())};
_.c.onAttached=function(){var v=_.Z("external_fullscreen");_.Z("use_unified_flag_accessor")&&(v=_.P().resolve(_.QOC).retriever.getFlag(_.UE1));(v||_.Sp("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.c.initPersistentModules=function(){if(_.Z("kevlar_watch_flexy_theater_manager")){var v=new _.NHO(this);_.BV(this,v)}v=new _.MvU(this);_.BV(this,v);v=new _.KD(this);_.BV(this,v);v=new _.DF(this);_.BV(this,v);v=new _.Bc1(this);_.BV(this,v);v=new _.I7(this);_.BV(this,v);_.Z("kevlar_watch_flexy_playlist_manager")&&(v=new _.Ek0(this),_.BV(this,v))};
_.c.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.gX(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.gAP(this)),this.activeModules.push(new _.OA6(this)),this.activeModules.push(new _.p3K(this)),this.activeModules.push(new _.Hx(this)),_.Z("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.LYp(this)),this.activeModules.push(new _.$4P(this)),_.Z("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.X3U(this)),
_.Z("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.EAO(this)),_.Z("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.cH6(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Z("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.i_3(this)),_.Z("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Z_O(this)),v=_.Z("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.Z("kevlar_watch_flexy_comments_manager")&&!v&&this.activeModules.push(new _.ls0(this)),_.Z("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.dX(this)),this.activeModules.push(new _.GD3(this)),this.activeModules.push(new _.uR_(this)),_.Z("web_enable_timely_actions")&&this.activeModules.push(new _.RW_(this)),_.Z("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.PeK(this)),_.Z("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.XSd(this)),
_.Z("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.z2K(this)),_.Z("web_player_rtr_ctrls")&&this.activeModules.push(new _.Zfx(this))):(_.js(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.c.disposeInternal=function(){_.jn.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hK.Object.defineProperties(bF6.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var lx6={},so3=["learning-journey-engagement-panel","PAlearning_chat"];
lx6.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.I2.YtPlayerListenerBehavior,_.gm.YtRendererstamperBehavior,_.N2.YtActionHandlerBehavior,_.Zi.YtPageBehavior,_.TU.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},
infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},
playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Sp("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Z("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 _.Sp("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 _.Z("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Z("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.WG("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.WG("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!_.Z("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Z("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 _.Z("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Z("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("web_watch_rounded_player_large")||_.Z("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Z("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Z("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("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 _.Z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Z("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 _.Z("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var v={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:_.Zh(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Zh(["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"||_.Z("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(v.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},v.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},v.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}},reuseComponents:!1});return v},
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 v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.Z("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.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;_.Z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Z("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.WFU(function(){return _.hq(v)},this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.Z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
_.Z("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.BX;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;_.Z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.Z("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));_.Z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.uo(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.Z("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Z("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.Z("kevlar_watch_while_v2")&&!_.Z("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.Z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.jK(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var E=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var n;(n=this.watchController)==null||n.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.XD({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.FD("nw");this.loading=!1;_.cP(_.wh,function(){E.initDclkstatus_();var f,x=((f=E.player)==null?void 0:f.getVideoData().cpn)||"";_.KF_(function(y,Q){_.iEO(y,Q,x)})})},
onPageLoadWithSameData_:function(){_.Z("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 v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;if(_.Z("kevlar_watch_frame0_loading_state")){var E,n,f;v=(E=this.loadingData)==null?void 0:(n=E.endpoint)==null?void 0:(f=n.watchEndpoint)==null?void 0:f.videoId;var x;v&&(x="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,n;(n=(E=this.watchMetadata).updateSentimentBarWidth)==
null||n.call(E);var f,x;(x=(f=this.watchMetadata).resize)==null||x.call(f)}_.Z("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(v){var E=_.K(this.hostElement).querySelector(v);E?_.NA(E,!1):_.li(new _.yc("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var E=_.K(this.hostElement).querySelector(v);E?_.uc(E):_.li(new _.yc("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?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(v){var E=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wh.addLowPriorityJob(function(){E.onWindowResized_(_.tC(!0))})},
updateTheaterModeState_:function(v){if(!_.Z("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.O6C()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var v=this.theater;_.Z("external_fullscreen")&&this.fullscreen&&(v=!0);v=v?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),n=_.Z("kevlar_watch_while_v2")||_.Z("web_watch_pip");E.parentElement!==v&&(n&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.hq(this).appendTo(v,E),v.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.P().resolve(_.hf).deactivate(),2);v.updatePlayerLocation();_.yQ(E)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var E=this.getCinematicsLocationContainer();v.parentElement!==E&&E.appendChild(v);var n;(n=this.watchController)==null||n.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(v,E){var n=document.documentElement.hasAttribute("dark"),f=n&&_.Z("web_cinematic_theater_mode"),x=n&&_.Z("web_cinematic_fullscreen");n=!n&&this.cinematicLightTheme;return v&&f||E&&x||(E||v)&&n},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v=this,E;(E=this.watchController)==null||E.setWatchNextResponse(this.data);_.Z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.P().resolve(_.SY).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,_.Z("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.wh.addLowPriorityJob(function(){_.kZ(v.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Z("web_watch_start_chat_in_theater_mode")){var n,f,x;if((n=this.data)==null?0:(f=n.contents)==null?0:(x=f.twoColumnWatchNextResults)==null?0:x.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var y,Q;((y=this.data)==null?0:(Q=y.contents)==null?0:Q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(v){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(E=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),E&&!v||_.IS(this,function(){_.FD("pbu")}));
this.setPlayerAds_();_.kZ(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(v){_.dG().dispatch(_.un({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new bF6(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);_.Z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.hq(this);_.Z("kevlar_disable_prepare_player")||
E.preparePlayer();_.Z("kevlar_watch_flexy_playlist_manager")||_.P().resolve(_.SY).setPlayer(E);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.s9()+"px"};this.is==="ytd-watch-grid"&&(E["--ytd-watch-flexy-sidebar-width"]=_.H3+"px",E["--ytd-watch-grid-horizontal-page-margins"]=_.An+"px",E["--ytd-watch-grid-columns-top-margins"]=_.MXU+"px",E["--ytd-watch-grid-min-player-height-medium"]="360px");!_.WG("kv_pl_mx_sz_ks")&&
_.WG("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.qvO+"px");_.WG("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.JNC+"px");this.safeUpdateStyles(E);_.Z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new wHO(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
_.Z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var v=_.s9(),E=_.Vi+v,n=E;this.fixedPanels&&(E+=_.H3);var f=657+v;v=1327+v;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(v+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+n+"px)"},
calculateCurrentPlayerSize_:function(){var v=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild;return v&&v.active||this.theater||_.Z("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.fs(NaN,NaN):_.kG(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.kG(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.uU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.tC());_.Z("browse_skeleton_removal_on_watch_killswitch")||_.Sp("IS_SHELL_LOAD")&&_.VnP();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.hq(this);E.addEventListener("yt-player-updated",_.uo(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(n){v.playerApiReady_(n)});
_.Z("kevlar_watch_flexy_playlist_manager")||(E=_.P().resolve(_.SY),_.Z("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.uo(this,this.onYtNavigate_)),E.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.uo(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wh.addLowPriorityJob(function(){_.jK(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.hq(this).removeEventListener("yt-player-updated",_.uo(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Z("kevlar_watch_flexy_playlist_manager")){var v=_.P().resolve(_.SY);_.Z("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.uo(this,this.onYtNavigate_));
v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.uo(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.jK(this.hostElement,"yt-autonav-pause-player",!1);v=_.Hq();_.Z("kevlar_exit_fullscreen_leaving_watch")&&v&&_.gM(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.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(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ad("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Z("kevlar_unified_player")||_.Z("kevlar_player_new_bootstrap_adoption"))&&_.uT()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,E){E=E===void 0?!0:E;_.Hq()&&_.Z("external_fullscreen")&&_.gM(document.documentElement);this.theaterRequested_=v;E&&_.oP("wide",v?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.OL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.jK(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(v){_.ss(v,typeof this.player),this.player&&_.ss(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.OL(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,E){return this.loading?E:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.p(v);for(var E=v.next();!E.done;E=v.next())E=E.value,E.youThereRenderer&&_.GfM(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.gh()<v.lowEngagementThresholdMs||_.RIK(E,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OL(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,E,n){return!!v&&!this.isVideoPlayable_(v,n)&&!E},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,E){if(!v)return!1;var n=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var x;E=E==null?void 0:(x=E.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!n||!!f||!!v||!!E},
hasWatchNextResponseErrorRenderer:function(v){var E=this.getPageContents(v),n,f,x,y,Q;return!(v==null?0:(n=v.contents)==null?0:(f=n.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((x=E[0])==null?0:(y=x.itemSectionRenderer)==null?0:(Q=y.contents[0])==null?0:Q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,E,n){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.Z("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&x.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);y==void 0&&(y=!0);!n||this.isVideoPlayable_(v,this.getPlayerOverlays_(E))||
f||x||!y||_.P().resolve(_.SY).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Dz1()},
onPlayerFeedbackStartRequest_:function(v){_.OL(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.OL(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,E,n,f,x,y,Q,e,F=((v=this.data)==null?NaN:(E=v.contents)==null?NaN:(n=E.twoColumnWatchNextResults)==null?NaN:(f=n.secondaryResults)==null?NaN:(x=f.secondaryResults)==null?NaN:(y=x.offerModule)==null?NaN:(Q=y.tvfilmOfferModuleRenderer)==null?NaN:(e=Q.actionButtons)==null?NaN:e.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(F>=0?F:0)+".buttonRenderer."];E=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(n=E.next();!n.done;n=E.next())for(n=n.value,f=_.p(v),x=f.next();!x.done;x=f.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+n+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.WE(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.jK(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.jK(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.dG().dispatch(_.x8P(v))},
onPlayerSubscribe_:function(v){_.OL(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.OL(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.OL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
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(v){return!_.Z("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return _.Z("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var v,E,n,f;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.secondaryResults)==null?void 0:f.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Z("swatcheroo_pbs_load_grid")&&!_.Z("swatcheroo_provide_all_data_on_scheduled_job")){_.wh.cancelJob(this.setRichGridJobId_);var v,E,n,f,x,y,Q;this.setRichGridRendererData((v=this.data)==null?void 0:(E=v.contents)==null?void 0:(n=E.twoColumnWatchNextResults)==null?void 0:(f=n.secondaryResults)==null?void 0:(x=f.secondaryResults)==null?void 0:(y=x.results)==null?void 0:(Q=y[0])==null?
void 0:Q.richGridRenderer)}},
setRichGridRendererData:function(v){this.richGridRendererData=v},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,E=(v=this.data)==null?void 0:v.engagementPanels;if(E==null?0:E.length){v=null;E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;if(((f=n.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){v=n;break}}var x,y,Q;v=(x=v)==null?void 0:(y=x.engagementPanelSectionListRenderer)==null?void 0:(Q=y.content)==null?void 0:Q.structuredDescriptionContentRenderer;if(v==null?0:v.items){x=
[];y=_.p(v.items);for(Q=y.next();!Q.done;Q=y.next()){Q=Q.value;if(!_.Z("sd_horizontal_list_show_nav_killswitch")){var e=f=n=E=v=void 0,F=void 0,b=(v=Q.horizontalCardListRenderer)==null?void 0:(E=v.header)==null?void 0:(n=E.richListHeaderRenderer)==null?void 0:(f=n.navigationButton)==null?void 0:(e=f.buttonRenderer)==null?void 0:(F=e.command)==null?void 0:F.commandExecutorCommand;b&&b.commands&&(b.commands=b.commands.filter(function(l){return!_.C(l,_.kb0)}))}Q.expandableVideoDescriptionBodyRenderer||
Q.videoDescriptionHeaderRenderer||x.push(Q)}return{items:x}}}},
constructWarning_:function(v){return{text:_.qD(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.jK(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.Z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.hq(this).getPlayerPromise().then(function(n){n.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.jK(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.wh.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.cP(_.wh,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.Z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.FD("cmi");_.wh.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.p(v);for(var E=v.next();!E.done;E=v.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.jK(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.FD("cmc")},
doRemoveComments_:function(){this.comments={};_.Z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wh.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wh.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,E){var n=_.C(E.endpoint,_.dM);n&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||n.videoId!==E.videoId||n.playlistId&&n.playlistId!==E.playlistId||n.index!==void 0&&n.index!==E.index||typeof n.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.hq(this).getPlayerPromise().then(function(f){var x=n.startTimeSeconds;f.seekTo(x);f.wakeUpControls();x<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.a9_();"t"in v&&(v=_.VTO(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var E,n;(v=_.JC(v==null?void 0:(E=v[0])==null?void 0:(n=E.videoPrimaryInfoRenderer)==null?void 0:n.title))&&_.jK(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.jK(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,E,n){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===n&&(n=f.list,_.Z("polymer_enable_mdx_queue")&&n&&n.startsWith("RQ")&&(n=void 0),f.video_id!==v||n!=E)){var x;_.Z("kevlar_player_watch_endpoint_navigation")?x=_.y91(_.dzR(v,E)):x=this.buildWatchEndpoint_(v,E);_.jK(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,E,n){return _.DI(v,E,n)},
initDclkstatus_:function(){_.hIC()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var E=v.querySelector("#primary-info"),n=v.querySelector("#secondary-info"),f=v.querySelector("#related");E&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(E);n&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(n);f&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.fT(v)}},
handlePlayerUpdated_:function(){_.hq(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,E){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof E!=="undefined"){var n=this.watchNextSkeletonEl_.children,f=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,n.length);E||(f=0,v=n.length);for(E=f;E<v;E++)n[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.Z("external_fullscreen")||_.OL(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.hq(this);E.getPlayerPromise().then(function(n){n.setFauxFullscreen(!!_.Hq())});
this.updateFullBleedElementLocations();v&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,E){return E&&!!v},
computeResponseHasComments:function(v){var E,n,f,x,y;return!!(v==null?0:(E=v.contents)==null?0:(n=E.twoColumnWatchNextResults)==null?0:(f=n.results)==null?0:(x=f.results)==null?0:(y=x.contents)==null?0:y.some(function(Q){var e;return(Q==null?void 0:(e=Q.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,E,n,f){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&f?!1:!!v&&!!Object.keys(v).length&&!E},
identity:_.NF,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Z("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.Z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var E=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.hq(this).getPlayerPromise().then(function(n){var f=n.getPlayerState();f!==5&&f!==0&&(n=1/n.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==n&&(E.videoHeightToWidthRatio_=n))})},
schedulePlayerSizeUpdate_:function(v){var E=this,n=_.Z("kevlar_watch_while_v2")||_.Z("web_watch_pip"),f=function(){if(E.watchMetadata){var x,y;(y=(x=E.watchMetadata).resize)==null||y.call(x)}_.hq(E).getPlayerPromise().then(function(Q){if(_.Z("kevlar_set_internal_player_size")){if(!n||!E.isMiniplayerActive()){var e=E.calculateCurrentPlayerSize_();Q.setInternalSize(e.width,e.height)}}else Q.setSize(NaN,NaN);_.Z("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
v?f():_.Fw(_.wh,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.C(v,_.kfx).survey)},
onDownloadedVideoDeleted:function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1){if(!E.active||(n=E.playerData)==null||!n.offlineState||E.videoId!==v)return x.return();(f=E.player)==null||f.stopVideo();_.xo().navigatingAwayFromWatchDeletedVideo=!0;_.WE(_.zd9,E.hostElement);return _.m(x,_.xo().navigationFinishPromise,2)}_.xo().navigatingAwayFromWatchDeletedVideo=!1;_.yQ(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.Jf(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var E=this.windowSize_.height>=624,n=this.active?this.getScrollTop():0;!v.active&&E&&n>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!E||n<this.watchWhileScrollThreshold_&&!_.Hq())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var v=_.K(this.hostElement).querySelector("#secondary-inner");if(v){var E=_.K(this.hostElement).querySelector("#below"),n=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#comments");f&&n&&E&&(this.defaultTwoColumnLayout?(v.appendChild(f),n.appendChild(v)):(E.appendChild(f),_.hn(E,v)))}}},
isTwoColumnsChanged_:function(v,E){if(v!==!0||E!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(v=_.K(this.hostElement).querySelector("#secondary-inner"))){E=_.K(this.hostElement).querySelector("#below");var n=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#comments");f&&n&&E&&(this.isTwoColumns_?(v.appendChild(f),n.appendChild(v)):(E.appendChild(f),_.hn(E,v)))}}else{v=!_.Z("live_chat_over_engagement_panels");E=_.K(this.hostElement).querySelector("#chat-container");
n=_.K(this.hostElement).querySelector("#plj-sidebar");f=_.K(this.hostElement).querySelector("#panels");var x=_.K(this.hostElement).querySelector("#plj-panels"),y=_.K(this.hostElement).querySelector("#plj-playlist"),Q=_.K(this.hostElement).querySelector("#alerts"),e=_.K(this.hostElement).querySelector("#playlist"),F=_.K(this.hostElement).querySelector("#related"),b=_.K(this.hostElement).querySelector("#donation-shelf"),l=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Q=_.K(this.hostElement).querySelector("#secondary-inner"),
Q.appendChild(n),n.appendChild(y),y.appendChild(e),n.appendChild(x),v&&Q.appendChild(f),_.Z("web_watch_theater_chat")||Q.appendChild(E),v||Q.appendChild(f),Q.appendChild(b),Q.appendChild(F)):(v&&_.Mm(f,Q),_.Mm(e,Q),_.Z("web_watch_theater_chat")||_.Mm(E,Q),v||_.Mm(f,Q),_.Mm(b,Q),l&&_.Mm(F,l));_.Z("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Z("web_watch_theater_chat")){var v=_.K(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.Z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?_.Z("web_watch_theater_chat_beside_player")?(E=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(v==null?void 0:v.parentElement)!==E&&E.append(v),this.panelsBesidePlayer=!0):
_.Z("web_watch_theater_fixed_chat")&&(E=_.K(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==E&&E.append(v),this.fixedPanels=!0):(_.Z("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Z("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),E=_.K(this.hostElement).querySelector("#playlist"),v&&E?_.Sr(v,E):_.li(new _.yc("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!E})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,E){return _.Z("sw_metadata_vis_toggle_ks")?!0:!!v||!!E},
computeForceDarkPanelTheme:function(v){return _.Z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.NQ(this.hostElement,v)}catch(E){_.li(E)}},
videoHeightToWidthRatioChanged_:function(v,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.hq(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.hq(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.tTx(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var E=_.vs(v)||0;_.Bg(v,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.vs("yt-fullerscreen-edu-button-click-count")||0,E=_.vs("yt-fullerscreen-edu-button-shown-count")||0,n=_.WG("external_fullscreen_button_shown_threshold"),f=v>=_.WG("external_fullscreen_button_click_threshold")||E>=n;_.hq(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.P().resolve(_.SY).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var v=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.wh.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.wh.addLowPriorityJob(function(){v.fullHeightPanelPositionUpdateJobId=0;var E=_.K(v.hostElement).querySelector("#secondary"),n=_.K(v.hostElement).querySelector("#fixed-secondary");E=E.getBoundingClientRect();var f=E.width;v.swatcherooSqueezeback&&
(f+=_.An);if(v.swatcherooSqueezeback){var x=_.K(v.hostElement).querySelector("#squeezeback-constraining-container");x.style.width=f+"px";x.style.flex="0 0 "+f+"px"}n.style.width=f+"px";n.style.left=E.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.wh.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.wh.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var E;!v.isTwoColumns_||v.theater||v.fullscreen?E=460:E=v.calculateNormalPlayerSize_().height;var n=E+"px";_.Z("live_chat_taller_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Z("live_chat_medium_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Z("live_chat_scaled_height")&&!v.theater&&(n="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":n,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var v=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Z("web_watch_flexy_adjust_sidebar_width"))&&!_.Z("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.wh.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.wh.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;if(v.isTwoColumns_){var E=_.An6(v.windowSize_,v.calculateNormalPlayerSize_().width);E!==v.currentSidebarWidth&&(v.currentSidebarWidth=
E,v.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":E+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.LG(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var E=_.K(this.hostElement).querySelector("#engagement-panel-scrim");v?E.addEventListener("tap",_.uo(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.uo(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var E=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var n=this.getPageScrollingElement(),f=this.getScrollTop(),x=f+n.clientHeight-56;if(E<f+56)E-=56;else if(v>x)E=v-n.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.Z("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.xr().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,E,n){this.active&&this.trackEngagementPanelVisibility&&!_.jL6.includes(n)&&(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(n),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.kZ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),E!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(n),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeFullBleedPlayer:function(v,E){return v||E},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,E){return!v&&E},
swatcherooUpdatePanelsLocation:function(v,E,n,f,x,y){if(this.is==="ytd-watch-grid"){E=v&&!E;this.swatcherooSplitScroll&&(E?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));n=_.K(this.hostElement).querySelector("#panels");var Q=_.K(this.hostElement).querySelector("#playlist"),e=_.K(this.hostElement).querySelector("#fixed-secondary"),F=_.K(this.hostElement).querySelector("#fixed-below"),
b=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),l=_.K(this.hostElement).querySelector("#chat-container");y&&(v?e.appendChild(n):F.appendChild(n));x?v?e.appendChild(l):F.appendChild(l):_.Sr(l,b);f?v?e.appendChild(Q):F.appendChild(Q):_.Sr(Q,b);this.swatcherooSplitScroll&&(v=_.K(this.hostElement).querySelector("#secondary"),f=_.K(this.hostElement).querySelector("#columns"),x=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),E?x.appendChild(v):
f.appendChild(v))}},
computeMetadataSkinnyMode:function(v,E,n){return this.is!=="ytd-watch-grid"?!1:v?n:E},
computeWatchWhilePanelsActive:function(v,E){return v||E},
computeNoBorderOnChat:function(v){return _.Z("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,E){return v&&!E},
computePanelExpanded:function(v,E,n){return v||E||n},
computeSwatcherooSqueezeback:function(v,E,n){return this.is!=="ytd-watch-grid"||_.Z("ww_squeezeback_killswitch")?!1:v&&E&&n},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(v){_.hq(this).getPlayerPromise().then(function(E){var n;(n=E.changeMarkerVisibility)==null||n.call(E,_.C(v,_.Wx).isVisible||!1,_.C(v,_.Wx).entityKeys||[],_.C(v,_.Wx).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.dG().dispatch(_.u9M(v.detail))},
onSetPlaylistCollapsed:function(v){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!v)},
provideRenderingData:function(v,E){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.Z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=E;break;case "DONATION_SHELF":this.donation=E;break;
case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=E}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.P().resolve(_.hf).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(v){return so3.map(function(E){return v.find(function(n){var f;return(n==null?void 0:(f=n.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===E})}).filter(function(E){return E!==void 0})},
getNonLearningJourneyEngagementPanels:function(v){return v.filter(function(E){var n;return!so3.includes((E==null?void 0:(n=E.engagementPanelSectionListRenderer)==null?void 0:n.targetId)||"")})},
getHasLearningJourneyPanels:function(v){return v.length>0}}];var rrb;var Bx=function(){var v=_.g.apply(this,arguments)||this;v.flexy=!0;v.learningJourney=!0;v.roundedInfoPanel=!0;v.viewTransitionEnabled=_.Z("enable_player_resize_transition");v.smallerChatMinHeight=_.Z("live_chat_smaller_min_height");v.cinematicTheaterMode=_.Z("web_cinematic_theater_mode");v.transparentTheaterMode=_.Z("web_transparent_theater_mode");v.cinematicFullscreen=_.Z("web_cinematic_fullscreen");v.useLargerMaxPlayerValue=_.Z("kevlar_flexy_use_larger_player_value");v.cinematicFullscreenV2=_.Z("web_cinematic_fullscreen_v2");
v.isDarkTheme=document.documentElement.hasAttribute("dark");v.theaterLargerPlayer=_.Z("web_watch_theater_larger_player");v.defaultCollapsePlaylist=_.Z("web_watch_default_collapse_playlist");return v};
_.S(Bx,_.g);_.c=Bx.prototype;_.c.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.c.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.c.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.c.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.c.ready=function(){var v=this,E=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.c.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.c.updateIsTwoColumnsFromBinding=function(v){_.Z("web_watch_update_narrow_width_killswitch")||_.dG().dispatch(_.HO_(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.c.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.c.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.c.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.c.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.c.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.c.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20375_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20375_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hK.Object.defineProperties(Bx.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(v=_.C(this.data.pageVisualEffects[E],_.sr))return E=void 0,(E=v.config)==null?void 0:E.enableInLightTheme;return!1}}});
_.hK.Object.defineProperties(Bx,{template:{configurable:!0,enumerable:!0,get:function(){if(rrb===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);rrb=v}v=rrb;return v}}});
Bx.prototype.updateMiniplayerIsActiveValue=Bx.prototype.updateMiniplayerIsActiveValue;Bx.prototype.updateScrollTopValue=Bx.prototype.updateScrollTopValue;Bx.prototype.updateFullscreenValue=Bx.prototype.updateFullscreenValue;Bx.prototype.updateTheaterValue=Bx.prototype.updateTheaterValue;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);
_.k([_.h(lx6.YtdLearningJourneyWatchBehavior),_.W("design:type",Object)],Bx.prototype,"ytdWatchBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Bx.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Bx.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Bx.prototype,"playerData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"flexy",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"learningJourney",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"roundedInfoPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"viewTransitionEnabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"smallerChatMinHeight",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"cinematicTheaterMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"transparentTheaterMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"cinematicFullscreen",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"useLargerMaxPlayerValue",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"cinematicFullscreenV2",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"isDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Bx.prototype,"theaterLargerPlayer",void 0);_.k([_.H(),_.W("design:type",Object)],Bx.prototype,"defaultCollapsePlaylist",void 0);_.k([_.H({selector:_.bP}),_.W("design:type",Object)],Bx.prototype,"theaterValue",void 0);
_.k([_.H({selector:_.Mz}),_.W("design:type",Object)],Bx.prototype,"fullscreenValue",void 0);_.k([_.H({selector:_.ST}),_.W("design:type",Object)],Bx.prototype,"scrollTopValue",void 0);_.k([_.H({selector:_.mW}),_.W("design:type",Object)],Bx.prototype,"miniplayerIsActiveValue",void 0);_.k([_.uk("ytd-player"),_.W("design:type",HTMLElement)],Bx.prototype,"ytdPlayer",void 0);_.k([_.Wp("#playlist"),_.W("design:type",HTMLElement)],Bx.prototype,"JSC$20375_ytdPlaylistPanelRenderer",void 0);
_.k([_.uk("ytd-comments"),_.W("design:type",HTMLElement)],Bx.prototype,"ytdComments",void 0);_.k([_.Wp("#primary"),_.W("design:type",HTMLElement)],Bx.prototype,"primary",void 0);_.k([_.Wp("#secondary"),_.W("design:type",HTMLElement)],Bx.prototype,"secondary",void 0);_.k([_.Wp("#player-container"),_.W("design:type",HTMLElement)],Bx.prototype,"playerContainer",void 0);_.k([_.Wp("#cinematics"),_.W("design:type",HTMLElement)],Bx.prototype,"JSC$20375_cinematics",void 0);
_.k([_.On("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bx.prototype,"updateTheaterValue",null);_.k([_.On("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bx.prototype,"updateFullscreenValue",null);_.k([_.On("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bx.prototype,"updateScrollTopValue",null);
_.k([_.On("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bx.prototype,"updateMiniplayerIsActiveValue",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Bx.prototype,"cinematicLightTheme",null);Bx=_.k([_.N({is:"ytd-watch-learning-journey"})],Bx);_.mN.registerService(_.i_s,Bx);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("Tm0L3c");
var crd;var yrd;var pH_=function(){return _.g.apply(this,arguments)||this};
_.S(pH_,_.g);pH_=_.k([_.N({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],pH_);
_.u(pH_,"ytd-ghost-comments-renderer",function(){if(yrd===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);yrd=v}v=yrd;return v},{mode:1});var QoK;var XHx=function(){return _.g.apply(this,arguments)||this};
_.S(XHx,_.g);XHx=_.k([_.N({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],XHx);
_.u(XHx,"ytd-ghost-watch-metadata-renderer",function(){if(QoK===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);QoK=v}v=QoK;return v},{mode:1});var t0=function(){var v=_.g.apply(this,arguments)||this;v.ghostGridRenderer={rows:6};v.roundedInfoPanel=!0;v.hideOfferModules=!0;v.smallerChatMinHeight=_.Z("live_chat_smaller_min_height");v.cinematicTheaterMode=_.Z("web_cinematic_theater_mode");v.transparentTheaterMode=_.Z("web_transparent_theater_mode");v.darkerPanels=_.Z("web_watch_darker_panels");v.cinematicFullscreen=_.Z("web_cinematic_fullscreen");v.cinematicFullscreenV2=_.Z("web_cinematic_fullscreen_v2");v.isDarkTheme=document.documentElement.hasAttribute("dark");
return v};
_.S(t0,_.g);_.c=t0.prototype;_.c.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.c.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.c.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.c.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.c.ready=function(){var v=this,E=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.c.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.c.updateIsTwoColumnsFromBinding=function(v){this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.c.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.c.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.c.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.c.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.c.updateShownItemsFromBinding=function(v){_.Z("swatcheroo_direct_use_rich_grid")||(v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value)};
_.c.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20363_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20363_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hK.Object.defineProperties(t0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(v=_.C(this.data.pageVisualEffects[E],_.sr))return E=void 0,(E=v.config)==null?void 0:E.enableInLightTheme;return!1}}});
t0.prototype.updateMiniplayerIsActiveValue=t0.prototype.updateMiniplayerIsActiveValue;t0.prototype.updateScrollTopValue=t0.prototype.updateScrollTopValue;t0.prototype.updateFullscreenValue=t0.prototype.updateFullscreenValue;t0.prototype.updateTheaterValue=t0.prototype.updateTheaterValue;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.fxd.YtdWatchBehavior),_.W("design:type",Object)],t0.prototype,"ytdWatchBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],t0.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],t0.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],t0.prototype,"ghostGridRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],t0.prototype,"playerData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"roundedInfoPanel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"hideOfferModules",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"smallerChatMinHeight",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"cinematicTheaterMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"transparentTheaterMode",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"darkerPanels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"cinematicFullscreen",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"cinematicFullscreenV2",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],t0.prototype,"isDarkTheme",void 0);_.k([_.H({selector:_.bP}),_.W("design:type",Object)],t0.prototype,"theaterValue",void 0);
_.k([_.H({selector:_.Mz}),_.W("design:type",Object)],t0.prototype,"fullscreenValue",void 0);_.k([_.H({selector:_.ST}),_.W("design:type",Object)],t0.prototype,"scrollTopValue",void 0);_.k([_.H({selector:_.mW}),_.W("design:type",Object)],t0.prototype,"miniplayerIsActiveValue",void 0);_.k([_.Wp("#ytd-player"),_.W("design:type",HTMLElement)],t0.prototype,"ytdPlayer",void 0);_.k([_.Wp("#playlist"),_.W("design:type",HTMLElement)],t0.prototype,"JSC$20363_ytdPlaylistPanelRenderer",void 0);
_.k([_.Wp("#ytd-comments"),_.W("design:type",HTMLElement)],t0.prototype,"ytdComments",void 0);_.k([_.Wp("#primary"),_.W("design:type",HTMLElement)],t0.prototype,"primary",void 0);_.k([_.Wp("#secondary"),_.W("design:type",HTMLElement)],t0.prototype,"secondary",void 0);_.k([_.Wp("#player-container"),_.W("design:type",HTMLElement)],t0.prototype,"playerContainer",void 0);_.k([_.Wp("#cinematics"),_.W("design:type",HTMLElement)],t0.prototype,"JSC$20363_cinematics",void 0);
_.k([_.On("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t0.prototype,"updateTheaterValue",null);_.k([_.On("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t0.prototype,"updateFullscreenValue",null);_.k([_.On("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t0.prototype,"updateScrollTopValue",null);
_.k([_.On("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t0.prototype,"updateMiniplayerIsActiveValue",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],t0.prototype,"cinematicLightTheme",null);
_.u(t0,"ytd-watch-grid",function(){if(crd===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);crd=v}v=crd;return v},{mode:2});_.mN.registerService(_.TcG,t0);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("CF909");
var xfU;var R7=function(){var v=_.g.apply(this,arguments)||this;v.flexy=!0;v.roundedInfoPanel=!0;v.viewTransitionEnabled=_.Z("enable_player_resize_transition");v.smallerChatMinHeight=_.Z("live_chat_smaller_min_height");v.cinematicTheaterMode=_.Z("web_cinematic_theater_mode");v.transparentTheaterMode=_.Z("web_transparent_theater_mode");v.cinematicFullscreen=_.Z("web_cinematic_fullscreen");v.useLargerMaxPlayerValue=_.Z("kevlar_flexy_use_larger_player_value");v.cinematicFullscreenV2=_.Z("web_cinematic_fullscreen_v2");
v.isDarkTheme=document.documentElement.hasAttribute("dark");v.defaultCollapsePlaylist=_.Z("web_watch_default_collapse_playlist");v.retroModeReduxValue=!1;return v};
_.S(R7,_.g);_.c=R7.prototype;_.c.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.c.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.c.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.c.updateRetroModeReduxValue=function(){_.Z("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.c.ready=function(){var v=this,E=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.c.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.c.updateIsTwoColumnsFromBinding=function(v){_.Z("web_watch_update_narrow_width_killswitch")||_.dG().dispatch(_.HO_(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.c.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.c.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.c.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.c.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.c.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.c.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20358_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20358_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hK.Object.defineProperties(R7.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(v=_.C(this.data.pageVisualEffects[E],_.sr))return E=void 0,(E=v.config)==null?void 0:E.enableInLightTheme;return!1}}});
_.hK.Object.defineProperties(R7,{template:{configurable:!0,enumerable:!0,get:function(){if(xfU===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);xfU=v}v=xfU;return v}}});
R7.prototype.updateRetroModeReduxValue=R7.prototype.updateRetroModeReduxValue;R7.prototype.updateScrollTopValue=R7.prototype.updateScrollTopValue;R7.prototype.updateFullscreenValue=R7.prototype.updateFullscreenValue;R7.prototype.updateTheaterValue=R7.prototype.updateTheaterValue;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],R7.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.fxd.YtdWatchBehavior),_.W("design:type",Object)],R7.prototype,"ytdWatchBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],R7.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],R7.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],R7.prototype,"playerData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"flexy",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"roundedInfoPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"viewTransitionEnabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"smallerChatMinHeight",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"cinematicTheaterMode",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"transparentTheaterMode",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"cinematicFullscreen",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"useLargerMaxPlayerValue",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"cinematicFullscreenV2",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"isDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],R7.prototype,"defaultCollapsePlaylist",void 0);_.k([_.H({selector:_.bP}),_.W("design:type",Object)],R7.prototype,"theaterValue",void 0);_.k([_.H({selector:_.Mz}),_.W("design:type",Object)],R7.prototype,"fullscreenValue",void 0);_.k([_.H({selector:_.ST}),_.W("design:type",Object)],R7.prototype,"scrollTopValue",void 0);
_.k([_.H({selector:_.mW}),_.W("design:type",Object)],R7.prototype,"miniplayerIsActive",void 0);_.k([_.H({selector:function(v){return v.watch.isWatchRetroMode}}),
_.W("design:type",Object)],R7.prototype,"retroModeReduxValue",void 0);_.k([_.uk("ytd-player"),_.W("design:type",HTMLElement)],R7.prototype,"ytdPlayer",void 0);_.k([_.Wp("#playlist"),_.W("design:type",HTMLElement)],R7.prototype,"JSC$20358_ytdPlaylistPanelRenderer",void 0);_.k([_.uk("ytd-comments"),_.W("design:type",HTMLElement)],R7.prototype,"ytdComments",void 0);_.k([_.Wp("#primary"),_.W("design:type",HTMLElement)],R7.prototype,"primary",void 0);
_.k([_.Wp("#secondary"),_.W("design:type",HTMLElement)],R7.prototype,"secondary",void 0);_.k([_.Wp("#player-container"),_.W("design:type",HTMLElement)],R7.prototype,"playerContainer",void 0);_.k([_.Wp("#cinematics"),_.W("design:type",HTMLElement)],R7.prototype,"JSC$20358_cinematics",void 0);_.k([_.On("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R7.prototype,"updateTheaterValue",null);
_.k([_.On("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R7.prototype,"updateFullscreenValue",null);_.k([_.On("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R7.prototype,"updateScrollTopValue",null);_.k([_.On("retroModeReduxValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R7.prototype,"updateRetroModeReduxValue",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],R7.prototype,"cinematicLightTheme",null);R7=_.k([_.N({is:"ytd-watch-flexy"})],R7);_.mN.registerService(_.GOs,R7);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("nmfa2d");
var PDP;var jl=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;v.errorScreen=null;v.playlistData={};return v};
_.S(jl,_.g);_.c=jl.prototype;_.c.getPlayer=function(){return this.ytdPlayer};
_.c.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:_.Zh(["aa","eocs"])}}};
_.c.onActiveChanged=function(){_.dG().dispatch(_.FFP(this.ytPageBehavior.active))};
_.c.playerDataChanged=function(){var v;(v=this.watchController)==null||v.setPlayerResponse(this.playerData)};
_.c.dataChanged=function(){var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data)};
_.c.sizeChanged=function(){var v,E;(E=(v=this.metadata).resize)==null||E.call(v)};
_.c.attached=function(){this.watchController=new _.NK(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.c.detached=function(){_.uU(this.watchController);this.watchController=void 0};
_.c.getPlayerContainer=function(){return this.playerContainer};
_.c.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20310_playlistPanel}};
_.c.provideRenderingData=function(v,E){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=E;break;case "ERROR_SCREEN":this.errorScreen=E!=null?E:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=E;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=E;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=E;break;case "RICH_METADATA":this.richMetadataRowContainer=E;break;case "CLARIFICATION":this.clarificationData=E;break;case "PLAYLIST":this.playlistData=
E!=null?E:{};break;case "MERCH_SHELF":this.merchShelf=E;break;case "TICKET_SHELF":this.ticketShelf=E;break;case "LIMITED_STATE":this.limitedState=E;break;case "DONATION_SHELF":this.donationShelf=E;break;case "ALERTS":this.alerts=E}};
_.hK.Object.defineProperties(jl.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return!this.hidden&&!!((v=this.data)==null?0:(E=v.contents)==null?0:(n=E.twoColumnWatchNextResults)==null?0:n.conversationBar)}}});
jl.prototype.sizeChanged=jl.prototype.sizeChanged;jl.prototype.dataChanged=jl.prototype.dataChanged;jl.prototype.playerDataChanged=jl.prototype.playerDataChanged;jl.prototype.onActiveChanged=jl.prototype.onActiveChanged;_.k([_.h(_.Zi.YtPageBehavior),_.W("design:type",Object)],jl.prototype,"ytPageBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],jl.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],jl.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"playerData",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jl.prototype,"hidden",void 0);_.k([_.Wp("#ytd-player"),_.W("design:type",HTMLElement)],jl.prototype,"ytdPlayer",void 0);_.k([_.Wp("#player-container"),_.W("design:type",HTMLElement)],jl.prototype,"playerContainer",void 0);_.k([_.Wp("#metadata"),_.W("design:type",Object)],jl.prototype,"metadata",void 0);_.k([_.Wp("#playlist"),_.W("design:type",HTMLElement)],jl.prototype,"JSC$20310_playlistPanel",void 0);
_.k([_.H({selector:_.L6K,reflectToAttribute:!0}),_.W("design:type",Object)],jl.prototype,"fixie",void 0);_.k([_.H({selector:_.$JR,reflectToAttribute:!0}),_.W("design:type",Object)],jl.prototype,"singleColumn",void 0);_.k([_.H({selector:function(v){return _.bP(v)&&!_.Mz(v)},
reflectToAttribute:!0}),_.W("design:type",Object)],jl.prototype,"theater",void 0);_.k([_.H({selector:_.Mz,reflectToAttribute:!0}),_.W("design:type",Object)],jl.prototype,"fullscreen",void 0);_.k([_.H({selector:_.eI0}),_.W("design:type",Object)],jl.prototype,"windowSize",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"singleColumnContents",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"errorScreen",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"playlistData",void 0);
_.k([_.H(),_.W("design:type",Object)],jl.prototype,"videoPrimaryInfoRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"videoSecondaryInfoRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"richMetadataRowContainer",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"clarificationData",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"commentsEntryPointHeaderRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"ticketShelf",void 0);
_.k([_.H(),_.W("design:type",Object)],jl.prototype,"merchShelf",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"donationShelf",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"limitedState",void 0);_.k([_.H(),_.W("design:type",Object)],jl.prototype,"alerts",void 0);_.k([_.A("playlistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],jl.prototype,"hasPlaylistData",null);
_.k([_.A("data","hidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jl.prototype,"hasChat",null);_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jl.prototype,"onActiveChanged",null);_.k([_.On("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jl.prototype,"playerDataChanged",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jl.prototype,"dataChanged",null);_.k([_.On("windowSize","singleColumn"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jl.prototype,"sizeChanged",null);
_.u(jl,"ytd-watch-fixie",function(){if(PDP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);PDP=v}v=PDP;return v},{mode:1});_.mN.registerService(_.LJy,jl);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("xwEKAe");
var G$6=function(v){var E=_.Ef();if(E.getFlag(202))E=E.getFlag(201);else{var n;E=(v==null?void 0:(n=v.config)==null?void 0:n.settingOnByDefault)!==void 0?v.config.settingOnByDefault:!_.Z("web_shorts_cinematics_disabled_by_default")}return E},T0M=function(v){var E=_.Ef();
_.nH(0,201,v);_.nH(0,202,!0);E.save()},i$U=function(v){return(v=_.hTX(v))?_.V3E(v):0},zXd=function(v){return v.shorts.isSmallScreenSqueezeback},RX_=function(v){return v.shorts.isPlaybackStarted},tmK=function(v,E,n,f){v=E-v;
n=f-n;return Math.sqrt(v*v+n*n)},B06=function(v,E){v&&_.P().resolve(_.OO).resolveCommand(v,{forceClickLogging:!0,
form:{element:E}})},v4C=function(v){v.unsubscribeFromStore=_.yC(v.storeWithShorts,_.t5P,function(E){v.initOrDisposeActiveModules(E);
!E&&v.storeWithShorts.getState().shorts.isFullscreen&&(_.gM(document.documentElement),v.storeWithShorts.dispatch(_.EHd(!1)))});
v.initOrDisposeActiveModules(_.t5P(v.storeWithShorts.getState()))},E43=function(v){var E=_.P().resolve(_.LQ);
E.rootElement=v;v4C(E)},n40=function(){return _.P().resolve(_.LQ).dismissedIndices},o4U=function(v){return _.un({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:v}})},fZ3=function(v){return _.un({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:v}})},fu=function(v){return _.un({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:v}})},xk=function(v,E){if(v instanceof xk)this.array_=v.array_;
else{var n;if(n=_.E1(v))a:{for(var f=n=0;f<v.length;f++){if(!_.E1(v[f])||n>0&&v[f].length!=n){n=!1;break a}for(var x=0;x<v[f].length;x++)if(typeof v[f][x]!=="number"){n=!1;break a}n==0&&(n=v[f].length)}n=n!=0}if(n)this.array_=_.tG(v);else if(v instanceof _.fs)this.array_=xJ3(v.height,v.width);else if(typeof v==="number"&&typeof E==="number"&&v>0&&E>0)this.array_=xJ3(v,E);else throw Error("Xl");}this.size_=new _.fs(this.array_[0].length,this.array_.length)},ciM=function(v,E,n){for(var f=0;f<v.getSize().height;f++)for(var x=
0;x<v.getSize().width;x++)E.call(n,v.array_[f][x],f,x,v)},yi0=function(v,E){var n=new xk(v.getSize());
ciM(v,function(f,x,y){n.array_[x][y]=E.call(void 0,f,x,y,v)});
return n},xJ3=function(v,E){for(var n=[],f=0;f<v;f++){n[f]=[];
for(var x=0;x<E;x++)n[f][x]=0}return n};
xk.prototype.add=function(v){if(!_.a0x(this.size_,v.getSize()))throw Error("Yl");return yi0(this,function(E,n,f){return E+v.array_[n][f]})};
xk.prototype.equals=function(v,E){if(this.size_.width!=v.size_.width||this.size_.height!=v.size_.height)return!1;E=E||0;for(var n=0;n<this.size_.height;n++)for(var f=0;f<this.size_.width;f++)if(!_.P7x(this.array_[n][f],v.array_[n][f],E))return!1;return!0};
xk.prototype.getSize=function(){return this.size_};
var c3=function(v,E,n){return E>=0&&E<v.size_.height&&n>=0&&n<v.size_.width?v.array_[E][n]:null};
xk.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var p4R=function(v,E,n,f){if(!(E>=0&&E<v.size_.height&&n>=0&&n<v.size_.width))throw Error("Zl`"+E+"`"+n+"`"+v.size_.height+"`"+v.size_.width);v.array_[E][n]=f};
xk.prototype.multiply=function(v){if(v instanceof xk){if(this.size_.width!=v.getSize().height)throw Error("$l");return QIU(this,v)}if(typeof v==="number")return X4b(this,v);throw Error("am");};
var QIU=function(v,E){var n=new xk(v.size_.height,E.getSize().width);ciM(n,function(f,x,y){for(var Q=f=0;Q<this.size_.width;Q++)f+=c3(this,x,Q)*c3(E,Q,y);p4R(n,x,y,f)},v);
return n},X4b=function(v,E){return yi0(v,function(n){return n*E})};var edU=new _.z("inlineSurveyRenderer");var F6d=new _.z("interstitialViewModel");var mJ3=new _.z("reelNavigateCommand");var w4_=new _.z("reelNonVideoContentDismissalCommand");var b6b=new _.z("showReelsCommentsOverlayCommand");var lZR=new _.z("videoInteractionPopUpRenderer");var sIK;var ri3;var P8x;var yi=function(){var v=_.g.apply(this,arguments)||this;v.ctaVisualElement=null;v.currentCsn=null;return v};
_.S(yi,_.g);_.c=yi.prototype;_.c.onDataChanged=function(){this.maybeLogShows()};
_.c.computeButtonShape=function(){var v=this;if(this.data)return{buttonText:_.JC(this.data.text),state:"active",onTap:function(){v.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.c.maybeCreateCtaVe=function(){var v;if((v=this.data)!=null&&v.badgeInteractionLogging){var E;if(v=(E=this.data.badgeInteractionLogging)==null?void 0:E.trackingParams)this.ctaVisualElement=_.tx(v)}};
_.c.maybeLogClicks=function(){this.currentCsn=_.lc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.qx(this.currentCsn,this.ctaVisualElement)};
_.c.maybeLogShows=function(){this.currentCsn=_.lc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.CH(this.currentCsn,[this.ctaVisualElement])};
_.c.onTap=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand);this.maybeLogClicks()}};
yi.prototype.onDataChanged=yi.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],yi.prototype,"ytComponentBehavior",void 0);_.k([_.H({}),_.W("design:type",Object)],yi.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yi.prototype,"onDataChanged",null);
yi=_.k([_.N({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],yi);
_.u(yi,"ytd-shopping-overlay-badge-renderer",function(){if(P8x!==void 0)return P8x;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return P8x=v},{mode:1});_.Yz(_.h46,"reel-sound-metadata-view-model",{props:{data:_.Ij,overlayDensity:_.Ij}});_.Yz(_.PW1,"player-disclosure-view-model",{props:{data:_.Kt}});_.Yz(_.yil,"pivot-button-view-model",{props:{data:_.Ij,className:_.Ij}});_.Yz(_.p46,"reel-action-bar-view-model",{props:{data:_.Kt,buttonShapeOverrideables:_.Kt}});_.Yz(_.qu(function(v){function E(){var uE,WI,bX,n0,qi=(WI=_.C((uE=T())==null?void 0:uE.command,_.LkF))==null?void 0:(bX=WI.item)==null?void 0:(n0=bX.notificationTextRenderer)==null?void 0:n0.successResponseText;if(qi)_.OL(f.value,"yt-open-popup-action",[_.hC(qi),f.value]);else if(L())B06(L(),U.value);else{var fl;B06((fl=T())==null?void 0:fl.command,U.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var n=v.data;var f=_.Ig();v=_.p(_.t7("0px",void 0,"O1N7Ce"));var x=v.next().value,y=v.next().value;v=_.p(_.t7("0px",void 0,"tTDBdb"));var Q=v.next().value,e=v.next().value;v=_.p(_.t7(0,void 0,"fh8Zkc"));var F=v.next().value,b=v.next().value;v=_.p(_.t7(0,void 0,"CUjqGd"));var l=v.next().value,r=v.next().value,a=function(){var uE;if(((uE=_.Lh())==null?void 0:uE.getPlayerState())!==-1){f.value.style.display="inherit";var WI;(WI=_.Lh())==null||WI.removeEventListener("onStateChange",a)}M()},M=function(){var uE=
document.querySelector("video");
if(uE){b(uE.getBoundingClientRect().width);r(uE.getBoundingClientRect().height);var WI;y((uE==null?void 0:(WI=uE.style)==null?void 0:WI.left)||"0px");var bX;e((uE==null?void 0:(bX=uE.style)==null?void 0:bX.top)||"0px")}};
_.Xp(function(){var uE,WI,bX;if(((uE=_.Lh())==null?void 0:uE.getPlayerState())===-1&&Math.round(((bX=(WI=_.Lh())==null?void 0:WI.getVideoAspectRatio())!=null?bX:0)*100)!==Math.round(F()/l()*100)){f.value.style.display="none";var n0,qi;r(F()/((qi=(n0=_.Lh())==null?void 0:n0.getVideoAspectRatio())!=null?qi:1))}},"VB5m5");
_.mM(function(){var uE;(uE=_.Lh())==null||uE.addEventListener("onStateChange",a);window.addEventListener("resize",M);M();var WI,bX,n0;if((n0=(WI=n())==null?void 0:(bX=WI.regions)==null?void 0:bX[0])==null||!n0.transformationMatrix)throw Error("em");var qi;if((qi=n())==null?0:qi.trackingParams){var fl;_.Tl().graftServerVe((fl=n().trackingParams)!=null?fl:"")}_.Fp(function(){var yP;(yP=_.Lh())==null||yP.removeEventListener("onStateChange",a);window.removeEventListener("resize",M)})});
var U=_.Ig(),d=_.p(_.t7(!1,void 0,"TPsTce"));v=d.next().value;var Y=d.next().value,V=_.p(_.t7(!1,void 0,"Uz6CHf"));d=V.next().value;var O=V.next().value,T=function(){var uE;return _.C((uE=n())==null?void 0:uE.popUp,lZR)},L=function(){var uE;
return(uE=n())==null?void 0:uE.command},xX=function(){return _.C(L(),_.ou)!==void 0};
V=_.ij(function(){xX()&&Y(!0);O(!0);return!1});
var t=_.ij(function(){Y(!1);O(!1);return!1}),QE=_.ij(function(){xX()&&Y(!0);
return!1}),MF=_.ij(function(){xX()&&Y(!1);
return!1}),K1=_.ij(function(){E();
return!1}),JG=_.ij(function(uE){uE.key==="Enter"&&E();
return!1}),$X={},HI={};
return _.w("yt-player-overlay-video-interactions",{el:f},_.w("svg",{"on:mouseover":V,"on:mouseout":t,"on:keydown":JG,"on:focus":QE,"on:blur":MF,el:U,tabindex:0,"aria-label":function(){var uE;return(uE=n())==null?void 0:uE.a11yString},
id:"player-overlay-video-interaction-svg",class:_.W8("yt-player-overlay-video-interactions__interactions-svg",($X["yt-player-overlay-video-interactions__interactions-svg-hover"]=v,$X),(HI["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=d,HI)),role:"button",style:function(){var uE,WI,bX,n0=(bX=(uE=n())==null?void 0:(WI=uE.regions)==null?void 0:WI[0].transformationMatrix)!=null?bX:[];uE=F();WI=l();bX=[];for(var qi=0,fl=-1;qi<n0.length;qi++)qi%3===0&&(fl++,bX[fl]=[]),bX[fl].push(n0[qi]);
n0=new xk(bX);bX=new xk([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);bX=n0.multiply(bX);n0=new xk([[0,0],[0,0],[0,0],[0,0]]);for(qi=0;qi<bX.getSize().width;qi++){fl=c3(bX,0,qi);var yP=c3(bX,1,qi);if(fl===null||yP===null)throw Error("dm`"+(qi+1).toString());p4R(n0,qi,0,fl*uE);p4R(n0,qi,1,yP*WI)}uE=c3(n0,0,0);qi=c3(n0,1,0);WI=c3(n0,0,1);fl=c3(n0,1,1);if(uE===null||qi===null||WI===null||fl===null)throw Error("bm");bX=tmK(uE,qi,WI,fl);yP=c3(n0,3,0);n0=c3(n0,3,1);if(yP===null||n0===null)throw Error("cm");n0=tmK(uE,
yP,WI,n0);fl=(Number((fl*-1).toFixed(2))-Number((WI*-1).toFixed(2)))/(Number(qi.toFixed(2))-Number(uE.toFixed(2)));yP=Math.atan(fl)*180/Math.PI;qi=fl===Number.POSITIVE_INFINITY?-90:fl===Number.NEGATIVE_INFINITY?90:Object.is(fl,-0)?180:fl===0?0:fl>0?yP*-1:uE<qi?yP*-1:Math.abs(yP)+180;return"left:calc("+uE+"px + "+x()+"); top:calc("+(WI+"px + "+Q()+"); width:")+(bX+"px; height:")+(n0+"px; transform:rotate(")+(qi+"deg);")},
"on:click":K1}))},"ri"),"yt-player-overlay-video-interactions",{props:{data:_.Kt}});_.Yz(_.Swd,"yt-reel-metapanel-view-model",{props:{data:_.Kt,overlayDensity:_.Kt}});var pu=function(){var v=_.g.apply(this,arguments)||this;v.showScrubber=!1;v.isWatchWhileMode=!1;v.enableAnchoredPanel=_.Z("desktop_shorts_v2_anchored_panel");v.anchoredPanelActive=!1;v.enableLivingroomLayout=_.Z("reels_enable_livingroom_layout");v.enablePlayerMetadataContainer=_.Z("reels_web_enable_metadata_container");v.enableSqueezebackPanels=_.Z("web_shorts_enable_squeezeback_panels");v.isSqueezebackActive=!1;v.smallScreenSqueezeback=!1;v.isPlayerStarted=!1;v.overlayDensity=0;v.isOverlay=!1;v.isImmersive=
!1;v.isImmersiveHorizontal=!1;v.isFullscreen=!1;v.onWindowResized=function(){var E;v.set("isImmersive",((E=window.getComputedStyle(v.hostElement))==null?void 0:E.getPropertyValue("--immersive-mode-on"))==="1");v.set("isImmersiveHorizontal",v.isImmersive&&v.enableLivingroomLayout&&!v.isWatchWhileMode)};
return v};
_.S(pu,_.g);_.c=pu.prototype;_.c.updateIsOverlay=function(v){this.isOverlay=v.detail.value};
_.c.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.Z("web_enable_flexible_overlay")||_.Z("web_enable_format_first")||_.Z("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.c.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.c.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.c.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.c.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.c.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.c.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.c.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",_.$6("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.$6("reels_action_justified_content")||"flex-start")};
_.c.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}}};
_.c.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.tQ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.tQ("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.tQ("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.tQ("SHARE_LABEL",
void 0,"Share")}}});_.Z("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.tQ("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()};
_.c.setEmptyOverlayMetadata=function(){_.Z("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}))};
_.hK.Object.defineProperties(pu.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoPanel)}}});
pu.prototype.onIsActiveChanged=pu.prototype.onIsActiveChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],pu.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],pu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],pu.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],pu.prototype,"isActive",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],pu.prototype,"hidden",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],pu.prototype,"useShortsIcon",void 0);_.k([_.H({value:"left"}),_.W("design:type",String)],pu.prototype,"buttonTooltipPosition",void 0);
_.k([_.H({value:_.Z("reels_enable_livingroom_layout")?"top":"left"}),_.W("design:type",String)],pu.prototype,"likeButtonTooltipPosition",void 0);_.k([_.H({value:"none"}),_.W("design:type",String)],pu.prototype,"textTransform",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"showScrubber",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"isWatchWhileMode",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.infoPanel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pu.prototype,"hasInfoPanel",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"enableAnchoredPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"anchoredPanelActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"enableLivingroomLayout",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],pu.prototype,"enablePlayerMetadataContainer",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"enableSqueezebackPanels",void 0);_.k([_.H({selector:_.tmy,reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"isSqueezebackActive",void 0);_.k([_.H({selector:zXd,reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"smallScreenSqueezeback",void 0);
_.k([_.H({selector:RX_}),_.W("design:type",Object)],pu.prototype,"isPlayerStarted",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"overlayDensity",void 0);_.k([_.H(),_.W("design:type",Object)],pu.prototype,"isOverlay",void 0);_.k([_.H({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.W("design:type",Boolean)],pu.prototype,"isShortsOverlay",void 0);_.k([_.H(),_.W("design:type",Object)],pu.prototype,"isImmersive",void 0);
_.k([_.H(),_.W("design:type",Object)],pu.prototype,"isImmersiveHorizontal",void 0);_.k([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.W("design:type",Boolean)],pu.prototype,"isShortsImmersive",void 0);_.k([_.H({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],pu.prototype,"buttonOverride",void 0);
_.k([_.H({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],pu.prototype,"actionBarButtonOverride",void 0);_.k([_.H({selector:_.fU,reflectToAttribute:!0}),_.W("design:type",Object)],pu.prototype,"isFullscreen",void 0);_.k([_.On("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pu.prototype,"onIsActiveChanged",null);pu=_.k([_.N({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],pu);
_.u(pu,"ytd-reel-player-overlay-renderer",function(){if(ri3!==void 0)return ri3;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ri3=v},{mode:1});var aZC;var Qi=function(){var v=_.g.apply(this,arguments)||this;v.videoDuration=0;v.playedTime=0;v.isActive=!1;v.JSC$19575_playerEvents=new Map;return v};
_.S(Qi,_.g);_.c=Qi.prototype;_.c.created=function(){this.JSC$19575_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19575_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.c.attached=function(){this.getPlayerAndInitializeListeners()};
_.c.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19575_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.uo(this,this.onPageChanged))};
_.c.getPlayerAndInitializeListeners=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return E=_.Aq(),E?_.m(n,E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.uo(v,v.onPageChanged)),n.jumpTo(0));v.player=n.yieldResult;v.initializePlayerListeners();_.yQ(n)})};
_.c.onPageChanged=function(v){var E=this;return _.X(function(n){if(n.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?n.return():_.m(n,_.V3().getPlayerPromise(),2);E.player=n.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.uo(E,E.onPageChanged));_.yQ(n)})};
_.c.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19575_playerEvents)};
_.c.onVideoDataChange=function(v){var E=this;return _.X(function(n){if(!E.player||v.type!=="newdata")return n.return();E.videoDuration=_.Z("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(v.playertype).seekableEnd:E.player.getDuration(v.playertype);E.playedTime=0;_.yQ(n)})};
_.c.onVideoProgress=function(v){var E=this,n,f;return _.X(function(x){if(!E.player)return x.return();n=E.player.getPresentingPlayerType();f=E.player.getPlayerState();E.videoDuration=_.Z("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(n).seekableEnd:E.player.getDuration(n);E.playedTime=f===0?E.videoDuration:v;_.yQ(x)})};
_.c.getPercentPlayed=function(v,E){return v?_.Jf(E/v,0,1):0};
_.hK.Object.defineProperties(Qi.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 v="";return v=this.videoDuration&&this.playedTime?v+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):v+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Qi.prototype,"componentBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Qi.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qi.prototype,"player",void 0);_.k([_.H(),_.W("design:type",Object)],Qi.prototype,"videoDuration",void 0);_.k([_.H(),_.W("design:type",Object)],Qi.prototype,"playedTime",void 0);_.k([_.H(),_.W("design:type",Object)],Qi.prototype,"isActive",void 0);
_.k([_.A("videoDuration","playedTime"),_.W("design:type",Number),_.W("design:paramtypes",[])],Qi.prototype,"percentPlayed",null);_.k([_.A("videoDuration","playedTime"),_.W("design:type",Object),_.W("design:paramtypes",[])],Qi.prototype,"percentPlayedStyle",null);_.k([_.A("videoDuration","isActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Qi.prototype,"hideProgressBar",null);
_.u(Qi,"ytd-progress-bar-line",function(){if(aZC===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);aZC=v}v=aZC;return v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var Z66;_.uj(_.AHX,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var X9=function(){var v=_.g.apply(this,arguments)||this;v.playerState=null;v.isMuted=!1;v.shortsModernControlsEnabled=_.Z("web_shorts_modern_controls");v.volumeControlsOrientationState="vertical_down";var E;if(E=_.Z("web_shorts_pip_button"))_.P().resolve(_.wUK),E=_.c_();v.shortsPipButtonEnabled=E;v.JSC$19578_playerEvents=new Map;return v};
_.S(X9,_.g);_.c=X9.prototype;_.c.created=function(){this.JSC$19578_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19578_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.c.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ci(28662);this.playPauseButtonClientVE=_.ci(36842);this.fullscreenButtonToggleOffClientVE=_.ci(222256);this.fullscreenButtonToggleOnClientVE=_.ci(222257);var v=_.lc(),E=_.bc();v&&E&&(_.Z("combine_ve_grafts")?(_.t$(_.Tl(),this.muteButtonClientVE,E),_.t$(_.Tl(),this.playPauseButtonClientVE,E)):_.Nt(v,E,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.c.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19578_playerEvents),this.player=null)};
_.c.getPlayerAndInitializeListeners=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return E=_.Aq(),E?_.m(n,E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.uo(v,v.onPageChanged)),n.jumpTo(0));v.player=n.yieldResult;v.initializePlayerListeners();_.yQ(n)})};
_.c.onPageChanged=function(v){var E=this;return _.X(function(n){if(n.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?n.return():_.m(n,_.V3().getPlayerPromise(),2);E.player=n.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.uo(E,E.onPageChanged));_.yQ(n)})};
_.c.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19578_playerEvents)};
_.c.onPlayerStateChange=function(v){this.playerState=v};
_.c.onPlayerVolumeChange=function(v){this.isMuted=v.muted};
_.c.onPlayPauseButtonClick=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.V3().getPlayerPromise(),2);E=f.yieldResult;(n=_.lc())&&v.playPauseButtonClientVE&&_.qx(n,v.playPauseButtonClientVE);E.getPlayerState()!==1?E.playVideo():E.pauseVideo();_.yQ(f)})};
_.c.computePlayPauseIcon=function(v){return v===2||v===-1||v===5?"PLAY_ARROW_FILLED":_.Z("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.c.computeFullscreenLabel=function(v){return v?_.tQ("FULLSCREEN_EXIT_LABEL"):_.tQ("FULLSCREEN_ENTER_LABEL")};
_.c.computeShortsPipLabel=function(v){return v?_.tQ("MINIPLAYER_CLOSE"):_.tQ("OPEN_IN_MINIPLAYER")};
_.c.computePlayPauseLabel=function(v){return v===1||v===3?_.tQ("PLAYER_LABEL_PAUSE"):_.tQ("PLAYER_LABEL_PLAY")};
_.c.onMuteButtonClick=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.V3().getPlayerPromise(),2);E=f.yieldResult;(n=_.lc())&&v.muteButtonClientVE&&_.qx(n,v.muteButtonClientVE);E.isMuted()?E.unMute(!0):E.mute(!0);_.yQ(f)})};
_.c.computeMuteIcon=function(v){return v?"miniplayer:volume-off":"miniplayer:volume-up"};
_.c.computeMuteLabel=function(v){return v?_.tQ("PLAYER_LABEL_UNMUTE"):_.tQ("PLAYER_LABEL_MUTE")};
_.c.onFullscreenButtonClick=function(){var v=_.lc();v&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.qx(v,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.qx(v,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.nHC()};
_.c.onShortsPipButtonClick=function(){var v=_.P().resolve(_.LQ);if(_.Z("web_shorts_pip")){var E=_.P().resolve(_.hf);v.isShortsPipActive()?E.deactivate():E.isMiniplayerActive()||(_.xo().shortsPipActivation=!0,_.K_p(E))}};
_.hK.Object.defineProperties(X9.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var v=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(){v.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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.Z("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.Z("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],X9.prototype,"componentBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],X9.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],X9.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],X9.prototype,"player",void 0);_.k([_.H(),_.W("design:type",Object)],X9.prototype,"playerState",void 0);_.k([_.H(),_.W("design:type",Object)],X9.prototype,"isMuted",void 0);
_.k([_.H({computed:"computePlayPauseIcon(playerState)"}),_.W("design:type",String)],X9.prototype,"playPauseIcon",void 0);_.k([_.H({computed:"computeMuteIcon(isMuted)"}),_.W("design:type",String)],X9.prototype,"muteIcon",void 0);_.k([_.H({selector:_.fU}),_.W("design:type",Boolean)],X9.prototype,"isFullscreen",void 0);_.k([_.H({selector:_.xC}),_.W("design:type",Boolean)],X9.prototype,"isShortsPipActive",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],X9.prototype,"shortsModernControlsEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],X9.prototype,"volumeControlsOrientationState",void 0);_.k([_.H(),_.W("design:type",Object)],X9.prototype,"shortsPipButtonEnabled",void 0);_.k([_.A("playerState"),_.W("design:type",Object),_.W("design:paramtypes",[])],X9.prototype,"playPauseButtonData",null);
_.k([_.A("isFullscreen"),_.W("design:type",Object),_.W("design:paramtypes",[])],X9.prototype,"fullscreenButtonData",null);_.k([_.A("isShortsPipActive"),_.W("design:type",Object),_.W("design:paramtypes",[])],X9.prototype,"shortsPipButtonData",null);_.k([_.A("isFullscreen"),_.W("design:type",String),_.W("design:paramtypes",[])],X9.prototype,"fullscreenIcon",null);_.k([_.A("isShortsPipActive"),_.W("design:type",String),_.W("design:paramtypes",[])],X9.prototype,"shortsPipIcon",null);
_.u(X9,"ytd-shorts-player-controls",function(){if(Z66===void 0){var v=document.createElement("template");_.q(v,'\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<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);Z66=v}v=Z66;return v},{mode:1});var C83;_.Yz(_.Jr1,"yt-interstitial-view-model",{props:{data:_.Kt}});var MeM=_.qu(function(v){var E=v.data;return _.w("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.w("h1",{class:"reelWatchBreakViewModelHostTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("h2",{class:"reelWatchBreakViewModelHostBody"},_.w(_.nh,{text:function(){return E().body},
isOverlay:!0})),_.w(_.mI,{data:function(){return E().buttons}},{buttonViewModel:function(n,f){return _.w("div",{class:function(){return f()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.w(_.C7,{data:n.data}))}}))},"si");
MeM.idomCompat=!0;_.Yz(MeM,"reel-watch-break-view-model",{props:{data:_.Kt}});var eT=function(){return _.g.apply(this,arguments)||this};
_.S(eT,_.g);eT.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}}};
_.hK.Object.defineProperties(eT.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.C((v=this.data)==null?void 0:v.renderer,edU)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.C((v=this.data)==null?void 0:v.renderer,F6d)}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],eT.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eT.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eT.prototype,"isSurvey",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eT.prototype,"isInterstitialViewModel",null);eT=_.k([_.N({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],eT);
_.u(eT,"ytd-reel-non-video-content-renderer",function(){if(C83!==void 0)return C83;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return C83=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var SjM;_.Yz(_.rA3,"desktop-shorts-player-controls",{});var F9=function(){var v=_.g.apply(this,arguments)||this;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.showPlayerControls=!1;v.showScrubber=!1;v.autoHideJobId=0;v.modern=_.Z("web_button_rework");v.overlayType=_.$6("web_shorts_expanded_overlay_type");v.panelData=void 0;v.isWatchWhileMode=!1;v.hasError=!1;v.panelShowDelayMs=1;v.scrubberComponent={};v.useStamper=_.Z("web_shorts_enable_title_deflation");v.isFullscreen=!1;v.shouldHideOverlay=!1;v.enableAnchoredPanel=_.Z("desktop_shorts_v2_anchored_panel");
v.enablePersistentAnchoredPanel=_.Z("desktop_shorts_v2_persistent_anchored_panel");v.hideWatchWhilePanel=_.Z("web_shorts_hide_watch_while_panel");v.isPersistentPanelActive=!1;v.anchoredPanelActive=!1;v.isShortsPipActive=!1;v.smallScreenSqueezeback=!1;v.enableFlexibleOverlay=_.Z("web_enable_flexible_overlay");v.overlayDensity=0;v.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
v.onWindowResized=function(){_.lz(v,"calculateOverlayDensity",function(){v.calculateOverlayDensity()},100)};
return v};
_.S(F9,_.g);_.c=F9.prototype;_.c.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.c.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.c.shouldRenderOverlayControl=function(v){return!this.useStamper&&this.isVideoContent(v)};
_.c.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var v=_.P().resolve(_.XQ);this.isWatchWhileMode&&(_.Z("web_enable_shorts_new_carousel")?_.wh.addJob(function(){v.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):v.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.c.handleShowReelsCommentsOverlayCommand=function(v){v=_.C(v,b6b);this.isActive&&(v==null?0:v.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))};
_.c.updateEngagementPanelVisibility=function(v,E){v&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:E?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:v}})};
_.c.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.c.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.P().resolve(_.LQ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.c.handleWatchWhilePanelScrimClick=function(){var v=_.P().resolve(_.XQ);this.activeWatchWhilePanel&&(v.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.c.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.c.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:_.Z("web_enable_shorts_new_carousel")?0:void 0}}};
_.c.handlePlayerClick=function(v){var E=this,n,f;if((f=(n=window).matchMedia)!=null&&f.call(n,"(any-pointer: coarse)").matches||!v)this.showPlayerControls=!0,_.wh.cancelJob(this.autoHideJobId),this.autoHideJobId=_.cP(_.wh,function(){E.showPlayerControls=!1},4E3)};
_.c.isFirstReel=function(){return this.index===0};
_.c.handleMouseenter=function(){_.wh.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.c.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.c.handleScrubberEnter=function(){this.showScrubber=!0};
_.c.handleScrubberLeave=function(){this.showScrubber=!1};
_.c.maybeLogNonDefaultAspectRatio=function(){var v;(v=this.data)!=null&&v.thumbnail&&this.isActive&&.5625!==i$U(this.data.thumbnail)&&_.YNI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.c.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var v=document.querySelector("#shorts-container");if(v){v=v.offsetWidth-96-this.playerContainer.offsetWidth-72;v=v>=720?1:v>=144?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&v===1&&(v=0);this.isPersistentPanelActive&&(v=0);this.overlayDensity=v;var E;(E=this.onOverlayDensityChanged)==null||E.call(this,this.index,this.overlayDensity)}}};
_.c.onOverlayDensityChange=function(){var v;(v=this.onOverlayDensityChanged)==null||v.call(this,this.index,this.overlayDensity);(v=_.K(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&v.set("overlayDensity",this.overlayDensity);if(v=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))v.overlayDensity=this.overlayDensity};
_.c.isVideoContent=function(v){_.P().resolve(_.LQ);return!!_.C(v,_.By)};
_.c.isNonVideoContent=function(v){_.P().resolve(_.LQ);return!!_.C(v,_.SO)};
_.c.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.hK.Object.defineProperties(F9.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var v,E;return _.Z("web_enable_format_first")||((v=this.data)==null?void 0:v.adsOverlay)&&_.Z("web_enable_format_first_ads_only")||((E=this.data)==null?void 0:E.reelPlayerOverlayRenderer)&&_.Z("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 v;return!this.isActive||!this.isPlayerStarted||(v=this.data)!=null&&v.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var v;if(this.useStamper&&((v=this.data)==null?0:v.command)&&this.isVideoContent(this.data.command)){var E,n;if(((E=this.data)==null?0:E.adsOverlay)&&Object.keys((n=this.data)==null?void 0:n.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var f,x;if(((f=this.data)==null?0:f.reelPlayerOverlayRenderer)&&Object.keys((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
F9.prototype.onOverlayDensityChange=F9.prototype.onOverlayDensityChange;F9.prototype.calculateOverlayDensity=F9.prototype.calculateOverlayDensity;F9.prototype.maybeLogNonDefaultAspectRatio=F9.prototype.maybeLogNonDefaultAspectRatio;F9.prototype.onEngagementPanelsChanged=F9.prototype.onEngagementPanelsChanged;F9.prototype.onScrubberDataChange=F9.prototype.onScrubberDataChange;F9.prototype.updateShouldHideOverlay=F9.prototype.updateShouldHideOverlay;
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],F9.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],F9.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],F9.prototype,"index",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],F9.prototype,"isActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],F9.prototype,"isHiddenInDom",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"isPlayerPaused",void 0);_.k([_.H({selector:RX_}),_.W("design:type",Object)],F9.prototype,"isPlayerStarted",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"showPlayerControls",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"showScrubber",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"autoHideJobId",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"overlayType",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],F9.prototype,"ytdReduxBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],F9.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"watchWhileEngagementPanels",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"panelData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"isWatchWhileMode",void 0);_.k([_.H(),_.W("design:type",String)],F9.prototype,"activeWatchWhilePanel",void 0);
_.k([_.H(),_.W("design:type",Object)],F9.prototype,"hasError",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"panelShowDelayMs",void 0);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"scrubberComponent",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"useStamper",void 0);_.k([_.H({selector:_.fU,reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"isFullscreen",void 0);
_.k([_.H(),_.W("design:type",Object)],F9.prototype,"shouldHideOverlay",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"enableAnchoredPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"enablePersistentAnchoredPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"hideWatchWhilePanel",void 0);
_.k([_.H({selector:_.tmy,reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"isPersistentPanelActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"anchoredPanelActive",void 0);_.k([_.H({selector:_.xC,reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"isShortsPipActive",void 0);_.k([_.H({selector:zXd,reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"smallScreenSqueezeback",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],F9.prototype,"enableFormatFirst",null);_.k([_.H(),_.W("design:type",Object)],F9.prototype,"enableFlexibleOverlay",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],F9.prototype,"overlayDensity",void 0);_.k([_.H(),_.W("design:type",Function)],F9.prototype,"onOverlayDensityChanged",void 0);
_.k([_.H(),_.A("isActive","hasError"),_.W("design:type",Object),_.W("design:paramtypes",[])],F9.prototype,"shouldRenderPlayerElements",null);_.k([_.H(),_.A("isActive","isWatchWhileMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],F9.prototype,"watchWhileOrPersistentActive",null);_.k([_.On("isActive","hasError","showingExpandedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"updateShouldHideOverlay",null);
_.k([_.H({reflectToAttribute:!0}),_.A("isActive","isPlayerStarted","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],F9.prototype,"shouldRenderScrubber",null);_.k([_.On("shouldRenderScrubber"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onScrubberDataChange",null);_.k([_.A("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],F9.prototype,"overlayComponent",null);
_.k([_.On("watchWhileEngagementPanels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onEngagementPanelsChanged",null);_.k([_.Wp("#player-container"),_.W("design:type",HTMLElement)],F9.prototype,"playerContainer",void 0);_.k([_.Wp("#cinematic-container"),_.W("design:type",HTMLElement)],F9.prototype,"cinematicContainer",void 0);
_.k([_.On("isPersistentPanelActive","data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"maybeLogNonDefaultAspectRatio",null);_.k([_.On("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"calculateOverlayDensity",null);_.k([_.On("overlayDensity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onOverlayDensityChange",null);
F9=_.k([_.N({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],F9);
_.u(F9,"ytd-reel-video-renderer",function(){if(SjM!==void 0)return SjM;var v=document.createElement("template");_.q(v,'\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]]" 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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return SjM=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var mF=function(){var v=_.g.apply(this,arguments)||this;v.isPreviousPageShorts=!1;v.index=0;v.delayedActiveIndex=0;v.playablePreviousIndex=null;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.intersectionObserverThreshold=.6;v.fitToVisibleBounds=!1;v.pageSubtype="shorts";v.panelShowDelayMs=_.WG("enable_shorts_panel_show_delay_ms");v.enablePreviousContinuation=_.Z("shorts_in_playlists_web");v.shortsPipEnabled=_.Z("web_shorts_pip");v.isDark=document.documentElement.hasAttribute("dark");v.shortsViewTransitions=
_.Z("web_shorts_view_transitions");v.isFullscreen=!1;v.isShortsPipActive=!1;v.buttonOverride={iconPosition:"icon-only",size:"XL"};v.anchoredPanelActive=!1;v.isActive=!1;v.smallScreenPersistentPanel=!1;v.isPersistentPanelActive=!1;v.smallScreenSqueezeBack=!1;v.enableScrollIntoViewCenter=_.Z("web_scroll_into_view_center");v.formatFirst=_.Z("web_enable_format_first")||_.Z("web_enable_format_first_ads_only")||_.Z("web_enable_format_first_organic_only");v.enableFlexibleOverlay=_.Z("web_enable_flexible_overlay");
v.isShortsInitialized=!1;v.hidePreviousButtonImmediately=!1;v.showPreviousButtonImmediately=!1;v.endOfNextContinuation=!1;v.currentPlayerIndex=0;v.nextReelVe=_.ci(56921);v.prevReelVe=_.ci(56922);v.loopToggleOffVe=_.ci(198013);v.loopToggleOnVe=_.ci(198014);v.ambientModeToggleVe=_.ci(227860);v.reelPlayerPausedStateRendererVe=_.ci(141313);v.storedPlaybackSpeed=null;v.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"};v.onOverlayDensityChanged=function(E,n){var f;(f=v.getActiveReelVideo(E))==null||f.setAttribute("overlay-density",String(n))};
return v};
_.S(mF,_.g);_.c=mF.prototype;
_.c.deflateInactivePreviousSlides=function(){var v=_.WG("web_shorts_deflate_inactive_slides_aggressive_distance");if(v>0&&this.shortsProcessedSequence&&this.activeIndex){v=this.activeIndex-v;for(var E=0;E<=v;E++){var n=void 0;((n=this.shortsProcessedSequence[E].reelPlayerOverlayRenderer)==null?0:n.likeButton)&&this.set("shortsProcessedSequence."+E+".reelPlayerOverlayRenderer",{});n=void 0;((n=this.shortsProcessedSequence[E].adsOverlay)==null?0:n.adSlotMetadata)&&this.set("shortsProcessedSequence."+E+
".adsOverlay",{})}}};
_.c.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.c.onResize=function(){var v=_.dG(),E=v.dispatch,n=this.calculateIsSmallWidth();E.call(v,_.un({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:n}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.c.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:_.Z("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.c.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var v=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,E=v,n=0;v<250&&(E=v+this.shortsInnerContainer.clientWidth,n=24);_.NQ(this.hostElement,{"--ytd-shorts-header-width":E+"px","--ytd-shorts-top-spacing":n+"px"})}};
_.c.isFirstShorts=function(v){return v?this.index===-v.length:this.index===0};
_.c.isActiveReel=function(v,E,n){n&&(E=this.calculatePrevIndex(E,n));return v===E};
_.c.onFullscreenChange=function(){if(_.Z("web_fullscreen_shorts")){var v;(v=this.getActiveReelVideo(this.activeIndex))==null||v.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.P().resolve(_.hf).close(!0)}};
_.c.engagementPanelsChanged=function(){var v;this.watchWhileEngagementPanels=(v=this.data)==null?void 0:v.engagementPanels};
_.c.unregisterPanels=function(){var v=_.P().resolve(_.XQ);if(this.watchWhileEngagementPanels)for(var E=_.p(this.watchWhileEngagementPanels),n=E.next();!n.done;n=E.next()){var f=void 0,x=void 0;n=(f=n.value.engagementPanelSectionListRenderer)==null?void 0:(x=f.identifier)==null?void 0:x.tag;v&&n&&v.panelMap.delete(n)}};
_.c.isVideoContent=function(v){return this.isVideoContentCommand(v==null?void 0:v.command)};
_.c.getActiveReelVideo=function(v){return _.K(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+v+'"]')};
_.c.calculatePrevIndex=function(v,E){return E?v-((E==null?void 0:E.length)||0):-1};
_.c.onKeydown=function(v){var E=_.MQ(v)||[];if(!_.vH3(E))if(v.code==="ArrowUp")v.preventDefault(),this.handlePrevButtonClick();else if(v.code==="ArrowDown")v.preventDefault(),this.handleNextButtonClick();else if(v.code==="KeyM")this.toggleMuteUnmuteVideo();else if(v.code==="KeyK"||v.code==="Space")this.togglePlayPauseVideo();else if((v.code==="KeyA"||v.code==="ArrowLeft")&&_.Z("web_shorts_keyboard_enable_seek_shortcuts")){var n;(n=this.player)==null||n.seekBy(-5)}else if((v.code==="KeyD"||v.code===
"ArrowRight")&&_.Z("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var f;(f=this.player)==null||f.seekBy(5)}};
_.c.onServiceRequestCompleted=function(v,E){v=E.data;v.continuationEndpoint&&v.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:v.entries,continuationEndpoint:v.continuationEndpoint}}):v.prevContinuationEndpoint&&v.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:v.prevEntries,prevContinuationEndpoint:v.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.c.handleEngagementPanelVisibilityChanged=function(v,E){var n=_.P().resolve(_.XQ);if(v&&n){var f,x=((f=v.identifier)==null?void 0:f.tag)||v.panelIdentifier||v.targetId;if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==x){n.hidePanel(this.activePanel);var y;this.activePanel=((y=v.identifier)==null?void 0:y.tag)||v.panelIdentifier}else this.isPersistentPanelActive=!0,_.dG().dispatch(o4U(!0)),this.anchoredPanelActive=!0,this.activePanel=x;else E==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===x&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.dG().dispatch(o4U(!1)))}};
_.c.handlePanelScrimClick=function(){var v=_.P().resolve(_.XQ);this.activePanel&&(v.hidePanel(this.activePanel),_.dG().dispatch(o4U(!1)))};
_.c.getShortsLoopSetting=function(){var v,E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return _.Z("kevlar_shorts_auto_advance")?_.m(y,_.wr.getInstance(),2):y.return(!0);case 2:return(v=y.yieldResult)?_.m(y,v.get("sfvles"),3):y.return(!0);case 3:return n=(E=y.yieldResult)!=null?E:!1,_.m(y,v.get("sfvle"),4);case 4:return x=(f=y.yieldResult)!=null?f:!0,n?y.return(x):y.return(!0)}})};
_.c.handleSignalActionToggleLoopShortsOff=function(){var v=this,E,n,f;return _.X(function(x){switch(x.nextAddress){case 1:if(!v.player)return x.return();v.player.setLoopVideo(!1);E=_.Tl();_.vg(E,v.loopToggleOffVe);return _.m(x,_.wr.getInstance(),2);case 2:return(n=x.yieldResult)?_.m(x,n.set("sfvle",!1),3):x.return();case 3:return _.m(x,n.set("sfvles",!0),4);case 4:f=_.Ef(),_.nH(0,203,!1),_.nH(0,204,!0),f.save(),_.yQ(x)}})};
_.c.handleSignalActionToggleLoopShortsOn=function(){var v=this,E,n,f;return _.X(function(x){switch(x.nextAddress){case 1:if(!v.player)return x.return();v.player.setLoopVideo(!0);E=_.Tl();_.vg(E,v.loopToggleOnVe);return _.m(x,_.wr.getInstance(),2);case 2:return(n=x.yieldResult)?_.m(x,n.set("sfvle",!0),3):x.return();case 3:return _.m(x,n.set("sfvles",!0),4);case 4:f=_.Ef(),_.nH(0,203,!0),_.nH(0,204,!0),f.save(),_.yQ(x)}})};
_.c.handleSignalActionToggleCinematicShortsOn=function(){T0M(!0);var v;(v=this.JSC$19603_cinematicController)==null||_.$ZK(v,!0);_.vg(_.Tl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.c.handleSignalActionToggleCinematicShortsOff=function(){T0M(!1);var v;(v=this.JSC$19603_cinematicController)==null||_.$ZK(v,!1);_.vg(_.Tl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.c.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.c.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.c.unhideCurrentOverlay=function(){if(this.overlayContainer){var v=this.overlayContainer.querySelector("#experiment-overlay");v&&_.wh.addLowPriorityJob(function(){v.style.display="unset"},100)}};
_.c.getCurrentShort=function(){if(this.currentEndpoint){var v=this.currentEndpoint;if(this.isNonVideoContentCommand(v)){var E=_.C(v,_.SO);return{reelNonVideoContentRenderer:_.C(E==null?void 0:E.renderer,_.aTw),command:v}}if(this.data){var n;E=(n=_.C(this.currentEndpoint,_.By))==null?void 0:n.thumbnail;var f;n=(f=this.data.overlay)==null?void 0:f.reelPlayerOverlayRenderer;_.P().resolve(_.LQ);v=this.data;var x,y;f=(x=v.overlay)==null?void 0:(y=x.shortsAdsRenderer)==null?void 0:y.adSlots;if(f!==void 0)f.length===
0?(_.$a("Shorts ads returned no ad slots."),v=void 0):(f.length>1&&_.$a("Shorts ads has more than one ad slots."),v=_.C(f[0],_.EDP));else{var Q,e;v=_.C((Q=v.overlay)==null?void 0:(e=Q.shortsAdsRenderer)==null?void 0:e.overlay,_.EDP)}Q=v;v=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.C(this.currentEndpoint,_.By),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:n,thumbnail:E,command:v,adsOverlay:Q}}}};
_.c.created=function(){var v=this;this.scrollToVideoThrottle=new _.ka(function(E){var n;(n=v.getActiveReelVideo(E))==null||n.scrollIntoView({behavior:"smooth",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.ka(function(E){var n;(n=v.getActiveReelVideo(E))==null||n.scrollIntoView({behavior:"auto",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.c.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.c.attached=function(){var v=this;E43(this);this.pageScrollElement=_.K(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.uo(this,this.processResetAction));_.Z("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.Z("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var E=v.getActiveReelVideo(v.activeIndex);
v.maybeCreateIntersectionObserver();E==null||E.scrollIntoView({behavior:"instant",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"});v.shortsContainer.style.overflowY="scroll"}))};
_.c.calculateSqueezebackPanelSize=function(){var v=this,E=window.innerWidth-456-(window.innerHeight-106)*.5625;_.wh.addLowPriorityJob(function(){E<360?_.dG().dispatch(fZ3(!0)):(v.hostElement.style.setProperty("--anchored-panel-width",Math.min(E,480)+"px"),_.dG().dispatch(fZ3(!1)))})};
_.c.detached=function(){var v=_.P().resolve(_.LQ);v.rootElement=void 0;var E;(E=v.unsubscribeFromStore)==null||E.call(v);v.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.uo(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.c.onResizeFinished=function(v,E){var n=this,f=new ResizeObserver(function(){n.shortsContainer.style.overflowY="hidden";_.wh.addLowPriorityJob(function(){E()},100)});
f.observe(v);return f};
_.c.resetDocumentScrollTop=function(){var v,E;if((v=document)==null?0:(E=v.scrollingElement)==null?0:E.scrollTop)document.scrollingElement.scrollTop=0};
_.c.loadPage_=function(v){var E=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),v){var n;if((n=_.C(this.currentEndpoint,_.By))==null?0:n.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=v;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){E.isPlayerStarted&&
(E.handleOnPlaybackCommand(),E.afterPlayerStarted=function(){})};
this.registerPanel(v)}};
_.c.afterPlayerStarted=function(){};
_.c.handleOnPlaybackCommand=function(){if(_.Z("web_shorts_comment_stickers")&&this.isPlayerStarted){var v,E=(v=_.C(this.currentEndpoint,_.By))==null?void 0:v.onPlaybackCommand;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.c.maybeCreateIntersectionObserver=function(){var v=this,E=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==E){this.intersectionObserverThreshold=E;var n={rootMargin:"0px",threshold:E},f;(f=this.intersectionObserver)==null||f.disconnect();this.intersectionObserver=new IntersectionObserver(function(x){x=_.p(x);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.intersectionRatio>E){y=Number(y.target.id);if(isNaN(y))break;if(y===v.index)break;
_.s9$();v.loadVideo(y);_.wj("r_vtc")}},n);
this.observeShorts()}};
_.c.observeShorts=function(){var v=[].concat(_.s8(_.K(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=void 0;(n=this.intersectionObserver)==null||n.observe(E)}};
_.c.initCsi=function(){_.ad("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var v={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"}},E,n;if((E=this.playerData)==null?0:(n=E.cacheMetadata)==null?0:n.isCacheHit)v.isCacheHit=!0;var f;if(E=(f=_.C(this.currentEndpoint,_.By))==null?void 0:
f.prefetchTaskId)v.prefetchInfo={taskId:E};_.XD(v)};
_.c.isAd=function(){var v,E;return!!((v=_.C(this.currentEndpoint,_.By))==null?0:(E=v.adClientParams)==null?0:E.isAd)};
_.c.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.c.getPlayerContainer=function(){var v;return(v=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:v.playerContainer};
_.c.onPlayerStateChange=function(v){var E=this;this.isPlayerPaused=v===2;v!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?v===1&&this.index===0&&(this.isPlayerStarted||_.dG().dispatch(fu(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.dG().dispatch(fu(!0)));this.player&&!this.player.getLoopVideo()&&_.wh.addLowPriorityJob(function(){E.getShortsLoopSetting().then(function(n){var f;(f=E.player)==null||f.setLoopVideo(n)})});
this.isPlayerPaused&&_.Z("web_shorts_paused_state_logging")&&_.CH(_.lc(),[this.reelPlayerPausedStateRendererVe])};
_.c.isInBackground=function(){var v=window.document.visibilityState;return!(!v||v==="visible")};
_.c.isShortPlayable=function(){if(_.Z("kevlar_playable_short_killswitch"))return!0;var v;return(v=this.playerData)!=null&&v.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.c.setNormalPlaybackSpeed=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.getPlayer().getPlayerPromise(),2);E=f.yieldResult;n=E.getPlaybackRate();n!==1&&(v.storedPlaybackSpeed=n,E.setPlaybackRate(1));_.yQ(f)})};
_.c.restorePlaybackSpeed=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1)return v.storedPlaybackSpeed===null?n.jumpTo(0):_.m(n,v.getPlayer().getPlayerPromise(),3);E=n.yieldResult;E.setPlaybackRate(v.storedPlaybackSpeed);v.storedPlaybackSpeed=null;_.yQ(n)})};
_.c.playerDataChanged=function(){var v=this,E,n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1){E=v.getPlayer();_.Z("web_shorts_dynamic_intersection_observer_threshold")&&((n=v.intersectionObserver)==null||n.disconnect());if(v.playerData){if(((f=v.playerData.videoDetails)==null?void 0:f.videoId)!==((x=E.getPlayer())==null?void 0:x.getVideoData().video_id)){y={};if(Q=_.C(v.currentEndpoint,_.By))y.watch_endpoint=Q,Q.endTimeSeconds&&(y.end=Q.endTimeSeconds);E.loadVideoWithPlayerResponse(v.playerData,
y)}}else return l.return();return v.player?l.jumpTo(2):_.m(l,E.getPlayerPromise(),3)}l.nextAddress!=2&&(v.player=l.yieldResult,v.JSC$19603_playerStateChangeListener=v.onPlayerStateChange.bind(v),v.player.addEventListener("onStateChange",v.JSC$19603_playerStateChangeListener),_.Z("kevlar_client_enable_shorts_player_bootstrap")&&_.uT(),v.scrollToVideoThrottle.fire(v.index),v.movePlayerToVideo(v.index),_.wh.addLowPriorityJob(function(){v.getShortsLoopSetting().then(function(r){var a;(a=v.player)==null||
a.setLoopVideo(r)})}),_.Re1.resolve(v.player),v.player.syncVolume(),v.getPlayer().focusOnPlayer());
_.Z("web_shorts_caption_language_entity_killswitch")||_.wh.addLowPriorityJob(function(){var r=_.P().resolve(_.LQ),a,M=(a=v.player)==null?void 0:a.getOption("captions","track");a=_.$s("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(M){var U;((U=_.Bi(_.qgQ,a)())==null?void 0:U.value)!==M.displayName&&r.store.dispatch(_.n7("stringEntity",a,{key:a,value:M.displayName||""}))}else r.store.dispatch(_.n7("stringEntity",a,{key:a,value:"CAPTIONS_UNAVAILABLE"}))});
_.wh.addLowPriorityJob(function(){v.observeShorts()},100);
e=v.player.getPlayerState(v.player.getPresentingPlayerType());e!==1||v.isPlayerStarted||_.dG().dispatch(fu(!0));v.updateBackNavContainerWidth();F=_.C(v.currentEndpoint,_.By);((b=F)==null?0:b.startTimeSeconds)&&v.player.seekTo(F.startTimeSeconds);if(v.JSC$19603_cinematicController||v.cinematicsInitializeJobId)return l.return();v.cinematicsInitializeJobId=_.wh.addLowPriorityJob(function(){v.initCinematicController();v.cinematicsInitializeJobId=void 0});
_.yQ(l)})};
_.c.onShortUndoDismiss=function(){var v=this,E=n40().pop();E!==void 0&&(_.IS(this,function(){v.showCardWithIndex(E)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.c.onShortsDismiss=function(v){if(v=v.detail.reelDismissalActionRenderer)(v=_.C(v.onDismissalCompletionRenderer,_.Z$R))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:v}}}),this.scrollAndDismissCard()};
_.c.processReelNonVideoContentDismissalCommand=function(v){var E=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);v=_.C(v,w4_);this.activeDimissalTimeout=setTimeout(function(){E.scrollAndDismissCard()},Number(v==null?void 0:v.delayMs))};
_.c.scrollAndDismissCard=function(){var v=this,E=this.index;n40().push(E);_.IS(this,function(){var n=v.getPlayableNextIndex();n!==null&&(n=v.getActiveReelVideo(n),v.hideCardWithIndex(E),n==null||n.scrollIntoView({behavior:"smooth",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"}))})};
_.c.hideCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!0};
_.c.showCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!1};
_.c.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.c.activeChanged=function(v){_.dG().dispatch(_.un({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:v}}));if(v)document.addEventListener("keydown",_.uo(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var E;(E=this.player)==null||E.sendAbandonmentPing()}var n;(n=this.player)==null||n.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.uo(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.c.graftClientVisualElements=function(){if(this.data){var v=_.Tl();_.zGU(v,_.Gn({response:this.reelWatchSequenceResponse}));_.t$(v,this.nextReelVe);_.t$(v,this.prevReelVe);_.Z("kevlar_shorts_auto_advance")&&(_.t$(v,this.loopToggleOffVe),_.t$(v,this.loopToggleOnVe));_.t$(v,this.ambientModeToggleVe);_.CH(_.lc(),[this.nextReelVe,this.prevReelVe]);_.Z("web_shorts_paused_state_logging")&&_.t$(v,this.reelPlayerPausedStateRendererVe)}};
_.c.graftNvcRenderer=function(){var v,E,n,f,x=this.index<0?(v=this.shortsProcessedPrevSequence)==null?void 0:(E=v[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:E.command:(n=this.shortsProcessedSequence)==null?void 0:(f=n[this.index])==null?void 0:f.command;if(x&&this.isNonVideoContentCommand(x)){v=_.C(x,_.SO);var y,Q;(v=(y=_.C(v==null?void 0:v.renderer,_.aTw))==null?void 0:(Q=y.loggingDirectives)==null?void 0:Q.trackingParams)&&_.Tl().graftServerVe(v)}};
_.c.setActiveIndex=function(){_.P().resolve(_.LQ).setActiveIndex(this.index)};
_.c.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.c.lazyUpdateMiniplayerData=function(){var v=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.wh.addLowPriorityJob(function(){v.updateMiniplayerData();v.updateMiniplayerDataJobId=void 0}))};
_.c.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.wh.cancelJob(this.updateMiniplayerDataJobId)};
_.c.updateMiniplayerData=function(){var v,E,n,f=_.P().resolve(_.hf),x={shortsData:this.getCurrentShort(),previousButtonDisabled:!((v=this.prevButtonData)==null||!v.isDisabled),nextButtonDisabled:!((E=this.nextButtonData)==null||!E.isDisabled),playabilityStatus:(n=this.playerData)==null?void 0:n.playabilityStatus};_.ei(f,x)};
_.c.resetPlayerLocation=function(){var v=this.getPlayer();this.initialPlayerContainer&&(v.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.c.movePlayerToVideo=function(v,E){var n=this;E=E===void 0?!0:E;var f=this.getActiveReelVideo(v),x=this.getPlayer();if(f){this.overlayContainer||(this.overlayContainer=_.K(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||x.appendTo(this.overlayContainer.playerContainer,void 0,!0));f.appendChild(this.overlayContainer);var y;(y=this.player)==null||y.setSize(NaN,NaN);this.isActive||_.cP(_.wh,function(){n.isActive=!0});
x.style.visibility="visible";_.Z("reels_web_disable_rtr_tick")||_.Z("reels_web_use_pbs_first_shorts")&&v===0||_.FD("r_tr");this.currentPlayerIndex=v;f.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else E?_.wh.addLowPriorityJob(function(){n.movePlayerToVideo(n.index,!1)}):Math.random()<=_.WG("web_shorts_error_logging_threshold")&&_.bi(new _.yc("Trying to movePlayerToVideo with undefined container.",{firstAttempt:E,
index:v}))};
_.c.enableFormatFirst=function(v){return _.Z("web_enable_format_first")||v.adsOverlay&&_.Z("web_enable_format_first_ads_only")||v.reelPlayerOverlayRenderer&&_.Z("web_enable_format_first_organic_only")};
_.c.getAspectRatio=function(v){if(v!=null&&v.thumbnail&&this.enableFormatFirst(v))return"--ytd-shorts-player-ratio: "+i$U(v.thumbnail)};
_.c.getBackgroundImage=function(v){if(v!=null&&v.thumbnail)return(v=_.AZ(v.thumbnail.thumbnails))?'background-image:url("'+v+'");':"background-color:black;"};
_.c.onPersistentPanelActiveChanged=function(){var v=this.getCurrentShort();if(v&&this.enableFormatFirst(v)&&(v==null?0:v.thumbnail)&&i$U(v.thumbnail)!==.5625){var E;(E=this.player)==null||E.setSize(NaN,NaN)}};
_.c.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.c.maybeMoveCinematicsToVideo=function(){var v=this;this.cinematicTransitionJobId&&_.wh.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.wh.addLowPriorityJob(function(){v.moveCinematicsToVideo()},500)};
_.c.moveCinematicsToVideo=function(){var v;(v=this.JSC$19603_cinematicController)!=null&&(v=v.currentCinematicEffect)!=null&&(v=v.storyboardManager,v.paused=!1,_.qJp(v),v.update());v=_.K(this.hostElement).querySelector("ytd-reel-video-renderer");(v==null?0:v.cinematicContainer)&&v.cinematicContainer!==this.shortsCinematicContainer.parentElement&&v.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.c.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.c.updatePrevButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(v){var E;this.prevButtonData=v=Object.assign({},v,{accessibility:{label:_.tQ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:v.isDisabled||this.index===-(((E=this.shortsProcessedPrevSequence)==null?void 0:E.length)||0),tooltip:this.isUpArrowHidden?"":_.tQ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=v=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.c.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.c.updateNextButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(v){var E;this.nextButtonData=v=Object.assign({},v,{accessibility:{label:_.tQ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:v.isDisabled||this.index===((E=this.shortsProcessedSequence)==null?void 0:E.length),tooltip:_.tQ("NEXT_VIDEO_LABEL")||""})}};
_.c.getPlayablePreviousIndex=function(){for(var v,E=this.index-1;E>=-(((v=this.prevShortsSequence)==null?void 0:v.length)||0);E--)if(!n40().includes(E))return E;return null};
_.c.getIndexInSequence=function(v,E){return v.findIndex(function(n){var f;return((f=_.C(n.command,_.By))==null?void 0:f.videoId)===E})};
_.c.handlePrevButtonClick=function(v){var E=this,n,f;return _.X(function(x){n=E.getPlayablePreviousIndex();if(n===null)return x.return();E.gestureType=((f=v)==null?void 0:f.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";n===0&&(E.hidePreviousButtonImmediately=!0);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.transitionToVideoThrottle.fire(n)}),x.return();
E.scrollToVideoThrottle.fire(n);_.yQ(x)})};
_.c.getPlayableNextIndex=function(){for(var v,E=this.index+1;E<(((v=this.shortsProcessedSequence)==null?void 0:v.length)||0);E++)if(!n40().includes(E))return E;return null};
_.c.handleNextButtonClick=function(v,E){var n=this,f,x;return _.X(function(y){f=n.getPlayableNextIndex();if(f===null)return y.return();f===1&&(n.showPreviousButtonImmediately=!0);n.gestureType=((x=v)==null?void 0:x.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E&&(n.gestureType=E);if(n.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){n.transitionToVideoThrottle.fire(f)}),y.return();
n.scrollToVideoThrottle.fire(f);_.yQ(y)})};
_.c.handleReelNavigateCommand=function(v,E,n){(v=_.C(v,mJ3))&&E&&v.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(n)};
_.c.loadVideo=function(v,E){E=E===void 0?!1:E;if(v!==this.currentPlayerIndex){_.dG().dispatch(fu(!1));if(this.isAd()&&!E){var n;(n=this.player)==null||n.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.wh.cancelJob(this.cinematicTransitionJobId);if((E=this.JSC$19603_cinematicController)!=null){var f;(f=E.currentCinematicEffect)==null||f.pause()}if((f=this.JSC$19603_cinematicController)!=null){var x;(x=f.currentCinematicEffect)==null||x.clear()}f=v>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(f));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var y,Q,e,F;x=v<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(Q=y[this.shortsProcessedPrevSequence.length+v])==null?void 0:Q.command:(e=this.shortsProcessedSequence)==null?void 0:(F=e[v])==null?void 0:F.command;this.index=v;this.gestureType||(this.gestureType=f?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");x&&this.isVideoContentCommand(x)&&(this.ytComponentBehavior.resolveCommand(x,{form:{createScreenConfig:{clickedVisualElement:f?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(x&&this.isNonVideoContentCommand(x)){this.currentEndpoint=x;this.data=void 0;y=_.Tl();Q=_.C(x,_.SO);var b,l;(Q=(b=_.C(Q==null?void 0:Q.renderer,_.aTw))==null?void 0:(l=b.screenLoggingData)==null?void 0:l.screenVeType)&&_.Rs(y,
Q);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}b=_.WG("reels_enable_early_continuation_offset")<=0?1:_.WG("reels_enable_early_continuation_offset");var r,a;if(((r=this.reelWatchSequenceResponse)==null?0:r.continuationEndpoint)&&((a=this.reelWatchSequenceResponse)==null?0:a.entries)&&v===this.reelWatchSequenceResponse.entries.length-b){var M,U;r={contentPlaybackContext:_.vp({},(U=_.C((M=this.currentEndpoint)==null?void 0:M.commandMetadata,_.Dl))==null?void 0:
U.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:r})}var d,Y,V;((d=this.reelWatchSequenceResponse)==null?0:d.prevContinuationEndpoint)&&v===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(V=Y.prevEntries)==null?void 0:V.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.c.setMiniplayerPreview=function(v){v=(v===void 0?0:v)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var E,n,f=_.P().resolve(_.hf),x={shortsData:void 0,shortsPreviewThumbnail:v?(E=this.shortsProcessedSequence)==null?void 0:(n=E[v])==null?void 0:n.thumbnail:void 0};_.ei(f,x)};
_.c.updateTitle=function(v){var E,n;v=(v==null?0:v.adPlacements)?"":(n=v==null?void 0:(E=v.videoDetails)==null?void 0:E.title)!=null?n:"";_.jK(this.hostElement,"yt-update-title",v)};
_.c.registerPanel=function(v){var E=_.P().resolve(_.XQ);if(E){v=_.p(v.engagementPanels||[]);for(var n=v.next();!n.done;n=v.next()){n=n.value;var f=n.engagementPanelSectionListRenderer,x=void 0,y=void 0,Q=void 0,e=void 0,F=((x=f)==null?void 0:x.targetId)||((y=f)==null?void 0:y.panelIdentifier)||((Q=f)==null?void 0:(e=Q.identifier)==null?void 0:e.tag);x=f=void 0;(x=(f=E).registerPanelContent)==null||x.call(f,F,n)}}};
_.c.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;_.dG().dispatch(fu(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.dG().dispatch(o4U(!1));var v=_.P().resolve(_.LQ);v.dismissedIndices=[];v.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.P().resolve(_.hf).close(!0)};
_.c.processAppendReelWatchSequenceContinuationEntriesAction=function(v){var E=this,n;(n=this.intersectionObserver)==null||n.disconnect();v=v.appendReelWatchSequenceContinuationEntriesAction;if(v==null?0:v.entries){var f;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.s8(((f=this.reelWatchSequenceResponse)==null?void 0:f.entries)||[]),_.s8(v.entries)),continuationEndpoint:v.continuationEndpoint})}else if(v==null?0:v.prevEntries){var x;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.s8(((x=this.reelWatchSequenceResponse)==null?void 0:x.prevEntries)||[]),_.s8(v.prevEntries)),prevContinuationEndpoint:v.prevContinuationEndpoint});_.wh.addLowPriorityJob(function(){E.movePlayerToVideo(E.index);var y;(y=E.getActiveReelVideo(E.index))==null||y.scrollIntoView({block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.wh.addLowPriorityJob(function(){E.observeShorts()},100)};
_.c.processWatchSequence=function(v){var E=this;return v.map(function(n){n=n.command;if(E.isVideoContentCommand(n)){var f=_.C(n,_.By);return{reelPlayerOverlayRenderer:_.C(f==null?void 0:f.overlay,_.ZMP),thumbnail:f.thumbnail,command:n}}return E.isNonVideoContentCommand(n)?(f=_.C(n,_.SO),{reelNonVideoContentRenderer:_.C(f==null?void 0:f.renderer,_.aTw),command:n}):{command:n}})};
_.c.calculateIntersectionObserverThreshold=function(){if(!_.Z("web_shorts_dynamic_intersection_observer_threshold"))return.6;var v=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"),E=1;(v==null?0:v.offsetHeight)&&(v==null?0:v.offsetWidth)&&(E=Math.min(v.offsetHeight,this.shortsContainer.offsetHeight)/v.offsetHeight*(Math.min(v.offsetWidth,this.shortsContainer.offsetWidth)/v.offsetWidth));return Math.round(E*.6*10)/10};
_.c.isVideoContentCommand=function(v){_.P().resolve(_.LQ);return!!_.C(v,_.By)};
_.c.isNonVideoContentCommand=function(v){_.P().resolve(_.LQ);return!!_.C(v,_.SO)};
_.c.initCinematicController=function(){var v=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19603_cinematicController=new _.oL(this.shortsCinematicContainer,this.player);var E,n=_.C((E=this.data)==null?void 0:E.background,_.sr);_.LBM(this.JSC$19603_cinematicController,n);_.$ZK(this.JSC$19603_cinematicController,G$6(n));_.WB6(this.JSC$19603_cinematicController);_.wh.addLowPriorityJob(function(){v.moveCinematicsToVideo()})}};
_.c.handleMiniplayerNavigateShorts=function(v){v==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():v==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.c.shouldDisplayReelVideoOverlay=function(v,E){return _.Z("web_enable_shorts_new_carousel")?Math.abs(v-E)<2:!0};
_.hK.Object.defineProperties(mF.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.prevEntries)return this.processWatchSequence([].concat(_.s8(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var v=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!v)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var E=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.s8(this.prevShortsSequence.slice(0,E)),[v],_.s8(this.prevShortsSequence.slice(E+
1)))}E=this.index+this.shortsProcessedPrevSequence.length;v.thumbnail=this.shortsProcessedPrevSequence[E].thumbnail;return[].concat(_.s8(this.shortsProcessedPrevSequence.slice(0,E)),[v],_.s8(this.shortsProcessedPrevSequence.slice(E+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var v=this.getCurrentShort();if(!v||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[v];if(v==null||!v.reelNonVideoContentRenderer){var E=this.getIndexInSequence(this.shortsSequence,_.C(this.currentEndpoint,_.By).videoId);if(this.index===0&&E!==-1)return this.currentPlayerIndex=this.index=E,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.s8(this.shortsSequence.slice(0,this.index)),[v],_.s8(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){v.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var n,f,x,y;E=((f=_.C((n=this.shortsProcessedSequence[0])==null?void 0:n.command,_.By))==null?void 0:f.videoId)===((y=_.C((x=this.shortsSequence[0])==null?void 0:x.command,_.By))==null?void 0:y.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.s8(this.shortsProcessedSequence.slice(0,
this.index)),[v],_.s8(this.shortsSequence.slice(E)))}return[v].concat(_.s8(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var v=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;v&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(v)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 v,E;return this.index===((v=this.reelWatchSequenceResponse)==null?void 0:(E=v.entries)==null?void 0:E.length)}var n;return!((n=this.reelWatchSequenceResponse)==null?0:n.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var v;(v=this.delayedActiveIndexUpdateDebouncer)==null||v.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return this.isShortPlayable()||((E=_.C((v=this.data)==null?void 0:v.watchStatus,_.ITl))==null?void 0:(n=E.style)==null?void 0:n.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var v=this,E=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),n;if((this.data||E)&&(((n=this.data)==null?0:n.engagementPanels)||this.isAd()||E)){E=!1;this.activePanel="shorts-comments-panel";var f;n=_.p(((f=this.data)==null?void 0:f.engagementPanels)||[]);for(f=n.next();!f.done;f=n.next()){f=f.value.engagementPanelSectionListRenderer;var x=void 0,y=void 0,Q=void 0,e=void 0;if((((x=f)==null?void 0:(y=x.identifier)==
null?void 0:y.tag)||((Q=f)==null?void 0:Q.targetId)||((e=f)==null?void 0:e.panelIdentifier))===this.activePanel){E=!0;break}}if(this.isPersistentPanelActive){var F=_.P().resolve(_.XQ);_.cP(_.wh,function(){F.showPanel(v.activePanel,void 0,void 0,void 0,null)},100)}n=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
f=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(n===void 0&&f===void 0||(n==null?0:n.isDisabled)||(f==null?void 0:f.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!E){var b,l,r=(b=this.data)==null?void 0:(l=b.engagementPanels)==null?void 0:l.findIndex(function(d){var Y,V;return((Y=d.engagementPanelSectionListRenderer)==null?void 0:(V=
Y.identifier)==null?void 0:V.tag)==="shorts-comments-panel"});
if(r!==-1&&r!==void 0){var a,M;(a=this.data)==null||(M=a.engagementPanels)==null||M.splice(r,1)}var U;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.tQ("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.tQ("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:_.tQ("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.tQ("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(_.s8(Object.values(((U=this.data)==null?void 0:U.engagementPanels)||{})))}return(r=this.data)==null?void 0:r.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.shortsProcessedSequence)==null?void 0:v[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n,f;if((E=this.playerData)==null?0:(n=E.playabilityStatus)==null?0:(f=n.errorScreen)==null?0:f.playerInterstitialRenderer)return _.wh.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.playerData.playabilityStatus.errorScreen;
var x,y;return((x=this.data)==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((y=this.data)==null?0:y.watchStatus)&&_.C(this.data.watchStatus,_.hkw)?(_.wh.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.hK.Object.defineProperties(mF,{template:{configurable:!0,enumerable:!0,get:function(){if(sIK===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);sIK=v}v=sIK;return v}}});
mF.prototype.onNextButtonDataChange=mF.prototype.onNextButtonDataChange;mF.prototype.onPrevButtonDataChange=mF.prototype.onPrevButtonDataChange;mF.prototype.onPersistentPanelActiveChanged=mF.prototype.onPersistentPanelActiveChanged;mF.prototype.lazyUpdateMiniplayerData=mF.prototype.lazyUpdateMiniplayerData;mF.prototype.onShortsPipActiveChanged=mF.prototype.onShortsPipActiveChanged;mF.prototype.setActiveIndex=mF.prototype.setActiveIndex;mF.prototype.graftNvcRenderer=mF.prototype.graftNvcRenderer;
mF.prototype.graftClientVisualElements=mF.prototype.graftClientVisualElements;mF.prototype.onActiveChanged=mF.prototype.onActiveChanged;mF.prototype.onShortsDismiss=mF.prototype.onShortsDismiss;mF.prototype.onShortUndoDismiss=mF.prototype.onShortUndoDismiss;mF.prototype.playerDataChanged=mF.prototype.playerDataChanged;mF.prototype.afterPlayerStarted=mF.prototype.afterPlayerStarted;mF.prototype.unhideCurrentOverlay=mF.prototype.unhideCurrentOverlay;mF.prototype.onServiceRequestCompleted=mF.prototype.onServiceRequestCompleted;
mF.prototype.engagementPanelsChanged=mF.prototype.engagementPanelsChanged;mF.prototype.onFullscreenChange=mF.prototype.onFullscreenChange;mF.prototype.onResize=mF.prototype.onResize;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Zi.YtPageBehavior),_.W("design:type",Object)],mF.prototype,"ytPageBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.ZT),_.W("design:type",Object)],mF.prototype,"ironResizableBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],mF.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],mF.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],mF.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"playerData",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"reelWatchSequenceResponse",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"cachedReelWatchSequenceResponse",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"currentEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"nextButtonData",void 0);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"prevButtonData",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"isPreviousPageShorts",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"index",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"delayedActiveIndex",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"playablePreviousIndex",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"player",void 0);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"isPlayerPaused",void 0);_.k([_.H({selector:RX_}),_.W("design:type",Object)],mF.prototype,"isPlayerStarted",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"intersectionObserver",void 0);_.k([_.H(),_.W("design:type",Number)],mF.prototype,"cinematicsInitializeJobId",void 0);_.k([_.H(),_.W("design:type",Number)],mF.prototype,"cinematicTransitionJobId",void 0);
_.k([_.H(),_.W("design:type",Number)],mF.prototype,"updateMiniplayerDataJobId",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"fitToVisibleBounds",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"pageSubtype",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"panelShowDelayMs",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],mF.prototype,"enablePreviousContinuation",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"shortsPipEnabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"isDark",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"shortsViewTransitions",void 0);_.k([_.H({selector:_.fU,reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"isFullscreen",void 0);
_.k([_.H({selector:_.xC,reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"isShortsPipActive",void 0);_.k([_.Wp("#shorts-inner-container"),_.W("design:type",HTMLElement)],mF.prototype,"shortsInnerContainer",void 0);_.k([_.Wp("#back-nav-button ytd-button-renderer"),_.W("design:type",_.Ad)],mF.prototype,"backNavButton",void 0);_.k([_.Wp("#shorts-container"),_.W("design:type",HTMLElement)],mF.prototype,"shortsContainer",void 0);
_.k([_.uk("error-screen"),_.W("design:type",HTMLElement)],mF.prototype,"errorScreenContainer",void 0);_.k([_.uk("player"),_.W("design:type",Object)],mF.prototype,"playerElement",void 0);_.k([_.uk("shorts-cinematic-container"),_.W("design:type",HTMLElement)],mF.prototype,"shortsCinematicContainer",void 0);_.k([_.uk("initial-player-container"),_.W("design:type",HTMLElement)],mF.prototype,"initialPlayerContainer",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"buttonOverride",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"anchoredPanelActive",void 0);_.k([_.H(),_.W("design:type",String)],mF.prototype,"activePanel",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"isActive",void 0);_.k([_.H({selector:zXd,reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"smallScreenPersistentPanel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"isPersistentPanelActive",void 0);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"smallScreenSqueezeBack",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"enableScrollIntoViewCenter",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"formatFirst",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],mF.prototype,"enableFlexibleOverlay",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"panelContainer",void 0);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"overlayContainer",void 0);_.k([_.H(),_.W("design:type",Object)],mF.prototype,"isShortsInitialized",void 0);_.k([_.A("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"prevShortsSequence",null);_.k([_.A("data","prevShortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"shortsProcessedPrevSequence",null);
_.k([_.A("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"shortsSequence",null);_.k([_.A("data","shortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"shortsProcessedSequence",null);
_.k([_.H({reflectToAttribute:!0}),_.A("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mF.prototype,"isUpArrowHidden",null);_.k([_.H({reflectToAttribute:!0}),_.A("reelWatchSequenceResponse","index","endOfNextContinuation"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mF.prototype,"isDownArrowHidden",null);
_.k([_.H(),_.A("index"),_.W("design:type",Number),_.W("design:paramtypes",[])],mF.prototype,"activeIndex",null);_.k([_.A("isShortPlayable","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mF.prototype,"shouldRenderOfflineContent",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onResize",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"anchoredEngagementPanels",null);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"watchWhileEngagementPanels",void 0);_.k([_.On("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onFullscreenChange",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"engagementPanelsChanged",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],mF.prototype,"onServiceRequestCompleted",null);_.k([_.A("data","shortsSequence","index"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"activeReel",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"unhideCurrentOverlay",null);
_.k([_.On("isPlayerStarted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"afterPlayerStarted",null);_.k([_.A("playerData","reelWatchSequenceResponse","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mF.prototype,"errorScreen",null);_.k([_.A("errorScreen"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mF.prototype,"hasError",null);
_.k([_.On("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],mF.prototype,"playerDataChanged",null);_.k([_.jk("yt-dismissible-item-undo-feedback"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onShortUndoDismiss",null);_.k([_.jk("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],mF.prototype,"onShortsDismiss",null);
_.k([_.Tw("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onActiveChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"graftClientVisualElements",null);_.k([_.On("currentPlayerIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"graftNvcRenderer",null);
_.k([_.On("index"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"setActiveIndex",null);_.k([_.On("isShortsPipActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onShortsPipActiveChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"lazyUpdateMiniplayerData",null);
_.k([_.H(),_.W("design:type",Object)],mF.prototype,"onOverlayDensityChanged",void 0);_.k([_.On("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onPersistentPanelActiveChanged",null);_.k([_.On("index","data","isUpArrowHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onPrevButtonDataChange",null);
_.k([_.On("index","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mF.prototype,"onNextButtonDataChange",null);mF=_.k([_.N({is:"ytd-shorts"})],mF);_.mN.registerService(_.$4F,mF);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("JzFVk");
var ibM=function(v){return _.w("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},T3d(v.data.ctaButton,{buttonViewModel:{}}),_.w(_.nh,{text:v.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var zvp;var Rvb;var YA=function(){return _.g.apply(this,arguments)||this};
_.S(YA,_.g);YA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
YA.prototype.computeBlueBottomLink=function(v){return v};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YA.prototype,"data",void 0);_.k([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.W("design:type",String)],YA.prototype,"bottomIcon",void 0);
_.k([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.W("design:type",Boolean)],YA.prototype,"enableBlueBottomLink",void 0);YA=_.k([_.N({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],YA);
_.u(YA,"ytd-web-answer-renderer",function(){if(Rvb!==void 0)return Rvb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Rvb=v},{mode:_.HE("kevlar_poly_si_batch_j035")?1:2});var tFC;var hH=function(){var v=_.g.apply(this,arguments)||this;v.hasChipBar=!1;return v};
_.S(hH,_.g);hH.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}}};
hH.prototype.computeHasChipBar=function(v){return!(v==null||!v.chipBar)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hH.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.W("design:type",Object)],hH.prototype,"hasChipBar",void 0);hH=_.k([_.N({is:"ytd-search-header-renderer",disableElementRegistration:!0})],hH);
_.u(hH,"ytd-search-header-renderer",function(){if(tFC!==void 0)return tFC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return tFC=v},{mode:1});var B3C;var AH=function(){return _.g.apply(this,arguments)||this};
_.S(AH,_.g);AH.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],AH.prototype,"data",void 0);AH=_.k([_.N({disableElementRegistration:!0,is:"ytd-page-continuation"})],AH);
_.u(AH,"ytd-page-continuation",function(){if(B3C!==void 0)return B3C;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return B3C=v},{mode:1});var vW1;var EWb;var nWp;var Va=function(){return _.g.apply(this,arguments)||this};
_.S(Va,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Va.prototype,"data",void 0);Va=_.k([_.N({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Va);
_.u(Va,"ytd-watch-card-one-vs-one-event",function(){if(nWp!==void 0)return nWp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return nWp=v},{mode:1});var Ds=function(){return _.g.apply(this,arguments)||this};
_.S(Ds,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ds.prototype,"data",void 0);Ds=_.k([_.N({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Ds);
_.u(Ds,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(EWb!==void 0)return EWb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return EWb=v},{mode:1});var oWp;var Hh=function(){return _.g.apply(this,arguments)||this};
_.S(Hh,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Hh.prototype,"data",void 0);Hh=_.k([_.N({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Hh);
_.u(Hh,"ytd-banner-and-box-hero-image-renderer",function(){if(oWp!==void 0)return oWp;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oWp=v},{mode:1});var f0K;var N4=function(){var v=_.g.apply(this,arguments)||this;v.modern=_.Z("web_modern_buttons");return v};
_.S(N4,_.g);N4.prototype.computeIcon=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.icon)==null?void 0:E.iconType;if(n)return _.jI(n)};
N4.prototype.computeButtonShape=function(){var v;return{buttonText:_.JC((v=this.data)==null?void 0:v.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.hK.Object.defineProperties(N4.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"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],N4.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],N4.prototype,"modern",void 0);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],N4.prototype,"buttonColor",null);
N4=_.k([_.N({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],N4);
_.u(N4,"ytd-call-to-action-button-renderer",function(){if(f0K!==void 0)return f0K;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return f0K=v},{mode:1});var xZ6;var u2=function(){return _.g.apply(this,arguments)||this};
_.S(u2,_.g);u2.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.K(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.hZ(this.data.leftThumbnail.thumbnails,216)+")")};
u2.prototype.onLeftThumbnailChanged=u2.prototype.onLeftThumbnailChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],u2.prototype,"data",void 0);_.k([_.On("data.leftThumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u2.prototype,"onLeftThumbnailChanged",null);u2=_.k([_.N({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],u2);
_.u(u2,"ytd-collage-hero-image-renderer",function(){if(xZ6!==void 0)return xZ6;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return xZ6=v},{mode:1});var cYP;var jv=function(){return _.g.apply(this,arguments)||this};
_.S(jv,_.g);jv.prototype.computeStyle=function(v){return v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],jv.prototype,"componentStyle",void 0);jv=_.k([_.N({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],jv);
_.u(jv,"ytd-single-hero-image-renderer",function(){if(cYP!==void 0)return cYP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cYP=v},{mode:1});var yY1;var OY=function(){return _.g.apply(this,arguments)||this};
_.S(OY,_.g);_.c=OY.prototype;
_.c.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:_.Z("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.c.computeSubtitle=function(v){if(this.data){var E;if(this.data.upcomingEventData){v=_.JC(v.subtitle);var n=Number(this.data.upcomingEventData.startTime);isNaN(n)||(E=_.qD(_.Ml(v,n)))}else E=v.subtitle;return E}};
_.c.onHeroTap=function(v){v.preventDefault();var E=this.data&&this.data.navigationEndpoint;!E||!_.Kh(_.MQ(v),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Kh(_.MQ(v),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Z("kevlar_watchcard_hero_video_renderer_killswitch")?_.jK(this.hostElement,"yt-navigate",{navigationEndpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.c.computeHeroTabIndex=function(v){return v&&v.simpleText?-1:0};
_.c.computeHeroRole=function(v){return v&&v.simpleText?"":"link"};
_.c.computeIsReminderButtonPresent=function(v){return!(!v||!v.reminderButton)};
_.c.computeHideBottomItems=function(v){return!(this.computeIsReminderButtonPresent(v)||v.subtitle)};
_.c.dataChanged=function(){var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;((E=_.C(v==null?void 0:v.commandMetadata,_.PD))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v)};
OY.prototype.dataChanged=OY.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],OY.prototype,"data",void 0);
_.k([_.H({computed:"computeSubtitle(data)"}),_.W("design:type",String)],OY.prototype,"subtitle",void 0);_.k([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],OY.prototype,"isReminderButtonPresent",void 0);_.k([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],OY.prototype,"hideBottomItems",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OY.prototype,"dataChanged",null);OY=_.k([_.N({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],OY);
_.u(OY,"ytd-watch-card-hero-video-renderer",function(){if(yY1!==void 0)return yY1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yY1=v},{mode:1});var pu6;var kA=function(){return _.g.apply(this,arguments)||this};
_.S(kA,_.g);_.c=kA.prototype;_.c.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"}}}};
_.c.computeTitleBadges=function(v){return v?[v]:[]};
_.c.computeHeaderStyle=function(v){return v?v.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.c.computeAvatarAriaLabel=function(v){if(v){var E,n,f,x;return(x=(E=v.avatar)==null?void 0:(n=E.accessibility)==null?void 0:(f=n.accessibilityData)==null?void 0:f.label)!=null?x:_.JC(v==null?void 0:v.title)}};
_.c.computeAvatarHeight=function(v){return v==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.c.computeBadgeRowClass=function(v){return(v==null?0:v[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kA.prototype,"data",void 0);_.k([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.W("design:type",Array)],kA.prototype,"titleBadges",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.W("design:type",String)],kA.prototype,"headerStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.W("design:type",String)],kA.prototype,"badgeRowClass",void 0);kA=_.k([_.N({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],kA);
_.u(kA,"ytd-watch-card-rich-header-renderer",function(){if(pu6!==void 0)return pu6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return pu6=v},{mode:1});var Qz1;var Xu6;var Wh=function(){return _.g.apply(this,arguments)||this};
_.S(Wh,_.g);Wh.prototype.onMetadataTap=function(v){var E=this.data&&this.data.navigationEndpoint;E&&!_.Kh(_.MQ(v),this.hostElement,["A".toString()])&&_.jK(this.hostElement,"yt-navigate",{endpoint:E})};
_.hK.Object.defineProperties(Wh.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 v;if(this.data.upcomingEventData){var E=_.JC(this.data.subtitle),n=Number(this.data.upcomingEventData.startTime);isNaN(n)||(v=_.qD(_.Ml(E,n)))}else v=this.data.subtitle;return v}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Wh.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data.style"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Wh.prototype,"isCondensed",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Wh.prototype,"subtitle",null);
Wh=_.k([_.N({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Wh);
_.u(Wh,"ytd-watch-card-compact-video-renderer",function(){if(Xu6!==void 0)return Xu6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Xu6=v},{mode:1});var eXb;var $A=function(){return _.g.apply(this,arguments)||this};
_.S($A,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$A.prototype,"data",void 0);$A=_.k([_.N({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],$A);
_.u($A,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(eXb!==void 0)return eXb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return eXb=v},{mode:1});var L_=function(){return _.g.apply(this,arguments)||this};
_.S(L_,_.g);L_.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}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],L_.prototype,"ytRendererStamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],L_.prototype,"data",void 0);L_=_.k([_.N({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],L_);
_.u(L_,"ytd-vertical-watch-card-list-renderer",function(){if(Qz1!==void 0)return Qz1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Qz1=v},{mode:1});var FBM;var GO=function(){var v=_.g.apply(this,arguments)||this;v.ariaExpanded="false";return v};
_.S(GO,_.g);_.c=GO.prototype;_.c.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.c.dataChanged=function(){var v;this.currentSeasonIndex=((v=this.data)==null?void 0:v.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.c.computeEpisodesInfo=function(v,E,n){if(v!==void 0&&E.length===v.length)return v[n]};
_.c.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.c.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.c.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.c.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.c.getUppercaseSimpleString=function(v){return this.ytRendererBehavior.getSimpleString(v).toUpperCase()};
_.c.updateCurrentSeasonIndexFromBinding=function(v){this.currentSeasonIndex=v.detail.value};
GO.prototype.onIronOverlayClosed=GO.prototype.onIronOverlayClosed;GO.prototype.currentSeasonIndexChanged=GO.prototype.currentSeasonIndexChanged;GO.prototype.dataChanged=GO.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GO.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",String)],GO.prototype,"label",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],GO.prototype,"currentSeasonIndex",void 0);_.k([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.W("design:type",Object)],GO.prototype,"episodesInfo",void 0);_.k([_.H({value:"false"}),_.W("design:type",Object)],GO.prototype,"ariaExpanded",void 0);_.k([_.Wp("#lists"),_.W("design:type",Object)],GO.prototype,"lists",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GO.prototype,"dataChanged",null);_.k([_.Tw("currentSeasonIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GO.prototype,"currentSeasonIndexChanged",null);_.k([_.jk("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],GO.prototype,"onIronOverlayClosed",null);
GO=_.k([_.N({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],GO);
_.u(GO,"ytd-watch-card-section-dropdown-renderer",function(){if(FBM!==void 0)return FBM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FBM=v},{mode:1});var mZ3;var TO=function(){var v=_.g.apply(this,arguments)||this;v.isSearch=!1;return v};
_.S(TO,_.g);TO.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}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],TO.prototype,"isSearch",void 0);TO=_.k([_.N({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],TO);
_.u(TO,"ytd-watch-card-section-sequence-renderer",function(){if(mZ3!==void 0)return mZ3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return mZ3=v},{mode:1});var T3d=_.p7({buttonViewModel:_.C7});_.Nw(ibM);_.uj(ibM,"ytd-button-banner-view-model",{propNames:["data"]});var i2=function(){var v=_.g.apply(this,arguments)||this;v.isSearch=!1;return v};
_.S(i2,_.g);
i2.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"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],i2.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],i2.prototype,"rounded",void 0);_.k([_.H(),_.W("design:type",Object)],i2.prototype,"isSearch",void 0);
i2=_.k([_.N({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],i2);
_.u(i2,"ytd-universal-watch-card-renderer",function(){if(vW1!==void 0)return vW1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vW1=v},{mode:1});var wuC;_.Yz(_.qu(function(v){var E=v.data;var n;v=!((n=_.P().resolve(_.jp(_.aj)))==null||!n());n={};return _.w("overview-message-view-model",{class:_.W8("ytwOverviewMessageViewModelHost",(n.ytwOverviewMessageViewModelDarkBackground=v,n.ytwOverviewMessageViewModelLightBackground=!v,n))},_.w(_.x6,{cond:function(){return E().primaryImage},
then:function(f){return _.w(_.UZ,{data:f,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.w(_.x6,{cond:function(){return E().primaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.w(_.nh,{text:function(){return E().primaryText}}))}}),_.w(_.x6,{cond:function(){return E().secondaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.w(_.nh,{text:function(){return E().secondaryText}}))}}))},"qi"),"overview-message-view-model",{props:{data:_.Kt}});_.uj(_.xRg,"ytd-overview-answer-view-model",{propNames:["data"]});var zO=function(){return _.g.apply(this,arguments)||this};
_.S(zO,_.g);zO.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"}}}};
zO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],zO.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zO.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],zO.prototype,"isSearch",void 0);
zO=_.k([_.N({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],zO);
_.u(zO,"ytd-secondary-search-container-renderer",function(){if(wuC!==void 0)return wuC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return wuC=v},{mode:1});var b$O;var Rp=function(){var v=_.g.apply(this,arguments)||this;v.renderSecondarySearchContainer=!1;v.isSearch=!1;v.isSearchDova=_.Z("dova_on_search");return v};
_.S(Rp,_.g);_.c=Rp.prototype;_.c.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"}}}};
_.c.created=function(){var v=this;this.boundStampSecondarySearchContainerIfFits=function(){v.stampSecondarySearchContainerIfFits()};
_.Ck("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.c.computeIsSearchFrictionPage=function(v){var E,n,f,x,y;v=v==null?void 0:(E=v.primaryContents)==null?void 0:(n=E.sectionListRenderer)==null?void 0:(f=n.contents)==null?void 0:(x=f[0])==null?void 0:(y=x.itemSectionRenderer)==null?void 0:y.contents;if(!v)return!1;E=_.p(v);for(n=E.next();!n.done;n=E.next())if(f=void 0,(f=n.value)==null?0:f.searchFrictionViewModel)return!0;return!1};
_.c.computeShowSecondaryColumn=function(v,E){return!!(E&&E.secondaryContents&&v)};
_.c.activeChanged=function(){var v=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.uo(this,this.debounceStampSecondarySearchContainerIfFits)),_.bz(function(){v.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.uo(this,this.debounceStampSecondarySearchContainerIfFits))};
_.c.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.c.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.c.debounceStampSecondarySearchContainerIfFits=function(){_.lz(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.c.onRetrieveLocation=function(v,E){E.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);v.stopPropagation()};
_.c.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Rp.prototype.dataChanged=Rp.prototype.dataChanged;Rp.prototype.onRetrieveLocation=Rp.prototype.onRetrieveLocation;Rp.prototype.persistentGuideChanged=Rp.prototype.persistentGuideChanged;Rp.prototype.activeChanged=Rp.prototype.activeChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Rp.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],Rp.prototype,"ironResizableBehavior",void 0);_.k([_.H(),_.W("design:type",Boolean)],Rp.prototype,"active",void 0);_.k([_.H(),_.W("design:type",Object)],Rp.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.Z("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],Rp.prototype,"useBiggerThumbs",void 0);_.k([_.H({reflectToAttribute:!0,value:function(){return _.$6("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],Rp.prototype,"biggerThumbsStyle",void 0);_.k([_.H(),_.W("design:type",Object)],Rp.prototype,"renderSecondarySearchContainer",void 0);_.k([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.W("design:type",Boolean)],Rp.prototype,"showSecondaryColumn",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.W("design:type",Boolean)],Rp.prototype,"isSearchFrictionPage",void 0);
_.k([_.H(),_.W("design:type",Object)],Rp.prototype,"isSearch",void 0);_.k([_.H(),_.W("design:type",Object)],Rp.prototype,"isSearchDova",void 0);_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Rp.prototype,"activeChanged",null);_.k([_.On("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Rp.prototype,"persistentGuideChanged",null);
_.k([_.jk("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Rp.prototype,"onRetrieveLocation",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Rp.prototype,"dataChanged",null);Rp=_.k([_.N({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Rp);
_.u(Rp,"ytd-two-column-search-results-renderer",function(){if(b$O!==void 0)return b$O;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return b$O=v},{mode:1});var tH=function(){var v=_.g.apply(this,arguments)||this;v.hasSearchHeader=!1;v.hasSecondaryContent=!1;v.hasBiggerThumbs=_.Z("enable_desktop_search_bigger_thumbs");v.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return v};
_.S(tH,_.g);_.c=tH.prototype;_.c.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:_.Zh(["aa","eocs"])}}};
_.c.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.c.loadPage_=function(v){this.initCsi();v&&(this.data=v,_.Ck("REFINEMENTS_TUPLE",["FromSearchResponse",v.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.IY(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.c.initCsi=function(){_.ad("results",["ol","cpt"])};
_.c.updateTitle=function(){var v=_.SC(window.location.href,"q");v||(v=_.SC(window.location.href,"search_query"));_.jK(this.hostElement,"yt-update-title",v||"")};
_.c.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.c.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Z("web_srp_data_changed_terminate_imp_killswitch")||_.OL(this.hostElement,"yt-terminate-video-preview-action")};
_.c.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.c.computeHasSearchHeader=function(v){var E;v=v==null?void 0:(E=v.header)==null?void 0:E.searchHeaderRenderer;return!!v&&(!!v.searchFilterButton||!!v.chipBar)};
_.c.computeHasSecondaryContent=function(v){var E,n;return!!(v==null?0:(E=v.contents)==null?0:(n=E.twoColumnSearchResultsRenderer)==null?0:n.secondaryContents)};
_.hK.Object.defineProperties(tH,{template:{configurable:!0,enumerable:!0,get:function(){if(zvp===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);zvp=v}v=zvp;return v}}});
tH.prototype.onReloadContinuationFinish=tH.prototype.onReloadContinuationFinish;tH.prototype.dataChanged=tH.prototype.dataChanged;_.k([_.h(_.Zi.YtPageBehavior),_.W("design:type",Object)],tH.prototype,"ytPageBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],tH.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],tH.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tH.prototype,"data",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],tH.prototype,"monitorScroll",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tH.prototype,"hasSearchHeader",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tH.prototype,"hasSecondaryContent",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tH.prototype,"hasBiggerThumbs",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"dataChanged",null);
_.k([_.jk("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"onReloadContinuationFinish",null);tH=_.k([_.N({is:"ytd-search"})],tH);_.mN.registerService(_.WJX,tH);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("h8y2qb");
var $tK=function(v){if(v=_.hTX(v)){var E;(E=v.sources)!=null&&E[0]?(E=_.V3E(v),E=E<1?"VERTICAL":E>1?"HORIZONTAL":"SQUARE"):E=void 0;return E}},Cf=function(v){_.w$.call(this,"upload");
this.opts.query=v},GCp=function(v,E){return _.w(LKM,{data:v,
onYtNavigate:E})},iPU=function(v,E){return v.map(function(n){if(n.tabRenderer)return TfO(n.tabRenderer);
if(n.expandableTabRenderer&&E){var f=n.expandableTabRenderer;return{customTabRenderable:function(){return E(f)}}}return{}})},TfO=function(v){return{identifier:v.tabIdentifier,
aTagConfig:_.wJ({innertubeCommand:v.endpoint,forceNewState:!0}),title:v.title,selected:v.selected,disabled:v.unselectable,icon:v.icon}},zhR=function(v,E){return _.LH(v.entities,"pageHeaderEntity",E)},Bfp=function(v){var E=v.data;
var n=v.noPadding===void 0?!1:v.noPadding;var f=v.enableBanner===void 0?!1:v.enableBanner;var x=v.cinematicContainerTopbarOffset;var y=v.allowCinematicContainerOverflow===void 0?!1:v.allowCinematicContainerOverflow;var Q=v.displayAsSidebar===void 0?!1:v.displayAsSidebar;v=v.className;if(E==null?0:E.tagManagerId)_.cs(E.tagManagerId,_.MX("GL")),RhK(E.tagManagerId);a:{if(E.pageHeaderEntityKey){var e=_.tq(zhR,E.pageHeaderEntityKey);if(e==null?0:e.header){e=e==null?void 0:e.header;break a}}e=Q&&E.sidebarContent?
E.sidebarContent:E.content}return _.w("yt-page-header-renderer",{class:_.LR("page-header-renderer-wiz",v)},tn_(e,{pageHeaderViewModel:{noPadding:n,enableBanner:f,cinematicContainerTopbarOffset:x,allowCinematicContainerOverflow:y,displayAsSidebar:Q&&E.enableSidebarView}}))},vjx=function(v){return _.un({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:v})},RhK=function(v){if(!_.Dg(document,"gtm-noscript")){var E=document.createElement("noscript");
E.id="gtm-noscript";E.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+v+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(E)}};_.tf(Cf,_.w$);Cf.prototype.JSC$7967_setLabel=function(v){Cf.superClass_.JSC$7967_setLabel.call(this,v);return this};
Cf.prototype.addUploadMetadata=function(v,E){Cf.superClass_.addUploadMetadata.call(this,v,E);return this};var Ejb=function(v){if(v!=="youtubebanner"&&v!=="youtube-channel-banner")throw Error("Tl");Cf.call(this,v)};
_.S(Ejb,Cf);Ejb.prototype.JSC$7967_setLabel=function(v){Cf.prototype.JSC$7967_setLabel.call(this,v);return this};
Ejb.prototype.addUploadMetadata=function(v,E){Cf.prototype.addUploadMetadata.call(this,v,E);return this};var nj1=[_.ZT,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(v){_.pG(v).path[0]!==this&&(this.resetLayout(),v.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var v=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.tS(this._layoutDebouncer,_.EZ,v);_.BN(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var v=this;requestAnimationFrame(function(){v.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(v){this.resizerShouldNotify(v)&&this._notifyDescendant(v)},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 ojx=[_.uml,{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(v,E){var n=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[v];if(!n)throw new ReferenceError(this._getUndefinedMsg(v));v=this._boundEffect(n,E||{});v.setUp();return v},
_effectsChanged:function(v,E,n){this._tearDownEffects();v&&n&&(v.split(" ").forEach(function(f){var x;f!==""&&((x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f])?this._effects.push(this._boundEffect(x,E[f])):console.warn(this._getUndefinedMsg(f)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(v,E){E=E||{};var n=parseFloat(E.startsAt||0),f=parseFloat(E.endsAt||1),x=f-n,y=function(){};
f=n===0&&f===1?v.run:function(Q,e){v.run.call(this,Math.max(0,(Q-n)/x),e)};
return{setUp:v.setUp?v.setUp.bind(this,E):y,run:v.run?f.bind(this):y,tearDown:v.tearDown?v.tearDown.bind(this):y}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(v){v.setUp()!==!1&&this._effectsRunFn.push(v.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(v){v.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(v,E){this._effectsRunFn&&this._effectsRunFn.forEach(function(n){n(v,E)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var v=this._clampedScrollTop;this._updateScrollState(v);this.threshold>0&&this._setThresholdTriggered(v>=this.threshold)}},
_getDOMRef:function(v){console.warn("_getDOMRef","`"+v+"` is undefined")},
_getUndefinedMsg:function(v){return"Scroll effect `"+v+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+v+".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(v){var E={};v=parseFloat(v.scalar);E.background=this._getDOMRef("background");E.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");E.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");E.deltaBg=E.backgroundFrontLayer.offsetHeight-E.background.offsetHeight;E.deltaBg===0?(isNaN(v)&&(v=.8),E.deltaBg=(this._dHeight||0)*v):(isNaN(v)&&(v=
1),E.deltaBg*=v);this._fxParallaxBackground=E},
run:function(v){var E=this._fxParallaxBackground;this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,v)+"px, 0px)",E.backgroundFrontLayer);E.backgroundRearLayer&&this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,v)+"px, 0px)",E.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var fCx;var xWP;var ca0=function(){};
_.c=ca0.prototype;_.c._scrollTargetChanged=function(){};
_.c.scroll=function(){};
_.c._isValidScrollTarget=function(){};
_.c._toggleScrollListener=function(){};
_.c.toggleScrollListener=function(){};
_.c.createEffect=function(){};
_.c._effectsChanged=function(){};
_.c._layoutIfDirty=function(){};
_.c._boundEffect=function(){};
_.c._setUpEffect=function(){};
_.c._tearDownEffects=function(){};
_.c._runEffects=function(){};
_.c._scrollHandler=function(){};
_.c._scrollStateChanged=function(){};
_.c._getUndefinedMsg=function(){};
_.c.notifyResize=function(){};
_.c.assignParentResizable=function(){};
_.c.stopResizeNotificationsFor=function(){};
_.c._subscribeIronResize=function(){};
_.c._unsubscribeIronResize=function(){};
_.c.resizerShouldNotify=function(){};
_.c._onDescendantIronResize=function(){};
_.c._fireResize=function(){};
_.c._onIronRequestResizeNotifications=function(){};
_.c._parentResizableChanged=function(){};
_.c._notifyDescendant=function(){};
_.c._requestResizeNotifications=function(){};
_.c._findParent=function(){};
_.c._appResetLayoutHandler=function(){};
_.c.resetLayout=function(){};
_.c._notifyLayoutChanged=function(){};
_.c._notifyDescendantResize=function(){};
_.c._setThresholdTriggered=function(){};
ca0=_.Ee({_template:function(){if(xWP!==void 0)return xWP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;fCx===void 0&&(fCx=document.createElement("template"));var f=fCx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return xWP=v},
is:"tp-yt-app-header",behaviors:[ojx,nj1],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 v=_.pG(this.$.slot).getDistributedNodes(),E=0,n;n=v[E];E++)if(n.nodeType===Node.ELEMENT_NODE)if(n.hasAttribute("sticky")){this._stickyElRef=n;break}else this._stickyElRef||(this._stickyElRef=n);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var v=this._clampedScrollTop,E=this._height===0||v===0,n=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;E||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();E?this._updateScrollState(v,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=n}},
_updateScrollState:function(v,E){if(this._height!==0){var n=0,f=this._top;var x=this._maxHeaderTop;var y=v-this._lastScrollTop,Q=Math.abs(y),e=v>this._lastScrollTop,F=performance.now();this._mayMove()&&(n=this._clamp(this.reveals?f+y:v,0,x));v>=this._dHeight&&(n=this.condenses&&!this.fixed?Math.max(this._dHeight,n):n,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Q<100){if(F-this._initTimestamp>300||this._wasScrollingDown!==e)this._initScrollTop=v,this._initTimestamp=F;v>=x&&
(Math.abs(this._initScrollTop-v)>30||Q>10?(e&&v>=x?n=x:!e&&v>=this._dHeight&&(n=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((n-f)/(y/(F-this._lastTimestamp)),0,300)+"ms"):n=this._top)}x=this._dHeight===0?v>0?1:0:n/this._dHeight;E||(this._lastScrollTop=v,this._top=n,this._wasScrollingDown=e,this._lastTimestamp=F);if(E||x!==this._progress||f!==n||v===0)this._progress=x,this._runEffects(x,n),this._transformHeader(n)}},
_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(v){this.translate3d(0,-v+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&v>=this._stickyElTop?Math.min(v,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(v,E,n){return Math.min(n,Math.max(E,v))},
_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),_.pG(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(v){switch(v){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.pG(this).querySelector("[main-title]");case "condensedTitle":return _.pG(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var ya6;var peM;_.Ee({_template:function(){if(peM!==void 0)return peM;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;ya6===void 0&&(ya6=document.createElement("template"));var f=ya6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return peM=v},
is:"tp-yt-app-header-layout",behaviors:[nj1],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.pG(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var v=this.header;if(this.isAttached&&v){this.$.wrapper.classList.remove("initializing");v.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)v.style.left=
"",v.style.right="";else{var E=this.getBoundingClientRect(),n=document.documentElement.clientWidth-E.right;v.style.left=E.left+"px";v.style.right=n+"px"}E=this.$.contentContainer.style;n=v.offsetHeight;v.fixed&&!v.condenses&&this.hasScrollingRegion?(E.marginTop=n+"px",E.paddingTop=""):(E.paddingTop=n+"px",E.marginTop="")}}});var QxK=new _.z("replaceFeedContentAction");var Xe6=new _.z("alertCommand");var eB0=new _.z("manageLabsStateCommand");var FO0=new _.z("channelBannerEditorRenderer");var mW6=new _.z("inlineFormRenderer");var MR=new _.z("playlistSidebarPrimaryInfoRenderer");var weM=new _.z("productDetailsThumbnailRenderer"),b83=new _.z("productDetailsVariantRenderer"),lCM=new _.z("productDetailsVariantOptionRenderer"),sx_=new _.z("productDetailsOffersContainerRenderer"),raM=new _.z("productDetailsOfferRenderer");var PsK=new _.z("shoppingFlaggingRenderer");var aC6=new _.z("playlistBylineRenderer");var Z81=new _.z("insertChannelTabCommand");var S1=function(){return _.L2.apply(this,arguments)||this};
_.S(S1,_.L2);_.c=S1.prototype;_.c.activeChanged=function(){if(this.active){var v=_.K(this.hostElement).querySelector("#header");v&&_.jK(v,"iron-resize");window.addEventListener("scroll",_.uo(this,this.onScroll))}else window.removeEventListener("scroll",_.uo(this,this.onScroll)),_.jK(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.c.guideVisibleChanged=function(){var v=_.K(this.hostElement).querySelector("#header");v&&_.jK(v,"iron-resize")};
_.c.onScroll=function(){var v=this;_.lz(this,"onScroll",function(){var E=_.K(v.hostElement).querySelector("#header");E&&E.polymerController&&(E=E.polymerController.getScrollState().progress===1?"standard":"seamed",_.jK(v.hostElement,"yt-request-panel-mode-change",{mode:E}))},10)};
_.c.tabsChanged=function(){if(this.tabs){for(var v=null,E=0,n=this.tabs.length;E<n;++E){var f=this.tabs[E].tabRenderer;if(f&&f.selected){v=E;break}}this.selected=v}};
_.c.onTabsActivate=function(v){_.jK(this.hostElement,"yt-navigate",{endpoint:this.tabs[v.detail.selected].tabRenderer.endpoint})};
S1.prototype.tabsChanged=S1.prototype.tabsChanged;S1.prototype.guideVisibleChanged=S1.prototype.guideVisibleChanged;S1.prototype.activeChanged=S1.prototype.activeChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],S1.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.H(),_.W("design:type",Array)],S1.prototype,"tabs",void 0);
_.k([_.H(),_.W("design:type",Object)],S1.prototype,"selected",void 0);_.k([_.H(),_.W("design:type",Boolean)],S1.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],S1.prototype,"disableHeaderFluidWidth",void 0);_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S1.prototype,"activeChanged",null);
_.k([_.On("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S1.prototype,"guideVisibleChanged",null);_.k([_.On("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S1.prototype,"tabsChanged",null);S1=_.k([_.Gw()],S1);var CsO=[_.B.YtRendererBehavior,_.Uq.YtdGuideStateAwareBehavior,S1.prototype];var MJP=2/3,SXx=_.ci(130749),UWd=function(v,E){var n=this;this.element=v;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){n.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:MJP,moveAction:function(f){n.moveAction(f)},
triggerAction:function(){n.element.isReloading=!0;_.aX(_.Tl(),{visualElement:SXx});_.ki.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:n.element}})}}}};
_.BD(_.Tl(),SXx,this.layer);this.gesture=new _.ff(v,E,this.refreshConfig,"pan-down");this.attach()};
_.c=UWd.prototype;_.c.attach=function(){this.gesture.attach()};
_.c.detach=function(){this.gesture.detach()};
_.c.reset=function(){this.element.close()};
_.c.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.c.moveAction=function(v){this.element.rotation=v*360};var qXU=_.ci(130750),Ur=function(v,E,n,f,x){var y=this;this.element=v;this.parent=n;this.channelHeader=f;this.ytdReduxDispatch=x;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){y.tabsStartAtInPx=y.channelHeader.clientHeight-48;var Q;(Q=y.selectedTab)!=null&&Q.title&&(Q=_.P().resolve(_.jp(_.Y_)))&&(Q=Q.getCurrentPage(),y.lastVisitedTabScrollPosition=Q.getScrollTop(),y.previousTab&&
((y.lastVisitedTabScrollPosition===void 0?0:y.lastVisitedTabScrollPosition<y.channelHeader.clientHeight-48)?y.scrollPositionForTabs.has(y.selectedTab.title)&&y.scrollPositionForTabs.delete(y.selectedTab.title):y.scrollPositionForTabs.set(y.selectedTab.title,Q.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:JaR(),triggerAction:function(){y.navigate(y.previousTab)},
moveAction:function(Q,e){y.moveAction(Q,e)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-JaR(),triggerAction:function(){y.navigate(y.nextTab)},
moveAction:function(Q,e){y.moveAction(Q,e)}}}};
_.BD(_.Tl(),qXU,this.layer);this.gesture=new _.ff(v,E,this.tabConfig);this.attach()};
Ur.prototype.attach=function(){this.gesture.attach()};
Ur.prototype.detach=function(){this.gesture.detach()};
Ur.prototype.tabsChanged=function(v){if(v){var E=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;v=_.p(v);for(var n=v.next();!n.done;n=v.next()){n=n.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=n);var f=void 0;if((f=n)==null?0:f.selected)this.previousTab=E,this.selectedTab=n;E=n}E=this.gesture;v=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}});
E.config=v;this.scrollPositionNeedsUpdate=!0}};
Ur.prototype.moveAction=function(v,E){if(!this.tabsElement){var n;this.tabsElement=(n=this.parent.header)==null?void 0:n.tabsElement;E==="right"&&this.previousTab?_.ha1(_.TB.instance,this.previousTab.endpoint,{},""):E==="left"&&this.nextTab&&_.ha1(_.TB.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}n=this.tabsElement._pos;E==="right"&&(v*=-1);this.tabsElement._positionBar(n.width,n.left*1+n.width*v)};
var JaR=function(){var v,E;return(E=(v=_.P().resolve(_.Y_).getCurrentPage())==null?void 0:v.clientWidth)!=null?E:0};
Ur.prototype.navigate=function(v){this.element.data=void 0;if(v=v==null?void 0:v.endpoint)this.ytdReduxDispatch(vjx(!0)),_.aX(_.Tl(),{visualElement:qXU}),_.ki.instance.resolveCommand({navigateAction:{endpoint:v}},{form:{element:this.element}})};var KOb;var dWK;var qR=function(){return _.g.apply(this,arguments)||this};
_.S(qR,_.g);qR.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qR.prototype,"data",void 0);qR=_.k([_.N({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],qR);
_.u(qR,"ytd-labs-edit-renderer",function(){if(dWK!==void 0)return dWK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dWK=v},{mode:1});var ICd;var Jg=function(){var v=_.g.apply(this,arguments)||this;v.dark=!1;v.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(Jg,_.g);Jg.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Jg.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.setBackgroundImage(v);this.dark=v};
Jg.prototype.onDarkModeToggledAction=function(v){this.setBackgroundImage(v);this.dark=v};
Jg.prototype.setBackgroundImage=function(v){_.NQ(this.hostElement,{"--yt-labs-header-background":"url("+(v?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Jg.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Jg.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Jg.prototype,"dark",void 0);
Jg=_.k([_.N({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Jg);
_.u(Jg,"ytd-labs-header-renderer",function(){if(ICd!==void 0)return ICd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ICd=v},{mode:1});var YXK;var Kf=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return v};
_.S(Kf,_.g);Kf.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"}}}}}};
Kf.prototype.onYtToggleButton=function(v){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",v.detail.toggled)};
Kf.prototype.onManageLabsState=function(v){if(v=_.C(v,eB0))v.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?v.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&v.labsItemId===this.data.labsItemId&&(v.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.OL(this.hostElement,"yt-check-labs-opted-in-state").some(function(E){return E})&&this.data.confirmationDialogCommand?_.LG(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.P().resolve(_.OO).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&v.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.P().resolve(_.OO).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Kf.prototype.onCheckLabsOptedInState=function(){var v=this.get("data.primaryButton.toggleButtonRenderer");return v?v.isToggled:!1};
_.hK.Object.defineProperties(Kf.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Kf.prototype.onYtToggleButton=Kf.prototype.onYtToggleButton;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Kf.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kf.prototype,"itemStyle",null);_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Kf.prototype,"onYtToggleButton",null);Kf=_.k([_.N({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Kf);
_.u(Kf,"ytd-labs-item-renderer",function(){if(YXK!==void 0)return YXK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YXK=v},{mode:1});var hBU;var Aap;var dH=function(){return _.g.apply(this,arguments)||this};
_.S(dH,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dH.prototype,"data",void 0);dH=_.k([_.N({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],dH);
_.u(dH,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Aap!==void 0)return Aap;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Aap=v},{mode:1});var VJP;var Id=function(){return _.g.apply(this,arguments)||this};
_.S(Id,_.g);Id.prototype.observeSuperchatChip=function(){if(this.data){var v={"--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)};_.NQ(this.hostElement,v)}};
Id.prototype.colorFromDecimal=function(v){return _.Qt(Number(v||0))};
Id.prototype.observeSuperchatChip=Id.prototype.observeSuperchatChip;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Id.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Id.prototype,"observeSuperchatChip",null);Id=_.k([_.N({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Id);
_.u(Id,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(VJP!==void 0)return VJP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return VJP=v},{mode:1});var Y3=function(){return _.g.apply(this,arguments)||this};
_.S(Y3,_.g);Y3.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"}}}};
_.hK.Object.defineProperties(Y3.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Z7),_.W("design:type",Object)],Y3.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Y3.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Y3.prototype,"hideMessageBlock",null);
Y3=_.k([_.N({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Y3);
_.u(Y3,"ytd-live-chat-history-entry-renderer",function(){if(hBU!==void 0)return hBU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hBU=v},{mode:1});var DW3;var hg=function(){return _.g.apply(this,arguments)||this};
_.S(hg,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hg.prototype,"data",void 0);hg=_.k([_.N({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],hg);
_.u(hg,"ytd-channel-options-renderer",function(){if(DW3!==void 0)return DW3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DW3=v},{mode:1});var H8_;var Ag=function(){return _.g.apply(this,arguments)||this};
_.S(Ag,_.g);Ag.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ag.prototype,"data",void 0);Ag=_.k([_.N({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Ag);
_.u(Ag,"ytd-settings-email-item-renderer",function(){if(H8_!==void 0)return H8_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return H8_=v},{mode:1});var gj1;var V9=function(){return _.g.apply(this,arguments)||this};
_.S(V9,_.g);V9.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"}}}};
V9.prototype.getExpansionIcon=function(v){return v?"arrow_drop_up":"arrow_drop_down"};
V9.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.hK.Object.defineProperties(V9.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],V9.prototype,"data",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],V9.prototype,"expanded",void 0);_.k([_.A("expanded"),_.W("design:type",String),_.W("design:paramtypes",[])],V9.prototype,"emailListExpanded",null);
_.k([_.Wp("#options"),_.W("design:type",Object)],V9.prototype,"options",void 0);V9=_.k([_.N({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],V9);
_.u(V9,"ytd-settings-email-list-renderer",function(){if(gj1!==void 0)return gj1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gj1=v},{mode:1});var NKC;var Di=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.S(Di,_.g);Di.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"}}}};
Di.prototype.handleSignalActionSubmitForm=function(){var v,E=(v=this.formRenderer)==null?void 0:v.getForm();E&&this.data.serviceEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},E,{element:this.hostElement})})};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Di.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Di.prototype,"data",void 0);_.k([_.Wp("yt-form-renderer"),_.W("design:type",Object)],Di.prototype,"formRenderer",void 0);
Di=_.k([_.N({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Di);
_.u(Di,"ytd-settings-gaia-link-renderer",function(){if(NKC!==void 0)return NKC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return NKC=v},{mode:1});var uvK;var HS=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return v};
_.S(HS,_.g);HS.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.fJM()&&this.set("data.hidden",!1)};
HS.prototype.onSwitchReady=function(){var v=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Z("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.or_().then(function(E){E&&(Notification.permission==="default"?v.set("data.hidden",!1):Notification.permission==="granted"&&_.NV("NotificationsDisabled").then(function(n){n||_.OL(v.hostElement,"yt-toggle-settings-switch",[v.data.id,!n]);v.set("data.hidden",!1)}).catch(function(){}))})})};
HS.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}}}}};
HS.prototype.handleUpdateOptionsCommand=function(v){(v=_.C(v,_.sWS))&&this.data&&this.data.id===v.id&&(this.set("data.hidden",v.hidden),v.text!==void 0&&this.set("data.text",v.text),v.clearOptions&&this.set("data.options",[]))};
HS.prototype.onSwitchReady=HS.prototype.onSwitchReady;HS.prototype.dataChanged=HS.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],HS.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],HS.prototype,"data",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HS.prototype,"dataChanged",null);_.k([_.jk("yt-settings-switch-ready"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HS.prototype,"onSwitchReady",null);HS=_.k([_.N({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],HS);
_.u(HS,"ytd-settings-options-renderer",function(){if(uvK!==void 0)return uvK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uvK=v},{mode:1});var jxU;var gH=function(){return _.g.apply(this,arguments)||this};
_.S(gH,_.g);gH.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gH.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
gH.prototype.onYtExpanderMoreTapped=gH.prototype.onYtExpanderMoreTapped;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],gH.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gH.prototype,"data",void 0);
_.k([_.jk("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gH.prototype,"onYtExpanderMoreTapped",null);gH=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],gH);
_.u(gH,"ytd-product-details-description-renderer",function(){if(jxU!==void 0)return jxU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jxU=v},{mode:1});var O8K;var NR=function(){var v=_.g.apply(this,arguments)||this;v.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";v.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";v.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";v.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return v};
_.S(NR,_.g);NR.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hK.Object.defineProperties(NR.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:(E=v.offerData)==null?void 0:E.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?void 0:v.purchaseButtonRenderers)!==void 0&&((E=this.data)==null?void 0:E.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.formattedFromMerchantText)&&(!((E=this.data)==null||!E.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],NR.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],NR.prototype,"data",void 0);
_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],NR.prototype,"shippingIcon",void 0);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],NR.prototype,"shippingAddressIcon",void 0);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],NR.prototype,"googleGuaranteeIcon",void 0);
_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],NR.prototype,"returnPolicyIcon",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NR.prototype,"showAdditionalFees",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NR.prototype,"showMultiPurchaseButtons",null);
_.k([_.A("data","showMultiPurchaseButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NR.prototype,"showPurchaseData",null);NR=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],NR);
_.u(NR,"ytd-product-details-hero-offer-renderer",function(){if(O8K!==void 0)return O8K;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return O8K=v},{mode:1});var kJP;var WOK;var ue=function(){return _.g.apply(this,arguments)||this};
_.S(ue,_.g);_.c=ue.prototype;_.c.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.c.onKeyDown=function(v){v=v.keyCode;v!==13&&v!==32||this.handleSelection()};
_.c.onMouseEnterImage=function(){var v;((v=this.data)==null?void 0:v.thumbnailDetails)!==void 0&&_.kZ(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.c.onMouseLeaveImage=function(){_.kZ(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.c.handleSelection=function(){this.data&&_.jK(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.hK.Object.defineProperties(ue.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ue.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ue.prototype,"isSelected",null);ue=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],ue);
_.u(ue,"ytd-product-details-thumbnail-renderer",function(){if(WOK!==void 0)return WOK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return WOK=v},{mode:1});var j1=function(){var v=_.g.apply(this,arguments)||this;var E={};v.actionMap=(E["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",E["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",E);v.selectedThumbnailIndex=0;v.selectItem=function(n){n.target.onKeyDown(n)};
return v};
_.S(j1,_.g);_.c=j1.prototype;_.c.handlePreviewImageSelect=function(v){this.hoverThumbnail=v};
_.c.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.c.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.c.onThumbnailSelected=function(v,E){this.selectedThumbnailIndex=E};
_.c.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.c.updateOffset=function(){var v=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_()};
_.hK.Object.defineProperties(j1.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.imageRenderer){var E,n;return((E=this.data)==null?void 0:(n=E.imageRenderer)==null?void 0:n.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var v;if((v=this.data)==null?0:v.imageRenderer){var E;return(E=_.C(this.data.imageRenderer[this.selectedThumbnailIndex],weM))==null?void 0:E.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n,f,x=(f=(E=this.data)==null?void 0:(n=E.imageRenderer)==null?void 0:n.map(function(y,Q){return{productDetailsThumbnailRenderer:Object.assign({},_.C(y,weM),{index:Q,isSelected:Q===v.selectedThumbnailIndex})}}))!=null?f:[];
return Object.assign({},this.data,{imageRenderer:x})}}});
j1.prototype.updateOffset=j1.prototype.updateOffset;j1.prototype.dataChanged=j1.prototype.dataChanged;j1.prototype.onThumbnailSelected=j1.prototype.onThumbnailSelected;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Oq.YtdHorizontalListBehavior),_.W("design:type",Object)],j1.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],j1.prototype,"componentBehavior",void 0);_.k([_.h([_.N2.YtActionHandlerBehavior]),_.W("design:type",Object)],j1.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],j1.prototype,"data",void 0);_.k([_.H({value:"$.items.children"}),_.W("design:type",String)],j1.prototype,"itemsPath",void 0);_.k([_.H({value:3}),_.W("design:type",Number)],j1.prototype,"initialCount",void 0);
_.k([_.Wp("#items"),_.W("design:type",Object)],j1.prototype,"items",void 0);_.k([_.H(),_.W("design:type",Object)],j1.prototype,"selectedThumbnailIndex",void 0);_.k([_.H(),_.W("design:type",Object)],j1.prototype,"hoverThumbnail",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j1.prototype,"showThumbnails",null);
_.k([_.jk("ytd-product-details-thumbnail-renderer-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Number]),_.W("design:returntype")],j1.prototype,"onThumbnailSelected",null);_.k([_.A("data","selectedThumbnailIndex","hoverThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],j1.prototype,"thumbnailDetails",null);_.k([_.A("data","selectedThumbnailIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],j1.prototype,"populatedData",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"dataChanged",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"updateOffset",null);j1=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],j1);
_.u(j1,"ytd-product-details-image-carousel-renderer",function(){if(kJP!==void 0)return kJP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return kJP=v},{mode:_.HE("kevlar_poly_si_batch_j079")?1:2});var $W1;var Or=function(){return _.g.apply(this,arguments)||this};
_.S(Or,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Or.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Or.prototype,"data",void 0);Or=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Or);
_.u(Or,"ytd-product-details-offer-renderer",function(){if($W1!==void 0)return $W1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return $W1=v},{mode:1});var LOM;var k3=function(){var v=_.g.apply(this,arguments)||this;v.isOffersHidden=!0;return v};
_.S(k3,_.g);k3.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var v,E=_.C((v=this.data)==null?void 0:v.viewOffersButton,_.qb);E&&this.ytRendererBehavior.logExplicitClick(E)};
k3.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.hK.Object.defineProperties(k3.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return(n=_.C((v=this.data)==null?void 0:(E=v.offers)==null?void 0:E[0],raM))==null?void 0:(f=n.offerData)==null?void 0:f.vendorLogoUrl}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],k3.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],k3.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],k3.prototype,"isOffersHidden",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],k3.prototype,"firstOfferVendorLogoUrl",null);k3=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],k3);
_.u(k3,"ytd-product-details-offers-container-renderer",function(){if(LOM!==void 0)return LOM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return LOM=v},{mode:1});var GJP;var TKx;var WS=function(){return _.g.apply(this,arguments)||this};
_.S(WS,_.g);WS.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
WS.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.kZ(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
WS.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.kZ(this,"ytd-product-details-variant-image-unselect")};
_.hK.Object.defineProperties(WS.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 v;return((v=this.data)==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?void 0:v.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((n=this.data)==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var v;if(((v=this.data)==null?void 0:v.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,E;return this.isUnavailable?(v=this.data)==null?void 0:v.variantOptionUnavailableAccessibilityLabel:(E=this.data)==null?void 0:E.variantOptionAccessibilityLabel}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],WS.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WS.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],WS.prototype,"displayType",void 0);
_.k([_.A("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WS.prototype,"isImageButton",null);_.k([_.A("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WS.prototype,"isPillButton",null);_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WS.prototype,"isActive",null);
_.k([_.A("data"),_.H({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WS.prototype,"isUnavailable",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],WS.prototype,"thumbnailDetails",null);_.k([_.A("isUnavailable","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],WS.prototype,"accessibilityLabel",null);WS=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],WS);
_.u(WS,"ytd-product-details-variant-option-renderer",function(){if(TKx!==void 0)return TKx;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return TKx=v},{mode:1});var i8M;var $3=function(){var v=_.g.apply(this,arguments)||this;v.variantsExpanded=!1;v.hideShowMoreLessVariantButton=!0;v.initialized=!1;v.computeVariantsDebouncer=null;v.computeVariants=function(E){E=E===void 0?!1:E;v.variantsExpanded||v.showOptions()||!E||(v.variantsExpanded=!0);if(v.variantsExpanded){E=_.p(v.items.children);for(var n=E.next();!n.done;n=E.next())n.value.hidden=!1}v.initialized=!0};
return v};
_.S($3,_.g);_.c=$3.prototype;_.c.ready=function(){var v=this;setTimeout(function(){v.computeVariants(!0)})};
_.c.showOptions=function(){for(var v=_.p(this.items.children),E=v.next();!E.done;E=v.next())E.value.hidden=!0;var n=this.container.getBoundingClientRect().width,f=0,x=v=0;E=!1;for(var y=_.p(this.items.children),Q=y.next();!Q.done;Q=y.next()){Q=Q.value;Q.hidden=!1;var e=Q.getBoundingClientRect().width;if(f+e<n)f+=e;else if(++x<2)f=e;else break;v+=1;Q.hasAttribute("is-active")&&(E=!0)}for(n=v;n<this.items.children.length;n++)this.items.children[n].hidden=!0;this.hideShowMoreLessVariantButton=v===this.items.children.length;
return E};
_.c.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.tS(this.computeVariantsDebouncer,_.uF.after(100),this.computeVariants)};
_.c.onShowMoreLessVariantsButtonClick=function(){var v;(v=this.data)!=null&&v.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.c.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.hK.Object.defineProperties($3.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.variantOptionRenderers)==null?void 0:E.find(function(y){return _.C(y,lCM).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),f,x;
return(x=(f=_.C(n,lCM))==null?void 0:f.name)!=null?x:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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"}}}});
$3.prototype.debouncedComputeVariants=$3.prototype.debouncedComputeVariants;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],$3.prototype,"componentBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],$3.prototype,"ironResizableBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],$3.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],$3.prototype,"variantsExpanded",void 0);_.k([_.H(),_.W("design:type",Object)],$3.prototype,"hideShowMoreLessVariantButton",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$3.prototype,"initialized",void 0);_.k([_.Wp("#items"),_.W("design:type",HTMLDivElement)],$3.prototype,"items",void 0);_.k([_.Wp("#container"),_.W("design:type",HTMLDivElement)],$3.prototype,"container",void 0);
_.k([_.Wp("#more-variants-button"),_.W("design:type",HTMLElement)],$3.prototype,"moreVariantsButton",void 0);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],$3.prototype,"selectedOptionName",null);_.k([_.On("data","variantsExpanded"),_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$3.prototype,"debouncedComputeVariants",null);
_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],$3.prototype,"displayType",null);_.k([_.A("displayType"),_.W("design:type",Object),_.W("design:paramtypes",[])],$3.prototype,"variantItemsClassname",null);$3=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],$3);
_.u($3,"ytd-product-details-variant-renderer",function(){if(i8M!==void 0)return i8M;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return i8M=v},{mode:1});var Lf=function(){return _.g.apply(this,arguments)||this};
_.S(Lf,_.g);
Lf.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"}}}};
_.hK.Object.defineProperties(Lf.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(E=_.C((v=this.data)==null?void 0:v.offersContainerRenderer,sx_))==null?void 0:E.offers;return n!==void 0&&(n==null?void 0:n.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 v,E,n;return((n=(v=this.data)==null?void 0:(E=v.variants)==null?void 0:E.map(function(f){var x,y;f=(y=(x=_.C(f,b83))==null?void 0:x.variantOptionRenderers)==null?void 0:y.find(function(e){var F;return((F=_.C(e,lCM))==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Q;return(Q=_.C(f,lCM))==null?void 0:Q.name}).filter(function(f){return typeof f==="string"}))!=null?n:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f=(E=_.C((v=this.data)==null?void 0:v.shoppingFlaggingRenderer,PsK))==null?void 0:(n=E.reportButton)==null?void 0:n.buttonRenderer;if(f)return{text:f.text,command:f.command,icon:{iconType:"FLAG"},accessibilityData:f.accessibilityData,trackingParams:f.trackingParams,loggingDirectives:f.loggingDirectives}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Lf.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Lf.prototype,"data",void 0);_.k([_.Wp("#image-carousel-renderer"),_.W("design:type",Object)],Lf.prototype,"imageCarouselRenderer",void 0);
_.k([_.Wp("#hero-offer-renderer"),_.W("design:type",Object)],Lf.prototype,"productDetailsHeroOfferRenderer",void 0);_.k([_.Wp("#variants"),_.W("design:type",Object)],Lf.prototype,"productDetailsVariantRenderer",void 0);_.k([_.Wp("#offers"),_.W("design:type",Object)],Lf.prototype,"productDetailsOffersContainerRenderer",void 0);_.k([_.Wp("#description-renderer"),_.W("design:type",Object)],Lf.prototype,"productDetailsDescriptionRenderer",void 0);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showPurchaseData",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showHeroOfferRenderer",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showBrandText",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showOffers",null);
_.k([_.A("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showBuySeparator",null);_.k([_.A("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Lf.prototype,"showBuyCard",null);_.k([_.A("data"),_.W("design:type",String),_.W("design:paramtypes",[])],Lf.prototype,"selectedVariantsText",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Lf.prototype,"shoppingReportingButtonData",null);
Lf=_.k([_.N({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Lf);
_.u(Lf,"ytd-product-details-renderer",function(){if(GJP!==void 0)return GJP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return GJP=v},{mode:1});var zB0;var RB3;var tJU;var GD=function(){return _.g.apply(this,arguments)||this};
_.S(GD,_.g);GD.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hK.Object.defineProperties(GD.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GD.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],GD.prototype,"formattedAmount",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GD.prototype,"ariaLabel",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],GD.prototype,"vcBalanceWidgetStyle",null);GD=_.k([_.p5({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],GD);
_.u(GD,"yt-vc-balance-renderer",function(){if(tJU===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;RB3===void 0&&(RB3=document.createElement("template"));var f=RB3;n.call(E,f.content.cloneNode(!0),v.content.firstChild);tJU=v}v=tJU;return v},{mode:2});_.ew("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var TD=function(){return _.g.apply(this,arguments)||this};
_.S(TD,_.g);_.hK.Object.defineProperties(TD.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:""}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],TD.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TD.prototype,"data",void 0);_.k([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(v,E){return _.LH(v.entities,"vcBalanceEntity",E)}}),
_.W("design:type",Object)],TD.prototype,"vcBalanceEntity",void 0);_.k([_.A("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],TD.prototype,"formattedAmount",null);_.k([_.A("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],TD.prototype,"vcBalanceAriaLabel",null);TD=_.k([_.N({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],TD);
_.u(TD,"ytd-vc-balance-renderer",function(){if(zB0!==void 0)return zB0;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return zB0=v},{mode:1});var BKO;var ie=function(){var v=_.g.apply(this,arguments)||this;v.rotation=0;v.isReloading=!1;return v};
_.S(ie,_.g);ie.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
ie.prototype.reset=function(){this.hostElement.style.opacity=""};
ie.prototype.close=function(){var v=this;return _.X(function(E){if(E.nextAddress==1)return _.m(E,v.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.hostElement.style.opacity="0";_.yQ(E)})};
ie.prototype.rotationChanged=ie.prototype.rotationChanged;_.k([_.H(),_.W("design:type",Object)],ie.prototype,"rotation",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ie.prototype,"isReloading",void 0);_.k([_.Wp("#icon"),_.W("design:type",HTMLElement)],ie.prototype,"icon",void 0);_.k([_.On("rotation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ie.prototype,"rotationChanged",null);
ie=_.k([_.N({disableElementRegistration:!0,is:"ytd-refresh"})],ie);
_.u(ie,"ytd-refresh",function(){if(BKO!==void 0)return BKO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return BKO=v},{mode:1});var vP6;var EPO;var nPM=function(v,E,n,f,x,y,Q,e){this.minWidth=v;this.minHeight=E;this.recommendedWidth=n;this.recommendedHeight=f;this.JSC$19306_maxFileSize=x;this.title=y;this.bannerGalleryTitle=Q;this.channelId=e;this.picker_=null;v=_.Ad9("yt-banner");E=v.addView;n=(new Ejb("youtubebanner")).addUploadMetadata("silo_id","19");n.opts.ytMaxFileSize=this.JSC$19306_maxFileSize;f=this.recommendedHeight;n.opts.ytRecWidth=this.recommendedWidth;n.opts.ytRecHeight=f;E.call(v,n);v.addView(new _.s6);E=v.addView;n=new _.s6;
n.opts.type="ytbanner";E.call(v,n.JSC$7967_setLabel(this.bannerGalleryTitle));E=v.setTitle(this.title).setSize(1E3);E.urlParamMap_.set("thumbs","orig");n=this.minWidth;f=this.minHeight;if(isNaN(n)||isNaN(f))throw Error("kb`"+n+"`"+f);E.urlParamMap_.set("minSize",n+"x"+f);E.urlParamMap_.set("cropMode","ytcb");this.builder_=v};
nPM.prototype.open=function(){var v=this;return new _.z2(function(E,n){_.DXw(v.builder_,function(f){f.action=="picked"?E(f):f.action=="cancel"&&n(Error("Vl"))});
v.picker_&&v.picker_.dispose();v.picker_=v.builder_.build();v.picker_.setVisible(!0)})};
nPM.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var oP6=function(v){this.channelId=v},fn6=function(v,E){var n="";
E.viewToken&&(n=E.viewToken[2].type);var f=E.docs[0];E=f.crop;v={channel_id:v.channelId,fife_url:f.thumbnails[0].url,photo_id:f.id,is_gallery_image:n=="ytbanner"};E&&(v.crop_top=E.top,v.crop_right=E.right,v.crop_bottom=E.bottom,v.crop_left=E.left);return _.HvA("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:v})};var zD=function(){var v=_.g.apply(this,arguments)||this;v.ariaLabel=null;return v};
_.S(zD,_.g);_.c=zD.prototype;_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.c.detached=function(){this.picker&&this.picker.dispose()};
_.c.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.c.computeAriaLabel=function(v){return v};
_.c.onTap=function(){var v=this,E;if((E=this.data)==null||!E.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new nPM(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 n;(n=this.picker)==null||n.open().then(function(f){v.handleBannerPicked(f)},function(){})}};
_.c.handleBannerPicked=function(v){var E=this;this.uploader||(this.uploader=new oP6(this.data.channelId||""));this.message=this.data.uploadingText;fn6(this.uploader,v).then(function(n){E.handleBannerUploadSucceeded(n)},function(n){E.handleBannerUploadFailed(n)})};
_.c.handleBannerUploadSucceeded=function(v){v&&v.errors?this.handleBannerUploadFailed(v):(_.jK(this.hostElement,"yt-banner-updated",v),this.message=null)};
_.c.handleBannerUploadFailed=function(v){this.message=v&&v.errors&&v.errors.length?v.errors[0]:null};
zD.prototype.dataChanged=zD.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],zD.prototype,"componentBehavior",void 0);_.k([_.h(_.Mh),_.W("design:type",Object)],zD.prototype,"ironButtonState",void 0);_.k([_.H(),_.W("design:type",Object)],zD.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.W("design:type",Object)],zD.prototype,"ariaLabel",void 0);
_.k([_.H(),_.W("design:type",Object)],zD.prototype,"message",void 0);_.k([_.H(),_.W("design:type",Object)],zD.prototype,"picker",void 0);_.k([_.H(),_.W("design:type",Object)],zD.prototype,"uploader",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zD.prototype,"dataChanged",null);zD=_.k([_.N({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],zD);
_.u(zD,"ytd-channel-banner-editor-renderer",function(){if(EPO!==void 0)return EPO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return EPO=v},{mode:1});var xL0;var cBP=_.jU(["#"]),Rd=function(){return _.g.apply(this,arguments)||this};
_.S(Rd,_.g);Rd.prototype.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v,!0)||_.aC(cBP)};
Rd.prototype.dataChanged=function(){var v=this.data;v&&v.targetId&&_.iXg(_.R6(),v.targetId,this.moreIcon)};
Rd.prototype.dataChanged=Rd.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Rd.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Rd.prototype,"data",void 0);_.k([_.Wp("#more-icon"),_.W("design:type",Object)],Rd.prototype,"moreIcon",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Rd.prototype,"dataChanged",null);
Rd=_.k([_.N({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Rd);
_.u(Rd,"ytd-channel-tagline-renderer",function(){if(xL0!==void 0)return xL0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xL0=v},{mode:1});var yB6;var tg=function(){return _.g.apply(this,arguments)||this};
_.S(tg,_.g);_.c=tg.prototype;_.c.ready=function(){var v=this;_.K(this.hostElement).querySelector("#form").addEventListener("submit",function(E){v.onSubmit(E)})};
_.c.onDataChanged=function(){var v;((v=this.data)==null?0:v.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.c.onIconButtonKeydown=function(v){v.keyCode===13&&this.iconButton.click()};
_.c.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.c.openOnClickHandler=function(){this.input.focus()};
_.c.onSubmit=function(v){v.preventDefault();return!1};
_.c.submitOnEnterKeyUp=function(v){var E;if(v.keyCode===13&&((E=this.data)==null?0:E.expandedText)){v=this.data.endpoint;E=_.sh.unsafeClone(v);var n;((n=_.C(E==null?void 0:E.commandMetadata,_.Dl))==null?0:n.url)?(_.C(E.commandMetadata,_.Dl).url=_.PP(_.C(E.commandMetadata,_.Dl).url,"query",this.data.expandedText),_.C(E,_.ix)&&(_.C(E,_.ix).query=this.data.expandedText),_.jK(this.hostElement,"yt-navigate",{endpoint:E,tempData:{disableCache:!0}})):(n=new _.yc("Error: Trying to navigate to an endpoint without url",
v),_.mb(n))}};
_.c.updateDataExpandedTextFromBinding=function(v){this.set("data.expandedText",v.detail.value)};
tg.prototype.onDataChanged=tg.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.FlC),_.W("design:type",Object)],tg.prototype,"ytdExpandableInputBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tg.prototype,"data",void 0);_.k([_.Wp("#input"),_.W("design:type",Object)],tg.prototype,"input",void 0);_.k([_.Wp("#icon-button"),_.W("design:type",HTMLElement)],tg.prototype,"iconButton",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tg.prototype,"onDataChanged",null);tg=_.k([_.N({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],tg);
var LKM=_.Dj()(tg,"ytd-expandable-tab-renderer",function(){if(yB6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);yB6=v}v=yB6;return v},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var pQ6;var Q8C=_.jU(["#"]),BS=function(){return _.g.apply(this,arguments)||this};
_.S(BS,_.g);BS.prototype.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v,!0)||_.aC(Q8C)};
_.hK.Object.defineProperties(BS.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return _.F$((v=this.data)==null?void 0:v.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return _.F$((v=this.data)==null?void 0:v.moreOnTap)}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],BS.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],BS.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],BS.prototype,"usePageHeaderStyle",void 0);_.k([_.A("data.primaryOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],BS.prototype,"primaryLinkEndpoint",null);
_.k([_.A("data.moreOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],BS.prototype,"moreEndpoint",null);BS=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],BS);
_.u(BS,"ytd-channel-header-links-view-model",function(){if(pQ6!==void 0)return pQ6;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return pQ6=v},{mode:1});var XQC;var vh=function(){var v=_.g.apply(this,arguments)||this;v.avatarSize=80;v.ariaLabel=_.tQ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return v};
_.S(vh,_.g);vh.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vh.prototype.computeHref=function(v){var E;return((E=_.C(v,_.Us))==null?0:E.url)?this.componentBehavior.computeHref_(v):null};
vh.prototype.onTap=function(){var v,E;(v=this.data)==null||!v.editAvatarServiceEndpoint||((E=_.C(this.data.editAvatarServiceEndpoint,_.Us))==null?0:E.url)||_.P().resolve(_.OO).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.k([_.h(_.Mh),_.W("design:type",Object)],vh.prototype,"ironButtonState",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vh.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vh.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],vh.prototype,"avatarSize",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],vh.prototype,"ariaLabel",void 0);vh=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],vh);
_.u(vh,"ytd-channel-avatar-editor",function(){if(XQC!==void 0)return XQC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return XQC=v},{mode:1});_.Yz(_.liU,"yt-tab-group-shape",{props:{shape:_.Kt}});var EY=function(){var v=_.g.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(E){return GCp(E,function(){return void v.onSearchNavigate()})};
v.isRichGrid=!1;v.richGridMiniMode=!1;v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return v};
_.S(EY,_.g);_.c=EY.prototype;_.c.areAllFalse=function(v,E,n){return!v&&!E&&!n};
_.c.updateJoinButtonOverrides=function(){var v;(v=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||v.set("overrides",this.joinButtonOverrides)};
_.c.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.c.attached=function(){this.data&&this.dataChanged();if(!_.Z("web_c4_tabbed_header_error_ks")&&Math.random()<.05){var v=new _.yc("Rendered C4TabbedHeaderRenderer",window.location.href);_.mb(v)}};
_.c.computeHeaderDisabled=function(v,E){return E||!v};
_.c.handleButtonRefreshAction=function(v){(v=_.C(v,_.TO1))&&this.set("data.sponsorButton",v.membershipButton)};
_.c.handleInsertTabCommand=function(v){var E=_.C(v,Z81);E&&E.externalChannelId===this.data.channelId&&(E.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(n){return n.tabRenderer&&n.tabRenderer.tabIdentifier===E.tabIdentifier})||this.splice("tabs",E.tabIndex||-1,0,E.tab))};
_.c.handleRefreshChannelTabAction=function(v){var E,n=(E=this.tabs)==null?void 0:E.filter(function(y){var Q;return(Q=y.tabRenderer)==null?void 0:Q.selected});
E=(n==null?void 0:n.length)===1?n[0]:void 0;var f;if((E==null?void 0:(f=E.tabRenderer)==null?void 0:f.tabIdentifier)===v){var x;_.jK(this.hostElement,"yt-navigate",{endpoint:(x=E.tabRenderer)==null?void 0:x.endpoint,tempData:{disableCache:!0}})}};
_.c.onWindowResize=function(){_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.c.dataChanged=function(){var v=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var E=_.hZ(this.data.banner.thumbnails,this.hostElement.clientWidth);E&&(E.indexOf("//")===0&&(E="https:"+E),this.hasChannelArt=!0,_.NQ(this.hostElement,{"--yt-channel-banner":"url("+E+")"}))}this.hasChannelArt!==v&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.c.onBannerUpdated=function(v,E){v=window.devicePixelRatio>1?E.hq_url:E.url;v.indexOf("//")===0&&(v="https:"+v);this.hasChannelArt=!0;_.NQ(this.hostElement,{"--yt-channel-banner":"url("+v+")"})};
_.c.observeLightsourcePalette=function(){var v,E,n=(v=this.data)==null?void 0:(E=v.headerColorPalette)==null?void 0:E.lightsourceColorPaletteData;n&&_.Q3(this.hostElement,n)};
_.c.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.c.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.c.handleUnsubscribeAction=function(){var v,E;((E=_.C((v=this.data)==null?void 0:v.sponsorButton,_.qb))==null?void 0:E.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.c.onFocusedChanged=function(v){(v=_.Sk(v))&&v.is==="tp-yt-paper-tab"&&v.hasRipple()&&(v.getRipple().holdDown=!v.pointerDown&&v.focused)};
_.c.updateSelectedFromBinding=function(v){this.ytdTabbedHeaderBehavior.selected=v.detail.value};
_.hK.Object.defineProperties(EY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iPU(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.data)==null?0:(E=v.headerLinks)==null?0:E.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.subscriptionStateEntity)==null||!v.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var v=this.channelHandleDisplayStyle;return v==="MODERN"||v==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return this.usePageHeaderStyle||!((v=this.data)==null?0:v.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var v;return this.usePageHeaderStyle||!((v=this.data)==null||!v.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.C((v=this.data)==null?void 0:v.bannerEditor,FO0)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var v;return _.Z("enable_view_pronouns_on_main_app")&&!((v=this.data)==null||!v.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var v;return(this.useModernStyle||this.usePageHeaderStyle)&&!((v=this.data)==null||!v.videosCountText)}}});
EY.prototype.observerRichGridItemsPerRow=EY.prototype.observerRichGridItemsPerRow;EY.prototype.observeLightsourcePalette=EY.prototype.observeLightsourcePalette;EY.prototype.onBannerUpdated=EY.prototype.onBannerUpdated;EY.prototype.dataChanged=EY.prototype.dataChanged;EY.prototype.updateJoinButtonOverrides=EY.prototype.updateJoinButtonOverrides;_.k([_.h(_.Mj),_.W("design:type",Object)],EY.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.h(CsO),_.W("design:type",Object)],EY.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],EY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],EY.prototype,"ytdReduxBehavior",void 0);_.k([_.Wp("#tabs"),_.W("design:type",Object)],EY.prototype,"tabsElement",void 0);_.k([_.H(),_.W("design:type",Array)],EY.prototype,"tabs",void 0);_.k([_.A("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"tabGroupShape",null);_.k([_.H(),_.W("design:type",Object)],EY.prototype,"expandableCustomTabRenderable",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],EY.prototype,"isRichGrid",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Object)],EY.prototype,"richGridMiniMode",void 0);_.k([_.H({selector:_.Fq}),_.W("design:type",Number)],EY.prototype,"richGridItemsPerRow",void 0);_.k([_.H(),_.W("design:type",Object)],EY.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],EY.prototype,"hasChannelArt",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"hasChannelHeaderLinks",null);_.k([_.H({selector:_.t8d,reflectToAttribute:!0}),_.W("design:type",Boolean)],EY.prototype,"guideIsVisibleButNotPersistent",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"subscribeKey",null);
_.k([_.H({selectorArgs:["subscribeKey"],selector:_.Wi}),_.W("design:type",Object)],EY.prototype,"subscriptionStateEntity",void 0);_.k([_.A("subscriptionStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"subscribed",null);_.k([_.A("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"joinButtonOverrides",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"useModernStyle",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"usePageHeaderStyle",null);_.k([_.A("useModernStyle","usePageHeaderStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],EY.prototype,"avatarSize",null);
_.k([_.A("channelHandleDisplayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"shouldInlineChannelName",null);_.k([_.A("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"hideBannerEndpoint",null);_.k([_.A("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"hideBannerVisibleArea",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"showBannerEditor",null);_.k([_.A("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"bannerEffects",null);_.k([_.A("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],EY.prototype,"effectsConfig",null);_.k([_.A("usePageHeaderStyle","hasChannelArt"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"shouldShowPageHeaderBanner",null);
_.k([_.A("data.channelHandleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"isChannelHandlePresent",null);_.k([_.A("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],EY.prototype,"channelHandleDisplayStyle",null);_.k([_.A("data.channelPronouns"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"shouldShowChannelPronouns",null);
_.k([_.A("data.subscriberCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"shouldShowSubscriberCount",null);_.k([_.A("useModernStyle","data.videosCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"shouldShowVideosCount",null);_.k([_.On("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"updateJoinButtonOverrides",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"dataChanged",null);_.k([_.jk("yt-banner-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],EY.prototype,"onBannerUpdated",null);_.k([_.On("data.headerColorPalette.lightsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"observeLightsourcePalette",null);
_.k([_.On("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"observerRichGridItemsPerRow",null);EY=_.k([_.N({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],EY);
_.u(EY,"ytd-c4-tabbed-header-renderer",function(){if(vP6!==void 0)return vP6;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vP6=v},{mode:1});var ev0;var n_=function(){return _.g.apply(this,arguments)||this};
_.S(n_,_.g);n_.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"}}}};
n_.prototype.dataChanged=function(){if(this.data){var v=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var E=_.hZ(this.data.banner.thumbnails,this.hostElement.clientWidth);E&&(E.indexOf("//")===0&&(E="https:"+E),this.hasBannerArt=!0,_.NQ(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+E+")"}))}this.hasBannerArt!==v&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")}};
n_.prototype.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
n_.prototype.dataChanged=n_.prototype.dataChanged;_.k([_.h(CsO),_.W("design:type",Object)],n_.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Mj),_.W("design:type",Object)],n_.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],n_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],n_.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],n_.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],n_.prototype,"selected",void 0);_.k([_.H(),_.W("design:type",Boolean)],n_.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],n_.prototype,"hasBannerArt",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n_.prototype,"dataChanged",null);n_=_.k([_.N({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],n_);
_.u(n_,"ytd-interactive-tabbed-header-renderer",function(){if(ev0!==void 0)return ev0;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ev0=v},{mode:1});var Fyd;var op=function(){return _.g.apply(this,arguments)||this};
_.S(op,_.g);op.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
op.prototype.computeActionsAlignment=function(v){return(v==null?void 0:v.actionsAlignment)||""};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],op.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.W("design:type",String)],op.prototype,"actionsAlignment",void 0);
op=_.k([_.N({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],op);
_.u(op,"ytd-page-footer-renderer",function(){if(Fyd!==void 0)return Fyd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Fyd=v},{mode:1});var mLp;var wQ_;var f_=function(){var v=_.g.apply(this,arguments)||this;v.isEditing=!1;v.useSlot=!1;v.isMultiline=!1;return v};
_.S(f_,_.g);_.c=f_.prototype;_.c.onKeydown=function(v){if(v.keyCode===13&&!this.isMultiline)this.onSave();else if(v.keyCode===27)this.onCancel()};
_.c.computeComponentStyle=function(v){return(v==null?0:v.style)?v.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.c.computeisMultiline=function(v){if(this.multilineOverride!==void 0)return this.multilineOverride;var E,n;return!!(v==null?0:(E=v.formField)==null?0:(n=E.textInputFormFieldRenderer)==null?0:n.isMultiline)};
_.c.computeTextDisplayed=function(v,E){if(v)return v;if(E)return E};
_.c.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.c.onSave=function(){if(this.textForm.validate()){this.textForm.save();var v=this.textForm.value;if(v)this.set("data.textDisplayed",_.qD(v));else{var E;((E=this.data)==null?0:E.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.SG("inline-form-changed",this.data));this.isEditing=!1}};
_.c.onCancel=function(){var v=_.JC(this.data.textDisplayed);v===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(v);this.isEditing=!1};
f_.prototype.onKeydown=f_.prototype.onKeydown;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],f_.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],f_.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],f_.prototype,"isEditing",void 0);_.k([_.H(),_.W("design:type",Object)],f_.prototype,"useSlot",void 0);_.k([_.H(),_.W("design:type",Boolean)],f_.prototype,"multilineOverride",void 0);_.k([_.H(),_.W("design:type",Boolean)],f_.prototype,"enableOverlayTheme",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.W("design:type",String)],f_.prototype,"componentStyle",void 0);
_.k([_.H({computed:"computeisMultiline(data)"}),_.W("design:type",Object)],f_.prototype,"isMultiline",void 0);_.k([_.Wp("#text-form"),_.W("design:type",Object)],f_.prototype,"textForm",void 0);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],f_.prototype,"onKeydown",null);f_=_.k([_.N({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],f_);
_.u(f_,"ytd-inline-form-renderer",function(){if(wQ_!==void 0)return wQ_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return wQ_=v},{mode:1});var bbb;var xA=function(){var v=_.g.apply(this,arguments)||this;v.previousSelectValue=void 0;v.selectedItemMessage=void 0;return v};
_.S(xA,_.g);xA.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
xA.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var v,E,n,f,x=(v=this.data)==null?void 0:(E=v.dropdown)==null?void 0:(n=E.dropdownRenderer)==null?void 0:(f=n.entries)==null?void 0:f.map(function(e){return e.privacyDropdownItemRenderer});
v=_.p(x!=null?x:[]);for(E=v.next();!E.done;E=v.next())if((E=E.value)&&E.int32Value===this.selectedValue){this.selectedItemMessage=E.itemMessage;break}}else this.selectedItemMessage=void 0;var y;(y=this.onValueChanged)==null||y.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Q;(Q=this.data)!=null&&Q.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
xA.prototype.onValueChangedForSelectedValue=function(v){this.selectedValue=v.detail.value};
xA.prototype.selectedValueChanged=xA.prototype.selectedValueChanged;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],xA.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],xA.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xA.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],xA.prototype,"theme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Number)],xA.prototype,"selectedValue",void 0);_.k([_.H(),_.W("design:type",Function)],xA.prototype,"onValueChanged",void 0);
_.k([_.Tw("selectedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xA.prototype,"selectedValueChanged",null);xA=_.k([_.N({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],xA);
_.u(xA,"ytd-dropdown-form-field-renderer",function(){if(bbb!==void 0)return bbb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bbb=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var ln0;var ch=function(){return _.g.apply(this,arguments)||this};
_.S(ch,_.g);_.hK.Object.defineProperties(ch.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var v=[],E=_.p(this.data||[]),n=E.next();!n.done;n=E.next())(n=_.C(n.value,aC6))&&v.push(n);return v}}});
_.k([_.H(),_.W("design:type",Array)],ch.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ch.prototype,"byline",null);ch=_.k([_.N({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],ch);
_.u(ch,"ytd-playlist-byline-renderer",function(){if(ln0!==void 0)return ln0;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ln0=v},{mode:1});var s8_;var ya=function(){var v=_.g.apply(this,arguments)||this;v.rtlBullet=_.Z("web_playlist_stats_rtl_bullet_icon_killswitch");v.modern=_.Z("web_modern_buttons");v.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return v};
_.S(ya,_.g);_.c=ya.prototype;_.c.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"}}}}};
_.c.attached=function(){};
_.c.computeIsCustomThumbnail=function(v){return v?!!v.playlistCustomThumbnailRenderer:!1};
_.c.onYtNavigate=function(v,E){if(E&&E.actions&&E.actions.indexOf("shuffle")>-1){v=_.P().resolve(_.SY);var n=E.tempData||{};n.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);E.tempData=n;v.isShuffleNextPlaylist=!0}};
_.c.onUpdatePlaylistAction=function(v){var E;v=(E=_.C(v,_.io4))==null?void 0:E.updatedRenderer;if(E=_.C(v,MR))this.data=E};
_.c.computeStyleType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeThumbnailWidth=function(v){return v==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.c.computeHideThumbnailAria=function(v){if(v==null?0:v.thumbnailOverlays)for(var E=0;E<v.thumbnailOverlays.length;E++){var n=void 0;if((n=v.thumbnailOverlays[E])==null?0:n.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
ya.prototype.onYtNavigate=ya.prototype.onYtNavigate;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],ya.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ya.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],ya.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ya.prototype,"rtlBullet",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.W("design:type",String)],ya.prototype,"styleType",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],ya.prototype,"thumbnailWidth",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ya.prototype,"modern",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.W("design:type",Boolean)],ya.prototype,"isCustomThumbnail",void 0);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],ya.prototype,"onYtNavigate",null);
ya=_.k([_.N({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],ya);
_.u(ya,"ytd-playlist-sidebar-primary-info-renderer",function(){if(s8_!==void 0)return s8_;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return s8_=v},{mode:1});var rB_;var p_=function(){return _.g.apply(this,arguments)||this};
_.S(p_,_.g);p_.prototype.computeOwnerVisibility=function(v){return!(!v.videoOwner&&!v.button)};
p_.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],p_.prototype,"data",void 0);p_=_.k([_.N({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],p_);
_.u(p_,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(rB_!==void 0)return rB_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rB_=v},{mode:1});var P4K;var Qa=function(){var v=_.g.apply(this,arguments)||this;v.expanded=!1;v.isCompact=!1;return v};
_.S(Qa,_.g);_.c=Qa.prototype;_.c.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.c.dataChanged=function(){this.data&&_.Dd(_.K(this.text),_.f1g(_.yRz,_.JC(this.data.text||null)))};
_.c.computeAutoScrollEnabled=function(v,E){return v&&!E};
_.c.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.c.toggleOnTap=function(){this.expanded=!this.expanded};
Qa.prototype.expandedChanged=Qa.prototype.expandedChanged;Qa.prototype.dataChanged=Qa.prototype.dataChanged;_.k([_.h(_.pc_),_.W("design:type",Object)],Qa.prototype,"ytdAutoScrollBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qa.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qa.prototype,"expanded",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qa.prototype,"isCompact",void 0);_.k([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.W("design:type",Boolean)],Qa.prototype,"autoScrollEnabled",void 0);_.k([_.Wp("#text"),_.W("design:type",Object)],Qa.prototype,"text",void 0);_.k([_.Wp("#expander-icon"),_.W("design:type",Object)],Qa.prototype,"expanderIcon",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qa.prototype,"dataChanged",null);_.k([_.On("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qa.prototype,"expandedChanged",null);Qa=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Qa);
_.u(Qa,"ytd-channel-legal-info-renderer",function(){if(P4K!==void 0)return P4K;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return P4K=v},{mode:1});var anP;var Zbd=_.tQ("DOWNLOAD",{},"Download"),C4x=_.tQ("DOWNLOADING",{},"Downloading"),MFC=_.tQ("DOWNLOADED",{},"Downloaded"),ev=function(){var v=_.g.apply(this,arguments)||this;v.downloadProgress=0;v.isDownloadComplete=!1;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.S(ev,_.g);_.c=ev.prototype;_.c.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.c.dataChanged=function(){var v;(v=this.data)!=null&&v.tooltip||(v=_.lx(_.dG().getState(),this.playlistId),this.updateButtonState(v))};
_.c.computePlaylistId=function(v){return v};
_.c.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.c.updateButtonState=function(v){if(this.data&&(this.data.tooltip!==C4x||!_.nC(v))){this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=Zbd;var E="OFFLINE_DOWNLOAD";var n="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":v=MFC;E="OFFLINE_PIN";n="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":v=C4x;E="OFFLINE_DOWNLOADING_ZERO";n="ACTION_REMOVE_WITH_PROMPT";
break;default:v=Zbd,E="OFFLINE_DOWNLOAD",n="ACTION_ADD"}var f=Object.assign({},this.data);f.tooltip=v;f.accessibilityData={accessibilityData:{label:v}};f.icon={iconType:E};f.size="SIZE_DEFAULT";_.C(f.command,_.RX)&&(_.C(f.command,_.RX).action=n);this.set("data",f)}};
_.c.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?v="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var E;v!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.tooltip=C4x,E.accessibilityData={accessibilityData:{label:C4x}},E.icon={iconType:v},_.C(E.command,_.RX)&&(_.C(E.command,_.RX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
ev.prototype.updateProgress=ev.prototype.updateProgress;ev.prototype.onTransferStateChanged=ev.prototype.onTransferStateChanged;ev.prototype.dataChanged=ev.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],ev.prototype,"ytdReduxBehavior",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"forceIconButton",void 0);
_.k([_.H({value:!0}),_.W("design:type",Boolean)],ev.prototype,"forceIconOnly",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"overrides",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"buttonTooltipPosition",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"styleActionButton",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"disableTextTransform",void 0);
_.k([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.W("design:type",String)],ev.prototype,"playlistId",void 0);_.k([_.H(),_.W("design:type",Object)],ev.prototype,"data",void 0);_.k([_.H({selector:_.WD$,selectorArgs:["playlistId"]}),_.W("design:type",Object)],ev.prototype,"downloadProgress",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ev.prototype,"isDownloadComplete",void 0);
_.k([_.H({selector:_.lx,selectorArgs:["playlistId"]}),_.W("design:type",String)],ev.prototype,"transferState",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],ev.prototype,"showTooltips",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],ev.prototype,"sendCommandWhenDisabled",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],ev.prototype,"disabled",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ev.prototype,"dataChanged",null);_.k([_.Tw("transferState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ev.prototype,"onTransferStateChanged",null);_.k([_.Tw("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ev.prototype,"updateProgress",null);
ev=_.k([_.N({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],ev);
_.u(ev,"ytd-download-playlist-button-renderer",function(){if(anP!==void 0)return anP;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return anP=v},{mode:1});var S31;_.Yz(_.hw,"thumbnail-overlay-button-view-model",{props:{data:_.Kt,lockupExperiments:_.Kt}});var FR=function(){var v=_.g.apply(this,arguments)||this;v.isSquare=!1;v.isVertical=!1;return v};
_.S(FR,_.g);FR.prototype.computeIsSquare=function(v){return v!=null&&v.thumbnail?$tK(v.thumbnail)==="SQUARE":!1};
FR.prototype.computeIsVertical=function(v){return v!=null&&v.thumbnail?$tK(v.thumbnail)==="VERTICAL":!1};
FR.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.W("design:type",Object)],FR.prototype,"isSquare",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.W("design:type",Object)],FR.prototype,"isVertical",void 0);
_.k([_.H(),_.W("design:type",Object)],FR.prototype,"data",void 0);FR=_.k([_.N({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],FR);
_.u(FR,"ytd-hero-playlist-thumbnail-renderer",function(){if(S31!==void 0)return S31;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return S31=v},{mode:1});var mJ=function(){var v=_.g.apply(this,arguments)||this;v.isDarkTheme=!1;v.isUltraWide=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return v};
_.S(mJ,_.g);_.c=mJ.prototype;_.c.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.P();var v;(v=_.P().resolve(_.jp(_.Im)))!=null&&(v.headerElement=this.hostElement)};
_.c.detached=function(){var v;(v=_.P().resolve(_.jp(_.Im)))!=null&&(v.headerElement=void 0)};
_.c.onUpdateHeader=function(v){(v=v.detail)&&this.set("data",v)};
_.c.computeTextDisplayed=function(v){if(v)return v.textDisplayed?v.textDisplayed:v.placeholder};
_.c.gradientColorToLinearGradientStop=function(v){var E=this.isDarkTheme?v.darkThemeColor:v.lightThemeColor;return E?_.Qt(E)+" "+((v==null?void 0:v.startLocation)||0)*100+"%":"transparent"};
_.c.onWindowResize=function(){var v;((v=this.data)==null?0:v.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.c.onIronResize=function(v){this.isUltraWide=!v.detail.value};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.onUpdatePlaylistName=function(v){var E=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},v.detail.value));_.IS(this,function(){var n;(n=E.editableTitle)==null||n.resize()})};
_.c.onUpdatePlaylistDescription=function(v){var E=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},v.detail.value));_.IS(this,function(){var n;(n=E.editableDescriptionInlineExpander)==null||n.resize()})};
_.c.getCinematicData=function(v){return _.C(v==null?void 0:v.cinematicContainer,_.sr)};
_.hK.Object.defineProperties(mJ.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 v,E=(v=this.getCinematicData(this.data))==null?void 0:v.config;return(v=this.isDarkTheme?E==null?void 0:E.darkThemeBackgroundColor:E==null?void 0:E.lightThemeBackgroundColor)?"background-color:"+_.p2(v)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var v;return _.C((v=this.data)==null?void 0:v.descriptionForm,mW6)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n,f;return"background:linear-gradient(to bottom, "+(((f=(E=this.getCinematicData(this.data))==null?void 0:(n=E.gradientColorConfig)==null?void 0:n.map(function(x){return v.gradientColorToLinearGradientStop(x)}))==null?void 0:f.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var v;return _.JC((v=this.data)==null?void 0:v.descriptionTapText)}}});
mJ.prototype.onUpdateHeader=mJ.prototype.onUpdateHeader;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],mJ.prototype,"actionHandlerBehavior",void 0);_.k([_.Wp("#description-inline-expander"),_.W("design:type",Object)],mJ.prototype,"descriptionInlineExpander",void 0);
_.k([_.Wp("#editable-description-inline-expander"),_.W("design:type",Object)],mJ.prototype,"editableDescriptionInlineExpander",void 0);_.k([_.H(),_.W("design:type",Object)],mJ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],mJ.prototype,"isUltraWide",void 0);_.k([_.Wp("#editable-title-display"),_.W("design:type",Object)],mJ.prototype,"editableTitle",void 0);_.k([_.A("isUltraWide"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"maxDescriptionLines",null);
_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"noCinematicData",null);_.k([_.jk("yt-new-playlist-header"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mJ.prototype,"onUpdateHeader",null);_.k([_.A("data","isDarkTheme"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"backgroundStyle",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"descriptionFormData",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"getDropdownTheme",null);_.k([_.A("data","isDarkTheme"),_.W("design:type",String),_.W("design:paramtypes",[])],mJ.prototype,"gradientStyle",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"descriptionTapText",null);
mJ=_.k([_.N({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],mJ);
_.u(mJ,"ytd-playlist-header-renderer",function(){if(mLp!==void 0)return mLp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mLp=v},{mode:_.HE("kevlar_poly_si_batch_j078")?1:2});var ULp;var q3b;var wc=function(){return _.g.apply(this,arguments)||this};
_.S(wc,_.g);wc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wc.prototype,"data",void 0);wc=_.k([_.N({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],wc);
_.u(wc,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(q3b!==void 0)return q3b;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return q3b=v},{mode:1});var b2=function(){return _.g.apply(this,arguments)||this};
_.S(b2,_.g);
b2.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}}}}};
b2.prototype.computeUsePremiumShowStyle=function(v){if(!v||!v.items)return!1;for(var E=0;E<v.items.length;E++)if(_.C(v.items[E],MR)){var n=void 0;return((n=_.C(v.items[E],MR))==null?void 0:n.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],b2.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.W("design:type",Boolean)],b2.prototype,"usePremiumShowStyle",void 0);
b2=_.k([_.N({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],b2);
_.u(b2,"ytd-playlist-sidebar-renderer",function(){if(ULp!==void 0)return ULp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ULp=v},{mode:1});var JB0;var tn_=_.p7({pageHeaderViewModel:_.BDP});_.Nw(Bfp);var Ky_=_.qu(function(v){var E=v.data;var n=v.noPadding;var f=v.enableBanner;var x=v.cinematicContainerTopbarOffset;var y=v.allowCinematicContainerOverflow;var Q=v.displayAsSidebar;v=v.className;_.Xp(function(){E().tagManagerId&&(_.cs(E().tagManagerId,_.MX("GL")),RhK(E().tagManagerId))});
var e=_.Bi(zhR,function(){return E().pageHeaderEntityKey});
return _.w("yt-page-header-renderer",{class:_.W8("page-header-renderer-wiz",v)},_.w(_.mI,{data:function(){var F;return((F=e())==null?0:F.header)?e().header:(Q==null?0:Q())&&E().sidebarContent?E().sidebarContent:E().content}},{pageHeaderViewModel:function(F){return _.w(_.v36,{data:F.data,
noPadding:n,enableBanner:f,cinematicContainerTopbarOffset:x,allowCinematicContainerOverflow:y,displayAsSidebar:function(){return(Q==null?void 0:Q())&&E().enableSidebarView}})}}))},"oi"),dLR=_.Z("web_enable_sink_yt_page_header_renderer")?Ky_:Bfp;
Ky_.idomCompat=!0;_.Z("web_enable_sink_yt_page_header_renderer")?_.Yz(dLR,"yt-page-header-renderer",{props:{data:_.Kt,noPadding:_.Kt,enableBanner:_.Kt,cinematicContainerTopbarOffset:_.Kt,allowCinematicContainerOverflow:_.Kt,displayAsSidebar:_.Kt,className:_.Kt}}):_.uj(dLR,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar className".split(" ")});_.Yz(_.lB,"yt-image-banner-view-model",{props:{data:_.Kt,isPositionRelative:_.Kt}});var l2=function(){var v=_.g.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(E){return GCp(E,function(){return void v.onSearchNavigate()})};
v.isRichGrid=!1;v.isConstrainedList=!1;v.richGridMiniMode=!1;v.richGridStyle="RICH_GRID_STYLE_UNKNOWN";v.isRichGridShorts=!1;v.responsiveSizing="COMPACT";v.disableGridStateAware=!1;v.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return v};
_.S(l2,_.g);_.c=l2.prototype;_.c.computeHeaderDisabled=function(v,E){return E||!v||this.tabsHidden};
_.c.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.c.computeIsRichGridShorts=function(v){return v==="RICH_GRID_STYLE_SHORTS_GRID"||v==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.c.computeImageBannerViewModel=function(){var v,E;return _.C((E=_.C((v=this.data)==null?void 0:v.content,_.h84))==null?void 0:E.banner,_.NZG)};
_.c.computeHasCinematicContainer=function(){var v,E;return!((E=_.C((v=this.data)==null?void 0:v.content,_.h84))==null||!E.background)};
_.c.handleHeaderResize=function(){var v=_.K(this.hostElement).querySelector("#header");v&&_.jK(v,"iron-resize")};
_.c.handleInsertTabCommand=function(v){var E=_.C(v,Z81);E&&(E.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(n){return n.tabRenderer&&n.tabRenderer.tabIdentifier===E.tabIdentifier})||this.splice("tabs",E.tabIndex||-1,0,E.tab))};
_.c.handleRefreshChannelTabAction=function(v){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===v&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.c.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.c.observerRichGridSlimItemsPerRow=function(){_.NQ(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.c.updateCssVars=function(){this.richGridItemsPerRow&&_.NQ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.WG("rich_grid_max_item_width",500))+16)-16+"px"})};
_.c.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.NQ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.c.onDataChanged=function(){this.handleHeaderResize()};
_.c.onWindowResize=function(){this.handleHeaderResize()};
_.c.onFocusedChanged=function(v){(v=_.Sk(v))&&v.is==="tp-yt-paper-tab"&&v.hasRipple()&&(v.getRipple().holdDown=!v.pointerDown&&v.focused)};
_.c.updateSelectedFromBinding=function(v){this.ytdTabbedHeaderBehavior.selected=v.detail.value};
_.c.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.hK.Object.defineProperties(l2.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iPU(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.imageBannerViewModel)==null?void 0:v.style)==="IMAGE_BANNER_STYLE_INSET"}}});
l2.prototype.onDataChanged=l2.prototype.onDataChanged;l2.prototype.updateCssVarsForResponsiveGrid=l2.prototype.updateCssVarsForResponsiveGrid;l2.prototype.updateCssVars=l2.prototype.updateCssVars;l2.prototype.observerRichGridSlimItemsPerRow=l2.prototype.observerRichGridSlimItemsPerRow;l2.prototype.observerRichGridItemsPerRow=l2.prototype.observerRichGridItemsPerRow;_.k([_.h(_.Mj),_.W("design:type",Object)],l2.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.h(CsO),_.W("design:type",Object)],l2.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],l2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],l2.prototype,"ytdReduxBehavior",void 0);_.k([_.Wp("#tabs"),_.W("design:type",Object)],l2.prototype,"tabsElement",void 0);_.k([_.H(),_.W("design:type",Array)],l2.prototype,"tabs",void 0);_.k([_.H(),_.W("design:type",Object)],l2.prototype,"expandableCustomTabRenderable",void 0);_.k([_.A("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],l2.prototype,"tabGroupShape",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l2.prototype,"isRichGrid",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l2.prototype,"isConstrainedList",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Object)],l2.prototype,"richGridMiniMode",void 0);_.k([_.H({selector:function(v){return v.ui.richGridStyle}}),
_.W("design:type",Object)],l2.prototype,"richGridStyle",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.W("design:type",Object)],l2.prototype,"isRichGridShorts",void 0);_.k([_.H({selector:_.Fq}),_.W("design:type",Number)],l2.prototype,"richGridItemsPerRow",void 0);_.k([_.H({selector:function(v){return v.ui.richGridContainerWidth}}),
_.W("design:type",Number)],l2.prototype,"richGridContainerWidth",void 0);_.k([_.H({selector:_.dbX}),_.W("design:type",Number)],l2.prototype,"richGridSlimItemsPerRow",void 0);_.k([_.H(),_.W("design:type",Object)],l2.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l2.prototype,"responsiveSizing",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],l2.prototype,"disableGridStateAware",void 0);
_.k([_.H({computed:"computeImageBannerViewModel(data)"}),_.W("design:type",Object)],l2.prototype,"imageBannerViewModel",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.W("design:type",Boolean)],l2.prototype,"hasCinematicContainer",void 0);_.k([_.H({selector:_.t8d,reflectToAttribute:!0}),_.W("design:type",Boolean)],l2.prototype,"guideIsVisibleButNotPersistent",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],l2.prototype,"hasBanner",null);_.k([_.H({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],l2.prototype,"hasInsetBanner",null);_.k([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.W("design:type",Boolean)],l2.prototype,"tabsHidden",void 0);
_.k([_.On("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l2.prototype,"observerRichGridItemsPerRow",null);_.k([_.On("richGridSlimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l2.prototype,"observerRichGridSlimItemsPerRow",null);
_.k([_.On("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l2.prototype,"updateCssVars",null);_.k([_.On("richGridContainerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l2.prototype,"updateCssVarsForResponsiveGrid",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l2.prototype,"onDataChanged",null);
l2=_.k([_.N({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],l2);
_.u(l2,"ytd-tabbed-page-header",function(){if(JB0!==void 0)return JB0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JB0=v},{mode:1});var InO;var sY=function(){return _.g.apply(this,arguments)||this};
_.S(sY,_.g);sY.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.hK.Object.defineProperties(sY.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var v,E;return this.componentBehavior.computeIcon_(((E=_.C((v=this.data)==null?void 0:v.badge,_.KP1))==null?void 0:E.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.badge,_.KP1))==null?void 0:E.label}}});
sY.prototype.observerRichGridItemsPerRow=sY.prototype.observerRichGridItemsPerRow;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],sY.prototype,"componentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],sY.prototype,"ytdReduxBehavior",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.eN}),_.W("design:type",Boolean)],sY.prototype,"richGridMiniMode",void 0);
_.k([_.H({selector:_.Fq}),_.W("design:type",Number)],sY.prototype,"richGridItemsPerRow",void 0);_.k([_.H(),_.W("design:type",Object)],sY.prototype,"data",void 0);_.k([_.On("richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sY.prototype,"observerRichGridItemsPerRow",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],sY.prototype,"badgeIconName",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],sY.prototype,"badgeLabel",null);sY=_.k([_.N({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],sY);
_.u(sY,"ytd-member-hub-profile-renderer",function(){if(InO!==void 0)return InO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return InO=v},{mode:1});var Y3O;var rc=function(){return _.g.apply(this,arguments)||this};
_.S(rc,_.g);rc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rc.prototype,"data",void 0);rc=_.k([_.N({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],rc);
_.u(rc,"ytd-settings-sidebar-renderer",function(){if(Y3O!==void 0)return Y3O;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Y3O=v},{mode:1});var hv_;var Ph=function(){var v=_.g.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(E){return GCp(E,function(){return void v.onSearchNavigate()})};
return v};
_.S(Ph,_.g);Ph.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Ph.prototype.onSearchNavigate=function(){this.selected=void 0};
Ph.prototype.onTabsChange=function(){var v,E=(v=this.tabs)==null?void 0:v.findIndex(function(n){var f;return n==null?void 0:(f=n.tabRenderer)==null?void 0:f.selected});
E!==void 0&&(this.selected=E)};
Ph.prototype.onTabsActive=function(v){if(this.tabs!==void 0){var E,n;(v=(E=this.tabs[v.detail.selected])==null?void 0:(n=E.tabRenderer)==null?void 0:n.endpoint)&&_.jK(this.hostElement,"yt-navigate",{endpoint:v})}};
_.hK.Object.defineProperties(Ph.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iPU(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Ph.prototype.onTabsChange=Ph.prototype.onTabsChange;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.Mj),_.W("design:type",Object)],Ph.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Ph.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Ph.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],Ph.prototype,"tabs",void 0);_.k([_.H(),_.W("design:type",Number)],Ph.prototype,"selected",void 0);_.k([_.A("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ph.prototype,"tabGroupShape",null);_.k([_.H(),_.W("design:type",Object)],Ph.prototype,"expandableCustomTabRenderable",void 0);
_.k([_.A("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ph.prototype,"tabsEnabled",null);_.k([_.Tw("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ph.prototype,"onTabsChange",null);Ph=_.k([_.N({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Ph);
_.u(Ph,"ytd-topic-channel-details-renderer",function(){if(hv_!==void 0)return hv_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hv_=v},{mode:1});var AB3;var ap=function(){var v=_.g.apply(this,arguments)||this;v.disableGridStateAware=!1;return v};
_.S(ap,_.g);ap.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]]"}}}}}};
ap.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
ap.prototype.updateCssVars=function(){_.NQ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.WG("rich_grid_max_item_width",500))+16)-16+"px"})};
ap.prototype.updateCssVars=ap.prototype.updateCssVars;ap.prototype.activeChanged=ap.prototype.activeChanged;_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],ap.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ap.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],ap.prototype,"tabs",void 0);_.k([_.H(),_.W("design:type",Boolean)],ap.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],ap.prototype,"disableGridStateAware",void 0);
_.k([_.H({selector:_.Fq}),_.W("design:type",Number)],ap.prototype,"richGridItemsPerRow",void 0);_.k([_.H({selector:_.eN}),_.W("design:type",Boolean)],ap.prototype,"richGridMiniMode",void 0);_.k([_.Wp("ytd-carousel-item-renderer"),_.W("design:type",Object)],ap.prototype,"carousel",void 0);_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ap.prototype,"activeChanged",null);
_.k([_.On("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ap.prototype,"updateCssVars",null);ap=_.k([_.N({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],ap);
_.u(ap,"ytd-carousel-header-renderer",function(){if(AB3!==void 0)return AB3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return AB3=v},{mode:1});var VFU;var DL3=_.jU(["https://www.google-analytics.com/analytics.js"]),Zs=function(){var v=_.g.apply(this,arguments)||this;v.scriptAnalyticsAdded=!1;return v};
_.S(Zs,_.g);Zs.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var v,E=(v=this.data)==null?void 0:v.tagManagerId;E&&(_.cs(E,_.MX("GL")),RhK(E))};
Zs.prototype.sendGoogleAnalyticsPageview=function(v){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var n=_.rV.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(n)};
var E=window.ga;E("set","page",window.location.pathname);E.l=+new Date;E("set","forceSSL",!0);E("create",v,"'auto'");E("send","pageview")};
Zs.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var v=_.oc("SCRIPT");v.name="ga-analytics";var E=_.i_(DL3);_.Vv(v,E);v.async=!0;_.K(this.hostElement).appendChild(v)};
Zs.prototype.dataChanged=Zs.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],Zs.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zs.prototype,"dataChanged",null);Zs=_.k([_.N({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Zs);
_.u(Zs,"ytd-channel-metadata-renderer",function(){if(VFU!==void 0)return VFU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return VFU=v},{mode:1});var HbU;var gPC;var C_=function(){return _.g.apply(this,arguments)||this};
_.S(C_,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],C_.prototype,"data",void 0);C_=_.k([_.N({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],C_);
_.u(C_,"ytd-sub-feed-option-renderer",function(){if(gPC!==void 0)return gPC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gPC=v},{mode:1});var N3O;var M4=function(){return _.g.apply(this,arguments)||this};
_.S(M4,_.g);M4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],M4.prototype,"ytRendererStamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],M4.prototype,"data",void 0);M4=_.k([_.N({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],M4);
_.u(M4,"ytd-sub-feed-selector-renderer",function(){if(N3O!==void 0)return N3O;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return N3O=v},{mode:1});var Sv=function(){return _.g.apply(this,arguments)||this};
_.S(Sv,_.g);
Sv.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}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sv.prototype,"data",void 0);Sv=_.k([_.N({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Sv);
_.u(Sv,"ytd-browse-feed-actions-renderer",function(){if(HbU!==void 0)return HbU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return HbU=v},{mode:1});var uW_;var j8p;var UY=function(){return _.g.apply(this,arguments)||this};
_.S(UY,_.g);UY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UY.prototype,"data",void 0);UY=_.k([_.N({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],UY);
_.u(UY,"ytd-mini-channel-renderer",function(){if(j8p!==void 0)return j8p;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return j8p=v},{mode:1});var Ob1;var q4=function(){return _.g.apply(this,arguments)||this};
_.S(q4,_.g);q4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],q4.prototype,"data",void 0);q4=_.k([_.N({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],q4);
_.u(q4,"ytd-vertical-channel-section-renderer",function(){if(Ob1!==void 0)return Ob1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Ob1=v},{mode:1});var JH=function(){return _.g.apply(this,arguments)||this};
_.S(JH,_.g);JH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],JH.prototype,"data",void 0);JH=_.k([_.N({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],JH);
_.u(JH,"ytd-browse-secondary-contents-renderer",function(){if(uW_!==void 0)return uW_;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return uW_=v},{mode:1});var k_R;var K_=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};v.notActive=!1;v.isConstrainedList=!1;return v};
_.S(K_,_.g);_.c=K_.prototype;
_.c.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(v){var E;return(v==null?void 0:(E=v.webComponentHint)==null?void 0:E.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}}}}};
_.c.getPath=function(v,E){var n="data.tabs.#"+E+".";v.tabs[E].tabRenderer?n+="tabRenderer.":v.tabs[E].expandableTabRenderer&&(n+="expandableTabRenderer.");return n+"content.sectionListRenderer"};
_.c.computeDisplayedContent=function(v){this.unlinkPaths("content");if(v&&v.tabs)for(var E=v.tabs.length,n=0;n<E;n++){var f=v.tabs[n].tabRenderer||v.tabs[n].expandableTabRenderer;if(f.selected&&f.content)return this.linkPaths("content",this.getPath(v,n)),f.content}return null};
_.c.computeHasSecondaryColumnData=function(v){return!!v&&!!v.secondaryContents};
_.c.onRetrieveLocation=function(v,E){E.locationRetrieved(E.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);v.stopPropagation()};
_.c.onYtServiceRequestSent=function(v,E){_.Z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.c.onYtServiceRequestCompleted=function(v,E){_.Z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.c.onReplaceFeedContentAction=function(v){if(!_.Z("replace_feed_content_action_killswitch")&&!this.notActive){var E;(v=(E=_.C(v,QxK))==null?void 0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(v)}};
_.c.handleServiceRequestActions=function(v){if(v=v.actions){v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;var n=void 0;((n=_.C(E,QxK))==null?0:n.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.C(E,QxK).items)}}};
K_.prototype.onYtServiceRequestCompleted=K_.prototype.onYtServiceRequestCompleted;K_.prototype.onYtServiceRequestSent=K_.prototype.onYtServiceRequestSent;K_.prototype.onRetrieveLocation=K_.prototype.onRetrieveLocation;_.k([_.h(_.Mj),_.W("design:type",Object)],K_.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],K_.prototype,"data",void 0);_.k([_.H({computed:"computeDisplayedContent(data)"}),_.W("design:type",Object)],K_.prototype,"content",void 0);
_.k([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],K_.prototype,"hasSecondaryColumnData",void 0);_.k([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.W("design:type",Number)],K_.prototype,"initialCount",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],K_.prototype,"pageSubtype",void 0);_.k([_.Wp("ytd-section-list-renderer"),_.W("design:type",Object)],K_.prototype,"listRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],K_.prototype,"notActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],K_.prototype,"isConstrainedList",void 0);
_.k([_.H(),_.W("design:type",String)],K_.prototype,"responsiveSizing",void 0);_.k([_.jk("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],K_.prototype,"onRetrieveLocation",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],K_.prototype,"onYtServiceRequestSent",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],K_.prototype,"onYtServiceRequestCompleted",null);K_=_.k([_.N({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],K_);
_.u(K_,"ytd-two-column-browse-results-renderer",function(){if(k_R!==void 0)return k_R;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return k_R=v},{mode:2});var Wy6;var $LO;var dc=function(){var v=_.g.apply(this,arguments)||this;v.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"]);v.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"]);v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return v};
_.S(dc,_.g);_.c=dc.prototype;_.c.attached=function(){this.requestElementsPerRow()};
_.c.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_]]"}}}}}};
_.c.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.c.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.c.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.c.computeAlertStyle_=function(v){return v};
_.c.observerElementsPerRow=function(){this.elementsPerRow&&_.NQ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.c.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.c.requestElementsPerRow=function(){_.jK(this.hostElement,"yt-request-elements-per-row")};
dc.prototype.onIsVisibleChanged_=dc.prototype.onIsVisibleChanged_;dc.prototype.observerElementsPerRow=dc.prototype.observerElementsPerRow;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],dc.prototype,"actionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],dc.prototype,"data",void 0);_.k([_.H({value:6,reflectToAttribute:!0}),_.W("design:type",Number)],dc.prototype,"elementsPerRow",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],dc.prototype,"wrapButtons",void 0);_.k([_.H({value:_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],dc.prototype,"isMusic",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.W("design:type",String)],dc.prototype,"alertStyle",void 0);_.k([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.W("design:type",Function)],dc.prototype,"dismissBoundButtonTap_",void 0);_.k([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.W("design:type",Function)],dc.prototype,"acceptBoundButtonTap_",void 0);_.k([_.On("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dc.prototype,"observerElementsPerRow",null);_.k([_.On("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dc.prototype,"onIsVisibleChanged_",null);dc=_.k([_.p5({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],dc);
_.u(dc,"yt-alert-with-actions-renderer",function(){if($LO===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Wy6===void 0&&(Wy6=document.createElement("template"));var f=Wy6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);$LO=v}v=$LO;return v},{mode:2});_.Yz(_.qu(function(v){function E(O){var T={};return _.w(_.nh,{text:O,className:_.W8("ytPersonalGreetingViewModelHeadline",(T.ytPersonalGreetingViewModelHeadlineSmall=function(){return e()===48},T))})}
function n(O,T){return _.w("span",{el:O,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},E(T))}
var f=_.Ig(),x=_.Ig(),y=_.Ig(),Q=function(){return v.data().canvasPromoData},e=function(){var O;
return(O=v.data().bannerHeight)!=null?O:56},F=_.p(_.t7({content:""},void 0,"rcUSic")),b=F.next().value,l=F.next().value,r=_.L1s(f,{throttleMs:100}),a=_.L1s(x,{throttleMs:100}),M=_.L1s(y,{throttleMs:100});
F=_.p(_.t7(!0,void 0,"b0Yv9d"));var U=F.next().value,d=F.next().value;F=_.p(_.t7(!0,void 0,"ByEGnd"));var Y=F.next().value,V=F.next().value;_.Xp(function(){V(a.width()-r.width()>1);d(M.width()+(v.data().avatar?48:0)-r.width()>1);l(U()?v.data().shorterGreeting:v.data().greeting)},"nSIsDe");
_.Ya(f,function(){var O;return(O=v.data())==null?void 0:O.rendererContext},void 0,void 0,void 0,!0);
return _.w("yt-personal-greeting-view-model",{el:f,"aria-hidden":function(){return Y()},
class:_.W8(v.className,"ytPersonalGreetingViewModelHost"),style:_.tZ({height:(0,_.XZ)(function(){return Y()?0:e()})})},_.w(_.x6,{cond:function(){return v.data().avatar&&!U()},
then:function(){return _.w(_.mI,{data:function(){return v.data().avatar}},{decoratedAvatarViewModel:function(O){return _.w(_.ez,{data:O.data,
className:_.W8("ytPersonalGreetingViewModelAvatar")})}})}}),_.w("h1",null,E(function(){var O;
return(Q==null?void 0:(O=Q())==null?void 0:O.headline)||b()})),n(y,function(){return v.data().greeting}),n(x,function(){return v.data().shorterGreeting}))},"pi"),"yt-personal-greeting-view-model",{props:{data:_.Kt,
className:_.Kt}});var Ip=function(){var v=_.g.apply(this,arguments)||this;v.hidden=!1;v.isConstrainedList=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.responsiveSizing="COMPACT";v.attachedPlayers=_.Z("kevlar_channel_trailer_multi_attach")?[]:void 0;v.player=null;v.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return v};
_.S(Ip,_.g);_.c=Ip.prototype;
_.c.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.c.created=function(){var v=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){v.disposeMastheadAd()}]};
_.c.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new UWd(this.refresh,this.contents))};
_.c.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.c.activeChanged=function(){var v=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=v)};
_.c.tabsChanged=function(){var v=this,E,n,f,x;if(this.pageSubtype==="channels"||_.Z("kevlar_tab_gestures_for_tabbed_header_data")&&(((E=this.data)==null?0:(n=E.header)==null?0:n.c4TabbedHeaderRenderer)||((f=this.data)==null?0:(x=f.header)==null?0:x.carouselHeaderRenderer)))this.tabGestures=new Ur(this.contents,this.contents,this.hostElement,this.header,function(F){v.ytdReduxBehavior.dispatch(F)});
var y,Q,e;E=(y=this.data)==null?void 0:(Q=y.contents)==null?void 0:(e=Q.twoColumnBrowseResultsRenderer)==null?void 0:e.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=E);this.tabGestures&&this.tabGestures.tabsChanged(E)};
_.c.channelIdChanged=function(){if(this.tabGestures){var v,E,n,f=this.tabGestures,x=(v=this.data)==null?void 0:(E=v.header)==null?void 0:(n=E.c4TabbedHeaderRenderer)==null?void 0:n.channelId;x&&x!==f.currentChannelId&&(f.scrollPositionForTabs.clear(),f.currentChannelId=x,f.lastVisitedTabScrollPosition=void 0,f.tabsStartAtInPx=0)}};
_.c.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.c.engagementPanelsChanged=function(){var v=_.P().resolve(_.XQ);if(v){if(this.engagementPanels)for(var E=_.p(this.engagementPanels),n=E.next();!n.done;n=E.next()){var f=void 0;(n=(f=n.value.identifier)==null?void 0:f.tag)&&v.panelMap.delete(n)}this.engagementPanels=[];var x;E=_.p(((x=this.data)==null?void 0:x.panels)||[]);for(x=E.next();!x.done;x=E.next()){x=_.C(x.value,_.vd3);var y=n=void 0,Q=void 0,e=void 0;if(f=((n=x)==null?void 0:n.targetId)||((y=x)==null?void 0:y.panelIdentifier)||((Q=x)==null?
void 0:(e=Q.identifier)==null?void 0:e.tag))y=n=void 0,(y=(n=v).registerPanelContent)==null||y.call(n,f,{engagementPanelSectionListRenderer:x}),this.engagementPanels.push(x)}}};
_.c.onStampFinished=function(){var v=this;_.IS(this,function(){if(v.tabGestures){var E=v.tabGestures;if(E.scrollPositionNeedsUpdate){var n=_.P().resolve(_.jp(_.Y_)),f;if((f=E.selectedTab)!=null&&f.title&&n&&(f=n.getCurrentPage())){if(E.scrollPositionForTabs.has(E.selectedTab.title)){var x,y;n=(y=(x=n.getCurrentPage())==null?void 0:x.clientHeight)!=null?y:0;x=E.scrollPositionForTabs.get(E.selectedTab.title);f.setScrollTop(x);n>x+100&&(E.scrollPositionNeedsUpdate=!1)}else f.setScrollTop(Math.min(E.lastVisitedTabScrollPosition!==
void 0?E.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,E.tabsStartAtInPx)),E.scrollPositionNeedsUpdate=!1;E.ytdReduxDispatch(vjx(!1))}}}})};
_.c.loadPage_=function(v){this.initCsi();v&&(this.data=v);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.c.getTitle=function(v){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",v))return this.get("microformat.microformatDataRenderer.title",v);if(this.get("header.c4TabbedHeaderRenderer.title",v))return this.get("header.c4TabbedHeaderRenderer.title",v);if(this.get("header.feedTabbedHeaderRenderer.title",v))return _.JC(this.get("header.feedTabbedHeaderRenderer.title",v));if(this.get("header.interactiveTabbedHeaderRenderer.title",v))return this.get("header.interactiveTabbedHeaderRenderer.title",
v);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",v))return _.JC(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
v));var E,n;return _.Z("enable_page_header_page_title")&&(v==null?0:(E=v.header)==null?0:(n=E.pageHeaderRenderer)==null?0:n.pageTitle)?v.header.pageHeaderRenderer.pageTitle:""};
_.c.updateTitle=function(v){_.jK(this.hostElement,"yt-update-title",this.getTitle(v))};
_.c.initCsi=function(){_.ad(this.pageSubtype||"browse",["ol","cpt"])};
_.c.getPlayer=function(){if(_.Z("kevlar_channel_trailer_multi_attach")){for(var v=_.p(this.attachedPlayers),E=v.next();!E.done;E=v.next())if(E=E.value,E.isConnected||_.ME(this.hostElement,E))return E;return null}return this.player};
_.c.getPlayerContainer=function(){return null};
_.c.onPlayerAttached=function(v,E){_.Z("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(E):this.player=E};
_.c.onPlayerDetached=function(v,E){_.Z("kevlar_channel_trailer_multi_attach")?(v=this.attachedPlayers.indexOf(E),v<0||this.attachedPlayers.splice(v,1)):this.player=null};
_.c.getServiceTrackingParams=function(){var v,E;return((v=this.data)==null?void 0:(E=v.responseContext)==null?void 0:E.serviceTrackingParams)||[]};
_.c.setMastheadAd=function(v){v&&v.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=v&&v.mastheadAd};
_.c.dataChanged=function(){var v=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.VnP();_.IS(this,function(){_.kZ(v.hostElement,"ytd-update-grid-state-action")})};
_.c.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.c.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(E){return!!E.alertWithActionsRenderer})}};
_.c.computeGreetingData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(E){return!!E.personalGreetingViewModel})}};
_.c.computeHasC4TabbedHeaderRenderer=function(v){var E;return!!(v==null?0:(E=v.header)==null?0:E.c4TabbedHeaderRenderer)};
_.c.computeHasMemberHubProfileRenderer=function(v){var E;return!!(v==null?0:(E=v.header)==null?0:E.memberHubProfileRenderer)};
_.c.handleAlertCommand=function(v){this.get("alertCommand.alert.alertWithActionsRenderer",v)&&(v=_.C(v,Xe6),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",v.alert))};
_.c.handleYtPlaylistDeletionRedirect=function(v){v=this.get("playlistDeletionRedirectCommand.redirectEndpoint",v);_.jK(this.hostElement,"yt-navigate",{endpoint:v})};
_.c.computeFluidWidth=function(v,E,n){if(E==="mini_app"||n)return!0;var f,x,y;v=v==null?void 0:(f=v.contents)==null?void 0:(x=f.twoColumnBrowseResultsRenderer)==null?void 0:(y=x.tabs)==null?void 0:y.find(function(F){var b;return F==null?void 0:(b=F.tabRenderer)==null?void 0:b.selected});
if(!v)return!1;var Q,e;return!!((Q=v.tabRenderer)==null?0:(e=Q.content)==null?0:e.richGridRenderer)&&!["channel","channels","playables"].includes(E)};
_.c.computeHeaderFluidWidth=function(v){return v==="hashtag-landing-page"};
_.c.computeHasSidebar=function(v){var E;return!!(v.sidebar||((E=v.header)==null?0:E.playlistHeaderRenderer))};
_.c.computeHasPageHeaderSidebar=function(v){var E,n;return!!((E=v.header)==null?0:(n=E.pageHeaderRenderer)==null?0:n.enableSidebarView)};
_.c.computeUseUnifiedShowPageLayout=function(v){if(!v||this.pageSubtype!=="show"||!v.sidebar||!v.sidebar.playlistSidebarRenderer)return!1;v=v.sidebar.playlistSidebarRenderer;if(!v.items)return!1;for(var E=0;E<v.items.length;E++)if(_.C(v.items[E],MR)){var n=void 0;return((n=_.C(v.items[E],MR))==null?void 0:n.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.c.computeIsConstrainedList=function(v){return _.Z("web_enable_constrained_list_subscriptions_channels")&&v==="subscriptions-channels"};
_.c.computeResponsiveSizing=function(v){return v==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.hK.Object.defineProperties(Ip.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E;return((v=this.data)==null?0:(E=v.header)==null?0:E.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var v,E;if(!((v=this.data)==null?0:(E=v.sidebar)==null?0:E.playlistSidebarRenderer))return!1;var n;return(n=this.data)!=null&&n.header?!1:!0}}});
_.hK.Object.defineProperties(Ip,{template:{configurable:!0,enumerable:!0,get:function(){if(KOb===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);KOb=v}v=KOb;return v}}});
Ip.prototype.dataChanged=Ip.prototype.dataChanged;Ip.prototype.onPlayerDetached=Ip.prototype.onPlayerDetached;Ip.prototype.onPlayerAttached=Ip.prototype.onPlayerAttached;Ip.prototype.onStampFinished=Ip.prototype.onStampFinished;Ip.prototype.engagementPanelsChanged=Ip.prototype.engagementPanelsChanged;Ip.prototype.scrollAtTopChanged=Ip.prototype.scrollAtTopChanged;Ip.prototype.channelIdChanged=Ip.prototype.channelIdChanged;Ip.prototype.tabsChanged=Ip.prototype.tabsChanged;
Ip.prototype.activeChanged=Ip.prototype.activeChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Ip.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],Ip.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Ip.prototype,"ytdReduxBehavior",void 0);
_.k([_.h(_.Zi.YtPageBehavior),_.W("design:type",Object)],Ip.prototype,"ytPageBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Ip.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ip.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ip.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ip.prototype,"hidden",void 0);_.k([_.H(),_.W("design:type",Object)],Ip.prototype,"mastheadAdData",void 0);_.k([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.W("design:type",Object)],Ip.prototype,"alertBannerData",void 0);_.k([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.W("design:type",Object)],Ip.prototype,"greetingData",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],Ip.prototype,"pageSubtype",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.W("design:type",Boolean)],Ip.prototype,"hasC4TabbedHeaderRenderer",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.W("design:type",Boolean)],Ip.prototype,"hasMemberHubProfileRenderer",void 0);
_.k([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Ip.prototype,"hasSidebar",void 0);_.k([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Ip.prototype,"hasPageHeaderSidebar",void 0);_.k([_.H({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],Ip.prototype,"roundedContainer",void 0);
_.k([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Ip.prototype,"useUnifiedShowPageLayout",void 0);_.k([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.W("design:type",Object)],Ip.prototype,"isConstrainedList",void 0);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ip.prototype,"usePlaylistHeaderRenderer",null);
_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ip.prototype,"useOldPlaylistSidebarRenderer",null);_.k([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.W("design:type",Boolean)],Ip.prototype,"fluidWidth",void 0);_.k([_.H({selector:function(v){return v.ui.scrollAtTop}}),
_.W("design:type",Boolean)],Ip.prototype,"scrollAtTop",void 0);_.k([_.H({selector:_.BYP}),_.W("design:type",Boolean)],Ip.prototype,"tabGesturesIsActive",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Ip.prototype,"darkerDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.W("design:type",Boolean)],Ip.prototype,"disableHeaderFluidWidth",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.W("design:type",String)],Ip.prototype,"responsiveSizing",void 0);_.k([_.Wp("ytd-two-column-browse-results-renderer"),_.W("design:type",HTMLElement)],Ip.prototype,"contents",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],Ip.prototype,"header",void 0);_.k([_.Wp("ytd-refresh"),_.W("design:type",Object)],Ip.prototype,"refresh",void 0);
_.k([_.On("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"activeChanged",null);_.k([_.On("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"tabsChanged",null);_.k([_.On("data.header.c4TabbedHeaderRenderer.channelId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"channelIdChanged",null);
_.k([_.On("scrollAtTop"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"scrollAtTopChanged",null);_.k([_.H(),_.W("design:type",Object)],Ip.prototype,"engagementPanels",void 0);_.k([_.On("data.panels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"engagementPanelsChanged",null);
_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"onStampFinished",null);_.k([_.jk("yt-player-attached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],Ip.prototype,"onPlayerAttached",null);_.k([_.jk("yt-player-detached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],Ip.prototype,"onPlayerDetached",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ip.prototype,"dataChanged",null);Ip=_.k([_.N({is:"ytd-browse"})],Ip);_.mN.registerService(_.kOF,Ip);
_.sV();
}catch(e){_._DumpException(e)}
try{
_.lY("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 LP=function(v){if(!v)return"browse";var E=v.page,n=v.url,f,x,y,Q=(f=v.response)==null?void 0:(x=f.responseContext)==null?void 0:(y=x.webResponseContextExtensionData)==null?void 0:y.pageTheme;if(Q)E=Q.toLowerCase().replace(/_/g,"-");else if(E!=="watch"){var e,F;if((E==="browse"||E==="settings")&&((e=v.response)==null?0:(F=e.sidebar)==null?0:F.settingsSidebarRenderer))E="WEB_PAGE_TYPE_SETTINGS";else{var b,l;E==="browse"&&((b=v.response)==null?0:(l=b.metadata)==null?0:l.channelMetadataRenderer)?
E="channel":n&&(E=_.ZKI(n)||E)}}return E},x1M=function(){var v=_.JM("yt.aba.att");
return v?v:_.N6.instance!==void 0?_.N6.instance.euH.bind(_.N6.instance):null},cs_=function(v,E){var n;
return _.X(function(f){return(n=x1M())?f.return(n(v,E,6E4)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},ysC=function(v,E,n,f,x){E=E===void 0?[]:E;
x=x?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:x}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.HR(v),dialogMessages:E.map(function(y){return _.HR(y)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.HR(n),serviceEndpoint:x}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.HR(f)}}}}}},p7p=function(v){var E=!!_.dr().queueProxy;
var n,f,x;v=v==null?void 0:(n=v.response)==null?void 0:(f=n.currentVideoEndpoint)==null?void 0:(x=f.watchEndpoint)==null?void 0:x.playlistId;return!(!E&&!v)},QYK=function(v,E){var n=_.xo();
if(p7p(v))return n.playlistWatchPageActivation=!0;switch(LP(E)){case "yts-products":return n.productDetailsPageActivation=!0;case "mini_app":return n.miniAppPageActivation=!0;case "playables":return n.playablesDestPageActivation=!0;default:return!1}},X7U=function(v,E,n){for(var f=typeof v==="string"?v.split(""):v,x=v.length-1;x>=0;--x)x in f&&E.call(n,f[x],x,v)},eRb=function(v,E){E=_.s$X(v,E);
E>=0&&_.Ts(v,E)},Fi6=function(v){return Array.prototype.concat.apply([],arguments)},m1M=function(v){var E=0;
E=E===void 0?0:E;if(!_.lC(v))throw _.PU("uint64");var n=typeof v;switch(E){case 512:switch(n){case "string":return _.XUX(v);case "bigint":return String((0,_.AR)(64,v));default:return _.pUE(v)}case 1024:switch(n){case "string":return _.e4Q(v);case "bigint":return _.iX((0,_.AR)(64,v));default:return _.QFQ(v)}case 0:switch(n){case "string":return _.XUX(v);case "bigint":return _.iX((0,_.AR)(64,v));default:return _.y6I(v)}default:return _.p0(E,"Unknown format requested type for int64")}},w7_=function(v){v!=
null&&(v=v.JSC$6706_value_||"",v=typeof v==="string"?v:new Uint8Array(v));
return v},bZx=function(v){for(var E=_.rV.apply(1,arguments),n=v[0],f=0;f<v.length-1;f++)n+=String(E[f]),n+=v[f+1];
E=document.implementation.createHTMLDocument("");f=E.createElement("style");E.head.appendChild(f);E=f.sheet;E.insertRule(n,0);if(E.cssRules.length===1&&(n=E.cssRules[0],n instanceof CSSStyleRule))return new _.Na(n.cssText.replace(/</g,"\\3C "))},l$M=function(v,E){if(/-[a-z]/.test(E))return null;
if(_.Sm4&&v.dataset){if(_.pIX()&&!(E in v.dataset))return null;v=v.dataset[E];return v===void 0?null:v}return v.getAttribute("data-"+_.tK(E))},rsx=function(){var v=sYM;
_.JM("yt.ads.biscotti.getId_")||_.Vc("yt.ads.biscotti.getId_",v)},P6U=function(v){_.Vc("yt.ads.biscotti.lastId_",v)},ZZ_=function(){var v={};
for(_.F7=new a$P(v.handleError===void 0?_.bi:v.handleError,v.logEvent===void 0?_.eQ:v.logEvent);_.mx.length>0;)switch(v=_.mx.shift(),v.type){case "ERROR":_.F7.logError(v.payload);break;case "EVENT":_.F7.logEvent(v.eventType,v.payload)}},C6M=function(v,E,n){return _.TM$(function(f){return n?f.userIdentifier!==void 0&&!v.includes(f.userIdentifier)&&n.includes(f.publicName):f.userIdentifier!==void 0&&!v.includes(f.userIdentifier)},E)},MD6=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1)return E=_.xm("YtIdbMeta hasAnyMeta other"),_.m(f,_.TM$(function(x){return x.userIdentifier!==void 0&&x.userIdentifier!==E},v),2);
n=f.yieldResult;return f.return(n.length>0)})},U1P=function(v,E){SUO||(SUO=_.wh.addLowPriorityJob(function(){var n,f,x,y,Q;
return _.X(function(e){switch(e.nextAddress){case 1:return _.m(e,_.Du(),2);case 2:n=e.yieldResult;if(!n)return e.return();f=!0;_.vW(e,3);return _.m(e,C6M(v,n,E),5);case 5:x=e.yieldResult;if(!x.length){f=!1;e.jumpTo(6);break}y=x[0];return _.m(e,_.JO(y.actualName),7);case 7:return _.m(e,_.IP(y.actualName,n),6);case 6:_.qp(e,4);break;case 3:Q=_.cW(e),_.wd(Q),f=!1;case 4:_.wh.cancelJob(SUO),SUO=0,f&&U1P(v,E),_.yQ(e)}})}))},qUC=function(){var v;
return _.X(function(E){return E.nextAddress==1?_.m(E,_.Du(),2):(v=E.yieldResult)?E.return(MD6(v)):E.return(!1)})},Js6=function(v){var E=100;
E=E===void 0?500:E;var n,f,x,y,Q,e;return _.X(function(F){return F.nextAddress==1?(n=_.MX("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[n,(0,_.gd)()-2592E6],x=[n,(0,_.gd)()],y=IDBKeyRange.bound(f,x),_.m(F,_.a_E(v),2)):F.nextAddress!=3?(Q=F.yieldResult,e=[],_.m(F,_.dd(Q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(b){e.length=0;return _.Np(b.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:y,direction:"prev"},function(l){if(l.getValue()&&e.length<E)return e.push(l.getValue()),
l.delete().then(function(){return l.continue()})})}),3)):F.return(e)})},Ki6=function(){var v;
return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.Du(),2);v=E.yieldResult;if(!v||!_.cA()&&!_.Z("nwl_init_require_datasync_id_killswitch")||!_.kwQ())return E.jumpTo(0);_.$QE=!0;_.WoN.isNwlInitialized=_.$QE;return _.m(E,_.JKP().awaitInitialization(),0)})},GC=function(v,E){_.yxN[v]=!0;
var n=_.N1();n&&n.publish.apply(n,arguments);_.yxN[v]=!1},I$x=function(){if(_.DDI()&&!d1p){var v=function(n){n=n.data;
if(n.op==="serializedGelBatch"){var f=_.p8Q.get(n.key);f&&(_.X8X(n.serializedBatch,f.client,f.resolve,f.networklessOptions,f.isIsolated,f.useVSSEndpoint,f.dangerousLogToVisitorSession,f.requestsOutstanding),_.p8Q.delete(n.key))}},E=_.VNI();
E&&(E.addEventListener("message",v),E.onerror=function(){_.p8Q.clear()});
d1p=!0}},TC=function(){this.relativeTimeStart_=_.Rr()},YU6=function(v,E){v!=null&&this.append.apply(this,arguments)},hR6=function(){return _.aT("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},AsM=function(v,E,n){n=n===void 0?!1:n;
var f,x,y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:_.oP("SOCS",v,34128E3,"youtube.com",!0);if(_.c2)return x=fetch(E,{method:"POST",mode:_.qA(E),credentials:_.UL(E),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),y=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.qA("/upgrade_visitor_cookie?eom=1"),credentials:_.UL("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.m(F,Promise.all([x,y]).then(function(b){return b[1]}),5);
fetch(E,{method:"POST",mode:_.qA(E),credentials:_.UL(E),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.m(F,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.qA("/upgrade_visitor_cookie?eom=1"),credentials:_.UL("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:f=F.yieldResult;F.jumpTo(3);break;case 5:f=Q=F.yieldResult;case 3:if(!f.ok)throw Error("nf");return _.m(F,f.text(),7);case 7:e=F.yieldResult,
!e.includes('"state_switch":true')&&!n||e.includes("skip_reload_for_test")||window.location.reload(),_.yQ(F)}})},VDK=function(v){return _.X(function(E){return E.nextAddress==1?_.m(E,AsM(v.socsCookie,v.savePreferenceUrl,!0),2):E.return()})},D10=function(v){return _.X(function(E){return E.nextAddress==1?_.m(E,AsM(v.socsCookie,v.savePreferenceUrl),2):E.return()})},gH0=function(v){v=v.xhr.responseText;
if(!_.cI(v,")]}'"))throw new ik;v=JSON.parse(v.substr(4));if((v.type||1)>1)throw new ik;v=v.id;P6U(v);zC=_.VJ(v);HZd(18E5,2);return v},uOp=function(v,E){E=new Nh1(E);
P6U("");zC=_.Oti(E);v>0&&HZd(12E4,v-1);throw E;},HZd=function(v,E){_.Ta(function(){_.Wxd().then(gH0,function(n){return uOp(E,n)}).thenCatch(_.er)},v)},sYM=function(){var v=_.GTU();
if(v!==void 0)return _.nR(v);zC||(zC=_.Wxd().then(gH0).thenCatch(function(E){return uOp(2,E)}));
return zC},jY1=function(){var v=document;
return _.gL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(E){return"on"+E.toLowerCase()in v})},OZ6=function(v){v.addEventListener("click",function(E){var n=E.target;
n&&n.getAttribute("href")&&(n=n.getAttribute("href"),_.Kc(window,n,"_blank"),E.preventDefault(),E.stopImmediatePropagation())})},k2x=function(v){var E,n,f,x=(f=(n=((E=v.mainDownloadsListEntity)!=null?E:{})[_.MOF])==null?void 0:n.refresh)!=null?f:"",y;
v=(y=v.refresh)==null?void 0:y[x];x=v!=null?v:{};return(x==null?0:x.refreshTime)?Number(x==null?void 0:x.refreshTime):0},Wib=function(v,E){var n=_.yN(v);
return E.every(function(f){var x;f=f==null?void 0:(x=f.playbackDataEntity)==null?void 0:x.key;if(!f)return!1;x=_.$s(_.Of(f).entityId,"mainVideoEntity");return!!n[x]})},$1O=function(v){v=_.fC(v.entities);
return _.c8X(v).length},LiM=function(v,E){if(E){var n;
v=(n=_.LH(v.entities,"downloadQualityPickerEntity",E))!=null?n:void 0}else v=void 0;return v},iZC=function(){G21||(_.Ub=_.PHE,G21=new ThR);
return G21},zRp=function(v){var E=document.getElementsByTagName("ytd-enforcement-message-view-model");
E.length===0||getComputedStyle(E[0]).display==="none"?v(0,"p.h_"):v(1,"p.h_")},Rw=function(v){var E,n;
(v=(n=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?void 0:n.url)&&(E=_.ZKI(v));return E},RR_=function(){tp=0;
var v=[_.tC(!0)];Bc&&_.kZ(Bc,"yt-window-resized",v)},tDK=function(){tp||(tp=_.wh.addLowPriorityJob(RR_,200))},v$d=function(){ve=0;
Bhd=_.MM1(document);var v=[Bhd];Bc&&_.kZ(Bc,"yt-window-scrolled",v)},E$K=function(){ve||(ve=_.wh.addLowPriorityJob(v$d,200))},o$M=function(v){v=v===void 0?null:v;
n$K.push(_.VR(window,"resize",tDK));n$K.push(_.VR(window,"scroll",E$K));v&&(Bc=v)},f4p=function(v){_.X(function(E){if(E.nextAddress==1)return _.m(E,v.delete("yt-appshell-assets"),2);
_.yQ(E)})},xwp=function(v){return _.KE((0,_.cWP)(),v)},yo0=function(){var v;
_.X(function(E){return E.nextAddress==1?_.m(E,EX.getInstance(),2):(v=E.yieldResult)?_.m(E,cob(v),0):E.jumpTo(0)})},QgP=function(){var v;
_.X(function(E){return E.nextAddress==1?_.m(E,n8.getInstance(),2):(v=E.yieldResult)?_.m(E,pP6(v),0):E.jumpTo(0)})},XPR=function(v){f4p(v);
yo0();QgP()},e0O=function(v){var E,n;
return _.X(function(f){if(f.nextAddress==1)return _.m(f,_.zzG(v),2);if(E=f.yieldResult){var x;a:{if(E.headers&&(x=E.headers.get("date"))&&(x=Date.parse(x),!isNaN(x))){x=Math.round((0,_.gd)()-x);break a}x=-1}n=x;if(n>-1)return f.return(n)}return f.return(-1)})},Fb3=function(){var v=_.n1.caches,E=_.Sp("IS_SHELL_LOAD"),n,f;
_.X(function(x){if(x.nextAddress==1)return n=-1,E?_.m(x,e0O(v),3):(f=_.xs(),n=Math.round((0,_.gd)()-f),x.jumpTo(2));x.nextAddress!=2&&(n=x.yieldResult);n>=0&&n<2147483648&&_.XD({appInstallDataAgeMs:n});_.yQ(x)})},mw_=function(v){var E=_.qE(_.n1.location.href),n={};
"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(f){var x=E.JSC$7925_queryData_.getValues(f);if(x==null?0:x.length)n[f]=x});
return _.z6(v,new Map(Object.entries(n)))},wP1=function(v){v=v.match(/(.*)::.*::.*/);
if(v!==null)return v[1]},b3K=function(v){if(_.wL9()){var E=Object.keys(window.localStorage);
E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=wP1(n);f===void 0||v.includes(f)||self.localStorage.removeItem(n)}}},l46=function(){if(!_.wL9())return!1;
var v=_.xm(),E=Object.keys(window.localStorage);E=_.p(E);for(var n=E.next();!n.done;n=E.next())if(n=wP1(n.value),n!==void 0&&n!==v)return!0;return!1},sgx=function(v){return _.Hc("NotificationsDisabled",v)},ro_=function(){return Notification.permission!="granted"?Promise.resolve():_.vrU().then(function(v){return v?v.pushManager.getSubscription().then(function(E){if(E)return Promise.resolve();
E={userVisibleOnly:!0,applicationServerKey:_.w1("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return v.pushManager.subscribe(E).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Pi1=function(v){return _.vrU().then(function(E){if(!E||!E.active)return Promise.reject(new _.yc("serviceworker.postMessage",v,E));
try{return E.active.postMessage(v),Promise.resolve()}catch(n){return Promise.reject(n)}})},a46=function(){Pi1({type:"notifications_register",
data:_.MX("ID_TOKEN")})},Ci3=function(){var v={isWide:_.nE.get("wide","0")==="1"},E=_.Ef();
if(E=E.getFlag(165)||E.getFlag(174))v.theme=_.bo(!0);if(_.hGQ()){var n=_.wn()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";v.systemTheme=n}!E&&_.Z("parent_tools_enable_app_settings")&&_.hM(window.location.href).theme!==void 0&&(v.theme=_.bo());if((E=ox)?!_.sh.equals(E,v):v)E={currentValue:v},Z3R&&(E.timeSinceLastSnapshotSecs=Math.round(((0,_.gd)()-Z3R)/1E3)),ox&&(E.previousValue=ox),_.eQ("appSettingsCaptured",E),ox=v,Z3R=(0,_.gd)()},MQx=function(){if(!_.Sp("LOGGED_IN"))return Promise.resolve(!1);
var v=_.$6("service_worker_push_force_notification_prompt_tag");return v?_.NV("PromptTags").then(function(E){if(!E)return!0;var n=[];try{n=JSON.parse(E)}catch(f){return!1}return n&&n.indexOf(v)==-1}):Promise.resolve(!1)},Ssb=function(){var v=_.WG("service_worker_push_prompt_delay_microseconds");
return v?_.NV("PromptTime").then(function(E){return Promise.resolve(Date.now()-v>(E||0))}):Promise.resolve(!0)},Uw3=function(){var v=_.WG("service_worker_push_logged_out_prompt_watches");
return v==-1?Promise.resolve(!1):_.NV("WatchCount").then(function(E){return E>=v})},qsM=function(){var v=_.Dg(document,"yt-push-prompt-modal-bg");
v&&_.fT(v)},Jo1=function(){return _.WG("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.NV("PromptCount").then(function(v){v||(v=0);
return Promise.resolve(v<_.WG("service_worker_push_prompt_cap"))})},Kbx=function(v){return _.Sp("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Sp("LOGGED_IN")&&(v===void 0?0:v)?MQx().then(function(E){if(E)return!0;
E=[Jo1(),Ssb()];_.Sp("LOGGED_IN")||E.push(Uw3());return Promise.all(E).then(function(n){return n.every(function(f){return f})})}):Promise.resolve(!1)},dw0=function(){_.NV("PromptCount").then(function(v){return _.Hc("PromptCount",v+1)}).then(function(){return _.Hc("PromptTime",Date.now())}).then(function(){var v=_.$6("service_worker_push_force_notification_prompt_tag");
if(v)return _.NV("PromptTags").then(function(E){var n=[];if(E)try{n=JSON.parse(E)}catch(f){return!1}n||(n=[]);n.push(v);return _.Hc("PromptTags",JSON.stringify(n))})})},YsK=function(){I4U||qsM()},h0b=function(v){v.style.zIndex=2147483648;
v.style.pointerEvents="auto";v.style.backgroundColor="rgba(0, 0, 0, 0.6)";v.style.width="100%";v.style.height="100vh";v.style.position="absolute";v.style.top="0";v.style.left="0";v.style.border="none"},Ao0=function(){var v=_.Dg(document,"yt-push-prompt-modal-bg");
I4U=_.Z("service_worker_push_prompt_modal_ignore_click");v?h0b(v):(v=_.PM("div",{id:"yt-push-prompt-modal-bg"}),h0b(v),document.body.appendChild(v),_.oiE(document,"click",YsK))},VQb=function(){var v=arguments;
_.Z("service_worker_push_prompt_modal_enable")&&Ao0();return Notification.requestPermission().then(function(E){qsM();var n=document.getElementById("ticker");n&&(n.className=n.classList.remove("show"));if(E=="granted")return ro_().then(function(){sgx(!1);a46();return Promise.resolve(!0)});
E=="denied"&&a46();return Promise.resolve(!1)}).catch(function(){qsM();
return Promise.reject.apply(Promise,_.s8(v))})},DwM=function(v){v=v===void 0?!1:v;
var E=_.gQQ().client;if(E&&E.browserVersion){var n=E.browserVersion,f=E.browserName=="CHROME"&&_.bE(n,"50.0.0")<0;E=E.browserName=="OPERA"&&_.bE(n,"42.0.0")<0;if(f||E)return Promise.resolve()}return _.or_().then(function(x){if(!x)return Promise.resolve();x=ro_().then(function(){return Pi1({type:"notifications_check_registration",data:_.MX("ID_TOKEN")})});
return Notification.permission!="default"?x.catch(function(){}):x.then(function(){return Kbx(v)}).then(function(y){if(y)return dw0(),VQb().then(function(){})}).catch(function(){})})},H3O=function(v){return _.ErR(v)?DwM():Promise.resolve()},g$U=function(v){var E=v.installing||v.waiting;
return v.active||!E?Promise.resolve(v):new Promise(function(n){var f=function(x){x=x.target;if(x.state==="activated"||x.state==="redundant")E.removeEventListener("statechange",f),n(v)};
E.addEventListener("statechange",f)})},NtK=function(){var v=new _.iyF("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.pe(v,{mainAppWeb:_.Pp()});var E=_.qEX;_.Z("service_worker_forward_exp_params")&&(E=mw_(E));try{var n=_.j2I(E).catch(function(){_.Qw(v,"FAILURE");return new Promise(function(){})});
_.Z("service_worker_push_enabled")&&n.then(function(f){_.Qw(v,"SUCCESS");return f}).then(g$U).then(H3O)}catch(f){if(_.Qw(v,"FAILURE"),f.name!=="SecurityError")throw f;
}},uu3=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&NtK()},jgd=function(v,E){var n={};
E&&(n.serializedYpcFamilyCreateLoggingParams=E);_.eQ(v,n);_.Fu()},O3K=function(v,E){var n={};
n.serializedYpcRefundFlowLoggingParams=E;v&&(n.eventType=v);_.eQ("ypcRefundFlowEvent",n);_.Fu()},k1R=function(v){v&&_.k9G("transactionFlowSucceeded",v)},WbK=function(v){v&&_.Pt("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},$w6=function(v){var E,n,f,x,y,Q,e;
_.X(function(F){if(F.nextAddress==1)return _.m(F,_.YzF(),2);if(F.nextAddress!=3){if(!F.yieldResult)return F.return(!1);E=[];return _.m(F,_.gJ.keys(),3)}n=F.yieldResult;f=_.p(n);for(x=f.next();!x.done;x=f.next())y=x.value,Q=_.d6L(y),e=Q.datasyncId,!e||v.includes(e)||E.push(_.gJ.delete(y));return F.return(Promise.all(E).then(function(b){return b.some(function(l){return l})}))})},Lbx=function(){var v,E,n,f,x,y,Q;
return _.X(function(e){if(e.nextAddress==1)return _.m(e,_.YzF(),2);if(e.nextAddress!=3){if(!e.yieldResult)return e.return(!1);v=_.xm("cache contains other");return _.m(e,_.gJ.keys(),3)}E=e.yieldResult;n=_.p(E);for(f=n.next();!f.done;f=n.next())if(x=f.value,y=_.d6L(x),(Q=y.datasyncId)&&Q!==v)return e.return(!0);return e.return(!1)})},G1U=function(){var v=_.P().resolve(_.jp(_.X1i));
return v?v.getCurrentTime():0},TtR=function(){var v,E,n,f,x,y,Q,e,F,b,l,r,a,M;
return _.X(function(U){switch(U.nextAddress){case 1:v={},E=_.U$9(),n=_.p(Object.entries(E)),f=n.next();case 4:if(f.done){U.jumpTo(3);break}x=f.value;y=_.p(x);Q=y.next().value;e=y.next().value;F=Q;b=e;if(!b){U.jumpTo(5);break}return _.m(U,b(),8);case 8:v[F]=U.yieldResult;case 5:f=n.next();U.jumpTo(4);break;case 2:l=_.p(void 0),r=l.next();case 9:if(r.done){U.jumpTo(3);break}a=r.value;M=E[a];if(!M){U.jumpTo(10);break}return _.m(U,M(),13);case 13:v[a]=U.yieldResult;case 10:r=l.next();U.jumpTo(9);break;
case 3:return U.return(v)}})},i3b=function(){var v;
_.X(function(E){if(E.nextAddress==1)return _.m(E,TtR(),2);v=E.yieldResult;return _.m(E,navigator.clipboard.writeText(JSON.stringify(v,null,2)),0)})},z0P=function(v,E){return _.LH(v.entities,"superThanksSelectedTierEntity",E)},R0P=function(v){var E;
return(E=v.sharedUi)==null?void 0:E.currentPageType},tQR=function(v,E){return{popup:{searchSuggestionReportDialog:{searchQuery:v,
title:_.tQ("SBOX_INAPPROPRIATE_TITLE"),suggestions:E,categoryLabel:_.tQ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.tQ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.tQ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.tQ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.tQ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.tQ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.tQ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.tQ("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.tQ("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.tQ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},BtP=function(v){var E,n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T;
return _.X(function(L){switch(L.nextAddress){case 1:return _.m(L,_.zx(),2);case 2:return(E=L.yieldResult)?_.m(L,_.MEQ(E),3):L.return();case 3:n=L.yieldResult;if(!n)return L.return();x=((f=n.offlineVideos)==null?void 0:f.length)||0;Q=((y=n.offlinePlaylists)==null?void 0:y.length)||0;if(x===0&&Q===0)return L.return();e=0;if(n.offlineVideos)for(F=_.p(n.offlineVideos),b=F.next();!b.done;b=F.next())l=b.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===l.videoState&&(e+=1);v.offline_videos_count=x.toString();_.Z("kevlar_log_offline_current_network_type_ks")||
(v.offline_current_network_type=(r=_.ZGI())!=null?r:"CONN_INVALID");_.Z("kevlar_log_updated_time_for_smart_downloads")&&(a=_.dG().getState().entities,M=_.Xq(a),U=k2x(a),v.offline_smart_downloads_last_sync_time_ms=M.toString(),v.offline_smart_downloads_next_sync_time_ms=U.toString());v.offline_videos_playable=e.toString();v.offline_playlists_count=Q.toString();if(!_.Z("woffle_used_state_report")){L.jumpTo(4);break}n.offlineVideos&&(d=n.offlineVideos.reduce(function(xX,t){t.downloadedBytes&&(xX+=Number(t.downloadedBytes));
return xX},0).toString())&&(v.offline_used_disk_space_bytes=d);
if(!((Y=navigator)==null?0:(V=Y.storage)==null?0:V.estimate)){L.jumpTo(4);break}return _.m(L,navigator.storage.estimate(),6);case 6:O=L.yieldResult,v.offline_free_disk_space_bytes=(((T=O)==null?void 0:T.quota)||0).toString();case 4:v.offline_client_state=JSON.stringify(n),_.yQ(L)}})},v01=function(v){v=v.match(/(.*)::.*::.*/);
if(v!==null)return v[1]},E0d=function(v){if(_.M1s()){var E=Object.keys(window.sessionStorage);
E=_.p(E);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=v01(n);f===void 0||v.includes(f)||self.sessionStorage.removeItem(n)}}},n0C=function(){if(!_.M1s())return!1;
var v=_.xm(),E=Object.keys(window.sessionStorage);E=_.p(E);for(var n=E.next();!n.done;n=E.next())if(n=v01(n.value),n!==void 0&&n!==v)return!0;return!1},f8=function(v,E,n){(_.Z("desktop_keyboard_shortcut_usage_log")||n&&_.Z("web_shorts_keyboard_shortcut_usage_log"))&&(E?_.kd.get(v):_.ON.get(v))&&(v=E?_.$d.get(v):_.Wc.get(v))&&_.qx(_.lc(),v)},o0R=function(v,E){E.stack&&(v.stack+="\n"+E.stack);
return v},cKK=function(v){var E=xj(v,"Content-Type");
if(!E)return null;E=E.toLowerCase();if(E.startsWith("application/json"))return E.startsWith("application/json+protobuf")?new fmC:new _.zQ;if(E.startsWith("application/x-protobuf")){v=xj(v,"Content-Transfer-Encoding");if(!v)return new ce;if(v.toLowerCase()=="base64")return new xOR}return null},bVP=function(v,E,n,f){var x=new yKO(function(e,F){return pZx.has(F)?e.sentinel==="gal"&&e.event!==void 0:!1},function(e){e.event?(e=QSC(e.event),e=!e||XZC(f,e)?!0:_.mk(v.lastEvent,yM,2,p8)?!_.mk(e,QM,1,p8)&&
!_.mk(e,yM,2,p8):!_.mk(e,QM,1,p8)&&!_.mk(e,yM,3,p8)):e=!0;
return e});
n=_.z6(v.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",efR(n)]]));if(v.nestedOrigins!==void 0)for(var y=_.p(v.nestedOrigins),Q=y.next();!Q.done;Q=y.next())n=_.z6(n,new Map([["origin",Q.value]]));return Ftd(x,n,E).then(function(e){e=mO0(e.event);if(_.mk(e,QM,1,p8)){var F,b=(F=_.K9(e,QM,1,p8))==null?void 0:_.Ua(F,2);b&&f.JSC$16995_logErrorEvent(wZO(b));F=_.K9(e,QM,1,p8);_.Ua(F,2)===4?(e=_.K9(e,QM,1,p8),e={statusCode:11,statusMessage:_.Sf(e,
3)}):(e=_.K9(e,QM,1,p8),e={statusCode:12,statusMessage:_.Sf(e,3)});return e}_.mk(e,yM,3,p8)?(e=_.K9(e,yM,3,p8),e={statusCode:1,consentLanguageKeys:_.Sf(e,2)}):e={statusCode:1};return e}).catch(function(e){return e.errorCode!==void 0?{statusCode:e.errorCode,
statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},P$O=function(v){var E={};
if(v===void 0||v===null)return E;v.getToken()!==void 0&&lmM(v.getToken())&&lmM(v.getToken()).length>0&&(E.scopes=new Set(lmM(v.getToken())));v.getToken()!==void 0&&sSx(v.getToken())&&sSx(v.getToken()).length>0&&(E.capabilities=new Set(sSx(v.getToken())));_.Sf(v,3)!==void 0&&(E.consistencyKey=_.Sf(v,3));v.getName()!==void 0&&v.getName()!==""&&(E.linkName=v.getName());_.FB(v,rK_,4)&&(v=_.j5(v,rK_,4),v=Object.assign({},_.Sf(v,1)&&{userId:_.Sf(v,1)},_.Sf(v,2)&&{displayName:_.Sf(v,2)},_.Sf(v,3)&&{email:_.Sf(v,
3)},_.Sf(v,5)&&{username:_.Sf(v,5)},_.Sf(v,4)&&{profilePicture:_.Sf(v,4)}),E.profile=v);return E},am_=function(v,E){var n=v.flowParams;
return{serviceId:n.serviceId,sessionId:n.sessionId,currentFlow:v.currentFlow,googleScopesString:E,linkingSessionSerialized:v.session.serialize(),consentLanguageKeys:n.consentLanguageKeys,callerState:v.callerState,dynamicUrlParameters:n.dynamicUrlParameters,partnerConfigMinReadTimestamp:n.partnerConfigMinReadTimestamp}},UOR=function(v){var E=v.googleScopes!==void 0?Array.from(v.googleScopes).join(","):"";
ZVR(am_(v,E));E=C$x(v);return E===null?Promise.resolve(M$b):E.start().then(function(n){var f,x=(f=n.link)==null?void 0:f.consistencyKey;return n.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&x!==void 0?(f=v.flowParams,S23(f.serviceId,f.sessionId,v.googleScopes,x,f.galService,v.config,n)):n})},q2O=function(v){var E=C$x(v);
return E===null?Promise.resolve(Xv({statusCode:7,statusMessage:"Failed to create flow object"},v.callerState)):E.complete().then(function(n){var f,x=(f=n.link)==null?void 0:f.consistencyKey;return n.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&x!==void 0?(f=v.flowParams,S23(f.serviceId,f.sessionId,v.googleScopes,x,f.galService,v.config,n)):Xv(n,v.callerState)},function(n){return Xv({statusCode:12,
statusMessage:"Failed to complete the flow: "+n.message},v.callerState)})},S23=function(v,E,n,f,x,y,Q){return JK6(x,{serviceId:v,
sessionId:E,googleScopes:n,consistencyKey:f}).then(function(){return Q},function(e){return x.deleteLink({serviceId:v,
sessionId:E,accountLinkingEntryPoint:y.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+e.message}},function(F){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+F.message}})})},C$x=function(v){switch(v.currentFlow){case 1:var E=v.flowParams;
v=_.j5(v.session,KtC,1);return eJ.createOAuthFlow(E,v);case 2:case 3:return E=v.flowParams,v=_.j5(v.session,dO6,6),Fv.createStreamlinedFlow(E,v);default:return null}},ImP=function(v,E){v===2&&(v=3);
var n=0;mO.indexOf(v)!==-1&&(n=mO.indexOf(v)+1);for(v=n;v<mO.length;v++)if(E.has(mO[v]))return mO[v]},AK_=function(v){var E=v.serviceId;
var n=v.sessionId;var f=v.config;var x=v.galService;var y=v.capabilities;var Q=v.scopes;var e=v.loginHint;var F=v.callerState;var b=v.consentLanguageKeys;var l=v.linkName;var r=v.dynamicUrlParameters;var a=v.partnerConfigMinReadTimestamp;v=f.dataUsageNoticeConfig?f.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return x.startLinkingSession({serviceId:E,sessionId:n,capabilities:y,scopes:Q,loginHint:e,callerState:F,supportedFlows:Y2U(f.supportedFlows),completionUrl:f.completionUrl,accountLinkingEntryPoint:f.accountLinkingEntryPoint,
consentLanguageKeys:b,dataUsageNoticeConfig:v,linkName:l,dynamicUrlParameters:r,partnerConfigMinReadTimestamp:a}).then(function(M){return new hfO(E,n,f,x,M,void 0,F,b,r,a)})},N6x=function(v,E,n){a:{var f=new V$6;
if(f.storage!==null)try{var x=f.storage.get("SAVED_SESSION");if(x===void 0){var y=null;break a}if(x.serviceId===v){y=x;break a}}catch(Q){}y=null}if(y===null)return Promise.resolve({statusCode:2});DOP(v);f=HVC(y.linkingSessionSerialized);return g0d(new hfO(v,y.sessionId,E,n,f,y.googleScopesString!==""&&y.googleScopesString!==void 0?new Set(y.googleScopesString.split(",")):void 0,y.callerState,y.consentLanguageKeys,y.dynamicUrlParameters,y.partnerConfigMinReadTimestamp),y.currentFlow,y.consentLanguageKeys)},
ZVR=function(v){var E=new V$6;
E.storage!==null&&E.storage.set("SAVED_SESSION",v)},DOP=function(v){var E=new V$6;
if(E.storage!==null){var n=E.storage.get("SAVED_SESSION");n!==void 0&&n.serviceId===v&&E.storage.remove("SAVED_SESSION")}},Y2U=function(v){var E=new Set;
v=_.p(v);for(var n=v.next();!n.done;n=v.next())n=n.value,n!==1&&ucO.has(n)&&E.add(ucO.get(n));return E},Xv=function(v,E){E!==void 0&&(v.callerState=E);
return v},jSb=function(v){switch(v){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Wt_=function(){var v={timeout:5E3};
v=v===void 0?{}:v;return OVC!=null?OVC:OVC=kqK(v)},$Ob=function(){return new Promise(function(v,E){window.gapi.load("client",{callback:v,
onerror:E})})},kqK=function(v){v=v===void 0?{}:v;
var E;return _.X(function(n){if(n.nextAddress==1){if((E=window.gapi)&&E.client&&E.client.load)n=n.return(E);else{var f=_.xR("https://apis.google.com/js/api.js");n=_.m(n,_.MT(f,v),2)}return n}if(n.nextAddress!=3){E=window.gapi;if(!E)throw Error("Xj");return E.client&&E.client.load?n.jumpTo(3):_.m(n,$Ob(),3)}return n.return(E)})},GqK=function(v,E){E=E===void 0?0:E;
var n=v.auth2.getAuthInstance().currentUser.get(),f=n.getAuthResponse(!0);if(f&&f.expires_at-Date.now()<E){if(Ltx.has(v))return Ltx.get(v);E=Promise.resolve(n.reloadAuthResponse()).finally(function(){Ltx.delete(v)});
Ltx.set(v,E);return E}return Promise.resolve()},T61=function(v,E){var n;
return v.client.init({apiKey:E.apiKey,clientId:E.clientId,scope:E.scope,discoveryDocs:E.discoveryDocs,hostedDomain:E.hostedDomain,fetchBasicProfile:(n=E.fetchBasicProfile)!=null?n:!0})},iVp=function(v){if(v.queryParams!=null){var E={},n;
for(n in v.queryParams)v.queryParams[n]!==void 0&&(E[n]=v.queryParams[n]);v.queryParams=E}},t$3=function(v){return new zfR(v,new RfO(v))},EZ6=function(v,E){E=E===void 0?!1:E;
var n=document.createElement("div");v&&(n.style.transform="scaleX(-1)");n.style.backgroundColor=E?"rgba(138,180,248,.24)":"#e8f0fe";n.style.height="4px";n.style.overflow="hidden";n.style.position="absolute";n.style.top="0";n.style.width="100%";n.style.zIndex="1500";n.setAttribute("aria-label","Loading");n.setAttribute("aria-live","polite");v=document.createElement("style");v.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  }";
n.appendChild(v);v=B6d();v.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";v.style.left="-145.166611%";var f=vZK(E);f.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";v.appendChild(f);n.appendChild(v);v=B6d();v.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";v.style.left="-54.888891%";E=vZK(E);E.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
v.appendChild(E);n.appendChild(v);return n},B6d=function(){var v=document.createElement("div");
v.style.height="100%";v.style.position="absolute";v.style.transformOrigin="top left";v.style.width="100%";return v},vZK=function(v){var E=document.createElement("span");
E.style.borderTop=v?"4px solid #669df6":"4px solid #4285f4";E.style.display="inline-block";E.style.position="absolute";E.style.width="100%";return E},nZd=function(v){return v==null?void 0:_.h_X(v).valueOf()},cQd=function(v){var E=document.body,n=!1,f=function(){n||(n=!0,oZd(x,y),setTimeout(function(){E.removeChild(y);
E.removeChild(x)},150))},x=fl6(v,getComputedStyle(E).direction==="rtl",f),y=xAR(f);
oZd(x,y);E.appendChild(y);E.appendChild(x);window.requestAnimationFrame(function(){y.style.opacity="1";x.style.opacity="1";x.style.transform="translate(-50%, -50%) scale(1)";x.children[0].focus()})},fl6=function(v,E,n){var f=document.createElement("div");
f.style.position="fixed";f.style.alignItems="center";f.style.backgroundColor=v?"rgb(32, 33, 36)":"white";f.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";f.style.display="flex";f.style.flexDirection="column";f.style.justifyContent="center";f.style.left="50%";f.style.top="50%";f.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";f.style.zIndex="2002";document.body.clientWidth>=660?(f.style.borderRadius="8px",f.style.minHeight="220px",
f.style.maxHeight="90%",f.style.maxWidth="90%",f.style.minWidth="540px"):(f.style.height="100%",f.style.width="100%");f.setAttribute("aria-label","Error");f.setAttribute("aria-modal","true");f.setAttribute("role","alertdialog");f.addEventListener("keydown",function(y){y.key==="Escape"&&n()});
E=yQ1(v,E,n);f.appendChild(pq0(E));f.appendChild(E);var x=document.createElement("img");x.src=v?"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";x.style.height="72px";x.style.width="72px";x.style.color="#9aa0a6";x.setAttribute("alt","");f.appendChild(x);x=document.createElement("h1");x.textContent="Something went wrong.  Try again.";
x.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";x.style.lineHeight="24px";x.style.fontSize="16px";x.style.textAlign="center";x.style.letterSpacing="0.1px";x.style.color=v?"rgb(232,234,237)":"#3c4043";f.appendChild(x);f.appendChild(pq0(E));return f},yQ1=function(v,E,n){var f=document.createElement("button");
f.style.backgroundColor="transparent";f.style.border="none";f.style.borderRadius="50%";f.style.cursor="pointer";f.style.outline="none";f.style.padding="12px";f.setAttribute("aria-label","Close dialog");f.style.position="absolute";f.style.top="0";E?f.style.right="0":f.style.left="0";f.addEventListener("focus",function(){f.style.backgroundColor=v?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
f.addEventListener("blur",function(){f.style.backgroundColor="transparent"});
f.addEventListener("mouseenter",function(){f.style.backgroundColor=v?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
f.addEventListener("mouseleave",function(){f.style.backgroundColor="transparent"});
f.addEventListener("click",n);f.addEventListener("keydown",function(x){x.key!=="Enter"&&x.key!=="Space"||n()});
E=document.createElement("img");E.src=v?"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";E.style.display="block";E.style.height="24px";E.style.width="24px";E.setAttribute("alt","");f.appendChild(E);return f},pq0=function(v){var E=document.createElement("div");
E.setAttribute("tabindex","0");E.setAttribute("aria-hidden","true");E.addEventListener("focus",function(){return void v.focus()});
return E},xAR=function(v){var E=document.createElement("div");
E.style.backgroundColor="rgba(32,33,36,0.6)";E.style.bottom="0";E.style.left="0";E.style.position="fixed";E.style.right="0";E.style.top="0";E.style.transition=" opacity 150 ms linear";E.style.zIndex="2001";E.addEventListener("click",v);return E},oZd=function(v,E){E.style.opacity="0";
v.style.opacity="0";v.style.transform="translate(-50%, -50%) scale(0.8)"},QTd=function(v,E){v.sandbox&&v.sandbox.add&&(v.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),v.sandbox.add("allow-downloads"));
v.src=E},wK=function(v){Xqp.call(this,v)},bs=function(v,E){E=E===void 0?!1:E;
this.parsedImageUrl_=null;v instanceof el6||(FuK==void 0&&(FuK=new mAU),v=FuK.parse(v.toString(),E));v=this.parsedImageUrl_=v;v.JSC$17226_parsedOptions_==void 0&&((E=v.getOptions())||(E=""),v.JSC$17226_parsedOptions_=(new wqC).parse(E));Xqp.call(this,v.JSC$17226_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;v=this.parsedImageUrl_;E=v.uri_.JSC$7925_port_;this.JSC$17228_domain_=v.uri_.JSC$7925_domain_+(E?":"+E:"");this.JSC$17228_query_=this.parsedImageUrl_.uri_.JSC$7925_queryData_.toString()},
bGO=function(v){this.mode=4;
this.data=v;this.parsedData=[];v=0;for(var E=this.data.length;v<E;v++){var n=[],f=this.data.charCodeAt(v);f>65536?(n[0]=240|(f&1835008)>>>18,n[1]=128|(f&258048)>>>12,n[2]=128|(f&4032)>>>6,n[3]=128|f&63):f>2048?(n[0]=224|(f&61440)>>>12,n[1]=128|(f&4032)>>>6,n[2]=128|f&63):f>128?(n[0]=192|(f&1984)>>>6,n[1]=128|f&63):n[0]=f;this.parsedData.push(n)}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))},ll_=function(v){this.typeNumber=0;
this.errorCorrectLevel=v===void 0?2:v;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},ls=function(v,E){if(v.length==void 0)throw Error("rk`"+v.length+"`"+E);
for(var n=0;n<v.length&&v[n]==0;)n++;this.num=Array(v.length-n+E);for(E=0;E<v.length-n;E++)this.num[E]=v[E+n]},sT3=function(v,E){this.totalCount=v;
this.dataCount=E},rQM=function(){this.buffer=[];
this.length=0},Pc_=function(){var v=!1;
if(_.FXX()){v=_.lE();var E="";_.b1s()?(E=/Windows (?:NT|Phone) ([0-9.]+)/,E=(v=E.exec(v))?v[1]:"0.0"):_.VE()?(E=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,E=(v=E.exec(v))&&v[1].replace(/_/g,".")):_.wIA()?(E=/Mac OS X ([0-9_.]+)/,E=(v=E.exec(v))?v[1].replace(/_/g,"."):"10"):_.mX(_.lE(),"KaiOS")?(E=/(?:KaiOS)\/(\S+)/i,E=(v=E.exec(v))&&v[1]):_.FXX()?(E=/Android\s+([^\);]+)(\)|;)/,E=(v=E.exec(v))&&v[1]):_.lA1()&&(E=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,E=(v=E.exec(v))&&v[1]);v=E||""}return v},UAd=function(v,
E){this.JSC$17251__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(E)for(var n in E)this.JSC$17251__htOption[n]=E[n];this.JSC$17251__htOption.useSVG&&(alC=ZGb);this.JSC$17251__android=Pc_();this.JSC$17251__el=v;this._oQRCode=null;this._oDrawing=new alC(this.JSC$17251__el,this.JSC$17251__htOption);this.JSC$17251__htOption.text&&(v=this.JSC$17251__htOption.text,this._oQRCode=new ll_(this.JSC$17251__htOption.correctLevel),Ccd(this._oQRCode,v),E=this._oQRCode,MK6(E,!1,SL6(E)),this.JSC$17251__el.title=
v,this._oDrawing.draw(this._oQRCode),this.makeImage())},qLx=function(v,E,n,f,x){v.save();
var y=new Path2D;y.roundRect(E,n,f*7,f*7,f*2);y.roundRect(E+f,n+f,f*5,f*5,f*1.3);y.roundRect(E+2*f,n+2*f,f*3,f*3,f);v.clip(y,"evenodd");v.fillStyle=x;v.fillRect(0,0,v.canvas.width,v.canvas.height);v.restore()},sX=function(v,E){if(typeof v!=="function")throw Error("uk");
return _.n1.setTimeout(function(){v()},E)},rK=function(){},Ku6=function(v,E,n,f,x){(new rK).debug("TestLoadImageWithRetries: "+x);
if(f==0)n(!1);else{var y=x||0;f--;JQ1(v,E,function(Q){Q?n(!0):_.n1.setTimeout(function(){Ku6(v,E,n,f,y)},y)})}},JQ1=function(v,E,n){var f=new rK;
f.debug("TestLoadImage: loading "+v);var x=new Image;x.onload=function(){try{f.debug("TestLoadImage: loaded"),dAd(x),n(!0)}catch(y){}};
x.onerror=function(){try{f.debug("TestLoadImage: error"),dAd(x),n(!1)}catch(y){}};
x.onabort=function(){try{f.debug("TestLoadImage: abort"),dAd(x),n(!1)}catch(y){}};
x.ontimeout=function(){try{f.debug("TestLoadImage: timeout"),dAd(x),n(!1)}catch(y){}};
_.n1.setTimeout(function(){if(x.ontimeout)x.ontimeout()},E);
x.src=v},dAd=function(v){v.onload=null;
v.onerror=null;v.onabort=null;v.ontimeout=null},Il6=function(){this.front_=[];
this.back_=[]},YL6=function(v,E){_.QK.call(this);
this.delay_=new _.eC(this.JSC$17377_onTick_,0,this);_.BV(this,this.delay_);this.JSC$17375_interval_=5E3;this.nextTickTime_=0;if(typeof v==="function")E&&(v=(0,_.XV)(v,E));else if(v&&typeof v.handleEvent==="function")v=(0,_.XV)(v.handleEvent,v);else throw Error("Ca");this.JSC$17377_listener_=v},Pe=function(v,E,n,f,x,y,Q,e,F,b,l,r,a,M){n=n===void 0?!1:n;
f=f===void 0?function(){return""}:f;
x=x===void 0?!1:x;y=y===void 0?!1:y;Q=Q===void 0?!1:Q;e=e===void 0?function(){return _.Gn({})}:e;
F=F===void 0?!1:F;l=l===void 0?!1:l;r=r===void 0?!1:r;a=a===void 0?!1:a;M=M===void 0?!1:M;this.JSC$17378_pathPrefix_=v;this.defaultQueryParams_=E;this.pubsub_=new _.vA;this.reconnectTimer_=new YL6(this.safeReconnect_,this);this.JSC$17378_channel_=null;this.JSC$17378_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17378_pendingMessages_=[];this.enableAsyncTest_=n;this.JSC$17378_getXsrfToken_=f;this.useAsyncBrowserChannelHandler_=y;this.getAuthorizationHeader_=
e;this.getAuthorizationHeaderSync_=b;this.enableCachedUpdateAuthorizationHeader_=Q;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Gn();this.enableLoungeTokenRefresh_=x;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=F;this.disableMdxAuthForNonPlaybackMessages_=l;this.disableMdxAuthForAdMessages_=r;this.enableMdxAuthForConnectionOnly_=a;this.disableMdxAuthForShortsMessages_=M;this.JSC$17378_channelOpenedCounter=new hlR;this.JSC$17378_channelClosedCounter=new AQR;this.channelMessageSentCounter=
new VK_;this.JSC$17378_channelMessageReceivedCounter=new DA1;this.JSC$17378_channelErrorCounter=new HG0;this.pendingMapsOnClosedCounter=new gZ_;this.undeliveredMapsOnClosedCounter=new NMM},ax=function(v){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;v=v||document.location.href;var E=Number(_.DU(v)[4]||null)||"";E&&(this.port=":"+E);this.domain=_.HG(v)||"";v=_.lE();v.search("MSIE")>=0&&_.bE(v.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},ZC=function(v){v=v||{};
this.name=v.name||"";this.id=v.id||v.screenId||"";this.token=v.token||v.loungeToken||"";this.uuid=v.uuid||v.dialId||"";this.idType=v.screenIdType||"normal"},uYC=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var E=Math.random()*16|0;
return(v=="x"?E:E&3|8).toString(16)})},jTU=function(v){return _.rA(v,function(E){return{key:E.id,
name:E.name}})},OGC=function(v,E){return _.gL(v,function(n){return n||E?!n!=!E?!1:n.id==E.id:!0})},MW=function(v,E){return _.gL(v,function(n){return C8(n,E)})},Gnx=function(){var v=kn_(),E=Wub();
if($A0()){var n=v,f=_.Z1E(n,E);f<0&&_.aAQ(n,-(f+1),0,E)}v=Lu1(v);if(v.length==0)try{_.sTs("remote_sid")}catch(x){}else try{_.oP("remote_sid",v.join(","),-1)}catch(x){}},kn_=function(){var v=_.vs("yt-remote-connected-devices")||[];
v.sort(_.X1);return v},Lu1=function(v){if(v.length==0)return[];
var E=v[0].indexOf("#"),n=E==-1?v[0]:v[0].substring(0,E);return _.rA(v,function(f,x){return x==0?f:f.substring(n.length)})},TMO=function(v){_.Bg("yt-remote-connected-devices",v,86400)},Wub=function(){if(iG6)return iG6;
var v=_.vs("yt-remote-device-id");v||(v=uYC(),_.Bg("yt-remote-device-id",v,31536E3));for(var E=kn_(),n=1,f=v;_.L1(E,f);)n++,f=v+"#"+n;return iG6=f},zl_=function(){return _.vs("yt-remote-session-browser-channel")},$A0=function(){return _.vs("yt-remote-session-screen-id")},BMb=function(v){v.length>5&&(v=v.slice(v.length-5));
var E=_.rA(RlR(),function(f){return f.loungeToken}),n=_.rA(v,function(f){return f.loungeToken});
_.eGE(n,function(f){return!_.L1(E,f)})&&tKK();
_.Bg("yt-remote-local-screens",v,31536E3)},RlR=function(){return _.vs("yt-remote-local-screens")||[]},tKK=function(){_.Bg("yt-remote-lounge-token-expiration",!0,86400)},SJ=function(v){v||(_.EC("yt-remote-session-screen-id"),_.EC("yt-remote-session-video-id"));
Gnx();v=kn_();_.zs(v,Wub());TMO(v)},Esb=function(){vs6();
return UX?!!UX.get("yt-remote-use-staging-server"):!1},vs6=function(){if(!UX){var v=_.qLQ();
v&&(UX=new _.pE(v))}},xx6=function(v,E,n,f,x){n=n===void 0?function(){return""}:n;
var y=function(){return new Pe(qW(v,"/bc"),E,!1,n,f)};
return _.Z("enable_mdx_web_channel_desktop")?new ns3(function(){return new osR(qW(v,"/wc"),E,n)}):new fI0(y,x)},QQR=function(){var v=ccb;
ycp();Ja.push(v);pR0()},K8=function(v,E){ycp();
var n=XRU(v,String(E));Ja.length==0?eHd(n):(pR0(),_.I5(Ja,function(f){f(n)}))},dK=function(v){K8("CP",v)},ycp=function(){Ja||(Ja=_.JM("yt.mdx.remote.debug.handlers_")||[],_.Vc("yt.mdx.remote.debug.handlers_",Ja))},eHd=function(v){var E=(Ix+1)%50;
Ix=E;F5R[E]=v;mx6||(mx6=E==49)},pR0=function(){var v=Ja;
if(F5R[0]){var E=mx6?Ix:-1,n={};do n={record$jscomp$13:void 0},E=(E+1)%50,n.record$jscomp$13=F5R[E],_.I5(v,function(f){return function(x){x(f.record$jscomp$13)}}(n));
while(E!=Ix);F5R=Array(50);Ix=-1;mx6=!1}},XRU=function(v,E){var n=(Date.now()-wRK)/1E3;
n.toFixed&&(n=n.toFixed(3));var f=[];f.push("[",n+"s","] ");f.push("[","yt.mdx.remote","] ");f.push(v+": "+E,"\n");return f.join("")},Yj=function(v){_.jn.call(this);
this.JSC$17402_logName_=v;this.screens=[]},Aa=function(v){Yj.call(this,"LocalScreenService");
this.JSC$17409_http_=v;this.loungeTokenRefreshTimer_=NaN;ha(this);this.info("Initializing with "+bHR(this.screens))},VM=function(v,E){E=E===void 0?!1:E;
Yj.call(this,"ScreenService");this.JSC$17415_http_=v;this.disableAutomaticScreenCache_=E;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};lI3(this)},DC=function(v,E,n){_.jn.call(this);
this.JSC$17419_logName_=n;this.JSC$17419_screenService_=v;this.receiver_=E;this.screen_=null},YfR=function(v,E,n){n.disableCastApi?He("Cannot initialize because disabled by Mdx config."):sQK()?rcp(v,n)&&(Pn1(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?aIb(E):(window.__onGCastApiAvailable=function(f,x){f?aIb(E):(gK("Failed to load cast API: "+x),ZH3(!1),Pn1(!1),_.EC("yt-remote-cast-available"),_.EC("yt-remote-cast-receiver"),CnP(),E(!1))},n.loadCastApiSetupScript?_.CG("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?M70()>=60&&Sf6():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Ux6():M70()>=89?qfU():(Jc3(),K5M(dxP.map(II3))))):He("Cannot initialize because not running Chrome")},CnP=function(){He("dispose");
var v=NW();v&&v.dispose();_.Vc("yt.mdx.remote.cloudview.instance_",null);hHU(!1);_.pE$(Acb);Acb.length=0},V7U=function(){return!!_.vs("yt-remote-cast-installed")},DxU=function(){var v=_.vs("yt-remote-cast-receiver");
return v?v.friendlyName:null},HH3=function(){He("clearCurrentReceiver");
_.EC("yt-remote-cast-receiver")},gsU=function(){return V7U()?NW()?NW().getCastSession():(gK("getCastSelector: Cast is not initialized."),null):(gK("getCastSelector: Cast API is not installed!"),null)},uDC=function(v,E){Nj0()?NW().setConnectedScreenStatus(v,E):gK("setConnectedScreenStatus called before ready.")},sQK=function(){var v=_.lE().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.yH||v},rcp=function(v,E){var n=!1;
NW()||(v=new us(v,E),v.subscribe("yt-remote-cast2-availability-change",function(f){_.Bg("yt-remote-cast-available",f);GC("yt-remote-cast2-availability-change",f)}),v.subscribe("yt-remote-cast2-receiver-selected",function(f){He("onReceiverSelected: "+f.friendlyName);
_.Bg("yt-remote-cast-receiver",f);GC("yt-remote-cast2-receiver-selected",f)}),v.subscribe("yt-remote-cast2-receiver-resumed",function(f){He("onReceiverResumed: "+f.friendlyName);
_.Bg("yt-remote-cast-receiver",f);GC("yt-remote-cast2-receiver-resumed",f)}),v.subscribe("yt-remote-cast2-session-change",function(f){He("onSessionChange: "+jQ3(f));
f||_.EC("yt-remote-cast-receiver");GC("yt-remote-cast2-session-change",f)}),_.Vc("yt.mdx.remote.cloudview.instance_",v),n=!0);
He("cloudview.createSingleton_: "+n);return n},NW=function(){return _.JM("yt.mdx.remote.cloudview.instance_")},aIb=function(v){ZH3(!0);
Pn1(!1);NW().init(!1,function(E){E?(hHU(!0),_.QUI("yt-remote-cast2-api-ready")):(gK("Failed to initialize cast API."),ZH3(!1),_.EC("yt-remote-cast-available"),_.EC("yt-remote-cast-receiver"),CnP());v(E)})},He=function(v){K8("cloudview",v)},gK=function(v){K8("cloudview",v)},ZH3=function(v){He("setCastInstalled_ "+v);
_.Bg("yt-remote-cast-installed",v)},Nj0=function(){return!!_.JM("yt.mdx.remote.cloudview.apiReady_")},hHU=function(v){He("setApiReady_ "+v);
_.Vc("yt.mdx.remote.cloudview.apiReady_",v)},Pn1=function(v){_.Vc("yt.mdx.remote.cloudview.initializing_",v)},jJ=function(v){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(v)},OHx=function(){var v,E;
return _.X(function(n){if(n.nextAddress==1)return(_.LoX()||_.Z("use_new_nwl"))&&_.O21().isNetworkAvailable()?_.m(n,_.Du(),2):n.return();if(n.nextAddress!=3)return(v=n.yieldResult)?_.m(n,Js6(v),3):n.return();E=n.yieldResult;if(!E.length)return n.return();E.forEach(function(f){var x={timestamp:f.timestamp};f=f.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:f.appShellAssetLoadReport,options:x}:f.clientError?{payloadName:"clientError",payload:f.clientError,options:x}:void 0;f&&
_.eQ(f.payloadName,f.payload,f.options)});
E.length===100&&_.wh.addLowPriorityJob(OHx);_.yQ(n)})},kxd=function(v){if(v.playerResponse){if(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(E){return!(!E||!E.mealbarPromoRenderer)}))&&v.mealbarPromoRenderer)return v.mealbarPromoRenderer}else if(v.response&&(v=v.response)&&v.overlay&&v.overlay.mealbarPromoRenderer)return v.overlay.mealbarPromoRenderer},W51=function(v){if(v.response){var E=v.response;
if(E&&E.overlay&&E.overlay.tooltipRenderer)return E.overlay.tooltipRenderer}if(v.playerResponse&&(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(n){return!(!n||!n.tooltipRenderer)}))&&v.tooltipRenderer))return v.tooltipRenderer},L5U=function(v){if(!$xd&&(v=v||_.MX("ZWIEBACK_PING_URLS"))&&v.length){$xd=!0;
for(var E=0;E<v.length;E++)_.SD(v[E])}},TjO=function(v){if(_.sh.get(_.MX("PLAYER_VARS",{}),"privembed",!1)!="1"){v&&rsx();
try{Gx0().then(function(){},function(){}),_.Ta(TjO,18E5)}catch(E){_.UO(E)}}},iHR=function(){var v=_.Ef(),E=v.getFlag(119),n=window.devicePixelRatio>1;
document.body&&_.A_(document.body,"exp-invert-logo")&&(n&&!_.A_(document.body,"inverted-hdpi")?_.qd(document.body,"inverted-hdpi"):!n&&_.A_(document.body,"inverted-hdpi")&&_.Sg(document.body,"inverted-hdpi"));E!=n&&(_.nH(0,119,n),v.save())},zHR=function(v){return v.filter(function(E){return"ypcGetCartEndpoint"in E||"ypcFixInstrumentEndpoint"in E})},RHR=function(v){return v.filter(function(E){return!_.C(E,_.U2i)})},BjM=function(v){v=_.p(v);
for(var E=v.next(),n={};!E.done;n={setter$jscomp$6:void 0},E=v.next()){var f=E.value;E=f.params;f=f.service;E&&f&&(n.setter$jscomp$6=t7U[f],n.setter$jscomp$6&&E.forEach(function(x){return function(y){var Q=y.key;y=y.value;Q&&y&&(0,x.setter$jscomp$6)(Q,y)}}(n)))}},Et6=function(v,E){var n,f,x,y,Q,e,F;
_.X(function(b){switch(b.nextAddress){case 1:n=_.rn.getInstance();f=_.ki.instance;x=_.Zg.instance;if(!x)return vtO(v,f,E),b.return();_.vW(b,2);v.onLoadingCommand&&f.resolveCommand(v.onLoadingCommand);return _.m(b,n.getCurrentPositionFromGeolocation(),4);case 4:y=b.yieldResult;if(!v.resolveLocationCommand){b.jumpTo(5);break}Q=n.createLocationInfo(y);return _.m(b,_.Mq(x,v.resolveLocationCommand,{locationInfo:Q}),6);case 6:e=b.yieldResult;if(!e||"error"in e&&e.error||e.errorMetadata)return vtO(v,f,E),
b.return();var l;if(e==null?0:(l=e.onResponseReceivedActions)==null?0:l.length){l=_.p(e.onResponseReceivedActions);for(var r=l.next();!r.done;r=l.next())f.resolveCommand(r.value)}(_.C(v.onSuccessCommand,_.dM)||_.C(v.onSuccessCommand,_.ix))&&_.jK(E.hostElement,"yt-navigate",{endpoint:v.onSuccessCommand,reload:!0});case 5:_.qp(b,0);break;case 2:F=_.cW(b);if(F instanceof GeolocationPositionError&&F.code===GeolocationPositionError.PERMISSION_DENIED)return v.onDeniedCommand&&f.resolveCommand(v.onDeniedCommand),
b.return();vtO(v,f,E);_.yQ(b)}})},vtO=function(v,E,n){v.onFailureCommand&&(E.resolveCommand(v.onFailureCommand),_.OL(n.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ot0=function(v,E){var n=_.C(v,_.z$g);
if(n&&E){v=n.videoIds||[n.videoId];var f;E=(f=_.jK(E,"yt-lockup-requested",{videoIds:v}).detail)==null?void 0:f.returnValue;var x;n.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?x=E?E:v.map(function(y){return{videoId:y,navigationEndpoint:n.videoCommand}}):E&&(x=E);
x&&(f=x.map(function(y){var Q=Object,e=Q.assign;var F=y.navigationEndpoint;if(!_.C(F,_.By)){var b=_.C(F,_.dM);if(b){if(delete b.index,delete b.playlistId,b=_.C(F==null?void 0:F.commandMetadata,_.Dl),b==null?0:b.url){var l=b.url;l=_.VT(l,"list");l=_.VT(l,"index");b.url=l}}else F=void 0}return e.call(Q,{},y,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:F})}),ntp(f,n))}},fGU=function(v){var E=_.dr();
if(v=_.C(v,_.R$F))v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&E.clearQueue(),v.closeMiniplayer&&_.P().resolve(_.hf).close(!0)},cCU=function(v){xDb(_.dr(),v)},yCd=function(v){var E;
(v=(E=_.C(v,_.Txl))==null?void 0:E.setVideoIds)&&v.forEach(function(n){_.gxl(_.dr(),n)})},Qbx=function(v){py0(_.dr(),v)},XyM=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(v){return!1}},eo1=function(v,E,n){return{horizontalAlignment:v.x+n.width/2<E.width/2?"west":"east",
verticalAlignment:v.y+n.height/2<E.height/2?"north":"south"}},wyd=function(v,E,n,f,x){x=x===void 0?new _.PV(0,0):x;
return FWb(mDd(v,E,n,f),x)},mDd=function(v,E,n,f){return new _.PV(v==="west"?16:n.width-f.width-16,E==="north"?16:n.height-f.height-16)},bCP=function(v,E){var n=0;
v&&(n+=76);E&&(n+=285);return n},lGx=function(v){var E=["h",
"m","s"],n=_.tG(E);n.reverse();var f={};v=(v.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Q){var e=(Q.match(/[hms]/)||[""])[0];return e?(f[e]=parseInt(Q.match(/\d+/)[0],10),!1):!0});
for(v.reverse();v.length&&n.length;){var x=n.shift();x in f||(f[x]=parseInt(v.shift(),10))}if(v.length||f.s>59||f.m>59||f.h>9)return null;var y="";E.forEach(function(Q){f[Q]&&(y+=""+f[Q]+Q)});
return y||null},sb_=function(v){v=v.data;
return _.w("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.w("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.w(_.UZ,{data:{thumbnails:[{url:v.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.w("div",{class:"profile-badge-view-model-wiz__content"},_.w("div",{class:"profile-badge-view-model-wiz__badge-description"},v.badgeDesc),v.badgeSubtitle?_.w("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},v.badgeSubtitle):null))},rCU=function(v){v=
v.data;
var E=_.Ig();_.Iu(E,v.rendererContext);return _.w("yt-comment-interaction-view-model",{el:E,class:"yt-comment-interaction-view-model-wiz"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":v.onTapA11yLabel,"on:keydown":_.ql(),tabindex:0},_.w("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},v.headerPrefix,' "',v.videoTitle),_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.w("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},v.commentContent),_.w("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.w(_.UZ,{data:{thumbnails:[{url:v.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},aG1=function(v){v=v.data;
return _.w("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},PxU(v.avatar),_.w("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},v.channelName))},CxK=function(v){v=v.data;
var E;return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},v.commentsInteractionTitle)),(E=v.comments)==null?void 0:E.map(function(n){return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},ZCx(n))}))},MNP=function(v){v=v.data;
var E=_.wJ({elementsCommand:v.subscriptionsAccessButtonCommand}),n=_.Ig();_.YXy(n,_.F$(v.subscriptionsAccessButtonCommand));var f=_.ij(function(y){if(E==null?0:E.onclick)E.onclick(y);return!1}),x;
return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("a",{el:n,"on:click":f,class:"yt-profile-info-view-model-wiz__another-header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},v.sharedSubscriptionsTitle),_.w("div",null,ZCx(v.subscriptionsAccessButton)))),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(x=v.sharedSubscriptions)==null?void 0:x.slice(0,5).map(function(y){return _.w("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",ZCx(y))})))},Sb1=function(v){v=v.data;
var E;return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("h2",{class:"yt-profile-info-view-model-wiz__section-title"},v.sharedSubscriptionsTitle)),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(E=v.sharedSubscriptions)==null?void 0:E.slice(0,5).map(function(n){return _.w("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",ZCx(n))})))},UDp=function(v){v=v.data;
return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},[v.profileBadgeInfoYtWide,v.profileBadgeInfoChannelWide].map(function(E){var n,f,x,y,Q;return E?_.w(_.gF,null,_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},E==null?void 0:E.profileSectionTitle),_.w("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},E==null?void 0:(n=E.commentBadge)==
null?void 0:n.commentDesc),(E==null?0:(f=E.commentBadge)==null?0:f.blackHeartDesc)?_.w("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.w("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.w(_.UZ,{data:{thumbnails:[{url:E==null?void 0:(x=E.commentBadge)==null?void 0:x.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},E==null?void 0:(y=
E.commentBadge)==null?void 0:y.blackHeartDesc))),_.w("div",{class:"yt-profile-info-view-model-wiz__badge"},E==null?void 0:(Q=E.badges)==null?void 0:Q.map(function(e){return _.w(sb_,{data:e})}))):null}))},qbO=function(v){v=v.data;
return _.w("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.w(UDp,{data:v}),v.comments?_.w(CxK,{data:v}):null,v.sharedSubscriptionsTitle?v.subscriptionsAccessButtonCommand?_.w(MNP,{data:v}):_.w(Sb1,{data:v}):null)},KWM=function(v){var E=v.data;
v=E?JCd(E.profileIdentityInfo):void 0;E=E?JCd(E.profileInfo):void 0;return _.w("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},v,E)},dD3=function(v,E){var n=_.dr4(E,{},v,!0);
return new Promise(function(f,x){n.listenOnce("n",function(){x(Error("el`"+n.JSC$25676_getErrorDescription()))});
n.listenOnce("l",function(){var y=n.getResponseCode();if(y!==200)x(Error("fl`"+E+"`"+v.type+"`"+v.size+"`"+y));else try{f(JSON.parse(n.getResponseText()).encryptedBlobId)}catch(Q){x(Q)}});
n.run()})},IGx=function(v){return v.substring(v.indexOf(":")+1,v.indexOf(";"))},Ybp=function(v){return new Promise(function(E,n){var f=new FileReader;
f.onloadend=function(){try{var x=new Uint8Array(f.result);x.length<8&&n(void 0);var y=x.subarray(0,8);x="";for(var Q=0;Q<y.length;Q++)x+=("0"+y[Q].toString(16)).substr(-2);x.startsWith("ffd8ff")?E("image/jpeg"):x.startsWith("47494638")?E("image/gif"):x.startsWith("89504e470d0a1a0a")?E("image/png"):x.startsWith("424d")?E("image/bmp"):E(void 0)}catch(e){n(e)}};
f.onerror=n;f.readAsArrayBuffer(v)})},ho3=function(v){return new Promise(function(E,n){var f=new Image;
f.crossOrigin="anonymous";f.onload=function(){var x=document.createElement("canvas");x.width=f.naturalWidth;x.height=f.naturalHeight;var y=x.getContext("2d");if(!y)throw Error("gl");y.drawImage(f,0,0);y=IGx(v);x.toBlob(function(Q){Q?E(Q):n()},y)};
f.src=v})},VNb=function(v,E){var n;
if(((n=_.C(v,_.By))==null?void 0:n.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f;_.jK((f=E.hostElement)!=null?f:E,"yt-shorts-reset");_.KCz(_.P().resolve(_.LQ),v).then(function(y){ACM(y,E,v)})}else{var x;
_.$Z((x=E.hostElement)!=null?x:E,[v]).then(function(y){y&&ACM(y.data,E,v)})}},ACM=function(v,E,n){if(v){var f=_.C(v.replacementEndpoint,_.By);
if(f){v.sequenceContinuation&&(f.sequenceParams=v.sequenceContinuation);var x;_.jK((x=E.hostElement)!=null?x:E,"yt-navigate",{endpoint:v.replacementEndpoint})}else if((v==null?void 0:v.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(v==null?0:v.watchStatus)&&_.C(v.watchStatus,_.hkw)){var y;_.jK((y=E.hostElement)!=null?y:E,"yt-navigate",{endpoint:n})}}},DDb=function(){var v=_.P().resolve(_.lQ),E=R0P(v.getState())||"";
v=_.NKE(v.getState())||"";return{disableCache:E==="ytd-browse"&&v==="home"}},HCp=function(v){if(!v)return!1;
try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENT-INPUT")return!0}catch(E){return!1}return HCp(v.parentNode)},OX=function(v){return v?v.tagName==="A"&&v.href&&v.classList.contains("yt-simple-endpoint"):!1},gt6=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1},NGx=function(v,E,n){if(!v)return null;
var f=OX(v);if(f&&n)return E=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(f&&!n)return document.createTextNode("");if(gt6(v))return n=v.alt,v=v.dataset.emojiId,!v&&E&&(E=_.ye(E,n))&&E.isCustomEmoji&&(v=E.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(n);f=v.cloneNode(!1);for(var x=0;x<v.childNodes.length;++x){var y=NGx(v.childNodes[x],E,n);y&&f.appendChild(y)}return f},kj=function(v){return v?OX(v)?v:kj(v.lastChild):
null},uq0=function(v){return v?OX(v)?v:uq0(v.firstChild):null},jbp=function(v){if(!v)return null;
for(var E=v.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=kj(E))?v=E:v=(v=v.parentNode)?kj(v.previousElementSibling):null;return v},OCK=function(v){if(!v)return null;
for(var E=v.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=uq0(E))?E:OCK(v.parentNode)},keC=function(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();
if(!HCp(n.parentNode))return null;E=E.JSC$9144_getStartOffset();if(n.nodeType===Node.TEXT_NODE){var f=_.Ss(n,OX);if(f){if(v&&E===0||!v&&E===n.length)return f}else{if(v&&E===n.length)return!n||n.nodeName==="BR"||n.nextElementSibling&&_.XH(n.nextElementSibling,"display")==="block"?null:uq0(n.nextElementSibling);if(!v&&E===0)return n?kj(n.previousElementSibling):null}}if(n.nodeType===Node.ELEMENT_NODE)if(v){if(0<=E&&E<n.childNodes.length)return uq0(n.childNodes[E])}else if(0<E&&E<=n.childNodes.length)return kj(n.childNodes[E-
1]);return null},WW_=function(v,E,n){if(!v)return null;
if(v.nodeType===Node.TEXT_NODE)if(n){var f=jbp(v);if(f&&!/^\s+\S/.test(v.wholeText.substr(0,E)))return f}else if((f=OCK(v))&&!/\S\s+/.test(v.wholeText.substr(E,v.wholeText.length)))return f;return v.nodeType===Node.ELEMENT_NODE?n?jbp(v.childNodes[E]):OCK(v.childNodes[E]):WW_(v.parentNode,E,n)},$D1=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var E="";
for(v=v.firstChild;v;v=v.nextSibling)E+=$D1(v);return E;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}},LWp=function(v){v=v.data;
return _.w("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.w("div",null,_.w(_.nh,{text:v.title})),v.subtitle?_.w("div",{class:"ytd-menu-title-renderer__subtitle"},_.w(_.nh,{text:v.subtitle})):null)},Gep=function(v){switch(v){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"}},TGd=function(v){return v.map(function(E){return{settingsRadioOptionRenderer:{title:_.Nx(E.name),
asideText:_.Nx(E.approximateSize),id:Gep(E.format)}}})},zoM=function(v){if(v&&v.length!==0)return v.filter(iC_()).map(function(E){return{settingsRadioOptionRenderer:{title:E.name,
asideText:E.approximateSize,id:Gep(E.formatType)}}})},We=function(v){if(v)return v.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},RoU=function(v){v=new Set(v!=null?v:[]);
if(v.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(v.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(v.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(v.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(v.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},tN6=function(v){var E=v.indexOf("(");
return E!==-1?v.substring(E+1,v.length-1):v},BGK=function(v){switch(v){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},Eyp=function(v,E,n,f,x,y){var Q=_.sh.clone(vyK);
Q.locale=_.MX("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Q.report={description:x||"<empty>"};x=_.MX("SBOX_SETTINGS",{});E=E.join(",");var e=Date.now();v={choice_cc:f,choice_id_cc:n,choices_sc:E,gl:x.REQUEST_DOMAIN,hl:x.REQUEST_LANGUAGE,query:v,time:e};y&&(v.choice_additional_comment_cc=y);_.DrU(Q,v)},nyx=function(v){var E=new Map;
E.set("authuser",_.MX("SESSION_INDEX","0"));return _.z6(v,E)},f_C=function(v){var E;
return _.X(function(n){switch(n.nextAddress){case 1:if(!v||!oyd(v))return n.return(null);E=null;switch(_.MX("INNERTUBE_CLIENT_NAME")){case "WEB":return n.jumpTo(2);case "WEB_REMIX":E=v.getPlayer()}n.jumpTo(3);break;case 2:return _.m(n,v.getPlayerPromise(),4);case 4:E=n.yieldResult;n.jumpTo(3);break;case 3:return n.return(E)}})},oyd=function(v){return["ytd-player",
"ytmusic-player"].includes(String(v.tagName||"").toLowerCase())},xQx=function(v){v=Math.round(v);
return v%2?v-1:v},cV_=function(v){v=Math.round(v);
return v%2===0?v-1:v},yV0=function(v){var E,n,f;
if(v=(E=v.createPlaylistDialogFormSchema)==null?void 0:(n=E.fieldSchemas)==null?void 0:(f=n.title)==null?void 0:f.validationSchema)for(E=[v.syncStep,v.asyncStep].filter(function(x){return x!==void 0}),E=_.p(E),n=E.next();!n.done;n=E.next()){n=n.value.rules;
if(!n)break;n=_.p(n);for(n=n.next();!n.done;n=n.next())return _.C(n.value,_.CYR)}},Qk3=function(v){var E,n,f;
if(v=(E=v.createPlaylistDialogFormSchema)==null?void 0:(n=E.fieldSchemas)==null?void 0:(f=n.visibility)==null?void 0:f.validationSchema)for(E=[v.syncStep,v.asyncStep].filter(function(x){return x!==void 0}),E=_.p(E),n=E.next();!n.done;n=E.next()){n=n.value.rules;
if(!n)break;n=_.p(n);for(f=n.next();!f.done;f=n.next())if(f=_.C(f.value,ppU))return E=void 0,(E=f.translations)==null?void 0:E.visibilityNotValidErrorMessage}},Xpd=function(){var v,E;
return(E=(v=_.P().resolve(_.jp(_.aj)))==null?void 0:v())!=null?E:!1},eVM=function(v,E){a:switch(E){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":E="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:E="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:v,style:E,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},FoC=function(v){var E=21;
if(!v)return E;E+=v.headerTitle?27:0;E+=v.headerTitle&&v.hasHeaderActionHeader?4:0;return E+=v.headerTitle&&v.headerSubtitle?16:0},mQU=function(v){var E=0;
if(!v)return E;E+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton?48:0;E+=v.footerTrailingLabel||v.footerLeadingLabel?30:0;return E+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton||!v.footerTrailingLabel&&!v.footerLeadingLabel?0:12},wp1=function(v){var E=new _.vA,n=v;
return{subscribe:function(f){E.subscribe("changed",f)},
dispatch:function(f,x){var y=n;f==="Touch Start"?n=Object.assign({},y,{isAnimating:!1,initialY:x.event.touches[0].clientY}):f==="Touch Move"?(f=Math.min(x.fullContentWrapperHeight,x.contentHeightMap[x.contentWrapperId]+FoC(x.header)-mQU(x.footer)),n=Object.assign({},y,{currentY:Math.max(x.contentScrollable?-1*(y.initialY-24):0,x.event.touches[0].clientY-y.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,(y.isFullScreen?f:x.contentWrapperHeight)-y.currentY))})):n=f==="Snap To Full Screen"?
Object.assign({},y,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:x.maxHeight}):f==="Snap To Neutral Position"?Object.assign({},y,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):f==="Close Sheet"?Object.assign({},y,{isAnimating:!0,currentY:x.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):y;E.publish("changed",n)}}},b2R=function(v){return _.ij(function(E){v(E);
return!1})},l_b=function(){_.P().resolve(_.eL).closeSheet()},skx=function(v){var E,n,f,x,y,Q,e,F,b,l,r;
return{headerTitle:(E=v.headerTitle)==null?void 0:E.call(v),headerSubtitle:(n=v.headerSubtitle)==null?void 0:n.call(v),headerActionHeader:v.headerActionHeader,footerPrimaryButton:v.footerPrimaryButton,footerSecondaryButton:v.footerSecondaryButton,footerButtonType:(f=v.footerButtonType)==null?void 0:f.call(v),footerLeadingLabel:(x=v.footerLeadingLabel)==null?void 0:x.call(v),footerTrailingLabel:(y=v.footerTrailingLabel)==null?void 0:y.call(v),shouldShowIcons:(Q=v.shouldShowIcons)==null?void 0:Q.call(v),
skipContentClick:(e=v.skipContentClick)==null?void 0:e.call(v),additionalClassName:(F=v.additionalClassName)==null?void 0:F.call(v),onClosedCallback:v.onClosedCallback,focusOnClose:(b=v.focusOnClose)==null?void 0:b.call(v),isDisabled:(l=v.isDisabled)==null?void 0:l.call(v),disabledCommand:(r=v.disabledCommand)==null?void 0:r.call(v),headerFn:v.headerFn,contentFn:v.contentFn,footerFn:v.footerFn,hasHeaderFn:v.hasHeaderFn(),hasContentFn:v.hasContentFn(),hasFooterFn:v.hasFooterFn(),hasFooterPrimaryButton:v.hasFooterPrimaryButton(),
hasFooterSecondaryButton:v.hasFooterSecondaryButton(),hasHeaderActionHeader:v.hasHeaderActionHeader()}},rVx=function(v){switch(v){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""}},Pod=function(v){switch(v){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""}},a_6=function(v){switch(v){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""}},Z2x=function(v,E,n){E.forEach(function(f){_.El(_.P().resolve(_.nK),f)});
_.OL(v,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",n])},UQP=function(v,E,n,f){var x=_.C(n,_.Is).commandLifeCycleConfig;
x&&x.onStartCommand&&_.LG(v,[x.onStartCommand],E);_.gN(E);var y=_.Zg.instance;y&&_.Ch(y,n)?_.Mq(y,n,f).then(function(Q){if(!Q||(Q==null?0:Q.error))return Q=_.C(n,_.Is).serializedTransactionFlowLoggingParams,_.No(E),_.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q));_.No(E);return{data:Q}}).then(function(Q){_.No(E);
CoR(Q.data);var e=Q.data.command;e&&_.LG(v,[e],E);e=MkK(n,Q.data);if(!e){var F=Q.data;Q=!1;if(F&&F.command&&_.C(F.command,_.Tn)){var b;F=((b=_.C(F.command,_.Tn))==null?void 0:b.commands)||[];for(b=0;b<F.length;b++)if(_.C(F[b],_.ps1)){Q=!0;break}}Q||_.yB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!e&&x&&x.onSuccessCommand?_.LG(v,[x.onSuccessCommand],E):e&&x&&x.onFailureCommand&&_.LG(v,[x.onFailureCommand],E)},function(){_.No(E);
x&&x.onFailureCommand&&_.LG(v,[x.onFailureCommand],E);Sn6(n)}):_.mb(Error("xl"),"ERROR")},qnR=function(v,E,n){var f=[E];
n&&f.push(n);return _.$Z(v,f).then(function(x){var y=_.C(E,_.Is).serializedTransactionFlowLoggingParams,Q=x.data,e=MkK(E,Q);e?x=_.nR(new L8(e,y)):CoR(Q);return x},function(){var x=_.C(E,_.Is).serializedTransactionFlowLoggingParams;
Sn6(E);return _.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x))})},MkK=function(v,E){v=_.C(v,_.Is).serializedTransactionFlowLoggingParams;
var n=null;switch(E.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":n="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":n="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":n="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}n?_.Z_(n,v):k1R(v);return n},Sn6=function(v){_.Z_("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.C(v,_.Is).serializedTransactionFlowLoggingParams)},
CoR=function(v){if(v.trackingParams){var E=_.lc(),n=_.bc();
E&&n&&_.aQ(E,n,_.tx(v.trackingParams))}},JVx=function(v,E,n){var f=_.Zg.instance,x=_.z9N(_.MX("YPC_MB_URL")),y=(new _.TaE).init(),Q=_.imL(),e=_.C(n,_.fQ1).languageCode;
e===void 0?_.mb(Error("Ci"),"ERROR"):_.lg([y,x]).then(function(){var F={ctk:payments.business.integration.ClientTokenFactory.createClientToken(e,Q)};f&&_.Ch(f,n)?_.Mq(f,n,F).then(function(b){return{data:b}}).then(function(b){_.jK(E,"yt-service-request-completed",b);
b.code!=="ERROR"&&(b=b.data.command)&&_.LG(v,[b],E)}):_.mb(Error("xl"),"ERROR")})},I_x=function(v,E,n,f){var x=_.Zg.instance;
x&&_.Ch(x,n)?_.Mq(x,n,f).then(function(y){return{data:y}}).then(function(y){KoM(v,E,n,y)},function(){dQb(n)}):(x=_.P().resolve(_.jp(_.n2)))&&x.requestDataForServiceEndpoint(n,f).then(function(y){KoM(v,E,n,y)},function(){dQb(n)})},KoM=function(v,E,n,f){_.jK(E,"yt-service-request-completed",f);
if(f.code&&f.code=="ERROR")dQb(n);else{(f=f.data.commands)&&_.LG(v,f,E);var x;(v=(x=_.C(n,_.Xsi))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&v&&_.Pt("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",v)}},dQb=function(v){var E;
(v=(E=_.C(v,_.Xsi))==null?void 0:E.serializedYpcPauseFlowLoggingParams)&&v&&_.Pt("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},AV3=function(v,E,n){var f=_.Zg.instance;
f&&_.Ch(f,n)?_.Mq(f,n).then(function(x){return{data:x}}).then(function(x){YnK(v,E,n,x)},function(){hVO(n)}):(f=_.P().resolve(_.jp(_.n2)))&&f.requestDataForServiceEndpoint(n).then(function(x){YnK(v,E,n,x)},function(){hVO(n)})},YnK=function(v,E,n,f){_.jK(E,"yt-service-request-completed",f);
f.code&&f.code=="ERROR"?hVO(n):((f=f.data.commands)&&_.LG(v,f,E),(v=_.C(n,_.eb1).serializedYpcResumeFlowLoggingParams)&&v&&_.Pt("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",v))},hVO=function(v){(v=_.C(v,_.eb1).serializedYpcResumeFlowLoggingParams)&&v&&_.Pt("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Vkx=function(v){v=v===void 0?{}:v;
_.P().resolve(_.axP).showFeedbackDialog(v.customProductData,v.feedbackContent,v.onFeedbackSubmitted,v.bucket)},DQK=function(v){v=v===void 0?{}:v;
_.P().resolve(_.axP).showHelpDialog(v.helpContext,v.articleId,v.productData)},H2_=function(){DQK()},gy1=function(){Vkx()},uJ_=function(v,E,n){var f,x,y,Q,e,F,b;
return _.X(function(l){switch(l.nextAddress){case 1:f=_.C(v,NnR);if((x=f)==null?0:x.productId){F={productId:f.productId,bucket:f.bucket,enableAnonymousFeedback:(e=f.enableAnonymousFeedback)!=null?e:!0,allowNonLoggedInFeedback:!0};b={feedbackChoice:n.feedbackChoice};if(!_.Z("web_collect_offline_state")){l.jumpTo(8);break}_.vW(l,9);return _.m(l,BtP(b),11)}Q={bucket:(y=f)==null?void 0:y.bucket};if(!_.Z("web_collect_offline_state")){l.jumpTo(4);break}Q.customProductData={};_.vW(l,5);return _.m(l,BtP(Q.customProductData),
7);case 7:_.qp(l,4);break;case 5:_.cW(l);case 4:Vkx(Q);l.jumpTo(0);break;case 11:_.qp(l,8);break;case 9:_.cW(l);case 8:_.WdG(b),_.kWA("GFEEDBACK",b),f.productId==="5295751"&&(b.client_attestation=Number(_.MX("CATSTAT",0))),f.productId==="5295751"&&(b.client_time=Date.now()/1E3/3600),f.productId==="5295751"&&(b.original_playback_id=_.Lhl||""),_.DrU(F,b),_.yQ(l)}})},jkd=function(v){if(v=_.C(v,_.enG)){var E={bucket:v.bucketIdentifier};
v.additionalDatas&&(E.customProductData={},v.additionalDatas.forEach(function(n){if(n=n.userFeedbackEndpointProductSpecificValueData)E.customProductData[n.key]=n.value}));
Vkx(E)}},O20=function(v){var E=_.qw.getInstance();
var n=_.tQ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var f=_.tQ("DELETE",void 0,"Delete"),x=_.tQ("CANCEL",void 0,"Cancel");n=ysC(n,void 0,f,x,{signal:"DELETE_ALL_DOWNLOADS"});_.UM(E,[{openPopupAction:n}],v)},Wod=function(){return _.X(function(v){return v.nextAddress==1?_.m(v,_.P().resolve(_.j4),2):_.m(v,kwx(),0)})},$QC=function(v){var E,n;
return _.X(function(f){return f.nextAddress==1?(n=(E=_.C(v,_.Z4))==null?void 0:E.targetId)?_.m(f,_.P().resolve(_.j4),3):f.jumpTo(0):_.m(f,_.P().resolve(_.uh).deleteVideo(n),0)})},GwM=function(v){var E,n;
return _.X(function(f){return f.nextAddress==1?(n=(E=_.C(v,_.Z4))==null?void 0:E.targetId)?_.m(f,_.P().resolve(_.j4),3):f.jumpTo(0):_.m(f,LoU(_.P().resolve(_.uh),n),0)})},i2d=function(v){var E,n;
return _.X(function(f){return(n=(E=_.C(v,_.Z4))==null?void 0:E.targetId)?_.m(f,TnP(n),0):f.jumpTo(0)})},RVU=function(){_.Z("kevlar_woffle_refresh_dl_load_killswitch")||zVP()},Bnp=function(){_.Z("kevlar_woffle")&&_.sn.instance&&tk1()},Eib=function(v){var E;
if((E=_.C(v,_.zy))==null||!E.videoId)return!1;vi_(_.P().resolve(_.uh),_.C(v,_.zy),v.clickTrackingParams);return!0},oiC=function(v){var E;
if((E=_.C(v,_.RX))==null||!E.playlistId)return!1;ni0(_.P().resolve(_.uh),_.C(v,_.RX),v.clickTrackingParams);return!0},xuP=function(v){var E=_.C(v,_.e81);
(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||fjd(_.P().resolve(_.uh),_.C(v,_.e81))},yxd=function(v){v=_.C(v,_.Ng1);
var E;(v==null?0:(E=v.actions)==null?0:E.length)&&cxK(v)},XE3=function(v){var E,n;
return _.X(function(f){E=_.C(v,pEO);return(n=E)!=null&&n.localWatchHistoryCommandType?_.m(f,QUb(E),0):f.return()})},eLd=function(v){setTimeout(function(){requestAnimationFrame(v)},80)},F$C=function(v){return Object.entries(v).map(function(E){return E.join(":")}).join(";")},wEK=function(v){var E,n,f;
_.X(function(x){if(x.nextAddress==1)return _.m(x,muO(),2);E=x.yieldResult;n=_.ki.instance;switch(E){case "granted":f=v.getLocationCommand;break;case "denied":f=v.openDeniedDialogAction;break;case "prompt":f=v.openCollectionDialogAction;break;default:f=v.openCollectionDialogAction}f&&n.resolveCommand(f);_.yQ(x)})},muO=function(){var v,E;
return _.X(function(n){if(n.nextAddress==1)return v="prompt",navigator.permissions?_.m(n,navigator.permissions.query({name:"geolocation"}),3):n.jumpTo(2);n.nextAddress!=2&&(E=n.yieldResult,v=E.state);return n.return(v)})},ljd=function(){_.X(function(v){return _.m(v,_.b50(),0)})},sUU=function(){var v,E,n;
return _.X(function(f){if(f.nextAddress==1)return v=_.P().resolve(_.ok),v?_.m(f,_.Mq(v,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.li(Error("Al")),f.return(void 0));if(E=f.yieldResult){if(E.errorMetadata)return _.li(Error("Bl`"+E.errorMetadata.status+"`"+E.error)),f.return(void 0);n=E.datasyncIds;_.r0w=n.length;return f.return(n)}_.li(Error("Cl"));return f.return(void 0)})},rxp=function(){sUU().then(function(v){v&&(U1P(v),$w6(v),b3K(v),E0d(v))})},PzU=function(v){_.wh.addLowPriorityJob(function(){var E,
n,f,x,y;
return _.X(function(Q){switch(Q.nextAddress){case 1:if(_.Z("ytidb_clear_optimizations_killswitch")){Q.jumpTo(2);break}E=_.xm("clear");if(E.startsWith("V")&&E.endsWith("||")){var e=[E];U1P(e);$w6(e);b3K(e);E0d(e);return Q.return()}n=l46();f=n0C();return _.m(Q,Lbx(),3);case 3:return x=Q.yieldResult,_.m(Q,qUC(),4);case 4:if(y=Q.yieldResult,!(n||f||x||y))return Q.return();case 2:v.isNetworkAvailable()?rxp():v.listenOnce("publicytnetworkstatus-online",rxp),_.yQ(Q)}})})},GJ=function(v){v={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.qD(v)}}}};_.ki.instance&&_.ki.instance.resolveCommand(v)},ajK=function(v){if(v){var E=_.Tl();
_.Rs(E,3854,void 0,{layer:0,parentLayer:4});switch(v){case 1:var n=238708;break;case 2:n=238715;break;case 3:n=238710;break;case 6:n=238709}n&&(v=_.Gl(E,{veType:n}))&&_.vg(E,v)}},Z5O=function(v){if(v){var E=_.Tl();
_.Rs(E,3854,void 0,{layer:0,parentLayer:4});switch(v){case 1:var n=238714;break;case 2:n=238711;break;case 8:n=238709;break;case 7:n=238713;break;case 3:case 4:case 5:n=238712}n&&(v=_.Gl(E,{veType:n}))&&_.vg(E,v)}},Czb=function(v){switch(v.latencyType){case 0:_.e7("consent_primitive_flow");
_.FD("cpit",v.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.FD("cpist",v.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.FD("cprtif",v.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.FD("cprtli",v.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.FD("cprt",v.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.FD("cpdt",v.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.FD("cpjct",v.timestampEpochMillis,"consent_primitive_flow")}},
hLb=function(v,E){var n,f,x,y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T,L,xX;
return _.X(function(t){switch(t.nextAddress){case 1:_.vW(t,2);(f=(n=_.C(v,MIC))==null?void 0:n.serializedConsentRequest)||(f=(x=_.C(v,Se1))==null?void 0:x.serializedConsentRequest);f&&(y=Uud(_.w1(f)));if(y===void 0)return t.return();Q=qeP(y);Q.latencyCallback=Czb;E&&Jx3(Q,function(){E.then(function(QE){QE.pauseVideo();(new K$6).increment()})});
return((e=_.C(v,MIC))==null?void 0:e.consentAction)==="CONSENT_ACTION_PREWARM"||((F=_.C(v,Se1))==null?void 0:F.consentAction)==="CONSENT_ACTION_PREWARM"?_.m(t,duC(Q),5):_.m(t,IjR(Q),6);case 6:b=t.yieldResult;l=_.lN(b,TJ);if(l===1){if(((r=_.K9(b,is,1,TJ))==null?void 0:_.Ua(r,1))===1||((a=_.K9(b,is,1,TJ))==null?void 0:_.Ua(a,1))===2||((M=_.K9(b,is,1,TJ))==null?void 0:_.Ua(M,1))===3)_.C(v,Se1)?GJ(_.tQ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
GJ(_.tQ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));ajK((U=_.K9(b,is,1,TJ))==null?void 0:_.Ua(U,1),_.kr(b,YeR,3,_.WV()))}else l===2?(((d=zJ(b))==null?void 0:_.Ua(d,1))===5?_.C(v,Se1)?GJ(_.tQ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):GJ(_.tQ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((Y=zJ(b))==null?void 0:_.Ua(Y,1))===1||((V=zJ(b))==null?void 0:_.Ua(V,1))===4?GJ(_.tQ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((O=zJ(b))==null?void 0:_.Ua(O,1))===7&&((T=y)==null?void 0:(L=_.j5(T,Rx,4))==null?void 0:_.Ua(L,4))!==1&&GJ(_.tQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Z5O((xX=zJ(b))==null?void 0:_.Ua(xX,1))):GJ(_.tQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));t.jumpTo(5);break;case 5:_.qp(t,0);break;case 2:_.cW(t),GJ(_.tQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.yQ(t)}})},VI6=function(){if(!AxM.has("Worker")){AxM.set("Worker",
!0);
var v={api:"BROWSER_API_WEB_WORKER"};v.available="Worker"in window?!0:!1;_.eQ("apiTest",v)}},Dud=function(v){return typeof v==="undefined"?"-1":String(Math.ceil(v/1048576))},uyP=function(v,E){H5C(new gi0(_.C(E,NqO).addToken,_.C(E,NqO).commonToken)).then(function(){_.jK(v,"yt-invoke-instrument-manager-action-completed")},function(n){_.jK(v,"yt-invoke-instrument-manager-action-error",n)})},jUM=function(v){return _.Am(v)},O50=function(v){var E=1;
v=v.split(":");for(var n=[];E>0&&v.length;)n.push(v.shift()),E--;v.length&&n.push(v.join(":"));return n},kl3=function(v,E){E=v.aspectRatio()<=E.aspectRatio()?E.width/v.width:E.height/v.height;
v.scale(E)},W$6=function(v,E){E=v.aspectRatio()>E.aspectRatio()?E.width/v.width:E.height/v.height;
return v.scale(E)},$ud=function(v){var E=new _.Eo;
return _.dO(E,11,v)},L$p=function(v){var E={};
v=v.getAllResponseHeaders().split("\r\n");for(var n=0;n<v.length;n++)if(!_.XN(v[n])){var f=O50(v[n]),x=f[0];f=f[1];if(typeof f==="string"){f=f.trim();var y=E[x]||[];E[x]=y;y.push(f)}}return _.sh.map(E,function(Q){return Q.join(", ")})},xj=function(v,E){return v.JSC$7688_xhr_?v.JSC$7688_xhr_.getResponseHeader(E):null},ta=function(v,E,n){Array.isArray(n)||(n=[String(n)]);
_.PaX(v.JSC$7925_queryData_,E,n);return v},tk1=function(){var v=_.sn.instance;
_.X(function(E){return v.deferredInstallPrompt?_.m(E,v.deferredInstallPrompt.prompt(),0):E.jumpTo(0)})},Gl0=function(v,E,n){if(_.E1(v))_.I5(v,E,n);
else for(v=_.qso(v);;){var f=v.next();if(f.done)break;E.call(n,f.value,void 0,v)}},Tqb={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}"]},WGR,$dp,LG1,GGC,TJ3,iRb,zYR,RYx,tgd,TnP,LoU,kwx,BJ0,v_1,E_M,n_6,o_d,ni0,vi_,fgb,xqR,cqC,zVP,fjd,yq1,cxK,pib,QUb,QXU,XiR,eS6,Fc3,mqp,wip,bh1,fb,lg3,sXx,
xDb,ntp,rqb,xP,cQ,yb,pb,PGC,agp,Zh0,CG3,Mwd,Sd_,UqR,qdO,Jqb,Kcd;Tqb={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 i5d=function(v,E){var n=[];Gl0(E,function(f){try{var x=_.O2.prototype.getWrapper.call(this,f,!0)}catch(y){if(y=="Storage: Invalid value was encountered")return;throw y;}x===void 0?n.push(f):_.UwS(x)&&n.push(f)},v);
return n},zLb=function(v,E){i5d(v,E).forEach(function(n){_.O2.prototype.remove.call(this,n)},v)},RL0=function(v){var E=_.V$;
E._minimumZ=Math.max(E._minimumZ,v)},tI0=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Bq_=function(v,E){_.uU(v.vY);v.vY=E},vzC=function(v,E,n,f){v.setState(5);
var x=!!v.yvX&&tI0.includes(_.HG(v.yvX)||"");try{var y=new _.Uo({program:E,globalName:n,n0:{disable:!_.Z("att_web_record_metrics")||!_.Z("att_skip_metrics_for_cookieless_domains_ks")&&x,d0:"aGIf"}});y.dGl.then(function(){v.setState(6);f&&f(E)});
Bq_(v,y)}catch(Q){v.setState(7),Q instanceof Error&&_.li(Q)}},EzR=function(v,E,n,f,x,y){var Q=Q===void 0?"trayride":Q;
n?(v.setState(2),_.CG(n,function(){if(window[Q])vzC(v,f,Q,x);else{v.setState(3);var e=_.Q_A(n),F=document.getElementById(e);F&&(_.eLN(e),F.parentNode.removeChild(F));_.li(new _.yc("BL:ULB",n))}},y)):E?(y=_.oc("SCRIPT"),E instanceof _.IC?_.AA(y,E):y.textContent=E,y.nonce=_.dV(document),document.head.appendChild(y),document.head.removeChild(y),window[Q]?vzC(v,f,Q,x):(v.setState(4),_.li(new _.yc("BL:ULBJ")))):_.li(new _.yc("BL:ULV"))},nz3=function(){this.state=1;
this.vY=null;this.yvX=void 0};
_.c=nz3.prototype;_.c.initialize=function(v,E,n,f){this.yvX=f;if(v.program){var x;f=(x=v.interpreterUrl)!=null?x:null;if(v.interpreterSafeScript)x=_.IGQ(v.interpreterSafeScript);else{var y;x=(y=v.interpreterScript)!=null?y:null}v.interpreterSafeUrl&&(f=_.b6(v.interpreterSafeUrl).toString());EzR(this,x,f,v.program,E,n)}else _.li(Error("lf"))};
_.c.isInitialized=function(){return!!this.vY};
_.c.getState=function(){return this.state};
_.c.isLoading=function(){return this.state===2};
_.c.invoke=function(v){v=v===void 0?{}:v;var E;this.vY?E=_.pV4(this.vY,{wO:v}):E=null;return E};
_.c.dispose=function(){Bq_(this,null);this.setState(8)};
_.c.setState=function(v){this.state=v};
var ozK=function(v,E){return v.vY.snapshot(E)},faR=function(v,E){var n=_.WG("botguard_async_snapshot_timeout_ms",3E3);
E=E===void 0?{}:E;n=n===void 0?3E3:n;return v.vY?new Promise(function(f,x){var y=!1,Q=_.wh.addJob(function(){y=!0;x(Error("mf"))},1,n);
v.vY?ozK(v,{wO:E}).then(function(e){_.wh.cancelJob(Q);y||f(e)}).catch(function(e){_.wh.cancelJob(Q);
y||x(e)}):(_.wh.cancelJob(Q),f(null))}):Promise.resolve(null)},xdd=["att/log"],cZU;
cZU={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var yZd={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},p8x=function(v,E){return _.BR(v,{mode:"readwrite",enableRetries:!0},function(n){return _.$7F(n,E,"settingEntity")})},Qjb=function(v,E,n){return _.BR(v,{mode:"readonly",
enableRetries:!0},function(f){return _.VL4(f,E,n)})},X8p=function(v){if(!v.storage)return!1;
a:{if(v.storage){try{var E=v.storage.get("TLPQtimestamp")}catch(n){}v=Number(E);if(!isNaN(v))break a}v=void 0}return v?Date.now()-v<864E5:!1},eYP=function(v){if(v.storage){try{var E=v.storage.get("TLPQindex")}catch(n){}v=Number(E);
if(!isNaN(v))return v}},FGC=function(v,E){v.queueProxy&&E.forEach(function(n){if(n.videoId&&n.trackingParams&&v.queueProxy instanceof _.ZD){var f=_.lc();
v.queueProxy.attributionData.set(n.videoId,{enqueueingVe:_.tx(n.trackingParams).getAsJson(),enqueueingCsn:f?f:void 0,clientEnqueueingTimeMs:Math.floor((0,_.gd)()).toString()})}})},mdx=function(v){var E=_.X$w(v);
E!=v.currentSnapState_&&(v.currentSnapState_=E,v.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Be=function(v){this.JSC$10859_networkManager_=v;
this.partCallbacks_=[]};
Be.prototype.getCacheKeyForEndpoint=function(v){return _.qp$(v,!1)};
Be.prototype.onPartsCallback_=function(v){this.partCallbacks_.forEach(function(E){v&&E(v)})};
var vQ=function(v,E,n){Be.call(this,v);this.player_=E;this.autoplayData_=n};
_.S(vQ,Be);vQ.prototype.getCacheKeyForEndpoint=function(v){return _.qp$(v,!!this.autoplayData_)};
vQ.prototype.getTempData=function(v,E){E=E.timeBeforeNextVideo;v={itct:v.clickTrackingParams,lact:_.gh(),pbis:E,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(v.autonav=1);return v};
vQ.prototype.getXhrParams=function(v){return Object.assign({pbj:"prefetch"},v)};
vQ.prototype.getParams=function(v){v={frags:v.fragmentsRequested.join(",")};_.Z("kevlar_droppable_prefetchable_requests")&&(v.prefetch=1);return v};
var w8O=function(v){v.playerEvents_.forEach(function(E){v.player.removeEventListener(E.eventName,E.callback)});
v.playerEvents_.length=0},E3=function(v,E,n){this.player=v;
this.JSC$10869_taskManager=E;this.prefetchDelay=n;this.completionResolver_=null;this.playerEvents_=[]};
E3.prototype.start=function(){var v=this;this.completionResolver_=_.Sw();_.so(this.completionResolver_.promise,function(){w8O(v);v.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var bRx=function(v,E,n){v.player.addEventListener(E,n);v.playerEvents_.push({eventName:E,callback:n})},laU={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},sjU={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},rZd=function(v,E,n){E3.call(this,v,E,n);this.cueId_="playbackTrigger-"+Math.random()};
_.S(rZd,E3);
rZd.prototype.prepareTrigger=function(v){var E=this,n=this.player.getDuration(),f=this.player.getVideoData(),x=f.isLive&&f.hasProgressBarBoundaries;if(x&&f.progressBarEndPositionUtcTimeMillis){var y=f.progressBarEndPositionUtcTimeMillis/1E3;isNaN(y)||(n=y)}var Q=0;this.prefetchDelay>=0?x?f.progressBarStartPositionUtcTimeMillis&&(f=f.progressBarStartPositionUtcTimeMillis/1E3,isNaN(f)||(Q=f+this.prefetchDelay)):Q=this.prefetchDelay:Q=n+this.prefetchDelay;x?this.player.addUtcCueRange(this.cueId_,Q,n):
this.player.addCueRange(this.cueId_,Q,n);_.so(v.promise,function(){E.player.removeCueRange(E.cueId_)});
bRx(this,"onCueRangeEnter",function(e){e==E.cueId_&&v.resolve(n-Q)})};
var PjM=function(v,E){v.fragmentConfiguration_[E].requiredKeys.every(function(n){return!!v.prefetchedData_[n]})&&(v.validatedFragments_.push(E),E=v.missingFragments_.indexOf(E),E!==-1&&v.missingFragments_.splice(E,1))},aaC=function(v){v.prefetchedFragments_.forEach(function(E){PjM(v,E)})},ZRC=function(v,E,n){this.pageFragments_=v;
this.prefetchedFragments_=E;this.fragmentConfiguration_=sjU;this.prefetchedData_=n;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;aaC(this)},Cjp=function(){},MgK=function(v){this.JSC$10883_playlistManager_=v};
_.S(MgK,Cjp);MgK.prototype.getPrefetchEndpoint=function(){return this.JSC$10883_playlistManager_.getAutoplayEndpoint()};
var SZx=function(v){this.autonavEndpoints_=v};
_.S(SZx,Cjp);SZx.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var UdO=function(v,E,n,f,x){this.autonavEndpoints=v;this.foregroundTrigger=E;this.backgroundTrigger=n;this.pageType=f;this.isInPlaylist=x},qZ0=function(v,E){if(v.webPrefetchData&&v.webPrefetchData.navigationEndpoints&&v.webPrefetchData.navigationEndpoints.length){v=v.webPrefetchData.navigationEndpoints;
var n=_.C(v[0],_.dM);if(n.watchEndpointSupportedPrefetchConfig&&n.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var f=n.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;n=f.playbackRelativeSecondsPrefetchCondition;n=typeof n==="number"&&Math.abs(n)<E.videoDuration?n:void 0;f=f.countdownUiRelativeSecondsPrefetchCondition;f=typeof f!=="number"||_.Z("prefetch_job_config_cleanup_ks")&&E.inPlaylist?void 0:f;if(typeof f==="number")return new UdO(v,E.makeUpNextTrigger(f),E.makePlaybackTrigger(f),
"watch",E.inPlaylist);if(typeof n==="number")return new UdO(v,E.makePlaybackTrigger(n),null,"watch",E.inPlaylist)}}},JZ_=function(v){return v.prefetchJobConfig_.backgroundTrigger?_.qX(_.pN1)()==0?v.prefetchJobConfig_.backgroundTrigger:v.prefetchJobConfig_.foregroundTrigger:v.prefetchJobConfig_.foregroundTrigger},KG0=function(v){_.FX(document,"visibilitychange",v.onVisibilityChange_,!1,v)},nb=function(v){Be.call(this,v)};
_.S(nb,Be);nb.prototype.getCacheKeyForEndpoint=function(v){return Be.prototype.getCacheKeyForEndpoint.call(this,v)};
nb.prototype.getTempData=function(){return{}};
nb.prototype.getXhrParams=function(v){return v};
nb.prototype.getParams=function(){return{}};
var ddU=function(v,E,n){var f=v.prefetchDelay*1E3;if(Math.abs(f)>E)n.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var x=f,y=E-f;f<0&&(x=E+f,y=Math.abs(f));var Q=v.JSC$10869_taskManager.addJob(function(){n.resolve(y/1E3)},10,x);
n.promise.thenCatch(function(){v.JSC$10869_taskManager.cancelJob(Q)})}},Iap=function(v,E,n){E3.call(this,v,E,n)};
_.S(Iap,E3);Iap.prototype.prepareTrigger=function(v){var E=this;bRx(this,"onAutonavCoundownStarted",function(n){ddU(E,n,v)})};
var YZ1=function(v){v.pendingPrefetchJob_&&(v.pendingPrefetchJob_.cancel(),v.pendingPrefetchJob_=null)},hYb=function(v,E,n){if(!v.triggeredTargets.has(E)){var f=_.TI1(v,E);
f.action=n;_.LC1(v,E,f)}},AZb=function(v){_.gfU();
_.aX$("cpt")&&_.li(Error("kh"));_.n1.requestAnimationFrame(function(){_.n1.setTimeout(function(){_.FD("cpt");var E=_.bn("vpl"),n=_.bn("cpt");E&&n&&_.FD("ol",Math.max(E,n))})});
try{_.FD("fr_s"),v()}catch(E){_.mb(E)}_.n1.requestAnimationFrame(function(){_.FD("bcp")})},VgP=function(v,E){v.serviceEndpointHandlers.push(E)},DdU=function(v,E){E=v.pendingPages_.indexOf(E);
E>-1&&v.pendingPages_.splice(E,1)},HR_=function(v,E){var n=_.txP.indexOf(E);
n>-1&&_.txP.splice(n,1);v.targetPage_==E?(v.abort(),_.v9w(v)):DdU(v,E)},gzK=function(v,E,n,f){E={challenge:E};
n&&(E.webResponse=n);return _.Ms(v.innertubeTransportService,E,_.Yt(xdd),f)},NJR=function(v,E,n){if(!E.challenge)throw Error("mi");
if(E.botguardData&&E.botguardData.program){var f=new nz3;f.initialize(E.botguardData,function(){faR(f,{atr_challenge:E.challenge}).then(function(x){if(!x)throw Error("ni");return gzK(v,E.challenge,x,n)}).catch(function(x){_.li(x);
return gzK(v,E.challenge,void 0,n)})},void 0)}else gzK(v,E.challenge,void 0,n)},u$_=function(v,E,n){var f={};
E.ids&&(f.ids=[].concat(_.s8(E.ids)));E.engagementType&&(f.engagementType=E.engagementType);return _.Ms(v.innertubeTransportService,f,_.Yt(_.RbX),n).then(function(x){if(!x)throw new _.yc("GetAttestationChallenge returned falsy");NJR(v,x,n)}).thenCatch(function(x){_.mb(x)})},jjC=function(v,E,n){return new _.z2(function(f,x){var y;
return _.X(function(Q){if(Q.nextAddress==1){var e=E.engagementType,F=E.ids,b={};F=_.p(F!=null?F:[]);for(var l=F.next();!l.done;l=F.next())l=l.value,l.encryptedVideoId?b.encryptedVideoId=l.encryptedVideoId:l.externalChannelId?b.externalChannelId=l.externalChannelId:l.commentId?b.commentId=l.commentId:l.externalOwnerId?b.externalOwnerId=l.externalOwnerId:l.artistId?b.artistId=l.artistId:l.playlistId?b.playlistId=l.playlistId:l.externalPostId?b.externalPostId=l.externalPostId:l.shareId&&(b.shareId=l.shareId);
return _.m(Q,cs_(e,b),2)}y=Q.yieldResult;if(!y.challenge)return _.li(Error("oi")),u$_(v,E,n).then(f,x),Q.return();e=y;b={challenge:e.challenge};b.webResponse=e.webResponse;b.engagementType=E.engagementType;b.ids=E.ids;_.Ms(v.innertubeTransportService,b,_.Yt(xdd),n).then(f,x);_.yQ(Q)})})},py0=function(v,E){var n,f,x,y;
_.X(function(Q){if(Q.nextAddress==1){n=_.C(E,_.Bxo);if(!(n&&n.listId&&v.response&&v.response.playingVideoId)||v.listId!==n.listId)return Q.return();v.index===void 0&&(v.index=0);return _.m(Q,_.bwF(v.JSC$10695_playlistNetworkManager,n.listId,v.index,v.response.playingVideoId),2)}f=Q.yieldResult;if(!f)return Q.return();x=f.playlistId;y=f.playlistPanelRenderer;v.setPlaylistData(x,y,f.autoplayRenderer);_.yQ(Q)})},ORM=function(v,E,n){var f=v.getParams(n),x=_.WGG(E,f),y=v.getTempData(E,n);
y.endpoint=JSON.stringify(E);_.Z("enable_unknown_lact_fix_on_html5")&&(_.P().resolve(_.ph),y.lact=_.gh());var Q={headers:{"X-YouTube-STS":_.MX("STS"),"x-youtube-csoc":1}};_.AQ(x,y);return new _.z2(function(e,F){var b=v.getXhrParams(f),l;_.Z("kevlar_cache_on_ttl_player")&&(l=_.TB.instance);l&&_.SAz(l,E)?_.ha1(l,E,y,window.location.href).then(function(r){r?e(r):F()},F):_.zQg(v.JSC$10859_networkManager_,E,b,v.onPartsCallback_.bind(v),Q).then(function(r){r?e(r):F()},F)})},kGd=function(v,E){v.triggerPromise_=
E.start();
v.triggerPromise_.then(function(n){var f=v.prefetchEndpointProvider_.getPrefetchEndpoint();if(f){var x=laU[v.prefetchJobConfig_.pageType].prefetchedFragments;v.prefetchRequestPromise_=ORM(v.JSC$10895_networkPrefetchRequest_,f,{fragmentsRequested:x,timeBeforeNextVideo:n});v.prefetchResponseCacheKey_=v.JSC$10895_networkPrefetchRequest_.getCacheKeyForEndpoint(f);KG0(v);v.prefetchRequestPromise_.then(function(y){v.storePrefetchedDataCallback_(v.prefetchResponseCacheKey_,y);if(_.Z("web_prefetch_preload_video")&&
x.length===1&&x[0]==="pl"&&y&&!y.playerAds&&!y.adPlacements){var Q=_.C(f,_.By),e=Q!=null,F={raw_player_response:y,watch_endpoint:Q};(y=_.P().resolve(e?_.tLX:_.Nq))&&f&&y.then(function(b){e&&_.Z("web_queue_preload_video")?(F.prefer_gapless=!0,b.queueNextVideo(F)):b.preloadVideoByPlayerVars(F)})}})}})},o8=function(v,E,n,f){this.prefetchEndpointProvider_=v;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=E;this.prefetchJobConfig_=n;this.JSC$10895_networkPrefetchRequest_=f;this.prefetchResponseCacheKey_=null};
o8.prototype.enqueue=function(){this.triggerPromise_||(kGd(this,JZ_(this)),_.v8(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
o8.prototype.resolve=function(){this.cancel()};
o8.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.");KG0(this)};
o8.prototype.onVisibilityChange_=function(){var v=this;_.qX(_.pN1)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){v.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||kGd(this,JZ_(this))};
WGR=function(v,E,n,f,x){E&&(E==null?0:E.videoId)&&n&&n.entries&&_.Z("kevlar_enable_shorts_prefetch_in_sequence")&&(YZ1(v),E=n.entries.map(function(y){var Q;return(Q=_.C(y.command,_.By))==null?void 0:Q.videoId}).indexOf(E.videoId),n=n.entries[E+1],n!=null&&n.command&&!_.C(n==null?void 0:n.command,_.SO)&&(f=new UdO([n.command],new rZd(f,_.wh,1),null,"shorts",!1),v.pendingPrefetchJob_=new o8(new SZx(f.autonavEndpoints),function(){return!1},f,new nb(x)),v.pendingPrefetchJob_.enqueue()))};
$dp=function(v,E,n,f,x,y){var Q=_.jO.getInstance();if(!_.Z("block_all_player_prefetch_requests")){YZ1(v);var e=!!n.getPlaylistId(),F=n.getVideoData().isLive&&n.getVideoData().hasProgressBarBoundaries;if((Q.getState()==2||e||F)&&(!n.getVideoData().isLive||F)){Q={inPlaylist:e,videoDuration:n.getDuration(),makeUpNextTrigger:function(l){return new Iap(n,_.wh,l)},
makePlaybackTrigger:function(l){return new rZd(n,_.wh,l)}};
var b=qZ0(E,Q);b&&(v.pendingPrefetchJob_=new o8(b.isInPlaylist?new MgK(x):new SZx(b.autonavEndpoints),function(l,r){r=new ZRC(laU[b.pageType].pageFragments,laU[b.pageType].prefetchedFragments,r);return _.HXw(r)?(v.prefetchCache_.set(l,r),!0):!1},b,new vQ(f,n,y,x)),v.pendingPrefetchJob_.enqueue())}}};
LG1=function(){var v=_.dr();v.signals.parkOrScheduleJob(function(){var E=v.storage;if(E.storage)if(X8p(E)){var n=E.getPlaylistId();E=eYP(E);n=!!n&&E!==void 0}else E.clear(),n=!1;else n=!1;if(n){n=v.pageManager.isOnWatch();a:{var f=v.storage;if(f.storage&&X8p(f)&&(E=f.getPlaylistId(),f=eYP(f),E&&f!==void 0)){n={recoverPlaylistCommand:{listId:E,index:f,openMiniplayer:!n,openListPanel:n,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}n=void 0}n&&_.UM(v.JSC$10695_actionRouter,[n],null)}},0,"ma")};
GGC=function(v,E,n,f,x,y){var Q=_.ci(7111);_.t$(v.JSC$16004_screenManager,Q,y?_.tx(y):void 0);_.vg(v.JSC$16004_screenManager,Q,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:f,offlineId:E,offlineabilityFormatType:n,isDefaultFormatType:x==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:x}})};
TJ3=function(v,E,n,f,x){var y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return _.m(l,v.JSC$16004_playerApiPromise,2);y=l.yieldResult;GGC(v,E,n,"OFFLINE_OBJECT_TYPE_PLAYLIST",f,x);if(e=_.OiX[v.entityTypeMap.listEntityType])b={},Q=(b[e]={maximumDownloadQuality:(F=n)!=null?F:void 0},b);return _.m(l,y.queueOfflineAction(E,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Q),0)})};
iRb=function(v,E){var n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return _.m(Q,v.JSC$16004_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){n=Q.yieldResult;if(!n)return _.li(new _.yc("PES is undefined")),Q.return();f=_.$s(E,"downloadStatusEntity");return _.m(Q,Qjb(n,f,"downloadStatusEntity"),3)}x=Q.yieldResult;return Q.return((y=x)==null?void 0:y.downloadState)})};
zYR=function(v,E,n,f,x){var y,Q,e,F,b,l;return _.X(function(r){switch(r.nextAddress){case 1:return _.m(r,v.JSC$16004_playerApiPromise,2);case 2:y=r.yieldResult;GGC(v,E,n,"OFFLINE_OBJECT_TYPE_VIDEO",f,x);if(e=_.OiX[v.entityTypeMap.singleEntityType])b={},Q=(b[e]={maximumDownloadQuality:(F=n)!=null?F:void 0},b);return _.m(r,iRb(v,E),3);case 3:l=r.yieldResult;if(l!=="DOWNLOAD_STATE_USER_DELETED"){r.jumpTo(4);break}return _.m(r,v.deleteVideo(E),4);case 4:return _.m(r,y.queueOfflineAction(E,v.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Q),0)}})};
RYx=function(v,E,n,f,x){return _.X(function(y){return y.nextAddress==1?_.m(y,v.deleteVideo(E,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.m(y,zYR(v,E,n,f,x),0)})};
tgd=function(v,E,n){var f,x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.JSC$16004_playerApiPromise,2);f=y.yieldResult;x=_.$s(E,"mainVideoDownloadStateEntity");return _.m(y,f.updateDownloadState(x,n),0)})};
TnP=function(v){var E=_.P().resolve(_.uh);return _.X(function(n){if(n.nextAddress==1)return E.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&E.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?n.jumpTo(2):_.m(n,E.resumeVideoDownload(v),2);if(n.nextAddress!=4)return _.m(n,tgd(E,v,E.previousDownloadStateForVideo[v]),4);delete E.previousDownloadStateForVideo[v];_.yQ(n)})};
LoU=function(v,E){var n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$16004_playerApiPromise,2);n=f.yieldResult;return _.m(f,n.queueOfflineAction(E,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
kwx=function(){var v=_.P().resolve(_.uh),E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$16004_playerApiPromise,2);if(f.nextAddress!=3)return E=f.yieldResult,n={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.m(f,E.queueOfflineAction("!*$_ALL_ENTITIES_!*$",v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",n),3);var x=v.JSC$16004_commandHandler,y=x.resolveCommand,Q=_.tQ("DELETING_ALL",void 0,"Downloads are being deleted");
y.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.HR(Q)}},popupType:"TOAST"}});_.yQ(f)})};
BJ0=function(v){var E,n;return _.X(function(f){if(f.nextAddress==1)return _.m(f,v.JSC$16004_prefStorage,2);E=f.yieldResult;return f.return((n=E)==null?void 0:n.get("sdois"))})};
v_1=function(v){var E,n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return _.m(e,v.JSC$16004_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3){E=e.yieldResult;if(!E)return _.li(new _.yc("PES is undefined")),e.return();n=_.$s("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.m(e,Qjb(E,n,"settingEntity"),3)}f=e.yieldResult;return e.return((Q=(x=f)==null?void 0:(y=x.settingOptionValue)==null?void 0:y.boolValue)!=null?Q:!1)})};
E_M=function(v,E){var n,f,x,y;return _.X(function(Q){switch(Q.nextAddress){case 1:return((n=E)==null?void 0:n.formatType)===void 0?Q.return():_.m(Q,v.JSC$16004_prefStorage,2);case 2:f=Q.yieldResult;if(f===void 0)return Q.return();if(((x=E)==null?void 0:x.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.m(Q,f.set("lmqf",E.formatType),8);if(((y=E)==null?void 0:y.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Q.jumpTo(0);break}return _.m(Q,f.set("lmqf",E.formatType),
6);case 6:return _.m(Q,f.set("lmqflst",Math.floor((0,_.gd)())),0);case 8:return _.m(Q,f.remove("lmqflst"),0)}})};
n_6=function(v){var E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,v.JSC$16004_prefStorage,2);case 2:E=f.yieldResult;if(!E){f.jumpTo(3);break}return _.m(f,E.get("lmqflst"),4);case 4:if(n=f.yieldResult,n!==void 0)return f.return(n);case 3:return f.return(0)}})};
o_d=function(v){var E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,v.JSC$16004_prefStorage,2);case 2:E=f.yieldResult;if(E===void 0){f.jumpTo(3);break}return _.m(f,E.get("lmqf"),4);case 4:if(n=f.yieldResult,n!==void 0)return f.return(n);case 3:return f.return("SD")}})};
ni0=function(v,E,n){var f,x,y,Q,e,F,b,l;_.X(function(r){switch(r.nextAddress){case 1:return _.m(r,E_M(v,(f=E)==null?void 0:f.actionParams),2);case 2:x=E.playlistId;if(!x)return r.return();if(E.action==="ACTION_ADD")return((Q=E.actionParams)==null?0:Q.formatType)?_.m(r,TJ3(v,x,E.actionParams.formatType,(l=E.actionParams)==null?void 0:l.settingsAction,n),0):_.m(r,v.offlineWebClientEligibility,14);if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var a=v.JSC$16004_commandHandler,M=a.resolveCommand,U=_.MX("INNERTUBE_CLIENT_NAME");
var d=U==="WEB_REMIX"?_.tQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.tQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Y=U==="WEB_REMIX"?[_.tQ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];U=U==="WEB_REMIX"?_.tQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.tQ("DELETE",void 0,"Delete");var V=_.tQ("CANCEL",void 0,"Cancel");d=ysC(d,Y,U,V,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:x});M.call(a,{openPopupAction:d});
return r.return()}if(E.action==="ACTION_REMOVE")return _.m(r,LoU(v,x),0);if(E.action!=="ACTION_SYNC"){r.jumpTo(0);break}return _.m(r,v.JSC$16004_playerApiPromise,9);case 9:return y=r.yieldResult,_.m(r,y.queueOfflineAction(x,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return e=r.yieldResult,_.m(r,o_d(v),15);case 15:return F=r.yieldResult,_.m(r,n_6(v),16);case 16:b=r.yieldResult,E.onAddCommand&&v.JSC$16004_commandHandler.resolveCommand(E.onAddCommand,{form:{preferredFormatType:F,
offlineWebClientEligibility:e,lastOfflineQualitySettingsSavedMs:b.toString()}}),r.jumpTo(0)}})};
vi_=function(v,E,n){var f,x,y,Q,e,F,b,l,r,a,M,U,d,Y;_.X(function(V){switch(V.nextAddress){case 1:return _.m(V,E_M(v,(f=E)==null?void 0:f.actionParams),2);case 2:x=E.videoId;if(!x)return V.return();if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var O=v.JSC$16004_commandHandler,T=O.resolveCommand,L=_.MX("INNERTUBE_CLIENT_NAME");var xX=L==="WEB_REMIX"?_.tQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.tQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var t=L==="WEB_REMIX"?[_.tQ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];L=L==="WEB_REMIX"?_.tQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.tQ("DELETE",void 0,"Delete");var QE=_.tQ("CANCEL",void 0,"Cancel");xX=ysC(xX,t,L,QE,{signal:"DELETE_DOWNLOAD",targetId:x});T.call(O,{openPopupAction:xX});return V.return()}if(E.action==="ACTION_ADD")return((a=E.actionParams)==null?0:a.formatType)?_.m(V,zYR(v,x,E.actionParams.formatType,(Y=E.actionParams)==null?void 0:Y.settingsAction,n),0):_.m(V,v.offlineWebClientEligibility,
23);if(E.action==="ACTION_RETRY")return _.m(V,o_d(v),19);if(E.action==="ACTION_PAUSE")return _.m(V,v.pauseVideoDownload(x),0);if(E.action==="ACTION_RESUME")return _.m(V,v.resumeVideoDownload(x),0);if(E.action!=="ACTION_REMOVE"){V.jumpTo(0);break}return _.m(V,iRb(v,x),13);case 13:return y=V.yieldResult,v.previousDownloadStateForVideo[x]=(Q=y)!=null?Q:"DOWNLOAD_STATE_UNKNOWN",_.m(V,tgd(v,x,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(v.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
v.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){V.jumpTo(15);break}return _.m(V,v.pauseVideoDownload(x),15);case 15:O=_.tQ("DELETED_VIDEO",void 0,"Video deleted from downloads.");T=_.tQ("UNDO_ACTION",void 0,"Undo");xX=_.tQ("CLOSE",void 0,"Close");e={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.HR(O),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.HR(T),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:O+" "+T}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:xX}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};v.JSC$16004_commandHandler.resolveCommand(e);
V.jumpTo(0);break;case 19:F=V.yieldResult;F==="UNKNOWN_FORMAT_TYPE"&&(F="SD");b="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((l=E.actionParams)==null?0:l.formatType)F=E.actionParams.formatType,b=(r=E.actionParams)==null?void 0:r.settingsAction;return _.m(V,RYx(v,x,F,b,n),20);case 20:return V.return();case 23:return M=V.yieldResult,_.m(V,o_d(v),24);case 24:return U=V.yieldResult,_.m(V,n_6(v),25);case 25:d=V.yieldResult,E.onAddCommand&&v.JSC$16004_commandHandler.resolveCommand(E.onAddCommand,
{form:{preferredFormatType:U,offlineWebClientEligibility:M,lastOfflineQualitySettingsSavedMs:d.toString()}}),V.jumpTo(0)}})};
fgb=function(v,E){var n,f,x,y,Q,e,F;return _.X(function(b){if(b.nextAddress==1)return _.m(b,v.JSC$16004_persistentStorePromiseAccessor(),2);n=b.yieldResult;if(!n)return _.li(new _.yc("PES is undefined")),b.return();if((f=E)==null||!f.settingItemId)return b.return();x=E;y=x.settingItemId;Q=x.boolValue;e=_.$s(y,"settingEntity");F={key:e,settingOptionValue:{boolValue:Q}};return _.m(b,p8x(n,F),0)})};
xqR=function(v,E){var n,f,x,y,Q,e,F;return _.X(function(b){switch(b.nextAddress){case 1:return _.m(b,v.JSC$16004_prefStorage,2);case 2:return n=b.yieldResult,f=_.Ef(),_.m(b,v.JSC$16004_persistentStorePromiseAccessor(),3);case 3:return x=b.yieldResult,n?x?_.m(b,n.get("sdois"),4):(_.li(new _.yc("PES is undefined")),b.return()):(_.li(new _.yc("prefStorage is undefined")),b.return());case 4:y=b.yieldResult;e=(Q=E)==null?void 0:Q.boolValue;e===void 0||_.Z("kevlar_set_sd_enabled_flag_killswitch")||_.nH(0,
197,!0);y===void 0&&e===void 0&&(e=!1);if(e===void 0){b.jumpTo(0);break}return _.m(b,n.set("sdois",e),6);case 6:return _.Z("kevlar_set_sd_enabled_flag_killswitch")||(_.nH(0,196,e),f.save()),F={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:e},_.m(b,fgb(v,F),0)}})};
cqC=function(v,E,n){var f,x,y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:return _.m(F,BJ0(v),2);case 2:return f=F.yieldResult,_.m(F,xqR(v,n),3);case 3:return _.m(F,BJ0(v),4);case 4:return x=F.yieldResult,y=x!==f,_.m(F,v_1(v),5);case 5:Q=F.yieldResult&&!_.Z("kevlar_modern_downloads_page");if((e=!x&&!Q)||y)return _.m(F,E.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);F.jumpTo(0)}})};
zVP=function(){var v=_.P().resolve(_.uh),E;_.X(function(n){switch(n.nextAddress){case 1:return _.m(n,v.JSC$16004_playerApiPromise,2);case 2:E=n.yieldResult;if(!_.Z("kevlar_force_refresh_smart_downloads")){n.jumpTo(3);break}return _.m(n,E.refreshAllStaleEntities(0),4);case 4:return n.return();case 3:return _.m(n,E.refreshAllStaleEntities(),5);case 5:return _.m(n,cqC(v,E),0)}})};
fjd=function(v,E){var n,f;_.X(function(x){switch(x.nextAddress){case 1:return _.m(x,v.JSC$16004_playerApiPromise,2);case 2:n=x.yieldResult;switch((f=E)==null?void 0:f.settingItemId){case "SMART_DOWNLOADS_ENABLED":return x.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return x.jumpTo(4)}x.jumpTo(0);break;case 3:return _.m(x,cqC(v,n,E),6);case 6:x.jumpTo(0);break;case 4:return _.m(x,fgb(v,E),7);case 7:x.jumpTo(0)}})};
yq1=function(v,E){var n,f,x;return _.X(function(y){if(y.nextAddress==1)return _.m(y,v.JSC$16004_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){n=y.yieldResult;if(!n)return _.li(new _.yc("PES is undefined")),y.return(!1);if(!E)return y.return(!1);f=_.$s(E,"mainVideoEntity");return _.m(y,Qjb(n,f,"mainVideoEntity"),3)}x=y.yieldResult;return y.return(x!==void 0)})};
cxK=function(v){var E=_.P().resolve(_.uh),n,f,x,y,Q,e,F,b,l,r,a;_.X(function(M){switch(M.nextAddress){case 1:return _.m(M,E.JSC$16004_playerApiPromise,2);case 2:n=M.yieldResult;x=(f=v)==null?void 0:f.actions;if(!x)return M.return();y=_.p(x);Q=y.next();case 3:if(Q.done){M.jumpTo(0);break}e=Q.value;b=F=void 0;if(!(((F=e)==null?0:F.entityKey)&&((b=e)==null?0:b.actionType))){M.jumpTo(4);break}l=_.Of(e.entityKey);r=l.entityId;a=l.entityType;return _.m(M,n.queueOfflineAction(r,a,e.actionType),4);case 4:Q=
y.next(),M.jumpTo(3)}})};
pib=function(v,E){var n,f,x,y,Q;return _.X(function(e){if(e.nextAddress==1)return _.m(e,v.JSC$16004_prefStorage,2);if(e.nextAddress!=3)return(n=e.yieldResult)?_.m(e,n.get("psi"),3):e.return();f=e.yieldResult;Q={isPaused:E,lastSyncTimestamp:(y=(x=f)==null?void 0:x.lastSyncTimestamp)!=null?y:"0"};return _.m(e,n.set("psi",Q),0)})};
QUb=function(v){var E=_.P().resolve(_.uh),n,f,x,y,Q,e,F,b;return _.X(function(l){switch(l.nextAddress){case 1:return _.m(l,E.JSC$16004_playerApiPromise,2);case 2:n=l.yieldResult;x=((f=v)==null?void 0:f.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((e=v)==null?void 0:e.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":y="!*$_ALL_ENTITIES_!*$";Q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return l.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return l.jumpTo(4)}l.jumpTo(5);break;case 3:return _.m(l,pib(E,x),6);case 6:l.jumpTo(5);break;case 4:return _.m(l,yq1(E,(F=v)==null?void 0:F.videoId),7);case 7:l.yieldResult&&(y=(b=v)==null?void 0:b.videoId,Q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");l.jumpTo(5);break;case 5:if(y&&Q)return _.m(l,n.queueOfflineAction(y,"videoPlaybackPositionEntity",Q),0);l.jumpTo(0)}})};
QXU=function(v,E){var n;E!==1||((n=v.currentPersistentToast)==null?0:n.isOpened())?v.openToast():v.currentPersistentToast=void 0};
XiR=function(){var v,E,n,f;return _.X(function(x){if(x.nextAddress==1)return v=navigator,(E=v.storage)!=null&&E.persisted?_.m(x,(n=v.storage)==null?void 0:n.persisted(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");f=x.yieldResult;return x.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
eS6=function(){var v,E,n,f;return _.X(function(x){if(x.nextAddress==1)return v=navigator,(E=v.storage)!=null&&E.persist?_.m(x,(n=v.storage)==null?void 0:n.persist(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");f=x.yieldResult;return x.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Fc3=function(){var v,E;return _.X(function(n){switch(n.nextAddress){case 1:return v="PERSISTED_STATE_NOT_SUPPORTED",_.vW(n,2),_.m(n,XiR(),4);case 4:v=n.yieldResult;if(v!=="PERSISTED_STATE_NOT_GRANTED"){n.jumpTo(5);break}return _.m(n,eS6(),6);case 6:v=n.yieldResult;case 5:_.qp(n,3);break;case 2:E=_.cW(n),E instanceof Error&&_.mb(E);case 3:return _.eQ("persistentStorageStateChecked",{persistedState:v}),n.return(v)}})};
mqp=function(v,E){var n=[],f=!1;E=_.p(E);for(var x=E.next();!x.done;x=E.next()){x=v.moduleRegistry[x.value];var y=void 0,Q=void 0;((y=x)==null?0:y.isFetching)&&((Q=x)==null?0:Q.resolver)?(n.push(x.resolver.promise),f=!0):(x=new _.Wy,x.resolve(void 0),n.push(x.promise))}return f?Promise.all(n):void 0};
wip=function(v,E,n){n=n===void 0?{}:n;var f=v.defaultViewTransitionOptions,x=E.map(function(Q){return Q.beforeTransition}),y=E.map(function(Q){return Q.afterTransition});
return Object.assign({},f,n,{beforeTransition:function(){var Q;(Q=f.beforeTransition)==null||Q.call(f);var e,F;(F=(e=n).beforeTransition)==null||F.call(e);Q=_.p(x);for(e=Q.next();!e.done;e=Q.next())e=e.value,e()},
afterTransition:function(){var Q;(Q=f.afterTransition)==null||Q.call(f);var e,F;(F=(e=n).afterTransition)==null||F.call(e);Q=_.p(y);for(e=Q.next();!e.done;e=Q.next())e=e.value,e()}})};
bh1=function(v,E,n){var f,x,y,Q,e,F,b;_.X(function(l){if(v.config.disableAllTransitions)return l.return(E());if((f=n)==null||!f.transitionName)return l.return(_.dgx(E,(x=n)==null?void 0:x.viewTransitionOptions));y=n;Q=y.transitionName;e=y.viewTransitionOptions;F=v.config.transitionConfigs.get(Q);if(!F)return l.return(E());var r;b=(r=v.transitionTasksMap.get(Q))!=null?r:[];return l.return(_.dgx(E,wip(F,b,e)))})};
fb=function(v,E,n){v.transitionTasksMap.has(E)?v.transitionTasksMap.get(E).push(n):(v=new _.yc("Transition task registered for unknown transition name",E),_.mb(v))};
lg3=function(v,E,n){if(v.isInitialized()){var f=LP(n),x=f==="watch";f=f==="shorts";var y=LP(E)==="watch";if(x)y||(v.backgroundPageData=E),v.watchPipMode&&y||v.deactivate(n.endpoint);else if(f){if(LP(E)!=="shorts"){var Q;(Q=v.getPlayerElement())==null||Q.pause()}}else y&&!v.watchPipMode&&(QYK(E,n)?(v.watchWhileMode&&_.AAU(v,!1),_.JAx(v,E)):v.isMiniplayerActive()&&v.watchWhileMode&&v.deactivate());y&&_.Da_(v);v.shortsPipMode&&!f&&(window.focus(),v.deactivate());if(v.pictureInPictureEnabled())if(f&&
v.shortsPipEnabled||x&&v.watchPipEnabled)_.Y7F(v.handleMediaSessionPipActivation);else if(!v.isMiniplayerActive()&&(v.shortsPipEnabled||v.watchPipEnabled)&&_.c_()&&_.eyE("Chromium")>=120){v=_.IPX().mediaSession;try{v.setActionHandler("enterpictureinpicture",null)}catch(e){}}}};
sXx=function(v,E){var n,f;_.X(function(x){if(x.nextAddress==1){if(!v||!v.navigationEndpoint)return x.return();_.xo().lockupActivation=!0;var y;E?y=_.qD(_.tQ("QUEUE",void 0,"Queue")):y=v.longBylineText;f=(n=y)&&v.title?{miniplayerTitle:v.title,miniplayerSubtitle:n,playlistData:null}:void 0;return _.m(x,_.GWS(_.P().resolve(_.hf),v.navigationEndpoint,!0,f),2)}_.xo().userActivation=!0;_.yQ(x)})};
xDb=function(v,E){var n,f,x,y,Q,e;_.X(function(F){if(F.nextAddress==1){n=_.C(E,_.trF);if(!n||!n.listId)return F.return();v.index=n.index||v.index||0;f=v.response&&v.response.playingVideoId||void 0;return _.m(F,_.bwF(v.JSC$10695_playlistNetworkManager,n.listId,v.index,f),2)}x=F.yieldResult;if(!x)return F.return();y=x.playlistId;Q=x.playlistPanelRenderer;!v.queueProxy&&y&&Q&&y.startsWith("TLPQ")&&(v.queueProxy=new _.ZD(v.JSC$10695_playlistNetworkManager,y,v.setPlaylistData.bind(v),v.clearQueue.bind(v),
_.sDG(Q),v.storage));if(n.openMiniplayer&&(e=_.r1L(Q))&&!v.pageManager.isOnWatch()){var b=e,l=n.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";v.isMiniplayerActive()?v.openToast(b):sXx(b,l)}v.setPlaylistData(y,Q,x.autoplayRenderer);_.yQ(F)})};
ntp=function(v,E){var n=_.dr();n.index===void 0&&(n.index=0);n.temporaryItems.push.apply(n.temporaryItems,_.s8(v));if((E.videoId||E.videoIds)&&n.index!==void 0&&E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!n.queueProxy){var f=[];if(n.response){var x=_.P().resolve(_.hf).isMiniplayerActive();if(n.response.playlistPanelRenderer&&n.response.playlistId&&!n.response.playlistId.startsWith("TLPQ")){if(n.pageManager.isOnWatch()||x)f=_.sDG(n.response.playlistPanelRenderer)}else n.response.playingVideoId&&
!E.openMiniplayer?f.push(n.response.playingVideoId):x&&n.response.playingVideoId&&E.openMiniplayer&&f.push(n.response.playingVideoId)}n.queueProxy=new _.ZD(n.JSC$10695_playlistNetworkManager,"",n.setPlaylistData.bind(n),n.clearQueue.bind(n),f,n.storage);n.queueProxy.JSC$10641_setCurrentIndex(n.index)}n.queueProxy.addVideos(E.videoIds||[E.videoId],E)}FGC(n,v);n.response&&_.I6(n,_.Yo(n,n.response.autoplayRenderer));n.pageManager.isOnWatch()?n.isMiniplayerActive()&&n.openToast(v[0]):(v=v[0],E=E.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",n.isMiniplayerActive()?n.openToast(v):sXx(v,E))};
rqb=function(v){var E=_.eM(v);if(E=="object"||E=="array"){if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);E=E=="array"?[]:{};for(var n in v)E[n]=rqb(v[n]);return E}return v};
xP=function(v,E){return _.i1G(_.ef(v,E,void 0,_.XB))};
cQ=function(v,E){return _.MP(_.ef(v,E,void 0,_.XB))};
yb=function(v,E){return _.wUy(_.ef(v,E,void 0,_.XB))};
pb=function(v,E){return _.ef(v,E,void 0,_.XB,_.Xd)};
PGC=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;_.kb(E,n,_.hm(v.decoder_,_.Ex));return!0},_.TZ,_.D2);
agp=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.hm(v.decoder_,_.Ex));return!0},_.TZ,_.D2);
Zh0=_.Om(function(v,E,n){if(v.nextWireType_!==1)return!1;var f=v.decoder_;v=_.VH(f);f=_.VH(f);v=_.BU(v,f);_.kb(E,n,v);return!0},_.LUL,_.CK9);
CG3=_.Om(function(v,E,n){if(v.nextWireType_!==5)return!1;_.kb(E,n,_.VH(v.decoder_));return!0},function(v,E,n){E=_.SM(E);
E!=null&&(_.Wz(v,n,5),_.GZ(v.encoder_,E))},_.IK());
Mwd=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;v=_.oGQ(v.decoder_);_.kb(E,n,v===!1?void 0:v);return!0},_.G3$,_.PKX);
Sd_=_.Om(function(v,E,n){if(v.nextWireType_!==2)return!1;v=_.Q7X(v);_.kb(E,n,v===""?void 0:v);return!0},_.i0s,_.aFs);
UqR=_.Om(function(v,E,n){if(v.nextWireType_!==2)return!1;v=_.Xx1(v);_.kb(E,n,v===_.uX()?void 0:v);return!0},_.RKQ,_.SuE);
qdO=_.gpQ(function(v,E,n){if(v.nextWireType_!==0&&v.nextWireType_!==2)return!1;E=_.CW(E,E[_.J6]|0,n);v.nextWireType_==2?_.e3L(v,jUM,E):E.push(_.Am(v.decoder_));return!0},function(v,E,n){E=_.H0G(_.MP,E,!0);
if(E!=null&&E.length){n=_.mPX(v,n);for(var f=0;f<E.length;f++)_.k3L(v.encoder_,E[f]);_.wbX(v,n)}},_.UKE);
Jqb=_.Om(function(v,E,n){if(v.nextWireType_!==0)return!1;v=_.Am(v.decoder_);_.kb(E,n,v===0?void 0:v);return!0},_.tMN,_.UKE);
Kcd=_.Om(function(v,E,n,f){if(v.nextWireType_!==0)return!1;_.bN(E,n,f,_.Am(v.decoder_));return!0},_.tMN,_.UKE);
_.Na=function(v){this.privateDoNotAccessOrElseWrappedStyleSheet=v};
_.Na.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var FWb=function(v,E){return new _.PV(v.x+E.x,v.y+E.y)},dq0=function(v){return v.previousElementSibling!==void 0?v.previousElementSibling:_.I16(v.previousSibling,!1)},Ig1=function(v,E){var n=[];
for(E=E||0;E<v.length;E+=2)_.Pr6(v[E],v[E+1],n);return n.join("&")},Ydx=function(v,E){var n=arguments.length==2?Ig1(arguments[1],0):Ig1(arguments,1);
return _.rjP(v,n)},hS1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(hS1,_.Vj);hS1.prototype.getValue=function(){var v=_.ef(this,2);if(Array.isArray(v)||v instanceof _.Vj)throw Error("aa");return _.wO(this,2)};
var hlR=function(){var v=_.ux();this.JSC$7806_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.T7("channel_type"))};
hlR.prototype.increment=function(v){this.JSC$7806_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",v)};
var AQR=function(){var v=_.ux();this.JSC$7809_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.T7("channel_type"))};
AQR.prototype.increment=function(v){this.JSC$7809_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",v)};
var DA1=function(){var v=_.ux();this.JSC$7812_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.T7("channel_type"))};
DA1.prototype.increment=function(v){this.JSC$7812_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",v)};
var VK_=function(){var v=_.ux();this.JSC$7815_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
VK_.prototype.increment=function(){this.JSC$7815_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var HG0=function(){var v=_.ux();this.JSC$7818_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.T7("channel_type"),_.T7("error_type"))};
HG0.prototype.increment=function(v,E){this.JSC$7818_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",v,E)};
var gZ_=function(){var v=_.ux();this.JSC$7821_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
gZ_.prototype.increment=function(){this.JSC$7821_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var NMM=function(){var v=_.ux();this.JSC$7824_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
NMM.prototype.increment=function(){this.JSC$7824_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var K$6=function(){var v=_.ux();this.JSC$7830_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
K$6.prototype.increment=function(){this.JSC$7830_streamzService.JSC$7679_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Aq1=function(v){return v.getCount&&typeof v.getCount=="function"?v.getCount():_.E1(v)||typeof v==="string"?v.length:_.sh.getCount(v)},VwK=function(v,E){if(typeof v.every=="function")return v.every(E,void 0);
if(_.E1(v)||typeof v==="string")return Array.prototype.every.call(v,E,void 0);for(var n=_.Xfg(v),f=_.k2(v),x=f.length,y=0;y<x;y++)if(!E.call(void 0,f[y],n&&n[y],v))return!1;return!0},DqO=function(v,E,n,f){var x=new _.IT(null);
v&&_.WF(x,v);E&&_.$2(x,E);n&&_.Ly(x,n);f&&_.Gu(x,f);return x},Hhx=function(){var v=_.aP&&_.bE(_.Cq1,10)>=0,E;
if(E=_.sos)E=_.bE(_.ZEz,10)>=0;var n=_.yH&&_.bE(_.Cq1,85)>=0;return _.oG||v||E||n},g_d=function(v){var E=_.B_F(v);
return E&&Hhx()?-v.scrollLeft:E&&_.CT(v,"overflowX")!="visible"?v.scrollWidth-v.clientWidth-v.scrollLeft:v.scrollLeft},NWd=function(v,E){E=Math.max(E,0);
_.B_F(v)?Hhx()?v.scrollLeft=-E:v.scrollLeft=v.scrollWidth-E-v.clientWidth:v.scrollLeft=E},SUO=0,d1p=!1;
TC.prototype.set=function(v){this.relativeTimeStart_=v};
TC.prototype.reset=function(){this.set(_.Rr())};
TC.prototype.get=function(){return this.relativeTimeStart_};
var um0=null,jXO=function(){um0||(um0=new TC)},Oh_=function(){um0||(um0=new TC)};
_.tf(Oh_,jXO);_.c=YU6.prototype;_.c.JSC$9153_buffer_="";_.c.set=function(v){this.JSC$9153_buffer_=""+v};
_.c.append=function(v,E,n){this.JSC$9153_buffer_+=String(v);if(E!=null)for(var f=1;f<arguments.length;f++)this.JSC$9153_buffer_+=arguments[f];return this};
_.c.clear=function(){this.JSC$9153_buffer_=""};
_.c.getLength=function(){return this.JSC$9153_buffer_.length};
_.c.toString=function(){return this.JSC$9153_buffer_};
var kyM=function(){var v={type:"unit",style:"narrow"};this.listType_=v&&v.type?v.type:"conjunction";this.listStyle_=v&&v.style?v.style:"long";this.listSymbols_=Tqb;v=0;switch(this.listStyle_){case "short":v=1;break;case "narrow":v=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[v];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[v];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=
this.listSymbols_.AND_END[v];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[v];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[v];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=this.listSymbols_.OR_END[v];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[v],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[v],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[v],this.listEndPattern_=this.listSymbols_.UNIT_END[v]}};
kyM.prototype.format=function(v){return Wc_(this,v)};
var Wc_=function(v,E){var n=E.length;switch(n){case 0:return"";case 1:return String(E[0]);case 2:return v.listTwoPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1]))}for(var f=v.listStartPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1])),x=2;x<n-1;++x)f=v.listMiddlePattern_.replace("{0}",f).replace("{1}",String(E[x]));return v.listEndPattern_.replace("{0}",f).replace("{1}",String(E[n-1]))},ThR=function(){var v={style:1};
this.style_=(v==null?void 0:v.style)||0;this.durationSymbols_=_.W0z||_.oiX},$qM=function(v,E){switch(E){default:case "years":return v.durationSymbols_.YEAR;
case "months":return v.durationSymbols_.MONTH;case "weeks":return v.durationSymbols_.WEEK;case "days":return v.durationSymbols_.DAY;case "hours":return v.durationSymbols_.HOUR;case "minutes":return v.durationSymbols_.MINUTE;case "seconds":return v.durationSymbols_.SECOND}},Qb=function(v,E,n){a:{n=$qM(v,n);
switch(v.style_){case 1:if(n.LONG!=void 0){v=n.LONG;break a}case 2:if(n.NARROW!=void 0){v=n.NARROW;break a}default:v=n.SHORT;break a}v=void 0}return v?(new _.Uu1("{DURATION_VALUE,plural,"+v+"}")).format({DURATION_VALUE:E}):""};
ThR.prototype.format=function(v){var E=[],n=v.years,f=v.months,x=v.weeks,y=v.days,Q=v.hours,e=v.minutes;v=v.seconds;n!=null&&E.push(Qb(this,n,"years"));f!=null&&E.push(Qb(this,f,"months"));x!=null&&E.push(Qb(this,x,"weeks"));y!=null&&E.push(Qb(this,y,"days"));Q!=null&&E.push(Qb(this,Q,"hours"));e!=null&&E.push(Qb(this,e,"minutes"));v!=null&&E.push(Qb(this,v,"seconds"));return(new kyM).format(E)};
var Lc0=!1,Nh1=function(v){_.vI.call(this,v.message||v.description||v.name);this.isMissing=v instanceof ik;this.isTimeout=v instanceof _.DW&&v.errorCode=="net.timeout";this.isCanceled=v instanceof _.Hj};
_.S(Nh1,_.vI);Nh1.prototype.name="BiscottiError";var ik=function(){_.vI.call(this,"Biscotti ID is missing from server")};
_.S(ik,_.vI);ik.prototype.name="BiscottiMissingError";var zC=null,Gx0=function(){try{var v=_.JM("yt.ads.biscotti.getId_");return v?v():sYM()}catch(E){return _.nR(E)}},G21,Gy0=function(v){return _.un({type:"SET_GUIDE_IS_EXPANDED",
payload:v})},TWp=function(v){return _.un({type:"SET_ONLINE_STATUS",
payload:v})},ihO=function(v,E){return _.un({type:"SET_TRANSCRIPTION_STATE",
payload:{high:v,low:E}})},zSp=function(v){return _.un({type:"SET_OVERLAY_STATE",
payload:v})},RSO=0,twK=function(v,E,n){var f=this;
this.priority=E;this.delay=n;this.jobId=0;this.completionCallback=_.er;this.wrappedJob=function(){v();f.completionCallback()};
this.id=++RSO};
twK.prototype.enqueue=function(v){this.completionCallback=v;this.jobId=_.wh.addJob(this.wrappedJob,this.priority,this.delay)};
var XW=function(){_.T0.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.S(XW,_.T0);XW.prototype.addJob=function(v,E,n){v=new twK(v,E,n);this.taskIdToTask.set(v.id,v);this.isActive?BW6(this,v):this.suspendedTasks.add(v);return v.id};
var BW6=function(v,E){v.scheduledTasks.add(E);E.enqueue(function(){v.scheduledTasks.delete(E)})};
XW.prototype.cancelJob=function(v){(v=this.taskIdToTask.get(v))&&(this.scheduledTasks.delete(v)?_.wh.cancelJob(v.jobId):this.suspendedTasks.delete(v))};
XW.prototype.pause=function(){var v=this;this.isActive=!1;this.scheduledTasks.forEach(function(E){_.wh.cancelJob(E.jobId);v.suspendedTasks.add(E)});
this.scheduledTasks.clear()};
XW.prototype.start=function(){var v=this;this.isActive=!0;this.suspendedTasks.forEach(function(E){BW6(v,E)});
this.suspendedTasks.clear()};
XW.prototype.reset=function(){this.scheduledTasks.forEach(function(v){_.wh.cancelJob(v.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var eF=function(v,E){this.JSC$10819_networkService_=v;this.pageRequestPromise=E};
eF.prototype.fetchData=function(v){vap(this,this.JSC$10819_networkService_.fetchData(v))};
eF.prototype.postData=function(v,E){vap(this,this.JSC$10819_networkService_.postData(v,E))};
eF.prototype.requestDataForServiceEndpoint=function(v,E){vap(this,this.JSC$10819_networkService_.requestDataForServiceEndpoint(v,E))};
var vap=function(v,E){E.then(v.pageRequestPromise.onSuccess,v.pageRequestPromise.onFailure,v.pageRequestPromise)};
eF.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var FW=function(v){this.buildNetworkRequest_=v;this.pendingRequests_=new Set};
FW.prototype.reset=function(){this.pendingRequests_.forEach(function(v){v.cancel()});
this.pendingRequests_.clear()};
FW.prototype.fetchData=function(v){var E=Ea0(this);E.fetchData(v);return E.pageRequestPromise};
FW.prototype.postData=function(v,E){var n=Ea0(this);n.postData(v,E);return n.pageRequestPromise};
FW.prototype.requestDataForServiceEndpoint=function(v,E){var n=Ea0(this);n.requestDataForServiceEndpoint(v,E);return n.pageRequestPromise};
var Ea0=function(v){var E=v.buildNetworkRequest_();v.pendingRequests_.add(E);var n=function(){v.pendingRequests_.delete(E)};
E.pageRequestPromise.then(n,n);return E},na6=function(v){var E=new XW;
this.JSC$10826_networkService_=v;this.JSC$10826_taskManager_=E;this.JSC$10826_networkManager_=new FW(this.networkRequestFactory_.bind(this))};
_.c=na6.prototype;_.c.networkRequestFactory_=function(){return new eF(this.JSC$10826_networkService_,new _.$o(this.JSC$10826_taskManager_))};
_.c.reset=function(){this.JSC$10826_taskManager_.reset();this.JSC$10826_networkManager_.reset()};
_.c.start=function(){this.JSC$10826_taskManager_.start()};
_.c.pause=function(){this.JSC$10826_taskManager_.pause()};
_.c.getTaskManager=function(){return this.JSC$10826_taskManager_};
_.c.getNetworkManager=function(){return this.JSC$10826_networkManager_};
var Bhd=null,n$K=[],tp=0,ve=0,Bc=null,oa0=function(){var v=(0,_.ng1)();v&&zLb(v,v.mechanism.__iterator__(!0))},n8=function(v){this.token=v};
n8.getInstance=function(){var v;return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.Du(),2);v=E.yieldResult;if(!v)return E.return();n8.instance||(n8.instance=new n8(v));return E.return(n8.instance)})};
var pP6=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,xwp(v.token),2);E=n.yieldResult;return n.return(E.clear("resource-manifest-assets"))})},EX=function(v){this.token=v};
EX.getInstance=function(){var v;return _.X(function(E){if(E.nextAddress==1)return _.m(E,_.Du(),2);v=E.yieldResult;if(!v)return E.return();EX.instance||(EX.instance=new EX(v));return E.return(EX.instance)})};
var cob=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,xwp(v.token),2);E=n.yieldResult;return _.m(n,E.clear("auth"),0)})},fkx=!1,ox=null,Z3R=void 0,I4U=!1,xlK=function(v){_.vI.call(this,v)};
_.S(xlK,_.EWU);var M70=function(){var v=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return v?parseInt(v[1],10):0},cFb=function(v){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+v)!=-1||document.currentScript.src.indexOf("&"+v)!=-1)},yFb=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},K5M=function(v){v.length?pTd(v.shift(),function(){K5M(v)}):Ux6()},II3=function(v){return"chrome-extension://"+v+"/cast_sender.js"},pTd=function(v,
E,n){var f=document.createElement("script");
f.onerror=E;n&&(f.onload=n);_.Vv(f,_.FV(v));(document.head||document.documentElement).appendChild(f)},Qu6=function(){var v=M70(),E=[];
if(v>1){var n=v-1;E.push("//www.gstatic.com/eureka/clank/"+v+"/cast_sender.js");E.push("//www.gstatic.com/eureka/clank/"+n+"/cast_sender.js")}return E},Ux6=function(){var v=yFb();
v&&v(!1,"No cast extension found")},Jc3=function(){if(XTp){var v=2,E=yFb(),n=function(){v--;
v==0&&E&&E(!0)};
window.__onGCastApiAvailable=n;pTd("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Ux6,n)}},Sf6=function(){Jc3();
var v=Qu6();v.push("//www.gstatic.com/eureka/clank/cast_sender.js");K5M(v)},qfU=function(){Jc3();
var v=Qu6();v.push.apply(v,_.s8(dxP.map(II3)));v.push("//www.gstatic.com/eureka/clank/cast_sender.js");K5M(v)},XTp=cFb("loadCastFramework")||cFb("loadCastApplicationFramework"),dxP=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var e6P=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(e6P,_.Vj);var FI1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(FI1,_.Vj);var mlP=function(){var v=new FI1;return _.IG(v,1,3)};var my=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(my,_.Vj);var rK_=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(rK_,_.Vj);var wTC=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(wTC,_.Vj);wTC.prototype.getToken=function(){return _.Sf(this,1)};
wTC.prototype.setToken=function(v){return _.O_(this,1,v)};
var lmM=function(v){return _.m9(v,3,_.NP,_.WV())},sSx=function(v){return _.m9(v,6,_.NP,_.WV())};var w3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(w3,_.Vj);w3.prototype.getToken=function(){return _.j5(this,wTC,2)};
w3.prototype.setToken=function(v){return _.Bz(this,2,v)};
w3.prototype.getName=function(){return _.Sf(this,6)};
var b7P=_.RK(w3);var lkp=function(v,E,n){this.requestMessage=v;this.methodDescriptor=E;this.metadata=n};
lkp.prototype.getMetadata=function(){return this.metadata};var suO=function(v,E){E=E===void 0?{}:E;this.responseMessage=v;this.metadata=E;this.status=null};
suO.prototype.getMetadata=function(){return this.metadata};
suO.prototype.getStatus=function(){return this.status};var b4=function(v,E,n,f,x){this.name=v;this.methodType="unary";this.requestType=E;this.responseType=n;this.requestSerializeFn=f;this.responseDeserializeFn=x},rF0=function(v,E,n){n=n===void 0?{}:n;
return new lkp(E,v,n)};
b4.prototype.getName=function(){return this.name};var l4=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(l4,_.Vj);l4.prototype.setHeader=function(v){return _.Bz(this,1,v)};
l4.prototype.hasHeader=function(){return _.FB(this,my,1)};var PSp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(PSp,_.Vj);var ak_=new b4("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",l4,PSp,function(v){return v.serialize()},_.RK(PSp));var s3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(s3,_.Vj);s3.prototype.setHeader=function(v){return _.Bz(this,1,v)};
s3.prototype.hasHeader=function(){return _.FB(this,my,1)};var Z7M=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Z7M,_.Vj);var CS6=new b4("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",s3,Z7M,function(v){return v.serialize()},_.RK(Z7M));var r3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(r3,_.Vj);r3.prototype.setHeader=function(v){return _.Bz(this,1,v)};
r3.prototype.hasHeader=function(){return _.FB(this,my,1)};var MSK=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(MSK,_.Vj);MSK.prototype.getLink=function(){return _.j5(this,w3,1)};var SIb=new b4("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",r3,MSK,function(v){return v.serialize()},_.RK(MSK));var PQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(PQ,_.Vj);PQ.prototype.setHeader=function(v){return _.Bz(this,1,v)};
PQ.prototype.hasHeader=function(){return _.FB(this,my,1)};var UlO=new b4("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",PQ,w3,function(v){return v.serialize()},b7P);var qIx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(qIx,_.Vj);var JFb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(JFb,_.Vj);JFb.prototype.getUrl=function(){return _.Sf(this,2)};
JFb.prototype.setUrl=function(v){return _.O_(this,2,v)};var KI1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(KI1,_.Vj);var dlb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(dlb,_.Vj);var Ikp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Ikp,_.Vj);var dO6=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(dO6,_.Vj);var KtC=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(KtC,_.Vj);var YI1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(YI1,_.Vj);var HVC=_.RK(YI1);var h6C=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(h6C,_.Vj);var a8=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(a8,_.Vj);a8.prototype.setHeader=function(v){return _.Bz(this,1,v)};
a8.prototype.hasHeader=function(){return _.FB(this,my,1)};
a8.prototype.getCompletionUrl=function(){return _.Sf(this,6)};
a8.prototype.getDeviceId=function(){return _.Sf(this,11)};var AFb=new b4("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a8,YI1,function(v){return v.serialize()},HVC);var VSd=new Set(["SAPISIDHASH","APISIDHASH"]);var DlM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(DlM,_.Vj);DlM.prototype.getMessage=function(){return _.Sf(this,2)};
var H76=_.RK(DlM);var Zn=function(v,E){this.xhrNodeReadableStream_=v.nodeReadableStream;this.grpcResponseDeserializeFn_=E;this.JSC$16920_xhr_=v.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16920_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&gap(this)},WIK=function(v,E){var n=new NQR;
_.v8(v.JSC$16920_xhr_,"complete",function(){if(v.JSC$16920_xhr_.isSuccess()){var f=v.JSC$16920_xhr_.getResponseText();var x;if(x=E)x=v.JSC$16920_xhr_,x.JSC$7688_xhr_&&x.isComplete()?(x=x.JSC$7688_xhr_.getResponseHeader("Content-Type"),x=x===null?void 0:x):x=void 0,x=x==="text/plain";if(x){if(!atob)throw Error("Ij");f=atob(f)}try{var y=v.grpcResponseDeserializeFn_(f)}catch(e){Cb(v,o0R(new _.PF(13,"Error when deserializing response data; error: "+e+(", response: "+f)),n));return}f=_.fYN(v.JSC$16920_xhr_.getStatus());
uwK(v,juU(v));f==0?O71(v,y):Cb(v,o0R(new _.PF(f,"Xhr succeeded but the status code is not 200"),n))}else{f=v.JSC$16920_xhr_.getResponseText();y=juU(v);if(f){var Q=kKC(v,f);f=Q.code;x=Q.details;Q=Q.metadata}else f=2,x="Rpc failed due to xhr error. uri: "+String(v.JSC$16920_xhr_.JSC$7688_lastUri_)+", error code: "+v.JSC$16920_xhr_.JSC$7688_lastErrorCode_+", error: "+v.JSC$16920_xhr_.getLastError(),Q=y;uwK(v,y);Cb(v,o0R(new _.PF(f,x,Q),n))}})},gap=function(v){v.xhrNodeReadableStream_.on("data",function(E){if("1"in
E){var n=E["1"];
try{var f=v.grpcResponseDeserializeFn_(n)}catch(x){Cb(v,new _.PF(13,"Error when deserializing response data; error: "+x+(", response: "+n)))}f&&O71(v,f)}if("2"in E)for(E=kKC(v,E["2"]),n=0;n<v.onStatusCallbacks_.length;n++)v.onStatusCallbacks_[n](E)});
v.xhrNodeReadableStream_.on("end",function(){uwK(v,juU(v));for(var E=0;E<v.onEndCallbacks_.length;E++)v.onEndCallbacks_[E]()});
v.xhrNodeReadableStream_.on("error",function(){if(v.JSC$16920_onErrorCallbacks_.length!=0){var E=v.JSC$16920_xhr_.JSC$7688_lastErrorCode_;E!==0||v.JSC$16920_xhr_.isSuccess()||(E=6);var n=-1;switch(E){case 0:var f=2;break;case 7:f=10;break;case 8:f=4;break;case 6:n=v.JSC$16920_xhr_.getStatus();f=_.fYN(n);break;default:f=14}uwK(v,juU(v));E=_.k61(E)+", error: "+v.JSC$16920_xhr_.getLastError();n!=-1&&(E+=", http status code: "+n);Cb(v,new _.PF(f,E))}})},juU=function(v){var E={},n=L$p(v.JSC$16920_xhr_);
Object.keys(n).forEach(function(f){E[f]=n[f]});
return E},kKC=function(v,E){var n=2,f={};
try{var x=H76(E);n=_.$r(x,1);var y=x.getMessage();_.kr(x,hS1,3,_.WV()).length&&(f["grpc-web-status-details-bin"]=E)}catch(Q){v.JSC$16920_xhr_&&v.JSC$16920_xhr_.getStatus()===404?(n=5,y="Not Found: "+String(v.JSC$16920_xhr_.JSC$7688_lastUri_)):(n=14,y="Unable to parse RpcStatus: "+Q)}return{code:n,details:y,metadata:f}};
Zn.prototype.on=function(v,E){v=="data"?this.onDataCallbacks_.push(E):v=="metadata"?this.onMetadataCallbacks_.push(E):v=="status"?this.onStatusCallbacks_.push(E):v=="end"?this.onEndCallbacks_.push(E):v=="error"&&this.JSC$16920_onErrorCallbacks_.push(E);return this};
var ML=function(v,E){E=v.indexOf(E);E>-1&&v.splice(E,1)};
Zn.prototype.removeListener=function(v,E){v=="data"?ML(this.onDataCallbacks_,E):v=="metadata"?ML(this.onMetadataCallbacks_,E):v=="status"?ML(this.onStatusCallbacks_,E):v=="end"?ML(this.onEndCallbacks_,E):v=="error"&&ML(this.JSC$16920_onErrorCallbacks_,E);return this};
Zn.prototype.cancel=function(){this.JSC$16920_xhr_.abort()};
var O71=function(v,E){for(var n=0;n<v.onDataCallbacks_.length;n++)v.onDataCallbacks_[n](E)},uwK=function(v,E){for(var n=0;n<v.onMetadataCallbacks_.length;n++)v.onMetadataCallbacks_[n](E)},Cb=function(v,E){for(var n=0;n<v.JSC$16920_onErrorCallbacks_.length;n++)v.JSC$16920_onErrorCallbacks_[n](E)};
Zn.prototype.cancel=Zn.prototype.cancel;Zn.prototype.removeListener=Zn.prototype.removeListener;Zn.prototype.on=Zn.prototype.on;var NQR=function(){var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.S(NQR,Error);var SF=function(v){this.JSC$16929_worker_=v.worker||null;this.JSC$16929_streamBinaryChunks_=v.streamBinaryChunks||!1;this.JSC$16929_credentialsMode_=void 0};
_.tf(SF,_.cvN);SF.prototype.createInstance=function(){var v=new U3(this.JSC$16929_worker_,this.JSC$16929_streamBinaryChunks_);this.JSC$16929_credentialsMode_&&v.setCredentialsMode(this.JSC$16929_credentialsMode_);return v};
SF.prototype.setCredentialsMode=function(v){this.JSC$16929_credentialsMode_=v};
var U3=function(v,E){_.mP.call(this);this.JSC$16933_worker_=v;this.JSC$16933_streamBinaryChunks_=E;this.JSC$16933_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$16933_responseHeaders_=null;this.JSC$16933_method_="GET";this.JSC$16933_url_="";this.inProgress_=!1;this.JSC$16933_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.tf(U3,_.mP);U3.prototype.open=function(v,E){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$16933_method_=v;this.JSC$16933_url_=E;this.readyState=1;qL(this)};
U3.prototype.send=function(v){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var E={headers:this.requestHeaders_,method:this.JSC$16933_method_,credentials:this.JSC$16933_credentialsMode_,cache:void 0};v&&(E.body=v);(this.JSC$16933_worker_||_.n1).fetch(new Request(this.JSC$16933_url_,E)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
U3.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,JB(this));this.readyState=0};
U3.prototype.handleResponse_=function(v){if(this.inProgress_&&(this.fetchResponse_=v,this.JSC$16933_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16933_responseHeaders_=v.headers,this.readyState=2,qL(this)),this.inProgress_&&(this.readyState=3,qL(this),this.inProgress_)))if(this.responseType==="arraybuffer")v.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.n1.ReadableStream!==
"undefined"&&"body"in v){this.currentReader_=v.body.getReader();if(this.JSC$16933_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$16933_textDecoder_=new TextDecoder;$l6(this)}else v.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var $l6=function(v){v.currentReader_.read().then(v.handleDataFromStream_.bind(v)).catch(v.handleSendFailure_.bind(v))};
U3.prototype.handleDataFromStream_=function(v){if(this.inProgress_){if(this.JSC$16933_streamBinaryChunks_&&v.value)this.response.push(v.value);else if(!this.JSC$16933_streamBinaryChunks_){var E=v.value?v.value:new Uint8Array(0);if(E=this.JSC$16933_textDecoder_.decode(E,{stream:!v.done}))this.response=this.responseText+=E}v.done?JB(this):qL(this);this.readyState==3&&$l6(this)}};
U3.prototype.handleResponseText_=function(v){this.inProgress_&&(this.response=this.responseText=v,JB(this))};
U3.prototype.handleResponseArrayBuffer_=function(v){this.inProgress_&&(this.response=v,JB(this))};
U3.prototype.handleSendFailure_=function(){this.inProgress_&&JB(this)};
var JB=function(v){v.readyState=4;v.fetchResponse_=null;v.currentReader_=null;v.JSC$16933_textDecoder_=null;qL(v)};
U3.prototype.setRequestHeader=function(v,E){this.requestHeaders_.append(v,E)};
U3.prototype.getResponseHeader=function(v){return this.JSC$16933_responseHeaders_?this.JSC$16933_responseHeaders_.get(v.toLowerCase())||"":""};
U3.prototype.getAllResponseHeaders=function(){if(!this.JSC$16933_responseHeaders_)return"";for(var v=[],E=this.JSC$16933_responseHeaders_.entries(),n=E.next();!n.done;)n=n.value,v.push(n[0]+": "+n[1]),n=E.next();return v.join("\r\n")};
U3.prototype.setCredentialsMode=function(v){this.JSC$16933_credentialsMode_=v};
var qL=function(v){v.onreadystatechange&&v.onreadystatechange.call(v)};
Object.defineProperty(U3.prototype,"withCredentials",{get:function(){return this.JSC$16933_credentialsMode_==="include"},
set:function(v){this.setCredentialsMode(v?"include":"same-origin")}});var LIO=function(v){var E="";_.sh.forEach(v,function(n,f){E+=f;E+=":";E+=n;E+="\r\n"});
return E},GK0=function(v,E,n){if(_.sh.isEmpty(n))return v;
n=LIO(n);if(typeof v==="string")return _.VS(v,_.dB(E),n);_.KT(v,E,n);return v};var TQK=function(){this.isInputValid_=!0;this.JSC$16939_streamPos_=0;this.leftoverInput_=""};
TQK.prototype.isInputValid=function(){return this.isInputValid_};var ce=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16942_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ce.prototype.isInputValid=function(){return this.state_!=3};
var Kb=function(v,E,n,f){v.state_=3;v.errorMessage_="The stream is broken @"+v.JSC$16942_streamPos_+"/"+n+". Error: "+f+". With input:\n"+E;throw Error(v.errorMessage_);};
ce.prototype.acceptsBinaryInput=function(){return!0};
ce.prototype.parse=function(v){function E(F){F&128&&Kb(y,Q,e,"invalid tag");(F&7)!=2&&Kb(y,Q,e,"invalid wire type");y.tag_=F>>>3;y.tag_!=1&&y.tag_!=2&&y.tag_!=15&&Kb(y,Q,e,"unexpected tag");y.state_=1;y.length_=0;y.countLengthBytes_=0}
function n(F){y.countLengthBytes_++;y.countLengthBytes_==5&&F&240&&Kb(y,Q,e,"message length too long");y.length_|=(F&127)<<(y.countLengthBytes_-1)*7;F&128||(y.state_=2,y.countMessageBytes_=0,typeof Uint8Array!=="undefined"?y.messageBuffer_=new Uint8Array(y.length_):y.messageBuffer_=Array(y.length_),y.length_==0&&x())}
function f(F){y.messageBuffer_[y.countMessageBytes_++]=F;y.countMessageBytes_==y.length_&&x()}
function x(){if(y.tag_<15){var F={};F[y.tag_]=y.messageBuffer_;y.result_.push(F)}y.state_=0}
for(var y=this,Q=v instanceof Array?v:new Uint8Array(v),e=0;e<Q.length;){switch(y.state_){case 3:Kb(y,Q,e,"stream already broken");break;case 0:E(Q[e]);break;case 1:n(Q[e]);break;case 2:f(Q[e]);break;default:throw Error("Nj`"+y.state_);}y.JSC$16942_streamPos_++;e++}v=y.result_;y.result_=[];return v.length>0?v:null};var xOR=function(){this.errorMessage_=null;this.JSC$16945_streamPos_=0;this.base64Decoder_=new TQK;this.pbParser_=new ce};
xOR.prototype.isInputValid=function(){return this.errorMessage_===null};
var i7O=function(v,E,n){v.errorMessage_="The stream is broken @"+v.JSC$16945_streamPos_+". Error: "+n+". With input:\n"+E;throw Error(v.errorMessage_);};
xOR.prototype.acceptsBinaryInput=function(){return!1};
xOR.prototype.parse=function(v){this.errorMessage_!==null&&i7O(this,v,"stream already broken");var E=null;try{var n=this.base64Decoder_;if(!n.isInputValid_)throw n.isInputValid_=!1,Error("Mj`"+n.JSC$16939_streamPos_+"`stream already broken`"+v);n.leftoverInput_+=v;var f=Math.floor(n.leftoverInput_.length/4);if(f==0)var x=null;else{try{var y=_.ff9(n.leftoverInput_.slice(0,f*4))}catch(F){var Q=n.leftoverInput_,e=F.message;n.isInputValid_=!1;throw Error("Mj`"+n.JSC$16939_streamPos_+"`"+e+"`"+Q);}n.JSC$16939_streamPos_+=
f*4;n.leftoverInput_=n.leftoverInput_.slice(f*4);x=y}E=x===null?null:this.pbParser_.parse(x)}catch(F){i7O(this,v,F.message)}this.JSC$16945_streamPos_+=v.length;return E};var fmC=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16948_streamPos_=0;this.result_=[];this.statusParsed_=!1};
fmC.prototype.isInputValid=function(){return this.errorMessage_===null};
fmC.prototype.acceptsBinaryInput=function(){return!1};
fmC.prototype.parse=function(v){function E(F){y.state_=6;y.errorMessage_="The stream is broken @"+y.JSC$16948_streamPos_+"/"+Q+". Error: "+F+". With input:\n";throw Error(y.errorMessage_);}
function n(){y.jsonStreamParser_=new _.zQ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function f(F){if(F)for(var b=0;b<F.length;b++){var l={};l[1]=F[b];y.result_.push(l)}}
function x(F){if(F){(y.statusParsed_||F.length>1)&&E("extra status: "+F);y.statusParsed_=!0;var b={};b[2]=F[0];y.result_.push(b)}}
for(var y=this,Q=0;Q<v.length;){var e;if(e=y.state_!==2){a:{for(;Q<v.length;){if(!_.i3(v[Q])){e=!0;break a}Q++;y.JSC$16948_streamPos_++}e=!1}e=!e}if(e)return null;switch(y.state_){case 6:E("stream already broken");break;case 0:v[Q]==="["?(y.state_=1,Q++,y.JSC$16948_streamPos_++):E("unexpected input token");break;case 1:v[Q]==="["?(y.state_=2,n()):v[Q]===","||v.slice(Q,Q+5)=="null,"?y.state_=3:v[Q]==="]"?(y.state_=5,Q++,y.JSC$16948_streamPos_++):E("unexpected input token");break;case 2:e=y.jsonStreamParser_.parse(v.substring(Q));
f(e);y.jsonStreamParser_.done()?(y.state_=3,e=y.jsonStreamParser_.JSC$9280_buffer_,y.JSC$16948_streamPos_+=v.length-Q-e.length,v=e,Q=0):(y.JSC$16948_streamPos_+=v.length-Q,Q=v.length);break;case 3:v[Q]===","||v.slice(Q,Q+5)=="null,"?(y.state_=4,n(),y.jsonStreamParser_.parse("["),Q+=v[Q]===","?1:5,y.JSC$16948_streamPos_++):v[Q]==="]"&&(y.state_=5,Q++,y.JSC$16948_streamPos_++);break;case 4:e=y.jsonStreamParser_.parse(v.substring(Q));x(e);y.jsonStreamParser_.done()?(y.state_=5,e=y.jsonStreamParser_.JSC$9280_buffer_,
y.JSC$16948_streamPos_+=v.length-Q-e.length,v=e,Q=0):(y.JSC$16948_streamPos_+=v.length-Q,Q=v.length);break;case 5:E("extra input after stream end")}}return y.result_.length>0?(v=y.result_,y.result_=[],v):null};var z6x=function(v){this.JSC$16951_xhr_=v;this.JSC$16951_parser_=null;this.status_=this.JSC$16951_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16951_textDecoder_=null;this.JSC$16951_eventHandler_=new _.u$(this);this.JSC$16951_eventHandler_.listen(this.JSC$16951_xhr_,"readystatechange",this.JSC$16953_readyStateChangeHandler_)},d3=function(v,E){v.status_!=E&&(v.status_=E,v.statusHandler_&&v.statusHandler_())},I8=function(v){v.JSC$16951_eventHandler_.removeAll();
if(v.JSC$16951_xhr_){var E=v.JSC$16951_xhr_;v.JSC$16951_xhr_=null;E.abort();E.dispose()}};
z6x.prototype.getStatus=function(){return this.status_};
z6x.prototype.JSC$16953_readyStateChangeHandler_=function(v){v=v.target;try{if(v==this.JSC$16951_xhr_)a:{var E=_.Cy(this.JSC$16951_xhr_),n=this.JSC$16951_xhr_.JSC$7688_lastErrorCode_,f=this.JSC$16951_xhr_.getStatus(),x=this.JSC$16951_xhr_.getResponseText();v=[];if(this.JSC$16951_xhr_.getResponse()instanceof Array){var y=this.JSC$16951_xhr_.getResponse();y.length>0&&y[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,v=y)}if(!(E<3||E==3&&!x&&v.length==0))if(f=f==200||f==206,E==4&&(n==8?d3(this,
7):n==7?d3(this,8):f||d3(this,3)),this.JSC$16951_parser_||(this.JSC$16951_parser_=cKK(this.JSC$16951_xhr_),this.JSC$16951_parser_==null&&d3(this,5)),this.status_>2)I8(this);else{if(v.length>this.JSC$16951_pos_){var Q=v.length;n=[];try{if(this.JSC$16951_parser_.acceptsBinaryInput())for(var e=0;e<Q;e++){var F=this.JSC$16951_parser_.parse(Array.from(v[e]));F&&(n=n.concat(F))}else{F="";if(!this.JSC$16951_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$16951_textDecoder_=new TextDecoder}for(e=
0;e<Q;e++)F+=this.JSC$16951_textDecoder_.decode(v[e],{stream:E==4&&e==Q-1});n=this.JSC$16951_parser_.parse(F)}v.splice(0,Q);n&&this.dataHandler_(n)}catch(l){d3(this,5);I8(this);break a}}else if(x.length>this.JSC$16951_pos_){e=x.slice(this.JSC$16951_pos_);this.JSC$16951_pos_=x.length;try{var b=this.JSC$16951_parser_.parse(e);b!=null&&this.dataHandler_&&this.dataHandler_(b)}catch(l){d3(this,5);I8(this);break a}}E==4?(x.length!=0||this.hasStreamingResponseData_?d3(this,2):d3(this,4),I8(this)):d3(this,
1)}}}catch(l){d3(this,6),I8(this)}};var R6C=function(v){v=this.xhrReader_=v;var E=(0,_.XV)(this.onData_,this);v.dataHandler_=E;v=this.xhrReader_;E=(0,_.XV)(this.onStatusChange_,this);v.statusHandler_=E;this.JSC$16955_callbackMap_={};this.callbackOnceMap_={}};
_.c=R6C.prototype;_.c.on=function(v,E){var n=this.JSC$16955_callbackMap_[v];n||(n=[],this.JSC$16955_callbackMap_[v]=n);n.push(E);return this};
_.c.addListener=function(v,E){this.on(v,E);return this};
_.c.removeListener=function(v,E){var n=this.JSC$16955_callbackMap_[v];n&&_.zs(n,E);(v=this.callbackOnceMap_[v])&&_.zs(v,E);return this};
_.c.once=function(v,E){var n=this.callbackOnceMap_[v];n||(n=[],this.callbackOnceMap_[v]=n);n.push(E);return this};
_.c.onData_=function(v){var E=this.JSC$16955_callbackMap_.data;E&&tSp(v,E);(E=this.callbackOnceMap_.data)&&tSp(v,E);this.callbackOnceMap_.data=[]};
var tSp=function(v,E){for(var n={},f=0;f<v.length;n={message$jscomp$969:void 0},f++)n.message$jscomp$969=v[f],E.forEach(function(x){return function(y){try{y(x.message$jscomp$969)}catch(Q){}}}(n))};
R6C.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:BQx(this,"readable");break;case 5:case 6:case 4:case 7:case 3:BQx(this,"error");break;case 8:BQx(this,"close");break;case 2:BQx(this,"end")}};
var BQx=function(v,E){var n=v.JSC$16955_callbackMap_[E];n&&n.forEach(function(f){try{f()}catch(x){}});
(n=v.callbackOnceMap_[E])&&n.forEach(function(f){f()});
v.callbackOnceMap_[E]=[]};var vCU=function(){var v={format:"jspb"};v=v===void 0?{}:v;this.suppressCorsPreflight=v.suppressCorsPreflight||_.JM("suppressCorsPreflight",v)||!1;this.withCredentials=v.withCredentials||_.JM("withCredentials",v)||!1;this.streamInterceptors=v.streamInterceptors||[];this.unaryInterceptors=v.unaryInterceptors||[];this.workerScope=v.workerScope;this.chunkedServerStreaming=v.useFetchDownloadStreams||!1},oCp=function(v,E,n,f,x,y){y=y===void 0?{}:y;
var Q=E.substring(0,E.length-x.name.length),e,F=(e=y)==null?void 0:e.signal;return ECC(function(b){return new Promise(function(l,r){if(F==null?0:F.aborted){var a=new _.PF(1,"Aborted");a.cause=F.reason;r(a)}else{var M={},U=nCx(v,b,Q);U.on("error",function(d){return void r(d)});
U.on("metadata",function(d){M=d});
U.on("data",function(d){var Y=M;Y=Y===void 0?{}:Y;l(new suO(d,Y))});
F&&F.addEventListener("abort",function(){U.cancel();var d=new _.PF(1,"Aborted");d.cause=F.reason;r(d)})}})},v.unaryInterceptors).call(v,rF0(x,n,f)).then(function(b){return b.responseMessage})},YP=function(v,E,n,f,x){var y=y===void 0?{}:y;
return oCp(v,E,n,f,x,y)};
vCU.prototype.serverStreaming=function(v,E,n,f){var x=this,y=v.substring(0,v.length-f.name.length);return fEU(function(Q){var e=Q.methodDescriptor,F=Q.getMetadata(),b=xoU(x,!1);F=cyb(x,F,b,y+e.getName());var l=yyC(b,e.responseDeserializeFn,!0);Q=e.requestSerializeFn(Q.requestMessage);b.send(F,"POST",Q);return l},this.streamInterceptors).call(this,rF0(f,E,n))};
var nCx=function(v,E,n){var f=E.methodDescriptor,x=E.getMetadata(),y=xoU(v,!0);v=cyb(v,x,y,n+f.getName());n=yyC(y,f.responseDeserializeFn,!1);WIK(n,x["X-Goog-Encode-Response-If-Executable"]==="base64");E=f.requestSerializeFn(E.requestMessage);y.send(v,"POST",E);return n},xoU=function(v,E){E=v.chunkedServerStreaming&&!E;
return v.workerScope||E?new _.Zr(new SF({worker:v.workerScope,streamBinaryChunks:E})):new _.Zr},cyb=function(v,E,n,f){E["Content-Type"]="application/json+protobuf";
E["X-User-Agent"]="grpc-web-javascript/0.1";var x=E.Authorization;if(x&&VSd.has(x.split(" ")[0])||v.withCredentials)n.JSC$7688_withCredentials_=!0;if(v.suppressCorsPreflight)f=GK0(f,"$httpHeaders",E);else for(v=_.p(Object.keys(E)),x=v.next();!x.done;x=v.next())x=x.value,n.headers.set(x,E[x]);return f},yyC=function(v,E,n){if(n){n=new z6x(v);
var f=new R6C(n)}return new Zn({xhr:v,nodeReadableStream:f},E)},fEU=function(v,E){return E.reduce(function(n,f){return function(x){return f.intercept(x,n)}},v)},ECC=function(v,E){return E.reduce(function(n,f){return function(x){return f.intercept(x,n)}},v)};var pjb=function(v){this.client_=new vCU;this.hostname_=v==void 0?v:v.replace(/\/+$/,"")};
_.c=pjb.prototype;_.c.JSC$16974_depositGoogleCredential=function(v,E){return YP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",v,E||{},CS6)};
_.c.deleteLink=function(v,E){return YP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",v,E||{},ak_)};
_.c.JSC$16974_finishOAuth=function(v,E){return YP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",v,E||{},SIb)};
_.c.getLink=function(v,E){return YP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",v,E||{},UlO)};
_.c.startLinkingSession=function(v,E){return YP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",v,E||{},AFb)};var QVd=[0,Mwd,1,qdO,[0,_.Oa,[0,Sd_,-1]],[0,UqR],[0,Jqb,-1]];var XjC=function(){this.storage=new Map},FHx=function(v,E,n,f,x){if(!v.storage.has(E))return null;
v=_.p(v.storage.get(E));for(E=v.next();!E.done;E=v.next())if(E=E.value,!x||E.linkName===x)if(n&&E.scopes&&eUM(E.scopes,n)||f&&E.capabilities&&eUM(E.capabilities,f))return E;return null},moO=function(v,E,n){if(!n)v.storage.delete(E);
else if(v.storage.has(E)){var f=v.storage.get(E).filter(function(x){return x.linkName!==n});
f.length>0?v.storage.set(E,f):v.storage.delete(E)}},eUM=function(v,E){E=_.p(E);
for(var n=E.next();!n.done;n=E.next())if(!v.has(n.value))return!1;return!0};var wjK=function(){var v=_.MX("LINK_GAL_DOMAIN");this.alsDomain1p=_.MX("LINK_GAL_DOMAIN");this.alsDomain3p=v;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},bUM=function(v,E){v.apiKey=E;
return v};
wjK.prototype.build=function(){var v={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");v.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");v.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(v.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)v.apiKey=
this.apiKey,v.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");v.oauthToken=this.oauthToken;v.alsDomain=this.alsDomain3p}v.clientXd3=this.clientXd3;v.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(v.authUser=this.authUser);this.bucket!==void 0&&(v.bucket=this.bucket);this.completionUrl!==void 0&&(v.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(v.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(v.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(v.locale=this.locale);v.loggerType=this.loggerType;v.clientEnvironment=this.clientEnvironment;v.colorScheme=this.colorScheme;v.showCloseOption=this.showCloseOption;return v};var yM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(yM,_.Vj);var lE3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(lE3,_.Vj);var sVb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(sVb,_.Vj);var QM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(QM,_.Vj);var ryO=function(v){return _.Ua(v,1)};var PTC=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(PTC,_.Vj);var mO0=_.RK(PTC),p8=[1,2,3,4,5];var QSC=function(v){try{return mO0(v)}catch(E){return null}},aEx=function(){},XZC=function(v,E){switch(_.lN(E,p8)){case 4:return(E=_.K9(E,sVb,4,p8))&&v.logStateTransition(_.Ua(E,1)),!0;
case 5:return(E=_.K9(E,lE3,5,p8))&&v.logInternalEvent(_.Ua(E,1)),!0}return!1},wZO=function(v){switch(v){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.p0(v)}};var yKO=function(v,E){var n=this;this.validator=v;this.messageListener=E;this.dismissCallback=function(){ZU_(n,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17003_receiveMessage=function(f){f.type==="message"&&(f=f.event_,f!==null&&(new URL(n.iframe.src)).origin===f.origin&&n.validator(f.data,f.origin)&&!n.messageListener(f.data)&&(n.JSC$17003_resolveCb!==void 0&&n.JSC$17003_resolveCb(f.data),CTx(n)))}},Ftd=function(v,E,n){v.uiHandler!==void 0&&ZU_(v,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(f,x){v.JSC$17003_resolveCb=f;v.JSC$17003_rejectCb=x;v.iframe=document.createElement("iframe");_.qa(v.iframe,E);v.uiHandler=n.displayContent(v.iframe,v.dismissCallback);_.v8(window,"message",v.JSC$17003_receiveMessage,!1,v)})},ZU_=function(v,E){v.JSC$17003_rejectCb!==void 0&&v.JSC$17003_rejectCb(E);
CTx(v)},CTx=function(v){v.uiHandler!==void 0&&v.uiHandler.hideContent();
_.FX(window,"message",v.JSC$17003_receiveMessage,!1,v);v.JSC$17003_resolveCb=void 0;v.JSC$17003_rejectCb=void 0;v.uiHandler=void 0;v.iframe=void 0};var MhO=function(v){if(v===2){var E;v=((E=window)==null?0:E.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return v},efR=function(v){v=MhO(v);
switch(v){case 0:return"light";case 1:return"dark";default:_.p0(v)}};var pZx=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),S_b=function(v,E){this.JSC$17015_linkingSession=v;this.noticeConfig=E;this.displayInfoMap=new Map;var n=new Map;if(_.FB(this.JSC$17015_linkingSession,KI1,7))for(v=_.j5(this.JSC$17015_linkingSession,KI1,7),v=_.kr(v,JFb,1,_.WV()),v=_.p(v),E=v.next();!E.done;E=v.next())E=E.value,n.set(_.Ua(E,1),_.LAI(_.j5(E,_.QvG,3)));if(n.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){E=this.noticeConfig.enabledDataUsageNoticeUis;v=E.has(0)?n.get(1):void 0;E=E.has(1)?n.get(2):void 0;n=v!==void 0&&E!==void 0?n.get(3):void 0;var f=this.noticeConfig.nestedOrigins;var x=new PTC;var y=new yM;x=_.v5(x,2,p8,y);y=new PTC;var Q=new yM;y=_.v5(y,3,p8,Q);Q=[];v!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:v,lastEvent:x,nestedOrigins:f}]),Q.push({trustedUrl:v,lastEvent:x,nestedOrigins:f}));E!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:E,lastEvent:y,nestedOrigins:f}]),Q.push({trustedUrl:E,lastEvent:y,nestedOrigins:f}));n!==void 0?this.displayInfoMap.set(3,[{trustedUrl:n,lastEvent:y,nestedOrigins:f}]):this.displayInfoMap.set(3,Q)}};var UoP=function(v){var E=new XjC;this.galService=v;this.galCache=E};
UoP.prototype.getLink=function(v){var E=v.serviceId;var n=v.scopes;var f=v.capabilities;var x=v.linkName;var y=this,Q;return _.X(function(e){if(f!==void 0&&n!==void 0)throw Error("Tj");Q=FHx(y.galCache,E,n,f,x);return Q!==null?e.return(Q):e.return(y.galService.getLink({serviceId:E,sessionId:Math.floor(Math.random()*2147483648),scopes:n,capabilities:f,linkName:x}).then(function(F){F=P$O(F);var b=y.galCache;b.storage.has(E)?b.storage.get(E).push(F):b.storage.set(E,[F]);return F}))})};
UoP.prototype.deleteLink=function(v,E,n){var f=this;return _.X(function(x){moO(f.galCache,v,n);return x.return(f.galService.deleteLink({serviceId:v,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:E,linkName:n}).then(function(){return!0}))})};var JyP=function(v,E){var n=this;this.validator=v;this.msgHandler=E;this.closedPopupTimeout=this.JSC$17037_rejectCb=this.JSC$17037_resolveCb=this.popup=null;this.JSC$17037_receiveMessage=function(f){if(f!==null&&(f=f.event_,f.source===n.popup)){var x=f.data;if(n.validator(x,f.origin)){var y;(y=n.msgHandler)!=null&&y.call(n,x)||(n.JSC$17037_resolveCb!==null&&n.JSC$17037_resolveCb(x),q_p(n))}}}};
JyP.prototype.open=function(v,E){var n=this;this.popup!==null&&KHU(this);return new Promise(function(f,x){n.JSC$17037_resolveCb=f;n.JSC$17037_rejectCb=x;n.popup=_.Kc(window,v,"",E);_.v8(window,"message",n.JSC$17037_receiveMessage,!1,n);do3(n)})};
var KHU=function(v,E){v.JSC$17037_rejectCb!==null&&v.JSC$17037_rejectCb(E);q_p(v)},q_p=function(v){v.closedPopupTimeout&&(v.closedPopupTimeout.cancel(),v.closedPopupTimeout=null);
v.popup&&v.popup.close();_.FX(window,"message",v.JSC$17037_receiveMessage,!1,v);v.popup=null;v.JSC$17037_resolveCb=null;v.JSC$17037_rejectCb=null},do3=function(v){v.closedPopupTimeout=_.ghU(100).then(function(){v.popup?v.popup.closed?IEK(v):do3(v):KHU(v,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},IEK=function(v){v.closedPopupTimeout=_.ghU(100).then(function(){KHU(v,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Y__=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),hUP=function(v,E,n,f,x,y,Q,e,F,b){var l=this;this.serviceId=v;this.sessionId=E;this.galService=n;this.oauthDetails=f;this.galLogger=x;this.interactionMode=y;this.redirectServiceUrl=Q;this.consentLanguageKeys=e;this.dynamicUrlParameters=F;this.partnerConfigMinReadTimestamp=b;this.started=!1;this.JSC$17043_dataValidator=function(r,
a){var M=Y__.has(a);M||l.redirectServiceUrl===void 0||(M=l.redirectServiceUrl===a);return M?r.sentinel==="gdi":!1}};
hUP.prototype.complete=function(){var v=this,E;return _.X(function(n){if(v.interactionMode!==1)return n.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=eJ.getRedirectStateFromUri();return E===null?n.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):n.return(Ayb(v,E))})};
hUP.prototype.start=function(){var v=this,E;return _.X(function(n){if(v.started)return n.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Sf(v.oauthDetails,1))return n.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(v.interactionMode===1)return eJ.setLocation(_.Sf(v.oauthDetails,1)),n.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));v.started=!0;v.galLogger.logStateTransition(5);
E=eJ.getPostMessagePopup(v.JSC$17043_dataValidator);return n.return(E.open(_.Sf(v.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(f){v.started=!1;var x=v.galLogger;if((f==null?void 0:f.error)!==void 0)throw x.logInternalEvent(59),Error("Uj");if((f==null?void 0:f.redirect_state)===void 0)throw x.logInternalEvent(131),Error("Vj");return Ayb(v,f.redirect_state)}).catch(function(f){v.started=
!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Ayb=function(v,E){return _.X(function(n){return n.return(VhM(v.galService,{serviceId:v.serviceId,sessionId:v.sessionId,dynamicUrlParameters:v.dynamicUrlParameters,redirectState:E,consentLanguageKeys:v.consentLanguageKeys,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp}).then(function(f){var x={statusCode:1,link:P$O(f.getLink())};w7_(_.wO(f,3))!==void 0&&(x.callerState=w7_(_.wO(f,3)));v.galLogger.logInternalEvent(134);return x}))})},eJ={getPostMessagePopup:function(v){return new JyP(v)},
getRedirectStateFromUri:function(){var v=_.qE(eJ.getLocation()).fragment_;return(new _.RW(v)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(v){_.jc(window.location,_.bW(v))},
createOAuthFlow:function(v,E){return new hUP(v.serviceId,v.sessionId,v.galService,E,v.galLogger,v.interactionMode,v.redirectServiceUrl,v.consentLanguageKeys,v.dynamicUrlParameters,v.partnerConfigMinReadTimestamp)}};var Dop=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Dop,_.Vj);var HUR=_.RK(Dop);var gCR=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),NNx=function(v,E,n,f,x,y,Q,e,F){var b=this;this.serviceId=v;this.sessionId=E;this.galService=n;this.gsiWebFlowDetails=f;this.colorScheme=x;this.showCloseOption=y;this.galLogger=Q;this.interactionMode=e;this.redirectServiceUrl=F;this.started=!1;this.JSC$17055_dataValidator=function(l,r){var a=gCR.has(r);a||b.redirectServiceUrl===
void 0||(a=b.redirectServiceUrl===r);return a?l.sentinel==="gal":!1};
this.logEventProcessor=function(l){return l.result?(l=QSC(l.result))?XZC(b.galLogger,l):!1:!1}};
NNx.prototype.complete=function(){var v=this,E,n;return _.X(function(f){if(v.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=Fv.getRedirectStateFromUri();if(E===void 0)return v.galLogger.JSC$16995_logErrorEvent(131),f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return n=uHK(v,E),f.return(jV1(v,n))}catch(x){return f.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
NNx.prototype.start=function(){var v=this,E;return _.X(function(n){if(v.started)return n.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Sf(v.gsiWebFlowDetails,1))return n.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(v.interactionMode===1)return Fv.setLocation(OUd(v,_.Sf(v.gsiWebFlowDetails,1))),n.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
v.started=!0;E=Fv.getPostMessagePopup(v.JSC$17055_dataValidator,v.logEventProcessor);return n.return(E.open(OUd(v,_.Sf(v.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(f){v.started=!1;if((f==null?void 0:f.result)===void 0)throw v.galLogger.JSC$16995_logErrorEvent(131),Error("Vj");f=uHK(v,f.result);return jV1(v,f)}).catch(function(f){v.started=!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var OUd=function(v,E){v=["result_channel",v.interactionMode===1?"2":"1","color_scheme",efR(v.colorScheme),"show_close_option",v.showCloseOption];return Ydx(E,v)},jV1=function(v,E){if(E!==null&&_.FB(E,QM,2)){var n,f=E==null?void 0:(n=_.j5(E,QM,2))==null?void 0:_.Ua(n,2);
f&&v.galLogger.JSC$16995_logErrorEvent(wZO(f));return ryO(_.j5(E,QM,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 v.galService.getLink({serviceId:v.serviceId,sessionId:v.sessionId,consistencyKey:_.Sf(E,1)}).then(function(x){x=P$O(x);v.galLogger.logInternalEvent(134);return{statusCode:1,link:x}})},uHK=function(v,E){E=HUR(E);
if(!_.FB(E,QM,2)&&_.Sf(E,1)==="")throw v.galLogger.JSC$16995_logErrorEvent(5),Error("Wj");return E},Fv={getPostMessagePopup:function(v,E){return new JyP(v,E)},
getRedirectStateFromUri:function(){return _.J7(_.qE(Fv.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(v){_.jc(window.location,_.bW(v))},
createStreamlinedFlow:function(v,E){return new NNx(v.serviceId,v.sessionId,v.galService,E,v.colorScheme,v.showCloseOption,v.galLogger,v.interactionMode,v.redirectServiceUrl)}};var V$6=function(){var v=_.JQA("GAL");this.storage=v?new _.pE(v):null};var hB=function(){};
_.S(hB,aEx);hB.prototype.logStateTransition=function(){};
hB.prototype.logInternalEvent=function(){};
hB.prototype.JSC$16995_logErrorEvent=function(){};var kkx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(kkx,_.Vj);kkx.prototype.getCompletionUrl=function(){return _.Sf(this,15)};var AB=function(v,E,n,f,x,y){this.serviceId=v;this.environment=E;this.sessionId=n;this.colorSchemeSelected=f;this.colorThemeDisplayed=x;this.JSC$17068_transport=y;this.currentState=1};
_.S(AB,aEx);AB.prototype.logStateTransition=function(v){var E=WHU(this);E=_.OH(E,3,this.currentState);E=_.OH(E,1,v);this.currentState=v;v=$ud(1);this.dispatch(E,v)};
AB.prototype.logInternalEvent=function(v){v=$ud(v);this.dispatch(WHU(this),v)};
AB.prototype.JSC$16995_logErrorEvent=function(v){var E=WHU(this);E=_.OH(E,1,10);v=$ud(v);this.dispatch(E,v)};
var WHU=function(v){var E=new kkx;E=_.OH(E,1,v.currentState);E=_.ps(E,7,v.serviceId);var n,f;var x=((n=window)==null?0:(f=n.location)==null?0:f.href)?_.qE(window.location.href).JSC$7925_domain_:"NO_PACKAGE_NAME";n=_.ps(E,8,x);n=_.OH(n,6,v.environment);n=_.ps(n,5,"100");n=_.OH(n,11,v.colorSchemeSelected);return _.OH(n,12,v.colorThemeDisplayed)};
AB.prototype.dispatch=function(v,E){E===void 0&&(E=new _.Eo);var n=E;v=v.serialize();n=_.ps(n,8,v);_.f3(n,12,this.sessionId);this.JSC$17068_transport.dispatch(E)};var $o0=function(v,E){this.loggerType=v;this.sessionIndex=E!=null?E:0},LH_;
$o0.prototype.create=function(v,E,n,f,x){switch(this.loggerType){case 0:return new hB;case 1:return LH_||(LH_=(new _.tJ(555,this.sessionIndex.toString())).build()),new AB(v,E,n,f,x,LH_);default:_.p0(this.loggerType,"unknown logger type")}};var mO=[6,2,3,1],ucO=new Map([[4,1],[1,6],[2,2],[3,3]]),M$b={statusCode:7,statusMessage:"Failed to create flow object"},hfO=function(v,E,n,f,x,y,Q,e,F,b){this.serviceId=v;this.sessionId=E;this.config=n;this.galService=f;this.JSC$17075_linkingSession=x;this.googleScopes=y;this.callerState=Q;this.consentLanguageKeys=e;this.dynamicUrlParameters=F;this.partnerConfigMinReadTimestamp=b;this.currentFlow=0;f=this.JSC$17075_linkingSession;x=new Set;_.FB(f,KtC,1)&&x.add(1);_.FB(f,Ikp,2)&&_.FB(f,dO6,6)&&x.add(2);
_.FB(f,dlb,3)&&_.FB(f,dO6,6)&&x.add(3);_.FB(f,qIx,4)&&x.add(6);this.supportedFlows=x;f=n.loggerType;x=n.clientEnvironment;a:{y=n.colorScheme;switch(y){case 0:y=1;break a;case 1:y=2;break a;case 2:y=3;break a;default:_.p0(y)}y=void 0}a:{Q=n.colorScheme;Q=MhO(Q);switch(Q){case 0:Q=1;break a;case 1:Q=2;break a;default:_.p0(Q)}Q=void 0}this.galLogger=(new $o0(f,n.authUser)).create(v,x,E,y,Q)},TNO=function(v){return new Promise(function(E){var n,f,x,y,Q,e,F,b,l,r;
return _.X(function(a){switch(a.nextAddress){case 1:n=ImP(v.currentFlow,v.supportedFlows),f=!1,x=new S_b(v.JSC$17075_linkingSession,v.config.dataUsageNoticeConfig);case 2:if(n===void 0){a.jumpTo(4);break}_.vW(a,5);var M=x,U=n,d=void 0;f?U===1&&(d=M.displayInfoMap.get(2)):U===2||U===3?d=M.displayInfoMap.get(1):U===1&&(d=M.displayInfoMap.get(3));y=d?d:[];Q=v.consentLanguageKeys;e=_.p(y);F=e.next();case 7:if(F.done)return v.currentFlow=n,_.m(a,UOR(GkP(v,Q)),11);b=F.value;return _.m(a,bVP(b,v.config.dataUsageNoticeConfig.uiAdapter,
v.config.colorScheme,v.galLogger),10);case 10:l=a.yieldResult;if(l.statusCode!==1)return DOP(v.serviceId),v.currentFlow=0,E(Xv({statusCode:l.statusCode,statusMessage:l.statusMessage},v.callerState)),a.return();l.consentLanguageKeys!==void 0&&(Q=l.consentLanguageKeys);F=e.next();a.jumpTo(7);break;case 11:r=a.yieldResult;if(r.statusCode!==10)return r.statusCode!==6&&(DOP(v.serviceId),v.currentFlow=0),r.statusCode!==1&&v.callerState!==void 0&&(r.callerState=v.callerState),E(r),a.return();_.qp(a,6);break;
case 5:_.cW(a);case 6:n=ImP(v.currentFlow,v.supportedFlows);f=!0;a.jumpTo(2);break;case 4:DOP(v.serviceId),v.currentFlow=0,E(Xv({statusCode:12,statusMessage:"Linking failed"},v.callerState)),_.yQ(a)}})})},g0d=function(v,E,n){v.currentFlow=E;
return q2O(GkP(v,n)).then(function(f){return f.statusCode===10&&v.config.interactionMode===1&&ImP(v.currentFlow,v.supportedFlows)!==void 0?TNO(v):f})},GkP=function(v,E){return{flowParams:{serviceId:v.serviceId,
sessionId:v.sessionId,galService:v.galService,galLogger:v.galLogger,interactionMode:v.config.interactionMode,redirectServiceUrl:v.config.redirectServiceUrl,colorScheme:v.config.colorScheme,consentLanguageKeys:E,dynamicUrlParameters:v.dynamicUrlParameters,showCloseOption:v.config.showCloseOption,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp},currentFlow:v.currentFlow,config:v.config,session:v.JSC$17075_linkingSession,googleScopes:v.googleScopes,callerState:v.callerState}};var zfR=function(v,E){this.config=v;this.galService=E.getService();this.JSC$17088_galRepository=E.JSC$17125_galRepository};
zfR.prototype.getLink=function(v,E){return iU0(this,v,E)};
var iU0=function(v,E,n){return v.JSC$17088_galRepository.getLink({serviceId:E,scopes:void 0,capabilities:void 0,linkName:n}).then(function(f){return{statusCode:1,link:f}}).catch(function(f){return{statusCode:jSb(f.code),
statusMessage:f.message}})};
zfR.prototype.deleteLink=function(v,E){return this.JSC$17088_galRepository.deleteLink(v,this.config.accountLinkingEntryPoint,E).then(function(){return{statusCode:1}}).catch(function(n){return{statusCode:jSb(n.code),
statusMessage:n.message}})};
zfR.prototype.startLinkingSession=function(v){var E=v.serviceId;var n=v.sessionId;return AK_({serviceId:E,sessionId:n!==void 0?n:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:v.loginHint,callerState:v.callerState,consentLanguageKeys:v.consentLanguageKeys,linkName:v.linkName,dynamicUrlParameters:v.dynamicUrlParameters,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp})};var OVC=null,Ltx=new WeakMap;var zUd=function(){};
zUd.prototype.send=function(v,E){iVp(v);return this.makeRequest(v).then(function(n){if(E){var f=new E;if(n!=null){if(E==null)throw Error("Yj");new E;throw Error("$j");}n=f}return n})};var RUR=function(v,E,n,f,x){this.gapiUrl=v;this.gapiKey=E;this.gapiConfigUpdates=n||{};this.gapiAuthParams=f||{};this.defaultApiId=x};
_.S(RUR,zUd);var BN3=function(v){return Wt_().then(function(E){E=E||window.gapi;thK(v,E);return T61(E,{apiKey:v.gapiKey,clientId:v.gapiAuthParams.clientId,scope:v.gapiAuthParams.scope,hostedDomain:v.gapiAuthParams.hostedDomain,fetchBasicProfile:v.gapiAuthParams.fetchBasicProfile}).then(function(){return E})})};
RUR.prototype.makeRequest=function(v){var E=this;return BN3(this).then(function(n){return _.X(function(f){if(f.nextAddress==1)return E.gapiAuthParams.minAuthTokenTimeRemaining===void 0?f.jumpTo(2):_.m(f,GqK(n,E.gapiAuthParams.minAuthTokenTimeRemaining),2);thK(E,n);return f.return(vJO(n.client.request({root:E.gapiUrl,path:v.path,method:v.httpMethod,body:v.body,params:v.queryParams,headers:v.headers,authType:v.authType,apiId:v.apiId||E.defaultApiId})))})})};
var vJO=function(v){return new Promise(function(E,n){v.then(function(f){E(f.result===!1&&f.body!=null?{data:f.body}:f.result)},function(f){n(f.result===!1&&f.body!=null?{data:f.body}:f.result)})})},thK=function(v,E){for(var n in v.gapiConfigUpdates)if(v.gapiConfigUpdates.hasOwnProperty(n)){var f=E,x=n,y=v.gapiConfigUpdates[n],Q=f.config.get(x);
y!==Q&&f.config.update(x,y)}};
RUR.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Vb=function(v,E,n,f,x,y,Q,e){this.apiKey=E;this.authUser=n;this.oauthToken=f;this.bucket=x;this.locale=Q;this.galSdkEventHandler=e;if(f===void 0){if(E===void 0)throw Error("ak");this.requestService=new RUR(v,E,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":y===void 0||y===!1,"client/xd3":y===!0})}this.galServiceClient=new pjb(v)};
Vb.prototype.deleteLink=function(v){var E=v.serviceId;var n=v.sessionId;var f=v.accountLinkingEntryPoint;var x=v.linkName;var y=this,Q;return _.X(function(e){var F=(new l4).setHeader(Dn(y,n));var b=EJK({serviceId:E,linkName:x});F=_.Bz(F,2,b);Q=_.IG(F,3,f);return e.return(y.makeRequest(y.galServiceClient.deleteLink,Q,[1,3],[2,4]))})};
var VhM=function(v,E){var n=E.serviceId;var f=E.sessionId;var x=E.dynamicUrlParameters;var y=E.redirectState;var Q=E.consentLanguageKeys;var e=E.partnerConfigMinReadTimestamp;var F;return _.X(function(b){var l=(new r3).setHeader(Dn(v,f,x));l=_.O_(l,2,n);F=_.O_(l,4,y);Q!==void 0&&_.O_(F,5,Q);e!==void 0&&_.Bz(F,6,e);return b.return(v.makeRequest(v.galServiceClient.JSC$16974_finishOAuth,F,[1,3],[2,4]))})};
Vb.prototype.getLink=function(v){var E=v.serviceId;var n=v.sessionId;var f=v.scopes;var x=v.capabilities;var y=v.consistencyKey;var Q=v.linkName;var e=this,F;return _.X(function(b){var l=(new PQ).setHeader(Dn(e,n)),r=EJK({serviceId:E,scopes:f,capabilities:x,linkName:Q});F=_.Bz(l,2,r);y!==void 0&&(l=mlP(),l=_.O_(l,2,y),_.Bz(F,3,l));return b.return(e.makeRequest(e.galServiceClient.getLink,F,[1,3],[2,4]))})};
var JK6=function(v,E){var n=E.serviceId;var f=E.sessionId;var x=E.googleScopes;var y=E.consistencyKey;var Q;return _.X(function(e){var F=(new s3).setHeader(Dn(v,f));F=_.O_(F,2,n);var b=Array.from(x.values());F=_.r2(F,3,b,_.Hb);b=mlP();b=_.O_(b,2,y);Q=_.Bz(F,4,b);return e.return(v.makeRequest(v.galServiceClient.JSC$16974_depositGoogleCredential,Q,[1,3],[2,4]))})};
Vb.prototype.startLinkingSession=function(v){var E=v.serviceId;var n=v.sessionId;var f=v.scopes;var x=v.capabilities;var y=v.loginHint;var Q=v.supportedFlows;var e=v.completionUrl;var F=v.usePingPong;var b=v.twoWayLinking;var l=v.accountLinkingEntryPoint;var r=v.callerState;var a=v.consentLanguageKeys;var M=v.googleScopes;var U=v.dataUsageNoticeConfig;var d=v.linkName;var Y=v.dynamicUrlParameters;var V=v.partnerConfigMinReadTimestamp;var O=this,T,L;return _.X(function(xX){if(x!==void 0&&f!==void 0)throw Error("Tj");
var t=(new a8).setHeader(Dn(O,n,Y));T=_.O_(t,2,E);d!==void 0&&_.O_(T,14,d);if(x!==void 0){t=T;var QE=Array.from(x.values());_.r2(t,5,QE,_.Hb)}else f!==void 0&&(t=T,QE=Array.from(f.values()),_.r2(t,3,QE,_.Hb));e!==void 0&&_.O_(T,6,e);F!==void 0&&_.FY(T,15,F);Q!==void 0&&(t=T,QE=Array.from(Q.values()),_.r2(t,4,QE,_.Pb));if(b!==void 0){if(b&&(!M||M.size===0))throw Error("bk");_.FY(T,8,b)}l!==void 0&&_.IG(T,9,l);y!==void 0&&_.O_(T,13,y);r!==void 0&&(t=T,QE=(new TextEncoder).encode(r),_.Pz(t,12,_.jo(QE,
!1),_.uX()));a!==void 0&&_.O_(T,16,a);V!==void 0&&_.Bz(T,18,V);if(U!==void 0&&U.size>0||M!==void 0&&M.size>0)L=new h6C,M!==void 0&&M.size>0&&(t=L,QE=Array.from(M.values()),_.r2(t,1,QE,_.Hb)),U!==void 0&&(U.has(0)&&_.yRA(L,2,_.Pb,1,_.aO),U.has(1)&&_.yRA(L,2,_.Pb,2,_.aO)),_.Bz(T,17,L);return xX.return(O.makeRequest(O.galServiceClient.startLinkingSession,T,[1],[2]))})};
Vb.prototype.getMetadata=function(){var v=this,E,n,f;return _.X(function(x){if(x.nextAddress==1)return E={},v.requestService?_.m(x,BN3(v.requestService),3):(E.Authorization="Bearer "+v.oauthToken,x.jumpTo(2));x.nextAddress!=2&&(n=x.yieldResult,E["X-Goog-Api-Key"]=v.apiKey,E["X-Goog-AuthUser"]=v.authUser!==void 0?v.authUser.toString():"0",(f=n.auth.getAuthHeaderValueForFirstParty([]))&&(E.Authorization=f));v.locale&&(E["accept-language"]=v.locale);return x.return(E)})};
Vb.prototype.makeRequest=function(v,E,n,f){var x=this,y;return _.X(function(Q){if(Q.nextAddress==1)return _.m(Q,x.getMetadata(),2);y=Q.yieldResult;nJR(x,n);return Q.return(v.bind(x.galServiceClient)(E,y).finally(function(){nJR(x,f)}))})};
var nJR=function(v,E){v.galSdkEventHandler!==void 0&&E.forEach(function(n){v.galSdkEventHandler.onEvent(n)})},Dn=function(v,E,n){var f=new my;
E=_.Pz(f,2,_.Z1(E),0);E=_.IG(E,5,3);n=_.r2(E,8,n,_.Hb);v.bucket!==void 0&&_.O_(n,1,v.bucket);return n},EJK=function(v){var E=v.serviceId;
var n=v.scopes;var f=v.capabilities;v=v.linkName;if(f!==void 0&&n!==void 0)throw Error("Tj");var x=new e6P;E=_.O_(x,1,E);f!==void 0?(n=Array.from(f.values()),_.r2(E,5,n,_.Hb)):n!==void 0&&(n=Array.from(n.values()),_.r2(E,3,n,_.Hb));v!==void 0&&_.O_(E,6,v);return E};var RfO=function(v){this.galService=new Vb(v.alsDomain,v.apiKey,v.authUser,v.oauthToken,v.bucket,v.clientXd3,v.locale,v.galSdkEventHandler);this.JSC$17125_galRepository=new UoP(this.galService)};
RfO.prototype.getService=function(){return this.galService};var oJM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(oJM,_.Vj);var fRp=function(v){var E=new oJM;return _.OH(E,1,v)};
oJM.prototype.setErrorMessage=function(v){return _.ps(this,2,v)};var xIb=[0,_.W2,_.uN,_.W2];var HQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(HQ,_.Vj);var cfO=[0,[1,2,3],_.k8,[0,PGC,CG3,-1],_.k8,[0,Zh0,-1],_.HDN];var yf0=[0,_.gO,1,_.W2,_.uN,-1,1,_.uiE,_.H2,_.W2,-1,cfO];var p__=[0,_.W2,[0,_.uiE,_.H2,[0,_.uN]],_.Nr,[0,_.W2,-1]];var Rx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Rx,_.Vj);var Qrd=[0,_.uN,_.W2,-2,_.gO,_.W2,_.gO,_.W2,-2,1,_.Nr];var X_U=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(X_U,_.Vj);var ei0=[0,_.gO];var Fnb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Fnb,_.Vj);var mI3=[0,_.W2,p__,ei0,Qrd,yf0];var Uud=_.ir(Fnb,mI3);var w_K=[0,QVd];var YeR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(YeR,_.Vj);var be_=[0,[1,3],Kcd,_.W2,Kcd];var is=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(is,_.Vj);var lRO=[0,_.W2];var srp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(srp,_.Vj);var zJ=function(v){return _.K9(v,oJM,2,TJ)},rfC=function(v){var E=new srp;
return _.v5(E,2,TJ,v)},TJ=[1,
2];var P9M=[0,TJ,_.k8,lRO,_.k8,xIb,_.Oa,be_,1,_.W2,w_K];var aRU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(aRU,_.Vj);var C9C=function(v){var E=new aRU;return _.v5(E,3,Zex,v)},Zex=[2,
3];var g3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(g3,_.Vj);var MUP=function(v,E){return _.Bz(v,2,E)},Sy_=function(v,E){return _.Bz(v,8,E)},UIb=function(v,E){return _.Bz(v,3,E)};var qy6=[0,_.W2,P9M,mI3,_.$nS,[0,[5,6],[0,_.W2,-2],[0,_.gO,_.W2,_.uN],[0,cfO],[0,_.uN,_.W2,-1,_.W9U],_.k8,[0,[0,_.gO],_.W2,-1],_.k8,[0,[3,4],_.W2,-1,_.k8,[0,[0,_.W2,_.Nr]],_.k8,[0,[0,[0,[1,2],_.k8,[0],_.k8,[0]],_.W2]]]],_.$nS,-1,[0,Zex,_.W2,_.k8,lRO,_.k8,xIb,_.Oa,be_,[0,QVd]]];var Jf3=_.ir(g3,qy6),Kn0=_.zZ(qy6);var dIC=_.jU(["data-"]),IR1=_.jU(["aria-"]),YyP=_.jU(["aria-"]),NL=function(v,E){this.isLatencyMeasurementExperiment=v===void 0?!1:v;this.enableDialogA11yFix=E===void 0?!1:E;this.JSC$17154_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.wz1(_.n1.location.href)},Jx3=function(v,E){v.onConsentPrimitiveShownCallback=E},hi_=function(v,E){return v.overriddenIframeLoadTimeout?v.overriddenIframeLoadTimeout:E!==void 0?E:5E3},duC=function(v){if(v.prewarmPromise!==void 0)return v.prewarmPromise;
v.prewarmPromise=new Promise(function(E,n){u4(v,1);AfU(v,VUU(v,!0),DI1(v));v.iframe?v.prewarmChannel||HeM(v,v.iframe,E):n(Error("ck"))});
v.prewarmPromise.finally(function(){v.prewarmPromise=void 0});
return v.prewarmPromise};
NL.prototype.showPrimitive=function(){var v=this;if(this.consentPromise!==void 0)return this.consentPromise;var E=Date.now();gJ1(this,E);this.consentPromise=new Promise(function(n,f){u4(v,0,E);var x=v.isDarkTheme();v.isLatencyMeasurementExperiment||v.initialLoadingStrategy===1||v.initialLoadingStrategy===2||(v.loadingBar||(v.loadingBar=EZ6(getComputedStyle(document.body).direction==="rtl",x),v.loadingBar.style.position="fixed",v.loadingBar.style.zIndex="15000"),document.body.appendChild(v.loadingBar));
AfU(v,VUU(v),DI1(v));v.iframe?v.channel||Nw6(v,v.iframe,n,f):(uhd(v),f(Error("ck")))});
this.consentPromise.finally(function(){v.consentPromise=void 0});
return this.consentPromise};
var Nw6=function(v,E,n,f){var x,y;_.X(function(Q){switch(Q.nextAddress){case 1:u4(v,3);x=!1;setTimeout(function(){if(!x){uhd(v);jrp(v);OeP(v);var e=fRp(7).setErrorMessage("Timeout connecting to iframe");n(Sy_(MUP(new g3,rfC(e)),C9C(e)))}},hi_(v,kY6(v)));
if(!v.prewarmPromise){Q.jumpTo(2);break}_.vW(Q,3);return _.m(Q,v.prewarmPromise,5);case 5:_.qp(Q,2);break;case 3:_.cW(Q),y=fRp(4).setErrorMessage("Error while prewarming."),n(Sy_(MUP(new g3,rfC(y)),C9C(y)));case 2:v.prewarmChannel&&v.prewarmChannel.send(Kn0(UIb(new g3,v.consentPrimitiveRequest))),v.channel=_.Gj({destination:v.JSC$17154_win,iframe:E,origin:Wnx(v),channelName:"cpw",onEstablished:function(){x=!0;uhd(v);v.isLatencyMeasurementExperiment||(v.JSC$17154_previousBodyOverflow=document.body.style.overflow,
v.JSC$17154_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,v.JSC$17154_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",v.enableDialogA11yFix&&window.addEventListener("blur",v.focusChangeListener));var e=v.iframe;e.style.bottom="0";e.style.position="fixed";e.style.right="0";e.style.border="none";e.style.left="0";e.style.top=
"0";e.style.zIndex="5000";e.style.pointerEvents="";e.style.visibility="";v.initialLoadingStrategy===2||v.initialLoadingStrategy===3?u4(v,4):u4(v,6);var F;(F=v.onConsentPrimitiveShownCallback)==null||F.call(v)},
onMessage:function(e){e=Jf3(e.data);switch(_.Ua(e,1)){case 1:jrp(v);var F=nZd(_.j5(e,_.YC,7));F&&(v.initialLoadingStrategy!==2&&v.initialLoadingStrategy!==3||u4(v,6,F),u4(v,5,F));if(F=nZd(_.j5(e,_.YC,6)))u4(v,7,F),u4(v,8);var b,l;((b=_.j5(e,srp,2))==null?void 0:_.lN(b,TJ))!==0&&((l=_.j5(e,aRU,8))==null?void 0:_.lN(l,Zex))!==0||f(Error("dk"));n(e);break;case 2:OeP(v)}}}),_.yQ(Q)}})},HeM=function(v,E,n){v.prewarmChannel=_.Gj({destination:v.JSC$17154_win,
iframe:E,origin:Wnx(v),channelName:"pwcp",onEstablished:function(){u4(v,2);n()}})},Wnx=function(v){var E=_.c5(v.src).toString();
return E&&E.indexOf("://")<0&&E.indexOf("//")!==0?v.origin:_.wz1(E)},VUU=function(v,E){E=E===void 0?!1:E;
var n,f=new Map([["origin",v.origin],["hl",(n=$IK(v))!=null?n:null]]);E&&f.set("pw","1");E=_.p([["cpr",v.consentPrimitiveRequest.serialize()]]);for(n=E.next();!n.done;n=E.next()){var x=_.p(n.value);n=x.next().value;x=x.next().value;f.set(n,x)}v.isDarkTheme()&&f.set("color_scheme","dark");return _.z6(v.src,f)},uhd=function(v){v.isLatencyMeasurementExperiment||v.loadingBar&&document.body.removeChild(v.loadingBar)};
NL.prototype.getSrc=function(){var v=_.HG(this.origin),E;var n=(E=_.j5(this.consentPrimitiveRequest,X_U,3))==null?void 0:_.$r(E,1);E="consent.google.com";n=n?"/u/"+encodeURIComponent(n.toString()):"";(v==null?0:v.endsWith("youtube.com"))?E="consent.youtube.com":(v=v==null?void 0:v.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(E="consent.google."+((v[1]?"co.":"")+encodeURIComponent(v[2])));return _.xR("https://"+E+"/signedin"+n+"/landing")};
var AfU=function(v,E,n){v.iframe||(v.iframe=document.createElement("iframe"),v.iframe.style.width="100%",v.iframe.style.height="100%",n!==112496729&&(v.iframe.style.colorScheme="auto"),v.isLatencyMeasurementExperiment&&(v.iframe.style.display="none"),_.qa(v.iframe,E),v.iframe.setAttribute("jsname","C5o1O"),LnP(v.iframe),document.body.appendChild(v.iframe))},LnP=function(v){v.style.bottom="-200vh";
v.style.position="fixed";v.style.right="-200vw";v.style.border="";v.style.left="";v.style.top="";v.style.zIndex="";v.style.pointerEvents="none";v.style.visibility="hidden"},jrp=function(v){v.iframe&&(v.isLatencyMeasurementExperiment||(v.JSC$17154_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=v.JSC$17154_previousHtmlOverscroll),v.JSC$17154_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=v.JSC$17154_previousBodyOverscroll),v.JSC$17154_previousBodyOverflow!==
void 0&&(document.body.style.overflow=v.JSC$17154_previousBodyOverflow),v.enableDialogA11yFix&&GY1(v,!1)),LnP(v.iframe))};
NL.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(GY1(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var GY1=function(v,E){var n,f,x=(n=v.iframe)==null?void 0:(f=n.parentElement)==null?void 0:f.children;if(x)for(n=0;n<x.length;n++)f=x[n],f!==v.iframe&&(E?(f.hasAttribute("aria-hidden")&&_.H5([_.G6(dIC)],f,"data-old-aria-hidden",f.getAttribute("aria-hidden")),_.H5([_.G6(IR1)],f,"aria-hidden","true")):(f.removeAttribute("aria-hidden"),f.hasAttribute("data-old-aria-hidden")&&(_.H5([_.G6(YyP)],f,"aria-hidden",f.getAttribute("data-old-aria-hidden")),f.removeAttribute("data-old-aria-hidden"))))},u4=function(v,
E,n){var f;
(f=v.latencyCallback)==null||f.call(v,{latencyType:E,timestampEpochMillis:n!=null?n:Date.now()})};var TwP=function(v,E,n){NL.call(this,E,n===void 0?!1:n);this.consentPrimitiveRequest=v;v=$IK(this);if(!(0,_.Nbs)(v))throw Error("H``"+String(v));this.src=this.getSrc();var f;this.initialLoadingStrategy=(f=_.j5(this.consentPrimitiveRequest,Rx,4))==null?void 0:_.Ua(f,4)},ieP;
_.S(TwP,NL);var qeP=function(v){var E=_.Z("enable_primitive_dialog_aria_hide_siblings");v={request:v,enableDialogA11yFix:E===void 0?!1:E};ieP||(ieP=new TwP(v.request,v.isLatencyMeasurementExperiment||_.Ua(v.request,1)===2,v.enableDialogA11yFix));return ieP},$IK=function(v){var E;
return(E=_.j5(v.consentPrimitiveRequest,Rx,4))==null?void 0:_.Sf(E,1)},gJ1=function(v,E){if(!_.FB(v.consentPrimitiveRequest,HQ,5)){var n=v.consentPrimitiveRequest,f=new HQ;
_.Bz(n,5,f)}var x;if((x=_.j5(v.consentPrimitiveRequest,HQ,5))==null||_.Fgs(_.ef(x,8))==null){var y;(y=_.j5(v.consentPrimitiveRequest,HQ,5))!=null&&_.f3(y,8,E)}},DI1=function(v){var E;
return(E=_.j5(v.consentPrimitiveRequest,HQ,5))==null?void 0:_.$r(E,1)};
TwP.prototype.isDarkTheme=function(){var v;return((v=_.j5(this.consentPrimitiveRequest,Rx,4))==null?void 0:_.Ua(v,2))===2};
var kY6=function(v){var E;return((E=_.j5(v.consentPrimitiveRequest,Rx,4))==null?void 0:_.$r(E,5))||void 0},OeP=function(v){v.channel=void 0;
v.prewarmChannel=void 0;v.iframe&&(document.body.contains(v.iframe)&&document.body.removeChild(v.iframe),v.iframe=void 0);ieP=void 0},IjR=function(v){return NL.prototype.showPrimitive.call(v).then(function(E){return _.j5(E,srp,2)})};for(var jF={},ziO=(jF[64]="ma",jF[73]="ogb",jF[89]="cr",jF[21]="test",jF[0]="unkn",jF[137]="con",jF[155]="hl",jF[78]="yt",jF[171]="lp",jF[172]="ap",jF[177]="amo",jF[178]="pqe",jF[74]="gg",jF[1]="gm",jF[140]="am",jF),RiM=_.p(Object.keys(ziO)),tUd=RiM.next();!tUd.done;tUd=RiM.next());var BwO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(BwO,_.Vj);var v8b=[0,[2,3,4],_.W2,agp,Kcd,_.HDN];var E83=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(E83,_.Vj);var n8p=_.ir(E83,[0,Jqb,_.uN,_.W2,_.uN,_.W2,v8b]);var o8C=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(o8C,_.Vj);o8C.prototype.getCommand=function(){return _.Ua(this,1)};
var f26=function(){var v=new o8C;return _.IG(v,1,0)};var xr0=_.zZ([0,Jqb,_.uN,[0,_.W2,_.uN,-1]]);var cm3=new _.yu("s"),ymP=new _.yu("t"),p26=new _.yu("u"),QGb=new _.yu("v"),X2_=function(v,E,n){_.py.call(this,cm3);this.mediaKey=v;this.photoUrl=E;this.photoSource=n};
_.S(X2_,_.py);var es6=function(){_.py.call(this,ymP)};
_.S(es6,_.py);var Fk6=function(v){v=v===void 0?!1:v;_.py.call(this,p26);this.isError=v};
_.S(Fk6,_.py);var mr6=function(){_.py.call(this,QGb)};
_.S(mr6,_.py);var w2p=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,rmK=function(v){if(typeof v=="string"){if(v.charAt(0)==".")return b9p(v.substr(1));if(v.charAt(0)=="["){var E=w2p.exec(v);v=v.indexOf("=")==-1?void 0:E[3];return l26(E[1],v)}return sGR(v)}return v},b9p=function(v){return function(E){return E.getAttribute&&_.A_(E,v)}},l26=function(v,E){return function(n){return E!==void 0?n.getAttribute&&n.getAttribute(v)==E:n.hasAttribute&&n.hasAttribute(v)}},sGR=function(v){v=v.toUpperCase();
return function(E){return(E=E.tagName)&&E.toUpperCase()==v}},PNM=function(){return!0};var O3=function(v,E){this.JSC$17182_key_=v;this.JSC$17182_value_=E},kP=function(v){throw Error("ek`"+v.JSC$17182_key_);
},a2p=function(v,E){return new TypeError("fk`"+E+"`"+v.JSC$17182_key_+"`"+v.JSC$17182_value_+"`"+typeof v.JSC$17182_value_)};
O3.prototype.string=function(v){if(arguments.length==0)var E=Z9U(this);else{var n;E=(n=CNC(this))!=null?n:v}return E};
var Z9U=function(v){var E=CNC(v);E===null&&kP(v);return E},CNC=function(v){var E=v.JSC$17182_value_;
if(E==null)return null;if(typeof E==="string")return E;throw a2p(v,"string");};
O3.prototype.bool=function(v){if(arguments.length==0){var E=this.optionalBool();E===null&&kP(this)}else{var n;E=(n=this.optionalBool())!=null?n:v}return E};
O3.prototype.optionalBool=function(){var v=this.JSC$17182_value_;if(v==null)return null;if(typeof v==="boolean")return v;if(typeof v==="string"){v=v.toLowerCase();if(v==="true"||v==="1")return!0;if(v==="false"||v==="0")return!1}throw a2p(this,"boolean");};
O3.prototype.number=function(v){if(arguments.length==0){var E=MfP(this);E===null&&kP(this)}else{var n;E=(n=MfP(this))!=null?n:v}return E};
var MfP=function(v){var E=v.JSC$17182_value_;if(E==null)return null;if(typeof E==="number")return E;if(typeof E==="string"){var n=Number(E);if(!isNaN(n)&&(n!==0||E.trim().length!==0))return n}throw a2p(v,"number");};
O3.prototype.toString=function(){return Z9U(this)};
O3.prototype.array=function(v){if(arguments.length==0){var E=SaK(this);E===null&&kP(this);return E}E=SaK(this);return E==null?v:E};
var SaK=function(v){var E=v.JSC$17182_value_;if(E==null)return null;Array.isArray(E)||(typeof E!=="string"?E=[E]:(E=E.trim(),E=E==""?[]:E.split(",").map(function(n){return n.trim()})));
return Urx(v,E)},Urx=function(v,E){var n=v.JSC$17182_key_+"[";
return Array.from(E,function(f,x){return new O3(n+x+"]",f)})};
O3.prototype.object=function(v){var E=this.JSC$17182_value_;if(E==null)return v===void 0&&kP(this),v;if(typeof E==="object"&&E.constructor===Object){v={};var n=this.JSC$17182_key_+".",f;for(f in E)v[f]=new O3(n+f,E[f]);return v}throw a2p(this,"object");};var WQ=function(v){this.list_=qaM(v)},qaM=function(v){if(v instanceof WQ)v=v.list_;
else if(v[0]instanceof WQ){for(var E=new Set,n=0;n<v.length;n++)for(var f=_.p(v[n].list_),x=f.next();!x.done;x=f.next())E.add(x.value);v=E}return[].concat(_.s8(v))};
_.c=WQ.prototype;_.c.each=function(v,E,n){((n===void 0?0:n)?X7U:_.I5)(this.list_,v,E);return this};
_.c.size=function(){return this.list_.length};
_.c.isEmpty=function(){return this.list_.length===0};
_.c.get=function(v){return this.list_[v]||null};
_.c.el=function(){return this.list_[0]||null};
_.c.map=function(v,E){return _.rA(this.list_,v,E)};
_.c.equals=function(v){return this===v||_.F1(this.list_,v.list_)};
_.c.first=function(){return this.list_.length==0?null:new $P(this.list_[0])};
_.c.find=function(v){var E=[];this.each(function(n){n=n.querySelectorAll(String(v));for(var f=0;f<n.length;f++)E.push(n[f])});
return new WQ(E)};
_.c.parent=function(){var v=[];this.each(function(E){(E=E.parentElement||null)&&!_.L1(v,E)&&v.push(E)});
return new WQ(v)};
_.c.children=function(){var v=[];this.each(function(E){E=_.UP(E);for(var n=0;n<E.length;n++)v.push(E[n])});
return new WQ(v)};
_.c.filter=function(v){v=_.v2(this.list_,rmK(v));return new WQ(v)};
_.c.closest=function(v){var E=[],n=rmK(v),f=function(x){return _.YH(x)&&n(x)};
this.each(function(x){(x=_.Ss(x,f,!0))&&!_.L1(E,x)&&E.push(x)});
return new WQ(E)};
_.c.next=function(v){return JmC(this,_.Yx1,v)};
_.c.prev=function(v){return JmC(this,dq0,v)};
var JmC=function(v,E,n){var f=[];var x=n?rmK(n):PNM;v.each(function(y){(y=E(y))&&x(y)&&f.push(y)});
return new WQ(f)};
WQ.prototype.setClass=function(v){return this.each(function(E){_.h_(E,v)})};
var KkR=function(v,E){return v.each(function(n){_.qd(n,E)})},drK=function(v,E){return v.each(function(n){_.Sg(n,E)})};
WQ.prototype.toggleClass=function(v,E){return E===!0?KkR(this,v):E===!1?drK(this,v):this.each(function(n){_.A_(n,v)?_.Sg(n,v):_.qd(n,v)})};
WQ.prototype.setText=function(v){return this.each(function(E){_.qm(E,v)})};
var I2b=function(v){v.each(function(E){E.removeAttribute("aria-hidden")})};
WQ.prototype.getStyle=function(v){if(this.list_.length>0){var E=this.list_[0],n=E.style[_.BZ(v)];return typeof n!=="undefined"?n:E.style[_.$P1(E,v)]||""}};
WQ.prototype.getData=function(v){if(this.list_.length===0)return new O3(v,null);var E=l$M(this.list_[0],v);return new O3(v,E)};
WQ.prototype.focus=function(v){try{v?this.el().focus(v):this.el().focus()}catch(E){}return this};
WQ.prototype.click=function(){var v=_.ZJ(this.el());if(v.createEvent){var E=v.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,v.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(E)}else v=v.createEventObject(),v.clientX=0,v.clientY=0,v.screenX=0,v.screenY=0,v.altKey=!1,v.ctrlKey=!1,v.shiftKey=!1,v.button=0,this.el().fireEvent("onclick",v)};
var Lb=function(v,E,n,f){function x(e,F,b){var l=F;F&&F.parentNode&&(l=F.cloneNode(!0));e(l,b)}
f=f===void 0?!1:f;if(v.list_.length==1){var y=v.list_[0],Q=function(e){return E(e,y)};
n instanceof WQ?n.each(Q,void 0,f):Array.isArray(n)?(f?X7U:_.I5)(n,Q):Q(n);return v}return v.each(function(e){n instanceof WQ?n.each(function(F){x(E,F,e)}):Array.isArray(n)?_.I5(n,function(F){x(E,F,e)}):x(E,n,e)})};
_.c=WQ.prototype;_.c.append=function(v){return Lb(this,function(E,n){E&&n.appendChild(E)},v)};
_.c.appendTo=function(v){(new WQ([v])).append(this);return this};
_.c.remove=function(){return Lb(this,function(v,E){_.fT(E)},null)};
_.c.empty=function(){return Lb(this,function(v,E){_.Co(E)},null)};
_.c.after=function(v,E){return Lb(this,function(n,f){n&&_.Sr(n,f)},v,!(E===void 0||E))};
_.c.before=function(v){return Lb(this,function(E,n){E&&_.Mm(E,n)},v)};
_.c.replaceWith=function(v){return Lb(this,function(E,n){E&&_.KUF(E,n)},v)};
_.c.toggle=function(v){return this.each(function(E){_.dC(E,v)})};
_.c.show=function(){return this.toggle(!0)};
_.c.hide=function(){return this.toggle(!1)};
_.c.trigger=function(v,E,n,f){return YaM(this,v,E,n,f)};
var YaM=function(v,E,n,f,x){return v.each(function(y){_.Hk$(_.ZJ(y)).triggerWizEventInternal(y,E,n,f,x)})},$P=function(v,E){v instanceof WQ&&(E=v.list_,v=null);
this.list_=qaM(v!=null?[v]:E)};
_.tf($P,WQ);_.c=$P.prototype;_.c.children=function(){return new WQ(Array.prototype.slice.call(_.UP(this.list_[0])))};
_.c.each=function(v,E){v.call(E,this.list_[0],0);return this};
_.c.size=function(){return 1};
_.c.el=function(){return this.list_[0]};
_.c.first=function(){return this};var G_=function(v,E){E=E===void 0?window:E;this.hostId=v;this.JSC$17193_win=E;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$17193_previousHtmlOverscroll=this.JSC$17193_previousBodyOverscroll=this.JSC$17193_previousBodyOverflow="";this.eventTarget=new _.mP;this.JSC$17193_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
VfR=function(v){var E=hsx(hsx(hsx(new Am0(78),"po"),"hppp"),"hhc");
E.authUser=Number(_.MX("SESSION_INDEX","0"));E.colorScheme=v;return E};
G_.prototype.getOrigin=function(){return this.origin?this.origin:_.Ly(_.$2(_.WF(new _.IT,this.JSC$17193_win.location.protocol),this.JSC$17193_win.location.hostname),this.JSC$17193_win.location.port).toString()};
G_.prototype.getTargetOrigin=function(){return _.Ly(_.$2(_.WF(new _.IT,this.scheme),this.domain),this.port)};
G_.prototype.preloadIframe=function(v){var E=this;if(this.iframeLoadPromise===void 0){var n=document.createElement("iframe");this.iframe=n;QTd(n,v);this.iframeLoadPromise=new Promise(function(f,x){var y=!1,Q=function(e){e.stopPropagation();n.removeEventListener("error",Q);n.removeEventListener("securitypolicyviolation",Q);x(Error("gk",{cause:e}))};
n.addEventListener("error",Q);n.addEventListener("securitypolicyviolation",Q);setTimeout(function(){y||x(Error("hk"))},3E4);
Drb(E,n,function(){y=!0;n.removeEventListener("error",Q);n.removeEventListener("securitypolicyviolation",Q);f()})});
H9O(this);v=this.getTargetOrigin().toString();n.setAttribute("allow","camera "+v+"; display-capture "+v);this.parentElement.appendChild(n)}return this.iframeLoadPromise};
var uBR=function(v,E){var n,f;return _.X(function(x){if(x.nextAddress==1)return n=EZ6(getComputedStyle(v.parentElement).direction==="rtl"),v.parentElement.appendChild(n),document.activeElement instanceof HTMLElement&&(v.elementToFocusAfterClose=document.activeElement),_.vW(x,2),_.m(x,v.preloadIframe(E),4);if(x.nextAddress!=2){v.parentElement.removeChild(n);v.JSC$17193_previousBodyOverflow=v.parentElement.style.overflow;v.JSC$17193_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
v.JSC$17193_previousBodyOverscroll=v.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";v.parentElement.style.overscrollBehavior="contain";v.parentElement.style.overflow="hidden";var y=v.iframe;y.style.bottom="0";y.style.border="none";y.style.height="100%";y.style.left="0";y.style.position=v.iframePosition;y.style.right="0";y.style.top="0";y.style.width="100%";y.style.zIndex="2202";y.setAttribute("aria-hidden","false");y.setAttribute("aria-modal","true");
v.opened=!0;g8M(v);return _.qp(x,0)}f=_.cW(x);v.parentElement.removeChild(n);cQd(v.isDarkTheme());NOp(v,!1);throw Error("ik",{cause:f});})},NOp=function(v,E){E=E===void 0?!0:E;
v.iframe!==void 0&&(jGb(v),document.documentElement.style.overscrollBehavior=v.JSC$17193_previousHtmlOverscroll,v.parentElement.style.overscrollBehavior=v.JSC$17193_previousBodyOverscroll,v.parentElement.style.overflow=v.JSC$17193_previousBodyOverflow,v.elementToFocusAfterClose!==void 0&&(v.elementToFocusAfterClose.focus(),v.elementToFocusAfterClose=void 0),E?H9O(v):(v.parentElement.removeChild(v.iframe),v.iframe=void 0,v.iframeLoadPromise=void 0,v.mainChannel=void 0),v.opened=!1)},jGb=function(v){v.backgroundElementsAriaHiddenIsNull&&
(I2b(v.backgroundElementsAriaHiddenIsNull),v.backgroundElementsAriaHiddenIsNull=void 0);
v.backgroundElementsAriaHiddenIsFalse&&(v.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","false")}),v.backgroundElementsAriaHiddenIsFalse=void 0);
v.backgroundElementsWithoutInert&&(v.backgroundElementsWithoutInert.each(function(E){E.removeAttribute("inert")}),v.backgroundElementsWithoutInert=void 0)},g8M=function(v){v.backgroundElementsAriaHiddenIsNull=(new $P(v.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")===null&&E!==v.iframe});
v.backgroundElementsAriaHiddenIsNull.each(function(E){E.setAttribute("aria-hidden","true")});
v.backgroundElementsAriaHiddenIsFalse=(new $P(v.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")==="false"&&E!==v.iframe});
v.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","true")});
v.backgroundElementsWithoutInert=(new $P(v.iframe.parentElement)).children().filter(function(E){return!E.hasAttribute("inert")&&E!==v.iframe});
v.backgroundElementsWithoutInert.each(function(E){E.setAttribute("inert","true")})},H9O=function(v){v=v.iframe;
v.style.bottom="-1000px";v.style.position="fixed";v.style.right="-1000px";v.style.border="";v.style.height="";v.style.left="";v.style.top="";v.style.width="";v.style.zIndex="";v.setAttribute("aria-hidden","true");v.setAttribute("aria-modal","false")};
G_.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Am0=function(v,E){G_.call(this,ziO[v],E);this.options=[];this.style=""};
_.S(Am0,G_);var O96=function(v){v.style="youtube";return v},kjK=function(v,E){v.eventTarget.listen(p26,E);
return v},Wk0=function(v,E){v.eventTarget.listen(cm3,E);
return v},hsx=function(v,E){v.options.push(E);
return v},$rK=function(v){var E=[v.getOrigin()];
v.ancestorOrigins&&E.push.apply(E,_.s8(v.ancestorOrigins));var n=new _.IT(v.JSC$17193_win.location.href),f=v.startUrl?v.startUrl:v.options.includes("po")?"profile-picture/art":"profile-picture";E=ta(_.Gu(v.getTargetOrigin(),f),"origin",E);v.startUrl&&_.KT(E,"startPath",v.startUrl);v.authUser>0&&_.KT(E,"authuser",v.authUser);v.pageId!==void 0&&_.KT(E,"pageId",v.pageId);_.KT(E,"hostId",v.hostId);v.jsMode!==void 0&&_.KT(E,"jsmode",v.jsMode);v.options.length>0&&_.KT(E,"opts",v.options.join(","));try{for(var x=
_.p(["utm_source","utm_medium","utm_campaign","utm_content"]),y=x.next();!y.done;y=x.next()){var Q=y.value;_.J7(n,Q)&&_.KT(E,Q,_.J7(n,Q))}var e,F=(e=v.hl)!=null?e:_.J7(n,"hl");F!==void 0&&_.KT(E,"hl",F)}catch(b){if(!(b instanceof URIError))throw b;}v.colorScheme&&_.KT(E,"theme",v.colorScheme);v.style&&_.KT(E,"style",v.style);return E},LkO=function(v,E){v.mainChannel=_.Gj({destination:v.JSC$17193_win,
iframe:E,origin:v.getTargetOrigin().toString(),channelName:"ow",onMessage:function(n){n=n8p(n.data);if(E===v.iframe)switch(_.Ua(n,1)){case 1:v.eventTarget.dispatchEvent(new Fk6);NOp(v);break;case 2:v.eventTarget.dispatchEvent(new X2_(_.Sf(n,4),_.Sf(n,2),_.Ua(n,5),_.j5(n,BwO,6)));break;case 0:var f;v.eventTarget.dispatchEvent(new es6(_.Sf(n,2),(f=_.Ua(n,3))!=null?f:0));break;case 3:v.eventTarget.dispatchEvent(new Fk6(!0));NOp(v,!1);break;case 4:v.eventTarget.dispatchEvent(new mr6)}}})},Drb=function(v,
E,n){_.Gj({destination:v.JSC$17193_win,
iframe:E,origin:_.Ly(_.$2(_.WF(new _.IT,v.scheme),v.domain),v.port).toString(),channelName:"owi",onMessage:function(f){E===v.iframe&&(n!==void 0&&n(),LkO(v,E),v.opened&&v.mainChannel.send(xr0(f26())),f.reply(),Drb(v,E))}})};
Am0.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?G_.prototype.preloadIframe.call(this,$rK(this).toString()):this.iframeLoadPromise};
Am0.prototype.openPicker=function(v){var E=this;return _.X(function(n){if(n.nextAddress==1)return E.startUrl=v?v:E.options.includes("po")?"profile-picture/art":"profile-picture",_.m(n,uBR(E,$rK(E).toString()),2);if(E.mainChannel){var f=E.mainChannel,x=f.send;var y=f26();y=_.ps(y,2,E.startUrl);x.call(f,xr0(y))}_.yQ(n)})};var Gj1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(Gj1,_.Vj);_.c=Gj1.prototype;_.c.getSize=function(){return cQ(this,1)};
_.c.setSize=function(v){return _.dO(this,1,v)};
_.c.getWidth=function(){return cQ(this,12)};
_.c.getHeight=function(){return cQ(this,13)};
_.c.setCenterCrop=function(v){return _.iU(this,20,v)};
_.c.getHtml=function(){return _.aG(this,4)};
_.c.getToken=function(){return _.nT(this,24)};
_.c.setToken=function(v){return _.ps(this,24,v)};
_.c.getBackgroundColor=function(){return cQ(this,87)};
_.c.hasBackgroundColor=function(){return _.MP(_.ef(this,87))!=null};
_.c.getStoryboardLevel=function(){return cQ(this,109)};var T_=function(v){this.JSC$17201_value_=void 0;this.childNodes_={};if(v){var E=_.Xfg(v);v=_.k2(v);for(var n=0;n<E.length;n++)this.set(E[n],v[n])}};
T_.prototype.set=function(v,E){TOx(this,v,E,!1)};
T_.prototype.add=function(v,E){TOx(this,v,E,!0)};
var TOx=function(v,E,n,f){for(var x=0;x<E.length;x++){var y=E.charAt(x);v.childNodes_[y]||(v.childNodes_[y]=new T_);v=v.childNodes_[y]}if(f&&v.JSC$17201_value_!==void 0)throw Error("jk`"+E);v.JSC$17201_value_=n},i9C=function(v,E){for(var n=0;n<E.length;n++)if(v=v.childNodes_[E.charAt(n)],!v)return;
return v};
T_.prototype.get=function(v){return(v=i9C(this,v))?v.JSC$17201_value_:void 0};
T_.prototype.getValues=function(){var v=[];zs1(this,v);return v};
var zs1=function(v,E){v.JSC$17201_value_!==void 0&&E.push(v.JSC$17201_value_);for(var n in v.childNodes_)zs1(v.childNodes_[n],E)};
T_.prototype.getKeys=function(v){var E=[];if(v){for(var n=this,f=0;f<v.length;f++){var x=v.charAt(f);if(!n.childNodes_[x])return[];n=n.childNodes_[x]}RsC(n,v,E)}else RsC(this,"",E);return E};
var RsC=function(v,E,n){v.JSC$17201_value_!==void 0&&n.push(E);for(var f in v.childNodes_)RsC(v.childNodes_[f],E+f,n)};
_.c=T_.prototype;_.c.containsKey=function(v){return this.get(v)!==void 0};
_.c.containsValue=function(v){if(this.JSC$17201_value_===v)return!0;for(var E in this.childNodes_)if(this.childNodes_[E].containsValue(v))return!0;return!1};
_.c.clear=function(){this.childNodes_={};this.JSC$17201_value_=void 0};
_.c.remove=function(v){for(var E=this,n=[],f=0;f<v.length;f++){var x=v.charAt(f);if(!E.childNodes_[x])throw Error("kk`"+v);n.push([E,x]);E=E.childNodes_[x]}v=E.JSC$17201_value_;for(delete E.JSC$17201_value_;n.length>0;)if(f=n.pop(),E=f[0],f=f[1],E.childNodes_[f].isEmpty())delete E.childNodes_[f];else break;return v};
_.c.clone=function(){return new T_(this)};
_.c.getCount=function(){return Aq1(this.getValues())};
_.c.isEmpty=function(){return this.JSC$17201_value_===void 0&&_.sh.isEmpty(this.childNodes_)};var wqC=function(){if(!tfP){var v=tfP=new T_,E;for(E in BO_)v.add(E,BO_[E])}},tfP,i4=function(v,E){this.types=v;
this.setters=E},BO_={a:new i4([3,
0],[function(v,E){_.iU(v,21,E)},
function(v,E){_.dO(v,56,E)}]),
al:new i4([3],[function(v,E){_.iU(v,74,E)}]),
b:new i4([3,0],[function(v,E){_.iU(v,23,E)},
function(v,E){_.dO(v,38,E)}]),
ba:new i4([0],[function(v,E){_.dO(v,85,E)}]),
bc:new i4([0],[function(v,E){_.dO(v,87,E)}]),
br:new i4([0],[function(v,E){_.dO(v,86,E)}]),
c:new i4([3,0],[function(v,E){_.iU(v,2,E)},
function(v,E){_.dO(v,39,E)}]),
cc:new i4([3],[function(v,E){_.iU(v,51,E)}]),
ci:new i4([3],[function(v,E){_.iU(v,32,E)}]),
ckm:new i4([3],[function(v,E){_.iU(v,104,E)}]),
cp:new i4([0],[function(v,E){_.dO(v,92,E)}]),
cr:new i4([3],[function(v,E){_.iU(v,108,E)}]),
cv:new i4([0],[function(v,E){_.dO(v,94,E)}]),
d:new i4([3],[function(v,E){_.iU(v,3,E)}]),
dc:new i4([5],[function(v,E){_.ps(v,99,E)}]),
df:new i4([3],[function(v,E){_.iU(v,80,E)}]),
dv:new i4([3],[function(v,E){_.iU(v,90,E)}]),
e:new i4([0],[function(v,E){_.dO(v,15,E)}]),
em:new i4([0],[function(v,E){_.dO(v,107,E)}]),
f:new i4([4],[function(v,E){_.ps(v,16,E)}]),
fg:new i4([3],[function(v,E){_.iU(v,34,E)}]),
fh:new i4([3],[function(v,E){_.iU(v,30,E)}]),
fm:new i4([3],[function(v,E){_.iU(v,84,E)}]),
fo:new i4([2],[function(v,E){_.km(v,79,_.Q6(E))}]),
ft:new i4([3],[function(v,E){_.iU(v,50,E)}]),
fv:new i4([3],[function(v,E){_.iU(v,31,E)}]),
g:new i4([3],[function(v,E){_.iU(v,14,E)}]),
gce:new i4([4],[function(v,E){_.ps(v,112,E)}]),
gd:new i4([3],[function(v,E){_.iU(v,83,E)}]),
gm:new i4([3],[function(v,E){_.iU(v,105,E)}]),
h:new i4([3,0],[function(v,E){_.iU(v,4,E)},
function(v,E){_.dO(v,13,E)}]),
i:new i4([3],[function(v,E){_.iU(v,22,E)}]),
ic:new i4([0],[function(v,E){_.dO(v,71,E)}]),
id:new i4([3],[function(v,E){_.iU(v,70,E)}]),
il:new i4([3],[function(v,E){_.iU(v,96,E)}]),
ip:new i4([3],[function(v,E){_.iU(v,54,E)}]),
iv:new i4([0],[function(v,E){_.f3(v,75,E)}]),
j:new i4([1],[function(v,E){E=E==null?E:m1M(E);_.km(v,29,E)}]),
k:new i4([3,0],[function(v,E){_.iU(v,17,E)},
function(v,E){_.dO(v,42,E)}]),
l:new i4([0],[function(v,E){_.dO(v,44,E)}]),
lf:new i4([3],[function(v,E){_.iU(v,65,E)}]),
lo:new i4([3],[function(v,E){_.iU(v,97,E)}]),
m:new i4([0],[function(v,E){_.dO(v,63,E)}]),
md:new i4([3],[function(v,E){_.iU(v,91,E)}]),
mm:new i4([4],[function(v,E){_.ps(v,81,E)}]),
mo:new i4([3],[function(v,E){_.iU(v,73,E)}]),
mv:new i4([3],[function(v,E){_.iU(v,66,E)}]),
n:new i4([3],[function(v,E){v.setCenterCrop(E)}]),
nc:new i4([3],[function(v,E){_.iU(v,55,E)}]),
nd:new i4([3],[function(v,E){_.iU(v,53,E)}]),
ng:new i4([3],[function(v,E){_.iU(v,95,E)}]),
ngm:new i4([3],[function(v,E){_.iU(v,106,E)}]),
no:new i4([3],[function(v,E){_.iU(v,37,E)}]),
ns:new i4([3],[function(v,E){_.iU(v,40,E)}]),
nt0:new i4([4],[function(v,E){_.ps(v,36,E)}]),
ntm:new i4([3],[function(v,E){_.iU(v,114,E)}]),
nu:new i4([3],[function(v,E){_.iU(v,46,E)}]),
nw:new i4([3],[function(v,E){_.iU(v,48,E)}]),
o:new i4([1,3],[function(v,E){E=E==null?E:m1M(E);_.km(v,7,E)},
function(v,E){_.iU(v,27,E)}]),
p:new i4([3,0],[function(v,E){_.iU(v,19,E)},
function(v,E){_.dO(v,43,E)}]),
pa:new i4([3],[function(v,E){_.iU(v,61,E)}]),
pc:new i4([0],[function(v,E){_.dO(v,88,E)}]),
pd:new i4([3],[function(v,E){_.iU(v,60,E)}]),
pf:new i4([3],[function(v,E){_.iU(v,67,E)}]),
pg:new i4([3],[function(v,E){_.iU(v,72,E)}]),
pi:new i4([2],[function(v,E){_.km(v,76,_.Q6(E))}]),
pp:new i4([3],[function(v,E){_.iU(v,52,E)}]),
pt:new i4([4],[function(v,E){_.ps(v,111,E)}]),
q:new i4([4],[function(v,E){_.ps(v,28,E)}]),
r:new i4([3,0],[function(v,E){_.iU(v,6,E)},
function(v,E){_.dO(v,26,E)}]),
ra:new i4([3],[function(v,E){_.iU(v,103,E)}]),
rf:new i4([3],[function(v,E){_.iU(v,100,E)}]),
rg:new i4([3],[function(v,E){_.iU(v,59,E)}]),
rh:new i4([3],[function(v,E){_.iU(v,49,E)}]),
rj:new i4([3],[function(v,E){_.iU(v,57,E)}]),
ro:new i4([2],[function(v,E){_.km(v,78,_.Q6(E))}]),
rp:new i4([3],[function(v,E){_.iU(v,58,E)}]),
rw:new i4([3],[function(v,E){_.iU(v,35,E)}]),
rwa:new i4([3],[function(v,E){_.iU(v,64,E)}]),
rwu:new i4([3],[function(v,E){_.iU(v,41,E)}]),
s:new i4([3,0],[function(v,E){_.iU(v,33,E)},
function(v,E){v.setSize(E)}]),
sb:new i4([0],[function(v,E){_.dO(v,110,E)}]),
sc:new i4([0],[function(v,E){_.dO(v,89,E)}]),
sg:new i4([3],[function(v,E){_.iU(v,82,E)}]),
sl:new i4([0],[function(v,E){_.dO(v,109,E)}]),
sm:new i4([3],[function(v,E){_.iU(v,93,E)}]),
t:new i4([4],[function(v,E){v.setToken(E)}]),
tm:new i4([3],[function(v,E){_.iU(v,113,E)}]),
u:new i4([3],[function(v,E){_.iU(v,18,E)}]),
ut:new i4([3],[function(v,E){_.iU(v,45,E)}]),
v:new i4([0],[function(v,E){_.dO(v,62,E)}]),
vb:new i4([0],[function(v,E){_.f3(v,68,E)}]),
vf:new i4([4],[function(v,E){_.ps(v,102,E)}]),
vl:new i4([0],[function(v,E){_.f3(v,69,E)}]),
vm:new i4([3],[function(v,E){_.iU(v,98,E)}]),
w:new i4([0],[function(v,E){_.dO(v,12,E)}]),
x:new i4([0],[function(v,E){_.dO(v,9,E)}]),
y:new i4([0],[function(v,E){_.dO(v,10,E)}]),
ya:new i4([2],[function(v,E){_.km(v,77,_.Q6(E))}]),
z:new i4([0],[function(v,E){_.dO(v,11,E)}])};
wqC.prototype.parse=function(v){var E=new Gj1,n=new Gj1;if(v=="")v=!0;else{v=v.split("-");for(var f=!0,x=0;x<v.length;x++){var y=v[x];if(y.length==0)f=!1;else{var Q=y,e=!1;var F=Q;var b=Q.charAt(0);b!=b.toLowerCase()&&(e=!0,F=Q.charAt(0).toLowerCase()+Q.substring(1));var l=tfP;for(b=1;b<=F.length;++b){var r=l,a=F.substring(0,b);if(a.length==0?r.isEmpty():!i9C(r,a))break}F=b==1?null:(F=l.get(F.substring(0,b-1)))?{option:Q.substring(0,b-1),value:Q.substring(b-1),signed:e,attributes:F}:null;if(F){Q=
[];e=[];b=!1;for(l=0;l<F.attributes.types.length;l++){r=F.attributes.types[l];var M=F.value;a=x;if(F.signed&&r==1)for(var U=M.length;U<12&&a<v.length-1;)M+="-"+v[a+1],U=M.length,++a;else if(r==2)for(;a<v.length-1&&v[a+1].match(/^[\d\.]/);)M+="-"+v[a+1],++a;U=F.attributes.setters[l];M=vD1(this,r)(F.option,M,E,n,U);if(M===null){b=!0;x=a;break}else Q.push(r),e.push(M)}if(!b)for(F=0;F<e.length;F++)l=Q[F],M=e[F],ED6(this,l)(y,M);f=f&&b}else f=!1}}v=f}return new nD6(E,n,v)};
var z_=function(v,E,n,f,x,y){x(n,E);v=v.charAt(0);y=y(v==v.toUpperCase());x(f,y)};
_.c=wqC.prototype;_.c.parseAndSetIntOption_=function(v,E,n,f,x){if(E=="")return 0;isFinite(E)&&(E=String(E));E=typeof E==="string"?/^\s*-?0x/i.test(E)?parseInt(E,16):parseInt(E,10):NaN;if(isNaN(E))return 1;z_(v,E,n,f,x,Number);return null};
_.c.logIntParseError_=function(){};
_.c.parseAndSetFloatOption_=function(v,E,n,f,x){if(E=="")return 0;var y=Number(E);E=y==0&&_.XN(E)?NaN:y;if(isNaN(E))return 1;z_(v,E,n,f,x,Number);return null};
_.c.logFloatParseError_=function(){};
_.c.parseAndSetBoolOption_=function(v,E,n,f,x){if(E!="")return 2;z_(v,!0,n,f,x,Boolean);return null};
_.c.logBoolParseError_=function(){};
_.c.parseAndSetStringOption_=function(v,E,n,f,x){if(E=="")return 0;z_(v,E,n,f,x,function(y){return y?"1":""});
return null};
_.c.logStringParseError_=function(){};
_.c.parseAndSetUint64Base64Option_=function(v,E,n,f,x){if(E=="")return 0;z_(v,E,n,f,x,function(y){return y?1:0});
return null};
var vD1=function(v,E){switch(E){case 0:return(0,_.XV)(v.parseAndSetIntOption_,v);case 2:return(0,_.XV)(v.parseAndSetFloatOption_,v);case 3:return(0,_.XV)(v.parseAndSetBoolOption_,v);case 4:return(0,_.XV)(v.parseAndSetStringOption_,v);case 1:return(0,_.XV)(v.parseAndSetUint64Base64Option_,v);default:return function(){}}},ED6=function(v,E){switch(E){case 0:return(0,_.XV)(v.logIntParseError_,v);
case 2:return(0,_.XV)(v.logFloatParseError_,v);case 3:return(0,_.XV)(v.logBoolParseError_,v);case 4:case 1:return(0,_.XV)(v.logStringParseError_,v);default:return function(){}}},nD6=function(v,E,n){this.valueProto_=v;
this.signatureFlagProto_=E;this.JSC$17213_valid_=n};
nD6.prototype.isValid=function(){return this.JSC$17213_valid_};var Xqp=function(v){this.JSC$17214_parser_=null;this.JSC$17214_components_=[];this.JSC$17214_parsedOptions_=null;oD3(this,v)},fbx=function(v){v.JSC$17214_parser_==null&&(v.JSC$17214_parser_=new wqC);
return v.JSC$17214_parser_},oD3=function(v,E){v.JSC$17214_parsedOptions_=E?typeof E==="string"?fbx(v).parse(E):E:fbx(v).parse("")},R8=function(v,E){return v==E?!1:!0};
_.c=Xqp.prototype;_.c.JSC$17216_setCrop=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,_.aG(n,2),_.aG(E.signatureFlagProto_,2))&&_.iU(n,2,v);return this};
_.c.JSC$17216_setCircleCrop=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,xP(n,51),xP(E.signatureFlagProto_,51))&&_.iU(n,51,v);return this};
_.c.JSC$17216_setImageCrop=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,xP(n,32),xP(E.signatureFlagProto_,32))&&_.iU(n,32,v);return this};
_.c.JSC$17216_setHeight=function(v){var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,n.getHeight(),E.signatureFlagProto_.getHeight())&&_.dO(n,13,v);return this};
_.c.setCenterCrop=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,_.aG(n,20),_.aG(E.signatureFlagProto_,20))&&n.setCenterCrop(v);return this};
_.c.JSC$17216_setSmartCrop=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,_.aG(n,19),_.aG(E.signatureFlagProto_,19))&&_.iU(n,19,v);return this};
_.c.JSC$17216_setPad=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,xP(n,60),xP(E.signatureFlagProto_,60))&&_.iU(n,60,v);return this};
_.c.JSC$17216_setSmartCropUseFace=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,_.aG(n,67),_.aG(E.signatureFlagProto_,67))&&_.iU(n,67,v);return this};
_.c.JSC$17216_setSmartCropNoClip=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,_.aG(n,52),_.aG(E.signatureFlagProto_,52))&&_.iU(n,52,v);return this};
_.c.setSize=function(v){var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,n.getSize(),E.signatureFlagProto_.getSize())&&n.setSize(v);return this};
_.c.setToken=function(v){v=v||void 0;var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,n.getToken(),E.signatureFlagProto_.getToken())&&n.setToken(v);return this};
_.c.JSC$17216_setWidth=function(v){var E=this.JSC$17214_parsedOptions_,n=E.valueProto_;R8(v,n.getWidth(),E.signatureFlagProto_.getWidth())&&_.dO(n,12,v);return this};
_.c.clearOptions=function(){oD3(this,"");return this};
_.c.build=function(){this.JSC$17214_components_.length=0;var v=this.JSC$17214_parsedOptions_,E=v.valueProto_;v=v.signatureFlagProto_;tB(this,"s",E.getSize(),v.getSize());tB(this,"w",E.getWidth(),v.getWidth());BQ(this,"c",_.aG(E,2),_.aG(v,2));BQ(this,"d",_.aG(E,3),_.aG(v,3));tB(this,"h",E.getHeight(),v.getHeight());BQ(this,"s",xP(E,33),xP(v,33));BQ(this,"h",E.getHtml(),v.getHtml());BQ(this,"p",_.aG(E,19),_.aG(v,19));BQ(this,"pp",_.aG(E,52),_.aG(v,52));BQ(this,"pf",_.aG(E,67),_.aG(v,67));BQ(this,"n",
_.aG(E,20),_.aG(v,20));tB(this,"r",cQ(E,26),cQ(v,26));BQ(this,"r",_.aG(E,6),_.aG(v,6));BQ(this,"o",xP(E,27),xP(v,27));var n=_.P2(E,7,_.XB);vu(this,"o",n,_.P2(v,7,_.XB));n=_.P2(E,29,_.XB);vu(this,"j",n,_.P2(v,29,_.XB));tB(this,"x",cQ(E,9),cQ(v,9));tB(this,"y",cQ(E,10),cQ(v,10));tB(this,"z",cQ(E,11),cQ(v,11));BQ(this,"g",_.aG(E,14),_.aG(v,14));tB(this,"e",cQ(E,15),cQ(v,15));vu(this,"f",_.nT(E,16),_.nT(v,16));BQ(this,"k",xP(E,17),xP(v,17));BQ(this,"u",xP(E,18),!0);BQ(this,"ut",xP(E,45),!0);BQ(this,"i",
xP(E,22),!0);BQ(this,"a",xP(E,21),xP(v,21));BQ(this,"b",_.aG(E,23),_.aG(v,23));tB(this,"b",cQ(E,38),cQ(v,38));tB(this,"c",cQ(E,39),cQ(v,39),16,8);vu(this,"q",_.nT(E,28),_.nT(v,28));BQ(this,"fh",xP(E,30),xP(v,30));BQ(this,"fv",xP(E,31),xP(v,31));BQ(this,"fg",_.aG(E,34),_.aG(v,34));BQ(this,"ci",xP(E,32),xP(v,32));vu(this,"t",E.getToken(),v.getToken());vu(this,"nt0",_.nT(E,36),_.nT(v,36));BQ(this,"rw",_.aG(E,35),_.aG(v,35));BQ(this,"rwu",_.aG(E,41),_.aG(v,41));BQ(this,"rwa",_.aG(E,64),_.aG(v,64));BQ(this,
"nw",_.aG(E,48),_.aG(v,48));BQ(this,"rh",_.aG(E,49),_.aG(v,49));BQ(this,"no",_.aG(E,37),_.aG(v,37));BQ(this,"ns",xP(E,40),xP(v,40));tB(this,"k",cQ(E,42),cQ(v,42));tB(this,"p",cQ(E,43),cQ(v,43));tB(this,"l",cQ(E,44),cQ(v,44));tB(this,"v",cQ(E,62),cQ(v,62));BQ(this,"nu",xP(E,46),xP(v,46));BQ(this,"ft",xP(E,50),xP(v,50));BQ(this,"cc",xP(E,51),xP(v,51));BQ(this,"nd",xP(E,53),xP(v,53));BQ(this,"ip",xP(E,54),xP(v,54));BQ(this,"nc",xP(E,55),xP(v,55));tB(this,"a",cQ(E,56),cQ(v,56));BQ(this,"rj",xP(E,57),
xP(v,57));BQ(this,"rp",xP(E,58),xP(v,58));BQ(this,"rg",xP(E,59),xP(v,59));BQ(this,"pd",xP(E,60),xP(v,60));BQ(this,"pa",xP(E,61),xP(v,61));tB(this,"m",cQ(E,63),cQ(v,63));tB(this,"vb",yb(E,68),yb(v,68));tB(this,"vl",yb(E,69),yb(v,69));BQ(this,"lf",xP(E,65),xP(v,65));BQ(this,"mv",xP(E,66),xP(v,66));BQ(this,"id",xP(E,70),xP(v,70));tB(this,"ic",cQ(E,71),!0);BQ(this,"pg",_.aG(E,72),_.aG(v,72));BQ(this,"mo",xP(E,73),xP(v,73));BQ(this,"al",xP(E,74),xP(v,74));tB(this,"iv",yb(E,75),yb(v,75));tB(this,"pi",pb(E,
76),pb(v,76));tB(this,"ya",pb(E,77),pb(v,77));tB(this,"ro",pb(E,78),pb(v,78));tB(this,"fo",pb(E,79),pb(v,79));BQ(this,"df",xP(E,80),xP(v,80));vu(this,"mm",_.nT(E,81),_.nT(v,81));BQ(this,"sg",xP(E,82),xP(v,82));BQ(this,"gd",xP(E,83),xP(v,83));BQ(this,"fm",xP(E,84),xP(v,84));tB(this,"ba",cQ(E,85),cQ(v,85));tB(this,"br",cQ(E,86),cQ(v,86));tB(this,"bc",E.getBackgroundColor(),v.getBackgroundColor(),16,8);tB(this,"pc",cQ(E,88),cQ(v,88),16,8);tB(this,"sc",cQ(E,89),cQ(v,89),16,8);BQ(this,"dv",xP(E,90),xP(v,
90));BQ(this,"md",xP(E,91),xP(v,91));tB(this,"cp",cQ(E,92),cQ(v,92));BQ(this,"sm",xP(E,93),xP(v,93));tB(this,"cv",cQ(E,94),cQ(v,94));BQ(this,"ng",xP(E,95),xP(v,95));BQ(this,"il",xP(E,96),xP(v,96));BQ(this,"lo",xP(E,97),xP(v,97));BQ(this,"vm",xP(E,98),xP(v,98));vu(this,"dc",_.nT(E,99),_.nT(v,99));BQ(this,"rf",xP(E,100),xP(v,100));vu(this,"vf",_.nT(E,102),_.nT(v,102));BQ(this,"ra",_.aG(E,103),_.aG(v,103));BQ(this,"ckm",xP(E,104),xP(v,104));BQ(this,"gm",xP(E,105),xP(v,105));BQ(this,"ngm",xP(E,106),xP(v,
106));tB(this,"em",cQ(E,107),cQ(v,107));BQ(this,"cr",xP(E,108),xP(v,108));tB(this,"sl",E.getStoryboardLevel(),v.getStoryboardLevel());tB(this,"sb",cQ(E,110),cQ(v,110));vu(this,"pt",_.nT(E,111),_.nT(v,111));vu(this,"gce",_.nT(E,112),_.nT(v,112));BQ(this,"tm",xP(E,113),xP(v,113));BQ(this,"ntm",xP(E,114),xP(v,114));return this.JSC$17214_components_.join("-")};
var tB=function(v,E,n,f,x,y){if(n!=null){var Q=x==void 0||x!=10&&x!=16?10:x;n=Number(n).toString(Q);x=new YU6;x.append(Q==16?"0x":"");Q=x.append;y==void 0?y="":(y-=n.length,y=y<=0?"":(0,_.wU4)("0",y));Q.call(x,y);x.append(n);xmp(v,E,x.toString(),!!Number(f))}},BQ=function(v,E,n,f){n&&xmp(v,E,"",!!f)},vu=function(v,E,n,f){n&&xmp(v,E,String(n),!!Number(f))},xmp=function(v,E,n,f){f&&(E=E.charAt(0).toUpperCase()+E.substring(1));
v.JSC$17214_components_.push(E+n)};_.tf(wK,Xqp);_.c=wK.prototype;_.c.JSC$17216_setCrop=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setCrop.call(this,v)};
_.c.JSC$17216_setHeight=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return wK.superClass_.JSC$17216_setHeight.call(this,v)};
_.c.JSC$17216_setImageCrop=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setImageCrop.call(this,v)};
_.c.JSC$17216_setCircleCrop=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setCircleCrop.call(this,v)};
_.c.setSize=function(v){_.oF(v)&&(v=Math.max(v.width,v.height));v=v==null||v<0?void 0:v;v!=null&&(this.JSC$17216_setWidth(),this.JSC$17216_setHeight());return wK.superClass_.setSize.call(this,v)};
_.c.JSC$17216_setSmartCrop=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setSmartCrop.call(this,v)};
_.c.JSC$17216_setSmartCropNoClip=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setSmartCropNoClip.call(this,v)};
_.c.JSC$17216_setSmartCropUseFace=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setSmartCropUseFace.call(this,v)};
_.c.setCenterCrop=function(v){v&&EJ(this);return wK.superClass_.setCenterCrop.call(this,v)};
_.c.JSC$17216_setPad=function(v){v&&EJ(this);return wK.superClass_.JSC$17216_setPad.call(this,v)};
_.c.JSC$17216_setWidth=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return wK.superClass_.JSC$17216_setWidth.call(this,v)};
var cP3=function(v){v.clearOptions();var E=v.JSC$17214_parsedOptions_,n=E.valueProto_;R8(!0,_.aG(n,3),_.aG(E.signatureFlagProto_,3))&&_.iU(n,3,!0);return v},EJ=function(v){v.setCenterCrop();
v.JSC$17216_setCircleCrop();v.JSC$17216_setCrop();v.JSC$17216_setImageCrop();v.JSC$17216_setPad();v.JSC$17216_setSmartCrop();v.JSC$17216_setSmartCropNoClip();v.JSC$17216_setSmartCropUseFace()};
wK.prototype.build=function(){var v=this.JSC$17214_parsedOptions_.valueProto_;xP(v,18)||xP(v,45)?v.getSize()||this.setSize(0):(v=this.JSC$17214_parsedOptions_.valueProto_,v.getSize()||v.getWidth()||v.getHeight()||(this.setSize(),this.JSC$17216_setHeight(),this.JSC$17216_setWidth(),EJ(this)));return wK.superClass_.build.call(this)};var yP6=/^[^\/]*\/\//,n$=function(v,E){E=E===void 0?!1:E;this.original_=v;this.originalPrefix_="";(v=this.original_.match(yP6))&&v[0]?(this.originalPrefix_=v[0],v=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):v="http://"+this.original_;this.uri_=_.qE(v,!0);this.isFreeformUrl_=E;this.JSC$17220_valid_=!0;this.obfuscated_=!1},pMC=function(v,E){v.JSC$17222_pathPrefix_=v.JSC$17222_pathPrefix_?v.JSC$17222_pathPrefix_+("/"+E):E},oz=function(v){if(v.JSC$17222_components_==
void 0){var E=v.uri_.getPath().substring(1);
v.JSC$17222_pathPrefix_=null;if(v.isFreeformUrl_){v.JSC$17222_components_=[];if((E.match(/=/g)||[]).length>1)return v.JSC$17220_valid_=!1,v.JSC$17222_components_;var n=E.indexOf("=");n!=-1?(v.JSC$17222_components_.push(E.substr(0,n)),v.JSC$17222_components_.push(E.substr(n+1))):v.JSC$17222_components_.push(E);return v.JSC$17222_components_}v.JSC$17222_components_=E.split("/");E=v.JSC$17222_components_.length;E>2&&v.JSC$17222_components_[0]=="u"&&(pMC(v,v.JSC$17222_components_[0]+"/"+v.JSC$17222_components_[1]),
v.JSC$17222_components_.shift(),v.JSC$17222_components_.shift(),E-=2);if(E==0||E==4||E>7)return v.JSC$17220_valid_=!1,v.JSC$17222_components_;if(E==2)pMC(v,v.JSC$17222_components_[0]);else if(v.JSC$17222_components_[0]=="image")pMC(v,v.JSC$17222_components_[0]);else if(E==7||E==3)return v.JSC$17220_valid_=!1,v.JSC$17222_components_;if(E<=3){v.obfuscated_=!0;E==3&&(pMC(v,v.JSC$17222_components_[1]),v.JSC$17222_components_.shift(),--E);--E;n=v.JSC$17222_components_[E];var f=n.indexOf("=");f!=-1&&(v.JSC$17222_components_[E]=
n.substr(0,f),v.JSC$17222_components_.push(n.substr(f+1)))}}return v.JSC$17222_components_};
n$.prototype.isValid=function(){oz(this);return this.JSC$17220_valid_};
n$.prototype.isObfuscated=function(){oz(this);return this.obfuscated_};
var B$C=function(v){oz(v);return v.isFreeformUrl_},f$=function(v){oz(v);
v.JSC$17222_pathPrefix_==void 0&&(v.JSC$17222_pathPrefix_=null);return v.JSC$17222_pathPrefix_},veP=function(v){switch(oz(v).length){case 7:return!0;
case 6:return f$(v)==null;case 5:return!1;case 3:return!0;case 2:return f$(v)==null;case 1:return!1;default:return!1}},xW=function(v,E){if(B$C(v))a:{switch(E){case 7:E=0;
break;case 4:if(!veP(v)){v=null;break a}E=1;break;default:v=null;break a}v=oz(v)[E]}else if(v.isObfuscated())a:{var n=f$(v)!=null?1:0;switch(E){case 6:E=n;break;case 4:if(!veP(v)){v=null;break a}E=1+n;break;default:v=null;break a}v=oz(v)[E]}else a:{n=f$(v)!=null?1:0;switch(E){case 0:E=n;break;case 1:E=1+n;break;case 2:E=2+n;break;case 3:E=3+n;break;case 4:if(!veP(v)){v=null;break a}E=4+n;break;case 5:E=veP(v)?1:0;E=4+n+E;break;default:v=null;break a}v=oz(v)[E]}return v};
n$.prototype.getOptions=function(){this.options_==void 0&&(this.options_=xW(this,4));return this.options_};var mAU=function(){};
mAU.prototype.parse=function(v,E){return new el6(v,E===void 0?!1:E)};
var el6=function(v,E){n$.call(this,v,E===void 0?!1:E)};
_.S(el6,n$);_.tf(bs,wK);var FuK;bs.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
bs.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var v=bs.superClass_.build.call(this),E=[];f$(this.parsedImageUrl_)!=null&&E.push(f$(this.parsedImageUrl_));var n=B$C(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var f=this.parsedImageUrl_;f.obfuscatedData_==void 0&&(f.obfuscatedData_=xW(f,6));E.push(f.obfuscatedData_+(v?"="+v:""))}else if(n){f=E.push;var x=this.parsedImageUrl_;x.freeformUrlPath_===void 0&&(x.freeformUrlPath_=xW(x,
7));f.call(E,x.freeformUrlPath_);v&&E.push(v)}else f=E.push,x=this.parsedImageUrl_,x.obfuscatedGaiaId_==void 0&&(x.obfuscatedGaiaId_=xW(x,0)),f.call(E,x.obfuscatedGaiaId_),f=E.push,x=this.parsedImageUrl_,x.photoId_==void 0&&(x.photoId_=xW(x,1)),f.call(E,x.photoId_),f=E.push,x=this.parsedImageUrl_,x.imageVersion_==void 0&&(x.imageVersion_=xW(x,2)),f.call(E,x.imageVersion_),f=E.push,x=this.parsedImageUrl_,x.signature_==void 0&&(x.signature_=xW(x,3)),f.call(E,x.signature_),v&&E.push(v),v=E.push,f=this.parsedImageUrl_,
f.filename_==void 0&&(f.filename_=xW(f,5)),v.call(E,f.filename_);E=n?E.join("="):E.join("/");E=_.qE(this.protocolPrefix_+this.JSC$17228_domain_+"/"+E+(this.JSC$17228_query_?"?"+this.JSC$17228_query_:"")).toString();E.startsWith("%3a//")&&(E=E.replace("%3a//","://"));return E};var EeR=_.jU(["viewBox"]),neU=_.jU(["width"]),oe0=_.jU(["height"]),fXp=_.jU(["fill"]),x_O=_.jU(["id"]),cSp=_.jU(["x"]),ySd=_.jU(["y"]);bGO.prototype.getLength=function(){return this.parsedData.length};
bGO.prototype.write=function(v){for(var E=0,n=this.parsedData.length;E<n;E++)v.put(this.parsedData[E],8)};
var Ccd=function(v,E){var n=new bGO(E);v.dataList.push(n);n=v.errorCorrectLevel;var f=1,x=encodeURI(E).toString().replace(/%[0-9a-fA-F]{2}/g,"a");E=x.length+(x.length!=E?3:0);x=0;for(var y=cu.length;x<=y;x++){var Q=0;switch(n){case 1:Q=cu[x][0];break;case 0:Q=cu[x][1];break;case 3:Q=cu[x][2];break;case 2:Q=cu[x][3]}if(E<=Q)break;else f++}if(f>cu.length)throw Error("tk");v.typeNumber=f;v.dataCache=null};
ll_.prototype.isDark=function(v,E){if(v<0||this.moduleCount<=v||E<0||this.moduleCount<=E)throw Error("lk`"+v+"`"+E);return this.modules[v][E]};
for(var MK6=function(v,E,n){v.moduleCount=v.typeNumber*4+17;v.modules=Array(v.moduleCount);for(var f=0;f<v.moduleCount;f++){v.modules[f]=Array(v.moduleCount);for(var x=0;x<v.moduleCount;x++)v.modules[f][x]=null}pN0(v,0,0);pN0(v,v.moduleCount-7,0);pN0(v,0,v.moduleCount-7);f=Q93[v.typeNumber-1];for(x=0;x<f.length;x++)for(var y=0;y<f.length;y++){var Q=f[x],e=f[y];if(v.modules[Q][e]==null)for(var F=-2;F<=2;F++)for(var b=-2;b<=2;b++)v.modules[Q+F][e+b]=F==-2||F==2||b==-2||b==2||F==0&&b==0?!0:!1}for(f=
8;f<v.moduleCount-8;f++)v.modules[f][6]==null&&(v.modules[f][6]=f%2==0);for(f=8;f<v.moduleCount-8;f++)v.modules[6][f]==null&&(v.modules[6][f]=f%2==0);f=v.errorCorrectLevel<<3|n;for(x=f<<10;yo(x)-yo(1335)>=0;)x^=1335<<yo(x)-yo(1335);f=(f<<10|x)^21522;for(x=0;x<15;x++)y=!E&&(f>>x&1)==1,x<6?v.modules[x][8]=y:x<8?v.modules[x+1][8]=y:v.modules[v.moduleCount-15+x][8]=y;for(x=0;x<15;x++)y=!E&&(f>>x&1)==1,x<8?v.modules[8][v.moduleCount-x-1]=y:x<9?v.modules[8][15-x-1+1]=y:v.modules[8][15-x-1]=y;v.modules[v.moduleCount-
8][8]=!E;if(v.typeNumber>=7){f=v.typeNumber;for(x=f<<12;yo(x)-yo(7973)>=0;)x^=7973<<yo(x)-yo(7973);f=f<<12|x;for(x=0;x<18;x++)y=!E&&(f>>x&1)==1,v.modules[Math.floor(x/3)][x%3+v.moduleCount-8-3]=y;for(x=0;x<18;x++)y=!E&&(f>>x&1)==1,v.modules[x%3+v.moduleCount-8-3][Math.floor(x/3)]=y}if(v.dataCache==null){x=v.typeNumber;y=v.dataList;E=v.errorCorrectLevel;f=XNR(x,E);if(f==void 0)throw Error("sk`"+x+"`"+E);Q=f.length/3;E=[];for(e=0;e<Q;e++){F=f[e*3];b=f[e*3+1];for(var l=f[e*3+2],r=0;r<F;r++)E.push(new sT3(b,
l))}f=new rQM;for(Q=0;Q<y.length;Q++)e=y[Q],f.put(e.mode,4),f.put(e.getLength(),emU(e.mode,x)),e.write(f);for(Q=x=0;Q<E.length;Q++)x+=E[Q].dataCount;if(f.length>x*8)throw Error("mk`"+f.length+"`"+x*8);for(f.length+4<=x*8&&f.put(0,4);f.length%8!=0;)Fj6(f,!1);for(;!(f.length>=x*8);){f.put(236,8);if(f.length>=x*8)break;f.put(17,8)}y=x=b=0;Q=Array(E.length);e=Array(E.length);for(F=0;F<E.length;F++){r=E[F].dataCount;var a=E[F].totalCount-r;x=Math.max(x,r);y=Math.max(y,a);Q[F]=Array(r);for(l=0;l<Q[F].length;l++)Q[F][l]=
255&f.buffer[l+b];b+=r;l=a;r=new ls([1],0);for(a=0;a<l;a++)r=r.multiply(new ls([1,m_R(a)],0));l=r;r=(new ls(Q[F],l.getLength()-1)).mod(l);e[F]=Array(l.getLength()-1);for(l=0;l<e[F].length;l++)a=l+r.getLength()-e[F].length,e[F][l]=a>=0?r.get(a):0}for(l=f=0;l<E.length;l++)f+=E[l].totalCount;f=Array(f);for(l=b=0;l<x;l++)for(F=0;F<E.length;F++)l<Q[F].length&&(f[b++]=Q[F][l]);for(l=0;l<y;l++)for(F=0;F<E.length;F++)l<e[F].length&&(f[b++]=e[F][l]);v.dataCache=f}E=v.dataCache;f=-1;x=v.moduleCount-1;y=7;Q=
0;for(e=v.moduleCount-1;e>0;e-=2)for(e==6&&e--;;){for(F=0;F<2;F++)v.modules[x][e-F]==null&&(b=!1,Q<E.length&&(b=(E[Q]>>>y&1)==1),wNp(n,x,e-F)&&(b=!b),v.modules[x][e-F]=b,y--,y==-1&&(Q++,y=7));x+=f;if(x<0||v.moduleCount<=x){x-=f;f=-f;break}}},pN0=function(v,E,n){for(var f=-1;f<=7;f++)if(!(E+f<=-1||v.moduleCount<=E+f))for(var x=-1;x<=7;x++)n+x<=-1||v.moduleCount<=n+x||(v.modules[E+f][n+x]=0<=f&&f<=6&&(x==0||x==6)||0<=x&&x<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=x&&x<=4?!0:!1)},SL6=function(v){for(var E=0,
n=0,f=0;f<8;f++){MK6(v,!0,f);
var x=v;for(var y=x.moduleCount,Q=0,e=0;e<y;e++)for(var F=0;F<y;F++){for(var b=0,l=x.isDark(e,F),r=-1;r<=1;r++)if(!(e+r<0||y<=e+r))for(var a=-1;a<=1;a++)F+a<0||y<=F+a||(r!=0||a!=0)&&l==x.isDark(e+r,F+a)&&b++;b>5&&(Q+=3+b-5)}for(e=0;e<y-1;e++)for(F=0;F<y-1;F++)if(b=0,x.isDark(e,F)&&b++,x.isDark(e+1,F)&&b++,x.isDark(e,F+1)&&b++,x.isDark(e+1,F+1)&&b++,b==0||b==4)Q+=3;for(e=0;e<y;e++)for(F=0;F<y-6;F++)x.isDark(e,F)&&!x.isDark(e,F+1)&&x.isDark(e,F+2)&&x.isDark(e,F+3)&&x.isDark(e,F+4)&&!x.isDark(e,F+5)&&
x.isDark(e,F+6)&&(Q+=40);for(F=0;F<y;F++)for(e=0;e<y-6;e++)x.isDark(e,F)&&!x.isDark(e+1,F)&&x.isDark(e+2,F)&&x.isDark(e+3,F)&&x.isDark(e+4,F)&&!x.isDark(e+5,F)&&x.isDark(e+6,F)&&(Q+=40);for(F=b=0;F<y;F++)for(e=0;e<y;e++)x.isDark(e,F)&&b++;x=Q+=Math.abs(100*b/y/y-50)/5*10;if(f==0||E>x)E=x,n=f}return n},Q93=[[],
[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]],yo=function(v){for(var E=0;v!=0;)E++,v>>>=1;return E},wNp=function(v,E,n){switch(v){case 0:return(E+n)%2==0;
case 1:return E%2==0;case 2:return n%3==0;case 3:return(E+n)%3==0;case 4:return(Math.floor(E/2)+Math.floor(n/3))%2==0;case 5:return E*n%2+E*n%3==0;case 6:return(E*n%2+E*n%3)%2==0;case 7:return(E*n%3+(E+n)%2)%2==0;default:throw Error("nk`"+v);}},emU=function(v,E){if(1<=E&&E<10)switch(v){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+v);}else if(E<27)switch(v){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+v);}else if(E<41)switch(v){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+v);}else throw Error("pk`"+E);},p$=function(v){if(v<1)throw Error("qk`"+v);
return bz0[v]},m_R=function(v){for(;v<0;)v+=255;
for(;v>=256;)v-=255;return Qo[v]},Qo=Array(256),bz0=Array(256),lX_=0;lX_<8;lX_++)Qo[lX_]=1<<lX_;
for(var Xn=8;Xn<256;Xn++)Qo[Xn]=Qo[Xn-4]^Qo[Xn-5]^Qo[Xn-6]^Qo[Xn-8];for(var s9O=0;s9O<255;s9O++)bz0[Qo[s9O]]=s9O;ls.prototype.get=function(v){return this.num[v]};
ls.prototype.getLength=function(){return this.num.length};
ls.prototype.multiply=function(v){for(var E=Array(this.getLength()+v.getLength()-1),n=0;n<this.getLength();n++)for(var f=0;f<v.getLength();f++)E[n+f]^=m_R(p$(this.get(n))+p$(v.get(f)));return new ls(E,0)};
ls.prototype.mod=function(v){if(this.getLength()-v.getLength()<0)return this;for(var E=p$(this.get(0))-p$(v.get(0)),n=Array(this.getLength()),f=0;f<this.getLength();f++)n[f]=this.get(f);for(f=0;f<v.getLength();f++)n[f]^=m_R(p$(v.get(f))+E);return(new ls(n,0)).mod(v)};
var rSd=[[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]],XNR=function(v,E){switch(E){case 1:return rSd[(v-1)*4];case 0:return rSd[(v-1)*4+1];case 3:return rSd[(v-1)*4+2];case 2:return rSd[(v-1)*4+3]}};
rQM.prototype.get=function(v){return(this.buffer[Math.floor(v/8)]>>>7-v%8&1)==1};
rQM.prototype.put=function(v,E){for(var n=0;n<E;n++)Fj6(this,(v>>>E-n-1&1)==1)};
var Fj6=function(v,E){var n=Math.floor(v.length/8);v.buffer.length<=n&&v.buffer.push(0);E&&(v.buffer[n]|=128>>>v.length%8);v.length++},cu=[[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]],ZGb=function(){var v=function(E,n){this.JSC$17248__el=E;this.JSC$17248__htOption=n};
v.prototype.draw=function(E){function n(l,r){l=document.createElementNS("http://www.w3.org/2000/svg",l);for(var a in r)r.hasOwnProperty(a)&&(a==="href"?_.JJ1(l,r[a]):_.H5([_.G6(EeR),_.G6(neU),_.G6(oe0),_.G6(fXp),_.G6(x_O),_.G6(cSp),_.G6(ySd)],l,a,r[a]));return l}
var f=this.JSC$17248__htOption,x=this.JSC$17248__el,y=E.moduleCount;this.clear();var Q=n("svg",{viewBox:"0 0 "+String(y)+" "+String(y),width:"100%",height:"100%",fill:f.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});x.appendChild(Q);Q.appendChild(n("rect",{fill:f.colorLight,width:"100%",height:"100%"}));Q.appendChild(n("rect",{fill:f.colorDark,width:"1",height:"1",id:"template"}));for(var e=0;e<y;e++)for(var F=0;F<y;F++)if(E.isDark(e,F)){var b=n("use",{x:String(e),y:String(F),href:"#template"});
Q.appendChild(b)}};
v.prototype.clear=function(){for(;this.JSC$17248__el.hasChildNodes();)this.JSC$17248__el.removeChild(this.JSC$17248__el.lastChild)};
return v}(),alC=document.documentElement.tagName.toLowerCase()==="svg"?ZGb:typeof CanvasRenderingContext2D!="undefined"?function(){var v=function(E,n){this._bIsPainted=!1;
Pc_();this.JSC$17248__htOption=n;this._elCanvas=document.createElement("canvas");this._elCanvas.width=n.width;this._elCanvas.height=n.height;E.appendChild(this._elCanvas);this.JSC$17248__el=E;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$17248__el.appendChild(this._elImage);this._bSupportDataURI=null};
v.prototype._onMakeImage=function(){var E=this._elCanvas.toDataURL("image/png");this._elImage.src=E;this._elImage.style.display="block";this._elCanvas.style.display="none"};
v.prototype._safeSetDataURI=function(E,n){var f=this;f._fFail=n;f._fSuccess=E;f._bSupportDataURI===null?(E=_.oc("IMG"),n=function(){f._bSupportDataURI=!1;f._fFail&&f._fFail.call(f)},E.onabort=n,E.onerror=n,E.onload=function(){f._bSupportDataURI=!0;
f._fSuccess&&f._fSuccess.call(f)},E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):f._bSupportDataURI===!0&&f._fSuccess?f._fSuccess.call(f):f._bSupportDataURI===!1&&f._fFail&&f._fFail.call(f)};
v.prototype.draw=function(E){var n=this._oContext,f=this.JSC$17248__htOption,x=E.moduleCount,y=f.width/x,Q=f.height/x,e=Math.round(y),F=Math.round(Q);this._elImage.style.display="none";this.clear();for(var b=0;b<x;b++)for(var l=0;l<x;l++){var r=E.isDark(b,l),a=l*y,M=b*Q;n.strokeStyle=r?f.colorDark:f.colorLight;n.lineWidth=1;n.fillStyle=r?f.colorDark:f.colorLight;n.fillRect(a,M,y,Q);n.strokeRect(Math.floor(a)+.5,Math.floor(M)+.5,e,F);n.strokeRect(Math.ceil(a)-.5,Math.ceil(M)-.5,e,F)}this._bIsPainted=
!0};
v.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
v.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
v.prototype.round=function(E){return E?Math.floor(E*1E3)/1E3:E};
return v}():function(){var v=function(E,n){this.JSC$17248__el=E;
this.JSC$17248__htOption=n};
v.prototype.draw=function(E){for(var n=this.JSC$17248__htOption,f=this.JSC$17248__el,x=E.moduleCount,y=Math.floor(n.width/x),Q=Math.floor(n.height/x),e=['<table style="border:0;border-collapse:collapse;">'],F=0;F<x;F++){e.push("<tr>");for(var b=0;b<x;b++)e.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+y+"px;height:"+Q+"px;background-color:"+(E.isDark(F,b)?n.colorDark:n.colorLight)+';"></td>');e.push("</tr>")}e.push("</table>");E=e.join("");E=_.f1g(_.cRS,E);_.Dd(f,E);
E=f.childNodes[0];x=(n.width-E.offsetWidth)/2;y=(n.height-E.offsetHeight)/2;x>0&&y>0&&(E.style.margin=y+"px "+x+"px")};
v.prototype.clear=function(){this.JSC$17248__el.textContent=""};
return v}();
UAd.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17251__android||this.JSC$17251__android>=3)&&this._oDrawing.makeImage()};
UAd.prototype.clear=function(){this._oDrawing.clear()};
_.n1.QRCode=UAd;var PFd={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var em=function(){};
em.prototype.stringify=function(v){return _.n1.JSON.stringify(v,void 0)};
em.prototype.parse=function(v){return _.n1.JSON.parse(v,void 0)};var aXO=function(){_.py.call(this,"z")};
_.tf(aXO,_.py);var ZzP=function(){_.py.call(this,"y")};
_.tf(ZzP,_.py);var CFb=null,M2U=function(){return CFb=CFb||new _.mP},SMU=function(v){_.py.call(this,"serverreachability",v)};
_.tf(SMU,_.py);var Fn=function(v){var E=M2U();E.dispatchEvent(new SMU(E,v))},U_C=function(v){_.py.call(this,"statevent",v)};
_.tf(U_C,_.py);var mB=function(v){var E=M2U();E.dispatchEvent(new U_C(E,v))},qMK=function(v,E,n,f){_.py.call(this,"timingevent",v);
this.size=E;this.rtt=n;this.retries=f};
_.tf(qMK,_.py);var JS_=function(v,E,n){var f=M2U();f.dispatchEvent(new qMK(f,v,E,n))},w0=function(v,E){if(typeof v!=="function")throw Error("uk");
return _.n1.setTimeout(function(){v()},E)};var b7=function(){this.redactEnabled_=!0};
b7.prototype.disableRedact=function(){this.redactEnabled_=!1};
var KjP=function(v,E,n,f,x,y){v.info(function(){if(v.redactEnabled_)if(y){var Q="";for(var e=y.split("&"),F=0;F<e.length;F++){var b=e[F].split("=");if(b.length>1){var l=b[0];b=b[1];var r=l.split("_");Q=r.length>=2&&r[1]=="type"?Q+(l+"="+b+"&"):Q+(l+"=redacted&")}}}else Q=null;else Q=y;return"XMLHTTP REQ ("+f+") [attempt "+x+"]: "+E+"\n"+n+"\n"+Q})},d_K=function(v,E,n,f,x,y,Q){v.info(function(){return"XMLHTTP RESP ("+f+") [ attempt "+x+"]: "+E+"\n"+n+"\n"+y+" "+Q})},l7=function(v,E,n,f){v.info(function(){return"XMLHTTP TEXT ("+
E+"): "+IX1(v,n)+(f?" "+f:"")})},YMC=function(v,E){v.info(function(){return"TIMEOUT: "+E})};
b7.prototype.debug=function(){};
b7.prototype.info=function(){};
b7.prototype.warning=function(){};
var IX1=function(v,E){if(!v.redactEnabled_)return E;if(!E)return null;try{var n=JSON.parse(E);if(n)for(var f=0;f<n.length;f++)if(Array.isArray(n[f])){var x=n[f];if(!(x.length<2)){var y=x[1];if(Array.isArray(y)&&!(y.length<1)){var Q=y[0];if(Q!="noop"&&Q!="stop"&&Q!="close")for(var e=1;e<y.length;e++)y[e]=""}}}return(0,_.aW)(n)}catch(F){return v.debug("Exception parsing expected JS array - probably was not JS"),E}};var sJ=function(v,E,n,f,x){this.JSC$17273_channel_=v;this.JSC$17273_channelDebug_=E;this.sid_=n;this.JSC$17273_rid_=f;this.JSC$17273_retryId_=x||1;this.JSC$17273_eventHandler_=new _.u$(this);this.timeout_=45E3;this.JSC$17273_extraHeaders_=null;this.JSC$17273_successful_=!1;this.JSC$17273_postData_=this.JSC$17273_requestUri_=this.JSC$17273_baseUri_=this.JSC$17273_type_=this.JSC$17273_requestStartTime_=this.JSC$17273_watchDogTimeoutTime_=this.JSC$17273_watchDogTimerId_=null;this.JSC$17273_pendingMessages_=
[];this.JSC$17273_xmlHttp_=null;this.JSC$17273_xmlHttpChunkStart_=0;this.JSC$17273_lastError_=this.JSC$17273_verb_=null;this.JSC$17273_lastStatusCode_=-1;this.JSC$17273_cancelled_=!1;this.JSC$17273_readyStateChangeThrottleMs_=0;this.JSC$17273_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new hmU},hmU=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},ASC=function(v,E){switch(v){case 0:return"Non-200 return code ("+E+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},V2C={},D_x={};
sJ.prototype.setTimeout=function(v){this.timeout_=v};
var ged=function(v,E,n){v.JSC$17273_type_=1;v.JSC$17273_baseUri_=_.BF(E.clone());v.JSC$17273_postData_=n;v.decodeChunks_=!0;HzR(v,null)},HzR=function(v,E){v.JSC$17273_requestStartTime_=Date.now();
Nld(v);v.JSC$17273_requestUri_=v.JSC$17273_baseUri_.clone();ta(v.JSC$17273_requestUri_,"t",v.JSC$17273_retryId_);v.JSC$17273_xmlHttpChunkStart_=0;var n=v.JSC$17273_channel_.JSC$17292_supportsCrossDomainXhrs_;v.fetchResponseState_=new hmU;v.JSC$17273_xmlHttp_=u6U(v.JSC$17273_channel_,n?E:null,!v.JSC$17273_postData_);v.JSC$17273_readyStateChangeThrottleMs_>0&&(v.JSC$17273_readyStateChangeThrottle_=new _.ka((0,_.XV)(v.JSC$17277_xmlHttpHandler_,v,v.JSC$17273_xmlHttp_),v.JSC$17273_readyStateChangeThrottleMs_));
v.JSC$17273_eventHandler_.listen(v.JSC$17273_xmlHttp_,"readystatechange",v.JSC$17277_readyStateChangeHandler_);E=v.JSC$17273_extraHeaders_?_.sh.clone(v.JSC$17273_extraHeaders_):{};v.JSC$17273_postData_?(v.JSC$17273_verb_||(v.JSC$17273_verb_="POST"),E["Content-Type"]="application/x-www-form-urlencoded",v.JSC$17273_xmlHttp_.send(v.JSC$17273_requestUri_,v.JSC$17273_verb_,v.JSC$17273_postData_,E)):(v.JSC$17273_verb_="GET",v.JSC$17273_xmlHttp_.send(v.JSC$17273_requestUri_,v.JSC$17273_verb_,null,E));Fn(1);
KjP(v.JSC$17273_channelDebug_,v.JSC$17273_verb_,v.JSC$17273_requestUri_,v.JSC$17273_rid_,v.JSC$17273_retryId_,v.JSC$17273_postData_)};
sJ.prototype.JSC$17277_readyStateChangeHandler_=function(v){v=v.target;var E=this.JSC$17273_readyStateChangeThrottle_;E&&_.Cy(v)==3?(this.JSC$17273_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$17277_xmlHttpHandler_(v)};
sJ.prototype.JSC$17277_xmlHttpHandler_=function(v){try{v==this.JSC$17273_xmlHttp_?j9O(this):this.JSC$17273_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(E){this.JSC$17273_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),OzR(this)}finally{}};
var j9O=function(v){var E=_.Cy(v.JSC$17273_xmlHttp_),n=v.JSC$17273_xmlHttp_.JSC$7688_lastErrorCode_,f=v.JSC$17273_xmlHttp_.getStatus();if(!(E<3||E==3&&!OzR(v))){v.JSC$17273_cancelled_||E!=4||n==7||(n==8||f<=0?Fn(3):Fn(2));k5b(v);var x=v.JSC$17273_xmlHttp_.getStatus();v.JSC$17273_lastStatusCode_=x;n=Wjb(v);OzR(v)||v.JSC$17273_channelDebug_.debug(function(){return"No response text for uri "+v.JSC$17273_requestUri_+" status "+x});
v.JSC$17273_successful_=x==200;d_K(v.JSC$17273_channelDebug_,v.JSC$17273_verb_,v.JSC$17273_requestUri_,v.JSC$17273_rid_,v.JSC$17273_retryId_,E,x);if(v.JSC$17273_successful_){if(v.decodeInitialResponse_&&!v.initialResponseDecoded_)if(f=$_K(v))l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,f,"Initial handshake response via X-HTTP-Initial-Response"),v.initialResponseDecoded_=!0,LjM(v,f);else{v.JSC$17273_successful_=!1;v.JSC$17273_lastError_=3;mB(12);v.JSC$17273_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
v.JSC$17273_rid_+")");r0(v);Pu(v);return}v.decodeChunks_?G5d(v,E,n):(l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,n,null),LjM(v,n));E==4&&r0(v);v.JSC$17273_successful_&&!v.JSC$17273_cancelled_&&(E==4?TlR(v.JSC$17273_channel_,v):(v.JSC$17273_successful_=!1,Nld(v)))}else L$p(v.JSC$17273_xmlHttp_),x==400&&n.indexOf("Unknown SID")>0?(v.JSC$17273_lastError_=3,mB(12),v.JSC$17273_channelDebug_.warning("XMLHTTP Unknown SID ("+v.JSC$17273_rid_+")")):(v.JSC$17273_lastError_=0,mB(13),v.JSC$17273_channelDebug_.warning("XMLHTTP Bad status "+
x+" ("+v.JSC$17273_rid_+")")),r0(v),Pu(v)}},$_K=function(v){return v.JSC$17273_xmlHttp_&&(v=xj(v.JSC$17273_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.XN(v)?v:null},Wjb=function(v){if(!izU(v))return v.JSC$17273_xmlHttp_.getResponseText();
var E=v.JSC$17273_xmlHttp_.getResponse();if(E==="")return"";var n="",f=E.length,x=_.Cy(v.JSC$17273_xmlHttp_)==4;if(!v.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return r0(v),Pu(v),"";v.fetchResponseState_.textDecoder=new _.n1.TextDecoder}for(var y=0;y<f;y++)v.fetchResponseState_.responseArrivedForFetch=!0,n+=v.fetchResponseState_.textDecoder.decode(E[y],{stream:!(x&&y==f-1)});E.length=0;v.fetchResponseState_.responseBuffer+=n;v.JSC$17273_xmlHttpChunkStart_=0;return v.fetchResponseState_.responseBuffer},
OzR=function(v){return v.JSC$17273_xmlHttp_?v.fetchResponseState_.responseArrivedForFetch?!0:!(!v.JSC$17273_xmlHttp_.getResponseText()&&!v.JSC$17273_xmlHttp_.getResponse()):!1},izU=function(v){return v.JSC$17273_xmlHttp_?v.JSC$17273_verb_=="GET"&&v.JSC$17273_type_!=2&&v.JSC$17273_channel_.usesFetchStreams_:!1},G5d=function(v,E,n){for(var f=!0,x;!v.JSC$17273_cancelled_&&v.JSC$17273_xmlHttpChunkStart_<n.length;)if(x=zm_(v,n),x==D_x){E==4&&(v.JSC$17273_lastError_=4,mB(14),f=!1);
l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,null,"[Incomplete Response]");break}else if(x==V2C){v.JSC$17273_lastError_=4;mB(15);l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,n,"[Invalid Chunk]");f=!1;break}else l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,x,null),LjM(v,x);izU(v)&&v.JSC$17273_xmlHttpChunkStart_!=0&&(v.fetchResponseState_.responseBuffer=v.fetchResponseState_.responseBuffer.slice(v.JSC$17273_xmlHttpChunkStart_),v.JSC$17273_xmlHttpChunkStart_=0);E!=4||n.length!=0||v.fetchResponseState_.responseArrivedForFetch||
(v.JSC$17273_lastError_=1,mB(16),f=!1);v.JSC$17273_successful_=v.JSC$17273_successful_&&f;f?n.length>0&&!v.firstByteReceived_&&(v.firstByteReceived_=!0,E=v.JSC$17273_channel_,E.JSC$17292_backChannelRequest_==v&&E.detectBufferingProxy_&&!E.bpDetectionDone_&&(E.JSC$17292_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+n.length),Rm6(E),E.bpDetectionDone_=!0,mB(11))):(l7(v.JSC$17273_channelDebug_,v.JSC$17273_rid_,n,"[Invalid Chunked Response]"),r0(v),Pu(v))},zm_=function(v,E){var n=
v.JSC$17273_xmlHttpChunkStart_,f=E.indexOf("\n",n);
if(f==-1)return D_x;n=Number(E.substring(n,f));if(isNaN(n))return V2C;f+=1;if(f+n>E.length)return D_x;E=E.slice(f,f+n);v.JSC$17273_xmlHttpChunkStart_=f+n;return E};
sJ.prototype.cancel=function(){this.JSC$17273_cancelled_=!0;r0(this)};
var Nld=function(v){v.JSC$17273_watchDogTimeoutTime_=Date.now()+v.timeout_;t2d(v,v.timeout_)},t2d=function(v,E){if(v.JSC$17273_watchDogTimerId_!=null)throw Error("vk");
v.JSC$17273_watchDogTimerId_=w0((0,_.XV)(v.JSC$17277_onWatchDogTimeout_,v),E)},k5b=function(v){v.JSC$17273_watchDogTimerId_&&(_.n1.clearTimeout(v.JSC$17273_watchDogTimerId_),v.JSC$17273_watchDogTimerId_=null)};
sJ.prototype.JSC$17277_onWatchDogTimeout_=function(){this.JSC$17273_watchDogTimerId_=null;var v=Date.now();v-this.JSC$17273_watchDogTimeoutTime_>=0?(YMC(this.JSC$17273_channelDebug_,this.JSC$17273_requestUri_),this.JSC$17273_type_!=2&&(Fn(3),mB(17)),r0(this),this.JSC$17273_lastError_=2,Pu(this)):(this.JSC$17273_channelDebug_.warning("WatchDog timer called too early"),t2d(this,this.JSC$17273_watchDogTimeoutTime_-v))};
var Pu=function(v){v.JSC$17273_channel_.state_==0||v.JSC$17273_cancelled_||TlR(v.JSC$17273_channel_,v)},r0=function(v){k5b(v);
_.uU(v.JSC$17273_readyStateChangeThrottle_);v.JSC$17273_readyStateChangeThrottle_=null;v.JSC$17273_eventHandler_.removeAll();if(v.JSC$17273_xmlHttp_){var E=v.JSC$17273_xmlHttp_;v.JSC$17273_xmlHttp_=null;E.abort();E.dispose()}};
sJ.prototype.getLastError=function(){return this.JSC$17273_lastError_};
var LjM=function(v,E){try{var n=v.JSC$17273_channel_;if(n.state_!=0&&(n.JSC$17292_backChannelRequest_==v||Bl1(n.forwardChannelRequestPool_,v)))if(!v.initialResponseDecoded_&&Bl1(n.forwardChannelRequestPool_,v)&&n.state_==3){try{var f=n.wireCodec_.JSC$17287_parser_.parse(E)}catch(e){f=null}if(Array.isArray(f)&&f.length==3){E=f;if(E[0]==0)a:if(n.JSC$17292_channelDebug_.debug("Server claims our backchannel is missing."),n.JSC$17292_backChannelTimerId_)n.JSC$17292_channelDebug_.debug("But we are currently starting the request.");
else{if(n.JSC$17292_backChannelRequest_)if(n.JSC$17292_backChannelRequest_.JSC$17273_requestStartTime_+3E3<v.JSC$17273_requestStartTime_)vq0(n),Eqd(n);else break a;else n.JSC$17292_channelDebug_.warning("We do not have a BackChannel established");nqK(n);mB(18)}else{n.JSC$17292_lastPostResponseArrayId_=E[1];var x=n.JSC$17292_lastPostResponseArrayId_-n.JSC$17292_lastArrayId_;if(0<x){var y=E[2];n.JSC$17292_channelDebug_.debug(y+" bytes (in "+x+" arrays) are outstanding on the BackChannel");y<37500&&
n.enableStreaming_&&n.JSC$17292_backChannelRetryCount_==0&&!n.JSC$17292_deadBackChannelTimerId_&&(n.JSC$17292_deadBackChannelTimerId_=w0((0,_.XV)(n.JSC$17294_onBackChannelDead_,n),6E3))}}if(oq1(n.forwardChannelRequestPool_)<=1&&n.forwardChannelFlushedCallback_){try{n.forwardChannelFlushedCallback_()}catch(e){}n.forwardChannelFlushedCallback_=void 0}}else n.JSC$17292_channelDebug_.debug("Bad POST response data returned"),az(n,11)}else if((v.initialResponseDecoded_||n.JSC$17292_backChannelRequest_==
v)&&vq0(n),!_.XN(E)){var Q=n.wireCodec_.JSC$17287_parser_.parse(E);n.onInput_(Q,v)}Fn(4)}catch(e){}};var fe3=function(v,E){this.JSC$17280_mapId=v;this.map=E;this.context=null};var x70=function(v){this.maxPoolSizeConfigured_=v||10;_.n1.PerformanceNavigationTiming?(v=_.n1.performance.getEntriesByType("navigation"),v=v.length>0&&(v[0].nextHopProtocol=="hq"||v[0].nextHopProtocol=="h2")):v=!!(_.n1.chrome&&_.n1.chrome.loadTimes&&_.n1.chrome.loadTimes()&&_.n1.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17283_maxSize_=v?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17283_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17283_request_=null;this.JSC$17283_pendingMessages_=
[]},cTp=function(v){return v.JSC$17283_request_?!0:v.requestPool_?v.requestPool_.size>=v.JSC$17283_maxSize_:!1},oq1=function(v){return v.JSC$17283_request_?1:v.requestPool_?v.requestPool_.size:0},Bl1=function(v,E){return v.JSC$17283_request_?v.JSC$17283_request_==E:v.requestPool_?v.requestPool_.has(E):!1},yTp=function(v,E){v.requestPool_?v.requestPool_.add(E):v.JSC$17283_request_=E},pX_=function(v,E){v.JSC$17283_request_&&v.JSC$17283_request_==E?v.JSC$17283_request_=null:v.requestPool_&&v.requestPool_.has(E)&&
v.requestPool_.delete(E)};
x70.prototype.cancel=function(){this.JSC$17283_pendingMessages_=Q4_(this);if(this.JSC$17283_request_)this.JSC$17283_request_.cancel(),this.JSC$17283_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var v=_.p(this.requestPool_.values()),E=v.next();!E.done;E=v.next())E.value.cancel();this.requestPool_.clear()}};
var Q4_=function(v){if(v.JSC$17283_request_!=null)return v.JSC$17283_pendingMessages_.concat(v.JSC$17283_request_.JSC$17273_pendingMessages_);if(v.requestPool_!=null&&v.requestPool_.size!==0){var E=v.JSC$17283_pendingMessages_;v=_.p(v.requestPool_.values());for(var n=v.next();!n.done;n=v.next())E=E.concat(n.value.JSC$17273_pendingMessages_);return E}return _.tG(v.JSC$17283_pendingMessages_)},XXd=function(v,E){v.JSC$17283_pendingMessages_=v.JSC$17283_pendingMessages_.concat(E)};var eM_=function(v,E){var n=new b7;n.debug("TestLoadImage: loading "+v);if(_.n1.Image){var f=new Image;f.onload=_.vR(Z0,n,"TestLoadImage: loaded",!0,E,f);f.onerror=_.vR(Z0,n,"TestLoadImage: error",!1,E,f);f.onabort=_.vR(Z0,n,"TestLoadImage: abort",!1,E,f);f.ontimeout=_.vR(Z0,n,"TestLoadImage: timeout",!1,E,f);_.n1.setTimeout(function(){if(f.ontimeout)f.ontimeout()},1E4);
f.src=v}else E(!1)},F43=function(v,E){var n=new b7,f=new AbortController,x=setTimeout(function(){f.abort();
Z0(n,"TestPingServer: timeout",!1,E)},1E4);
fetch(v,{signal:f.signal}).then(function(y){clearTimeout(x);y.ok?Z0(n,"TestPingServer: ok",!0,E):Z0(n,"TestPingServer: server error",!1,E)}).catch(function(){clearTimeout(x);
Z0(n,"TestPingServer: error",!1,E)})},Z0=function(v,E,n,f,x){try{v.debug(E),x&&(x.onload=null,x.onerror=null,x.onabort=null,x.ontimeout=null),f(n)}catch(y){}};var m7O=function(){this.JSC$17287_parser_=new em},wXK=function(v,E,n){var f=n||"";
try{_.eCo(v,function(x,y){var Q=x;_.oF(x)&&(Q=(0,_.aW)(x));E.push(f+y+"="+encodeURIComponent(Q))})}catch(x){throw E.push(f+"type="+encodeURIComponent("_badmap")),x;
}};var C$=function(v,E,n){return n&&n.internalChannelParams?n.internalChannelParams[v]||E:E},MZ=function(v){this.serverVersion_=0;
this.JSC$17292_outgoingMaps_=[];this.JSC$17292_channelDebug_=new b7;this.JSC$17292_hostPrefix_=this.JSC$17292_backChannelUri_=this.JSC$17292_forwardChannelUri_=this.JSC$17292_path_=this.JSC$17292_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17292_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17292_extraHeaders_=null;this.JSC$17292_nextMapId_=this.JSC$17292_nextRid_=0;this.JSC$17292_failFast_=C$("failFast",!1,v);this.enableStreaming_=this.JSC$17292_deadBackChannelTimerId_=
this.JSC$17292_backChannelTimerId_=this.JSC$17292_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17292_lastPostResponseArrayId_=this.JSC$17292_lastArrayId_=-1;this.JSC$17292_backChannelAttemptId_=this.JSC$17292_backChannelRetryCount_=this.JSC$17292_forwardChannelRetryCount_=0;this.JSC$17292_baseRetryDelayMs_=C$("baseRetryDelayMs",5E3,v);this.JSC$17292_retryDelaySeedMs_=C$("retryDelaySeedMs",1E4,v);this.JSC$17292_forwardChannelMaxRetries_=
C$("forwardChannelMaxRetries",2,v);this.JSC$17292_forwardChannelRequestTimeoutMs_=C$("forwardChannelRequestTimeoutMs",2E4,v);this.JSC$17292_xmlHttpFactory_=v&&v.xmlHttpFactory||void 0;this.networkTestUrl_=v&&v.networkTestUrl||void 0;this.usesFetchStreams_=v&&v.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17292_supportsCrossDomainXhrs_=v&&v.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new x70(v&&v.concurrentRequestLimit);this.wireCodec_=new m7O;this.fastHandshake_=
v&&v.fastHandshake||!1;this.encodeInitMessageHeaders_=v&&v.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17292_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=v&&v.blockingHandshake||!1;v&&v.disableRedact&&this.JSC$17292_channelDebug_.disableRedact();v&&v.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
v&&v.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;v&&v.longPollingTimeout&&v.longPollingTimeout>0&&(this.longPollingTimeout_=v.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
MZ.prototype.JSC$17294_channelVersion_=8;MZ.prototype.state_=1;
MZ.prototype.connect=function(v,E,n,f){this.JSC$17292_channelDebug_.debug("connect()");mB(0);this.JSC$17292_path_=v;this.JSC$17292_extraParams_=E||{};n&&f!==void 0&&(this.JSC$17292_extraParams_.OSID=n,this.JSC$17292_extraParams_.OAID=f);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17292_channelDebug_.debug("connectChannel_()");v=brK(this,null,this.JSC$17292_path_);this.JSC$17292_channelDebug_.debug("GetForwardChannelUri: "+v);this.JSC$17292_forwardChannelUri_=v;leU(this)};
MZ.prototype.disconnect=function(){this.JSC$17292_channelDebug_.debug("disconnect()");s40(this);if(this.state_==3){var v=this.JSC$17292_nextRid_++,E=this.JSC$17292_forwardChannelUri_.clone();_.KT(E,"SID",this.sid_);_.KT(E,"RID",v);_.KT(E,"TYPE","terminate");Sm(this,E);v=new sJ(this,this.JSC$17292_channelDebug_,this.sid_,v);v.JSC$17273_type_=2;v.JSC$17273_baseUri_=_.BF(E.clone());E=!1;if(_.n1.navigator&&_.n1.navigator.sendBeacon)try{E=_.n1.navigator.sendBeacon(v.JSC$17273_baseUri_.toString(),"")}catch(n){}!E&&
_.n1.Image&&((new Image).src=v.JSC$17273_baseUri_,E=!0);E||(v.JSC$17273_xmlHttp_=u6U(v.JSC$17273_channel_,null),v.JSC$17273_xmlHttp_.send(v.JSC$17273_baseUri_));v.JSC$17273_requestStartTime_=Date.now();Nld(v)}rT6(this)};
var Eqd=function(v){v.JSC$17292_backChannelRequest_&&(Rm6(v),v.JSC$17292_backChannelRequest_.cancel(),v.JSC$17292_backChannelRequest_=null)},s40=function(v){Eqd(v);
v.JSC$17292_backChannelTimerId_&&(_.n1.clearTimeout(v.JSC$17292_backChannelTimerId_),v.JSC$17292_backChannelTimerId_=null);vq0(v);v.forwardChannelRequestPool_.cancel();v.JSC$17292_forwardChannelTimerId_&&(typeof v.JSC$17292_forwardChannelTimerId_==="number"&&_.n1.clearTimeout(v.JSC$17292_forwardChannelTimerId_),v.JSC$17292_forwardChannelTimerId_=null)};
MZ.prototype.getState=function(){return this.state_};
var leU=function(v){cTp(v.forwardChannelRequestPool_)||v.JSC$17292_forwardChannelTimerId_||(v.JSC$17292_forwardChannelTimerId_=!0,_.bg(v.JSC$17294_onStartForwardChannelTimer_,v),v.JSC$17292_forwardChannelRetryCount_=0)},aed=function(v,E){if(oq1(v.forwardChannelRequestPool_)>=v.forwardChannelRequestPool_.JSC$17283_maxSize_-(v.JSC$17292_forwardChannelTimerId_?1:0))return!1;
if(v.JSC$17292_forwardChannelTimerId_)return v.JSC$17292_channelDebug_.debug("Use the retry request that is already scheduled."),v.JSC$17292_outgoingMaps_=E.JSC$17273_pendingMessages_.concat(v.JSC$17292_outgoingMaps_),!0;if(v.state_==1||v.state_==2||v.JSC$17292_forwardChannelRetryCount_>=(v.JSC$17292_failFast_?0:v.JSC$17292_forwardChannelMaxRetries_))return!1;v.JSC$17292_channelDebug_.debug("Going to retry POST");v.JSC$17292_forwardChannelTimerId_=w0((0,_.XV)(v.JSC$17294_onStartForwardChannelTimer_,
v,E),P31(v,v.JSC$17292_forwardChannelRetryCount_));v.JSC$17292_forwardChannelRetryCount_++;return!0};
MZ.prototype.JSC$17294_onStartForwardChannelTimer_=function(v){if(this.JSC$17292_forwardChannelTimerId_)if(this.JSC$17292_forwardChannelTimerId_=null,this.JSC$17292_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!v){this.JSC$17292_channelDebug_.debug("open_()");this.JSC$17292_nextRid_=Math.floor(Math.random()*1E5);v=this.JSC$17292_nextRid_++;var E=new sJ(this,this.JSC$17292_channelDebug_,"",v),n=this.JSC$17292_extraHeaders_;this.initHeaders_&&(n?(n=_.sh.clone(n),_.sh.extend(n,this.initHeaders_)):
n=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(E.JSC$17273_extraHeaders_=n,n=null);var f;if(this.fastHandshake_)a:{for(var x=f=0;x<this.JSC$17292_outgoingMaps_.length;x++){b:{var y=this.JSC$17292_outgoingMaps_[x];if("__data__"in y.map&&(y=y.map.__data__,typeof y==="string")){y=y.length;break b}y=void 0}if(y===void 0)break;f+=y;if(f>4096){f=x;break a}if(f===4096||x===this.JSC$17292_outgoingMaps_.length-1){f=x+1;break a}}f=1E3}else f=1E3;f=ZrU(this,E,f);
x=this.JSC$17292_forwardChannelUri_.clone();_.KT(x,"RID",v);_.KT(x,"CVER",22);this.httpSessionIdParam_&&_.KT(x,"X-HTTP-Session-Id",this.httpSessionIdParam_);Sm(this,x);n&&(this.encodeInitMessageHeaders_?f="headers="+_.dB(LIO(n))+"&"+f:this.httpHeadersOverwriteParam_&&GK0(x,this.httpHeadersOverwriteParam_,n));yTp(this.forwardChannelRequestPool_,E);this.blockingHandshake_&&_.KT(x,"TYPE","init");this.fastHandshake_?(_.KT(x,"$req",f),_.KT(x,"SID","null"),E.decodeInitialResponse_=!0,ged(E,x,null)):ged(E,
x,f);this.state_=2}}else this.state_==3&&(v?C3_(this,v):this.JSC$17292_outgoingMaps_.length==0?this.JSC$17292_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):cTp(this.forwardChannelRequestPool_)||(C3_(this),this.JSC$17292_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var C3_=function(v,E){var n;E?n=E.JSC$17273_rid_:n=v.JSC$17292_nextRid_++;var f=v.JSC$17292_forwardChannelUri_.clone();_.KT(f,"SID",v.sid_);_.KT(f,"RID",n);_.KT(f,"AID",v.JSC$17292_lastArrayId_);Sm(v,f);v.httpHeadersOverwriteParam_&&v.JSC$17292_extraHeaders_&&GK0(f,v.httpHeadersOverwriteParam_,v.JSC$17292_extraHeaders_);n=new sJ(v,v.JSC$17292_channelDebug_,v.sid_,n,v.JSC$17292_forwardChannelRetryCount_+1);v.httpHeadersOverwriteParam_===null&&(n.JSC$17273_extraHeaders_=v.JSC$17292_extraHeaders_);E&&
(v.JSC$17292_outgoingMaps_=E.JSC$17273_pendingMessages_.concat(v.JSC$17292_outgoingMaps_));E=ZrU(v,n,1E3);n.setTimeout(Math.round(v.JSC$17292_forwardChannelRequestTimeoutMs_*.5)+Math.round(v.JSC$17292_forwardChannelRequestTimeoutMs_*.5*Math.random()));yTp(v.forwardChannelRequestPool_,n);ged(n,f,E)},Sm=function(v,E){v.JSC$17292_extraParams_&&_.sh.forEach(v.JSC$17292_extraParams_,function(n,f){_.KT(E,f,n)});
v.handler_&&_.eCo({},function(n,f){_.KT(E,f,n)})},ZrU=function(v,E,n){n=Math.min(v.JSC$17292_outgoingMaps_.length,n);
var f=v.handler_?(0,_.XV)(v.handler_.JSC$17298_badMapError,v.handler_,v):null;a:{for(var x=v.JSC$17292_outgoingMaps_,y=-1;;){var Q=["count="+n];y==-1?n>0?(y=x[0].JSC$17280_mapId,Q.push("ofs="+y)):y=0:Q.push("ofs="+y);for(var e=!0,F=0;F<n;F++){var b=x[F].JSC$17280_mapId,l=x[F].map;b-=y;if(b<0)y=Math.max(0,x[F].JSC$17280_mapId-100),e=!1;else try{wXK(l,Q,"req"+b+"_")}catch(r){f&&f(l)}}if(e){f=Q.join("&");break a}}f=void 0}v=v.JSC$17292_outgoingMaps_.splice(0,n);E.JSC$17273_pendingMessages_=v;return f},
MuO=function(v){v.JSC$17292_backChannelRequest_||v.JSC$17292_backChannelTimerId_||(v.JSC$17292_backChannelAttemptId_=1,_.bg(v.JSC$17294_onStartBackChannelTimer_,v),v.JSC$17292_backChannelRetryCount_=0)},nqK=function(v){if(v.JSC$17292_backChannelRequest_||v.JSC$17292_backChannelTimerId_||v.JSC$17292_backChannelRetryCount_>=3)return!1;
v.JSC$17292_channelDebug_.debug("Going to retry GET");v.JSC$17292_backChannelAttemptId_++;v.JSC$17292_backChannelTimerId_=w0((0,_.XV)(v.JSC$17294_onStartBackChannelTimer_,v),P31(v,v.JSC$17292_backChannelRetryCount_));v.JSC$17292_backChannelRetryCount_++;return!0};
MZ.prototype.JSC$17294_onStartBackChannelTimer_=function(){this.JSC$17292_backChannelTimerId_=null;SG1(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17292_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17292_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17292_backChannelRequest_+" "+this.handshakeRttMs_);else{var v=2*this.handshakeRttMs_;this.JSC$17292_channelDebug_.info("BP detection timer enabled: "+v);this.bpDetectionTimerId_=w0((0,_.XV)(this.onBpDetectionTimer_,
this),v)}};
MZ.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17292_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17292_backChannelRequest_.JSC$17273_xmlHttp_!=null){var v=this.JSC$17292_backChannelRequest_.JSC$17273_xmlHttp_.getResponseText();v&&this.JSC$17292_channelDebug_.warning("Timer should have been cancelled : "+v)}this.JSC$17292_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mB(10);Eqd(this);SG1(this)}else this.JSC$17292_channelDebug_.warning("Invalid operation.")};
var Rm6=function(v){v.bpDetectionTimerId_!=null&&(v.JSC$17292_channelDebug_.debug("Cancel the BP detection timer."),_.n1.clearTimeout(v.bpDetectionTimerId_),v.bpDetectionTimerId_=null)},SG1=function(v){v.JSC$17292_channelDebug_.debug("Creating new HttpRequest");
v.JSC$17292_backChannelRequest_=new sJ(v,v.JSC$17292_channelDebug_,v.sid_,"rpc",v.JSC$17292_backChannelAttemptId_);v.httpHeadersOverwriteParam_===null&&(v.JSC$17292_backChannelRequest_.JSC$17273_extraHeaders_=v.JSC$17292_extraHeaders_);v.JSC$17292_backChannelRequest_.JSC$17273_readyStateChangeThrottleMs_=0;var E=v.JSC$17292_backChannelUri_.clone();_.KT(E,"RID","rpc");_.KT(E,"SID",v.sid_);_.KT(E,"AID",v.JSC$17292_lastArrayId_);_.KT(E,"CI",v.enableStreaming_?"0":"1");!v.enableStreaming_&&v.longPollingTimeout_&&
_.KT(E,"TO",v.longPollingTimeout_);_.KT(E,"TYPE","xmlhttp");Sm(v,E);v.httpHeadersOverwriteParam_&&v.JSC$17292_extraHeaders_&&GK0(E,v.httpHeadersOverwriteParam_,v.JSC$17292_extraHeaders_);v.backChannelRequestTimeoutMs_&&v.JSC$17292_backChannelRequest_.setTimeout(v.backChannelRequestTimeoutMs_);var n=v.JSC$17292_backChannelRequest_,f=v.JSC$17292_hostPrefix_;n.JSC$17273_type_=1;n.JSC$17273_baseUri_=_.BF(E.clone());n.JSC$17273_postData_=null;n.decodeChunks_=!0;HzR(n,f);v.JSC$17292_channelDebug_.debug("New Request created")};
MZ.prototype.JSC$17294_onBackChannelDead_=function(){this.JSC$17292_deadBackChannelTimerId_!=null&&(this.JSC$17292_deadBackChannelTimerId_=null,Eqd(this),nqK(this),mB(19))};
var vq0=function(v){v.JSC$17292_deadBackChannelTimerId_!=null&&(_.n1.clearTimeout(v.JSC$17292_deadBackChannelTimerId_),v.JSC$17292_deadBackChannelTimerId_=null)},TlR=function(v,E){v.JSC$17292_channelDebug_.debug("Request complete");
var n=null;if(v.JSC$17292_backChannelRequest_==E){vq0(v);Rm6(v);v.JSC$17292_backChannelRequest_=null;var f=2}else if(Bl1(v.forwardChannelRequestPool_,E))n=E.JSC$17273_pendingMessages_,pX_(v.forwardChannelRequestPool_,E),f=1;else return;if(v.state_!=0)if(E.JSC$17273_successful_)f==1?(JS_(E.JSC$17273_postData_?E.JSC$17273_postData_.length:0,Date.now()-E.JSC$17273_requestStartTime_,v.JSC$17292_forwardChannelRetryCount_),leU(v)):MuO(v);else{var x=E.JSC$17273_lastStatusCode_,y=E.getLastError();if(y==3||
y==0&&x>0)v.JSC$17292_channelDebug_.debug("Not retrying due to error type"),x>200&&(v.errorResponseStatusCode_=E.JSC$17273_lastStatusCode_);else{v.JSC$17292_channelDebug_.debug(function(){return"Maybe retrying, last error: "+ASC(y,v.errorResponseStatusCode_)});
if(f==1&&aed(v,E)||f==2&&nqK(v))return;v.JSC$17292_channelDebug_.debug("Exceeded max number of retries")}n&&n.length>0&&XXd(v.forwardChannelRequestPool_,n);v.JSC$17292_channelDebug_.debug("Error: HTTP request failed");switch(y){case 1:az(v,5);break;case 4:az(v,10);break;case 3:az(v,6);break;default:az(v,2)}}},P31=function(v,E){var n=v.JSC$17292_baseRetryDelayMs_+Math.floor(Math.random()*v.JSC$17292_retryDelaySeedMs_);
v.isActive()||(v.JSC$17292_channelDebug_.debug("Inactive channel"),n*=2);return n*E};
MZ.prototype.onInput_=function(v,E){for(var n=0;n<v.length;n++){var f=v[n];this.JSC$17292_lastArrayId_=f[0];f=f[1];if(this.state_==2)if(f[0]=="c"){this.sid_=f[1];this.JSC$17292_hostPrefix_=f[2];var x=f[3];x!=null&&(this.JSC$17294_channelVersion_=x,this.JSC$17292_channelDebug_.info("VER="+this.JSC$17294_channelVersion_));x=f[4];x!=null&&(this.serverVersion_=x,this.JSC$17292_channelDebug_.info("SVER="+this.serverVersion_));f=f[5];f!=null&&typeof f==="number"&&f>0&&(this.backChannelRequestTimeoutMs_=
f*=1.5,this.JSC$17292_channelDebug_.info("backChannelRequestTimeoutMs_="+f));if(f=E.JSC$17273_xmlHttp_){var y=xj(f,"X-Client-Wire-Protocol");y&&(x=this.forwardChannelRequestPool_,!x.requestPool_&&(_.FN(y,"spdy")||_.FN(y,"quic")||_.FN(y,"h2"))&&(x.JSC$17283_maxSize_=x.maxPoolSizeConfigured_,x.requestPool_=new Set,x.JSC$17283_request_&&(yTp(x,x.JSC$17283_request_),x.JSC$17283_request_=null)));this.httpSessionIdParam_&&((f=xj(f,"X-HTTP-Session-Id"))?(this.httpSessionId_=f,_.KT(this.JSC$17292_forwardChannelUri_,
this.httpSessionIdParam_,f)):this.JSC$17292_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17298_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-E.JSC$17273_requestStartTime_,this.JSC$17292_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));f=E;x=brK(this,this.JSC$17292_supportsCrossDomainXhrs_?this.JSC$17292_hostPrefix_:null,this.JSC$17292_path_);this.JSC$17292_channelDebug_.debug("GetBackChannelUri: "+
x);this.JSC$17292_backChannelUri_=x;f.initialResponseDecoded_?(this.JSC$17292_channelDebug_.debug("Upgrade the handshake request to a backchannel."),pX_(this.forwardChannelRequestPool_,f),x=f,(y=this.backChannelRequestTimeoutMs_)&&x.setTimeout(y),x.JSC$17273_watchDogTimerId_&&(k5b(x),Nld(x)),this.JSC$17292_backChannelRequest_=f):MuO(this);this.JSC$17292_outgoingMaps_.length>0&&leU(this)}else f[0]!="stop"&&f[0]!="close"||az(this,7);else this.state_==3&&(f[0]=="stop"||f[0]=="close"?f[0]=="stop"?az(this,
7):this.disconnect():f[0]!="noop"&&this.handler_&&this.handler_.JSC$17298_channelHandleArray(f),this.JSC$17292_backChannelRetryCount_=0)}};
var az=function(v,E){v.JSC$17292_channelDebug_.info("Error code "+E);if(E==2){var n=(0,_.XV)(v.testNetworkCallback_,v),f=v.networkTestUrl_,x=!f;f=new _.IT(f||"//www.google.com/images/cleardot.gif");_.n1.location&&_.n1.location.protocol=="http"||_.WF(f,"https");_.BF(f);x?eM_(f.toString(),n):F43(f.toString(),n)}else mB(2);v.onError_(E)};
MZ.prototype.testNetworkCallback_=function(v){v?(this.JSC$17292_channelDebug_.info("Successfully pinged google.com"),mB(2)):(this.JSC$17292_channelDebug_.info("Failed to ping google.com"),mB(1))};
MZ.prototype.onError_=function(v){this.JSC$17292_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$17298_channelError(v);rT6(this);s40(this)};
var rT6=function(v){v.state_=0;v.nonAckedMapsAtChannelClose_=[];if(v.handler_){var E=Q4_(v.forwardChannelRequestPool_);if(E.length!=0||v.JSC$17292_outgoingMaps_.length!=0)v.JSC$17292_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+E.length+", outgoing: "+v.JSC$17292_outgoingMaps_.length}),_.nl(v.nonAckedMapsAtChannelClose_,E),_.nl(v.nonAckedMapsAtChannelClose_,v.JSC$17292_outgoingMaps_),v.forwardChannelRequestPool_.JSC$17283_pendingMessages_.length=0,_.tG(v.JSC$17292_outgoingMaps_),
v.JSC$17292_outgoingMaps_.length=0;
v.handler_.JSC$17298_channelClosed()}},U7U=function(v){if(v.state_==0)return v.nonAckedMapsAtChannelClose_;
var E=[];_.nl(E,Q4_(v.forwardChannelRequestPool_));_.nl(E,v.JSC$17292_outgoingMaps_);return E},brK=function(v,E,n){var f=_.qE(n);
f.JSC$7925_domain_!=""?(E&&_.$2(f,E+"."+f.JSC$7925_domain_),_.Ly(f,f.JSC$7925_port_)):(f=_.n1.location,f=DqO(f.protocol,E?E+"."+f.hostname:f.hostname,+f.port,n));E=v.httpSessionIdParam_;n=v.httpSessionId_;E&&n&&_.KT(f,E,n);_.KT(f,"VER",v.JSC$17294_channelVersion_);Sm(v,f);return f},u6U=function(v,E,n){if(E&&!v.JSC$17292_supportsCrossDomainXhrs_)throw Error("wk");
E=v.usesFetchStreams_&&!v.JSC$17292_xmlHttpFactory_?new _.Zr(new SF({streamBinaryChunks:n})):new _.Zr(v.JSC$17292_xmlHttpFactory_);E.JSC$7688_withCredentials_=v.JSC$17292_supportsCrossDomainXhrs_;return E};
MZ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var qGM=function(){};
_.c=qGM.prototype;_.c.JSC$17298_channelOpened=function(){};
_.c.JSC$17298_channelHandleArray=function(){};
_.c.JSC$17298_channelError=function(){};
_.c.JSC$17298_channelClosed=function(){};
_.c.isActive=function(){return!0};
_.c.JSC$17298_badMapError=function(){};var JTC=function(){},qZ=function(v,E){_.mP.call(this);
this.JSC$17301_channel_=new MZ(E);this.JSC$17301_url_=v;this.messageUrlParams_=E&&E.messageUrlParams||null;v=E&&E.messageHeaders||null;E&&E.clientProtocolHeaderRequired&&(v?_.sh.set(v,"X-Client-Protocol","webchannel"):v=_.sh.create("X-Client-Protocol","webchannel"));this.JSC$17301_channel_.JSC$17292_extraHeaders_=v;v=E&&E.initMessageHeaders||null;E&&E.messageContentType&&(v?_.sh.set(v,"X-WebChannel-Content-Type",E.messageContentType):v=_.sh.create("X-WebChannel-Content-Type",E.messageContentType));
E&&E.clientProfile&&(v?_.sh.set(v,"X-WebChannel-Client-Profile",E.clientProfile):v=_.sh.create("X-WebChannel-Client-Profile",E.clientProfile));this.JSC$17301_channel_.initHeaders_=v;(v=E&&E.httpHeadersOverwriteParam)&&!_.XN(v)&&(this.JSC$17301_channel_.httpHeadersOverwriteParam_=v);this.supportsCrossDomainXhr_=E&&E.supportsCrossDomainXhr||!1;this.sendRawJson_=E&&E.sendRawJson||!1;(E=E&&E.httpSessionIdParam)&&!_.XN(E)&&(this.JSC$17301_channel_.httpSessionIdParam_=E,_.sh.containsKey(this.messageUrlParams_,
E)&&_.sh.remove(this.messageUrlParams_,E));this.channelHandler_=new UJ(this)};
_.tf(qZ,_.mP);qZ.prototype.open=function(){this.JSC$17301_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17301_channel_.JSC$17292_supportsCrossDomainXhrs_=!0);this.JSC$17301_channel_.connect(this.JSC$17301_url_,this.messageUrlParams_||void 0)};
qZ.prototype.close=function(){this.JSC$17301_channel_.disconnect()};
qZ.prototype.send=function(v){var E=this.JSC$17301_channel_;if(typeof v==="string"){var n={};n.__data__=v;v=n}else this.sendRawJson_&&(n={},n.__data__=(0,_.aW)(v),v=n);E.JSC$17292_outgoingMaps_.push(new fe3(E.JSC$17292_nextMapId_++,v));E.state_==3&&leU(E)};
qZ.prototype.disposeInternal=function(){this.JSC$17301_channel_.handler_=null;delete this.channelHandler_;this.JSC$17301_channel_.disconnect();delete this.JSC$17301_channel_;qZ.superClass_.disposeInternal.call(this)};
var K4R=function(v){aXO.call(this);v.__headers__&&(this.headers=v.__headers__,this.statusCode=v.__status__,delete v.__headers__,delete v.__status__);var E=v.__sm__;E?this.data=(this.metadataKey=_.sh.getAnyKey(E))?_.sh.get(E,this.metadataKey):E:this.data=v};
_.tf(K4R,aXO);var d7C=function(v){ZzP.call(this);this.status=1;this.errorCode=v};
_.tf(d7C,ZzP);var UJ=function(v){this.JSC$17308_channel_=v};
_.tf(UJ,qGM);UJ.prototype.JSC$17298_channelOpened=function(){this.JSC$17308_channel_.dispatchEvent("w")};
UJ.prototype.JSC$17298_channelHandleArray=function(v){this.JSC$17308_channel_.dispatchEvent(new K4R(v))};
UJ.prototype.JSC$17298_channelError=function(v){this.JSC$17308_channel_.dispatchEvent(new d7C(v))};
UJ.prototype.JSC$17298_channelClosed=function(){this.JSC$17308_channel_.dispatchEvent("x")};
var Iex=function(v,E){this.transportChannel_=v;this.JSC$17311_channel_=E},YGp=function(v){return U7U(v.JSC$17311_channel_).map(function(E){var n=v.transportChannel_;
E=E.map;"__data__"in E?(E=E.__data__,n=n.sendRawJson_?(0,_.OIP)(E):E):n=E;return n})};var JY=function(v){hMP.dispatchEvent(new ATb(hMP,v))},hMP=new _.mP,ATb=function(v){_.py.call(this,"statevent",v)};
_.S(ATb,_.py);var K$=function(v,E,n,f,x){this.JSC$17316_channel_=v;this.JSC$17316_channelDebug_=E;this.sid_=n;this.JSC$17316_rid_=f;this.JSC$17316_retryId_=x||1;this.timeout_=45E3;this.JSC$17316_eventHandler_=new _.u$(this);this.pollingTimer_=new _.NO;this.pollingTimer_.setInterval(250)};
_.c=K$.prototype;_.c.JSC$17318_extraHeaders_=null;_.c.JSC$17318_successful_=!1;_.c.JSC$17318_watchDogTimerId_=null;_.c.JSC$17318_watchDogTimeoutTime_=null;_.c.JSC$17318_requestStartTime_=null;_.c.JSC$17318_type_=null;_.c.JSC$17318_baseUri_=null;_.c.JSC$17318_requestUri_=null;_.c.JSC$17318_postData_=null;_.c.JSC$17318_xmlHttp_=null;_.c.JSC$17318_xmlHttpChunkStart_=0;_.c.trident_=null;_.c.JSC$17318_verb_=null;_.c.JSC$17318_lastError_=null;_.c.JSC$17318_lastStatusCode_=-1;_.c.sendClose_=!0;
_.c.JSC$17318_cancelled_=!1;_.c.JSC$17318_readyStateChangeThrottleMs_=0;_.c.JSC$17318_readyStateChangeThrottle_=null;var Vu3=function(v,E){switch(v){case 0:return"Non-200 return code ("+E+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},D7P={},Hr6={};
K$.prototype.setTimeout=function(v){this.timeout_=v};
var Ngx=function(v,E,n){v.JSC$17318_type_=1;v.JSC$17318_baseUri_=_.BF(E.clone());v.JSC$17318_postData_=n;v.decodeChunks_=!0;gqb(v,null)},ulO=function(v,E,n,f,x){v.JSC$17318_type_=1;
v.JSC$17318_baseUri_=_.BF(E.clone());v.JSC$17318_postData_=null;v.decodeChunks_=n;x&&(v.sendClose_=!1);gqb(v,f)},gqb=function(v,E){v.JSC$17318_requestStartTime_=Date.now();
j4b(v);v.JSC$17318_requestUri_=v.JSC$17318_baseUri_.clone();ta(v.JSC$17318_requestUri_,"t",v.JSC$17316_retryId_);v.JSC$17318_xmlHttpChunkStart_=0;v.JSC$17318_xmlHttp_=v.JSC$17316_channel_.JSC$17325_createXhrIo(v.JSC$17316_channel_.JSC$17325_shouldUseSecondaryDomains()?E:null);v.JSC$17318_readyStateChangeThrottleMs_>0&&(v.JSC$17318_readyStateChangeThrottle_=new _.ka((0,_.XV)(v.JSC$17318_xmlHttpHandler_,v,v.JSC$17318_xmlHttp_),v.JSC$17318_readyStateChangeThrottleMs_));v.JSC$17316_eventHandler_.listen(v.JSC$17318_xmlHttp_,
"readystatechange",v.JSC$17318_readyStateChangeHandler_);E=v.JSC$17318_extraHeaders_?_.sh.clone(v.JSC$17318_extraHeaders_):{};v.JSC$17318_postData_?(v.JSC$17318_verb_="POST",E["Content-Type"]="application/x-www-form-urlencoded",v.JSC$17318_xmlHttp_.send(v.JSC$17318_requestUri_,v.JSC$17318_verb_,v.JSC$17318_postData_,E)):(v.JSC$17318_verb_="GET",v.sendClose_&&!_.f9&&(E.Connection="close"),v.JSC$17318_xmlHttp_.send(v.JSC$17318_requestUri_,v.JSC$17318_verb_,null,E));v.JSC$17316_channel_.notifyServerReachabilityEvent(1);
E=v.JSC$17316_channelDebug_;var n=v.JSC$17318_postData_;if(n){var f="";n=n.split("&");for(var x=0;x<n.length;x++){var y=n[x].split("=");if(y.length>1){var Q=y[0];y=y[1];var e=Q.split("_");f=e.length>=2&&e[1]=="type"?f+(Q+"="+y+"&"):f+(Q+"=redacted&")}}}else f=null;E.info("XMLHTTP REQ ("+v.JSC$17316_rid_+") [attempt "+v.JSC$17316_retryId_+"]: "+v.JSC$17318_verb_+"\n"+v.JSC$17318_requestUri_+"\n"+f)};
K$.prototype.JSC$17318_readyStateChangeHandler_=function(v){v=v.target;var E=this.JSC$17318_readyStateChangeThrottle_;E&&_.Cy(v)==3?(this.JSC$17316_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$17318_xmlHttpHandler_(v)};
K$.prototype.JSC$17318_xmlHttpHandler_=function(v){try{if(v==this.JSC$17318_xmlHttp_)a:{var E=_.Cy(this.JSC$17318_xmlHttp_),n=this.JSC$17318_xmlHttp_.JSC$7688_lastErrorCode_,f=this.JSC$17318_xmlHttp_.getStatus();if(_.f9&&!_.x8("420+")){if(E<4)break a}else if(E<3||E==3&&!this.JSC$17318_xmlHttp_.getResponseText())break a;this.JSC$17318_cancelled_||E!=4||n==7||(n==8||f<=0?this.JSC$17316_channel_.notifyServerReachabilityEvent(3):this.JSC$17316_channel_.notifyServerReachabilityEvent(2));OrC(this);var x=
this.JSC$17318_xmlHttp_.getStatus();this.JSC$17318_lastStatusCode_=x;var y=this.JSC$17318_xmlHttp_.getResponseText();y||this.JSC$17316_channelDebug_.debug("No response text for uri "+this.JSC$17318_requestUri_+" status "+x);this.JSC$17318_successful_=x==200;this.JSC$17316_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17316_rid_+") [ attempt "+this.JSC$17316_retryId_+"]: "+this.JSC$17318_verb_+"\n"+this.JSC$17318_requestUri_+"\n"+E+" "+x);if(this.JSC$17318_successful_){E==4&&d0(this);if(this.decodeChunks_){for(v=
!0;!this.JSC$17318_cancelled_&&this.JSC$17318_xmlHttpChunkStart_<y.length;){var Q=kQx(this,y);if(Q==Hr6){E==4&&(this.JSC$17318_lastError_=4,JY(15),v=!1);Iz(this.JSC$17316_channelDebug_,this.JSC$17316_rid_,null,"[Incomplete Response]");break}else if(Q==D7P){this.JSC$17318_lastError_=4;JY(16);Iz(this.JSC$17316_channelDebug_,this.JSC$17316_rid_,y,"[Invalid Chunk]");v=!1;break}else Iz(this.JSC$17316_channelDebug_,this.JSC$17316_rid_,Q,null),W4M(this,Q)}E==4&&y.length==0&&(this.JSC$17318_lastError_=1,
JY(17),v=!1);this.JSC$17318_successful_=this.JSC$17318_successful_&&v;v||(Iz(this.JSC$17316_channelDebug_,this.JSC$17316_rid_,y,"[Invalid Chunked Response]"),d0(this),$7P(this))}else Iz(this.JSC$17316_channelDebug_,this.JSC$17316_rid_,y,null),W4M(this,y);this.JSC$17318_successful_&&!this.JSC$17318_cancelled_&&(E==4?this.JSC$17316_channel_.JSC$17325_onRequestComplete(this):(this.JSC$17318_successful_=!1,j4b(this)))}else x==400&&y.indexOf("Unknown SID")>0?(this.JSC$17318_lastError_=3,JY(13),this.JSC$17316_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17316_rid_+")")):(this.JSC$17318_lastError_=0,JY(14),this.JSC$17316_channelDebug_.warning("XMLHTTP Bad status "+x+" ("+this.JSC$17316_rid_+")")),d0(this),$7P(this)}else this.JSC$17316_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$17316_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var kQx=function(v,E){var n=v.JSC$17318_xmlHttpChunkStart_,f=E.indexOf("\n",n);if(f==-1)return Hr6;n=Number(E.substring(n,f));if(isNaN(n))return D7P;f+=1;if(f+n>E.length)return Hr6;E=E.slice(f,f+n);v.JSC$17318_xmlHttpChunkStart_=f+n;return E};
K$.prototype.cancel=function(){this.JSC$17318_cancelled_=!0;d0(this)};
var j4b=function(v){v.JSC$17318_watchDogTimeoutTime_=Date.now()+v.timeout_;L4b(v,v.timeout_)},L4b=function(v,E){if(v.JSC$17318_watchDogTimerId_!=null)throw Error("vk");
v.JSC$17318_watchDogTimerId_=sX((0,_.XV)(v.JSC$17318_onWatchDogTimeout_,v),E)},OrC=function(v){v.JSC$17318_watchDogTimerId_&&(_.n1.clearTimeout(v.JSC$17318_watchDogTimerId_),v.JSC$17318_watchDogTimerId_=null)};
K$.prototype.JSC$17318_onWatchDogTimeout_=function(){this.JSC$17318_watchDogTimerId_=null;var v=Date.now();v-this.JSC$17318_watchDogTimeoutTime_>=0?(this.JSC$17316_channelDebug_.info("TIMEOUT: "+this.JSC$17318_requestUri_),this.JSC$17318_type_!=2&&this.JSC$17316_channel_.notifyServerReachabilityEvent(3),d0(this),this.JSC$17318_lastError_=2,JY(18),$7P(this)):(this.JSC$17316_channelDebug_.warning("WatchDog timer called too early"),L4b(this,this.JSC$17318_watchDogTimeoutTime_-v))};
var $7P=function(v){v.JSC$17316_channel_.JSC$17325_isClosed()||v.JSC$17318_cancelled_||v.JSC$17316_channel_.JSC$17325_onRequestComplete(v)},d0=function(v){OrC(v);
_.uU(v.JSC$17318_readyStateChangeThrottle_);v.JSC$17318_readyStateChangeThrottle_=null;v.pollingTimer_.stop();v.JSC$17316_eventHandler_.removeAll();if(v.JSC$17318_xmlHttp_){var E=v.JSC$17318_xmlHttp_;v.JSC$17318_xmlHttp_=null;E.abort();E.dispose()}v.trident_&&(v.trident_=null)};
K$.prototype.getLastError=function(){return this.JSC$17318_lastError_};
var W4M=function(v,E){try{v.JSC$17316_channel_.JSC$17325_onRequestData(v,E),v.JSC$17316_channel_.notifyServerReachabilityEvent(4)}catch(n){}};var Iz=function(v,E,n,f){var x=v.info;a:if(n&&n!="y2f%"){try{var y=JSON.parse(n);if(y)for(var Q=0;Q<y.length;Q++)if(Array.isArray(y[Q])){var e=y[Q];if(!(e.length<2)){var F=e[1];if(Array.isArray(F)&&!(F.length<1)){var b=F[0];if(b!="noop"&&b!="stop")for(var l=1;l<F.length;l++)F[l]=""}}}var r=(0,_.aW)(y);break a}catch(a){v.debug("Exception parsing expected JS array - probably was not JS");r=n;break a}r=void 0}else r=n;x.call(v,"XMLHTTP TEXT ("+E+"): "+r+(f?" "+f:""))};
rK.prototype.debug=function(v){this.info(v)};
rK.prototype.info=function(){};
rK.prototype.warning=function(){};var GQ3=function(v,E){this.JSC$17323_channel_=v;this.JSC$17323_channelDebug_=E;this.JSC$17323_parser_=new em};
_.c=GQ3.prototype;_.c.JSC$17325_extraHeaders_=null;_.c.JSC$17325_request_=null;_.c.receivedIntermediateResult_=!1;_.c.JSC$17325_path_=null;_.c.state_=null;_.c.JSC$17325_lastStatusCode_=-1;_.c.JSC$17325_hostPrefix_=null;_.c.blockedPrefix_=null;
_.c.connect=function(v){this.JSC$17325_path_=v;v=TgR(this.JSC$17323_channel_,this.JSC$17325_path_);JY(3);Date.now();var E=this.JSC$17323_channel_.firstTestResults_;E!=null?(this.JSC$17325_hostPrefix_=E[0],(this.blockedPrefix_=E[1])?(this.state_=1,irM(this)):(this.state_=2,zMp(this))):(ta(v,"MODE","init"),this.JSC$17325_request_=new K$(this,this.JSC$17323_channelDebug_),this.JSC$17325_request_.JSC$17318_extraHeaders_=this.JSC$17325_extraHeaders_,ulO(this.JSC$17325_request_,v,!1,null,!0),this.state_=
0)};
var irM=function(v){var E=RM3(v.JSC$17323_channel_,v.blockedPrefix_,"/mail/images/cleardot.gif");_.BF(E);Ku6(E.toString(),5E3,(0,_.XV)(v.checkBlockedCallback_,v),3,2E3);v.notifyServerReachabilityEvent(1)};
GQ3.prototype.checkBlockedCallback_=function(v){if(v)this.state_=2,zMp(this);else{JY(4);var E=this.JSC$17323_channel_;E.JSC$17326_channelDebug_.debug("Test Connection Blocked");E.JSC$17330_lastStatusCode_=E.connectionTest_.JSC$17325_lastStatusCode_;YW(E,9)}v&&this.notifyServerReachabilityEvent(2)};
var zMp=function(v){v.JSC$17323_channelDebug_.debug("TestConnection: starting stage 2");var E=v.JSC$17323_channel_.secondTestResults_;E!=null?(v.JSC$17323_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+E?"Buffered":"Unbuffered"),JY(5),E?(JY(11),hY(v.JSC$17323_channel_,v,!1)):(JY(12),hY(v.JSC$17323_channel_,v,!0))):(v.JSC$17325_request_=new K$(v,v.JSC$17323_channelDebug_),v.JSC$17325_request_.JSC$17318_extraHeaders_=v.JSC$17325_extraHeaders_,E=tu1(v.JSC$17323_channel_,
v.JSC$17325_hostPrefix_,v.JSC$17325_path_),JY(5),ta(E,"TYPE","xmlhttp"),ulO(v.JSC$17325_request_,E,!1,v.JSC$17325_hostPrefix_,!1))};
_.c=GQ3.prototype;_.c.JSC$17325_createXhrIo=function(v){return this.JSC$17323_channel_.JSC$17325_createXhrIo(v)};
_.c.abort=function(){this.JSC$17325_request_&&(this.JSC$17325_request_.cancel(),this.JSC$17325_request_=null);this.JSC$17325_lastStatusCode_=-1};
_.c.JSC$17325_isClosed=function(){return!1};
_.c.JSC$17325_onRequestData=function(v,E){this.JSC$17325_lastStatusCode_=v.JSC$17318_lastStatusCode_;if(this.state_==0)if(this.JSC$17323_channelDebug_.debug("TestConnection: Got data for stage 1"),E){try{var n=this.JSC$17323_parser_.parse(E)}catch(f){Bg_(this.JSC$17323_channel_,this);return}this.JSC$17325_hostPrefix_=n[0];this.blockedPrefix_=n[1]}else this.JSC$17323_channelDebug_.debug("TestConnection: Null responseText"),Bg_(this.JSC$17323_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(JY(7),Date.now()):E=="11111"?(JY(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17325_lastStatusCode_=200,this.JSC$17325_request_.cancel(),this.JSC$17323_channelDebug_.debug("Test connection succeeded; using streaming connection"),JY(12),hY(this.JSC$17323_channel_,this,!0)):(JY(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.c.JSC$17325_onRequestComplete=function(){this.JSC$17325_lastStatusCode_=this.JSC$17325_request_.JSC$17318_lastStatusCode_;this.JSC$17325_request_.JSC$17318_successful_?this.state_==0?(this.JSC$17323_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,irM(this)):(this.state_=2,zMp(this))):this.state_==2&&(this.JSC$17323_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17323_channelDebug_.debug("Test connection succeeded; using streaming connection"),
JY(12),hY(this.JSC$17323_channel_,this,!0)):(this.JSC$17323_channelDebug_.debug("Test connection failed; not using streaming"),JY(11),hY(this.JSC$17323_channel_,this,!1))):(this.JSC$17323_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?JY(9):this.state_==2&&JY(10),Bg_(this.JSC$17323_channel_,this,this.JSC$17325_request_.getLastError()))};
_.c.JSC$17325_shouldUseSecondaryDomains=function(){return this.JSC$17323_channel_.JSC$17325_shouldUseSecondaryDomains()};
_.c.isActive=function(){return this.JSC$17323_channel_.isActive()};
_.c.notifyServerReachabilityEvent=function(v){this.JSC$17323_channel_.notifyServerReachabilityEvent(v)};var AY=function(v,E,n){this.state_=1;this.JSC$17326_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17326_channelDebug_=new rK;this.JSC$17326_parser_=new em;this.firstTestResults_=v||null;this.secondTestResults_=E!=null?E:null;this.asyncTest_=n||!1},vOp=function(v,E){this.JSC$17328_mapId=v;
this.map=E;this.context=null};
_.c=AY.prototype;_.c.JSC$17330_extraHeaders_=null;_.c.JSC$17330_extraParams_=null;_.c.forwardChannelRequest_=null;_.c.JSC$17330_backChannelRequest_=null;_.c.JSC$17330_path_=null;_.c.JSC$17330_forwardChannelUri_=null;_.c.JSC$17330_backChannelUri_=null;_.c.JSC$17330_hostPrefix_=null;_.c.JSC$17330_nextRid_=0;_.c.JSC$17330_nextMapId_=0;_.c.handler_=null;_.c.JSC$17330_forwardChannelTimerId_=null;_.c.JSC$17330_backChannelTimerId_=null;_.c.JSC$17330_deadBackChannelTimerId_=null;_.c.connectionTest_=null;
_.c.useChunked_=null;_.c.JSC$17330_lastArrayId_=-1;_.c.JSC$17330_lastPostResponseArrayId_=-1;_.c.JSC$17330_lastStatusCode_=-1;_.c.JSC$17330_forwardChannelRetryCount_=0;_.c.JSC$17330_backChannelRetryCount_=0;_.c.JSC$17330_channelVersion_=8;var EOd={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},nOK=function(v,E,n,f){_.py.call(this,"timingevent",v);this.size=E;this.rtt=n;this.retries=f};
_.tf(nOK,_.py);var oOC=function(v){_.py.call(this,"serverreachability",v)};
_.tf(oOC,_.py);AY.prototype.connect=function(v,E,n,f,x){this.JSC$17326_channelDebug_.debug("connect()");JY(0);this.JSC$17330_path_=E;this.JSC$17330_extraParams_=n||{};f&&x!==void 0&&(this.JSC$17330_extraParams_.OSID=f,this.JSC$17330_extraParams_.OAID=x);this.asyncTest_?(sX((0,_.XV)(this.connectTest_,this,v),100),fT0(this)):this.connectTest_(v)};
AY.prototype.disconnect=function(){this.JSC$17326_channelDebug_.debug("disconnect()");xh3(this);if(this.state_==3){var v=this.JSC$17330_nextRid_++,E=this.JSC$17330_forwardChannelUri_.clone();_.KT(E,"SID",this.sid_);_.KT(E,"RID",v);_.KT(E,"TYPE","terminate");Vo(this,E);v=new K$(this,this.JSC$17326_channelDebug_,this.sid_,v);v.JSC$17318_type_=2;v.JSC$17318_baseUri_=_.BF(E.clone());(new Image).src=v.JSC$17318_baseUri_.toString();v.JSC$17318_requestStartTime_=Date.now();j4b(v)}c8U(this)};
AY.prototype.connectTest_=function(v){this.JSC$17326_channelDebug_.debug("connectTest_()");this.connectionTest_=new GQ3(this,this.JSC$17326_channelDebug_);this.connectionTest_.JSC$17325_extraHeaders_=this.JSC$17330_extraHeaders_;this.connectionTest_.JSC$17323_parser_=this.JSC$17326_parser_;this.connectionTest_.connect(v)};
var fT0=function(v){v.JSC$17326_channelDebug_.debug("connectChannel_()");v.JSC$17330_ensureInState_(1,0);v.JSC$17330_forwardChannelUri_=TgR(v,v.JSC$17330_path_);y8x(v)},xh3=function(v){v.connectionTest_&&(v.connectionTest_.abort(),v.connectionTest_=null);
v.JSC$17330_backChannelRequest_&&(v.JSC$17330_backChannelRequest_.cancel(),v.JSC$17330_backChannelRequest_=null);v.JSC$17330_backChannelTimerId_&&(_.n1.clearTimeout(v.JSC$17330_backChannelTimerId_),v.JSC$17330_backChannelTimerId_=null);pkd(v);v.forwardChannelRequest_&&(v.forwardChannelRequest_.cancel(),v.forwardChannelRequest_=null);v.JSC$17330_forwardChannelTimerId_&&(_.n1.clearTimeout(v.JSC$17330_forwardChannelTimerId_),v.JSC$17330_forwardChannelTimerId_=null)},Q1x=function(v,E){if(v.state_==0)throw Error("yk");
v.JSC$17326_outgoingMaps_.length==1E3&&v.JSC$17326_parser_.stringify(E);v.JSC$17326_outgoingMaps_.push(new vOp(v.JSC$17330_nextMapId_++,E));v.state_!=2&&v.state_!=3||y8x(v)};
AY.prototype.JSC$17325_isClosed=function(){return this.state_==0};
AY.prototype.getState=function(){return this.state_};
var y8x=function(v){v.forwardChannelRequest_||v.JSC$17330_forwardChannelTimerId_||(v.JSC$17330_forwardChannelTimerId_=sX((0,_.XV)(v.JSC$17330_onStartForwardChannelTimer_,v),0),v.JSC$17330_forwardChannelRetryCount_=0)};
AY.prototype.JSC$17330_onStartForwardChannelTimer_=function(v){this.JSC$17330_forwardChannelTimerId_=null;Xk3(this,v)};
var Xk3=function(v,E){v.JSC$17326_channelDebug_.debug("startForwardChannel_");if(v.state_==1){if(!E){v.JSC$17326_channelDebug_.debug("open_()");v.JSC$17330_nextRid_=Math.floor(Math.random()*1E5);E=v.JSC$17330_nextRid_++;var n=new K$(v,v.JSC$17326_channelDebug_,"",E);n.JSC$17318_extraHeaders_=v.JSC$17330_extraHeaders_;var f=eAb(v),x=v.JSC$17330_forwardChannelUri_.clone();_.KT(x,"RID",E);_.KT(x,"CVER","1");Vo(v,x);Ngx(n,x,f);v.forwardChannelRequest_=n;v.state_=2}}else v.state_==3&&(E?FwM(v,E):v.JSC$17326_outgoingMaps_.length==
0?v.JSC$17326_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):v.forwardChannelRequest_||(FwM(v),v.JSC$17326_channelDebug_.debug("startForwardChannel_ finished, sent request")))},FwM=function(v,E){if(E)if(v.JSC$17330_channelVersion_>6){v.JSC$17326_outgoingMaps_=v.pendingMaps_.concat(v.JSC$17326_outgoingMaps_);
v.pendingMaps_.length=0;var n=v.JSC$17330_nextRid_-1;E=eAb(v)}else n=E.JSC$17316_rid_,E=E.JSC$17318_postData_;else n=v.JSC$17330_nextRid_++,E=eAb(v);var f=v.JSC$17330_forwardChannelUri_.clone();_.KT(f,"SID",v.sid_);_.KT(f,"RID",n);_.KT(f,"AID",v.JSC$17330_lastArrayId_);Vo(v,f);n=new K$(v,v.JSC$17326_channelDebug_,v.sid_,n,v.JSC$17330_forwardChannelRetryCount_+1);n.JSC$17318_extraHeaders_=v.JSC$17330_extraHeaders_;n.setTimeout(1E4+Math.round(1E4*Math.random()));v.forwardChannelRequest_=n;Ngx(n,f,E)},
Vo=function(v,E){v.handler_&&(v=v.handler_.JSC$17337_getAdditionalParams())&&_.sh.forEach(v,function(n,f){_.KT(E,f,n)})},eAb=function(v){var E=Math.min(v.JSC$17326_outgoingMaps_.length,1E3),n=["count="+E];
if(v.JSC$17330_channelVersion_>6&&E>0){var f=v.JSC$17326_outgoingMaps_[0].JSC$17328_mapId;n.push("ofs="+f)}else f=0;for(var x={},y=0;y<E;x={mapId$jscomp$3:void 0},y++){x.mapId$jscomp$3=v.JSC$17326_outgoingMaps_[y].JSC$17328_mapId;var Q=v.JSC$17326_outgoingMaps_[y].map;x.mapId$jscomp$3=v.JSC$17330_channelVersion_<=6?y:x.mapId$jscomp$3-f;try{_.sh.forEach(Q,function(e){return function(F,b){n.push("req"+e.mapId$jscomp$3+"_"+b+"="+encodeURIComponent(F))}}(x))}catch(e){n.push("req"+x.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}v.pendingMaps_=v.pendingMaps_.concat(v.JSC$17326_outgoingMaps_.splice(0,E));
return n.join("&")},mhx=function(v){v.JSC$17330_backChannelRequest_||v.JSC$17330_backChannelTimerId_||(v.JSC$17330_backChannelAttemptId_=1,v.JSC$17330_backChannelTimerId_=sX((0,_.XV)(v.JSC$17330_onStartBackChannelTimer_,v),0),v.JSC$17330_backChannelRetryCount_=0)},bM_=function(v){if(v.JSC$17330_backChannelRequest_||v.JSC$17330_backChannelTimerId_||v.JSC$17330_backChannelRetryCount_>=3)return!1;
v.JSC$17326_channelDebug_.debug("Going to retry GET");v.JSC$17330_backChannelAttemptId_++;v.JSC$17330_backChannelTimerId_=sX((0,_.XV)(v.JSC$17330_onStartBackChannelTimer_,v),wk0(v,v.JSC$17330_backChannelRetryCount_));v.JSC$17330_backChannelRetryCount_++;return!0};
AY.prototype.JSC$17330_onStartBackChannelTimer_=function(){this.JSC$17330_backChannelTimerId_=null;this.JSC$17326_channelDebug_.debug("Creating new HttpRequest");this.JSC$17330_backChannelRequest_=new K$(this,this.JSC$17326_channelDebug_,this.sid_,"rpc",this.JSC$17330_backChannelAttemptId_);this.JSC$17330_backChannelRequest_.JSC$17318_extraHeaders_=this.JSC$17330_extraHeaders_;this.JSC$17330_backChannelRequest_.JSC$17318_readyStateChangeThrottleMs_=0;var v=this.JSC$17330_backChannelUri_.clone();_.KT(v,
"RID","rpc");_.KT(v,"SID",this.sid_);_.KT(v,"CI",this.useChunked_?"0":"1");_.KT(v,"AID",this.JSC$17330_lastArrayId_);Vo(this,v);_.KT(v,"TYPE","xmlhttp");ulO(this.JSC$17330_backChannelRequest_,v,!0,this.JSC$17330_hostPrefix_,!1);this.JSC$17326_channelDebug_.debug("New Request created")};
var hY=function(v,E,n){v.JSC$17326_channelDebug_.debug("Test Connection Finished");v.useChunked_=v.secondTestResults_==null?n:!v.secondTestResults_;v.JSC$17330_lastStatusCode_=E.JSC$17325_lastStatusCode_;v.asyncTest_||fT0(v)},Bg_=function(v,E){v.JSC$17326_channelDebug_.debug("Test Connection Failed");
v.JSC$17330_lastStatusCode_=E.JSC$17325_lastStatusCode_;YW(v,2)};
AY.prototype.JSC$17325_onRequestData=function(v,E){if(this.state_!=0&&(this.JSC$17330_backChannelRequest_==v||this.forwardChannelRequest_==v))if(this.JSC$17330_lastStatusCode_=v.JSC$17318_lastStatusCode_,this.forwardChannelRequest_==v&&this.state_==3)if(this.JSC$17330_channelVersion_>7){try{var n=this.JSC$17326_parser_.parse(E)}catch(f){n=null}if(Array.isArray(n)&&n.length==3)if(E=n,E[0]==0)a:if(this.JSC$17326_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17330_backChannelTimerId_)this.JSC$17326_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17330_backChannelRequest_)if(this.JSC$17330_backChannelRequest_.JSC$17318_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17318_requestStartTime_)pkd(this),this.JSC$17330_backChannelRequest_.cancel(),this.JSC$17330_backChannelRequest_=null;else break a;else this.JSC$17326_channelDebug_.warning("We do not have a BackChannel established");bM_(this);JY(19)}else this.JSC$17330_lastPostResponseArrayId_=E[1],v=this.JSC$17330_lastPostResponseArrayId_-this.JSC$17330_lastArrayId_,0<
v&&(E=E[2],this.JSC$17326_channelDebug_.debug(E+" bytes (in "+v+" arrays) are outstanding on the BackChannel"),E<37500&&this.useChunked_&&this.JSC$17330_backChannelRetryCount_==0&&!this.JSC$17330_deadBackChannelTimerId_&&(this.JSC$17330_deadBackChannelTimerId_=sX((0,_.XV)(this.JSC$17330_onBackChannelDead_,this),6E3)));else this.JSC$17326_channelDebug_.debug("Bad POST response data returned"),YW(this,11)}else E!="y2f%"&&(this.JSC$17326_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
YW(this,11));else this.JSC$17330_backChannelRequest_==v&&pkd(this),_.XN(E)||(v=this.JSC$17326_parser_.parse(E),this.onInput_(v))};
AY.prototype.JSC$17330_onBackChannelDead_=function(){this.JSC$17330_deadBackChannelTimerId_!=null&&(this.JSC$17330_deadBackChannelTimerId_=null,this.JSC$17330_backChannelRequest_.cancel(),this.JSC$17330_backChannelRequest_=null,bM_(this),JY(20))};
var pkd=function(v){v.JSC$17330_deadBackChannelTimerId_!=null&&(_.n1.clearTimeout(v.JSC$17330_deadBackChannelTimerId_),v.JSC$17330_deadBackChannelTimerId_=null)};
AY.prototype.JSC$17325_onRequestComplete=function(v){this.JSC$17326_channelDebug_.debug("Request complete");if(this.JSC$17330_backChannelRequest_==v){pkd(this);this.JSC$17330_backChannelRequest_=null;var E=2}else if(this.forwardChannelRequest_==v)this.forwardChannelRequest_=null,E=1;else return;this.JSC$17330_lastStatusCode_=v.JSC$17318_lastStatusCode_;if(this.state_!=0)if(v.JSC$17318_successful_)if(E==1){E=v.JSC$17318_postData_?v.JSC$17318_postData_.length:0;v=Date.now()-v.JSC$17318_requestStartTime_;
var n=hMP;n.dispatchEvent(new nOK(n,E,v,this.JSC$17330_forwardChannelRetryCount_));y8x(this);this.handler_&&this.handler_.JSC$17337_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else mhx(this);else{n=v.getLastError();if(n==3||n==7||n==0&&this.JSC$17330_lastStatusCode_>0)this.JSC$17326_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17326_channelDebug_.debug("Maybe retrying, last error: "+Vu3(n,this.JSC$17330_lastStatusCode_));var f;if(f=E==1)this.forwardChannelRequest_||
this.JSC$17330_forwardChannelTimerId_||this.state_==1||this.JSC$17330_forwardChannelRetryCount_>=2?f=!1:(this.JSC$17326_channelDebug_.debug("Going to retry POST"),this.JSC$17330_forwardChannelTimerId_=sX((0,_.XV)(this.JSC$17330_onStartForwardChannelTimer_,this,v),wk0(this,this.JSC$17330_forwardChannelRetryCount_)),this.JSC$17330_forwardChannelRetryCount_++,f=!0);if(f||E==2&&bM_(this))return;this.JSC$17326_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17326_channelDebug_.debug("Error: HTTP request failed");
switch(n){case 1:YW(this,5);break;case 4:YW(this,10);break;case 3:YW(this,6);break;case 7:YW(this,12);break;default:YW(this,2)}}};
var wk0=function(v,E){var n=5E3+Math.floor(Math.random()*1E4);v.isActive()||(v.JSC$17326_channelDebug_.debug("Inactive channel"),n*=2);return n*E};
AY.prototype.onInput_=function(v){for(var E=0;E<v.length;E++){var n=v[E];this.JSC$17330_lastArrayId_=n[0];n=n[1];this.state_==2?n[0]=="c"?(this.sid_=n[1],this.JSC$17330_hostPrefix_=n[2],n=n[3],n!=null?this.JSC$17330_channelVersion_=n:this.JSC$17330_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17337_channelOpened(),this.JSC$17330_backChannelUri_=tu1(this,this.JSC$17330_hostPrefix_,this.JSC$17330_path_),mhx(this)):n[0]=="stop"&&YW(this,7):this.state_==3&&(n[0]=="stop"?YW(this,7):
n[0]!="noop"&&this.handler_&&this.handler_.JSC$17337_channelHandleArray(n),this.JSC$17330_backChannelRetryCount_=0)}};
AY.prototype.JSC$17330_ensureInState_=function(v){if(!_.L1(arguments,this.state_))throw Error("zk`"+this.state_);};
var YW=function(v,E){v.JSC$17326_channelDebug_.info("Error code "+E);if(E==2||E==9){var n=null;v.handler_&&(n=null);var f=(0,_.XV)(v.testGoogleComCallback_,v);n||(n=new _.IT("//www.google.com/images/cleardot.gif"),_.BF(n));JQ1(n.toString(),1E4,f)}else JY(2);v.onError_(E)};
AY.prototype.testGoogleComCallback_=function(v){v?(this.JSC$17326_channelDebug_.info("Successfully pinged google.com"),JY(2)):(this.JSC$17326_channelDebug_.info("Failed to ping google.com"),JY(1),this.onError_(8))};
AY.prototype.onError_=function(v){this.JSC$17326_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$17337_channelError(v);c8U(this);xh3(this)};
var c8U=function(v){v.state_=0;v.JSC$17330_lastStatusCode_=-1;if(v.handler_)if(v.pendingMaps_.length==0&&v.JSC$17326_outgoingMaps_.length==0)v.handler_.JSC$17337_channelClosed();else{v.JSC$17326_channelDebug_.debug("Number of undelivered maps, pending: "+v.pendingMaps_.length+", outgoing: "+v.JSC$17326_outgoingMaps_.length);var E=_.tG(v.pendingMaps_),n=_.tG(v.JSC$17326_outgoingMaps_);v.pendingMaps_.length=0;v.JSC$17326_outgoingMaps_.length=0;v.handler_.JSC$17337_channelClosed(E,n)}},TgR=function(v,
E){E=RM3(v,null,E);
v.JSC$17326_channelDebug_.debug("GetForwardChannelUri: "+E);return E},tu1=function(v,E,n){E=RM3(v,v.JSC$17325_shouldUseSecondaryDomains()?E:null,n);
v.JSC$17326_channelDebug_.debug("GetBackChannelUri: "+E);return E},RM3=function(v,E,n){var f=_.qE(n);
if(f.JSC$7925_domain_!="")E&&_.$2(f,E+"."+f.JSC$7925_domain_),_.Ly(f,f.JSC$7925_port_);else{var x=window.location;f=DqO(x.protocol,E?E+"."+x.hostname:x.hostname,+x.port,n)}v.JSC$17330_extraParams_&&_.sh.forEach(v.JSC$17330_extraParams_,function(y,Q){_.KT(f,Q,y)});
_.KT(f,"VER",v.JSC$17330_channelVersion_);Vo(v,f);return f};
AY.prototype.JSC$17325_createXhrIo=function(v){if(v)throw Error("wk");v=new _.Zr;v.JSC$7688_withCredentials_=!1;return v};
AY.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
AY.prototype.notifyServerReachabilityEvent=function(v){var E=hMP;E.dispatchEvent(new oOC(E,v))};
AY.prototype.JSC$17325_shouldUseSecondaryDomains=function(){return!1};
new Oh_;var lT6=function(){};
_.c=lT6.prototype;_.c.JSC$17337_channelOpened=function(){};
_.c.JSC$17337_channelHandleArray=function(){};
_.c.JSC$17337_channelSuccess=function(){};
_.c.JSC$17337_channelError=function(){};
_.c.JSC$17337_channelClosed=function(){};
_.c.JSC$17337_getAdditionalParams=function(){return{}};
_.c.isActive=function(){return!0};var s1_=function(v){v.front_.length===0&&(v.front_=v.back_,v.front_.reverse(),v.back_=[])};
_.c=Il6.prototype;_.c.enqueue=function(v){this.back_.push(v)};
_.c.peek=function(){s1_(this);return _.DA(this.front_)};
_.c.getCount=function(){return this.front_.length+this.back_.length};
_.c.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.c.clear=function(){this.front_=[];this.back_=[]};
_.c.contains=function(v){return _.L1(this.front_,v)||_.L1(this.back_,v)};
_.c.remove=function(v){var E=this.front_;var n=Array.prototype.lastIndexOf.call(E,v,E.length-1);n>=0?(_.Ts(E,n),E=!0):E=!1;return E||_.zs(this.back_,v)};
_.c.getValues=function(){for(var v=[],E=this.front_.length-1;E>=0;--E)v.push(this.front_[E]);E=this.back_.length;for(var n=0;n<E;++n)v.push(this.back_[n]);return v};var D0=function(v){this.JSC$17341_map_=new _.BX;this.size=0;v&&this.addAll(v)},r80=function(v){var E=typeof v;
return E=="object"&&v||E=="function"?"o"+_.xw(v):E.charAt(0)+v};
_.c=D0.prototype;_.c.getCount=function(){return this.JSC$17341_map_.size};
_.c.add=function(v){this.JSC$17341_map_.set(r80(v),v);this.size=this.JSC$17341_map_.size};
_.c.addAll=function(v){v=_.k2(v);for(var E=v.length,n=0;n<E;n++)this.add(v[n]);this.size=this.JSC$17341_map_.size};
_.c.removeAll=function(v){v=_.k2(v);for(var E=v.length,n=0;n<E;n++)this.remove(v[n]);this.size=this.JSC$17341_map_.size};
_.c.delete=function(v){v=this.JSC$17341_map_.remove(r80(v));this.size=this.JSC$17341_map_.size;return v};
_.c.remove=function(v){return this.delete(v)};
_.c.clear=function(){this.JSC$17341_map_.clear();this.size=0};
_.c.isEmpty=function(){return this.JSC$17341_map_.size===0};
_.c.has=function(v){return this.JSC$17341_map_.containsKey(r80(v))};
_.c.contains=function(v){return this.JSC$17341_map_.containsKey(r80(v))};
_.c.getValues=function(){return this.JSC$17341_map_.getValues()};
_.c.values=function(){return this.JSC$17341_map_.values()};
_.c.clone=function(){return new D0(this)};
_.c.equals=function(v){return this.getCount()==Aq1(v)&&PIO(this,v)};
var PIO=function(v,E){var n=Aq1(E);if(v.getCount()>n)return!1;!(E instanceof D0)&&n>5&&(E=new D0(E));return VwK(v,function(f){var x=E;return x.contains&&typeof x.contains=="function"?x.contains(f):x.containsValue&&typeof x.containsValue=="function"?x.containsValue(f):_.E1(x)||typeof x==="string"?_.L1(x,f):_.sh.containsValue(x,f)})};
D0.prototype.__iterator__=function(){return this.JSC$17341_map_.__iterator__(!1)};
D0.prototype[Symbol.iterator]=function(){return this.values()};var aTp={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(v){return(this._clampValue(v)-this.min)/(this.max-this.min)},
_clampValue:function(v){return Math.min(this.max,Math.max(this.min,this._calcStep(v)))},
_calcStep:function(v){v=parseFloat(v);if(!this.step)return v;v=Math.round((v-this.min)/this.step);return this.step<1?v/(1/this.step)+this.min:v*this.step+this.min},
_validateValue:function(){var v=this._clampValue(this.value);this.value=this.oldValue=isNaN(v)?this.oldValue:v;return this.value!==v},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ZM6;var CIb;_.Ee({_template:function(){if(CIb!==void 0)return CIb;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;ZM6===void 0&&(ZM6=document.createElement("template"));var f=ZM6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return CIb=v},
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(){_.IS(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(v){v.keyCode===27&&(v.preventDefault(),this.close())},
_track:function(v){if(!this.persistent&&!this.disableSwipe)switch(v.preventDefault(),v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackMove(v);break;case "end":this._trackEnd(v)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var v=this.$.contentContainer.getBoundingClientRect();this._savedWidth=v.width;this._translateOffset=this.position==="left"?v.left:v.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(v){this._trackDetails&&(this._translateDrawer(v.detail.dx+this._translateOffset),this._trackDetails.push({dx:v.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(v){if(this._trackDetails){var E=v.detail.dx+this._translateOffset,n=this.getWidth();E=this.position==="left"?E>=0||E<=-n:E<=0||E>=n;if(!E){var f=this._trackDetails;this._trackDetails=null;this._flingDrawer(v,f);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}n/=2;v.detail.dx<-n?this.opened=this.position==="right":v.detail.dx>n&&(this.opened=this.position==="left");E?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(v,E){for(var n=Date.now(),f=n-100,x,y=0,Q=E.length-1;y<=Q;){var e=y+Q>>1,F=E[e];F.timeStamp>=f?(x=F,Q=e-1):y=e+1}return x?(v.detail.dx-x.dx)/(n-x.timeStamp||1):0},
_flingDrawer:function(v,E){E=this._calculateVelocity(v,E);if(!(Math.abs(E)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;v=v.detail.dx+this._translateOffset;var n=this.getWidth(),f=this.position==="left",x=E>0;x?(E=Math.max(E,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(E=Math.min(E,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");E=this._FLING_INITIAL_SLOPE*(!x&&f?-(v+n):x&&!f?n-v:-v)/E;this._styleTransitionDuration(E);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,E)}},
_styleTransitionDuration:function(v){this.style.transitionDuration=v+"ms";this.$.contentContainer.style.transitionDuration=v+"ms";this.$.scrim.style.transitionDuration=v+"ms"},
_styleTransitionTimingFunction:function(v){this.$.contentContainer.style.transitionTimingFunction=v;this.$.scrim.style.transitionTimingFunction=v},
_translateDrawer:function(v){var E=this.getWidth();this.position==="left"?(v=Math.max(-E,Math.min(v,0)),this.$.scrim.style.opacity=1+v/E):(v=Math.max(0,Math.min(v,E)),this.$.scrim.style.opacity=1-v/E);this.translate3d(v+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var v=this._drawerState;v===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;v!==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=""),v!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var v=_.pG(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"])');v.length>0?(this._firstTabStop=v[0],this._lastTabStop=v[v.length-1]):
this._lastTabStop=this._firstTabStop=null;(v=this.getAttribute("tabindex"))&&parseInt(v,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(v){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||v.keyCode!==9||(v.shiftKey?this._firstTabStop&&_.pG(v).localTarget===this._firstTabStop&&(v.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.pG(v).localTarget===this._lastTabStop&&(v.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(v,E){this.toggleClass("visible",v&&!E,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 MHb;var SSd;_.Ee({_template:function(){if(SSd!==void 0)return SSd;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;MHb===void 0&&(MHb=document.createElement("template"));var f=MHb;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return SSd=v},
is:"tp-yt-paper-progress",behaviors:[aTp],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(v){this.toggleClass("indeterminate",v,this.$.primaryProgress)},
_transformProgress:function(v,E){v.style.transform=v.style.webkitTransform="scaleX("+E/100+")"},
_mainRatioChanged:function(v){this._transformProgress(this.$.primaryProgress,v)},
_progressChanged:function(v,E,n,f,x){v=this._clampValue(v);E=this._clampValue(E);var y=this._calcRatio(v)*100,Q=this._calcRatio(E)*100;this._setSecondaryRatio(y);this._transformProgress(this.$.secondaryProgress,y);this._transformProgress(this.$.primaryProgress,Q);this.secondaryProgress=v;x?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",E);this.setAttribute("aria-valuemin",n);this.setAttribute("aria-valuemax",f)},
_disabledChanged:function(v){this.setAttribute("aria-disabled",v?"true":"false")},
_hideSecondaryProgress:function(v){return v===0}});var Uh6;var qSx;var J86=function(){};
_.c=J86.prototype;_.c.registered=function(){};
_.c.addOwnKeyBinding=function(){};
_.c.removeOwnKeyBindings=function(){};
_.c.keyboardEventMatchesKeys=function(){};
_.c._collectKeyBindings=function(){};
_.c._prepKeyBindings=function(){};
_.c._addKeyBinding=function(){};
_.c._resetKeyEventListeners=function(){};
_.c._listenKeyEventListeners=function(){};
_.c._unlistenKeyEventListeners=function(){};
_.c._onKeyBindingEvent=function(){};
_.c._triggerKeyHandler=function(){};
_.c._tapHandler=function(){};
_.c._focusChanged=function(){};
_.c._detectKeyboardFocus=function(){};
_.c._userActivate=function(){};
_.c._upHandler=function(){};
_.c._spaceKeyDownHandler=function(){};
_.c._spaceKeyUpHandler=function(){};
_.c._asyncClick=function(){};
_.c._pressedChanged=function(){};
_.c._ariaActiveAttributeChanged=function(){};
_.c._activeChanged=function(){};
_.c._controlStateChanged=function(){};
_.c._changedButtonState=function(){};
_.c._focusBlurHandler=function(){};
_.c._disabledChanged=function(){};
_.c._changedControlState=function(){};
_.c._buttonStateChanged=function(){};
_.c._downHandler=function(){};
_.c.ensureRipple=function(){};
_.c.getRipple=function(){};
_.c.hasRipple=function(){};
_.c._noinkChanged=function(){};
_.c._calcRatio=function(){};
_.c._clampValue=function(){};
_.c._calcStep=function(){};
_.c._validateValue=function(){};
_.c._update=function(){};
_.c._setImmediateValue=function(){};
_.c._setExpand=function(){};
_.c._setDragging=function(){};
_.c._setTransiting=function(){};
_.c._setMarkers=function(){};
_.c._setPressed=function(){};
_.c._setPointerDown=function(){};
_.c._setReceivedFocusFromKeyboard=function(){};
_.c._setFocused=function(){};
_.c._setRatio=function(){};
J86=_.Ee({_template:function(){if(qSx!==void 0)return qSx;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Uh6===void 0&&(Uh6=document.createElement("template"));var f=Uh6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return qSx=v},
is:"tp-yt-paper-slider",behaviors:[_.Ff,_.lI,_.CT1,aTp],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&&_.b$(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(v,E,n){this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",n);this.setAttribute("aria-valuenow",v);this._positionKnob(this._calcRatio(v)*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(v){this._setImmediateValue(this._calcStep(this._calcKnobPosition(v)));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(v){return(this.max-this.min)*v/100+this.min},
_onTrack:function(v){v.stopPropagation();switch(v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackX(v);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(v){this.dragging||this._trackStart(v);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,v.detail.dx*(this._isRTL?-1:1)));v=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(v);v=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(v+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var v=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;v.transform=v.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(v){this._expandKnob();v.preventDefault();this.focus()},
_bartrack:function(v){this._allowBarEvent(v)&&this._onTrack(v)},
_barclick:function(v){this._w=this.$.sliderBar.offsetWidth;var E=this.$.sliderBar.getBoundingClientRect();E=(v.detail.x-E.left)/this._w*100;this._isRTL&&(E=100-E);var n=this.ratio;this._setTransiting(!0);this._positionKnob(E);n===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
v.preventDefault();this.focus()},
_bardown:function(v){this._allowBarEvent(v)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(v))},
_knobTransitionEnd:function(v){v.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(v,E,n,f){f||this._setMarkers([]);E=Math.round((n-E)/this.step);E>v&&(E=v);if(E<0||!isFinite(E))E=0;this._setMarkers(Array(E))},
_mergeClasses:function(v){return Object.keys(v).filter(function(E){return v[E]}).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(v){return!this.ignoreBarTouch||v.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(v){this._isRTL?this._incrementKey(v):this._decrementKey(v)},
_rightKey:function(v){this._isRTL?this._decrementKey(v):this._incrementKey(v)},
_incrementKey:function(v){this.disabled||(v.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),v.preventDefault())},
_decrementKey:function(v){this.disabled||(v.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),v.preventDefault())},
_changeValue:function(v){this.value=v.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(v){v.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.ZU1._createRipple.call(this)},
_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=v?"":"none",this._ripple.holdDown=v)}});var Kwx;var dhb;var Hu=null,IT0=function(){};
_.c=IT0.prototype;_.c.fit=function(){};
_.c._discoverInfo=function(){};
_.c.resetFit=function(){};
_.c.refit=function(){};
_.c.position=function(){};
_.c.constrain=function(){};
_.c._sizeDimension=function(){};
_.c.__sizeDimension=function(){};
_.c.center=function(){};
_.c.__getNormalizedRect=function(){};
_.c.__getOffscreenArea=function(){};
_.c.__getPosition=function(){};
_.c.notifyResize=function(){};
_.c.assignParentResizable=function(){};
_.c.stopResizeNotificationsFor=function(){};
_.c._subscribeIronResize=function(){};
_.c._unsubscribeIronResize=function(){};
_.c.resizerShouldNotify=function(){};
_.c._onDescendantIronResize=function(){};
_.c._fireResize=function(){};
_.c._onIronRequestResizeNotifications=function(){};
_.c._parentResizableChanged=function(){};
_.c._notifyDescendant=function(){};
_.c._requestResizeNotifications=function(){};
_.c._findParent=function(){};
_.c.toggle=function(){};
_.c.open=function(){};
_.c.close=function(){};
_.c.cancel=function(){};
_.c.invalidateTabbables=function(){};
_.c._ensureSetup=function(){};
_.c._canceledChanged=function(){};
_.c._withBackdropChanged=function(){};
_.c._prepareRenderOpened=function(){};
_.c._finishRenderOpened=function(){};
_.c._finishRenderClosed=function(){};
_.c._preparePositioning=function(){};
_.c._finishPositioning=function(){};
_.c._applyFocus=function(){};
_.c._onCaptureClick=function(){};
_.c._onCaptureFocus=function(){};
_.c._onCaptureEsc=function(){};
_.c._onCaptureTab=function(){};
_.c._onIronResize=function(){};
_.c._onNodesChange=function(){};
_.c.__ensureFirstLastFocusables=function(){};
_.c.__openedChanged=function(){};
_.c.__deraf=function(){};
_.c.__updateScrollObservers=function(){};
_.c.__addScrollListeners=function(){};
_.c.__removeScrollListeners=function(){};
_.c.__isValidScrollAction=function(){};
_.c.__onCaptureScroll=function(){};
_.c.__saveScrollPosition=function(){};
_.c.__restoreScrollPosition=function(){};
_.c._setCanceled=function(){};
IT0=_.Ee({_template:function(){if(dhb!==void 0)return dhb;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;Kwx===void 0&&(Kwx=document.createElement("template"));var f=Kwx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);return dhb=v},
is:"tp-yt-paper-toast",behaviors:[_.Hk],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(){_.m4._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.YO.requestAvailability()},
show:function(v){typeof v=="string"&&(v={text:v});for(var E in v)E.indexOf("_")===0?_.m4._warn('The property "'+E+'" is private and was not set.'):E in this?this[E]=v[E]:_.m4._warn('The property "'+E+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(v){v&&v.target===this&&v.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Hu&&Hu!==this&&Hu.close(),Hu=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Hu===this&&(Hu=null);_.DT._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(v){this.positionTarget=v},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var YS3=new _.z("disablePersonalizationAction");var MIC=new _.z("showDmaConsentFlowCommand");var Se1=new _.z("showMmgNoticeCommand");var hAP=new _.z("saveConsentAction");var A8M=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Bb(v)};
_.S(A8M,_.Vj);var VHC=_.EbX(A8M);var DhC=new _.z("updateTopbarAvatarAction");var HM0=new _.z("channelHandleValidationResultRenderer");var gOO=new _.z("generateHandleFromNameResultRenderer");var N7U=new _.z("channelHandleInputRenderer");var ufK=new _.z("copyLinkRenderer");var j1R=new _.z("timedCommand");var OM6=new _.z("clearCookieAction");var ktM=new _.z("getMultiPageMenuAction");var Ww1=new _.z("addToGuideSectionAction"),$hd=new _.z("removeFromGuideSectionAction");var Lwb=new _.z("updateNotificationsUnseenCountAction");var GtP=new _.z("resetChannelUnreadCountCommand");var T73=new _.z("resetSubscriptionsUnreadDotCommand");var iMC=new _.z("selectLanguageCommand");var NnR=new _.z("sendFeedbackAction");var zAp=new _.z("uploadImageToScottyCommand");var RAU=new _.z("registerPromoCommand");var tHd=new _.z("setPushNotificationsEnabledCommand");var B73=new _.z("desktopTopbarRenderer");var vVp=new _.z("surveyFollowUpRenderer");var EV3=new _.z("handlesClaimingRadioOptionRenderer");var nV_=new _.z("hotkeyDialogRenderer");var oVp=new _.z("modifyReportFormCommand");var fOp=new _.z("accountLinkCommand");var xb6=new _.z("accountUnlinkCommand");var c$0=new _.z("logAccountLinkingEventCommand");var y$6=new _.z("guideCollapsibleEntryRenderer");var pD6=new _.z("guideDownloadsEntryRenderer");var g0=new _.z("guideEntryRenderer");var QsU=new _.z("getLocationCommand");var XDP=new _.z("locationCollectionCommand");var er1=new _.z("storiesItemViewModel");var FD3=new _.z("addToRemoteQueueAction");var mbK=new _.z("insertInRemoteQueueAction");var wDP=new _.z("removeFromRemoteQueueAction");var bgP=new _.z("notificationRenderer");var pEO=new _.z("localWatchHistoryCommand");var lOK=new _.z("pdgBuyFlowHeaderRenderer");var ssO=new _.z("pdgColorSliderRenderer");var r$C=new _.z("pdgCommentOptionRenderer");var PM6=new _.z("pdgCommentPreviewRenderer");var aO1=new _.z("superVodSelectableItemButtonRenderer");var ZgK=new _.z("switchButtonRenderer");var CMC=new _.z("upsellDialogRenderer");var MOP=new _.z("feedbackQuestionRenderer"),Sk0=new _.z("feedbackOptionRenderer");var UbU=new _.z("sponsorshipsTierRenderer"),qk_=new _.z("sponsorshipsPromotionChannelRenderer");var J$M=new _.z("simpleSurveyMessageRenderer");var NqO=new _.z("invokeInstrumentManagerAction");var KD1=new _.z("logYpcFlowDismissCommand");var dbU=new _.z("logYpcFlowStartCommand");var IOx=new _.z("unlimitedCreateFamilyEndpoint");var YkU=new _.z("iconBadgeRenderer");var ppU=new _.z("collaborativePlaylistVisibilityValidationRule");var hrp=function(v){_.py.call(this,"channelMessage");this.message=v};
_.S(hrp,_.py);var A$P=function(v){_.py.call(this,"channelError");this.error=v};
_.S(A$P,_.py);var VO_={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"},Db6={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Hgb={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
gVd={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},NR1={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var NZ=function(v){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 _.BX;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";v&&(this.id=v.id||v.name,this.name=v.name,this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=v.app,this.type=v.type||"REMOTE_CONTROL",this.username=v.user||"",this.avatar=v.userAvatarUri||"",this.obfuscatedGaiaId=v.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=v.ownerObfuscatedGaiaId||"",this.theme=v.theme||"u",u00(this,v.capabilities||""),jsb(this,v.compatibleSenderThemes||""),Ogp(this,v.experiments||""),
this.remoteControllerUrl=v.remoteControllerUrl||"",this.localChannelEncryptionKey=v.localChannelEncryptionKey||"",this.deviceContext=v.deviceContext,this.brand=v.brand||"",this.model=v.model||"",this.year=v.year||0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=v.pairingType||"unknown",v=v.deviceInfo)&&(v=JSON.parse(v),this.brand=v.brand||"",this.model=v.model||"",this.year=v.year||
0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
NZ.prototype.copy=function(){var v={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&&(v.brand=this.brand);
this.model&&(v.model=this.model);this.year&&(v.year=this.year);this.os&&(v.os=this.os);this.osVersion&&(v.osVersion=this.osVersion);this.chipset&&(v.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(v.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(v.mdxDialServerType=this.mdxDialServerType);v=new NZ(v);v.connected=this.connected;v.remoteControllerUrl=this.remoteControllerUrl;v.localChannelEncryptionKey=this.localChannelEncryptionKey;v.deviceContext=
this.deviceContext;return v};
NZ.prototype.equals=function(v){return v?this.id==v.id:!1};
var u00=function(v,E){v.capabilities.clear();_.v2(E.split(","),_.vR(_.sh.contains,VO_)).forEach(function(n){v.capabilities.add(n)})},jsb=function(v,E){v.compatibleSenderThemes.clear();
_.v2(E.split(","),_.vR(_.sh.contains,Db6)).forEach(function(n){v.compatibleSenderThemes.add(n)})},Ogp=function(v,E){v.experiments.clear();
E.split(",").forEach(function(n){v.experiments.add(n)})};var k4p=function(v,E){this.action=v;this.params=E||{}};_.tf(YL6,_.QK);_.c=YL6.prototype;_.c.JSC$17377_onTick_=function(){this.JSC$17375_interval_=Math.min(3E5,this.JSC$17375_interval_*2);this.JSC$17377_listener_();this.nextTickTime_&&this.start()};
_.c.start=function(){var v=this.JSC$17375_interval_+15E3*Math.random(),E=this.delay_;E.isActive()||E.start(v);this.nextTickTime_=Date.now()+v};
_.c.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.c.isActive=function(){return this.delay_.isActive()};
_.c.reset=function(){this.delay_.stop();this.JSC$17375_interval_=5E3};_.tf(Pe,lT6);_.c=Pe.prototype;_.c.subscribe=function(v,E,n){return this.pubsub_.subscribe(v,E,n)};
_.c.unsubscribe=function(v,E,n){return this.pubsub_.unsubscribe(v,E,n)};
_.c.unsubscribeByKey=function(v){return this.pubsub_.unsubscribeByKey(v)};
_.c.publish=function(v,E){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.c.dispose=function(){this.JSC$17378_disposed_||(this.JSC$17378_disposed_=!0,_.uU(this.pubsub_),this.disconnect(),_.uU(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17378_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Gn({})})};
_.c.isDisposed=function(){return this.JSC$17378_disposed_};
_.c.connect=function(v,E,n){var f=this,x,y,Q,e;return _.X(function(F){if(F.nextAddress==1)return _.ol(F,2),f.useAsyncBrowserChannelHandler_?_.m(F,f.connectPromise_,2):F.jumpTo(2);_.nI(F);if(f.JSC$17378_disposed_||f.JSC$17378_channel_&&f.JSC$17378_channel_.getState()==2)return F.return();f.sCookie_="";f.reconnectTimer_.stop();f.connectionParams_=v||null;f.connectUi_=E||0;x=f.JSC$17378_pathPrefix_+"/test";y=f.JSC$17378_pathPrefix_+"/bind";Q=new AY(n?n.firstTestResults:null,n?n.secondTestResults:null,
f.enableAsyncTest_);if(e=f.JSC$17378_channel_)e.handler_=null;Q.handler_=f;f.JSC$17378_channel_=Q;if(f.useAsyncBrowserChannelHandler_)return f.connectPromise_=WDO(f).then(function(){return $bb(f,x,y,e,n)}),F.return(f.connectPromise_.then(function(){f.connectPromise_=_.Gn()}));
$bb(f,x,y,e,n);return _.xh(F,0)})};
var $bb=function(v,E,n,f,x){LDb(v);if(v.JSC$17378_channel_){var y=_.MX("ID_TOKEN"),Q=v.JSC$17378_channel_.JSC$17330_extraHeaders_||{};y?Q["x-youtube-identity-token"]=y:delete Q["x-youtube-identity-token"];v.JSC$17378_channel_.JSC$17330_extraHeaders_=Q}G4U(v);f?(f.getState(),v.JSC$17378_channel_.connect(E,n,v.defaultQueryParams_,f.sid_,f.JSC$17330_lastArrayId_)):x?v.JSC$17378_channel_.connect(E,n,v.defaultQueryParams_,x.sessionId,x.arrayId):v.JSC$17378_channel_.connect(E,n,v.defaultQueryParams_)};
Pe.prototype.disconnect=function(v){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Gn())}finally{this.disconnectUi_=v||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),LDb(this),this.JSC$17378_channel_&&(this.JSC$17378_channel_.getState()==3&&Xk3(this.JSC$17378_channel_),this.JSC$17378_channel_.disconnect()),this.disconnectUi_=0}};
Pe.prototype.sendMessage=function(v,E){var n=this,f;return _.X(function(x){switch(x.nextAddress){case 1:_.ol(x,2);if(!n.useAsyncBrowserChannelHandler_){x.jumpTo(2);break}return _.m(x,n.connectPromise_,2);case 2:_.nI(x);if(n.JSC$17378_disposed_)return x.return();f={_sc:v};E&&_.sh.extend(f,E);if(n.reconnectTimer_.isActive()||(n.JSC$17378_channel_?n.JSC$17378_channel_.getState():0)==2){n.JSC$17378_pendingMessages_.push(f);x.jumpTo(6);break}if(!n.isChannelOpened()){x.jumpTo(6);break}_.ol(x,8);if(!n.useAsyncBrowserChannelHandler_||
TR0(n,v)){x.jumpTo(8);break}return _.m(x,WDO(n),8);case 8:_.nI(x,0,0,1);n.isChannelOpened()&&(TR0(n,v)||G4U(n),LDb(n),Q1x(n.JSC$17378_channel_,f));_.xh(x,6,1);break;case 6:_.xh(x,0)}})};
var TR0=function(v,E){return v.enableMdxAuthForConnectionOnly_?!0:v.disableMdxAuthForAdMessages_?Object.values(Hgb).includes(E):v.disableMdxAuthForNonPlaybackMessages_?!Object.values(gVd).includes(E):v.disableMdxAuthForShortsMessages_?Object.values(NR1).includes(E):!1};
Pe.prototype.JSC$17337_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17378_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)ig0(this);else{var v=this.JSC$17378_pendingMessages_;this.JSC$17378_pendingMessages_=[];var E=v.length;G4U(this);zrd(this,v,E);RrR(this)}else RrR(this)};
var ig0=function(v){var E,n;_.X(function(f){if(f.nextAddress==1)return _.ol(f,2),_.m(f,WDO(v),2);_.nI(f);E=v.JSC$17378_pendingMessages_;v.JSC$17378_pendingMessages_=[];n=E.length;zrd(v,E,n);RrR(v);return _.xh(f,0)})},zrd=function(v,E,n){for(var f=0;f<n;++f)Q1x(v.JSC$17378_channel_,E[f]);
RrR(v)},RrR=function(v){v.publish("handlerOpened");
v.JSC$17378_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.c=Pe.prototype;_.c.JSC$17337_channelError=function(v){var E=v==2&&this.JSC$17378_channel_.JSC$17330_lastStatusCode_==401;v==4||E||this.reconnectTimer_.start();this.publish("handlerError",v,E);E=Object.keys(EOd).find(function(n){return EOd[n]===v});
this.JSC$17378_channelErrorCounter.increment("BROWSER_CHANNEL",E!=null?E:"UNKNOWN")};
_.c.JSC$17337_channelClosed=function(v,E){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(E)for(var n=E.length,f=0;f<n;++f){var x=E[f].map;x&&this.JSC$17378_pendingMessages_.push(x)}this.JSC$17378_channelClosedCounter.increment("BROWSER_CHANNEL");v&&this.pendingMapsOnClosedCounter.JSC$7821_streamzService.JSC$7679_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",v.length);E&&this.undeliveredMapsOnClosedCounter.JSC$7824_streamzService.JSC$7679_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
E.length)};
_.c.JSC$17337_channelSuccess=function(v,E){E!=null&&v!=null&&this.channelMessageSentCounter.increment()};
_.c.JSC$17337_getAdditionalParams=function(){var v={v:2};this.sCookie_&&(v.gsessionid=this.sCookie_);this.connectUi_!=0&&(v.ui=""+this.connectUi_);this.disconnectUi_!=0&&(v.ui=""+this.disconnectUi_);this.connectionParams_&&_.sh.extend(v,this.connectionParams_);return v};
_.c.JSC$17337_channelHandleArray=function(v){v[0]=="S"?this.sCookie_=v[1]:v[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17378_channel_.disconnect()):this.publish("handlerMessage",new k4p(v[0],v[1]));this.JSC$17378_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.c.isChannelOpened=function(){return!!this.JSC$17378_channel_&&this.JSC$17378_channel_.getState()==3};
var LDb=function(v){if(v.JSC$17378_channel_){var E=v.JSC$17378_getXsrfToken_(),n=v.JSC$17378_channel_.JSC$17330_extraHeaders_||{};E?n["x-youtube-lounge-xsrf-token"]=E:delete n["x-youtube-lounge-xsrf-token"];v.JSC$17378_channel_.JSC$17330_extraHeaders_=n}},WDO=function(v){if(v.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Gn();
if(!v.enableCachedUpdateAuthorizationHeader_)return tOb(v);v.updateAuthorizationHeaderPromise_===null&&(v.updateAuthorizationHeaderPromise_=tOb(v));return v.updateAuthorizationHeaderPromise_},tOb=function(v){return _.so(v.getAuthorizationHeader_().then(function(E){BRP(v,E)}).thenCatch(function(){}),function(){v.updateAuthorizationHeaderPromise_=null})},BRP=function(v,E){if(v.JSC$17378_channel_){var n=v.JSC$17378_channel_.JSC$17330_extraHeaders_||{};
E&&Object.keys(E).length>0?n=Object.assign({},n,E):delete n.Authorization;v.JSC$17378_channel_.JSC$17330_extraHeaders_=n}},G4U=function(v){v.getAuthorizationHeaderSync_&&!v.useAsyncBrowserChannelHandler_&&BRP(v,v.getAuthorizationHeaderSync_())};
_.c=Pe.prototype;_.c.setLoungeToken=function(v){(this.defaultQueryParams_.loungeIdToken=v)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17378_channel_){var E=this.JSC$17378_channel_.JSC$17330_extraHeaders_||{};v?E["X-YouTube-LoungeId-Token"]=v:delete E["X-YouTube-LoungeId-Token"];this.JSC$17378_channel_.JSC$17330_extraHeaders_=E}};
_.c.getDeviceId=function(){return this.defaultQueryParams_.id};
_.c.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.c.reconnect=function(){var v=this.reconnectTimer_;v.delay_.fire();v.start()};
_.c.safeReconnect_=function(){var v=this.JSC$17378_channel_,E=0;v.JSC$17330_backChannelRequest_&&E++;v.forwardChannelRequest_&&E++;E==0&&this.connect(this.connectionParams_,this.connectUi_)};var qW=function(v,E){var n=v.basePath;v.supportCors&&(n=v.scheme+"://"+v.domain+v.port+v.basePath);return _.V1(n+E,{})};
ax.prototype.sendRequest=function(v,E,n,f,x,y,Q){v={format:y?"RAW":"JSON",method:v,context:this,timeout:5E3,withCredentials:!!Q,onSuccess:_.vR(this.JSC$17383_onSuccess_,f,!y),onError:_.vR(this.onError_,x),onTimeout:_.vR(this.JSC$17383_onTimeout_,x)};n&&(v.postParams=n,v.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.tM(E,v)};
ax.prototype.JSC$17383_onSuccess_=function(v,E,n,f){E?v(f):v({text:n.responseText})};
ax.prototype.onError_=function(v,E){v(Error("Ak`"+E.status))};
ax.prototype.JSC$17383_onTimeout_=function(v){v(Error("Bk"))};var C8=function(v,E){return!!E&&(v.id==E||v.uuid==E)},vo6=function(v){return{name:v.name,
screenId:v.id,loungeToken:v.token,dialId:v.uuid,screenIdType:v.idType}},EoP=function(v){return new ZC(v)},no_=function(v){return Array.isArray(v)?_.rA(v,EoP):[]},jQ3=function(v){if(!v)return"null";
var E=v.token?".."+v.token.slice(-6):"-",n=v.uuid?".."+v.uuid.slice(-6):"-";return'{name:"'+v.name+'",id:'+v.id.substr(0,6)+"..,token:"+(E+",uuid:"+n+",idType:"+v.idType+"}")},bHR=function(v){return Array.isArray(v)?"["+_.rA(v,jQ3).join(",")+"]":"null"};var iG6="",UX=null;var fI0=function(v,E){_.mP.call(this);var n=this;this.handler=v();this.handler.subscribe("handlerOpened",this.JSC$17390_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(f,x){n.onError(x)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=E};
_.S(fI0,_.mP);_.c=fI0.prototype;_.c.connect=function(v,E,n){this.handler.connect(v,E,n)};
_.c.disconnect=function(v){this.handler.disconnect(v)};
_.c.reconnect=function(){this.handler.reconnect()};
_.c.getDeviceId=function(){return this.handler.getDeviceId()};
_.c.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.c.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.c.JSC$17390_onOpened=function(){this.dispatchEvent("channelOpened");var v=this.handler,E=this.currentScreenId;_.Bg("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!v.JSC$17378_channel_.useChunked_,sessionId:v.JSC$17378_channel_.sid_,arrayId:v.JSC$17378_channel_.JSC$17330_lastArrayId_});_.Bg("yt-remote-session-screen-id",E);v=kn_();E=Wub();_.L1(v,E)||v.push(E);TMO(v);Gnx()};
_.c.onClosed=function(){this.dispatchEvent("channelClosed")};
_.c.onMessage=function(v){this.dispatchEvent(new hrp(v))};
_.c.onError=function(v){this.dispatchEvent(new A$P(v?1:0))};
_.c.sendMessage=function(v,E){this.handler.sendMessage(v,E)};
_.c.setLoungeToken=function(v){this.handler.setLoungeToken(v)};
_.c.dispose=function(){this.handler.dispose()};var osR=function(v,E,n){var f=this;n=n===void 0?function(){return""}:n;
var x=x===void 0?new JTC:x;var y=y===void 0?new _.vA:y;this.pathPrefix=v;this.defaultQueryParams=E;this.getXsrfToken=n;this.JSC$17393_pubsub=y;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new YL6(function(){var Q;((Q=f.channel)==null?void 0:oq1((new Iex(Q,Q.JSC$17301_channel_)).JSC$17311_channel_.forwardChannelRequestPool_))===0&&f.connect(f.connectionParams,f.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17393_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17393_channelOpenedCounter=new hlR;this.JSC$17393_channelClosedCounter=new AQR;this.JSC$17393_channelMessageReceivedCounter=new DA1;this.JSC$17393_channelErrorCounter=new HG0};
osR.prototype.connect=function(v,E){v=v===void 0?{}:v;E=E===void 0?0:E;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=v,this.connectUi=E,ooC(this),(v=_.MX("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=v: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 qZ(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,fDx(this))};
var fDx=function(v){_.v8(v.channel,"w",function(){v.channelState=3;v.reconnectTimer.reset();v.connectionParams=null;v.connectUi=0;for(var E=_.p(v.nonAckedMessagesOnChannelClosed),n=E.next();!n.done;n=E.next())n=n.value,v.channel&&v.channel.send(n);v.nonAckedMessagesOnChannelClosed=[];v.publish("webChannelOpened");v.JSC$17393_channelOpenedCounter.increment("WEB_CHANNEL")});
_.v8(v.channel,"x",function(){v.channelState=0;v.reconnectTimer.isActive()||v.publish("webChannelClosed");var E,n=(E=v.channel)==null?void 0:YGp(new Iex(E,E.JSC$17301_channel_));n&&(v.nonAckedMessagesOnChannelClosed=[].concat(_.s8(n)));v.JSC$17393_channelClosedCounter.increment("WEB_CHANNEL")});
_.v8(v.channel,"z",function(E){var n=E.data;n[0]==="gracefulReconnect"?(v.reconnectTimer.start(),v.channel&&v.channel.close()):v.publish("webChannelMessage",new k4p(n[0],n[1]));v.lastStatusCode=E.statusCode;v.JSC$17393_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.v8(v.channel,"y",function(){v.lastStatusCode===401||v.reconnectTimer.start();v.publish("webChannelError");v.JSC$17393_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.c=osR.prototype;_.c.disconnect=function(v){this.disconnectUi=v===void 0?0:v;this.reconnectTimer.stop();ooC(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.c.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.c.reconnect=function(){var v=this.reconnectTimer;v.delay_.fire();v.start()};
_.c.sendMessage=function(v,E){this.channel&&(ooC(this),v=Object.assign({},{_sc:v},E),this.channel.send(v))};
_.c.setLoungeToken=function(v){v||this.reconnectTimer.stop();v?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=v:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ooC=function(v){var E=v.getXsrfToken();E?v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=E:delete v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.c=osR.prototype;_.c.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.c.publish=function(v){return this.JSC$17393_pubsub.publish.apply(this.JSC$17393_pubsub,[v].concat(_.s8(_.rV.apply(1,arguments))))};
_.c.subscribe=function(v,E,n){return this.JSC$17393_pubsub.subscribe(v,E,n)};
_.c.unsubscribe=function(v,E,n){return this.JSC$17393_pubsub.unsubscribe(v,E,n)};
_.c.unsubscribeByKey=function(v){return this.JSC$17393_pubsub.unsubscribeByKey(v)};
_.c.dispose=function(){this.JSC$17393_disposed||(this.JSC$17393_disposed=!0,_.uU(this.JSC$17393_pubsub),this.disconnect(),_.uU(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.c.isDisposed=function(){return this.JSC$17393_disposed};var ns3=function(v){_.mP.call(this);this.webChannelService=v();this.webChannelService.subscribe("webChannelOpened",this.JSC$17401_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.S(ns3,_.mP);_.c=ns3.prototype;_.c.connect=function(v,E){this.webChannelService.connect(v,E)};
_.c.disconnect=function(v){this.webChannelService.disconnect(v)};
_.c.reconnect=function(){this.webChannelService.reconnect()};
_.c.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.c.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.c.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.c.JSC$17401_onOpened=function(){this.dispatchEvent("channelOpened")};
_.c.onClosed=function(){this.dispatchEvent("channelClosed")};
_.c.onMessage=function(v){this.dispatchEvent(new hrp(v))};
_.c.onError=function(){this.dispatchEvent(new A$P(this.webChannelService.lastStatusCode===401?1:0))};
_.c.sendMessage=function(v,E){this.webChannelService.sendMessage(v,E)};
_.c.setLoungeToken=function(v){this.webChannelService.setLoungeToken(v)};
_.c.dispose=function(){this.webChannelService.dispose()};var wRK=Date.now(),Ja=null,F5R=Array(50),Ix=-1,mx6=!1;_.tf(Yj,_.jn);Yj.prototype.getScreens=function(){return this.screens};
Yj.prototype.contains=function(v){return!!OGC(this.screens,v)};
Yj.prototype.get=function(v){return v?MW(this.screens,v):null};
var xsd=function(v,E){var n=v.get(E.uuid)||v.get(E.id);if(n)return v=n.name,n.id=E.id||n.id,n.name=E.name,n.token=E.token,n.uuid=E.uuid||n.uuid,n.name!=v;v.screens.push(E);return!0},chR=function(v,E){var n=v.screens.length!=E.length;
v.screens=_.v2(v.screens,function(y){return!!OGC(E,y)});
for(var f=E.length,x=0;x<f;x++)n=xsd(v,E[x])||n;return n},yhR=function(v,E){var n=v.screens.length;
v.screens=_.v2(v.screens,function(f){return!(f||E?!f!=!E?0:f.id==E.id:1)});
return v.screens.length<n};
Yj.prototype.info=function(v){K8(this.JSC$17402_logName_,v)};var pgO=function(v,E,n,f,x){_.jn.call(this);this.JSC$17405_http_=v;this.pairingCode_=E;this.deviceId_=n;this.friendlyName_=f;this.enableShortLivedLoungeToken_=x;this.pollIndex_=0;this.JSC$17405_xhr_=null;this.JSC$17405_timer_=NaN};
_.S(pgO,_.jn);_.c=pgO.prototype;_.c.start=function(){!this.JSC$17405_xhr_&&isNaN(this.JSC$17405_timer_)&&this.poll_()};
_.c.stop=function(){this.JSC$17405_xhr_&&(this.JSC$17405_xhr_.abort(),this.JSC$17405_xhr_=null);isNaN(this.JSC$17405_timer_)||(_.za(this.JSC$17405_timer_),this.JSC$17405_timer_=NaN)};
_.c.disposeInternal=function(){this.stop();_.jn.prototype.disposeInternal.call(this)};
_.c.poll_=function(){this.JSC$17405_timer_=NaN;this.JSC$17405_xhr_=_.tM(qW(this.JSC$17405_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.XV)(this.JSC$17407_onSuccess_,this),onError:(0,_.XV)(this.onError_,this),onTimeout:(0,_.XV)(this.JSC$17407_onTimeout_,this)})};
_.c.JSC$17407_onSuccess_=function(v,E){this.JSC$17405_xhr_=null;v=E.screen||{};v.dialId=this.deviceId_;v.name=this.friendlyName_;E=-1;this.enableShortLivedLoungeToken_&&v.shortLivedLoungeToken&&v.shortLivedLoungeToken.value&&v.shortLivedLoungeToken.refreshIntervalMs&&(v.screenIdType="shortLived",v.loungeToken=v.shortLivedLoungeToken.value,E=v.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ZC(v),E)};
_.c.onError_=function(v){this.JSC$17405_xhr_=null;v.status&&v.status==404?this.pollIndex_>=Q6U.length?this.publish("pairingFailed",Error("Ck")):(v=Q6U[this.pollIndex_],this.JSC$17405_timer_=_.Ta((0,_.XV)(this.poll_,this),v),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+v.status))};
_.c.JSC$17407_onTimeout_=function(){this.JSC$17405_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var Q6U=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.tf(Aa,Yj);_.c=Aa.prototype;_.c.start=function(){ha(this)&&this.publish("screenChange");!_.vs("yt-remote-lounge-token-expiration")&&Xgd(this);_.za(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Ta((0,_.XV)(this.start,this),1E4)};
_.c.add=function(v,E){ha(this);xsd(this,v);e8x(this,!1);this.publish("screenChange");E(v);v.token||Xgd(this)};
_.c.remove=function(v,E){var n=ha(this);yhR(this,v)&&(e8x(this,!1),n=!0);E(v);n&&this.publish("screenChange")};
_.c.updateName=function(v,E,n,f){var x=ha(this),y=this.get(v.id);y?(y.name!=E&&(y.name=E,e8x(this,!1),x=!0),n(v)):f(Error("Fk"));x&&this.publish("screenChange")};
_.c.disposeInternal=function(){_.za(this.loungeTokenRefreshTimer_);Aa.superClass_.disposeInternal.call(this)};
var Xgd=function(v){if(v.screens.length){var E=_.rA(v.screens,function(f){return f.id}),n=qW(v.JSC$17409_http_,"/pairing/get_lounge_token_batch");
v.JSC$17409_http_.sendRequest("POST",n,{screen_ids:E.join(",")},(0,_.XV)(v.handleLoungeTokens_,v),(0,_.XV)(v.handleLoungeTokenError_,v))}};
Aa.prototype.handleLoungeTokens_=function(v){ha(this);var E=this.screens.length;v=v&&v.screens||[];for(var n=v.length,f=0;f<n;++f){var x=v[f],y=this.get(x.screenId);y&&(y.token=x.loungeToken,--E)}e8x(this,!E);E&&K8(this.JSC$17402_logName_,"Missed "+E+" lounge tokens.")};
Aa.prototype.handleLoungeTokenError_=function(v){K8(this.JSC$17402_logName_,"Requesting lounge tokens failed: "+v)};
var ha=function(v){if(_.Z("deprecate_pair_servlet_enabled"))return chR(v,[]);var E=no_(RlR());E=_.v2(E,function(n){return!n.uuid});
return chR(v,E)},e8x=function(v,E){BMb(_.rA(v.screens,vo6));
E&&tKK()};var u7=function(v,E){_.jn.call(this);this.getScreensToCheck_=E;E=(E=_.vs("yt-remote-online-screen-ids")||"")?E.split(","):[];for(var n={},f=this.getScreensToCheck_(),x=f.length,y=0;y<x;++y){var Q=f[y].id;n[Q]=_.L1(E,Q)}this.screenIdSet_=n;this.JSC$17412_http_=v;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Fpd("Initialized with "+(0,_.aW)(this.screenIdSet_))};
_.S(u7,_.jn);u7.prototype.isOnline=function(v){return!!this.screenIdSet_[v]};
u7.prototype.start=function(){var v=parseInt(_.vs("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Rr()-144E5<v?0:v)?msb(this):(this.fastCheckEndTime_=_.Rr()+3E5,_.Bg("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
u7.prototype.isEmpty=function(){return _.sh.isEmpty(this.screenIdSet_)};
u7.prototype.update=function(){Fpd("Updating availability on schedule.");var v=this.getScreensToCheck_(),E=_.sh.filter(this.screenIdSet_,function(n,f){return n&&!!MW(v,f)},this);
wgK(this,E)};
var bQP=function(v,E,n){var f=qW(v.JSC$17412_http_,"/pairing/get_screen_availability");v.JSC$17412_http_.sendRequest("POST",f,{lounge_token:E.token},(0,_.XV)(function(x){x=x.screens||[];for(var y=x.length,Q=0;Q<y;++Q)if(x[Q].loungeToken==E.token){n(x[Q].status=="online");return}n(!1)},v),(0,_.XV)(function(){n(!1)},v))};
u7.prototype.disposeInternal=function(){_.za(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.jn.prototype.disposeInternal.call(this)};
var wgK=function(v,E){a:if(_.sh.getCount(E)!=_.sh.getCount(v.screenIdSet_))var n=!1;else{n=_.sh.getKeys(E);for(var f=n.length,x=0;x<f;++x)if(!v.screenIdSet_[n[x]]){n=!1;break a}n=!0}n||(Fpd("Updated online screens: "+(0,_.aW)(v.screenIdSet_)),v.screenIdSet_=E,v.publish("screenChange"));lDC(v)},msb=function(v){isNaN(v.refreshTimer_)||_.za(v.refreshTimer_);
v.refreshTimer_=_.Ta((0,_.XV)(v.requestScreenAvailability_,v),v.fastCheckEndTime_>0&&v.fastCheckEndTime_<_.Rr()?2E4:1E4)};
u7.prototype.requestScreenAvailability_=function(){_.za(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var v=s6p(this);if(_.sh.getCount(v)){var E=qW(this.JSC$17412_http_,"/pairing/get_screen_availability"),n={lounge_token:_.sh.getKeys(v).join(",")};this.currentRequest_=this.JSC$17412_http_.sendRequest("POST",E,n,(0,_.XV)(this.onScreenAvailability_,this,v),(0,_.XV)(this.onScreenAvailabilityError_,this))}else wgK(this,{}),msb(this)};
u7.prototype.onScreenAvailability_=function(v,E){this.currentRequest_=null;var n=_.sh.getKeys(s6p(this));if(_.F1(n,_.sh.getKeys(v))){E=E.screens||[];n={};for(var f=E.length,x=0;x<f;++x)n[v[E[x].loungeToken]]=E[x].status=="online";wgK(this,n);msb(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
u7.prototype.onScreenAvailabilityError_=function(v){this.warn_("Screen availability failed: "+v);this.currentRequest_=null;msb(this)};
var Fpd=function(v){K8("OnlineScreenService",v)};
u7.prototype.warn_=function(v){K8("OnlineScreenService",v)};
var s6p=function(v){var E={};_.I5(v.getScreensToCheck_(),function(n){n.token?E[n.token]=n.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return E},lDC=function(v){v=_.sh.getKeys(_.sh.filter(v.screenIdSet_,function(E){return E}));
v.sort(_.X1);v.length?_.Bg("yt-remote-online-screen-ids",v.join(","),60):_.EC("yt-remote-online-screen-ids")};_.tf(VM,Yj);_.c=VM.prototype;_.c.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.c.add=function(v,E,n){this.localScreenService_.add(v,E,n)};
_.c.remove=function(v,E,n){this.localScreenService_.remove(v,E,n);this.onlineScreenService_.update()};
_.c.updateName=function(v,E,n,f){this.localScreenService_.contains(v)?this.localScreenService_.updateName(v,E,n,f):(v="Updating name of unknown screen: "+v.name,K8(this.JSC$17402_logName_,v),f(Error(v)))};
_.c.getScreens=function(v){return v?this.screens:Fi6(this.screens,_.v2(this.automaticScreens_,function(E){return!this.contains(E)},this))};
_.c.JSC$17417_getOnlineScreens=function(){return _.v2(this.getScreens(!0),function(v){return this.onlineScreenService_.isOnline(v.id)},this)};
var PH6=function(v,E,n,f,x,y){v.info("getAutomaticScreenByIds "+n+" / "+E);n||(n=v.deviceToScreenId_[E]);var Q=v.getScreens(),e=n?MW(Q,n):null;n&&(v.disableAutomaticScreenCache_||e)||(e=MW(Q,E));if(e){e.uuid=E;var F=jm(v,e);bQP(v.onlineScreenService_,F,function(b){x(b?F:null)})}else n?rhK(v,n,(0,_.XV)(function(b){var l=jm(this,new ZC({name:f,
screenId:n,loungeToken:b,dialId:E||""}));bQP(this.onlineScreenService_,l,function(r){x(r?l:null)})},v),y):x(null)};
VM.prototype.JSC$17417_getScreenByPollingPairingCode=function(v,E,n,f,x,y){var Q=this;this.info("getDialScreenByPairingCode "+v+" / "+E);var e=new pgO(this.JSC$17415_http_,v,E,n,f);e.subscribe("pairingComplete",function(F,b){_.uU(e);x(jm(Q,F),b)});
e.subscribe("pairingFailed",function(F){_.uU(e);y(F)});
e.start();return(0,_.XV)(e.stop,e)};
var aDM=function(v,E){for(var n=v.screens.length,f=0;f<n;++f)if(v.screens[f].name==E)return v.screens[f];return null};
VM.prototype.JSC$17417_getScreenByPairingCode=function(v,E,n,f){_.tM(qW(this.JSC$17415_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:v},timeout:5E3,onSuccess:(0,_.XV)(function(x,y){x=new ZC(y.screen||{});if(!x.name||aDM(this,x.name)){a:{y=x.name;for(var Q=2,e=E(y,Q);aDM(this,e);){Q++;if(Q>20)break a;e=E(y,Q)}y=e}x.name=y}n(jm(this,x))},this),
onError:(0,_.XV)(function(x){f(Error("Gk`"+x.status))},this),
onTimeout:(0,_.XV)(function(){f(Error("Hk"))},this)})};
var ZQ0=function(v,E,n){bQP(v.onlineScreenService_,E,n)};
VM.prototype.disposeInternal=function(){_.uU(this.localScreenService_);_.uU(this.onlineScreenService_);VM.superClass_.disposeInternal.call(this)};
var rhK=function(v,E,n,f){v.info("requestLoungeToken_ for "+E);var x={postParams:{screen_ids:E},method:"POST",context:v,onSuccess:function(y,Q){y=Q&&Q.screens||[];y[0]&&y[0].screenId==E?n(y[0].loungeToken):f(Error("Ik"))},
onError:function(){f(Error("Jk"))}};
_.tM(qW(v.JSC$17415_http_,"/pairing/get_lounge_token_batch"),x)},CHd=function(v){v.screens=v.localScreenService_.getScreens();
for(var E=_.sh.transpose(v.deviceToScreenId_),n=v.screens.length,f=0;f<n;++f){var x=v.screens[f];x.uuid=E[x.id]||""}v.info("Updated manual screens: "+bHR(v.screens))};
VM.prototype.handleScreenChange_=function(){CHd(this);this.publish("screenChange");this.onlineScreenService_.update()};
var lI3=function(v){MYK(v);v.localScreenService_=new Aa(v.JSC$17415_http_);v.localScreenService_.subscribe("screenChange",(0,_.XV)(v.handleScreenChange_,v));CHd(v);v.disableAutomaticScreenCache_||(v.automaticScreens_=no_(_.vs("yt-remote-automatic-screen-cache")||[]));MYK(v);v.info("Initializing automatic screens: "+bHR(v.automaticScreens_));v.onlineScreenService_=new u7(v.JSC$17415_http_,(0,_.XV)(v.getScreens,v,!0));v.onlineScreenService_.subscribe("screenChange",(0,_.XV)(function(){this.publish("onlineScreenChange")},
v))},jm=function(v,E){var n=v.get(E.id);
n?(n.uuid=E.uuid,E=n):((n=MW(v.automaticScreens_,E.uuid))?(n.id=E.id,n.token=E.token,E=n):v.automaticScreens_.push(E),v.disableAutomaticScreenCache_||SlK(v));MYK(v);v.deviceToScreenId_[E.uuid]=E.id;_.Bg("yt-remote-device-id-map",v.deviceToScreenId_,31536E3);return E},SlK=function(v){v=_.v2(v.automaticScreens_,function(E){return E.idType!="shortLived"});
_.Bg("yt-remote-automatic-screen-cache",_.rA(v,vo6))},MYK=function(v){v.deviceToScreenId_=_.vs("yt-remote-device-id-map")||{}};
VM.prototype.dispose=VM.prototype.dispose;_.tf(DC,_.jn);var OJ=function(v,E){v.screen_=E;v.publish("sessionScreen",v.screen_)},UsU=function(v,E){v.screen_&&(v.screen_.token=E,jm(v.JSC$17419_screenService_,v.screen_));
v.publish("sessionScreen",v.screen_)};
DC.prototype.onSessionStopped=function(v){this.isDisposed()||(v&&(kW(this,""+v),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
DC.prototype.info=function(v){K8(this.JSC$17419_logName_,v)};
var kW=function(v,E){K8(v.JSC$17419_logName_,E)};
DC.prototype.JSC$17421_getCastSession=function(){return null};
DC.prototype.setDisplayStatus=function(v){var E=this.receiver_;v?(E.displayStatus=new chrome.cast.ReceiverDisplayStatus(v,[]),E.displayStatus.showStop=!0):E.displayStatus=null;chrome.cast.setReceiverDisplayStatus(E,(0,_.XV)(function(){this.info("Updated receiver status for "+E.friendlyName+": "+v)},this),(0,_.XV)(function(){kW(this,"Failed to update receiver status for: "+E.friendlyName)},this))};
DC.prototype.disposeInternal=function(){this.setDisplayStatus("");DC.superClass_.disposeInternal.call(this)};var Wu=function(v,E,n){DC.call(this,v,E,"CastSession");var f=this;this.config_=n;this.JSC$17424_session_=null;this.JSC$17424_boundSessionUpdate_=(0,_.XV)(this.JSC$17426_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.XV)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Ta(function(){qld(f,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17424_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17424_isInitLoungeToken_=!1;this.JSC$17424_lastLoungeTokenRefreshError_="unknown"};
_.S(Wu,DC);_.c=Wu.prototype;
_.c.setCastSession=function(v){if(this.JSC$17424_session_){if(this.JSC$17424_session_==v)return;kW(this,"Overriding cast session with new session object");Jh_(this);this.JSC$17424_isInitLoungeToken_=!1;this.JSC$17424_lastLoungeTokenRefreshError_="unknown";this.JSC$17424_session_.removeUpdateListener(this.JSC$17424_boundSessionUpdate_);this.JSC$17424_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17424_session_=v;this.JSC$17424_session_.addUpdateListener(this.JSC$17424_boundSessionUpdate_);this.JSC$17424_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);KpR(this,"getMdxSessionStatus")};
_.c.launchWithParams=function(v){this.info("launchWithParams no-op for Cast: "+(0,_.aW)(v))};
_.c.stop=function(){if(this.JSC$17424_session_)this.JSC$17424_session_.stop((0,_.XV)(function(){this.onSessionStopped()},this),(0,_.XV)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.c.setDisplayStatus=function(){};
_.c.disposeInternal=function(){this.info("disposeInternal");Jh_(this);this.JSC$17424_session_&&(this.JSC$17424_session_.removeUpdateListener(this.JSC$17424_boundSessionUpdate_),this.JSC$17424_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17424_session_=null;DC.prototype.disposeInternal.call(this)};
var IDd=function(v,E){_.za(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0;E==0?ds6(v):v.getLoungeTokenTimeoutKey_=_.Ta(function(){ds6(v)},E)},ds6=function(v){KpR(v,"getLoungeToken");
_.za(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=_.Ta(function(){Ylx(v,null)},3E4)},KpR=function(v,E){v.info("sendYoutubeMessage_: "+E+" "+(0,_.aW)(void 0));
var n={};n.type=E;v.JSC$17424_session_?v.JSC$17424_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",n,function(){},(0,_.XV)(function(){kW(this,"Failed to send message: "+E+".")},v)):kW(v,"Sending yt message without session: "+(0,_.aW)(n))};
Wu.prototype.onYoutubeMessage_=function(v,E){if(!this.isDisposed())if(E)if(E=(0,_.eK)(E),_.oF(E))switch(v=""+E.type,E=E.data||{},this.info("onYoutubeMessage_: "+v+" "+(0,_.aW)(E)),v){case "mdxSessionStatus":qld(this,E);break;case "loungeToken":Ylx(this,E);break;default:kW(this,"Unknown youtube message: "+v)}else kW(this,"Unable to parse message.");else kW(this,"No data in message.")};
var h8K=function(v,E){if(E)v.info("onConnectedScreenId_: Received screenId: "+E),v.screen_&&v.screen_.id==E||v.getScreen_(E,function(n){OJ(v,n)},function(){return v.onSessionStopped()},5);
else v.onSessionStopped(Error("Mk"))},VYC=function(v,E,n){v.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(E));
var f=new ZC(E);Ah6(v,f,function(x){x?(v.JSC$17424_isInitLoungeToken_=!0,jm(v.JSC$17419_screenService_,f),OJ(v,f),v.JSC$17424_lastLoungeTokenRefreshError_="unknown",IDd(v,n)):(_.UO(Error("Nk`"+JSON.stringify(E))),v.onSessionStopped())},5)},qld=function(v,E){_.za(v.sessionStatusTimeoutKey_);
v.sessionStatusTimeoutKey_=0;if(E)v.config_.enableCastLoungeToken&&E.loungeToken?E.deviceId?v.screen_&&v.screen_.uuid==E.deviceId||(E.loungeTokenRefreshIntervalMs?VYC(v,{name:v.receiver_.friendlyName,screenId:E.screenId,loungeToken:E.loungeToken,dialId:E.deviceId,screenIdType:"shortLived"},E.loungeTokenRefreshIntervalMs):(_.UO(Error("Pk`"+JSON.stringify(E))),h8K(v,E.screenId))):(_.UO(Error("Ok`"+JSON.stringify(E))),h8K(v,E.screenId)):h8K(v,E.screenId);else v.onSessionStopped(Error("Mk"))},Ylx=function(v,
E){_.za(v.onLoungeTokenTimeoutKey_);
v.onLoungeTokenTimeoutKey_=0;var n=null;if(E)if(E.loungeToken){var f;((f=v.screen_)==null?void 0:f.token)==E.loungeToken&&(n="staleLoungeToken")}else n="missingLoungeToken";else n="noLoungeTokenResponse";n?(v.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(E)+", error: "+n)),v.JSC$17424_lastLoungeTokenRefreshError_=n,IDd(v,3E4)):(UsU(v,E.loungeToken),v.JSC$17424_isInitLoungeToken_=!1,v.JSC$17424_lastLoungeTokenRefreshError_="unknown",IDd(v,E.loungeTokenRefreshIntervalMs))};
Wu.prototype.getScreen_=function(v,E,n,f){_.za(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;PH6(this.JSC$17419_screenService_,this.receiver_.label,v,this.receiver_.friendlyName,(0,_.XV)(function(x){x?E(x):f>=0?(kW(this,"Screen "+v+" appears to be offline. "+f+" retries left."),this.getScreenTimeoutKey_=_.Ta((0,_.XV)(this.getScreen_,this,v,E,n,f-1),300)):n(Error("Qk"))},this),n)};
var Ah6=function(v,E,n,f){_.za(v.JSC$17424_checkScreenAvailabilityTimeoutKey_);v.JSC$17424_checkScreenAvailabilityTimeoutKey_=0;ZQ0(v.JSC$17419_screenService_,E,function(x){x||f<0?n(x):v.JSC$17424_checkScreenAvailabilityTimeoutKey_=_.Ta(function(){Ah6(v,E,n,f-1)},300)})};
Wu.prototype.JSC$17421_getCastSession=function(){return this.JSC$17424_session_};
Wu.prototype.JSC$17426_onSessionUpdate_=function(v){this.isDisposed()||v||(kW(this,"Cast session died."),this.onSessionStopped())};
var Jh_=function(v){_.za(v.getScreenTimeoutKey_);v.getScreenTimeoutKey_=0;_.za(v.JSC$17424_checkScreenAvailabilityTimeoutKey_);v.JSC$17424_checkScreenAvailabilityTimeoutKey_=0;_.za(v.sessionStatusTimeoutKey_);v.sessionStatusTimeoutKey_=0;_.za(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=0;_.za(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0};var $W=function(v,E,n,f){DC.call(this,v,E,"DialSession");this.config_=f;this.JSC$17428_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17428_theme_=n;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17428_deferredLaunchDeadlineTimer_=NaN;this.JSC$17428_boundSessionUpdate_=(0,_.XV)(this.JSC$17430_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17428_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17428_isInitLoungeToken_=!1;this.JSC$17428_lastLoungeTokenRefreshError_="unknown"};
_.S($W,DC);$W.prototype.setCastSession=function(v){this.JSC$17428_session_=v;this.JSC$17428_session_.addUpdateListener(this.JSC$17428_boundSessionUpdate_)};
$W.prototype.launchWithParams=function(v){this.connectData_=v;this.deferredLaunch_()};
$W.prototype.stop=function(){Ds6(this);if(this.JSC$17428_session_)this.JSC$17428_session_.stop((0,_.XV)(this.onSessionStopped,this,null),(0,_.XV)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
$W.prototype.disposeInternal=function(){Ds6(this);this.JSC$17428_session_&&this.JSC$17428_session_.removeUpdateListener(this.JSC$17428_boundSessionUpdate_);this.JSC$17428_session_=null;DC.prototype.disposeInternal.call(this)};
var HQx=function(v){var E;return!!(v.config_.enableDialLoungeToken&&((E=v.JSC$17428_session_)==null?0:E.getDialAppInfo))},god=function(v){v.cancelPolling_=v.JSC$17419_screenService_.JSC$17417_getScreenByPollingPairingCode(v.reversePairingCode_,v.receiver_.label,v.receiver_.friendlyName,HQx(v),function(E,n){v.cancelPolling_=function(){};
v.JSC$17428_isInitLoungeToken_=!0;OJ(v,E);E.idType=="shortLived"&&n>0&&L$(v,n)},function(E){v.cancelPolling_=function(){};
v.onSessionStopped(E)})};
$W.prototype.JSC$17430_onSessionUpdate_=function(v){this.isDisposed()||v||(kW(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Nrd=function(v){var E={};E.pairingCode=v.reversePairingCode_;E.theme=v.JSC$17428_theme_;Esb()&&(E.env_useStageMdx=1);return _.BG(E)},usU=function(v){return new Promise(function(E){v.reversePairingCode_=uYC();
if(v.connectData_){var n=new chrome.cast.DialLaunchResponse(!0,Nrd(v));E(n);god(v)}else v.deferredLaunch_=function(){_.za(v.JSC$17428_deferredLaunchDeadlineTimer_);v.deferredLaunch_=function(){};
v.JSC$17428_deferredLaunchDeadlineTimer_=NaN;var f=new chrome.cast.DialLaunchResponse(!0,Nrd(v));E(f);god(v)},v.JSC$17428_deferredLaunchDeadlineTimer_=_.Ta(function(){v.deferredLaunch_()},100)})},OQO=function(v,E,n){v.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(E));
var f=new ZC(E);return(new Promise(function(x){j6C(v,f,function(y){y?(v.JSC$17428_isInitLoungeToken_=!0,jm(v.JSC$17419_screenService_,f),OJ(v,f),L$(v,n)):_.UO(Error("Sk`"+JSON.stringify(E)));x(y)},5)})).then(function(x){return x?new chrome.cast.DialLaunchResponse(!1):usU(v)})},kBd=function(v,E){var n=v.launchData_.receiver.label,f=v.receiver_.friendlyName;
return(new Promise(function(x){PH6(v.JSC$17419_screenService_,n,E,f,function(y){y&&y.token&&OJ(v,y);x(y)},function(y){kW(v,"Failed to get DIAL screen: "+y);
x(null)})})).then(function(x){return x&&x.token?new chrome.cast.DialLaunchResponse(!1):usU(v)})},j6C=function(v,E,n,f){_.za(v.JSC$17428_checkScreenAvailabilityTimeoutKey_);
v.JSC$17428_checkScreenAvailabilityTimeoutKey_=0;ZQ0(v.JSC$17419_screenService_,E,function(x){x||f<0?n(x):v.JSC$17428_checkScreenAvailabilityTimeoutKey_=_.Ta(function(){j6C(v,E,n,f-1)},300)})},L$=function(v,E){v.info("getDialAppInfoWithTimeout_ "+E);
HQx(v)&&(_.za(v.getDialAppInfoTimeoutKey_),v.getDialAppInfoTimeoutKey_=0,E==0?WpC(v):v.getDialAppInfoTimeoutKey_=_.Ta(function(){WpC(v)},E))},WpC=function(v){HQx(v)&&v.JSC$17428_session_.getDialAppInfo(function(E){v.info("getDialAppInfo dialLaunchData: "+JSON.stringify(E));
E=E.extraData||{};var n=null;if(E.loungeToken){var f;((f=v.screen_)==null?void 0:f.token)==E.loungeToken&&(n="staleLoungeToken")}else n="missingLoungeToken";n?(v.JSC$17428_lastLoungeTokenRefreshError_=n,L$(v,3E4)):(v.JSC$17428_isInitLoungeToken_=!1,v.JSC$17428_lastLoungeTokenRefreshError_="unknown",UsU(v,E.loungeToken),L$(v,E.loungeTokenRefreshIntervalMs))},function(E){v.info("getDialAppInfo error: "+E);
v.JSC$17428_lastLoungeTokenRefreshError_="noLoungeTokenResponse";L$(v,3E4)})},Ds6=function(v){_.za(v.JSC$17428_checkScreenAvailabilityTimeoutKey_);
v.JSC$17428_checkScreenAvailabilityTimeoutKey_=0;_.za(v.getDialAppInfoTimeoutKey_);v.getDialAppInfoTimeoutKey_=0;v.cancelPolling_();v.cancelPolling_=function(){};
_.za(v.JSC$17428_deferredLaunchDeadlineTimer_)};var G$=function(v,E){DC.call(this,v,E,"ManualSession");this.JSC$17432_deferredLaunchDeadlineTimer_=_.Ta((0,_.XV)(this.launchWithParams,this,null),150)};
_.S(G$,DC);G$.prototype.stop=function(){this.onSessionStopped()};
G$.prototype.setCastSession=function(){};
G$.prototype.launchWithParams=function(){_.za(this.JSC$17432_deferredLaunchDeadlineTimer_);this.JSC$17432_deferredLaunchDeadlineTimer_=NaN;var v=MW(this.JSC$17419_screenService_.getScreens(),this.receiver_.label);if(v)OJ(this,v);else this.onSessionStopped(Error("Tk"))};
G$.prototype.disposeInternal=function(){_.za(this.JSC$17432_deferredLaunchDeadlineTimer_);this.JSC$17432_deferredLaunchDeadlineTimer_=NaN;DC.prototype.disposeInternal.call(this)};var us=function(v,E){_.jn.call(this);this.config_=E;this.JSC$17435_screenService_=v;this.JSC$17435_appId_=E.appId||"233637DE";this.JSC$17435_theme_=E.theme||"cl";this.disableDial_=E.disableCastApi||!1;this.forceMirroring_=E.forceMirroring||!1;this.JSC$17435_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.XV)(this.onReceiverAction_,this)};
_.S(us,_.jn);
us.prototype.init=function(v,E){chrome.cast.timeout.requestSession=3E4;var n=new chrome.cast.SessionRequest(this.JSC$17435_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Z("desktop_enable_cast_connect")&&(n.androidReceiverCompatible=!0);this.disableDial_||(n.dialRequest=new chrome.cast.DialRequest("YouTube"));var f=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;v=v||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var x=(0,_.XV)(this.onReceiverUpdated_,
this);n=new chrome.cast.ApiConfig(n,(0,_.XV)(this.onSessionEstablished_,this),x,f,v);n.customDialLaunchCallback=(0,_.XV)(this.onDialLaunchRequested_,this);chrome.cast.initialize(n,(0,_.XV)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),QQR(),this.JSC$17435_screenService_.subscribe("onlineScreenChange",(0,_.XV)(this.JSC$17437_onScreenChange_,this)),this.customReceivers_=$sO(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.XV)(function(y){this.warn_("Failed to set initial custom receivers: "+(0,_.aW)(y))},this)),this.publish("yt-remote-cast2-availability-change",T$(this)),E(!0))},this),(0,_.XV)(function(y){this.warn_("Failed to initialize API: "+(0,_.aW)(y));
E(!1)},this))};
us.prototype.setConnectedScreenStatus=function(v,E){i7("Setting connected screen ID: "+v+" -> "+E);if(this.JSC$17435_session_){var n=this.JSC$17435_session_.screen_;if(!v||n&&n.id!=v)i7("Unsetting old screen status: "+this.JSC$17435_session_.receiver_.friendlyName),z$(this,null)}if(v&&E){if(!this.JSC$17435_session_){v=MW(this.JSC$17435_screenService_.getScreens(),v);if(!v){i7("setConnectedScreenStatus: Unknown screen.");return}if(v.idType=="shortLived"){i7("setConnectedScreenStatus: Screen with id type to be short lived.");
return}n=Lp6(this,v);n||(i7("setConnectedScreenStatus: Connected receiver not custom..."),n=new chrome.cast.Receiver(v.uuid?v.uuid:v.id,v.name),n.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(n),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.XV)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.aW)(f))},this)));
i7("setConnectedScreenStatus: new active receiver: "+n.friendlyName);z$(this,new G$(this.JSC$17435_screenService_,n),!0)}this.JSC$17435_session_.setDisplayStatus(E)}else i7("setConnectedScreenStatus: no screen.")};
var Lp6=function(v,E){return E?_.gL(v.customReceivers_,function(n){return C8(E,n.label)},v):null};
us.prototype.setLaunchParams=function(v){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17435_session_?this.JSC$17435_session_.launchWithParams(v):this.warn_("Setting connection data without a session")};
us.prototype.JSC$17437_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17435_session_?(this.JSC$17435_session_.stop(),z$(this,null)):i7("Stopping non-existing session")};
us.prototype.requestSession=function(){chrome.cast.requestSession((0,_.XV)(this.onSessionEstablished_,this),(0,_.XV)(this.onSessionRequestFailed_,this))};
us.prototype.disposeInternal=function(){this.JSC$17435_screenService_.unsubscribe("onlineScreenChange",(0,_.XV)(this.JSC$17437_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.zs(_.JM("yt.mdx.remote.debug.handlers_")||[],ccb);_.uU(this.JSC$17435_session_);_.jn.prototype.disposeInternal.call(this)};
var i7=function(v){K8("Controller",v)};
us.prototype.warn_=function(v){K8("Controller",v)};
var ccb=function(v){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(v)},T$=function(v){return v.hasCastReceiver_||!!v.customReceivers_.length||!!v.JSC$17435_session_},z$=function(v,E,n){E!=v.JSC$17435_session_&&(_.uU(v.JSC$17435_session_),(v.JSC$17435_session_=E)?(n?v.publish("yt-remote-cast2-receiver-resumed",E.receiver_):v.publish("yt-remote-cast2-receiver-selected",E.receiver_),E.subscribe("sessionScreen",(0,_.XV)(v.onSessionScreen_,v,E)),E.subscribe("sessionFailed",
function(){return GB3(v,E)}),E.screen_?v.publish("yt-remote-cast2-session-change",E.screen_):n&&v.JSC$17435_session_.launchWithParams(null)):v.publish("yt-remote-cast2-session-change",null))},GB3=function(v,E){v.JSC$17435_session_==E&&v.publish("yt-remote-cast2-session-failed")};
_.c=us.prototype;_.c.onSessionScreen_=function(v,E){this.JSC$17435_session_==v&&(E||z$(this,null),this.publish("yt-remote-cast2-session-change",E))};
_.c.onReceiverAction_=function(v,E){if(!this.isDisposed())if(v)switch(v.friendlyName=chrome.cast.unescape(v.friendlyName),i7("onReceiverAction_ "+v.label+" / "+v.friendlyName+"-- "+E),E){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17435_session_)if(this.JSC$17435_session_.receiver_.label!=v.label)i7("onReceiverAction_: Stopping active receiver: "+this.JSC$17435_session_.receiver_.friendlyName),this.JSC$17435_session_.stop();else{i7("onReceiverAction_: Casting to active receiver.");this.JSC$17435_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17435_session_.screen_);break}switch(v.receiverType){case chrome.cast.ReceiverType.CUSTOM:z$(this,new G$(this.JSC$17435_screenService_,v));break;case chrome.cast.ReceiverType.DIAL:z$(this,new $W(this.JSC$17435_screenService_,v,this.JSC$17435_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:z$(this,new Wu(this.JSC$17435_screenService_,v,this.config_));break;default:this.warn_("Unknown receiver type: "+v.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17435_session_&&
this.JSC$17435_session_.receiver_.label==v.label?this.JSC$17435_session_.stop():this.warn_("Stopping receiver w/o session: "+v.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.c.onDialLaunchRequested_=function(v){if(this.isDisposed())return Promise.reject(Error("Uk"));var E=v.receiver;E.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+E.friendlyName),E.receiverType=chrome.cast.ReceiverType.DIAL);var n=this.JSC$17435_session_?this.JSC$17435_session_.receiver_:null;if(!n||n.label!=E.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+E.friendlyName),Promise.reject(Error("Vk"));if(n&&n.label==E.label&&n.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17435_session_.screen_)return i7("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17435_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+n.receiverType+'" to "dial" for '+E.friendlyName);z$(this,new $W(this.JSC$17435_screenService_,E,this.JSC$17435_theme_,this.config_))}E=this.JSC$17435_session_;E.launchData_=v;E.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(v=E.launchData_.extraData||{},n=v.screenId||null,HQx(E)&&v.loungeToken?v.loungeTokenRefreshIntervalMs?v=OQO(E,{name:E.receiver_.friendlyName,screenId:v.screenId,loungeToken:v.loungeToken,dialId:E.launchData_.receiver.label,screenIdType:"shortLived"},v.loungeTokenRefreshIntervalMs):(_.UO(Error("Rk`"+JSON.stringify(v))),v=kBd(E,n)):v=kBd(E,n)):v=usU(E);return v};
_.c.onSessionEstablished_=function(v){var E=this;if(!this.isDisposed()&&!this.forceMirroring_){i7("New cast session ID: "+v.sessionId);var n=v.receiver;if(n.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17435_session_)if(n.receiverType==chrome.cast.ReceiverType.CAST)i7("Got resumed cast session before resumed mdx connection."),n.friendlyName=chrome.cast.unescape(n.friendlyName),z$(this,new Wu(this.JSC$17435_screenService_,n,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var f=this.JSC$17435_session_.receiver_,x=MW(this.JSC$17435_screenService_.getScreens(),f.label);x&&C8(x,n.label)&&f.receiverType!=chrome.cast.ReceiverType.CAST&&n.receiverType==chrome.cast.ReceiverType.CAST&&(i7("onSessionEstablished_: manual to cast session change "+n.friendlyName),_.uU(this.JSC$17435_session_),this.JSC$17435_session_=new Wu(this.JSC$17435_screenService_,n,this.config_),this.JSC$17435_session_.subscribe("sessionScreen",(0,_.XV)(this.onSessionScreen_,this,this.JSC$17435_session_)),
this.JSC$17435_session_.subscribe("sessionFailed",function(){return GB3(E,E.JSC$17435_session_)}),this.JSC$17435_session_.launchWithParams(null));
this.JSC$17435_session_.setCastSession(v)}}};
_.c.JSC$17437_getCastSession=function(){return this.JSC$17435_session_?this.JSC$17435_session_.JSC$17421_getCastSession():null};
_.c.onSessionRequestFailed_=function(v){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.aW)(v)),v.code!=chrome.cast.ErrorCode.CANCEL&&z$(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.c.onReceiverUpdated_=function(v){i7("Receiver availability updated: "+v);if(!this.isDisposed()){var E=T$(this);this.hasCastReceiver_=v==chrome.cast.ReceiverAvailability.AVAILABLE;T$(this)!=E&&this.publish("yt-remote-cast2-availability-change",T$(this))}};
var $sO=function(v){var E=v.JSC$17435_screenService_.JSC$17417_getOnlineScreens(),n=v.JSC$17435_session_&&v.JSC$17435_session_.receiver_;v=_.rA(E,function(f){n&&C8(f,n.label)&&(n=null);var x=f.uuid?f.uuid:f.id,y=Lp6(this,f);y?(y.label=x,y.friendlyName=f.name):(y=new chrome.cast.Receiver(x,f.name),y.receiverType=chrome.cast.ReceiverType.CUSTOM);return y},v);
n&&(n.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(n=new chrome.cast.Receiver(n.label,n.friendlyName),n.receiverType=chrome.cast.ReceiverType.CUSTOM),v.push(n));return v};
us.prototype.JSC$17437_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=$sO(this),i7("Updating custom receivers: "+(0,_.aW)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.XV)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",T$(this)))};
us.prototype.setLaunchParams=us.prototype.setLaunchParams;us.prototype.setConnectedScreenStatus=us.prototype.setConnectedScreenStatus;us.prototype.stopSession=us.prototype.JSC$17437_stopSession;us.prototype.getCastSession=us.prototype.JSC$17437_getCastSession;us.prototype.requestSession=us.prototype.requestSession;us.prototype.init=us.prototype.init;us.prototype.dispose=us.prototype.dispose;var Acb=[];var Trx=function(v){v.audioTrackId=null;v.trackData=null;v.playerState=-1;v.hasPrevious=!1;v.hasNext=!1;v.playerTime_=0;v.playerTimeAt_=_.Rr();v.seekableStart_=0;v.seekableEnd_=0;v.duration_=0;v.loadedTime=0;v.liveIngestionTime_=NaN;v.isLive_=!1};
_.c=jJ.prototype;
_.c.reset=function(v){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;v&&(this.index=v.index,this.listId=v.listId,this.videoId=v.videoId,this.playerState=v.playerState,this.volume=v.volume,this.muted=v.muted,this.audioTrackId=v.audioTrackId,this.trackData=v.trackData,this.hasPrevious=v.hasPrevious,this.hasNext=v.hasNext,this.playerTime_=v.playerTime,this.playerTimeAt_=v.playerTimeAt,this.seekableStart_=v.seekableStart,this.seekableEnd_=v.seekableEnd,this.duration_=v.duration,this.loadedTime=
v.loadedTime,this.liveIngestionTime_=v.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.c.stopPlayer=function(){this.index=-1;this.videoId="";Trx(this)};
_.c.isPlaying=function(){return this.playerState==1};
_.c.isBuffering=function(){return this.playerState==3};
_.c.isAdPlaying=function(){return this.playerState==1081};
var Rz=function(v,E){v.playerTime_=E;v.playerTimeAt_=_.Rr()},iQp=function(v){switch(v.playerState){case 1:case 1081:return(_.Rr()-v.playerTimeAt_)/1E3+v.playerTime_;
case -1E3:return 0}return v.playerTime_};
jJ.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Rr()-this.playerTimeAt_)/1E3:0):this.duration_};
var z8p=function(v,E,n){var f=v.videoId;v.videoId=E;v.index=n;E!=f&&Trx(v)},R8O=function(v){var E={};
E.index=v.index;E.listId=v.listId;E.videoId=v.videoId;E.playerState=v.playerState;E.volume=v.volume;E.muted=v.muted;E.audioTrackId=v.audioTrackId;E.trackData=_.sh.unsafeClone(v.trackData);E.hasPrevious=v.hasPrevious;E.hasNext=v.hasNext;E.playerTime=v.playerTime_;E.playerTimeAt=v.playerTimeAt_;E.seekableStart=v.seekableStart_;E.seekableEnd=v.seekableEnd_;E.duration=v.duration_;E.loadedTime=v.loadedTime;E.liveIngestionTime=v.liveIngestionTime_;return E};
jJ.prototype.clone=function(){return new jJ(R8O(this))};var tY=function(v,E){_.jn.call(this);var n=this;this.state_=0;this.connection_=v;this.contextSubscriptions_=[];this.actionQueue_=new Il6;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.XV)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.XV)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.XV)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.XV)(this.onCloudviewAvailabilityChange_,this);var f=0;v?(f=v.getProxyState(),
f!=3&&(v.subscribe("proxyStateChange",this.setState_,this),tYR(this))):f=3;f!=0&&(E?this.setState_(f):_.Ta(function(){n.setState_(f)},0));
(v=gsU())&&Brd(this,v);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.S(tY,_.jn);tY.prototype.getState=function(){return this.state_};
tY.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
tY.prototype.reconnect=function(){this.connection_.reconnect()};
var Bu=function(v){return new jJ(v.connection_.getPlayerContextData())};
_.c=tY.prototype;_.c.play=function(){v4(this)?(this.castMedia_?this.castMedia_.play(null,_.er,vI3(this,"play")):Ej(this,"play"),EIx(this,1,iQp(Bu(this))),this.publish("remotePlayerChange")):n6(this,this.play)};
_.c.pause=function(){v4(this)?(this.castMedia_?this.castMedia_.pause(null,_.er,vI3(this,"pause")):Ej(this,"pause"),EIx(this,2,iQp(Bu(this))),this.publish("remotePlayerChange")):n6(this,this.pause)};
_.c.seekTo=function(v){if(v4(this)){if(this.castMedia_){var E=Bu(this),n=new chrome.cast.media.SeekRequest;n.currentTime=v;E.isPlaying()||E.isBuffering()?n.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:n.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(n,_.er,vI3(this,"seekTo",{newTime:v}))}else Ej(this,"seekTo",{newTime:v});EIx(this,3,v);this.publish("remotePlayerChange")}else n6(this,_.vR(this.seekTo,v))};
_.c.stop=function(){if(v4(this)){this.castMedia_?this.castMedia_.stop(null,_.er,vI3(this,"stopVideo")):Ej(this,"stopVideo");var v=Bu(this);v.stopPlayer();oI(this,v);this.publish("remotePlayerChange")}else n6(this,this.stop)};
_.c.setVolume=function(v,E){if(v4(this)){var n=Bu(this);if(this.castSession_){if(n.volume!=v){var f=Math.round(v)/100;this.castSession_.setReceiverVolumeLevel(f,(0,_.XV)(function(){dK("set receiver volume: "+f)},this),(0,_.XV)(function(){this.warn_("failed to set receiver volume.")},this))}n.muted!=E&&this.castSession_.setReceiverMuted(E,(0,_.XV)(function(){dK("set receiver muted: "+E)},this),(0,_.XV)(function(){this.warn_("failed to set receiver muted.")},this))}else{var x={volume:v,
muted:E};n.volume!=-1&&(x.delta=v-n.volume);Ej(this,"setVolume",x)}n.muted=E;n.volume=v;oI(this,n)}else n6(this,_.vR(this.setVolume,v,E))};
_.c.setAudioTrack=function(v,E){v4(this)?(E=E.getLanguageInfo().getId(),Ej(this,"setAudioTrack",{videoId:v,audioTrackId:E}),v=Bu(this),v.audioTrackId=E,oI(this,v)):n6(this,_.vR(this.setAudioTrack,v,E))};
_.c.addVideo=function(v){v4(this)?Ej(this,"addVideo",{videoId:v}):n6(this,_.vR(this.addVideo,v))};
_.c.addPlaylist=function(v){v4(this)?Ej(this,"addVideos",{listId:v}):n6(this,_.vR(this.addPlaylist,v))};
_.c.addVideos=function(v){v.length==0?this.warn_("Ignore add videos request due to empty list"):v4(this)?Ej(this,"addVideos",{videoIds:v.join(",")}):n6(this,_.vR(this.addVideos,v))};
_.c.JSC$17447_removeVideo=function(v){v4(this)?Ej(this,"removeVideo",{videoId:v}):n6(this,_.vR(this.JSC$17447_removeVideo,v))};
_.c.JSC$17447_insertVideo=function(v){v4(this)?Ej(this,"insertVideo",{videoId:v}):n6(this,_.vR(this.JSC$17447_insertVideo,v))};
_.c.playVideo=function(v,E,n,f,x,y,Q){f=f===void 0?null:f;x=x===void 0?null:x;y=y===void 0?null:y;Q=Q===void 0?null:Q;var e=Bu(this),F={videoId:v};n!==void 0&&(F.currentIndex=n);z8p(e,v,n||0);E!==void 0&&(Rz(e,E),F.currentTime=E);f&&(F.listId=f);x&&(F.playerParams=x);y&&(F.clickTrackingParams=y);Q&&(F.locationInfo=(0,_.aW)(Q));Ej(this,"setPlaylist",F);f||oI(this,e)};
_.c.nextVideo=function(v,E){if(v4(this)){if(v&&E){var n=Bu(this);z8p(n,v,E);oI(this,n)}Ej(this,"next")}else n6(this,_.vR(this.nextVideo,v,E))};
_.c.clearPlaylist=function(){if(v4(this)){Ej(this,"clearPlaylist");var v=Bu(this);v.reset();oI(this,v);this.publish("remotePlayerChange")}else n6(this,this.clearPlaylist)};
_.c.dispose=function(){if(this.state_!=3){var v=this.state_;this.state_=3;this.publish("proxyStateChange",v,this.state_)}_.jn.prototype.dispose.call(this)};
_.c.disposeInternal=function(){nIM(this);this.connection_=null;this.actionQueue_.clear();Brd(this,null);_.jn.prototype.disposeInternal.call(this)};
var tYR=function(v){_.I5("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(E){this.contextSubscriptions_.push(this.connection_.subscribe(E,_.vR(this.onProxyEvent_,E),this))},v)},nIM=function(v){_.I5(v.contextSubscriptions_,function(E){this.connection_.unsubscribeByKey(E)},v);
v.contextSubscriptions_.length=0},v4=function(v){return v.getState()==1},n6=function(v,E){v.actionQueue_.getCount()<50&&v.actionQueue_.enqueue(E)},EIx=function(v,E,n){var f=Bu(v);
Rz(f,n);f.playerState!=-1E3&&(f.playerState=E);oI(v,f)},Ej=function(v,E,n){v.connection_.sendMessage(E,n)},oI=function(v,E){nIM(v);
v.connection_.setPlayerContextData(R8O(E));tYR(v)};
tY.prototype.setState_=function(v){if((v!=this.state_||v==2)&&this.state_!=3&&v!=0){var E=this.state_;this.state_=v;this.publish("proxyStateChange",E,v);if(v==1)for(;!this.actionQueue_.isEmpty();)v=this.actionQueue_,s1_(v),v.front_.pop().apply(this);else v==3&&this.dispose()}};
tY.prototype.onProxyEvent_=function(v,E){this.publish(v,E)};
var Brd=function(v,E){v.castSession_&&(v.castSession_.removeUpdateListener(v.boundCastStatusListener_),v.castSession_.removeMediaListener(v.boundCastMediaListener_),v.onCastMediaChange_(null));v.castSession_=E;if(v.castSession_&&(dK("Setting cast session: "+v.castSession_.sessionId),v.castSession_.addUpdateListener(v.boundCastStatusListener_),v.castSession_.addMediaListener(v.boundCastMediaListener_),v.castSession_.media.length))v.onCastMediaChange_(v.castSession_.media[0])};
tY.prototype.onCastStatusUpdate_=function(v){if(!v)this.onCastMediaChange_(null),Brd(this,null);else if(this.castSession_.receiver.volume){v=this.castSession_.receiver.volume;var E=Bu(this),n=Math.round(100*v.level||0);if(E.volume!=n||E.muted!=v.muted)dK("Cast volume update: "+v.level+(v.muted?" muted":"")),E.volume=n,E.muted=!!v.muted,oI(this,E)}};
tY.prototype.onCastMediaChange_=function(v){dK("Cast media: "+!!v);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=v)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),oIC(this),this.publish("remotePlayerChange")};
var oIC=function(v){var E=v.castMedia_.media,n=v.castMedia_.customData;if(E&&n){var f=Bu(v);E.contentId!=f.videoId&&dK("Cast changing video to: "+E.contentId);f.videoId=E.contentId;f.playerState=n.playerState;Rz(f,v.castMedia_.getEstimatedTime());oI(v,f)}else dK("No cast media video. Ignoring state update.")};
tY.prototype.onCastMediaUpdate_=function(v){if(v)oIC(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
tY.prototype.onCloudviewAvailabilityChange_=function(){var v=gsU();v&&Brd(this,v)};
tY.prototype.warn_=function(v){K8("CP",v)};
var vI3=function(v,E,n){return(0,_.XV)(function(f){this.warn_("Failed to "+E+" with cast v2 channel. Error code: "+f.code);f.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+E+" using MDx browser channel."),Ej(this,E,n))},v)};var x4=function(v,E,n,f){f=f===void 0?!1:f;_.jn.call(this);var x=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$17454_http_=v;this.enableConnectWithInitialState_=f;this.listeners_.push(_.VR(window,"beforeunload",function(){x.JSC$17457_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new jJ;this.currentScreenId_=E.id;this.currentScreenIdType_=E.idType;this.channelService=xx6(this.JSC$17454_http_,n,this.JSC$17457_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){fQd(x)});
this.channelService.listen("channelClosed",function(){f6("Channel closed");isNaN(x.connectTimerId_)?SJ(!0):SJ();x.dispose()});
this.channelService.listen("channelError",function(y){SJ();isNaN(x.getReconnectTimeout_())?(y==1&&x.currentScreenIdType_=="shortLived"&&x.publish("browserChannelAuthError",y),f6("Channel error: "+y+" without reconnection"),x.dispose()):(x.reconnecting_=!0,f6("Channel error: "+y+" with reconnection in "+x.getReconnectTimeout_()+" ms"),x2x(x,2))});
this.channelService.listen("channelMessage",function(y){c1O(x,y)});
this.channelService.setLoungeToken(E.token);this.subscribe("remoteQueueChange",function(){var y=x.playerContext_.videoId;$A0()&&_.Bg("yt-remote-session-video-id",y)})};
_.S(x4,_.jn);
x4.prototype.connect=function(v,E){if(E){var n=E.listId,f=E.videoId,x=E.videoIds,y=E.playerParams,Q=E.clickTrackingParams,e=E.index,F={videoId:f},b=E.currentTime,l=E.locationInfo;E=E.loopMode;b!==void 0&&(F.currentTime=b<=5?0:b);y&&(F.playerParams=y);l&&(F.locationInfo=l);Q&&(F.clickTrackingParams=Q);n&&(F.listId=n);x&&x.length>0&&(F.videoIds=x.join(","));e!==void 0&&(F.currentIndex=e);this.enableConnectWithInitialState_&&(F.loopMode=E||"LOOP_MODE_OFF");n&&(this.playerContext_.listId=n);this.playerContext_.videoId=
f;this.playerContext_.index=e||0;this.playerContext_.state=3;Rz(this.playerContext_,b);this.autoplayMode_="UNSUPPORTED";n=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";f6("Connecting with "+n+" and params: "+(0,_.aW)(F));this.channelService.connect({method:n,params:(0,_.aW)(F)},v,zl_())}else f6("Connecting without params"),this.channelService.connect({},v,zl_());y1d(this)};
x4.prototype.setLoungeToken=function(v){this.channelService.setLoungeToken(v)};
x4.prototype.dispose=function(){this.isDisposed()||(_.Vc("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),x2x(this,3));_.jn.prototype.dispose.call(this)};
x4.prototype.disposeInternal=function(){ps_(this);QDU(this);XsP(this);_.za(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.za(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.ni1(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.jn.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var eb_=function(v){return _.gL(v.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"})},f6=function(v){K8("conn",v)},x2x=function(v,E){v.publish("proxyStateChange",E)},y1d=function(v){v.connectTimerId_=_.Ta(function(){f6("Connecting timeout");
v.JSC$17457_disconnect_(1)},2E4)},ps_=function(v){_.za(v.connectTimerId_);
v.connectTimerId_=NaN},XsP=function(v){_.za(v.reconnectedCheckScreenTimeout_);
v.reconnectedCheckScreenTimeout_=NaN},FLM=function(v){QDU(v);
v.playingSyncTimerId_=_.Ta(function(){c4(v,"getNowPlaying")},2E4)},QDU=function(v){_.za(v.playingSyncTimerId_);
v.playingSyncTimerId_=NaN},fQd=function(v){f6("Channel opened");
v.reconnecting_&&(v.reconnecting_=!1,XsP(v),v.reconnectedCheckScreenTimeout_=_.Ta(function(){f6("Timing out waiting for a screen.");v.JSC$17457_disconnect_(1)},15E3))},wsR=function(v,E){var n=null;
if(E){var f=eb_(v);f&&(n={clientName:f.clientName,deviceMake:f.brand,deviceModel:f.model,osVersion:f.osVersion})}_.Vc("yt.mdx.remote.remoteClient_",n);E&&(ps_(v),XsP(v));n=v.channelService.isChannelOpened()&&isNaN(v.connectTimerId_);E==n?E&&(x2x(v,1),c4(v,"getSubtitlesTrack")):E?(v.getOtherConnectedRemoteId_()&&v.playerContext_.reset(),x2x(v,1),c4(v,"getNowPlaying"),m2P(v)):v.JSC$17457_disconnect_(1)},btU=function(v,E){var n=E.params.videoId;
delete E.params.videoId;n==v.playerContext_.videoId&&(_.sh.isEmpty(E.params)?v.playerContext_.trackData=null:v.playerContext_.trackData=E.params,v.publish("remotePlayerChange"))},lQd=function(v,E,n){var f=E.params.videoId||E.params.video_id,x=parseInt(E.params.currentIndex,10);
v.playerContext_.listId=E.params.listId||v.playerContext_.listId;z8p(v.playerContext_,f,x);v.publish("remoteQueueChange",n)},sDR=function(v,E){E.params=E.params||{};
lQd(v,E,"NOW_PLAYING_MAY_CHANGE");v.onStateChange_(E);v.publish("autoplayDismissed")};
x4.prototype.onStateChange_=function(v){var E=parseInt(v.params.currentTime||v.params.current_time,10);Rz(this.playerContext_,isNaN(E)?0:E);E=parseInt(v.params.state,10);E=isNaN(E)?-1:E;E==-1&&this.playerContext_.playerState==-1E3&&(E=-1E3);this.playerContext_.playerState=E;E=Number(v.params.loadedTime);this.playerContext_.loadedTime=isNaN(E)?0:E;E=Number(v.params.duration);this.playerContext_.duration_=isNaN(E)?0:E;E=this.playerContext_;var n=Number(v.params.liveIngestionTime);E.liveIngestionTime_=
n;E.isLive_=isNaN(n)?!1:!0;E=this.playerContext_;n=Number(v.params.seekableStartTime);v=Number(v.params.seekableEndTime);E.seekableStart_=isNaN(n)?0:n;E.seekableEnd_=isNaN(v)?0:v;this.playerContext_.playerState==1?FLM(this):QDU(this);this.publish("remotePlayerChange")};
x4.prototype.onAdStateChange_=function(v){if(this.playerContext_.playerState!=-1E3){var E=1085;switch(parseInt(v.params.adState,10)){case 1:E=1081;break;case 2:E=1084;break;case 0:E=1083}this.playerContext_.playerState=E;v=parseInt(v.params.currentTime,10);Rz(this.playerContext_,isNaN(v)?0:v);this.publish("remotePlayerChange")}};
var r1_=function(v,E){var n=E.params.muted=="true";v.playerContext_.volume=parseInt(E.params.volume,10);v.playerContext_.muted=n;v.publish("remotePlayerChange")},PQ_=function(v,E){v.autoplayVideoId_=E.params.videoId;
v.publish("nowAutoplaying",parseInt(E.params.timeout,10))},aQU=function(v,E){v.autoplayVideoId_=E.params.videoId||null;
v.publish("autoplayUpNext",v.autoplayVideoId_)},Ztb=function(v,E){v.autoplayMode_=E.params.autoplayMode;
v.publish("autoplayModeChange",v.autoplayMode_);v.autoplayMode_=="DISABLED"&&v.publish("autoplayDismissed")},CQO=function(v,E){var n=E.params.hasNext=="true";
v.playerContext_.hasPrevious=E.params.hasPrevious=="true";v.playerContext_.hasNext=n;v.publish("previousNextChange")};
x4.prototype.isCapabilitySupportedOnConnectedDevices_=function(v){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var E=_.p(this.connectedDevices_),n=E.next();!n.done;n=E.next())if(!n.value.capabilities.has(v))return!1;return!0};
var c1O=function(v,E){E=E.message;E.params?f6("Received: action="+E.action+", params="+(0,_.aW)(E.params)):f6("Received: action="+E.action+" {}");switch(E.action){case "loungeStatus":E=(0,_.eK)(E.params.devices);v.connectedDevices_=_.rA(E,function(f){return new NZ(f)});
E=!!_.gL(v.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
wsR(v,E);E=v.isCapabilitySupportedOnConnectedDevices_("mlm");v.publish("multiStateLoopEnabled",E);break;case "loungeScreenDisconnected":eRb(v.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
wsR(v,!1);break;case "remoteConnected":var n=new NZ((0,_.eK)(E.params.device));_.gL(v.connectedDevices_,function(f){return f.equals(n)})||_.Gs(v.connectedDevices_,n);
break;case "remoteDisconnected":n=new NZ((0,_.eK)(E.params.device));eRb(v.connectedDevices_,function(f){return f.equals(n)});
break;case "gracefulDisconnect":break;case "playlistModified":lQd(v,E,"QUEUE_MODIFIED");break;case "nowPlaying":sDR(v,E);break;case "onStateChange":v.onStateChange_(E);break;case "onAdStateChange":v.onAdStateChange_(E);break;case "onVolumeChanged":r1_(v,E);break;case "onSubtitlesTrackChanged":btU(v,E);break;case "nowAutoplaying":PQ_(v,E);break;case "autoplayDismissed":v.publish("autoplayDismissed");break;case "autoplayUpNext":aQU(v,E);break;case "onAutoplayModeChanged":Ztb(v,E);break;case "onHasPreviousNextChanged":CQO(v,
E);break;case "requestAssistedSignIn":v.publish("assistedSignInRequested",E.params.authCode);break;case "onLoopModeChanged":v.publish("loopModeChange",E.params.loopMode);break;default:f6("Unrecognized action: "+E.action)}};
_.c=x4.prototype;_.c.getProxyState_=function(){var v=3;this.isDisposed()||(v=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(v=1):v=2);return v};
_.c.JSC$17457_disconnect_=function(v){f6("Disconnecting with "+v);_.Vc("yt.mdx.remote.remoteClient_",null);ps_(this);this.publish("beforeDisconnect",v);v==1&&SJ();this.channelService.disconnect(v);this.dispose()};
_.c.getPlayerContextData_=function(){var v=this.playerContext_;this.clientVideoId_&&(v=this.playerContext_.clone(),z8p(v,this.clientVideoId_,v.index));return R8O(v)};
_.c.setPlayerContextData_=function(v){var E=this,n=new jJ(v);n.videoId&&n.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=n.videoId,_.za(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Ta(function(){if(E.clientVideoId_){var x=E.clientVideoId_;E.clientVideoId_=null;E.playerContext_.videoId!=x&&c4(E,"getNowPlaying")}},5E3));
var f=[];this.playerContext_.listId==n.listId&&this.playerContext_.videoId==n.videoId&&this.playerContext_.index==n.index||f.push("remoteQueueChange");this.playerContext_.playerState==n.playerState&&this.playerContext_.volume==n.volume&&this.playerContext_.muted==n.muted&&iQp(this.playerContext_)==iQp(n)&&(0,_.aW)(this.playerContext_.trackData)==(0,_.aW)(n.trackData)||f.push("remotePlayerChange");this.playerContext_.reset(v);_.I5(f,function(x){this.publish(x)},this)};
_.c.getOtherConnectedRemoteId_=function(){var v=this.channelService.getDeviceId(),E=_.gL(this.connectedDevices_,function(n){return n.type=="REMOTE_CONTROL"&&n.id!=v});
return E?E.id:""};
_.c.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.c.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.c.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.c.JSC$17457_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var m2P=function(v){_.za(v.idleDisconnectTimerId_);v.idleDisconnectTimerId_=_.Ta(function(){v.JSC$17457_disconnect_(1)},864E5)},c4=function(v,E,n){n?f6("Sending: action="+E+", params="+(0,_.aW)(n)):f6("Sending: action="+E);
v.channelService.sendMessage(E,n)};
x4.prototype.sendMessageWithUserAction_=function(v,E){c4(this,v,E);m2P(this)};
x4.prototype.JSC$17457_getXsrfToken_=function(){var v=_.nE.get("SAPISID","")||_.nE.get("__Secure-1PAPISID",void 0)||"",E=_.nE.get("__Secure-3PAPISID","")||"";if(!v&&!E)return"";v=_.z3(_.pT(v),2);E=_.z3(_.pT(E),2);return _.z3(_.pT(","+v+","+E),2)};
x4.prototype.subscribe=x4.prototype.subscribe;x4.prototype.unsubscribeByKey=x4.prototype.unsubscribeByKey;x4.prototype.getProxyState=x4.prototype.getProxyState_;x4.prototype.disconnect=x4.prototype.JSC$17457_disconnect_;x4.prototype.getPlayerContextData=x4.prototype.getPlayerContextData_;x4.prototype.setPlayerContextData=x4.prototype.setPlayerContextData_;x4.prototype.getOtherConnectedRemoteId=x4.prototype.getOtherConnectedRemoteId_;x4.prototype.getReconnectTimeout=x4.prototype.getReconnectTimeout_;
x4.prototype.getAutoplayMode=x4.prototype.getAutoplayMode_;x4.prototype.getAutoplayVideoId=x4.prototype.getAutoplayVideoId_;x4.prototype.reconnect=x4.prototype.JSC$17457_reconnect_;x4.prototype.sendMessage=x4.prototype.sendMessageWithUserAction_;x4.prototype.getXsrfToken=x4.prototype.JSC$17457_getXsrfToken_;x4.prototype.isCapabilitySupportedOnConnectedDevices=x4.prototype.isCapabilitySupportedOnConnectedDevices_;var MVd=function(v){Yj.call(this,"ScreenServiceProxy");this.instance_=v;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.XV)(this.JSC$17460_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.XV)(this.onOnlineScreenChange_,this)))};
_.S(MVd,Yj);_.c=MVd.prototype;_.c.getScreens=function(v){return this.instance_.$_gs(v)};
_.c.contains=function(v){return!!this.instance_.$_c(v)};
_.c.get=function(v){return this.instance_.$_g(v)};
_.c.start=function(){this.instance_.$_st()};
_.c.add=function(v,E,n){this.instance_.$_a(v,E,n)};
_.c.remove=function(v,E,n){this.instance_.$_r(v,E,n)};
_.c.updateName=function(v,E,n,f){this.instance_.$_un(v,E,n,f)};
_.c.disposeInternal=function(){for(var v=this.subscriptionKeys_.length,E=0;E<v;++E)this.instance_.$_ubk(this.subscriptionKeys_[E]);this.subscriptionKeys_.length=0;this.instance_=null;Yj.prototype.disposeInternal.call(this)};
_.c.JSC$17460_onScreenChange_=function(){this.publish("screenChange")};
_.c.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
VM.prototype.$_st=VM.prototype.start;VM.prototype.$_gspc=VM.prototype.JSC$17417_getScreenByPairingCode;VM.prototype.$_gsppc=VM.prototype.JSC$17417_getScreenByPollingPairingCode;VM.prototype.$_c=VM.prototype.contains;VM.prototype.$_g=VM.prototype.get;VM.prototype.$_a=VM.prototype.add;VM.prototype.$_un=VM.prototype.updateName;VM.prototype.$_r=VM.prototype.remove;VM.prototype.$_gs=VM.prototype.getScreens;VM.prototype.$_gos=VM.prototype.JSC$17417_getOnlineScreens;VM.prototype.$_s=VM.prototype.subscribe;
VM.prototype.$_ubk=VM.prototype.unsubscribeByKey;var IQ1=function(v){vs6();if(!UX||!UX.get("yt-remote-disable-remote-module-for-dev")){v=_.MX("MDX_CONFIG")||v;oa0();Gnx();yx||(yx=new ax(v?v.loungeApiHost:void 0),Esb()&&(yx.basePath="/api/loungedev"));p6||(p6=_.JM("yt.mdx.remote.deferredProxies_")||[],_.Vc("yt.mdx.remote.deferredProxies_",p6));SCM();var E=Qx();if(!E){var n=new VM(yx,v?v.disableAutomaticScreenCache||!1:!1);_.Vc("yt.mdx.remote.screenService_",n);E=Qx();var f={};v&&(f={appId:v.appId,disableDial:v.disableDial,theme:v.theme,loadCastApiSetupScript:v.loadCastApiSetupScript,
disableCastApi:v.disableCastApi,enableDialLoungeToken:v.enableDialLoungeToken,enableCastLoungeToken:v.enableCastLoungeToken,forceMirroring:v.forceMirroring});_.Vc("yt.mdx.remote.enableConnectWithInitialState_",v?v.enableConnectWithInitialState||!1:!1);YfR(n,function(y){y?XE()&&uDC(XE(),"YouTube TV"):n.subscribe("onlineScreenChange",function(){GC("yt-remote-receiver-availability-change")})},f)}if(v&&!_.JM("yt.mdx.remote.initialized_")){_.Vc("yt.mdx.remote.initialized_",!0);
ee("Initializing: "+(0,_.aW)(v));FE.push(_.W7("yt-remote-cast2-api-ready",function(){GC("yt-remote-api-ready")}));
FE.push(_.W7("yt-remote-cast2-availability-change",function(){GC("yt-remote-receiver-availability-change")}));
FE.push(_.W7("yt-remote-cast2-receiver-selected",function(){U2P();GC("yt-remote-auto-connect","cast-selector-receiver")}));
FE.push(_.W7("yt-remote-cast2-receiver-resumed",function(){GC("yt-remote-receiver-resumed","cast-selector-receiver")}));
FE.push(_.W7("yt-remote-cast2-session-change",qC_));FE.push(_.W7("yt-remote-connection-change",function(y){y?uDC(XE(),"YouTube TV"):J1b()||(uDC(null,null),HH3())}));
FE.push(_.W7("yt-remote-cast2-session-failed",function(){GC("yt-remote-connection-failed")}));
f=KLb();v.isAuto&&(f.id+="#dial");var x=v.capabilities||[];_.Z("desktop_enable_autoplay")&&x.push("atp");x.length>0&&(f.capabilities=x);f.name=v.device;f.app=v.app;(v=v.theme)&&(f.theme=v);ee(" -- with channel params: "+(0,_.aW)(f));f?(_.Bg("yt-remote-session-app",f.app),_.Bg("yt-remote-session-name",f.name)):(_.EC("yt-remote-session-app"),_.EC("yt-remote-session-name"));_.Vc("yt.mdx.remote.channelParams_",f);E.start();XE()||d2d()}}},hb6=function(){var v=Qx().instance_.$_gos();
var E=YCx();E&&m6()&&(OGC(v,E)||v.push(E));return jTU(v)},A11=function(){var v=hb6(),E=YCx();
E||(E=J1b());return _.gL(v,function(n){return E&&C8(E,n.key)?!0:!1})},YCx=function(){var v=XE();
if(!v)return null;var E=Qx().getScreens();return MW(E,v)},qC_=function(v){ee("remote.onCastSessionChange_: "+jQ3(v));
if(v){var E=YCx();E&&E.id==v.id?(uDC(E.id,"YouTube TV"),v.idType=="shortLived"&&(v=v.token)&&(E=m6())&&E.setLoungeToken(v)):(E&&VVd(),D2b(v,1))}else m6()&&VVd()},VVd=function(){Nj0()?NW().stopSession():gK("stopSession called before API ready.");
var v=m6();v&&(v.disconnect(1),HtM(null))},gIp=function(){var v=m6();
return v&&v.getProxyState()!=3?new tY(m6(),void 0):null},ee=function(v){K8("remote",v)},Qx=function(){if(!Nm0){var v=_.JM("yt.mdx.remote.screenService_");
Nm0=v?new MVd(v):null}return Nm0},XE=function(){return _.JM("yt.mdx.remote.currentScreenId_")},ugK=function(v){_.Vc("yt.mdx.remote.currentScreenId_",v)},U2P=function(){_.Vc("yt.mdx.remote.connectData_",null)},m6=function(){return _.JM("yt.mdx.remote.connection_")},HtM=function(v){var E=m6();
U2P();v||ugK("");_.Vc("yt.mdx.remote.connection_",v);p6&&(_.I5(p6,function(n){n(v)}),p6.length=0);
E&&!v?GC("yt-remote-connection-change",!1):!E&&v&&GC("yt-remote-connection-change",!0)},J1b=function(){var v=$A0();
if(!v)return null;var E=Qx();if(!E)return null;E=E.getScreens();return MW(E,v)},D2b=function(v,E){ugK(v.id);
v=new x4(yx,v,KLb(),_.JM("yt.mdx.remote.enableConnectWithInitialState_")||!1);v.connect(E,_.JM("yt.mdx.remote.connectData_"));v.subscribe("beforeDisconnect",function(n){GC("yt-remote-before-disconnect",n)});
v.subscribe("beforeDispose",function(){m6()&&HtM(null)});
v.subscribe("browserChannelAuthError",function(){var n=YCx();n&&n.idType=="shortLived"&&(Nj0()?NW().handleBrowserChannelAuthError():gK("refreshLoungeToken called before API ready."))});
HtM(v)},d2d=function(){var v=J1b();
v?(ee("Resume connection to: "+jQ3(v)),D2b(v,0)):(SJ(),HH3(),ee("Skipping connecting because no session screen found."))},yx=null,p6=null,Nm0=null,SCM=function(){var v=KLb();
if(_.sh.isEmpty(v)){v=Wub();var E=_.vs("yt-remote-session-name")||"",n=_.vs("yt-remote-session-app")||"";v={device:"REMOTE_CONTROL",id:v,name:E,app:n,mdxVersion:3};v.authuser=String(_.MX("SESSION_INDEX","0"));(E=_.MX("DELEGATED_SESSION_ID"))&&(v.pageId=String(E));_.Vc("yt.mdx.remote.channelParams_",v)}},KLb=function(){return _.JM("yt.mdx.remote.channelParams_")||{}},FE=[];var jDp=new _.P7("yt-menu"),OtP=function(){},WL_=function(v,E,n){v=E=="right-click"?n.rightClickMenuPopupHint:n.menuPopupHint;
if(!(kUR(E)>10))return E=E||"default",jDp.set(E+"-impression",kUR(E)+1),v},kUR=function(v){return parseInt(jDp.get((v||"default")+"-impression")||0,10)};
_.zY(OtP);var $2R=function(){this.contexts_=new WeakMap;this.JSC$17466_networkService_=this.activeContext_=null},LLp=function(v,E,n){var f=v.contexts_.get(E);
f||(f=new na6(v.JSC$17466_networkService_),v.contexts_.set(E,f));v.activeContext_=f;n&&v.activeContext_.reset();v.activeContext_.start();return v.activeContext_};var wU=function(){};
wU.prototype.enqueue=function(){var v=this,E;return _.X(function(n){if(v.isCounterfactual())return(E=v.getCounterfactualData())&&v.shouldLogCounterfactualImpression()&&v.sendImpressionEndpoints(E),n.return();v.doEnqueue();_.yQ(n)})};
wU.prototype.sendImpressionEndpoints=function(v){_.qw.getInstance().triggerOptionalAction("yt-service-request",{},v[0])};var b8=function(v,E){this.renderer=v;this.page=E};
_.S(b8,wU);b8.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
b8.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
b8.prototype.shouldLogCounterfactualImpression=function(){return!0};
b8.prototype.doEnqueue=function(){var v=_.hq(this.page);v&&v.pause();this.renderer.impressionCommand&&_.qw.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.UM(_.qw.getInstance(),[this.renderer.promoCommand],this.page)};var GU1=function(v,E){this.renderer=v;this.resolver=_.Sw();this.JSC$17478_enforcementCounter=new _.Xv4;E?this.JSC$17478_playerManager=_.hq(E):this.JSC$17478_playerManager=null;_.Te(1,!0)};
_.S(GU1,wU);_.c=GU1.prototype;_.c.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var v=[];this.renderer.impressionEndpoints.forEach(function(E){(E=_.F$(E))&&v.push(E)});
return v}};
_.c.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.c.shouldLogCounterfactualImpression=function(){var v=_.tZy();v?(this.JSC$17478_enforcementCounter.increment("POPUP"),_.Te(3)):_.Te(2);return v};
_.c.cancel=function(){this.resolver.promise.cancel()};
_.c.doEnqueue=function(){var v=this;_.tZy()?(this.JSC$17478_enforcementCounter.increment("POPUP"),_.Te(3),Tm_(this)):this.JSC$17478_playerManager?(this.resolver.promise.then(function(){Tm_(v)}),itC(this.resolver,this.JSC$17478_playerManager)):_.Te(2)};
var itC=function(v,E){var n=_.Sw();E.getPlayerPromise().then(function(f){n.resolve(f)});
n.promise.then(function(f){f.addEventListener("onAbnormalityDetected",v.resolve);_.so(v.promise,function(){f.removeEventListener("onAbnormalityDetected",v.resolve)})});
v.promise.thenCatch(function(){n.promise.cancel()})},Tm_=function(v){_.Te(3);
var E={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:v.renderer}};E=_.qw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});Promise.all(E).then(function(){zb_();v.JSC$17478_playerManager&&v.JSC$17478_playerManager.pause()})},zb_=function(){zRp(function(v,E){_.iEO(v,E);
v===0?_.Te(7):_.Te(4)})};var RbC=function(v,E){this.renderer=v;this.page=E;this.resolver=_.Sw()};
_.S(RbC,wU);_.c=RbC.prototype;_.c.cancel=function(){this.resolver.promise.cancel()};
_.c.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.c.isCounterfactual=function(){return!this.renderer.isVisible};
_.c.shouldLogCounterfactualImpression=function(){return!0};
_.c.doEnqueue=function(){var v=this;this.resolver.promise.then(function(){var n={popup:{mealbarPromoRenderer:v.renderer},popupType:"MEALBAR"};_.qw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:n},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var E=_.hq(this.page);E&&tVK(this.resolver,E)}break;default:this.resolver.resolve()}};
var tVK=function(v,E){var n=_.Sw();E.getPlayerPromise().then(function(f){n.resolve(f)});
n.promise.then(function(f){f.addEventListener("onAdEnd",v.resolve);_.so(v.promise,function(){f.removeEventListener("onAdEnd",v.resolve)})});
v.promise.thenCatch(function(){n.promise.cancel()})};var Bm6=function(v,E){this.renderer=v;this.page=E};
_.S(Bm6,wU);_.c=Bm6.prototype;_.c.cancel=function(){this.JSC$17486_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17486_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17486_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.c.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.c.isCounterfactual=function(){return!this.renderer.isVisible};
_.c.shouldLogCounterfactualImpression=function(){return!0};
_.c.doEnqueue=function(){var v=this,E,n;((E=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(n=E.playbackUpsellDialogTriggerConditionData)==null?void 0:n.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17486_downloadedVideosCountSelectorUnsubscriber=_.yC(_.dG(),$1O,function(f,x){f>x&&(vMU(v),v.cancel())}):vMU(this)};
var vMU=function(v){var E={popup:{upsellDialogRenderer:v.renderer},popupType:"MODAL"};_.qw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});(v=_.hq(v.page))&&v.pause()};var l8={},EMK=(l8.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",l8.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",l8.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",l8.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",l8.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",l8.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",l8.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",l8),nMx=function(v,E){this.renderer=v;this.targetManager=
E};
_.S(nMx,wU);_.c=nMx.prototype;_.c.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17493_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17493_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17493_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.c.getCounterfactualData=function(){if(this.isCounterfactual()){var v;return(v=this.renderer.promoConfig)==null?void 0:v.impressionEndpoints}};
_.c.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.c.shouldLogCounterfactualImpression=function(){return!0};
_.c.doEnqueue=function(){var v=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17493_downloadedVideosCountSelectorUnsubscriber=_.yC(_.dG(),$1O,function(E,n){v.renderer.targetId&&E>n&&(hYb(v.targetManager,v.renderer.targetId,oMd(v)),v.cancel())});
break;default:hYb(this.targetManager,this.renderer.targetId,oMd(this))}};
var oMd=function(v){var E;if((E=v.renderer.suggestedPosition)==null?0:E.type)var n=EMK[v.renderer.suggestedPosition.type];n||(n="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:v.renderer},popupType:"HINT",position:n}}};var fvR=function(){this.previousPage=null},x33;
fvR.prototype.registerPromoCommand=function(v,E){cdC(this,void 0,void 0,_.C(v.roadblock,CMC),void 0,void 0,E)};
var cdC=function(v,E,n,f,x,y,Q){v.previousPage!==Q&&v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel();v.previousPage=Q;x?(v.pendingEnforcementPromo&&v.pendingEnforcementPromo.cancel(),v.pendingEnforcementPromo=new GU1(x,Q),v.pendingEnforcementPromo.enqueue()):y?(v.pendingCommandWrapperPromo=new b8(y,Q),v.pendingCommandWrapperPromo.enqueue()):f?(v.pendingRoadblockPromo&&v.pendingRoadblockPromo.cancel(),v.pendingRoadblockPromo=new Bm6(f,Q),v.pendingRoadblockPromo.enqueue()):E?(v.pendingMealbarPromo&&
v.pendingMealbarPromo.cancel(),v.pendingMealbarPromo=new RbC(E,Q),v.pendingMealbarPromo.enqueue()):n&&(v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel(),v.pendingTooltipPromo=new nMx(n,_.R6()),v.pendingTooltipPromo.enqueue())},yd3=function(){x33||(x33=new fvR);
return x33};var $xd=!1;var gi0=function(v,E){var n=_.MX("SESSION_INDEX");this.actionToken_=v;this.commonToken_=E;this.sessionIndex_=n},H5C=function(v){var E=_.Sw(),n=_.JM("payments.business.integration.bootstrap"),f=_.JM("payments.business.integration"),x=f.Style.create().withMaterialDesignStyle(),y=f.mashupMode.popup("instrument-manager");
n.asMashupMode(y).usingUserIndex(v.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(x).inStandaloneContext(f.standaloneContextAuthId.forUserId()).instrumentManager(v.actionToken_,v.commonToken_.length>0?v.commonToken_:void 0,function(Q){var e=Q.instrumentId;e?E.resolve(e):(e=_.JM("payments.business.integration.scenario.InstrumentManager"),E.reject(Q.errorCode&&Q.errorCode===e.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Q){_.UO(Q);
E.reject("instrumentManagerLoadError")});
return E.promise};var L8=function(v,E,n){this.payloadName="transactionFlowFailed";this.payload={errorType:v,serializedTransactionFlowLoggingParams:E,isUserDismiss:n===void 0?!1:n}};
_.Vc("yt.ypc.shared.YpcTransactionFlowError",L8);var sj=function(){return _.L2.apply(this,arguments)||this};
_.S(sj,_.L2);sj.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
sj.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
sj.prototype.onErrorMessageDismiss=sj.prototype.onErrorMessageDismiss;_.k([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.W("design:type",Object)],sj.prototype,"errorRenderer",void 0);_.k([_.jk("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sj.prototype,"onErrorMessageDismiss",null);sj=_.k([_.Gw()],sj);var pmd=[sj.prototype];var Qf1;var Xm0;var ezx=new _.P7("yt-live-chat"),FNC=new Map;FNC.set("timestamp_toggle","show-timestamps");FNC.set("reactions_toggle","allow-reactions");var rU=function(){return _.g.apply(this,arguments)||this};
_.S(rU,_.g);_.c=rU.prototype;_.c.menuItemIdentifierChanged=function(){var v;(v=this.data)!=null&&v.menuItemIdentifier&&(v=FNC.get(this.data.menuItemIdentifier))&&(_.Z("enable_lwe_web_mute")?(v=ezx.get(v),this.isToggled=!(v===void 0?!this.data.isToggled:!v)):this.isToggled=ezx.get(v))};
_.c.onFocus=function(){this.toggleButton.focus()};
_.c.onTap=function(){var v=this.data.command;v&&this.componentBehavior.resolveCommand(v)};
_.c.computeText=function(v,E,n){return this.componentBehavior.getSimpleString(v?n:E)};
_.c.computeIcon=function(v,E,n){return(v=v?n:E)&&v.iconType?_.jI(v.iconType):""};
rU.prototype.onTap=rU.prototype.onTap;rU.prototype.onFocus=rU.prototype.onFocus;rU.prototype.menuItemIdentifierChanged=rU.prototype.menuItemIdentifierChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],rU.prototype,"componentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rU.prototype,"data",void 0);
_.k([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],rU.prototype,"icon",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],rU.prototype,"isToggled",void 0);_.k([_.Wp("tp-yt-paper-toggle-button"),_.W("design:type",Object)],rU.prototype,"toggleButton",void 0);_.k([_.On("data.menuItemIdentifier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rU.prototype,"menuItemIdentifierChanged",null);
_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rU.prototype,"onFocus",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rU.prototype,"onTap",null);rU=_.k([_.p5({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],rU);
_.u(rU,"yt-live-chat-toggle-renderer",function(){if(Xm0===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Qf1===void 0&&(Qf1=document.createElement("template"));var f=Qf1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Xm0=v}v=Xm0;return v},{mode:_.Z("live_chat_enable_sink_wrapper")?2:0});var m3x=new _.$Y("NAVIGATION_PROGRESS_TOKEN");_.Ck("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var wm_={},t7U=(wm_.CSI=function(v,E){var n={};n[v]=E;v=_.qX(_.Q9s)(n);Object.keys(v).length>0&&_.XD(v)},wm_.ECATCHER=function(v){return function(E,n){_.MX(v)[E]=n}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),wm_);var bKb={},lvx={},sfp=(lvx[XDP.name]=!0,lvx),P4=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;v.tabGesturesIsActive=!1;v.actionRouterIsRoot=!0;v.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"};v.pageTitle="";v.titleSuffix="YouTube";v.unseenNotificationCount=
0;v.hasNavigated=!1;v.hasSetScrollTopForNavigation=!1;v.pagePreparer=null;v.zwiebackInitJobId=0;v.dataUpdatePromise=null;v.loadDepsPromise=_.Gn();v.hasPendingNavigation=!1;v.pendingPlayerOnResponseReceivedActions=[];return v};
_.S(P4,_.L2);P4.prototype.attached=function(){rd_(this);document.addEventListener("yt-navigate-cache",_.uo(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var v=aI();v.init();v.dispatchElement=this.hostElement};
var rd_=function(v,E){E=E===void 0?0:E;var n=_.P().resolve(_.jp(_.zB));if(n)PJK(v,n);else{if(E>=5)throw Error("Wk");setTimeout(function(){rd_(v,E+1)},0)}},PJK=function(v,E){E.addEventListener("yt-navigate-start",_.uo(v,v.onYtNavigateStart));
E.addEventListener("yt-navigate-finish",_.uo(v,v.onYtNavigateFinish));E.addEventListener("yt-navigate-error",_.uo(v,v.onYtNavigateError));E.addEventListener("yt-page-data-fetched",_.uo(v,v.onYtPageDataFetched))};
_.c=P4.prototype;_.c.detached=function(){var v=_.P().resolve(_.zB);v.removeEventListener("yt-navigate-start",_.uo(this,this.onYtNavigateStart));v.removeEventListener("yt-navigate-finish",_.uo(this,this.onYtNavigateFinish));v.removeEventListener("yt-navigate-error",_.uo(this,this.onYtNavigateError));v.removeEventListener("yt-page-data-fetched",_.uo(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.uo(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.c.setPageOffset=function(v,E){v?_.OL(this.hostElement,"yt-set-page-offset",[v,E]):_.mb(Error("Xk"))};
_.c.setPageOffsetForNavigation=function(v,E){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(v,E))};
_.c.onYtNavigateSetPageOffset=function(v,E){this.setPageOffsetForNavigation(E.page,E.offset)};
_.c.getPageOffset=function(){var v=_.K(this.hostElement).querySelector("#page-manager").getCurrentPage(),E=0;v&&(E=_.OL(this.hostElement,"yt-get-page-offset",[v])[0]);return E};
_.c.onYtHistoryPop=function(v,E){if(_.Sp("DISABLE_WARM_LOADS"))v.preventDefault(),window.location.reload();else{var n=_.P().resolve(_.zB);n.hasPendingNavigation()&&v.preventDefault();n.cancelPendingNavigation();_.kZ(this.hostElement,"yt-pending-navigation-cancelled");E.errorMsg&&(v=E.errorMsg.split(" - "),E=Error(v[0]),v.length==2&&v[1]&&(_.ss(E,v[1]),_.li(E)),window.location.reload())}};
_.c.onYtHistoryLoad=function(v,E){var n=this;if(_.Sp("DISABLE_WARM_LOADS"))window.location.reload();else{(v=E.endpoint)&&Object.keys(v).length||(v=null);var f=E.historyEntry,x=_.P().resolve(_.zB),y=_.P().resolve(_.Y_),Q=null;f&&f.rootData&&(Q=f.rootData);var e=Q&&avb(Q);!Q||e||Q.filler?v?(x.navigate(v,!0),ZKb(this,v)):(E.legacyBorder||e||(E.JSC$26360_savedComponentState==null&&Q==null?_.li(new _.yc("Incomplete history entry",E.forward)):_.bi(new _.yc("Malformed history entry",E.JSC$26360_savedComponentState,
E.forward,Q))),window.location.reload()):(_.s9$({isHot:!0}),_.XD({webInfo:{navigationReason:"h"}}),_.Vj1(),_.FD("srt"),_.FD("pdc"),this.cancelPendingTasks(),CJR(this,E.forward,Q),Q.player&&(Q.player.loaded=!1),ZKb(this,v),_.V4i(x,v||{},Q,2,{},!1,E).then(function(){n.setPageOffset(y.getCurrentPage(),f.scrollTop||0)}))}};
_.c.initHistoryManager=function(v){if(!this.hasNavigated){this.hasNavigated=!0;var E=_.K(this.hostElement).querySelector("#page-manager").getCurrentData();v=isNaN(v)?this.getPageOffset():v;var n=_.P().resolve(_.zB).currentEndpoint;this.replaceState(n,E,v)}};
_.c.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.c.onYtNavigateStart=function(v,E){this.cancelPendingTasks();E.noProgressBar||(v=_.P().resolve(_.jp(m3x)))&&v.start();v=this.hasPendingNavigation?null:this.data;var n=_.P().resolve(_.Y_),f,x,y;_.Z("kevlar_use_vimio_behavior")&&!((f=E.endpoint)==null?0:(x=f.commandMetadata)==null?0:(y=x.webCommandMetadata)==null?0:y.ignoreNavigation)&&(f=n.getCurrentPage())&&f.disconnectVisibilityRoot();n.prepareForNavigation(E.pageType,E.endpoint);_.Z("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.DQ(1,
"pcl"),_.Hs(this.pagePreparer,n.preparePage.bind(n,E.pageType,E.endpoint)));f=this.getPageOffset();this.initHistoryManager(f);E.reload||this.hasPendingNavigation?this.replaceState(E.endpoint,v,f):(v==null?void 0:v.page)==="watch"&&E.pageType==="watch"&&_.Z("kevlar_replace_watch_to_watch_history_state")?this.replaceState(E.endpoint,v,f):(v==null?void 0:v.page)!=="shorts"||E.pageType!=="shorts"||E.endpoint.reelWatchEndpoint.sequenceParams||_.Z("short_to_short_back_nav_killswitch")?E.type!="navigate-back"&&
E.type!="navigate-forward"&&(E.pageType==="shorts"&&_.jK(this.hostElement,"yt-shorts-reset"),this.saveAndPush(E.url,E.endpoint,v,f)):this.replaceState(E.endpoint,v,0);this.hasPendingNavigation=!0};
var MGU=function(v){v.hasPendingNavigation=!1;(v=_.P().resolve(_.jp(m3x)))&&v.finish()};
P4.prototype.onYtNavigateError=function(v,E){MGU(this);v=this.get("endpoint.commandMetadata.webCommandMetadata.url",E);var n=_.hM(window.location.href);v&&!n.pbjreload&&(E=E.navigationErrorReason||"10",_.Z("kevlar_parent_on_pbjreload")&&(n={csn:_.lc()},this.get("data.endpoint.clickTrackingParams")&&(n.itct=this.data.endpoint.clickTrackingParams),_.AQ(v,n)),_.mo(_.AM(v,{pbjreload:E})))};
P4.prototype.onYtNavigateCache=function(v,E){var n=this,f=E.url,x=E.endpoint,y=E.data;v=!!E.miniplayer;E=!!E.skipHistory;if(f&&x&&y){var Q=this.getPageOffset(),e=this.data||null;E||this.saveAndPush(f,x,e,Q);f=_.V4i(_.P().resolve(_.zB),x,y,v?4:3,{},v);v&&f.then(function(){n.dataUpdatePromise&&n.dataUpdatePromise.then(function(){var F=_.P().resolve(_.Y_);n.setPageOffset(F.getCurrentPage(),0)})})}};
P4.prototype.onYtNavigateFinish=function(v,E){var n=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Sp6(n,E.fromHistory)})};
var Sp6=function(v,E){MGU(v);if(v.pendingPlayerOnResponseReceivedActions){for(var n=_.p(v.pendingPlayerOnResponseReceivedActions),f=n.next();!f.done;f=n.next())_.WE(f.value,v.hostElement);v.pendingPlayerOnResponseReceivedActions=[]}n=_.P().resolve(_.Y_);!E&&v.hasNavigated&&((E=n.getCurrentPage())?E.is==="ytd-shorts"||v.tabGesturesIsActive||v.setPageOffsetForNavigation(E,0):_.li(Error("Yk")));_.bz(function(){_.bz(function(){_.FD("pda")})})};
P4.prototype.onYtNavigate=function(v){if(!v.detail.endpoint){var E=new _.yc("Error: Missing yt-navigate endpoint from target:",v.target,v.target.nodeName);_.mb(E)}if(E=_.Z("cold_missing_history"))E=aI(),E.init(!1),E=!(E.browserHistory.boundHistoryReplaceState&&E.browserHistory.boundHistoryPushState);if(E){_.Ck("DISABLE_WARM_LOADS",!0);E=new _.yc("Failed to initialize history manager",this.getDebugString());var n=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
n?_.li(E):_.mb(E)}E=v.detail.endpoint;var f,x;_.Z("debug_forward_web_query_parameters")&&((f=E.commandMetadata)==null?0:(x=f.webCommandMetadata)==null?0:x.url)&&(E=JSON.parse(JSON.stringify(E)),E.commandMetadata.webCommandMetadata.url=_.B6N(E.commandMetadata.webCommandMetadata.url,window.location.search));v={type:0,command:E,form:{params:v.detail.params,tempData:v.detail.tempData||{},requestType:v.detail.type,createScreenConfig:v.detail.createScreenConfig,reload:v.detail.reload?v.detail.reload:!1,
requestForm:v.detail}};_.Z("kevlar_yt_navigate_command_handler")?(f=_.P().resolve(_.OO),v.form.skipDefaultElement=!0,f.resolveCommand(E,{form:v.form})):this.handleNavigate(v)};
P4.prototype.handleNavigate=function(v){this.hasSetScrollTopForNavigation=!1;var E=_.P().resolve(_.zB),n=v.form||{};E.navigate(v.command,n.reload,n.params,n.tempData,n.requestType,n.createScreenConfig,n.ignoreConfirmation,n.requestForm)&&ZKb(this,v.command,n.tempData)};
P4.prototype.onYtPageDataFetched=function(v,E){try{_.gfU().reset();this.data=E.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.P().resolve(_.Y_).updatePageData(this.data);var n=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);n&&BjM(n);var f=this.get("response.responseContext.serviceTrackingParams",this.data);f&&BjM(f);var x=
this.get("playerResponse.onResponseReceivedActions",this.data);x&&(x=U30(this,x));x&&_.LG(this.hostElement,x,this.hostElement);var y=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(y||Q){var e=_.H41(),F=(0,_.sh.getValues)(e.tokenJars);y&&e.replace(F,y);Q&&e.replace(F,Q)}}catch(b){_.mb(b)}};
var ZKb=function(v,E,n){try{v.onYtEndpointChangeHandler(E,n)}catch(f){_.mb(f)}};
_.c=P4.prototype;_.c.onYtEndpointChangeHandler=function(){};
_.c.setPageTitle=function(v){v=(this.pageTitle=v)?v+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+v};
_.c.onYtUpdateTitle=function(v,E){this.setPageTitle(E)};
_.c.setUnseenNotificationCount=function(v){this.unseenNotificationCount=v;this.setPageTitle(this.pageTitle)};
_.c.handleUpdateNotificationsUnseenCountAction=function(v){_.C(v,Lwb)&&((v=_.C(v,Lwb).unseenCount)?this.setUnseenNotificationCount(v):this.setUnseenNotificationCount(0))};
_.c.handleClearCookieAction=function(v){var E;(v=(E=_.C(v,OM6))==null?void 0:E.cookieName)&&_.sTs(v)};
_.c.onYtUpdateUnseenNotificationCount=function(v,E){this.setUnseenNotificationCount(E)};
_.c.loadData=function(v){var E=this;this.loadDepsPromise.then(function(){var n=_.P().resolve(_.jp(_.zB));n||_.mb(Error("Zk"));if(v&&v.response){if(!v.endpoint){var f=_.SK(window.document.location.href)||"/",x="";if(f==="/"||f.startsWith("/?"))x="WEB_PAGE_TYPE_BROWSE";v.endpoint={commandMetadata:{webCommandMetadata:{url:f,webPageType:x,rootVe:3854}}}}_.V4i(n,v.endpoint,v,5,{})}else v.endpoint?n.navigate(v.endpoint):n.navigate(_.cg);_.wh.cancelJob(E.zwiebackInitJobId);E.zwiebackInitJobId=_.wh.addLowPriorityJob(L5U)})};
var aI=function(){return _.P().resolve(_.tz)};
P4.prototype.getDebugString=function(){return aI().getDebugString()};
P4.prototype.getThirdPartyManipulationSuspected=function(){return aI().getThirdPartyManipulationSuspected()};
P4.prototype.replaceState=function(v,E,n){aI().saveAndReplace(v,E,n)};
P4.prototype.saveAndPush=function(v,E,n,f){aI().saveAndPush(v,E,n,f)};
var avb=function(v){return _.Z("web_honor_cache_for_back")&&(_.C(v.endpoint,_.dM)||_.C(v.endpoint,_.By))?!0:!v||isNaN(v.expirationTime)?!1:(0,_.gd)()>v.expirationTime},CJR=function(v,E,n){var f=v.get("response.trackingParams",n),x=_.bc(),y=_.lc();
if(f&&x&&y&&(f=v.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",n),!f&&n.rootVe&&(f=n.rootVe),x=E?"forwardButton":"backButton",E=v.get("playerResponse.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",v.data),v=v.get("response.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",v.data),E=(v=E||v)?_.tx(v):void 0,v=_.Tl(),x=[_.Gn(n)],_.Rs(v,f,E,{dataPromises:x,csnToClone:n.csn}),n.graftedVes))for(n=
_.p(n.graftedVes),f=n.next();!f.done;f=n.next())_.t$(v,f.value)};
P4.prototype.onStoreGraftedVeAction=function(v){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(v)):_.li(Error("$k"))};
var U30=function(v,E){return E.filter(function(n){for(var f in n)if(sfp[f])return v.pendingPlayerOnResponseReceivedActions.push(n),!0;return!1})};
_.hK.Object.defineProperties(P4.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
P4.prototype.onStoreGraftedVeAction=P4.prototype.onStoreGraftedVeAction;P4.prototype.loadData=P4.prototype.loadData;P4.prototype.onYtUpdateUnseenNotificationCount=P4.prototype.onYtUpdateUnseenNotificationCount;P4.prototype.handleClearCookieAction=P4.prototype.handleClearCookieAction;P4.prototype.handleUpdateNotificationsUnseenCountAction=P4.prototype.handleUpdateNotificationsUnseenCountAction;P4.prototype.setUnseenNotificationCount=P4.prototype.setUnseenNotificationCount;
P4.prototype.onYtUpdateTitle=P4.prototype.onYtUpdateTitle;P4.prototype.setPageTitle=P4.prototype.setPageTitle;P4.prototype.onYtEndpointChangeHandler=P4.prototype.onYtEndpointChangeHandler;P4.prototype.onYtPageDataFetched=P4.prototype.onYtPageDataFetched;P4.prototype.handleNavigate=P4.prototype.handleNavigate;P4.prototype.onYtNavigate=P4.prototype.onYtNavigate;P4.prototype.onYtNavigateFinish=P4.prototype.onYtNavigateFinish;P4.prototype.onYtNavigateCache=P4.prototype.onYtNavigateCache;
P4.prototype.onYtNavigateError=P4.prototype.onYtNavigateError;P4.prototype.onYtNavigateStart=P4.prototype.onYtNavigateStart;P4.prototype.cancelPendingTasks=P4.prototype.cancelPendingTasks;P4.prototype.initHistoryManager=P4.prototype.initHistoryManager;P4.prototype.onYtHistoryLoad=P4.prototype.onYtHistoryLoad;P4.prototype.onYtHistoryPop=P4.prototype.onYtHistoryPop;P4.prototype.onYtNavigateSetPageOffset=P4.prototype.onYtNavigateSetPageOffset;P4.prototype.setPageOffset=P4.prototype.setPageOffset;
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],P4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],P4.prototype,"data",void 0);_.k([_.jk("yt-navigate-set-page-offset"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P4.prototype,"onYtNavigateSetPageOffset",null);
_.k([_.jk("yt-history-pop"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P4.prototype,"onYtHistoryPop",null);_.k([_.jk("yt-history-load"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Enw]),_.W("design:returntype")],P4.prototype,"onYtHistoryLoad",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],P4.prototype,"onYtNavigate",null);
_.k([_.jk("yt-update-title"),_.W("design:type",Function),_.W("design:paramtypes",[Event,String]),_.W("design:returntype")],P4.prototype,"onYtUpdateTitle",null);_.k([_.jk("yt-update-unseen-notification-count"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Number]),_.W("design:returntype")],P4.prototype,"onYtUpdateUnseenNotificationCount",null);P4=_.k([_.Gw()],P4);bKb.YtdAppBehavior=[_.N2.YtActionHandlerBehavior,P4.prototype];var ZZ=function(){var v=_.L2.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.S(ZZ,_.L2);ZZ.prototype.ready=function(){var v=this;_.K(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){v.onChange_()})};
ZZ.prototype.dataChanged_=function(){_.K(this.hostElement).querySelector("#checkbox").checked=!1};
ZZ.prototype.onChange_=function(){var v=_.K(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.jK(this.hostElement,"yt-dismissal-reason-"+v,this.data.feedbackToken)};
ZZ.prototype.dataChanged_=ZZ.prototype.dataChanged_;_.k([_.H(),_.W("design:type",Object)],ZZ.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZZ.prototype,"dataChanged_",null);ZZ=_.k([_.Gw()],ZZ);var qpO=[ZZ.prototype];var C6=function(){var v=_.L2.apply(this,arguments)||this;v.timeoutJobId=0;v.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return v};
_.S(C6,_.L2);C6.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
C6.prototype.startTimeout=function(){var v=this,E=this.data&&this.data.displayDurationSeconds;E&&!this.timeoutJobId&&(this.timeoutJobId=_.cP(_.wh,function(){_.OL(v.hostElement,"yt-close-popup-action",[v.is]);v.timeoutJobId=0},E*1E3))};
C6.prototype.cancelTimeout=function(){_.wh.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
C6.prototype.ytdHatsSurveyBehaviorDataChanged=C6.prototype.ytdHatsSurveyBehaviorDataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C6.prototype,"ytdHatsSurveyBehaviorDataChanged",null);C6=_.k([_.Gw()],C6);var Jd3=[_.N2.YtActionHandlerBehavior,C6.prototype];var KN0=function(v,E){return v.SHARED_RENDERERS_.hasOwnProperty(E)?"yt":v.prefix},MJ={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}};MJ.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Z("kevlar_mealbar_above_player"),modern:_.Z("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"}};
MJ.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};MJ.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};MJ.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
MJ.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)"}};
MJ.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};
MJ.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};
MJ.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};
MJ.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};MJ.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"}};
MJ.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};MJ.TOAST={component:null,properties:{}};var d36=new function(v,E,n){this.supportedPopups=v;this.navigationEndpointPopupMap=E;this.popupTypeMap=n;this.supportedPopups=v;this.navigationEndpointPopupMap=E;this.popupTypeMap=n}({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:_.Z("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"}),Ivd=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$17545_popupConfig=MJ;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 Ypx=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.wT.getInstance()},Se=function(v,E){var n=v.pageNameToElement.get(E);
if(!n){switch(E){case "watch":var f=_.Z("web_watch_force_learning_journey_for_testing")?_.VB("ytd-watch-learning-journey"):_.Z("kevlar_watch_fixie")?_.VB("ytd-watch-fixie"):_.Z("kevlar_watch_grid")?_.VB("ytd-watch-grid"):_.VB("ytd-watch-flexy");break;case "learning-journey-watch":f=_.VB("ytd-watch-learning-journey");break;case "shorts":f=_.VB("ytd-shorts");break;case "search":f=_.VB("ytd-search");break;case "channel":f=_.VB("ytd-browse");f.pageSubtype="channels";break;case "trending":f=_.VB("ytd-browse");
f.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":f=
_.VB("ytd-browse");f.pageSubtype=E;break;case "browse":f=_.VB("ytd-browse");break;default:_.li(new _.yc("Error getting page element for type",E))}n=f;v.pageNameToElement.set(E,n)}return n};
Ypx.prototype.preparePage=function(v,E,n){n&&(v=Rw(n)||v);if(v!=="watch"){var f=this.elementPoolPopulator,x=v;x!=f.targetPage_&&f.pendingPages_.indexOf(x)>-1&&(f.targetPage_&&(f.pendingPages_.unshift(f.targetPage_),f.abort()),DdU(f,x),_.B4o(f,x))}if((f=Se(this,v))||!_.C(n,_.Us)){f.isAttached||f===E||(f.hidden=!0);if(!(f.data||v==="watch"&&_.Z("swatcheroo_page_pool_dont_provide_filler_data"))){var y;if(v=(y=_.MX("FILLER_DATA",{})[v])==null?void 0:y.response)f.data=v}return f}};var hz6=function(v){this.JSC$28283_clientRoot=v;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ot0,"yt-end-playlist-command":fGU,"yt-recover-playlist-command":cCU,"yt-refresh-playlist-command":Qbx,"yt-playlist-remove-videos-action":yCd};_.Jo(_.qw.getInstance(),this.playlistHandlerActionMap,this.JSC$28283_clientRoot);LG1()},AdM;var Uj=function(v,E,n){this.apiKey=v;this.endpoint=E;this.confidenceThreshold=n===void 0?.5:n;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=E==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
E==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new JTC};
_.c=Uj.prototype;
_.c.start=function(v){if(this.state===0)if(this.isOnline()){v.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=v.supportsHttpHeadersOverwriteParam);v.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=v.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.e7("voice_assistant");_.m5("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=v.languageCode||"en-US";this.supportsCrossDomainXhr=v.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=v.youtubeAssistantRequest||null;this.listeningHandler=v.listeningHandler||this.listeningHandler;this.audioDetectedHandler=v.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=v.stopHandler||this.stopHandler;this.completeHandler=v.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=v.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=v.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
v.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=v.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=v.accessToken;this.additionalHeaders=v.additionalHeaders||{};var E;this.prefetchResponseTimeoutMs=(E=v.prefetchResponseTimeoutMs)!=null?E:this.prefetchResponseTimeoutMs;VGd(this);this.startAudio();D31(this)}else this.errorHandler("OFFLINE")};
_.c.stop=function(v){var E=v===void 0?{}:v;v=E.logCancel===void 0?!0:E.logCancel;var n=E.logMicClosed===void 0?!0:E.logMicClosed;var f=E.handleError===void 0?!0:E.handleError;E=E.handleStop===void 0?!0:E.handleStop;this.state!==0&&(v&&qJ("voz_cx"),Ji(this,{logMicClosed:n,handleStop:E}),f&&this.errorHandler("ABORTED"))};
_.c.getState=function(){return this.state};
_.c.isSupported=function(){return!0};
_.c.stopAudio=function(v){(v===void 0||v)&&qJ("voz_mf")};
_.c.startAudio=function(){qJ("voz_vp");return _.Gn(null)};
var HKR=function(v,E){v.channelOpen&&(v.state!==2&&(v.state=2,qJ("voz_ss"),v.listeningHandler()),E=new Uint8Array(E),E='{ "audioIn": "'+_.z3(E)+'" }',v.channel.send(E))},Ji=function(v,E){var n=E===void 0?{}:E;
E=n.logMicClosed===void 0?!0:n.logMicClosed;n=n.handleStop===void 0?!0:n.handleStop;v.vozEndOfDataTimeout>-1&&(clearTimeout(v.vozEndOfDataTimeout),v.vozEndOfDataTimeout=-1);gMC(v);v.stopAudio(E);v.channel&&(v.channelOpen=!1,v.manuallyClosedChannel=!0,v.channel.close(),v.channel=void 0);v.transcribedSpeechResults=[];v.state=0;n&&v.stopHandler()},VGd=function(v){var E={httpHeadersOverwriteParam:v.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},v.additionalHeaders,v.accessToken&&v.isUsingVoz?{Authorization:"Bearer "+v.accessToken}:{"x-goog-api-key":v.apiKey}),supportsCrossDomainXhr:v.supportsCrossDomainXhr};v.channel=new qZ(v.endpoint,E);v.channel.open();_.v8(v.channel,"w",function(){var n=v.channel,f=n.send,x=v.isUsingVoz?"PLACEHOLDER":"example";x={config:{dialogStateIn:{languageCode:v.languageCode},deviceConfig:{deviceId:x,deviceModelId:x},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!v.isUsingVoz)x.config.requestType=4;else if(v.isUsingVoz&&v.youtubeAssistantRequest){var y=JSON.stringify(v.youtubeAssistantRequest);x.config.internalIn={youtubeAssistantS3InputJson:y}}f.call(n,x);v.channelOpen=!0;v.manuallyClosedChannel=!1});
_.v8(v.channel,"x",function(){v.manuallyClosedChannel||(v.channelOpen=!1,v.channel=void 0,Ji(v))});
_.v8(v.channel,"z",function(n){if(n.data){gMC(v);for(var f=0;f<n.data.length;f++){var x=v,y=n.data[f],Q=y.speechResults;if(Q)a:{var e=[];y=[];var F=!1;Q=_.p(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;if(b.noSpeech){Ji(x);x.errorHandler("NO_SPEECH");break a}b.transcript!==void 0&&b.stability!==void 0&&(b.stability<x.confidenceThreshold&&(F=!0),F?y.push(b.transcript):e.push(b.transcript))}if(e.length!==0||y.length!==0)e=e.join(" "),y=y.join(" "),x.receivedEndOfUtterance&&!x.isUsingVoz?x.isUsingVoz||
x.completeHandler([e,y]):(F=x,Q=e,b=y,qJ("voz_sf"),F.transcriptionUpdateHandler(Q,b),F.transcribedSpeechResults=[Q,b]),x.receivedEndOfUtterance&&(qJ("voz_eou"),x.transcriptionCompleteHandler([e,y]),x.isUsingVoz&&(x.prefetchResponseTimeoutMs===0?Ji(x,{logMicClosed:!1,handleStop:!0}):x.prefetchResponseTimeoutMs>0&&NoO(x)))}else x.isUsingVoz&&(y==null?0:y.internalOut)?(y=JSON.parse(y.internalOut.youtubeAssistantS3OutputJson),y.userHasOptedInToVaa||y.vaaConsent?x.vaaConsentUpdateHandler(!!y.userHasOptedInToVaa,
!!y.vaaConsent):(uP_(x),y&&(e=x.transcribedSpeechResults,qJ("voz_rqf"),x.completeHandler(e,y)))):y.eventType==="END_OF_UTTERANCE"?x.receivedEndOfUtterance=!0:(qJ("voz_err"),x.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.li(Error("al")))}}});
_.v8(v.channel,"y",function(n){Ji(v);switch(n.status){case 1:n="WEBCHANNEL_NETWORK_ERROR";break;case 2:n="WEBCHANNEL_SERVER_ERROR";break;default:n="WEBCHANNEL_UNKNOWN_ERROR"}v.errorHandler(n);v.logError(Error(n))})};
Uj.prototype.logError=function(v){_.mb(v)};
Uj.prototype.isOnline=function(){return!0};
var NoO=function(v){uP_(v);v.prefetchResponseSetTimeoutId=setTimeout(function(){Ji(v,{logMicClosed:!1,handleStop:!0})},v.prefetchResponseTimeoutMs)},uP_=function(v){v.prefetchResponseSetTimeoutId>-1&&(clearTimeout(v.prefetchResponseSetTimeoutId),v.prefetchResponseSetTimeoutId=-1)},D31=function(v){gMC(v);
v.noResponseReceivedTimeout=window.setTimeout(function(){Ji(v);v.errorHandler("NO_SPEECH")},11E3)},gMC=function(v){v.noResponseReceivedTimeout>-1&&(window.clearTimeout(v.noResponseReceivedTimeout),v.noResponseReceivedTimeout=-1)},qJ=function(v){_.FD(v,void 0,"voice_assistant")};var K6=function(){Uj.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.S(K6,Uj);K6.prototype.isSupported=function(){return XyM()};
K6.prototype.startAudio=function(){var v=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.nR(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(f){jfx(v,f)};
this.processor.connect(this.audioContext.destination);var E=function(f){v.stream=f;if(!v.audioContext)return _.Gn(null);f=v.audioContext.createMediaStreamSource(f);v.processor&&f.connect(v.processor);return _.Gn(null)},n={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?E(this.stream):navigator.mediaDevices.getUserMedia(n).then(E).catch(function(f){Ji(v);f.name&&f.name==="NotAllowedError"?v.errorHandler("NO_MICROPHONE_PERMISSION"):(v.errorHandler("AUDIO_ERROR"),v.logError(f));return _.nR(null)});
return Uj.prototype.startAudio.call(this)};
K6.prototype.stopAudio=function(v){v=v===void 0?!0:v;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(E){E.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Uj.prototype.stopAudio.call(this,v)};
K6.prototype.isOnline=function(){return navigator.onLine};
var jfx=function(v,E){if(v.audioContext)if(window.OfflineAudioContext){var n=v.audioContext.sampleRate,f=E.inputBuffer.getChannelData(0);E=new window.OfflineAudioContext(1,f.length,16E3);for(var x=E.createBuffer(1,f.length,n),y=x.getChannelData(0),Q=0,e=0;e<f.length;e++)y[e]=f[e],Q+=y[e]*y[e];!v.audioDetected&&Math.sqrt(Q/f.length)>.01&&(v.audioDetected=!0,v.audioDetectedHandler());f=E.createBufferSource();f.buffer=x;f.connect(E.destination);f.start(0);E.oncomplete=function(F){F=F.renderedBuffer.getChannelData(0);
for(var b=Math.floor(16384E3/n),l=new Int16Array(b),r=0;r<b;++r)l[r]=Math.max(-1,Math.min(1,F[r]))*32767;HKR(v,l.buffer)};
E.startRendering()}else OK0(v,E)},OK0=function(v,E){var n=v.audioContext.sampleRate,f=E.inputBuffer.getChannelData(0),x=Math.floor((n+8E3)/16E3);
n=f.length/x;E=new Float32Array(n);for(var y=0;y<n;++y)E[y]=f[y*x];f=new Int16Array(n);for(x=0;x<n;++x)f[x]=Math.max(-1,Math.min(1,E[x]))*32767;HKR(v,f.buffer)};var kvK={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var WNM=function(){this.JSC$17610_audioEnabled=!0;this.audioFeedbackHolder={}};
WNM.prototype.isPlaying=function(v){return v.currentTime>0&&!v.paused&&!v.ended&&v.readyState>2};
var $3C=function(v){for(var E=_.p(Object.values(kvK)),n=E.next();!n.done;n=E.next())n=n.value,v.audioFeedbackHolder[n]=new Audio,v.audioFeedbackHolder[n].src="/s/search/audio/"+n+".mp3",v.audioFeedbackHolder[n].load()},dU=function(v,E){if(v.JSC$17610_audioEnabled!==!1&&E in v.audioFeedbackHolder){for(var n=_.p(Object.values(v.audioFeedbackHolder)),f=n.next();!f.done;f=n.next())f=f.value,v.isPlaying(f)&&f.pause();
v.audioFeedbackHolder[E].currentTime=0;v.audioFeedbackHolder[E].play().catch(function(){})}};var LNO=function(v,E){var n=this;this.store=v;this.service=E;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){n.setState("offline");n.stop()};
this.audioPlayer=new WNM;var f;(f=this.audioPlayer)==null||$3C(f)};
_.c=LNO.prototype;_.c.getService=function(){return this.service};
_.c.isEnabled=function(){return!!this.service};
_.c.isSupported=function(){var v;return(v=this.service)==null?void 0:v.isSupported()};
_.c.start=function(){var v=this,E,n,f,x,y,Q,e,F,b,l,r,a,M;return _.X(function(U){switch(U.nextAddress){case 1:v.store.dispatch(ihO("",""));if(!navigator.onLine)return v.setState("offline"),U.return();window.addEventListener("offline",v.handleOfflineEvent);v.stream=null;if(!v.permissionsSupported){U.jumpTo(2);break}_.vW(U,3);return _.m(U,GvM(v),5);case 5:E=U.yieldResult;if(!E)return(n=v.audioPlayer)==null||dU(n,"failure"),U.return();v.service.stream=v.stream;v.setState("listening");_.qp(U,2);break;
case 3:_.cW(U),v.permissionsSupported=!1;case 2:f={context:_.SfE(_.uq())},f.youtubeAssistantParams={searchParams:{inlineSearchResponse:v.enableInlineSearchResponse}},x=function(d,Y){v.store.dispatch(zSp("transcribing"));v.store.dispatch(ihO(d,Y))},y=function(){var d;
(d=v.audioPlayer)==null||dU(d,"open");v.setState("listening")},Q=function(){v.setState("transcribing")},e=function(d){v.setErrorState(d)},F=function(d,Y){var V;
(V=v.audioPlayer)==null||dU(V,"success");Y&&(_.Z("kevlar_voice_search_inline_search")&&(v.responseProcessor=_.P().resolve(_.Ek1),v.responseProcessor&&(V=Y.navigationAction,d=Y.prefetchedSearchResponse,V&&d&&(V=(new _.XIb).JSC$11797_getStoreKey(V),_.H_(v.responseProcessor,d,V)))),v.JSC$17628_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",Y))},b=function(){window.removeEventListener("offline",v.handleOfflineEvent)},l=_.AcI(!1),r=l.Authorization!=null,a=v.enableFirstPartyAuth||
v.enableFPAForSignedInUsers&&r?l:{"X-Goog-Visitor-Id":l["X-Goog-Visitor-Id"]},M={completeHandler:F,
errorHandler:e,listeningHandler:y,audioDetectedHandler:Q,stopHandler:b,transcriptionUpdateHandler:x,youtubeAssistantRequest:f,languageCode:ToR(),additionalHeaders:a,supportsCrossDomainXhr:v.enableFirstPartyAuth||v.enableFPAForSignedInUsers&&r,supportsHttpHeadersOverwriteParam:!v.disableHttpHeadersOverwrite},v.service.start(M),_.yQ(U)}})};
_.c.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.c.reset=function(){this.store.dispatch(_.un({type:"RESET_VOICE_SEARCH_STATE"}))};
_.c.setState=function(v){this.store.dispatch(zSp(v))};
_.c.setErrorState=function(v){switch(v){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var E;(E=this.audioPlayer)==null||dU(E,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)GvM(this);else{var n;(n=this.audioPlayer)==null||dU(n,"failure");this.setState("permission-denied")}break;case "ABORTED":var f;(f=this.audioPlayer)==null||dU(f,"no_input");break;default:var x;(x=this.audioPlayer)==
null||dU(x,"no_input");this.setState("timeout")}};
var GvM=function(v){var E,n;return _.X(function(f){switch(f.nextAddress){case 1:return _.m(f,navigator.permissions.query({name:"microphone"}),2);case 2:E=f.yieldResult;if(E.state==="granted")return f.return(!0);if(E.state==="denied")return v.setState("permission-denied"),f.return(!1);v.setState("permission");n={audio:{sampleSize:16,channelCount:1},video:!1};_.vW(f,3);return _.m(f,navigator.mediaDevices.getUserMedia(n),5);case 5:return v.stream=f.yieldResult,f.return(!0);case 3:return _.cW(f),v.setState("permission-denied"),
f.return(!1)}})},ToR=function(){var v=_.MX("INNERTUBE_CONTEXT_HL"),E=_.MX("INNERTUBE_CONTEXT_GL");
return v.indexOf("-")>-1?v:v+"-"+E};var iKM=function(v,E,n){LNO.call(this,E,n);this.JSC$17628_actionRouter=v;this.enableInlineSearchResponse=_.Z("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Z("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Z("kevlar_voice_search_enable_fpa_signedin_users")},zzR;
_.S(iKM,LNO);
var Rzx=function(){if(!zzR){var v="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Z("kevlar_voice_search_auth_enabled")||_.Z("kevlar_voice_search_use_yt_endpoint")?v="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Z("kevlar_voice_search_use_fp_endpoint")&&(v="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");zzR=
new iKM(_.qw.getInstance(),_.dG(),new K6(_.MX("VOZ_API_KEY"),v,.5))}return zzR};var tG0=function(v){this.JSC$17632_clientRoot=v;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$17632_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)]]));v=_.p(this.eventListeners);for(var E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;n=_.p(n);for(var f=n.next();!f.done;f=n.next()){var x=
_.p(f.value);f=x.next().value;x=x.next().value;E.addEventListener(f,x)}}_.Jo(_.qw.getInstance(),this.autonavPauseActionMap,this.JSC$17632_clientRoot)},Bo0,vQO=function(v){return _.Z("kevlar_autonav_popup_filtering")?(v=_.Sk(v))?v.hasAttribute("prevent-autonav"):!0:!0};
_.c=tG0.prototype;_.c.onIronOverlayOpened=function(v){vQO(v)&&(this.autonavPauseReasons.overlayOpen=!0,II(this))};
_.c.onIronOverlayClosed=function(v){vQO(v)&&(this.autonavPauseReasons.overlayOpen=!1,II(this))};
_.c.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;II(this)};
_.c.onYtAutonavPauseBlur=function(){var v=this;_.wh.addJob(function(){v.isInBackground()||(v.autonavPauseReasons.inputBoxFocus=!1,II(v))},8,0)};
_.c.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;II(this)};
_.c.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;II(this)};
_.c.onYtAutonavPauseScroll=function(){var v=_.P().resolve(_.Y_);v.isOnWatch()&&(v=v.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=v.getBoundingClientRect().top<-200,II(this))};
_.c.onYtAutonavPauseUserEngagement=function(v){var E=this;if(_.Z("user_engagement_enable_autoplay_pause_feature")){var n=Number(v.lowEngagementThresholdMs);isNaN(n)||n<=0||v.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.P().resolve(_.ph),_.gh()<n?_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.R56()?(this.userEngagementCsn=_.lc(),_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
E.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,II(this)):_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.jjE(Error("bl`"+JSON.stringify(v)))};
_.c.onYtAutonavPausePlayer=function(v){this.autonavPauseReasons.requestedByPlayer=!!v.detail;II(this)};
_.c.onYtAutonavVisibilityChanged=function(){var v=this,E,n,f;return _.X(function(x){if(x.nextAddress==1)return(E=_.Aq())?_.m(x,E.getPlayerPromise(),2):x.return();n=x.yieldResult;f=n.isMuted()||n.getVolume()===0;v.autonavPauseReasons.backgroundAndMute=v.isInBackground()&&f;II(v);_.yQ(x)})};
_.c.onYtAutonavPausePlayerEnded=function(){_.P().resolve(_.ph);var v=144E5;_.Z("user_engagement_enable_autoplay_pause_feature")||_.Z("is_part_of_any_user_engagement_experiment")||(v=45E5);this.autonavPauseReasons.longIdle=_.gh()>v;EQK(this);II(this)};
_.c.onYtUserActivity=function(){var v=this;this.autonavPauseReasons.userEngagement&&(_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",v.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,II(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",v.userEngagementCsn);_.Fu()}),this.autonavPauseReasons.youthereLactExperiment=!1,II(this));
this.autonavPauseReasons.longIdle&&!_.Z("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,II(this))};
_.c.isInBackground=function(){var v=window.document.visibilityState;return!(!v||v==="visible")};
var II=function(v){for(var E=!1,n=_.p(Object.values(v.autonavPauseReasons)),f=n.next();!f.done;f=n.next())f=f.value,E=E||f;E?_.jO.getInstance().pause(v.autonavPauseReasons):(v=_.jO.getInstance(),v.autonavState_==3?(v.setState(2,!1,!1),v.autonavPauseReason_=void 0):v.autonavState_==1&&(v.disabledAutonavPauseReason_=void 0))},EQK=function(v){var E=!1;
if(_.Z("enable_autoplay_pause_by_lact")){_.P().resolve(_.ph);E=_.WG("autoplay_pause_by_lact_sec")*1E3;var n=_.WG("autoplay_pause_by_lact_sampling_fraction");(E=_.gh()>=E&&Math.random()<n)&&!_.R56()&&(_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),E=!1)}E!==v.autonavPauseReasons.youthereLactExperiment&&(v.autonavPauseReasons.youthereLactExperiment=E)&&(v.userEngagementCsn=_.lc(),_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",v.userEngagementCsn)}));
v.autonavPauseReasons.userEngagement&&_.cP(_.wh,function(){_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",v.userEngagementCsn)})};
tG0.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.gf("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Fu(),this.autonavPauseReasons.youthereLactExperiment=!1,II(this));this.autonavPauseReasons.userEngagement&&(_.gf("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,II(this))};
tG0.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Y4=function(){var v=_.g.apply(this,arguments)||this;v.miniGuideVisible=!1;v.guideOpened=_.Z("disable_initial_guide_state_fix")?!1:v.canFitPersistentGuide(v.initialBodyClientWidth);v.guideUserStateOpened=v.getInitialGuideUserStateOpened();v.isFullscreenShorts=!1;v.miniGuideWidthThreshold=_.WG("kevlar_mini_guide_width_threshold",791);v.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");v.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
v.persistentGuideBlockedPagePathRegex=new RegExp(v.persistentGuideBlockedPagesPatterns.join("|"));v.animationTransitionDuration=0;v.lateDataResolver=_.Sw();v.initialGuideDataFetchFailed=!1;v.initialLoad=!0;v.guideRenderers=new Set;v.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return v};
_.S(Y4,_.g);_.c=Y4.prototype;_.c.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.c.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.c.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.c.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.c.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.c.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.c.ready=function(){_.P().addProvider({provide:_.SR,useValue:this.hostElement})};
_.c.attached=function(){var v=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.uo(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.uo(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.uo(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.uo(this,this.onYtGuideShow));_.IS(this,function(){v.animationTransitionDuration=200})};
_.c.detached=function(){document.removeEventListener("yt-navigate-finish",_.uo(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.uo(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.uo(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.uo(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.uo(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.uo(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.uo(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.c.getData=function(){return this.data};
_.c.load=function(){var v=this,E,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=v.lateDataResolver.resolve.bind(v),y.return(v.lateDataResolver.promise);if(window.ytInitialGuideData)return E=_.Sw(),E.resolve(window.ytInitialGuideData),y.return(E.promise);f=!1;_.vW(y,2);return _.m(y,v.fetchGuideData(),4);case 4:n=y.yieldResult;_.qp(y,3);break;case 2:x=_.cW(y),x.message==="Returned error"&&(f=!0);
case 3:if(n)return y.return(n);v.onYtGuideClose();f||(v.initialGuideDataFetchFailed=!0);return y.return(v.lateDataResolver.promise)}})};
_.c.fetchGuideData=function(){var v=this,E,n,f,x,y,Q,e,F,b;return _.X(function(l){if(l.nextAddress==1)return E=_.P(),v.guidePromise||(_.Z("web_guide_fetch_command_ks")?v.guidePromise=_.$Z(v.hostElement,[yZd]):(n=E.resolve(_.ok),v.guidePromise=_.Mq(n,yZd))),_.m(l,v.guidePromise,2);if(l.nextAddress!=3)return f=l.yieldResult,x=E.resolve(_.Yn),_.m(l,x(),3);y=l.yieldResult;if(_.Z("web_guide_fetch_command_ks"))return y&&((Q=f)==null?0:Q.data)&&((e=f.data.responseContext)==null?void 0:e.maxAgeSeconds)!==
0&&y.put("service:guide:fallback",new _.T9({innertubeResponse:f.data})),l.return(f.data);y&&((F=f)==null?void 0:(b=F.responseContext)==null?void 0:b.maxAgeSeconds)!==0&&y.put("service:guide:fallback",new _.T9({innertubeResponse:f}));return l.return(f)})};
_.c.initializeGuideDataIfEmpty=function(){var v=this,E,n;return _.X(function(f){if(f.nextAddress==1){if(!v.initialGuideDataFetchFailed||v.data)return f.return();_.vW(f,2);return _.m(f,v.fetchGuideData(),4)}if(f.nextAddress!=2)return(E=f.yieldResult)&&v.lateDataResolver.resolve(E),_.qp(f,0);n=_.cW(f);_.li(n);_.yQ(f)})};
_.c.initializeGuideData=function(){var v=this,E;return _.X(function(n){switch(n.nextAddress){case 1:return _.pe(hR6(),{mainAppWeb:_.Pp()}),_.vW(n,2),_.m(n,v.load(),4);case 4:v.data=n.yieldResult;_.qp(n,3);break;case 2:_.cW(n),_.Qw(hR6(),"FAILURE");case 3:E=v.data&&v.data.items&&v.data.items.length>0?"SUCCESS":"FAILURE",_.Qw(hR6(),E),_.yQ(n)}})};
_.c.setGuideData=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1)return E.disabled?x.return():E.data?(v.data=E.data,E.guideRenderers.add(v),x.return()):_.m(x,E.initializeGuideData(),2);E.graftGuideToPage();n=_.Sp("IS_HOMEPAGE_COLD")?"eop":void 0;_.Z("disable_element_pool_populator")?E.setGuideDataAfterInit(v):(f=new _.DQ(1,n),_.Hs(f,E.setGuideDataAfterInit.bind(E,v)));_.yQ(x)})};
_.c.setGuideDataAfterInit=function(v){v.data=this.data;v.markDirty();this.guideRenderers.add(v);_.bz(function(){_.FD("gle")});
_.IS(this,function(){_.FD("gpe")})};
_.c.graftGuideToPage=function(){if(this.data){var v=this.data&&this.data.trackingParams;v&&(v=_.tx(v),_.BD(_.Tl(),v))}};
_.c.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.uo(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.c.onDrawerOpenedChanged=function(v,E){!E.value&&this.guideOpened&&(this.guideOpened=!1)};
_.c.onYtGuideToggle=function(v){var E=this.guideOpened;this.guideOpened=!E;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var n=_.Ef();_.nH(0,109,!this.guideUserStateOpened);n.save()}this.updateGuideDrawerElementState();if(this.guideElement){var f;this.guideOpened&&((f=v.detail)==null?0:f.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.uo(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.uo(this,
this.onAppDrawerTransitioned))}E||this.initializeGuideDataIfEmpty()};
_.c.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.uo(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.IY(this.guideElement)};
_.c.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.uo(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Gy0(this.guideOpened))};
_.c.guidePersistentAndVisibleChanged=function(){_.kZ(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.c.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.un({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.c.miniGuideVisibleChanged=function(){_.kZ(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.c.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Gy0(this.guideOpened)),this.initialLoad=!1);_.kZ(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.c.activeEndpointChanged=function(){_.kZ(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.c.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.c.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()};
_.c.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var v=this.canFitPersistentGuide(this.cachedClientWidth);v?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=v}this.updateGuideDrawerElementState()};
_.c.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.c.getGuideOpened=function(){return this.guideOpened};
_.c.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.c.getActiveEndpoint=function(){return this.activeEndpoint};
_.c.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.c.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&&_.jK(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.c.computeGuidePersistentAndVisible=function(){var v=this;_.lz(this,"computeGuidePersistentAndVisible",function(){v.guidePersistentAndVisible=v.guideOpened&&v.guidePersistent;v.guideIsVisibleButNotPersistent=!(!v.guideOpened||v.guidePersistent)})};
_.c.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.c.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.c.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.c.startLoadingWatch=function(){this.closeGuide()};
_.c.startLoadingShorts=function(){_.Z("web_hide_guide_on_shorts")&&this.closeGuide()};
_.c.onYtNavigateFinish=function(v,E){if(!_.n9||E){this.activeEndpoint=E.endpoint;this.pageType=E.pageType;this.pageUrl=E.response.url;var n,f;v=(f=_.C((n=E.endpoint)==null?void 0:n.commandMetadata,_.Dl))==null?void 0:f.url;!this.pageUrl&&v&&(this.pageUrl=v);_.Z("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.c.getVisibleGuideRenderer=function(){for(var v=_.p(this.guideRenderers),E=v.next();!E.done;E=v.next())if(E=E.value,this.miniGuideVisible&&E.is==="ytd-mini-guide-renderer"||this.guideOpened&&E.is==="ytd-guide-renderer")return E;return null};
_.c.markGuideRendererDirty=function(v){if(v){typeof v.markDirty==="function"&&v.markDirty();v=_.p([].concat(_.s8(_.K(v).children)));for(var E=v.next();!E.done;E=v.next())this.markGuideRendererDirty(E.value)}};
_.c.persistentGuideEnabled=function(v,E){if(!E||v==="watch"||v==="settings"||v==="shorts"&&this.isFullscreenShorts||_.Z("reels_web_disable_persistent_guide_shorts")&&v==="shorts")return!1;var n=_.R5(E)||"";return _.Z("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(f){return n===f}):!this.persistentGuideBlockedPagePathRegex.test(n)};
_.c.canFitPersistentGuide=function(v){var E=_.WG("kevlar_persistent_guide_width_threshold",1312);return E===-1||_.Z("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:v>E};
_.c.canFitMiniGuide=function(v){return this.miniGuideWidthThreshold===-1?!1:v>this.miniGuideWidthThreshold};
_.c.onResize=function(){var v=this;_.lz(this,"calculateGuideState",function(){v.onResizeDebounced()})};
_.c.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.c.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.c.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.c.getInitialGuideUserStateOpened=function(){return!_.Ef().getFlag(109)};
_.hK.Object.defineProperties(Y4.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.MX("initialBodyClientWidth")||window.innerWidth}}});
Y4.prototype.onResize=Y4.prototype.onResize;Y4.prototype.observeForMiniGuideVisible=Y4.prototype.observeForMiniGuideVisible;Y4.prototype.computeGuidePersistentAndVisible=Y4.prototype.computeGuidePersistentAndVisible;Y4.prototype.cachedClientWidthChanged=Y4.prototype.cachedClientWidthChanged;Y4.prototype.resetGuide=Y4.prototype.resetGuide;Y4.prototype.activeEndpointChanged=Y4.prototype.activeEndpointChanged;Y4.prototype.guideOpenedChanged=Y4.prototype.guideOpenedChanged;
Y4.prototype.miniGuideVisibleChanged=Y4.prototype.miniGuideVisibleChanged;Y4.prototype.guideIsVisibleButNotPersistentChanged=Y4.prototype.guideIsVisibleButNotPersistentChanged;Y4.prototype.guidePersistentAndVisibleChanged=Y4.prototype.guidePersistentAndVisibleChanged;Y4.prototype.onGuideElementChanged=Y4.prototype.onGuideElementChanged;Y4.prototype.onGuidePersistentChanged=Y4.prototype.onGuidePersistentChanged;Y4.prototype.onRenderGuideChanged=Y4.prototype.onRenderGuideChanged;
Y4.prototype.onActiveEndpointChanged=Y4.prototype.onActiveEndpointChanged;Y4.prototype.onMiniGuideVisibleChanged=Y4.prototype.onMiniGuideVisibleChanged;Y4.prototype.onGuideIsVisibleButNotPersistentChanged=Y4.prototype.onGuideIsVisibleButNotPersistentChanged;Y4.prototype.onGuidePersistendAndVisibleChanged=Y4.prototype.onGuidePersistendAndVisibleChanged;_.k([_.h(_.ZT),_.W("design:type",Object)],Y4.prototype,"ironResizableBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Y4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Y4.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"disabled",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"guidePersistentAndVisible",void 0);_.k([_.On("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onGuidePersistendAndVisibleChanged",null);_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.k([_.On("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"miniGuideVisible",void 0);_.k([_.On("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onMiniGuideVisibleChanged",null);_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"forceMiniGuideClose",void 0);
_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"activeEndpoint",void 0);_.k([_.On("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onActiveEndpointChanged",null);_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"renderGuide",void 0);_.k([_.On("renderGuide"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onRenderGuideChanged",null);
_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"guideOpened",void 0);_.k([_.H(),_.W("design:type",Boolean)],Y4.prototype,"guidePersistent",void 0);_.k([_.On("guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onGuidePersistentChanged",null);_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"guideUserStateOpened",void 0);_.k([_.H(),_.W("design:type",String)],Y4.prototype,"pageUrl",void 0);
_.k([_.H(),_.W("design:type",String)],Y4.prototype,"pageType",void 0);_.k([_.H(),_.W("design:type",Number)],Y4.prototype,"cachedClientWidth",void 0);_.k([_.H(),_.W("design:type",Object)],Y4.prototype,"guideElement",void 0);_.k([_.H({selector:_.fU}),_.W("design:type",Object)],Y4.prototype,"isFullscreenShorts",void 0);_.k([_.On("guideElement"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onGuideElementChanged",null);
_.k([_.On("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"guidePersistentAndVisibleChanged",null);_.k([_.Tw("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.k([_.On("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"miniGuideVisibleChanged",null);_.k([_.Tw("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"guideOpenedChanged",null);_.k([_.On("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"activeEndpointChanged",null);
_.k([_.Tw("pageUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"resetGuide",null);_.k([_.Tw("cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"cachedClientWidthChanged",null);_.k([_.On("guideOpened","guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"computeGuidePersistentAndVisible",null);
_.k([_.Tw("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"observeForMiniGuideVisible",null);_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onResize",null);Y4=_.k([_.N({disableElementRegistration:!0,is:"yt-guide-manager"})],Y4);var nQx=_.u(Y4,"yt-guide-manager",void 0,{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var hi=function(){var v=_.g.apply(this,arguments)||this;v.JSC$17642_keyboardInUse=!1;v.boundHandleCapturedKeydownEvent=function(E){v.handleCapturedKeydownEvent(E)};
return v};
_.S(hi,_.g);_.c=hi.prototype;_.c.attached=function(){this.listenToDocument(document)};
_.c.listenToDocument=function(v){v.addEventListener("keydown",_.uo(this,this.onKeyDownEvent));v.addEventListener("keyup",_.uo(this,this.onKeyUpEvent));v.addEventListener("mousedown",_.uo(this,this.onMouseDownEvent));_.Z("desktop_keyboard_capture_keydown_killswitch")||v.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.addEventListener("yt-page-data-updated",_.uo(this,this.onPageUpdate))};
_.c.detached=function(){this.unlistenFromDocument(document)};
_.c.unlistenFromDocument=function(v){v.removeEventListener("keydown",_.uo(this,this.onKeyDownEvent));v.removeEventListener("keyup",_.uo(this,this.onKeyUpEvent));v.removeEventListener("mousedown",_.uo(this,this.onMouseDownEvent));_.Z("desktop_keyboard_capture_keydown_killswitch")||v.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.removeEventListener("yt-page-data-updated",_.uo(this,this.onPageUpdate))};
_.c.ready=function(){_.P().addProvider({provide:_.cT,useValue:this})};
_.c.isKeyBoardInUse=function(){return this.JSC$17642_keyboardInUse};
_.c.handleCapturedKeydownEvent=function(v){if(v.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(v)};
_.c.onMouseDownEvent=function(){this.JSC$17642_keyboardInUse=!1};
_.c.onPageUpdate=function(){if(_.Z("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Z("web_shorts_keyboard_shortcut_usage_log")){_.Wc.clear();for(var v=_.p(_.ON),E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;n=_.ci(n);_.Wc.set(E,n);_.aQ(_.lc(),_.bc(),n)}_.$d.clear();v=_.p(_.kd);for(E=v.next();!E.done;E=v.next())n=_.p(E.value),E=n.next().value,n=n.next().value,n=_.ci(n),_.$d.set(E,n),_.aQ(_.lc(),_.bc(),n);_.Nt(_.lc(),_.bc(),[].concat(_.s8(_.$d.values()),
_.s8(_.Wc.values())));_.CH(_.lc(),[].concat(_.s8(_.$d.values()),_.s8(_.Wc.values())))}};
_.c.onMiniplayerActiveChange=function(){var v;(v=_.P().resolve(_.hf).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(v.document):this.unlistenFromDocument(v.document))};
_.c.ignoreKeyEvent=function(v){if(v.ctrlKey||v.altKey)if(_.Z("kevlar_macro_markers_keyboard_shortcut")){if(v.keyCode!==37&&v.keyCode!==39)return!0}else return!0;var E=_.MQ(v)||[];return _.vH3(E)?!0:v.defaultPrevented?(f8(v.keyCode,v.shiftKey,this.isShortsPage),!0):v.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(v):!1};
_.c.isSpacebarClick=function(v){var E=v||window.event;var n;E.composedPath&&typeof E.composedPath==="function"?n=E.composedPath():n=E.path;n&&n.length?E=n[0]:(E=E||window.event,E=E.target||E.srcElement,E.nodeType==3&&(E=E.parentNode));return E&&v.keyCode===32&&(v=E.tagName==="BUTTON"||E.tagName==="A"||E.tagName==="INPUT",E=(E=E.getAttribute("role"))&&(E==="option"||E==="button"||E.indexOf("menuitem")===0),v||E)?!0:!1};
_.c.onKeyDownEvent=function(v){if(!this.ignoreKeyEvent(v)&&(v.keyCode===191&&(v.shiftKey||v.metaKey?v.repeat!=null&&v.repeat||(this.openHotkeyDialog(),f8(v.keyCode,v.shiftKey,this.isShortsPage)):(this.focusSearchBox(),v.preventDefault())),!v.metaKey)){var E=_.P().resolve(_.hf);switch(v.keyCode){case 9:this.JSC$17642_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(v);break;case 84:E.pipController.getWindow()&&window.focus();this.toggleTheaterMode(v.keyCode,v.shiftKey);break;case 73:E.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(v.keyCode,v.shiftKey);break;case 70:if(this.isShortsPage&&_.Z("web_fullscreen_shorts")){_.nHC();break}this.isMiniplayerActive()?E.pipController.getWindow()&&(E.close(!0),window.focus()):this.passEventToPlayer(v);break;case 27:this.closeMiniplayer(v.keyCode,v.shiftKey)||this.passEventToPlayer(v);break;case 13:v.shiftKey&&_.Z("web_ephemeral_actions")&&_.P().resolve(_.Bw).activate(v);break;default:this.passEventToPlayer(v)}}};
_.c.onKeyUpEvent=function(v){if(!this.ignoreKeyEvent(v))if(_.Z("web_speedmaster_spacebar_control")&&v.keyCode===32)this.handlePlayerSpaceKey(v,!0);else{var E=this.getPlayerManager();E&&(E=E.getPlayer())&&E.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code)}};
_.c.getPlayerManager=function(){var v=_.Aq(),E=_.P().resolve(_.jp(_.Y_));return v&&E&&E.isOnWatch()?v:null};
_.c.passEventToPlayer=function(v,E){var n=this,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return!_.Z("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&n.isMiniplayerActive()?f=_.P().resolve(_.hf).getPlayerElement():n.inlinePreviewIsActive?(x=_.kZ(n.hostElement,"yt-get-inline-preview-player-action"))&&x[0]&&(f=x[0]):f=_.Aq(),f?_.m(Q,f.getPlayerPromise(),3):Q.jumpTo(0);y=Q.yieldResult;E?y.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat):y.handleGlobalKeyDown(v.keyCode,
v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat);v.keyCode!==38&&v.keyCode!==40&&f8(v.keyCode,v.shiftKey,n.isShortsPage);_.yQ(Q)})};
_.c.focusSearchBox=function(){_.jK(this.hostElement,"yt-focus-searchbox")};
_.c.openHotkeyDialog=function(){_.jK(this.hostElement,"yt-open-hotkey-dialog")};
_.c.isMiniplayerActive=function(){return _.P().resolve(_.hf).isMiniplayerActive()};
_.c.closeMiniplayer=function(v,E){return this.isMiniplayerActive()?(_.P().resolve(_.hf).close(),f8(v,E,this.isShortsPage),!0):!1};
_.c.toggleTheaterMode=function(v,E){var n=_.bP(_.dG().getState()),f=this.getPlayerManager(),x=_.Z("disable_theater_mode_keyboard")||_.Sp("START_IN_FULL_WINDOW_MODE");f&&!x&&(n=!n,_.Hq()&&_.Z("external_fullscreen")&&(n=!0),_.OL(this.hostElement,"yt-toggle-theater-mode",[n]),f8(v,E,this.isShortsPage))};
_.c.toggleMiniplayer=function(v,E){var n=this.getPlayerManager();if(this.isMiniplayerActive()){var f;((f=_.P().resolve(_.jp(_.Y_)))==null?0:f.isOnWatch())?_.P().resolve(_.hf).close(!0):_.yg(_.P().resolve(_.hf));f8(v,E,this.isShortsPage)}else n&&(_.OL(this.hostElement,"yt-activate-miniplayer-from-watch-action"),f8(v,E,this.isShortsPage))};
_.c.handlePlayerSpaceKey=function(v,E){var n=!!_.Aq()||this.isMiniplayerActive();n=_.Z("disable_space_scroll_fix")||n;_.Z("global_spacebar_pause")&&!this.isKeyBoardInUse()&&n&&(v.preventDefault(),this.passEventToPlayer(v,E))};
hi.prototype.onMiniplayerActiveChange=hi.prototype.onMiniplayerActiveChange;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],hi.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],hi.prototype,"ytdReduxBehavior",void 0);_.k([_.H({selector:_.A$F}),_.W("design:type",Boolean)],hi.prototype,"inlinePreviewIsActive",void 0);_.k([_.H({selector:_.t5P}),_.W("design:type",Boolean)],hi.prototype,"isShortsPage",void 0);
_.k([_.H({selector:_.mW}),_.W("design:type",Boolean)],hi.prototype,"miniplayerIsActive",void 0);_.k([_.On("miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hi.prototype,"onMiniplayerActiveChange",null);hi=_.k([_.N({disableElementRegistration:!0,is:"yt-hotkey-manager"})],hi);_.u(hi,"yt-hotkey-manager",void 0,{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var Ai=function(){var v=_.g.apply(this,arguments)||this;v.loopStateEntityKey_=null;v.playlistLoopStateEntity_=null;v.isShuffleNextPlaylist=!1;v.PLAYER_EVENTS_=new Map;v.playerListenersSetup_=!1;v.videoSkipJob_=0;v.canAutoAdvance_=!1;v.playerManager_=null;v.TEST_ONLY={};return v};
_.S(Ai,_.g);_.c=Ai.prototype;_.c.ready=function(){_.P().addProvider({provide:_.SY,useValue:this.hostElement})};
_.c.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_)};
_.c.attached=function(){document.addEventListener("yt-navigate-start",_.uo(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.uo(this,this.onYtNavigateFinish_))};
_.c.detached=function(){document.removeEventListener("yt-navigate-start",_.uo(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.uo(this,this.onYtNavigateFinish_))};
_.c.updatePlaylistEventListeners=function(v,E){E&&!this.playerListenersSetup_?(this.playerManager_=v,this.registerPlaylistEventListeners_(v)):!E&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(v))};
_.c.setPlayer=function(v){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=v};
_.c.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.c.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.c.registerPlaylistEventListeners_=function(v){var E=this;v.getPlayerPromise().then(function(n){E.playerListenersSetup_||(E.ytPlayerListenerBehavior.listenToPlayerEvents(n,E.PLAYER_EVENTS_),E.playerListenersSetup_=!0)})};
_.c.removePlaylistEventListeners_=function(v){var E=this;v.getPlayerPromise().then(function(n){E.playerListenersSetup_&&(E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(n,E.PLAYER_EVENTS_),E.playerListenersSetup_=!1)})};
_.c.setPlaylistComponent=function(v){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.uo(this,this.onPlaylistYtNavigate_)),v&&(v.data&&this.playlistComponent.data&&v.data.playlistId==this.playlistComponent.data.playlistId?(v.loopOn=this.playlistComponent.loopOn,v.shuffleOn=this.playlistComponent.shuffleOn):(v.loopOn=!1,v.shuffleOn=!1),this.isShuffleNextPlaylist&&(v.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=v;this.playlistComponent.addEventListener("yt-navigate",
_.uo(this,this.onPlaylistYtNavigate_))};
_.c.setAutoplayRenderer=function(v){this.autoplayData=v};
_.c.setPlaylistData=function(v){this.currentPlaylistData_=v;_.jK(this.hostElement,"yt-playlist-data-updated");_.sh.isEmpty(v)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(v)};
_.c.setPlayerPlaybackControlData=function(v){this.playerManager_&&this.playerManager_.updatePlayerComponents(v.playlistPanelRenderer)};
_.c.getPlaylistData=function(){return this.currentPlaylistData_};
_.c.getTempData_=function(v,E){if(this.playlistComponent==null)return null;v={};this.playlistComponent.shuffleOn&&(v.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(v.loop_on=this.playlistComponent.loopOn);E&&(v.autonav="1",_.P().resolve(_.ph),E=_.gh(),E>0&&(v.lact=E),this.playerManager_&&(E=this.playerManager_.getPlayer())&&E.shouldSendVisibilityState()&&(E=E.getVisibilityState(),E!=0&&(v.vis=E)));_.Z("enable_unknown_lact_fix_on_html5")&&(_.P().resolve(_.ph),v.lact=_.gh());
return v};
_.c.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.c.setLoopStateEntityKey_=function(v){var E;this.loopStateEntityKey_=((E=this.getPlaylistLoopData_(v))==null?void 0:E.playlistLoopStateEntityKey)||null};
_.c.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.c.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.c.skipVideo=function(){var v=this,E=_.Z("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||E)E=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.xa(_.wh,function(){v.onPlaylistNext();v.videoSkipJob_=0},E)};
_.c.cancelVideoSkip=function(){this.videoSkipJob_&&(_.wh.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.c.isInBackground_=function(){var v=window.document.visibilityState;return!(!v||v=="visible")};
_.c.onPlaylistIndex_=function(v){this.playlistComponent&&(v=this.playlistComponent.data.contents[v].playlistPanelVideoRenderer.navigationEndpoint,_.jK(this.hostElement,"yt-navigate",{endpoint:v,tempData:this.getTempData_(v)}))};
_.c.onPlayerStateChange_=function(v){if(v=v==0&&this.playlistComponent&&this.canAutoAdvance_)v=_.jO.getInstance(),v=!(v.autonavState_===3?v.autonavPauseReason_&&v.autonavPauseReason_.inputBoxFocus===!0:v.autonavState_===1&&v.disabledAutonavPauseReason_&&v.disabledAutonavPauseReason_.inputBoxFocus===!0);v&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.c.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.c.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.c.navigateToAutoplayWatchEndpoint_=function(v,E,n){var f=this.playlistComponent.data.currentIndex,x=this.getNumPlayableVideos_();v=="NORMAL"&&E=="autoplayVideo"&&f+1>=x&&n||!(v=this.getVideoEndpoint_(v,E))||(n=this.getTempData_(v,n),_.jK(this.hostElement,"yt-navigate",{endpoint:v,tempData:n}))};
_.c.getNumPlayableVideos_=function(){for(var v=0,E=_.p(this.playlistComponent.data.contents||[]),n=E.next();!n.done;n=E.next())n.value.playlistPanelVideoRenderer&&(v+=1);return v};
_.c.getVideoEndpoint_=function(v,E){if(this.autoplayData&&this.autoplayData.sets)for(var n=0,f=this.autoplayData.sets.length;n<f;n++){var x=this.autoplayData.sets[n];if(x.mode==v){if(x[E])return x[E];break}}else v=new _.yc("AutoplayData is undefined in playlist manager","Mode: "+v+" endpoint: "+E),_.li(v)};
_.c.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.c.onPlaylistYtNavigate_=function(v){if(v.detail.endpoint){v.stopPropagation();var E=v.detail;E.tempData=this.getTempData_(v.detail.endpoint);_.jK(this.hostElement,"yt-navigate",E)}};
_.c.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.c.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.c.playlistLoopStateEntityChanged_=function(v){var E=this,n,f,x;return _.X(function(y){if(y.nextAddress==1){if(!v)return y.return();n=v.state==="PLAYLIST_LOOP_STATE_ONE";return E.playerManager_?_.m(y,E.playerManager_.getPlayerPromise(),3):y.jumpTo(2)}y.nextAddress!=2&&(f=y.yieldResult,f.setLoopVideo(n));x=v.state==="PLAYLIST_LOOP_STATE_ALL";E.playlistComponent&&(E.playlistComponent.loopOn=x);_.yQ(y)})};
_.c.getPlaylistLoopData_=function(v){var E,n;if(v=v==null?void 0:(E=v.playlistButtons)==null?void 0:(n=E.menuRenderer)==null?void 0:n.topLevelButtons)for(E=_.p(v),n=E.next();!n.done;n=E.next())if(n=n.value,n.playlistLoopButtonRenderer)return n.playlistLoopButtonRenderer};
_.c.getLoopStateCommand_=function(v){var E=this.getPlaylistData(),n;E=((n=this.getPlaylistLoopData_(E))==null?void 0:n.states)||[];var f;v=(f=_.C(E[v?1:2],_.IrS))==null?void 0:f.button;var x;return(x=_.C(v,_.qb))==null?void 0:x.command};
_.c.onPlayerLoopChange_=function(v){this.playlistLoopStateEntity_&&(v?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(v=this.getLoopStateCommand_(v))&&this.ytComponentBehavior.resolveCommand(v)};
_.c.onSleepTimerSettingsChanged_=function(v){this.canAutoAdvance_=v!=="End of video"};
Ai.prototype.onPlaylistLoopStateEntityChanged=Ai.prototype.onPlaylistLoopStateEntityChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Ai.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],Ai.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Ai.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ai.prototype,"loopStateEntityKey_",void 0);
_.k([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.tj9}),_.W("design:type",Object)],Ai.prototype,"playlistLoopStateEntity_",void 0);_.k([_.On("playlistLoopStateEntity_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ai.prototype,"onPlaylistLoopStateEntityChanged",null);Ai=_.k([_.N({disableElementRegistration:!0,is:"yt-playlist-manager"})],Ai);_.u(Ai,"yt-playlist-manager",void 0,{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var oQp,f7C=function(){if(oQp!==void 0)return oQp;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return oQp=v};var Vx=function(){var v=_.g.apply(this,arguments)||this;v.lastCallback=null;v.getAccountLinkPromises={};v.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);v.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return v};
_.S(Vx,_.g);_.c=Vx.prototype;_.c.getLocation=function(){return window.location.href};
_.c.getCompletionUrl=function(){return _.hQ(this.getLocation())};
_.c.containsRedirectState=function(v){return(v=_.ZR(_.Y09(v)))?(new URLSearchParams(v)).get("redirect_state")!==null:!1};
_.c.createGalConfig=function(v,E){var n=new wjK;v=n=E?this.getPopupOrRedirectSetting(n,_.MX("LINK_API_KEY"),_.MX("LINK_API_KEY_REDIRECT"),v):bUM(n,_.MX("LINK_API_KEY"));v.authUser=_.MX("SESSION_INDEX")||0;v.supportedFlows=new Set([4]);return v.build()};
_.c.getPopupOrRedirectSetting=function(v,E,n,f){this.isGalInteractionPopupMode(f)?(v.interactionMode=0,v=bUM(v,E)):(v.interactionMode=1,E=this.getCompletionUrl(),v.completionUrl=E,v=bUM(v,n));return v};
_.c.isGalInteractionPopupMode=function(v){if(this.redirectModeProviderAllowlist.has(v))switch(v){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.Z("main_web_redirect_integration_riot");default:return!1}return!0};
_.c.getStatusEntityKeyForProviderId=function(v){return _.$s(v+":all","accountLinkStatusEntity")};
_.c.findNestedPropValue=function(v,E){var n=!1,f=null;JSON.stringify(v,function(x,y){n||x!==E||(n=!0,f=y);return n?null:y});
return f};
_.c.findAccountLinkButtonViewModel=function(v,E){var n=null,f=!1;JSON.stringify(v,function(x,y){f||y.accountLinkStatusEntityKey!==E||y.accountLinkStatusSecondaryEntityKey||(f=!0,n=y);return f?null:y});
return n};
_.c.executeLinkingSuccessOrFailureCommands=function(v,E,n){var f=null,x;(E==null?0:(x=E.url)==null?0:x.includes("account_sharing"))?f=E==null?void 0:E.response:f=E==null?void 0:E.response;(E=this.findAccountLinkButtonViewModel(f,v))?(v=n?this.findNestedPropValue(E,"onSuccessCommand"):this.findNestedPropValue(E,"onFailureCommand"))?_.ic([v],this.hostElement):_.Kk(Error("cl")):_.Kk(Error("dl`"+v))};
_.c.handleInitializeRequest=function(v,E){var n=this,f=t$3(this.createGalConfig(v,!0));this.containsRedirectState(this.getLocation())?N6x(v,f.config,f.galService).then(function(x){var y=n.getStatusEntityKeyForProviderId(v);if(x.statusCode===1)E&&n.executeLinkingSuccessOrFailureCommands(y,E,!0),x=n.getLocation().indexOf("#"),x!==-1&&window.history.pushState(null,"",n.getLocation().substring(0,x));else return E&&n.executeLinkingSuccessOrFailureCommands(y,E,!1),Promise.reject(Error(x.statusMessage))}).catch(function(x){_.li(x);
_.eQ("gamingAccountLinkStatusChanged",{serviceId:v,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(x)}):this.getAccountLinkPromises[v]=f.startLinkingSession({serviceId:v})};
_.c.handleAccountLinkCommand=function(v){_.C(v,fOp)&&this.handleLinkRequest(_.C(v,fOp))};
_.c.handleLinkRequest=function(v){var E=this,n=v.thirdPartyId;if(n)if(this.isGalInteractionPopupMode(n)){var f=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onFailureCommand)},x=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onSuccessCommand)};
this.lastCallback=x;this.getAccountLinkPromises[n].then(function(y){TNO(y).then(function(Q){Q.statusCode===1?x():f()})}).catch(function(){f()})}else this.getAccountLinkPromises[n].then(function(y){TNO(y).then(function(Q){if(Q.statusCode!==1)return Promise.reject(Error(Q.statusMessage))})}).catch(function(y){_.li(y);
_.eQ("gamingAccountLinkStatusChanged",{serviceId:n,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(y)})};
_.c.closeAndFire=function(v,E){_.OL(this.hostElement,"yt-close-popup-action",[v]);E&&_.ic([E],this.hostElement)};
_.c.handleAccountUnlinkCommand=function(v){_.C(v,xb6)&&this.handleUnlinkRequest(_.C(v,xb6))};
_.c.handleUnlinkRequest=function(v){var E=this,n=v.thirdPartyId;if(n){var f=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onFailureCommand)},x=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onSuccessCommand)};
this.lastCallback=x;var y=t$3(this.createGalConfig(n,!1));this.unlinkUserGal(y,n).then(function(Q){Q.statusCode===1?x():f()}).catch(function(){f()})}};
_.c.unlinkUserGal=function(v,E){return v.deleteLink(E)};
_.c.handleLogAccountLinkingEventCommand=function(v){_.Z("enable_gel_log_commands")&&_.C(v,c$0)&&(v=_.C(v,c$0).event)&&_.eQ("gamingAccountLinkStatusChanged",v)};
_.hK.Object.defineProperties(Vx,{template:{configurable:!0,enumerable:!0,get:function(){return f7C()}}});
_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],Vx.prototype,"ytOpenPopupBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Vx.prototype,"ytActionHandlerBehavior",void 0);Vx=_.k([_.N({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Vx);_.u(Vx,"ytd-third-party-manager",function(){return f7C()},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var xj6,czC=function(){return xj6!==void 0?xj6:xj6=document.createElement("template")};
document.head.appendChild(czC().content);var yz3,pL6=function(){if(yz3!==void 0)return yz3;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(czC().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yz3=v};var Q2R=_.jU(["\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      "]),DZ=function(){var v=_.g.apply(this,arguments)||this;v.currentPage=void 0;v.renderLoadingStateJobId=0;v.updatePageDataJobId=0;v.pageDisposeJobsets=new WeakMap;v.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};v.applyZoomTransition=_.$6("web_page_transition_type")==="zoom";v.applySlideTransition=_.$6("web_page_transition_type")==="slide";v.TEST_ONLY=void 0;return v};
_.S(DZ,_.g);_.c=DZ.prototype;_.c.ready=function(){var v=_.P();v.addProvider({provide:_.Y_,useValue:this});v.addProvider({provide:_.u9o,useValue:this})};
_.c.created=function(){this.pagePool=new Ypx;this.contextSwitcher=new $2R};
_.c.attached=function(){_.jK(this.hostElement,"attached");var v=_.P().resolve(_.jp(_.n2));v&&(this.contextSwitcher.JSC$17466_networkService_=v);this.viewTransitionManager=_.P().resolve(_.jp(_.dnU));this.setupPageTransitionAnimation()};
_.c.getPageOffset=function(v){return v.getScrollTop()};
_.c.setPageOffset=function(v,E){try{v.setScrollTop(E)}catch(n){}};
_.c.setPageOffsetForNavigation=function(v,E){_.jK(this.hostElement,"yt-navigate-set-page-offset",{page:v,offset:E===void 0?0:E})};
_.c.pauseActiveContext=function(){var v=this.contextSwitcher;v.activeContext_&&v.activeContext_.pause()};
_.c.getModuleNameForType=function(v){return v==="watch"?_.Z("kevlar_watch_fixie")?"watchFixie":_.Z("kevlar_watch_grid")?"watchGrid":"watchFlexy":v==="shorts"||v==="search"?v:"browse"};
_.c.attachPage=function(v){var E,n=!_.Z("pc_is_attached_ks")&&(v==null?void 0:(E=v.polymerController)==null?void 0:E.isAttached);if(!v.isAttached&&!n)try{_.K(this.hostElement).appendChild(v)}catch(x){var f;_.li(new _.yc("Error attaching page element for component",{origin:(f=this.currentPage)==null?void 0:f.is,component:v.is}))}};
_.c.setActivePage=function(v){var E=this,n=!1,f=function(){var x=E.isOnWatch(),y=E.currentPage;if(v)if(v!==E.currentPage){y&&(y.hidden=!0,y.active=!1,y.removeAttribute("role"));E.currentPage=v;var Q,e=Rw((Q=E.data)==null?void 0:Q.endpoint);y&&_.jK(E.hostElement,"yt-page-type-changed",{oldPageType:y.is,newPageType:v.is,newPageSubtype:e});_.Zj().dispatch(_.un({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:v.is}));_.Zj().dispatch(_.un({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:e||""}));v.hidden=
!1;E.attachPage(v);v.active=!0;v.setAttribute("role","main");y&&E.setPageOffsetForNavigation(v,0);_.Z("kevlar_remove_page_dom_on_switch")&&!x&&y&&_.K(E.hostElement).removeChild(y)}else n=!0;else x=new _.yc("Unable to set active page",y?y.is:"unknown origin",(e=E.data)==null?void 0:e.endpoint),_.mb(x)};
this.viewTransitionManager?bh1(this.viewTransitionManager,f,this.viewTransitionConfigForSetActivePage(this.currentPage,v)):f();return n};
_.c.viewTransitionConfigForSetActivePage=function(v,E){return _.Z("web_thumbnail_to_watch_transition")&&(v==null?void 0:v.is)==="ytd-browse"&&this.isWatchPage(E)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(v==null?void 0:v.is)==="ytd-browse"&&(E==null?void 0:E.is)==="ytd-browse"&&v!==E?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.c.updatePageData=function(v){var E=this,n=this.data;this.updatePageDataJobId&&_.wh.cancelJob(this.updatePageDataJobId);this.data=v;return new _.z2(function(f){var x=function(){v.filler?E.performDataUpdate(v,n):AZb(function(){E.performDataUpdate(v,n)});
var F=_.qs();_.Jh(F,"cr")||F.processSignal("cr");f()},y=function(){v&&v.page==="watch"?E.updatePageDataJobId=_.xa(_.wh,x):x()};
if(_.Z("kevlar_enable_mss_page_modules_client")&&v){var Q=_.P().resolve(_.Vw),e=E.getModuleNameForType(v.page);(Q=mqp(Q,[e]))?Q.then(y):y()}else y()})};
_.c.isDownloadsPage=function(v){var E,n;return(v==null?void 0:(E=v.endpoint)==null?void 0:(n=E.browseEndpoint)==null?void 0:n.browseId)==="FEdownloads"};
_.c.setPlayerSyncInterval=function(v){var E;return _.X(function(n){if(n.nextAddress==1)return _.m(n,_.P().resolve(_.Nq),2);E=n.yieldResult;E.setUpPositionSyncInterval(v);_.yQ(n)})};
_.c.performDataUpdate=function(v,E){_.Z("kevlar_early_popup_close")||_.OL(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var n=!v.filler;n&&(_.FD("lps"),_.Z("config_age_report_killswitch")||Fb3());var f=LP(v),x,y=!1;if(_.Z("kevlar_remove_page_dom_on_switch")){var Q=E&&LP(E);f===Q&&(x=this.getCurrentPage())}x||(x=Se(this.pagePool,f));n&&HR_(this.pagePool.elementPoolPopulator,f);n&&!this.renderLoadingStateJobId&&(y=this.setActivePage(x));if(x){Q=f==="watch";var e=
f==="shorts";_.Z("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(x);if(Q||e)x.playerData=v.playerResponse;if(e){v.reelWatchSequenceResponse?x.reelWatchSequenceResponse=v.reelWatchSequenceResponse:v.cachedReelWatchSequenceResponse&&(x.reelWatchSequenceResponse=v.cachedReelWatchSequenceResponse);x.currentEndpoint=v.endpoint;var F;x.isPreviousPageShorts=!!(E==null?0:(F=E.endpoint)==null?0:F.reelWatchEndpoint);v.cachedReelWatchSequenceResponse=v.reelWatchSequenceResponse||
v.cachedReelWatchSequenceResponse||(E==null?void 0:E.cachedReelWatchSequenceResponse);_.Z("web_enable_cached_reel_sequence_fix")?v.cachedReelWatchSequenceResponse&&(x.cachedReelWatchSequenceResponse=v.cachedReelWatchSequenceResponse):x.cachedReelWatchSequenceResponse=v.cachedReelWatchSequenceResponse}F=this.isDownloadsPage(v);var b=this.isDownloadsPage(E);F&&!b?this.setPlayerSyncInterval(6E5):!F&&b&&this.setPlayerSyncInterval();_.Z("block_all_player_prefetch_requests")||this.preparePrefetchRequest(v,
x,n,Q,e);lg3(_.P().resolve(_.hf),E,v);_.gT(_.P().resolve(_.ph));_.Z("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(x);n?(n=typeof x.loadPage,n==="function"?(x.pageContext=LLp(this.contextSwitcher,x,x.data!==v.response),n=function(){x.loadPage(v.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&x.is==="ytd-browse"&&y&&this.isDifferentBrowseId(v==null?void 0:v.endpoint,E==null?void 0:E.endpoint)?this.applySlideTransition?
bh1(this.viewTransitionManager,n,{transitionName:"slide"}):bh1(this.viewTransitionManager,n,{transitionName:"zoom"}):n()):_.bi(new _.yc("b/38014653 ",[f,
x.is,x.nodeName,n,x.isAttached,E&&LP(E),this.hostElement.children.length])),_.FD("pdl")):(x.hidden=!0,v.response.filler=!0,x.data=v.response,this.attachPage(x));_.jK(this.hostElement,"yt-page-data-updated",{pageType:f})}_.cP(_.wh,function(){_.Z("logging_avoid_blocking_during_navigation")&&_.FGE().transition("none");var l=yd3(),r=x;if(v){var a=kxd(v),M=W51(v),U;a:{if(v.playerResponse){var d=v.playerResponse,Y;if((U=d.auxiliaryUi)==null?0:(Y=U.messageRenderers)==null?0:Y.upsellDialogRenderer){U=d.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(v.response&&(U=v.response,(d=U.overlay)==null?0:d.upsellDialogRenderer)){U=U.overlay.upsellDialogRenderer;break a}U=void 0}var V;var O;Y=(V=v.playerResponse)==null?void 0:(O=V.auxiliaryUi)==null?void 0:O.messageRenderers;V=(Y==null?void 0:Y.enforcementMessageViewModel)||(Y==null?void 0:Y.bkaEnforcementMessageViewModel);V=(V==null?void 0:V.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?V:void 0;var T;a:{if(v.response&&(O=v.response,(T=O.overlay)==null?0:T.commandWrapperPromoRenderer)){T=
O.overlay.commandWrapperPromoRenderer;break a}T=void 0}cdC(l,a,M,U,V,T,r)}})};
_.c.preparePrefetchRequest=function(v,E,n,f,x){var y,Q,e,F,b,l,r,a,M,U,d,Y,V,O,T;return _.X(function(L){if(L.nextAddress==1)return!n||!f&&!x||_.Z("kevlar_disable_background_prefetch")&&_.qX(_.pN1)()===0?L.return():(y=_.hq(E))?_.m(L,y.getPlayerPromise(),2):L.return();Q=L.yieldResult;e=_.P().resolve(_.jp(_.n2));if(!e)return L.return();if(x)return F=_.v_(_.iH),WGR(F,(b=v.endpoint)==null?void 0:b.reelWatchEndpoint,E.reelWatchSequenceResponse,Q,e),L.return();a=(l=v.response)==null?void 0:(r=l.responseContext)==
null?void 0:r.webResponseContextExtensionData;if(!a)return L.return();V=(M=v.response)==null?void 0:(U=M.contents)==null?void 0:(d=U.twoColumnWatchNextResults)==null?void 0:(Y=d.autoplay)==null?void 0:Y.autoplay;O=_.P().resolve(_.SY);T=_.v_(_.iH);$dp(T,a,Q,e,O,V);_.yQ(L)})};
_.c.movePlayerToWatch=function(v){var E=this,n,f;return _.X(function(x){n=Se(E.pagePool,"watch");f=n.getPlayerContainer();v.appendTo(f);_.yQ(x)})};
_.c.movePlayerToShorts=function(v){var E=this,n,f,x;return _.X(function(y){n=Se(E.pagePool,"shorts");f=n.getPlayerContainer();(x=v)==null||x.appendTo(f,void 0,!0);_.yQ(y)})};
_.c.getPlayerFromWatch=function(){var v=Se(this.pagePool,"watch");return _.hq(v)};
_.c.getPlayerFromShorts=function(){var v=Se(this.pagePool,"shorts");return _.hq(v)};
_.c.startLoadingWatch=function(){var v=Se(this.pagePool,"watch");this.renderLoadingStateJobId?(_.wh.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(v)};
_.c.startLoadingShorts=function(){var v=Se(this.pagePool,"shorts");this.setActivePage(v)};
_.c.getCurrentPage=function(){return this.currentPage};
_.c.getDestinationPageType=function(){return this.destinationPageType};
_.c.getCurrentData=function(){return this.data};
_.c.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.c.isOnShorts=function(){var v;return((v=this.currentPage)==null?void 0:v.is)==="ytd-shorts"};
_.c.isWatchPage=function(v){return!!v&&(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-fixie"||v.is==="ytd-watch-grid")};
_.c.preparePage=function(v,E){var n=this,f=function(){var Q=n.pagePool.preparePage(v,n.currentPage,E);Q&&n.attachPage(Q)},x=function(Q){_.ss(Q,E);
_.li(Q)};
if(_.Z("kevlar_enable_mss_page_modules_client")){var y=this.getModuleNameForType(v);if(y=mqp(_.P().resolve(_.Vw),[y])){y.then(f.bind(this)).catch(x.bind(this));return}}try{f()}catch(Q){x(Q)}};
_.c.lazyPrepareCriticalPages=function(v,E){v=Rw(E)||v;_.Z("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(v).then(this.maybePrepareWatchPage.bind(this,v)):this.maybePrepareWatchPage(v)};
_.c.maybePrepareWatchPage=function(v){v!=="watch"&&_.cP(_.wh,this.preparePage.bind(this,"watch"))};
_.c.downloadPageModules=function(v){v=this.getModuleNameForType(v);var E=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);E.delete(v);var n=_.P().resolve(_.Vw);n.JSC$16205_loadModules(v);return n.JSC$16205_loadModules.apply(n,_.s8(E))};
_.c.renderPageLoadingState=function(v,E){this.preparePage(v,E);var n=Se(this.pagePool,v);n.loadingData&&(n.loadingData.endpoint=E);n.loading=!0;this.setActivePage(n);v==="watch"&&_.jK(this.hostElement,"yt-guide-close")};
_.c.prepareForNavigation=function(v,E){var n=this;if(this.currentPage&&this.data){var f=Rw(E)||v;this.destinationPageType=f;LP(this.data)==f&&_.jK(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(v==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.wh.cancelJob(this.renderLoadingStateJobId);_.P().resolve(_.hf).deactivate(E);var x=this.data;this.renderLoadingStateJobId=_.Fw(_.wh,function(){if(n.data!=x){var y=Se(n.pagePool,v);n.setActivePage(y)}else n.renderPageLoadingState(v,
E);n.renderLoadingStateJobId=0},150)}};
_.c.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var v=new _.DQ(1);this.currentPage.pageDisposeJobs.forEach(function(E){_.Hs(v,E)});
this.pageDisposeJobsets.set(this.currentPage,v)}};
_.c.flushPageDisposeJobset=function(v){var E=this.pageDisposeJobsets.get(v);E&&(E.flushJobs(),this.pageDisposeJobsets.delete(v))};
_.c.onYtStopOldPlayer=function(v,E){E=E===void 0?!1:E;var n,f=_.Lk("kevlar_new_stop_old_player_logic_pages");if(_.Z("kevlar_check_current_page_on_stop_old_player")&&(f.length===0||this.currentPage&&f.includes(this.currentPage.is)))if(this.data&&(n=LP(this.data)),LP(v)===n&&this.currentPage&&LP(this.currentPage.data)!==n)var x=_.hq(this.currentPage);else n=LP(this.data),x=Se(this.pagePool,n),x=_.hq(x);else this.data&&(n=LP(this.data),x=Se(this.pagePool,n),x=_.hq(x));if(x)if(v=LP(v),f=Se(this.pagePool,
v),f=_.hq(f),x==f)E&&!_.Z("kevlar_disable_preemptive_player_reset")&&x.resetForNewPlayback();else if(E=n==="watch"&&v!=="watch",!E||v==="shorts"||_.pYU()&&!p7p(this.data)&&v!=="yts-products"&&v!="mini_app"&&v!="playables")n=_.P().resolve(_.hf),E&&n.isMiniplayerActive()&&n.pipController.getWindow()||x.stop()};
_.c.setupPageTransitionAnimation=function(){var v=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){fb(this.viewTransitionManager,"slide",{beforeTransition:function(){v.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){v.hostElement.style.viewTransitionName=""}});
fb(this.viewTransitionManager,"zoom",{beforeTransition:function(){v.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){v.hostElement.style.viewTransitionName=""}});
var E=_.WG("web_page_transition_exit_ms"),n=_.WG("web_page_transition_wait_ms"),f=_.WG("web_page_transition_enter_ms");if(!isNaN(E)||!isNaN(n)||!isNaN(f))if(E=bZx(Q2R,E,n,f))n=document.createElement("style"),n.textContent=_.Smy(E),document.head.appendChild(n)}};
_.c.isDifferentBrowseId=function(v,E){v=_.C(v,_.ix);E=_.C(E,_.ix);return(v==null?void 0:v.browseId)!==(E==null?void 0:E.browseId)};
_.hK.Object.defineProperties(DZ,{template:{configurable:!0,enumerable:!0,get:function(){return pL6()}}});
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],DZ.prototype,"ytActionHandlerBehavior",void 0);DZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-page-manager"})],DZ);_.u(DZ,"ytd-page-manager",function(){return pL6()},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var H4=function(v,E,n){n=n===void 0?!1:n;_.QK.call(this);this.draggableElement=v;this.callbacks=E;this.allowClicks=n;this.dragOccurred=!1;this.internalDragger=new _.KL(this.draggableElement);this.dragDelay=new _.Dm(this.delayedDrag.bind(this));XLU(this);this.allowClicks&&(_.IuF(this.internalDragger,5),v.addEventListener("click",_.uo(this,this.validateClick),{capture:!0}))};
_.S(H4,_.QK);var XLU=function(v){_.v8(v.internalDragger,"earlycancel",function(){v.allowClicks&&(v.dragOccurred=!1)});
_.v8(v.internalDragger,"start",function(E){var n,f;(f=(n=v.callbacks).onStartDrag)==null||f.call(n,E);!E.defaultPrevented&&v.allowClicks&&(v.dragOccurred=!0)});
_.v8(v.internalDragger,"beforedrag",function(E){E.preventDefault();v.lastOffset=new _.PV(E.clientX-v.internalDragger.startX,E.clientY-v.internalDragger.startY);v.dragDelay.start()});
_.v8(v.internalDragger,"end",function(){v.dragDelay.stop();var E,n;(n=(E=v.callbacks).onEndDrag)==null||n.call(E);v.lastOffset=void 0})};
H4.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
H4.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.uo(this,this.validateClick),{capture:!0})};
H4.prototype.validateClick=function(v){this.dragOccurred&&(this.dragOccurred=!1,v.stopPropagation(),v.preventDefault())};var gU=function(v,E){_.QK.call(this);this.JSC$17667_resizeContainer=v;this.callbacks=E;this.aspectRatio=16/9;this.JSC$17667_resizers=[];v=_.p(this.JSC$17667_resizeContainer.children);for(E=v.next();!E.done;E=v.next())eGC(this,E.value)};
_.S(gU,_.QK);gU.prototype.disposeInternal=function(){for(var v=_.p(this.JSC$17667_resizers),E=v.next();!E.done;E=v.next())E.value.dispose();v=_.p(this.JSC$17667_resizeContainer.children);for(E=v.next();!E.done;E=v.next())E.value.setAttribute("disabled","");this.JSC$17667_resizers.length=0};
gU.prototype.setSize=function(v){this.currentMiniplayerSize=v};
gU.prototype.setAspectRatio=function(v){this.aspectRatio=v};
gU.prototype.update=function(v,E){for(var n=_.p(this.JSC$17667_resizeContainer.children),f=n.next();!f.done;f=n.next()){f=f.value;var x=f.getAttribute("alignment");_.D_(f,"disabled",x===v||x===E)}};
var eGC=function(v,E){var n=E.getAttribute("alignment"),f=new H4(E,{onStartDrag:function(x){if(E.hasAttribute("disabled"))x.preventDefault();else{v.dragStartSize=v.currentMiniplayerSize;var y,Q;(Q=(y=v.callbacks).onStartResize)==null||Q.call(y)}},
onDrag:function(x){if(v.dragStartSize){n!=="north"&&n!=="west"||x.scale(-1);var y=n==="north"||n==="south";x=y?x.y:x.x;y&&v.aspectRatio>=1?x*=v.aspectRatio:!y&&v.aspectRatio<1&&(x/=v.aspectRatio);v.callbacks.onResize(v.dragStartSize+x)}}});
v.JSC$17667_resizers.push(f)};var F8M,mj0=function(){return F8M!==void 0?F8M:F8M=document.createElement("template")};
document.head.appendChild(mj0().content);var wLM;var b40=_.qu(function(v){var E=_.Ig(),n=v.onDrag,f=v.onDragStart,x=v.onDragEnd,y=_.Ue(v,{allowClicks:!1,dragThreshold:5}),Q=y.dragThreshold,e=y.allowClicks;v=y.children;y=y.className;var F=void 0,b=void 0,l=new _.PV(0,0),r=!1;_.l5(function(){F=new _.KL(E.value);b=new _.Dm(M);a(F,b);if(e()){_.IuF(F,Q());var d;(d=E.value)==null||d.addEventListener("click",U,{capture:!0})}_.Fp(function(){var Y;(Y=F)==null||Y.dispose();if(e()){var V;(V=E.value)==null||V.removeEventListener("click",U,{capture:!0})}})});
var a=function(d,Y){_.v8(d,"earlycancel",function(){e()&&(r=!1)});
_.v8(d,"start",function(V){f==null||f(V);V.defaultPrevented||e()&&(r=!0)});
_.v8(d,"beforedrag",function(V){F&&b&&(V.preventDefault(),l=new _.PV(V.clientX-F.startX,V.clientY-F.startY),b.start())});
_.v8(d,"end",function(){Y.stop();x==null||x();l=new _.PV(0,0)})},M=function(){l&&n(l)},U=function(d){r&&(r=!1,d.stopPropagation(),d.preventDefault())};
return _.w("yt-draggable",{el:E,class:_.W8("ytDraggableComponentHost",y)},v)},"Zf");var l7_=_.qu(function(v){var E=_.p(_.t7(0,void 0,"Pf10wb")),n=E.next().value,f=E.next().value;E=function(x){var y={},Q={};return _.w(b40,{className:_.W8("ytdMiniplayerComponentResizer",(y.ytdMiniplayerComponentResizerDisabled=function(){return x===v.horizontalAlignment()||x===v.verticalAlignment()},y.ytdMiniplayerComponentResizerNorth=x==="north",y.ytdMiniplayerComponentResizerEast=x==="east",y.ytdMiniplayerComponentResizerSouth=x==="south",y.ytdMiniplayerComponentResizerWest=x==="west",y)),
onDragStart:function(){f(v.currentMiniplayerSize())},
onDrag:function(e){x!=="north"&&x!=="west"||e.scale(-1);var F;e=(F=x==="north"||x==="south")?e.y:e.x;var b=v.currentAspectRatio();F&&b>=1?e*=b:!F&&b<1&&(e/=b);F=e;v.onResize(n()+F)}},_.w("div",{class:_.W8("ytdMiniplayerComponentResizerCorner",(Q.ytdMiniplayerComponentResizerNorthCorner=x==="north",Q.ytdMiniplayerComponentResizerEastCorner=x==="east",Q.ytdMiniplayerComponentResizerSouthCorner=x==="south",Q.ytdMiniplayerComponentResizerWestCorner=x==="west",Q))}))};
return _.w("div",{class:"ytdMiniplayerComponentResizers"},E("north"),E("east"),E("south"),E("west"))},"$f");var s2x=16/9,rzx=_.qu(function(){var v=_.Ig(),E=_.p(_.t7(new _.fs(NaN,NaN),void 0,"yxHohf")),n=E.next().value,f=E.next().value;E=_.p(_.t7(!1,void 0,"ku1l7c"));var x=E.next().value,y=E.next().value;E=_.p(_.t7(!1,void 0,"pbOm3b"));var Q=E.next().value,e=E.next().value;E=_.p(_.t7(!1,void 0,"LqfsYc"));var F=E.next().value,b=E.next().value;E=_.p(_.t7(!1,void 0,"wYZnZe"));var l=E.next().value,r=E.next().value;E=_.p(_.t7(!1,void 0,"KVndGb"));var a=E.next().value,M=E.next().value;E=_.p(_.t7(!1,void 0,"ofTiZe"));
var U=E.next().value,d=E.next().value;E=_.p(_.t7(s2x,void 0,"bpheWd"));var Y=E.next().value,V=E.next().value,O=_.p(_.t7(!1,void 0,"MIV0Jb"));E=O.next().value;var T=O.next().value;O=_.p(_.t7(!1,void 0,"Y2idSc"));var L=O.next().value,xX=O.next().value;O=_.p(_.t7(void 0,void 0,"IuZWBb"));var t=O.next().value,QE=O.next().value;O=_.p(_.t7(_.MX("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var MF=O.next().value,K1=O.next().value;O=_.p(_.t7("south",void 0,"mV91if"));var JG=O.next().value,$X=O.next().value;
O=_.p(_.t7(400,void 0,"OwmImd"));var HI=O.next().value,uE=O.next().value,WI=_.P().resolve(_.hf).miniplayerPropSignalMap[0],bX=WI.data,n0=WI.externalPlaylistData;O=WI.toastData;var qi=WI.playabilityStatus,fl=WI.isDisabled,yP=WI.watchWhile;WI=_.p(_.Rj(WI.isReadyToResume));var IF=WI.next().value,QP=WI.next().value,T3;_.l5(function(){f(_.tC());v.value.addEventListener("animationend",function(y6){y6.target===v.value&&(M(!1),d(!1))})});
_.dt("yt-window-resized",function(y6){y6&&f(y6)});
var aK=function(){T3&&V(T3.getVideoAspectRatio())},yE=function(){if(T3){var y6=T3.getPlayerState()===1;
IF()&&y6&&QP(!1)}};
_.dt("yt-activate-miniplayer",function(y6){var eo;return _.X(function(kX){if(kX.nextAddress==1)return x()?kX.return():_.m(kX,(eo=_.P().resolve(_.hf).getPlayerElement())==null?void 0:eo.getPlayerPromise(),2);T3=kX.yieldResult;if(!T3)return kX.return();!L()&&_.Z("kevlar_watch_while_v2")&&($X(y6&&!_.Z("kevlar_watch_while_bottom_align")?"north":"south"),K1(_.MX("HTML_DIR")==="rtl"?"west":"east"));var lX=T3;lX.addEventListener("onVideoDataChange",aK);lX.addEventListener("onStateChange",yE);V(T3.getVideoAspectRatio());
y(!0);M(!0);_.yQ(kX)})});
_.dt("yt-deactivate-miniplayer",function(y6){return _.X(function(eo){y(!1);QP(!1);d(y6);M(!0);if(T3){var kX=T3;kX.removeEventListener("onVideoDataChange",aK);kX.removeEventListener("onStateChange",yE)}_.yQ(eo)})});
var Cl=function(){var y6=!!bX(),eo=a(),kX=yP();return(kX===void 0?0:kX)&&_.Z("kevlar_watch_while_modern")?!1:y6||eo},VP=function(){var y6;
return!((y6=n0())==null||!y6.contents)},JR=function(){var y6=HI();
var eo=n();eo=Math.min(Math.min(eo.width,eo.height)-32,720);var kX=Y(),lX=Cl(),cb=VP()&&Q(),Zz=Math.min(y6,eo);y6=new _.fs(192,lX?116:192);kX=W$6(new _.fs(cb?s2x:kX,1),new _.fs(Zz,lX?Zz-76:Zz));y6.width<=kX.width&&y6.height<=kX.height||(kl3(kX,y6),kX.width=Math.min(kX.width,eo),kX.height=Math.min(kX.height,eo));return new _.fs(kX.width,_.Jf(192,kX.height+bCP(lX,cb),720))},d1=function(){var y6=JR(),eo=Cl(),kX=VP()&&Q();
return new _.fs(y6.width,y6.height-bCP(eo,kX))},$w=function(){var y6=function(eo){eo.target===v.value&&l()&&(r(!1),v.value.removeEventListener("transitionend",y6))};
v.value.addEventListener("transitionend",y6);r(!0);e(!Q())};
WI={};return _.w("ytd-miniplayer",{el:v,class:_.W8("ytdMiniplayerComponentHost",(WI.ytdMiniplayerComponentVisible=function(){return x()||a()},WI.ytdMiniplayerComponentAnimatingSnap=F,WI.ytdMiniplayerComponentAnimatingPlaylistExpand=l,WI.ytdMiniplayerComponentAnimatingFade=a,WI),function(){if(a()){var y6=JG();
var eo=x(),kX=U();y6=eo?y6==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":kX?y6==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":y6==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else y6="";return y6}),
style:_.tZ({top:function(){return JG()==="north"?"16px":""},
right:function(){return MF()==="east"?"16px":""},
bottom:function(){return JG()==="south"?"16px":""},
left:function(){return MF()==="west"?"16px":""},
width:function(){return JR().width+"px"},
height:function(){return JR().height+"px"},
transform:function(){var y6=t();return y6?"translate("+y6.x+"px, "+y6.y+"px)":""}})},_.w("div",{class:"ytdMiniplayerComponentContent"},_.w(b40,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(y6){var eo=wyd(MF(),JG(),n(),JR(),t()),kX=d1();Math.abs(y6.clientY-(eo.y+kX.height))>15?T(!0):y6.preventDefault()},
onDrag:function(y6){QE(y6)},
onDragEnd:function(){var y6=eo1(wyd(MF(),JG(),n(),JR(),t()),n(),JR()),eo=mDd(MF(),JG(),n(),JR()),kX=mDd(y6.horizontalAlignment,y6.verticalAlignment,n(),JR());kX=new _.PV(kX.x-eo.x,kX.y-eo.y);var lX;eo=eo.y+(((lX=t())==null?void 0:lX.y)||0)+JR().height/2;var cb=function(){MF()===y6.horizontalAlignment&&JG()===y6.verticalAlignment||xX(!0);K1(y6.horizontalAlignment);$X(y6.verticalAlignment);QE(void 0)},Zz=function(C0){C0.target===v.value&&F()&&(b(!1),cb(),v.value.removeEventListener("transitionend",
Zz))};
T(!1);JG()==="south"&&eo>n().height?(cb(),_.P().resolve(_.hf).close()):(v.value.addEventListener("transitionend",Zz),b(!0),QE(kX))}},_.w(_.x6,{cond:x,
then:function(){return _.w(_.VtP,{isDisabled:fl,playabilityStatus:qi,size:d1})}}),_.w(_.x6,{cond:Cl,
then:function(){return _.w(_.h_C,{isReadyToResume:IF,data:bX,expanded:Q,onExpandClick:$w,playlistData:n0})}}),_.w(_.x6,{cond:E,
then:function(){return _.w("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.w(_.x6,{cond:function(){return VP()&&Q()||l()},
then:function(){return _.w(_.yr1,{className:"ytdMiniplayerComponentPlaylistPanel",data:n0,hideHeaderText:!0,withinMiniplayer:!0})}}),_.w("div",{class:"ytdMiniplayerComponentToast"},_.w(_.DnK,{toastData:O}))),_.w(l7_,{onResize:function(y6){uE(_.Jf(192,y6,720))},
currentAspectRatio:Y,currentMiniplayerSize:HI,horizontalAlignment:MF,verticalAlignment:JG}))},"ag");_.Z("ytd_miniplayer_to_wiz")&&_.Yz(rzx,"ytd-miniplayer",{});_.Yz(_.DnK,"ytd-miniplayer-toast",{props:{toastData:_.Kt}});var PR3=16/9,a70=new _.fs(400,400/PR3),NJ=function(){var v=_.g.apply(this,arguments)||this;v.active=!1;v.hasNoData=!1;v.enabled=!1;v.expanded=!1;v.readyToResume=!1;v.isDisabled=!1;v.externalPlaylistData={};v.premiumBadges=[];v.watchWhile=!1;v.playerState=null;v.verticalAttachment="south";v.horizontalAttachment=_.MX("HTML_DIR")==="rtl"?"west":"east";v.isAnimatingFade=!1;v.isAnimatingSnap=!1;v.isAnimatingExpand=!1;v.isDragging=!1;v.playerHidden=!1;v.hasPlaylistData=!1;v.closed=!1;v.expandedClosed=!1;
v.isForReadyToResume=!1;v.watchResponse=null;v.player=null;v.playerVe=null;v.expandVe=null;v.closeVe=null;v.readyToResumeCloseVe=null;v.disabledInitialStateIsPlaying=!1;v.PLAYER_EVENTS=new Map;v.aspectRatio=PR3;v.currentMiniplayerSize=400;v.userSetSize=!1;v.userSetPosition=!1;v.userHasDragged=!1;v.maxMiniplayerSize=720;v.transform=new _.PV(0,0);v.windowDimensions=new _.fs(NaN,NaN);v.dimensions=a70;v.screenLayer=3;v.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return v};
_.S(NJ,_.g);_.c=NJ.prototype;_.c.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()};
_.c.ready=function(){this.setUpDragging();this.setUpResizing()};
_.c.attached=function(){this.onWindowResized(_.tC());this.hostElement.addEventListener("animationend",_.uo(this,this.resetFadingAnimation))};
_.c.detached=function(){this.hostElement.removeEventListener("animationend",_.uo(this,this.resetFadingAnimation))};
_.c.resetFadingAnimation=function(v){v.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.c.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.c.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.c.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var v=_.lc(this.screenLayer);this.readyToResumeCloseVe&&v&&_.CH(v,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.c.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var v=_.lc(0),E=_.bc(0);v&&E&&(_.aQ(v,E,this.readyToResumeVe),_.CH(v,[this.readyToResumeVe]))}};
_.c.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var v=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=v===-1||v===1||v===3)&&this.player.pauseVideo()}};
_.c.activate=function(v,E){E=E===void 0?!1:E;var n=this,f;return _.X(function(x){if(x.nextAddress==1)return n.setInitialActivatePositioning(E),n.enabled=!0,n.active=!0,n.expanded=!1,n.closed=!1,n.expandedClosed=!1,n.watchWhileHidden||(n.isAnimatingFade=!0),_.P().resolve(_.SY).setPlaylistComponent(n.JSC$17678_playlistPanel),v.appendTo(n.playerContainer),_.m(x,v.getPlayerPromise(),2);f=x.yieldResult;f.setSizeStyle(!1,!0);n.ytPlayerListenerBehavior.listenToPlayerEvents(f,n.PLAYER_EVENTS);n.player=f;
n.watchWhile&&_.Z("kevlar_watch_while_minimum_size")&&n.setMiniplayerSize(192);n.setAspectRatio(n.player.getVideoAspectRatio());n.onIsDisabledChanged();_.yQ(x)})};
_.c.setInitialActivatePositioning=function(v){if(!this.userSetPosition&&_.Z("kevlar_watch_while_v2")){this.verticalAttachment=v&&!_.Z("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.MX("HTML_DIR")==="rtl"?"west":"east";var E;(E=this.JSC$17678_resizers)==null||E.update(this.horizontalAttachment,this.verticalAttachment)}};
_.c.deactivate=function(v,E){var n=this;return _.X(function(f){if(!n.active)return f.return();v||(n.expanded?n.expandedClosed=!0:n.closed=!0);n.active=!1;n.isForReadyToResume=!1;E&&_.Z("kevlar_watch_while_counterfactual")||(n.isAnimatingFade=!0);n.player&&n.ytPlayerListenerBehavior.unlistenFromPlayerEvents(n.player,n.PLAYER_EVENTS);n.player=null;_.yQ(f)})};
_.c.onMetadataTap=function(v){this.expandVe&&(v===void 0||v)&&(v=_.lc(this.screenLayer))&&_.qx(v,this.expandVe);_.yg(_.P().resolve(_.hf))};
_.c.onDisabledTap=function(v){v.target===_.K(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.c.onPlaylistExpandTap=function(v){if(this.hasPlaylistData){v=_.MQ(v)||[];v=_.p(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===this.hostElement)break;if(E.classList&&E.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.c.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.uo(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.c.animatedResizePlaylist=function(v){v.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.uo(this,this.animatedResizePlaylist)))};
_.c.getExpandIcon=function(v){return v?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.c.onPlayerVideoDataChange=function(){var v,E=(v=this.player)==null?void 0:v.getVideoAspectRatio();E&&E!==this.aspectRatio&&this.setAspectRatio(E)};
_.c.setAspectRatio=function(v){if(this.active){this.aspectRatio=v;this.updateDimensionsAndResize();var E;(E=this.JSC$17678_resizers)==null||E.setAspectRatio(v)}};
_.c.updateDimensionsAndResize=function(){var v=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),E=this.expanded?PR3:this.aspectRatio,n=new _.fs(192,this.showInfoBar?116:192);v=W$6(new _.fs(E,1),new _.fs(v,this.showInfoBar?v-76:v));n.width<=v.width&&n.height<=v.height||(kl3(v,n),v.width=Math.min(v.width,this.maxMiniplayerSize),v.height=Math.min(v.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&E<=1?Math.max(v.width,v.height)+76:Math.max(v.width,v.height)));this.dimensions=
new _.fs(v.width,this.clamp(v.height+this.getNonPlayerHeight()));this.resize()};
_.c.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var v=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=v.height+"px";var E;(E=this.player)==null||E.setInternalSize(v.width,v.height)};
_.c.getPlayerSize=function(v){var E=Math.max(0,v.height-this.getNonPlayerHeight());return new _.fs(v.width,E)};
_.c.getNonPlayerHeight=function(){var v=0;this.showInfoBar&&(v+=76);this.expanded&&(v+=285);return v};
_.c.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.P().resolve(_.hf).close()};
_.c.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.c.logClosingClick=function(){this.closeVe&&_.qx(_.lc(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.qx(_.lc(this.screenLayer),this.readyToResumeCloseVe)};
_.c.onPlayerExpandMiniplayer=function(){if(this.expandVe){var v=_.lc(this.screenLayer);v&&_.qx(v,this.expandVe)}};
_.c.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var v=this.playerState===1;this.continueWatching&&v&&(this.continueWatching=!1);this.premiumBadges.length&&v&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.c.getScreenLayer=function(){return this.screenLayer};
_.c.logMiniplayer=function(){var v=_.lc(this.screenLayer),E=_.bc(this.screenLayer);v&&E&&this.playerVe&&(_.aQ(v,E,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Nt(v,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.CH(v,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Nt(v,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.c.computePlaylistData=function(v,E){return E};
_.c.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.c.computeExpandButtonHidden=function(v,E,n){return!v||!E||n};
_.c.computePlaylistIndexHidden=function(v,E){return!v||E};
_.c.computePlaylistPanelHidden=function(v,E){return!E&&!v};
_.c.computeExpandButtonLabel=function(v){return v?_.tQ("MINIPLAYER_COLLAPSE_LABEL"):_.tQ("MINIPLAYER_EXPAND_LABEL")};
_.c.computeDisabledStateCloseButtonLabel=function(){return _.tQ("MINIPLAYER_CLOSE",void 0,"Close")};
_.c.onWindowResized=function(v){v&&(v=this.windowDimensions=v,this.maxMiniplayerSize=Math.min(Math.min(v.width,v.height)-32,720),this.updateDimensionsAndResize())};
_.c.setUpResizing=function(){var v=this;this.JSC$17678_resizers||(this.JSC$17678_resizers=new gU(this.JSC$17678_resizeContainer,{onStartResize:function(){v.handleResizeStart()},
onResize:function(E){v.handleResize(E)}}),this.JSC$17678_resizers.setSize(this.currentMiniplayerSize),this.JSC$17678_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.c.handleResizeStart=function(){var v=_.lc(this.screenLayer);this.userSetSize||(this.userSetSize=!0,v&&this.resizeVe&&_.CH(v,[this.resizeVe]));v&&this.resizeVe&&_.qx(v,this.resizeVe)};
_.c.handleResize=function(v){this.setMiniplayerSize(v);this.updateDimensionsAndResize()};
_.c.setUpDragging=function(){var v=this;this.JSC$17678_dragger||(this.JSC$17678_dragger=new H4(this.draggableContainer,{onStartDrag:function(E){!v.isSafeToDrag(E)||v.isAnimatingSnap?E.preventDefault():v.handleDragStart()},
onDrag:function(E){v.transform=E;v.setTransform(v.transform)},
onEndDrag:function(){v.handleDragEnd()}},!0))};
_.c.handleDragStart=function(){this.isDragging=!0;var v=_.lc(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,v&&this.repositionVe&&_.CH(v,[this.repositionVe]));v&&this.repositionVe&&_.qx(v,this.repositionVe)};
_.c.handleDragEnd=function(){this.isDragging=!1;var v=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&v>this.windowDimensions.height&&_.P().resolve(_.hf).close();this.animateSnapToCorner()};
_.c.animateSnapToCorner=function(){var v=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),E=this.getNearestAttachments();E=this.getGlobalPositionFromAttachments(E.horizontalAttachment,E.verticalAttachment);v=new _.PV(E.x-v.x,E.y-v.y);this.isAnimatingSnap=!0;this.setTransform(v);this.hostElement.addEventListener("transitionend",_.uo(this,this.endSnapAnimation))};
_.c.endSnapAnimation=function(v){v.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.uo(this,this.endSnapAnimation)),this.endDrag())};
_.c.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.c.setTransform=function(v){this.hostElement.style.transform=v?"translate("+v.x+"px, "+v.y+"px)":""};
_.c.getGlobalPositionFromAttachments=function(v,E){return new _.PV(v==="west"?16:this.windowDimensions.width-this.dimensions.width-16,E==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.c.updateAttachments=function(){var v=this.getNearestAttachments();if(this.horizontalAttachment!==v.horizontalAttachment||this.verticalAttachment!==v.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=v.horizontalAttachment;this.verticalAttachment=v.verticalAttachment;var E;(E=this.JSC$17678_resizers)==null||E.update(this.horizontalAttachment,this.verticalAttachment)};
_.c.getNearestAttachments=function(){var v=this.getCurrentGlobalPosition();return{horizontalAttachment:v.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:v.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.c.getCurrentGlobalPosition=function(){var v=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return FWb(v,this.transform)};
_.c.isSafeToDrag=function(v){var E=this.playerContainer.getBoundingClientRect();return Math.abs(v.clientY-(E.y+E.height))>15};
_.c.setMiniplayerSize=function(v){this.currentMiniplayerSize=this.clamp(v);var E;(E=this.JSC$17678_resizers)==null||E.setSize(this.currentMiniplayerSize)};
_.c.clamp=function(v){return _.Jf(192,v,720)};
_.c.registerViewTransitionTasks=function(){var v=this,E=_.P().resolve(_.jp(_.dnU));if(E){var n={beforeTransition:function(){v.hostElement&&(v.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){v.hostElement&&(v.hostElement.style.viewTransitionName="")}};
fb(E,"slide",n);fb(E,"zoom",n)}};
_.hK.Object.defineProperties(NJ.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.Z("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:_.tQ("CONTINUE_WATCHING",void 0,"Continue watching")};var v;if((v=this.externalPlaylistData)==null?0:v.contents)return this.externalPlaylistData.titleText;var E;return(E=this.data)==null?void 0:E.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.externalPlaylistData)==null?0:v.contents){var E;return(E=_.r1L(this.externalPlaylistData))==null?void 0:E.title}var n;return(n=this.data)==null?void 0:n.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var v,E,n,f;return((v=this.externalPlaylistData)==null?void 0:v.currentIndex)!==void 0&&((E=this.externalPlaylistData)==null?0:E.totalVideos)&&!((n=this.data)==null?0:(f=n.playlistData)==null?0:f.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.z2y(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.Z("kevlar_watch_while_counterfactual")}}});
NJ.prototype.onIsDisabledChanged=NJ.prototype.onIsDisabledChanged;NJ.prototype.readyToResumeVeChanged=NJ.prototype.readyToResumeVeChanged;NJ.prototype.premiumBrandingChanged=NJ.prototype.premiumBrandingChanged;NJ.prototype.onPlayerVeChange=NJ.prototype.onPlayerVeChange;NJ.prototype.hasPlaylistDataChanged=NJ.prototype.hasPlaylistDataChanged;_.k([_.h(_.I2.YtPlayerListenerBehavior),_.W("design:type",_.YQ)],NJ.prototype,"ytPlayerListenerBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],NJ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],NJ.prototype,"ytdReduxBehavior",void 0);_.k([_.Wp("#draggable"),_.W("design:type",HTMLDivElement)],NJ.prototype,"draggableContainer",void 0);
_.k([_.Wp("#resize-container"),_.W("design:type",HTMLDivElement)],NJ.prototype,"JSC$17678_resizeContainer",void 0);_.k([_.Wp("#video-container"),_.W("design:type",HTMLDivElement)],NJ.prototype,"videoContainer",void 0);_.k([_.Wp("#player-container"),_.W("design:type",HTMLDivElement)],NJ.prototype,"playerContainer",void 0);_.k([_.Wp("#playlist"),_.W("design:type",HTMLDivElement)],NJ.prototype,"JSC$17678_playlistPanel",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"active",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"hasNoData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"enabled",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"expanded",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"readyToResume",void 0);
_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"isDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"externalPlaylistData",void 0);_.k([_.H(),_.W("design:type",Array)],NJ.prototype,"premiumBadges",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"toastData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"watchWhile",void 0);_.k([_.H(),_.W("design:type",Boolean)],NJ.prototype,"premiumBranding",void 0);
_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"playerState",void 0);_.k([_.H(),_.W("design:type",Boolean)],NJ.prototype,"continueWatching",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],NJ.prototype,"verticalAttachment",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],NJ.prototype,"horizontalAttachment",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"isAnimatingFade",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"isAnimatingSnap",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"isAnimatingExpand",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"isDragging",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"playerHidden",void 0);
_.k([_.H({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.W("design:type",Object)],NJ.prototype,"playlistData",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.W("design:type",Object)],NJ.prototype,"hasPlaylistData",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"closed",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"expandedClosed",void 0);
_.k([_.H({selector:_.YkX}),_.W("design:type",Boolean)],NJ.prototype,"isSingleOptionSurveyActive",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.wG}),_.W("design:type",Boolean)],NJ.prototype,"isWatchPage",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"showInfoBar",null);_.k([_.A("premiumBadges","showInfoBar"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"showOverlayPremiumBadges",null);
_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"watchResponse",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"miniplayerRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"playabilityStatus",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"playerVe",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"expandVe",void 0);_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"closeVe",void 0);
_.k([_.H(),_.W("design:type",Object)],NJ.prototype,"readyToResumeCloseVe",void 0);_.k([_.H(),_.W("design:type",_.wM)],NJ.prototype,"readyToResumeVe",void 0);_.k([_.H(),_.W("design:type",_.wM)],NJ.prototype,"resizeVe",void 0);_.k([_.H(),_.W("design:type",_.wM)],NJ.prototype,"repositionVe",void 0);_.k([_.On("hasPlaylistData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"hasPlaylistDataChanged",null);
_.k([_.On("playerVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"onPlayerVeChange",null);_.k([_.On("premiumBranding"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"premiumBrandingChanged",null);_.k([_.On("readyToResumeVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"readyToResumeVeChanged",null);
_.k([_.On("isDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"onIsDisabledChanged",null);_.k([_.A("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"miniplayerSubtitle",null);_.k([_.A("data.miniplayerTitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"miniplayerTitle",null);
_.k([_.A("externalPlaylistData","continueWatching"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"playlistIndexMessage",null);_.k([_.H({reflectToAttribute:!0}),_.A("playabilityStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"showErrorScreen",null);_.k([_.H({reflectToAttribute:!0}),_.A("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"watchWhileHidden",null);
_.Z("ytd_miniplayer_to_wiz")||_.u(NJ,"ytd-miniplayer",function(){if(wLM===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(mj0().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);wLM=v}v=wLM;return v},{mode:2});var Z4C;var u8=function(){var v=_.g.apply(this,arguments)||this;v.useListItemStyles=_.Z("web_list_item_style_for_menu_items");v.systemIcons=_.Z("kevlar_system_icons");return v};
_.S(u8,_.g);_.c=u8.prototype;_.c.ready=function(){this.hostElement.addEventListener("tap",_.uo(this,this.onEndpointTapExtra))};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.c.onFocus=function(){var v;(v=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.c.onEndpointTapExtra=function(v){_.jK(this.hostElement,"iron-activate");var E=this.data.navigationEndpoint;E&&_.C(E,_.enG)&&(v.stopPropagation(),_.LG(this.hostElement,[E],this.hostElement))};
_.c.computeIcon=function(v){return v&&v.iconType?_.jI(v.iconType):""};
_.c.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.c.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.c.forceUpdateStylesOnLegacyBrowsers=function(){_.Z("kevlar_legacy_browsers")&&_.NQ(this.hostElement)};
u8.prototype.forceUpdateStylesOnLegacyBrowsers=u8.prototype.forceUpdateStylesOnLegacyBrowsers;u8.prototype.onFocus=u8.prototype.onFocus;_.k([_.h(_.YM),_.W("design:type",Object)],u8.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.XH1.YtConditionalRendererBehavior),_.W("design:type",Object)],u8.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],u8.prototype,"ytEndpointBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],u8.prototype,"data",void 0);_.k([_.H({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],u8.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],u8.prototype,"useIcons",void 0);_.k([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],u8.prototype,"hasSeparator",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],u8.prototype,"useListItemStyles",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],u8.prototype,"systemIcons",void 0);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u8.prototype,"onFocus",null);_.k([_.On("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u8.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(u8,"ytd-menu-navigation-item-renderer",function(){if(Z4C===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);Z4C=v}v=Z4C;return v},{mode:1});var CRR;var MR0=_.qD(_.tQ("DOWNLOAD",{},"Download")),SqK=_.qD(_.tQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Ujx=_.qD(_.tQ("RETRY",{},"Retry")),qqb=_.qD(_.tQ("PAUSE_DOWNLOADING",{},"Pause downloading")),JzO=_.qD(_.tQ("RESUME_DOWNLOAD",{},"Resume download")),je=function(){var v=_.g.apply(this,arguments)||this;v.primaryText=MR0;v.primaryIconType="OFFLINE_DOWNLOAD";v.hasSecondaryContent=!1;v.hasSeparator=!1;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.isHidden=!1;v.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return v};
_.S(je,_.g);_.c=je.prototype;_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.c.onFocus=function(){this.primaryEntry.focus()};
_.c.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.c.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.c.getRemoveAction=function(){return"ACTION_REMOVE"};
_.c.sendOfflineAction=function(v){var E=this.data.serviceEndpoint;if(E){var n=_.C(E,_.zy);n&&v&&(n.action=v);this.ytComponentBehavior.resolveCommand(E)}};
_.c.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=MR0,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=MR0;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Ujx;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=SqK;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=JzO;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=SqK;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
qqb;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=SqK;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=SqK;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=MR0,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.c.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.c.isSecondaryEntryHidden=function(v,E){return v?!0:!E};
_.c.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
je.prototype.showHideButton=je.prototype.showHideButton;je.prototype.onTransferStateChange=je.prototype.onTransferStateChange;je.prototype.onFocus=je.prototype.onFocus;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],je.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],je.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],je.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],je.prototype,"primaryText",void 0);_.k([_.H(),_.W("design:type",String)],je.prototype,"primaryIconType",void 0);_.k([_.H(),_.W("design:type",String)],je.prototype,"primaryAction",void 0);_.k([_.H(),_.W("design:type",Object)],je.prototype,"secondaryText",void 0);_.k([_.H(),_.W("design:type",String)],je.prototype,"secondaryIconType",void 0);
_.k([_.H(),_.W("design:type",String)],je.prototype,"secondaryAction",void 0);_.k([_.H(),_.W("design:type",Object)],je.prototype,"hasSecondaryContent",void 0);_.k([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Object)],je.prototype,"hasSeparator",void 0);_.k([_.H({selector:_.bx,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",String)],je.prototype,"transferState",void 0);
_.k([_.H({selector:_.tOI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],je.prototype,"isVideoDeletedByUser",void 0);_.k([_.H(),_.W("design:type",Object)],je.prototype,"isHidden",void 0);_.k([_.H({selector:_.LDI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],je.prototype,"offlineabilityState",void 0);_.k([_.Wp("#primary-entry"),_.W("design:type",Object)],je.prototype,"primaryEntry",void 0);
_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],je.prototype,"onFocus",null);_.k([_.Tw("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],je.prototype,"onTransferStateChange",null);_.k([_.Tw("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],je.prototype,"showHideButton",null);
_.u(je,"ytd-menu-service-item-download-renderer",function(){if(CRR===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);CRR=v}v=CRR;return v},{mode:1});var K8x;var Oj=function(){var v=_.g.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.Z("kevlar_system_icons");v.useListItemStyles=_.Z("web_list_item_style_for_menu_items");return v};
_.S(Oj,_.g);_.c=Oj.prototype;_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.c.onFocus=function(){var v;(v=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.c.onTap=function(){_.kZ(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var v=this.data.serviceEndpoint,E=this.data.command;if(v){var n,f=(n=this.data)==null?void 0:n.trackingParams;n=!!_.C(v,_.ATU);f&&n&&_.dG().dispatch(_.un({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:f}}));this.ytComponentBehavior.resolveCommand(v)||_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}})}E&&(this.ytComponentBehavior.resolveCommand(E)||_.LG(this.hostElement,
[E],this.hostElement))};
_.c.computeIcon=function(v){return v&&v.iconType?_.jI(v.iconType):""};
_.c.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.c.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
_.c.forceUpdateStylesOnLegacyBrowsers=function(){_.Z("kevlar_legacy_browsers")&&_.NQ(this.hostElement)};
_.c.computeIsSelected=function(){var v;return!((v=this.data)==null||!v.isSelected)};
Oj.prototype.forceUpdateStylesOnLegacyBrowsers=Oj.prototype.forceUpdateStylesOnLegacyBrowsers;Oj.prototype.onTap=Oj.prototype.onTap;Oj.prototype.onFocus=Oj.prototype.onFocus;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],Oj.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Oj.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.XH1.YtConditionalRendererBehavior),_.W("design:type",Object)],Oj.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Oj.prototype,"data",void 0);_.k([_.H({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],Oj.prototype,"icon",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Oj.prototype,"useIcons",void 0);
_.k([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Oj.prototype,"hasSeparator",void 0);_.k([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Oj.prototype,"isSelected",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Oj.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Oj.prototype,"useListItemStyles",void 0);
_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Oj.prototype,"onFocus",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Oj.prototype,"onTap",null);_.k([_.On("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Oj.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(Oj,"ytd-menu-service-item-renderer",function(){if(K8x===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);K8x=v}v=K8x;return v},{mode:2});var dj_;var k4=function(){return _.g.apply(this,arguments)||this};
_.S(k4,_.g);_.c=k4.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.onDataChanged=function(){var v=this;_.IS(this,function(){v.postbox.openDialog();v.focus();_.jK(v.hostElement,"yt-refit")})};
_.c.focus=function(){this.postbox.focus()};
_.c.closePopup=function(){_.OL(this.hostElement,"yt-close-popup-action")};
_.c.onYtCommentboxDismiss=function(){this.closePopup()};
k4.prototype.onYtCommentboxDismiss=k4.prototype.onYtCommentboxDismiss;k4.prototype.onDataChanged=k4.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],k4.prototype,"data",void 0);_.k([_.H({value:function(){return _.tQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],k4.prototype,"closeButtonAriaLabel",void 0);_.k([_.Wp("#postbox"),_.W("design:type",Object)],k4.prototype,"postbox",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k4.prototype,"onDataChanged",null);_.k([_.jk("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k4.prototype,"onYtCommentboxDismiss",null);
k4=_.k([_.N({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],k4);
_.u(k4,"ytd-backstage-post-dialog-popup-renderer",function(){if(dj_!==void 0)return dj_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return dj_=v},{mode:1});var I7p;var GL=function(){return _.g.apply(this,arguments)||this};
_.S(GL,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],GL.prototype,"data",void 0);GL=_.k([_.N({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],GL);
_.u(GL,"ytd-sender-id-section-renderer",function(){if(I7p!==void 0)return I7p;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return I7p=v},{mode:1});var Yq6;var hGx;var AzU;var TL=function(){return _.g.apply(this,arguments)||this};
_.S(TL,_.g);TL.prototype.closePopup=function(){_.OL(this.hostElement,"yt-close-popup-action")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TL.prototype,"data",void 0);TL=_.k([_.p5({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],TL);
_.u(TL,"yt-community-post-section-renderer",function(){if(AzU===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;hGx===void 0&&(hGx=document.createElement("template"));var f=hGx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);AzU=v}v=AzU;return v},{mode:2});var VR6;var Djp;var H40;var gQx;var NT0;var u50;var i8=function(){return _.g.apply(this,arguments)||this};
_.S(i8,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],i8.prototype,"data",void 0);i8=_.k([_.p5({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],i8);
_.u(i8,"yt-share-start-time-with-context-renderer",function(){if(u50===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;NT0===void 0&&(NT0=document.createElement("template"));var f=NT0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);u50=v}v=u50;return v},{mode:2});var zL=function(){return _.g.apply(this,arguments)||this};
_.S(zL,_.g);zL.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zL.prototype,"data",void 0);zL=_.k([_.p5({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],zL);
_.u(zL,"yt-share-panel-title-v15-renderer",function(){if(gQx===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;H40===void 0&&(H40=document.createElement("template"));var f=H40;n.call(E,f.content.cloneNode(!0),v.content.firstChild);gQx=v}v=gQx;return v},{mode:2});var RI=function(){return _.g.apply(this,arguments)||this};
_.S(RI,_.g);RI.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],RI.prototype,"data",void 0);RI=_.k([_.p5({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],RI);
_.u(RI,"yt-share-panel-header-renderer",function(){if(Djp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;VR6===void 0&&(VR6=document.createElement("template"));var f=VR6;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Djp=v}v=Djp;return v},{mode:2});var j2b;var O4O;var ti=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-open-popup-action":"onOpen"};return v};
_.S(ti,_.g);_.c=ti.prototype;_.c.attached=function(){this.onOpen()};
_.c.updateTimeSecs=function(v){this.currentTimeSecs=v};
_.c.computeTimeString=function(v){v=v.toString();var E=Math.floor(Number(v)/3600),n=Math.floor(Number(v)%3600%60);return(E>0?E+":":"")+_.zj(Math.floor(Number(v)%3600/60),E>0?2:1)+":"+_.zj(n,2)};
_.c.computeTimeStringA11y=function(v){v=_.voE({seconds:v});var E=v.hours===void 0?0:v.hours,n=v.minutes===void 0?0:v.minutes,f=v.seconds===void 0?0:v.seconds;v=[];if(E>0){var x=iZC().format({hours:E});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Py)||E>9999)x=x.replace(E.toString(),_.EoF(E)),_.Py==="km"&&(x=x.replace(".",","));v.push(x)}n>0&&v.push(iZC().format({minutes:n}));f>0&&v.push(iZC().format({seconds:f}));E="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");n=_.Py==
"am"?"{0}\u1363 ":_.Py=="fa"?"{0}\u060c\u200f ":_.Py=="my"?"{0} - ":_.Py=="ne"?"{0},":_.Py=="th"?"{0} ":_.Py=="ur"?"{0}\u060c ":_.Py=="ar"||_.Py=="ar-XB"?"{0} \u0648":_.Py=="ja"||_.Py=="zh-CN"||_.Py=="zh-HK"||_.Py=="zh-TW"?"{0}\u3001":"{0}, ";f=_.Py=="am"?"\u1363 ":_.Py=="fa"?"\u060c\u200f ":_.Py=="my"?" - ":_.Py=="th"?" ":_.Py=="ur"?"\u060c ":_.Py=="ar"||_.Py=="ar-XB"?" \u0648":_.Py=="ja"||_.Py=="zh-CN"||_.Py=="zh-HK"||_.Py=="zh-TW"?"\u3001":", ";x=_.Py=="am"?" \u12a5\u1293 {0}":_.Py=="as"?" \u0986\u09f0\u09c1 {0}":
_.Py=="az"?" v\u0259 {0}":_.Py=="bn"?" \u098f\u09ac\u0982 {0}":_.Py=="cs"?" a\u00a0{0}":_.Py=="de"?" und {0}":_.Py=="el"?" \u03ba\u03b1\u03b9 {0}":_.Py=="eu"?" eta {0}":_.Py=="fa"?"\u060c \u0648 {0}":_.Py=="fil"?", at {0}":_.Py=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Py=="hi"?", \u0914\u0930 {0}":_.Py=="hu"?" \u00e9s {0}":_.Py=="hy"?" \u0587 {0}":_.Py=="id"?", dan {0}":_.Py=="iw"?" \u05d5-{0}":_.Py=="ja"?"\u3001{0}":_.Py=="ka"?" \u10d3\u10d0 {0}":_.Py=="km"?" \u1793\u17b7\u1784 {0}":_.Py=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Py=="ko"?" \ubc0f {0}":_.Py=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Py=="lt"?" ir {0}":_.Py=="lv"?" un {0}":_.Py=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Py=="mr"?" \u0906\u0923\u093f {0}":_.Py=="ms"?" dan {0}":_.Py=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Py=="ne"?" \u0930 {0}":_.Py=="or"?", \u0b13 {0}":_.Py=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Py=="ro"?" \u0219i {0}":_.Py=="si"?", \u0dc3\u0dc4 {0}":_.Py=="sk"?" a {0}":_.Py=="sl"?" in {0}":_.Py=="sq"?" dhe {0}":_.Py=="sv"?" och {0}":
_.Py=="sw"?" na {0}":_.Py=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Py=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Py=="th"?" \u0e41\u0e25\u0e30{0}":_.Py=="tr"?" ve {0}":_.Py=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Py=="uz"?" va {0}":_.Py=="vi"?" v\u00e0 {0}":_.Py=="zh-HK"?"\u53ca{0}":_.Py=="zu"?", ne-{0}":_.Py=="af"||_.Py=="nl"?" en {0}":_.Py=="ar"||_.Py=="ar-XB"?" \u0648{0}":_.Py=="be"||_.Py=="uk"?" \u0456 {0}":_.Py=="en-GB"||_.Py=="en-IN"?" and {0}":_.Py=="en"||_.Py=="en-XA"?
", and {0}":_.Py=="et"||_.Py=="fi"?" ja {0}":_.Py=="fr"||_.Py=="fr-CA"?" et {0}":_.Py=="zh-CN"||_.Py=="zh-TW"?"\u548c{0}":_.Py=="da"||_.Py=="is"||_.Py=="no"?" og {0}":_.Py=="es"||_.Py=="es-419"||_.Py=="es-US"?" y {0}":_.Py=="kk"||_.Py=="lo"||_.Py=="mn"?", {0}":_.Py=="bg"||_.Py=="mk"||_.Py=="ru"||_.Py=="sr"?" \u0438 {0}":_.Py=="gl"||_.Py=="it"||_.Py=="pt-BR"||_.Py=="pt-PT"?" e {0}":" i {0}";var y=_.Py=="am"?"{0} \u12a5\u1293 {1}":_.Py=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Py=="az"?"{0} v\u0259 {1}":
_.Py=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Py=="de"?"{0} und {1}":_.Py=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Py=="eu"?"{0} eta {1}":_.Py=="fa"?"{0} \u0648 {1}":_.Py=="fil"?"{0} at {1}":_.Py=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Py=="hi"?"{0} \u0914\u0930 {1}":_.Py=="hu"?"{0} \u00e9s {1}":_.Py=="hy"?"{0} \u0587 {1}":_.Py=="iw"?"{0} \u05d5-{1}":_.Py=="ja"?"{0}\u3001{1}":_.Py=="ka"?"{0} \u10d3\u10d0 {1}":_.Py=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Py=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Py=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Py=="ko"?"{0} \ubc0f {1}":_.Py=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Py=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Py=="lt"?"{0} ir {1}":_.Py=="lv"?"{0} un {1}":_.Py=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Py=="mn"?"{0}, {1}":_.Py=="mr"?"{0} \u0906\u0923\u093f {1}":_.Py=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Py=="ne"?"{0} \u0930 {1}":_.Py=="or"?"{0} \u0b13 {1}":_.Py=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Py=="ro"?"{0} \u0219i {1}":_.Py==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Py=="sl"?"{0} in {1}":_.Py=="sq"?"{0} dhe {1}":_.Py=="sv"?"{0} och {1}":_.Py=="sw"?"{0} na {1}":_.Py=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Py=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Py=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Py=="tr"?"{0} ve {1}":_.Py=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Py=="uz"?"{0} va {1}":_.Py=="vi"?"{0} v\u00e0 {1}":_.Py=="zh-HK"?"{0}\u53ca{1}":_.Py=="zu"?"{0} ne-{1}":_.Py=="af"||_.Py=="nl"?"{0} en {1}":_.Py=="ar"||_.Py==
"ar-XB"?"{0} \u0648{1}":_.Py=="be"||_.Py=="uk"?"{0} \u0456 {1}":_.Py=="cs"||_.Py=="sk"?"{0} a\u00a0{1}":_.Py=="et"||_.Py=="fi"?"{0} ja {1}":_.Py=="fr"||_.Py=="fr-CA"?"{0} et {1}":_.Py=="id"||_.Py=="ms"?"{0} dan {1}":_.Py=="zh-CN"||_.Py=="zh-TW"?"{0}\u548c{1}":_.Py=="da"||_.Py=="is"||_.Py=="no"?"{0} og {1}":_.Py=="es"||_.Py=="es-419"||_.Py=="es-US"?"{0} y {1}":_.Py=="bg"||_.Py=="mk"||_.Py=="ru"||_.Py=="sr"?"{0} \u0438 {1}":_.Py=="en"||_.Py=="en-GB"||_.Py=="en-IN"||_.Py=="en-XA"?"{0} and {1}":_.Py==
"gl"||_.Py=="it"||_.Py=="pt-BR"||_.Py=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Py==="sq"?(x=x.replace("dhe","e"),y=y.replace("dhe","e")):_.Py==="th"?(f=f.replace("{0}"," {0}"),y=y.replace("{0}","{0} "),y=y.replace("{1}"," {1}")):_.Py==="ne"?f=",":_.Py==="zh-CN"?f="":E.includes(_.Py)&&(f=" ");return v.length<2?v.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(_.Py)?v.length===2?
y.replace("{0}",v[0]).replace("{1}",v[1]):n.replace("{0}",v[0])+v.slice(1,-1).join(f)+x.replace("{0}",v[v.length-1]):v.join(f)};
_.c.getTimeParam=function(){return lGx(this.timeString)};
_.c.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var v={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},E;_.El(_.Tl(),(E=this.data)==null?void 0:E.trackingParams,v,7)};
_.c.onChangeStartAtTimestamp=function(){for(var v=this.startAtTimestamp.value.split(":"),E=0,n=1,f=v.length-1;f>=0;f--)E+=Number(v[f])*n,n*=60;this.updateTimeSecs(E);this.setTimestamp()};
_.c.onOpen=function(){var v=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var E=_.Aq();E?E.getPlayerPromise().then(function(n){n=n.getCurrentTime();v.updateTimeSecs(n)}):G1U()&&this.updateTimeSecs(G1U())};
_.c.setTimestamp=function(){var v=Math.floor(this.currentTimeSecs);_.OL(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!v,timestamp:v||""}])};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],ti.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ti.prototype,"data",void 0);_.k([_.H({value:!1,notify:!0}),_.W("design:type",Boolean)],ti.prototype,"isStartAtChecked",void 0);_.k([_.H(),_.W("design:type",Number)],ti.prototype,"currentTimeSecs",void 0);
_.k([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.W("design:type",String)],ti.prototype,"timeString",void 0);_.k([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.W("design:type",String)],ti.prototype,"timeStringA11y",void 0);_.k([_.Wp("#start-at-timestamp"),_.W("design:type",Object)],ti.prototype,"startAtTimestamp",void 0);ti=_.k([_.p5({is:"yt-start-at-renderer",disableElementRegistration:!0})],ti);
_.u(ti,"yt-start-at-renderer",function(){if(O4O===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;j2b===void 0&&(j2b=document.createElement("template"));var f=j2b;n.call(E,f.content.cloneNode(!0),v.content.firstChild);O4O=v}v=O4O;return v},{mode:2});var k9R;var W8_;var $jb=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"]]),L8p=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"]]),G9x=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var TT_={};TT_.YtBindingExpressionsBehavior={identity:_.NF,msg:function(v,E){E=E===void 0?{}:E;return _.tQ(v,E,v)},
msgPlural:function(v,E){return _.Bq(v,E)},
getMusicIconFromType:function(v){if(_.Z("music_web_enable_icon_wil"))v=_.jI(v);else if(L8p.has(v))v="yt-sys-icons:"+L8p.get(v);else{var E=$jb.get(v)||_.jI(v).split(":")[1];E=_.tWQ(E);var n;v=((n=G9x.get(v))!=null?n:"yt-sys-icons:")+E}return v}};var i4M;var zGb;var RGM;var tR3=document.head,BT0=tR3.appendChild,vU1;if(RGM===void 0){var EUU=document.createElement("template");_.q(EUU,'\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>');RGM=EUU}vU1=RGM;BT0.call(tR3,vU1.content);var B4=function(){var v=_.g.apply(this,arguments)||this;v.screenLayer=7;return v};
_.S(B4,_.g);B4.prototype.getScreenLayer=function(){return this.screenLayer};
B4.prototype.onTap=function(v){v&&v.detail&&(v.detail.x||v.detail.y)&&_.K(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.$Z(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(v=this.getScreenLayer(),_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:v}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.hK.Object.defineProperties(B4.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()}}});
B4.prototype.onTap=B4.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],B4.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],B4.prototype,"data",void 0);_.k([_.A("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],B4.prototype,"title",null);
_.k([_.A("data.serviceName"),_.W("design:type",String),_.W("design:paramtypes",[])],B4.prototype,"icon",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],B4.prototype,"onTap",null);B4=_.k([_.p5({is:"yt-share-target-renderer",disableElementRegistration:!0})],B4);
_.u(B4,"yt-share-target-renderer",function(){if(zGb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;i4M===void 0&&(i4M=document.createElement("template"));var f=i4M;n.call(E,f.content.cloneNode(!0),v.content.firstChild);zGb=v}v=zGb;return v},{mode:2});var nUx;var oU6;var vr=function(){var v=_.g.apply(this,arguments)||this;v.SHARE_TARGET_WIDTH=70;v.SHARE_TARGET_MARGIN_RIGHT=8;v.PAGE_SCROLL_SPEED=9;v.actionMap={"yt-share-panel-reset-action":"onReset_"};return v};
_.S(vr,_.g);_.c=vr.prototype;_.c.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.c.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.K(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.c.onReset_=function(){if(_.K(this.hostElement).querySelector("#list")){var v=_.K(this.hostElement).querySelector("#list");var E=_.K(this.hostElement).querySelector("#list");var n=E.offsetLeft,f=E.offsetParent;f||_.G3F(E)!="fixed"||(f=_.ZJ(E).documentElement);if(f){if(_.oG&&!_.x8(58)){var x=_.Ebw(f);n+=x.left}else Number(_.JrQ)>=8&&!(Number(_.JrQ)>=9)&&(x=_.Ebw(f),n-=x.left);E=_.B_F(f)?f.clientWidth-(n+E.offsetWidth):n}else E=n;NWd(v,E);this.updateScrollButtons_()}};
_.c.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.c.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.c.onScrollWheel_=function(v){v.stopPropagation();v.preventDefault();var E=g_d(_.K(this.hostElement).querySelector("#list"));v=Math.abs(v.deltaX)>Math.abs(v.deltaY)?v.deltaX:v.deltaY;NWd(_.K(this.hostElement).querySelector("#list"),E+v);this.updateScrollButtons_()};
_.c.smoothScrollByOnePage_=function(v){var E=_.K(this.hostElement).querySelector("#list"),n=(Math.floor(E.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,f=g_d(E),x=n*(v?1:-1),y=this.PAGE_SCROLL_SPEED,Q=this.updateScrollButtons_.bind(this),e=0,F;(function l(){e+=y;F=e/n*2;NWd(E,f+x*(F<1?F*F:-F*F+4*F-2));e<n?window.requestAnimationFrame(l):Q()})()};
_.c.updateScrollButtons_=function(){var v=g_d(_.K(this.hostElement).querySelector("#list")),E=_.K(this.hostElement).querySelector("#list").scrollWidth-_.K(this.hostElement).querySelector("#list").clientWidth;_.K(this.hostElement).querySelector("#scroll-button-back").hidden=v<=0;_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=v>=E};
vr.prototype.onScrollWheel_=vr.prototype.onScrollWheel_;vr.prototype.onDataChanged_=vr.prototype.onDataChanged_;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(TT_.YtBindingExpressionsBehavior),_.W("design:type",Object)],vr.prototype,"ytBindingExpressionsBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vr.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vr.prototype,"onDataChanged_",null);_.k([_.jk("wheel"),_.W("design:type",Function),_.W("design:paramtypes",[WheelEvent]),_.W("design:returntype")],vr.prototype,"onScrollWheel_",null);
vr=_.k([_.p5({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],vr);
_.u(vr,"yt-third-party-share-target-section-renderer",function(){if(oU6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;nUx===void 0&&(nUx=document.createElement("template"));var f=nUx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);oU6=v}v=oU6;return v},{mode:2});var EF=function(){return _.g.apply(this,arguments)||this};
_.S(EF,_.g);EF.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"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EF.prototype,"data",void 0);EF=_.k([_.p5({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],EF);
_.u(EF,"yt-third-party-network-section-renderer",function(){if(W8_===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;k9R===void 0&&(k9R=document.createElement("template"));var f=k9R;n.call(E,f.content.cloneNode(!0),v.content.firstChild);W8_=v}v=W8_;return v},{mode:2});_.Yz(_.qu(function(v){return _.w("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.w("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.w(_.mI,{data:function(){return v.data().firstPartyItems}},{listItemViewModel:_.FZ})))},"bg"),"first-party-network-section-view-model",{props:{data:_.Kt}});var f8O=_.jU(["data:image/svg+xml;charset=UTF-8;base64,",""]),nO=function(){var v=_.g.apply(this,arguments)||this;v.screenLayer=7;v.qrCodeEnabled=_.Z("web_enable_sharing_qr_code");v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return v};
_.S(nO,_.g);_.c=nO.prototype;_.c.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"}}}};
_.c.attached=function(){this.JSC$17730_scroller&&(this.JSC$17730_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17730_scroller.attached&&typeof this.JSC$17730_scroller.attached==="function"&&this.JSC$17730_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.c.onDataChanged=function(){var v=this,E;(E=this.data)!=null&&E.contents&&(this.hostElement.setAttribute("links-only","true"),_.D_(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.IS(this,function(){_.jK(v.hostElement,"yt-refit");v.focusSharePanelHeader()}))};
_.c.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.c.handleSetTimestamp=function(v){var E=this.shortUrl();v.isSet&&(E=_.VS(E,"t",v.timestamp));this.maybeRenderQrCode(E)};
_.c.shortUrl=function(){var v,E=(v=this.data)==null?void 0:v.contents;if(E)for(v=0;v<E.length;v++){var n=void 0,f=void 0;if((n=E[v])==null?0:(f=n.thirdPartyNetworkSection)==null?0:f.copyLinkContainer){var x=f=n=void 0;return(x=_.C((n=E[v])==null?void 0:(f=n.thirdPartyNetworkSection)==null?void 0:f.copyLinkContainer,ufK))==null?void 0:x.shortUrl}}};
_.c.maybeRenderQrCode=function(v){var E=this,n,f,x,y,Q,e,F,b,l;return _.X(function(r){if(r.nextAddress==1){n=_.K(E.hostElement).querySelector("#qr-code");if(!E.qrCodeEnabled||!v)return n&&(n.style.display="none"),r.return();f=_.Ff$(_.P().resolve(_.Oe),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});x=document.createElement("div");return typeof f==="function"?(f(x),r.jumpTo(2)):_.m(r,f,3)}r.nextAddress!=2&&(y=r.yieldResult,y(x));F=(Q=x)==null?void 0:(e=Q.firstChild)==null?void 0:e.firstChild;
b=document.createElement("img");l=_.aC(f8O,btoa(F.outerHTML));b.onload=function(){var a={canvas:n,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:b},M=new ll_;Ccd(M,v);MK6(M,!1,SL6(M));var U=M.modules,d=Object.assign({},PFd,a);U=structuredClone(U);a=U.length;var Y,V=(Y=d.canvas)!=null?Y:document.createElement("canvas");Y=d.cellSize;M=d.logo;var O,T=(O=d.logoSize)!=null?O:Math.floor(a/4);a%2!==T%2&&T++;var L=d.logoPadding,xX=d.backgroundColor;O=a*Y;var t=
d.width,QE=0;t&&(QE=d.padding,QE=Math.ceil(QE*O/(t-QE*2)),V.style.width=t+"px",V.style.height=t+"px");V.width!==O+QE*2&&(V.width=O+QE*2);V.height!==O+QE*2&&(V.height=O+QE*2);O=V.getContext("2d");d.autoClear&&O.clearRect(0,0,V.width,V.height);O.fillStyle=xX;O.beginPath();O.roundRect(0,0,V.width,V.height,d.borderRadius);O.fill();O.save();O.translate(QE,QE);if(M)for(V=Math.floor(a-T)/2-L,L=Math.floor(a+T)/2+L,xX=V;xX<L;xX++)for(t=V;t<L;t++)U[xX][t]=!1;for(V=0;V<a;V++)for(L=0;L<a;L++)(V<7&&L<7||V<7&&
L>=a-7||V>=a-7&&L<7)&&(U[V][L]=!1);var MF;V=(MF=d.markerColor)!=null?MF:d.color;qLx(O,0,0,Y,V);qLx(O,Y*(a-7),0,Y,V);qLx(O,0,Y*(a-7),Y,V);switch(d.cellStyle){case 0:MF=U;U=MF.length;V=d.cellSize;O.beginPath();for(L=0;L<U;L++)for(xX=0;xX<U;xX++)MF[L][xX]&&O.rect(L*V,xX*V,V,V);O.fillStyle=d.color;O.fill();break;case 1:MF=U;U=MF.length;V=d.cellSize;L=V*d.relativeCircleSize;O.fillStyle=d.color;O.beginPath();for(d=0;d<U;d++)for(xX=0;xX<U;xX++)MF[d][xX]&&(O.beginPath(),O.ellipse((d+.5)*V,(xX+.5)*V,L/2,L/
2,0,0,2*Math.PI),O.fill());O.fill();break;case 2:MF=U;U=MF.length;V=d.cellSize;O.fillStyle=d.color;d=[[1,1],[-1,1],[-1,-1],[1,-1]];O.beginPath();for(L=0;L<U;L++)for(xX=0;xX<U;xX++)if(MF[L][xX])O.roundRect(L*V,xX*V,V,V,V/2),L+1<U&&MF[L+1][xX]&&O.rect(L*V+V/2,xX*V,V,V),xX+1<U&&MF[L][xX+1]&&O.rect(L*V,xX*V+V/2,V,V);else{t=L*V+V/2;QE=xX*V+V/2;for(var K1=0;K1<4;K1++){var JG=_.p(d[K1]),$X=JG.next().value;JG=JG.next().value;L+$X>=0&&L+$X<U&&xX+JG>=0&&xX+JG<U&&MF[L+$X][xX]&&MF[L][xX+JG]&&MF[L+$X][xX+JG]&&
($X=K1*Math.PI/2,JG=V/2,O.moveTo(t+JG*Math.cos($X),QE+JG*Math.sin($X)),O.arc(t,QE,V/2,$X,$X+Math.PI/2,!1),O.lineTo(t+JG*(Math.cos($X)-Math.sin($X)),QE+JG*(Math.cos($X)+Math.sin($X))),O.lineTo(t+JG*Math.cos($X),QE+JG*Math.sin($X)))}}O.fill()}M&&O.drawImage(M,(a-T)*Y/2,(a-T)*Y/2,T*Y,T*Y);O.restore();n.style.removeProperty("display")};
b.src=_.ec(l);_.yQ(r)})};
_.c.hasCommunityPostRenderer=function(){var v,E,n,f;return!!((v=this.data)==null?0:(E=v.header)==null?0:(n=E.sharePanelHeaderRenderer)==null?0:(f=n.communityPost)==null?0:f.communityPostSectionRenderer)};
_.c.onTapClose=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.c.getScreenLayer=function(){return this.screenLayer};
_.c.logSharePanelPage=function(){if(!_.Z("enable_share_panel_navigation_logging_fix_on_web")){var v;if((v=this.data)!=null&&v.trackingParams){v=this.data.trackingParams;var E=this.parentClickTrackingParams;E=E?_.tx(E):void 0;var n=_.Tl();_.Rs(n,21760,E,{layer:7,parentLayer:0});n.graftServerVe(v,void 0,7);_.dG().dispatch(_.un({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
nO.prototype.onDataChanged=nO.prototype.onDataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],nO.prototype,"data",void 0);_.k([_.H({value:_.tQ("SBOX_INAPPROPRIATE_CANCEL")}),_.W("design:type",String)],nO.prototype,"closeButtonAriaLabel",void 0);_.k([_.Wp("yt-share-panel-header-renderer"),_.W("design:type",HTMLElement)],nO.prototype,"header",void 0);_.k([_.H({selector:function(v){return v.share.parentClickTrackingParams}}),
_.W("design:type",String)],nO.prototype,"parentClickTrackingParams",void 0);_.k([_.H(),_.W("design:type",Object)],nO.prototype,"qrCodeEnabled",void 0);_.k([_.Wp("#scroller"),_.W("design:type",Object)],nO.prototype,"JSC$17730_scroller",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nO.prototype,"onDataChanged",null);nO=_.k([_.N({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],nO);
_.u(nO,"ytd-unified-share-panel-renderer",function(){if(Yq6!==void 0)return Yq6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Yq6=v},{mode:1});var xvM;var on=function(){var v=_.g.apply(this,arguments)||this;v.modernModal=_.Z("kevlar_sign_in_modal_modernization");return v};
_.S(on,_.g);on.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
on.prototype.computeShouldHideOldButtons=function(){var v;return!((v=this.data)==null?0:v.button)};
_.hK.Object.defineProperties(on.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var v,E;if(this.modernModal&&((v=this.data)==null?0:(E=v.button)==null?0:E.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var n,f;return(n=this.data)==null?void 0:(f=n.button)==null?void 0:f.buttonRenderer}}});
_.k([_.H(),_.W("design:type",Object)],on.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],on.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],on.prototype,"modernModal",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],on.prototype,"buttonRendererData",null);
on=_.k([_.N({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],on);
_.u(on,"ytd-modal-with-title-and-button-renderer",function(){if(xvM!==void 0)return xvM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xvM=v},{mode:1});var cLP;var fO=function(){return _.g.apply(this,arguments)||this};
_.S(fO,_.g);fO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("page-changed",this.page))};
fO.prototype.pageChangedForBinding=fO.prototype.pageChangedForBinding;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],fO.prototype,"page",void 0);_.k([_.On("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fO.prototype,"pageChangedForBinding",null);
fO=_.k([_.N({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],fO);
_.u(fO,"ytd-account-item-section-header-renderer",function(){if(cLP!==void 0)return cLP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cLP=v},{mode:1});var yL1;var xT=function(){return _.g.apply(this,arguments)||this};
_.S(xT,_.g);xT.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"}}}};
xT.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],xT.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xT.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Function)],xT.prototype,"onAccountItemTap",void 0);
xT=_.k([_.N({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],xT);
_.u(xT,"ytd-account-item-section-renderer",function(){if(yL1!==void 0)return yL1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yL1=v},{mode:1});var pYb;var QaC;var cr=function(){return _.g.apply(this,arguments)||this};
_.S(cr,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cr.prototype,"data",void 0);cr=_.k([_.N({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],cr);
_.u(cr,"ytd-accounts-dialog-header-renderer",function(){if(QaC!==void 0)return QaC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return QaC=v},{mode:1});var XYd;var y5=function(){return _.g.apply(this,arguments)||this};
_.S(y5,_.g);y5.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],y5.prototype,"data",void 0);y5=_.k([_.N({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],y5);
_.u(y5,"ytd-google-account-header-renderer",function(){if(XYd!==void 0)return XYd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return XYd=v},{mode:1});var pO=function(){return _.g.apply(this,arguments)||this};
_.S(pO,_.g);pO.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"}}}};
pO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("page-changed",this.page))};
pO.prototype.pageChangedForBinding=pO.prototype.pageChangedForBinding;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],pO.prototype,"page",void 0);
_.k([_.On("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pO.prototype,"pageChangedForBinding",null);pO=_.k([_.N({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],pO);
_.Dj()(pO,"ytd-account-section-list-renderer",function(){if(pYb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);pYb=v}v=pYb;return v},{allowedProps:["data"],
mode:1});var eeO;var Q5=function(){var v=_.g.apply(this,arguments)||this;v.enableHandlesAccountMenuSwitcher=_.Z("enable_handles_account_menu_switcher");return v};
_.S(Q5,_.g);Q5.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Q5.prototype.dataChanged=Q5.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Q5.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Q5.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.k([_.Wp("#avatar"),_.W("design:type",Object)],Q5.prototype,"avatar",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q5.prototype,"dataChanged",null);Q5=_.k([_.N({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Q5);
_.Dj()(Q5,"ytd-active-account-header-renderer",function(){if(eeO===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);eeO=v}v=eeO;return v},{allowedProps:["data"],
mode:1});var F0K;var mv6;var Xj=function(){return _.g.apply(this,arguments)||this};
_.S(Xj,_.g);Xj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Xj.prototype.onBackTap=function(){_.jK(this.hostElement,"yt-menu-back-tapped")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Xj.prototype,"data",void 0);Xj=_.k([_.N({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Xj);
_.Dj()(Xj,"ytd-simple-menu-header-renderer",function(){if(mv6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);mv6=v}v=mv6;return v},{allowedProps:["data"],
mode:2});var wYb;var ed=function(){return _.g.apply(this,arguments)||this};
_.S(ed,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ed.prototype,"data",void 0);ed=_.k([_.N({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],ed);
_.u(ed,"ytd-comment-video-thumbnail-header-renderer",function(){if(wYb!==void 0)return wYb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wYb=v},{mode:1});var biM;var Fj=function(){return _.g.apply(this,arguments)||this};
_.S(Fj,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fj.prototype,"data",void 0);Fj=_.k([_.N({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Fj);
_.u(Fj,"ytd-abuse-type-selector-renderer",function(){if(biM!==void 0)return biM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return biM=v},{mode:1});var l80;var m1=function(){return _.g.apply(this,arguments)||this};
_.S(m1,_.g);m1.prototype.attached=function(){var v=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){v.additionalContextInput.focusTextInput()})};
m1.prototype.handleAdditionalContextChanged=function(){var v=this;_.lz(this,"ytd-report-channel-additional-context-update",function(){v.ytdReduxBehavior.dispatch(_.un({type:"ADDITIONAL_CONTEXT_UPDATED",payload:v.additionalContext}))},300)};
m1.prototype.updateAdditionalContextFromBinding=function(v){this.additionalContext=v.detail.value};
m1.prototype.handleAdditionalContextChanged=m1.prototype.handleAdditionalContextChanged;_.k([_.h(_.PL),_.W("design:type",Object)],m1.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",String)],m1.prototype,"additionalContext",void 0);_.k([_.H({selector:function(v){return v.reportChannelAbuse.additionalContext}}),
_.W("design:type",String)],m1.prototype,"additionalContextRedux",void 0);_.k([_.H(),_.W("design:type",Object)],m1.prototype,"data",void 0);_.k([_.Wp("yt-text-input-form-field-renderer"),_.W("design:type",Object)],m1.prototype,"additionalContextInput",void 0);_.k([_.On("additionalContext"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m1.prototype,"handleAdditionalContextChanged",null);
m1=_.k([_.N({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],m1);
_.u(m1,"ytd-report-channel-modal-additional-context-renderer",function(){if(l80!==void 0)return l80;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return l80=v},{mode:1});var saR;var wS=function(){var v=_.g.apply(this,arguments)||this;v.nextButtonDisabled=null;v.submitEndpoint=null;v.navigationEndpoint=null;v.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return v};
_.S(wS,_.g);_.c=wS.prototype;_.c.computeNextButtonData=function(v,E,n){var f={};E&&(f.navigationEndpoint=E);n&&(f.serviceEndpoint=n);v&&v.buttonRenderer&&_.sh.extend(f,v.buttonRenderer);return f};
_.c.handleReportChannelModalDisableNextButtonAction=function(v){this.setNextButtonIsDisabled(v)};
_.c.handleReportFormEndpointUpdateAction=function(v){this.setNextButtonIsDisabled(!!v.disableSubmitButton);this.resetEndpointData();v.submitEndpoint?this.submitEndpoint=v.submitEndpoint:v.submitNavigationEndpoint&&(this.navigationEndpoint=v.submitNavigationEndpoint)};
_.c.handleSignalActionSubmitForm=function(){var v,E=Object.keys(((v=this.reportChannelAbuseForm)==null?void 0:v.selectedVideoIds)||{}),n;v=((n=this.reportChannelAbuseForm)==null?void 0:n.additionalContext)||"";var f;n=((f=this.reportChannelAbuseForm)==null?void 0:f.impersonatedChannelUrl)||"";var x;if((x=this.data)==null?0:x.submitEndpoint){E={impersonated_channel_url:n,text:v,video_ids:E};var y;_.P().resolve(_.OO).resolveCommand((y=this.data)==null?void 0:y.submitEndpoint,{form:Object.assign({},
E,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.c.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.c.onYtServiceRequestError=function(v){this.setNextButtonIsDisabled(!1);_.aN(this.hostElement,v.detail.error.message)};
_.c.setNextButtonIsDisabled=function(v){this.set("data.nextButton.buttonRenderer.isDisabled",v)};
_.c.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
wS.prototype.onYtServiceRequestError=wS.prototype.onYtServiceRequestError;wS.prototype.onYtServiceRequestCompleted=wS.prototype.onYtServiceRequestCompleted;_.k([_.H(),_.W("design:type",Object)],wS.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],wS.prototype,"nextButtonDisabled",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],wS.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wS.prototype,"submitEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],wS.prototype,"navigationEndpoint",void 0);_.k([_.H({selector:function(v){return v.reportChannelAbuse}}),
_.W("design:type",Object)],wS.prototype,"reportChannelAbuseForm",void 0);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wS.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wS.prototype,"onYtServiceRequestError",null);
wS=_.k([_.N({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],wS);
_.u(wS,"ytd-report-channel-modal-footer-renderer",function(){if(saR!==void 0)return saR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return saR=v},{mode:1});var rLx;var bp=function(){var v=_.g.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.closePopup()};
return v};
_.S(bp,_.g);bp.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
bp.prototype.handleDataChanged=function(){_.dh(this.hostElement)};
bp.prototype.closePopup=function(){_.OL(this.hostElement,"yt-close-popup-action")};
bp.prototype.handleDataChanged=bp.prototype.handleDataChanged;_.k([_.H(),_.W("design:type",Object)],bp.prototype,"boundOnTapDismissButton",void 0);_.k([_.H(),_.W("design:type",Object)],bp.prototype,"data",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bp.prototype,"handleDataChanged",null);bp=_.k([_.N({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],bp);
_.u(bp,"ytd-report-channel-modal-header-renderer",function(){if(rLx!==void 0)return rLx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return rLx=v},{mode:1});var Pdb;var lp=function(){var v=_.g.apply(this,arguments)||this;v.autoValidate=!1;v.invalid=!1;v.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return v};
_.S(lp,_.g);_.c=lp.prototype;_.c.attached=function(){var v=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){v.channelUrlInput.focusTextInput()})};
_.c.disableNextButton=function(v){_.OL(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[v])};
_.c.handleImpersonatedChannelUrlChanged=function(){var v=this;this.disableNextButton(!0);this.invalid=!1;_.lz(this,"ytd-report-channel-impersonated-channel-update",function(){var E=v.impersonatedChannelUrl.trim();v.ytdReduxBehavior.dispatch(_.un({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:E}));var n;((n=v.data)==null?0:n.submitEndpoint)&&E&&_.P().resolve(_.OO).resolveCommand(v.data.submitEndpoint,{form:{impersonated_channel_url:E,element:v.hostElement}})},500)};
_.c.handleModifyReportFormCommand=function(v){this.invalid=this.get("modifyReportFormCommand.action",v)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.c.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.c.updateImpersonatedChannelUrlFromBinding=function(v){this.impersonatedChannelUrl=v.detail.value};
lp.prototype.handleImpersonatedChannelUrlChanged=lp.prototype.handleImpersonatedChannelUrlChanged;_.k([_.h(_.PL),_.W("design:type",Object)],lp.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],lp.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lp.prototype,"autoValidate",void 0);_.k([_.H(),_.W("design:type",Object)],lp.prototype,"invalid",void 0);
_.k([_.H(),_.W("design:type",String)],lp.prototype,"impersonatedChannelUrl",void 0);_.k([_.H({selector:function(v){return v.reportChannelAbuse.impersonatedChannelUrl}}),
_.W("design:type",String)],lp.prototype,"impersonatedChannelUrlRedux",void 0);_.k([_.H(),_.W("design:type",Object)],lp.prototype,"data",void 0);_.k([_.Wp("#text-input"),_.W("design:type",Object)],lp.prototype,"channelUrlInput",void 0);_.k([_.On("impersonatedChannelUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lp.prototype,"handleImpersonatedChannelUrlChanged",null);
lp=_.k([_.N({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],lp);
_.u(lp,"ytd-report-channel-modal-impersonation-renderer",function(){if(Pdb!==void 0)return Pdb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Pdb=v},{mode:1});var a8p;var ZiC;var sF=function(){return _.g.apply(this,arguments)||this};
_.S(sF,_.g);sF.prototype.onCheckboxToggled=function(v){var E,n,f=(n=_.C((E=this.data)==null?void 0:E.video,_.gOF))==null?void 0:n.videoId;f&&this.ytdReduxBehavior.dispatch(v.target.checked?_.un({type:"VIDEO_SELECTED",payload:f}):_.un({type:"VIDEO_UNSELECTED",payload:f}))};
sF.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.hK.Object.defineProperties(sF.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var v,E=(v=this.data)==null?void 0:v.video;if(!E)return{};var n;v=(n=_.C(E,_.gOF))==null?void 0:n.navigationEndpoint;if(!v)return E;_.C(v==null?void 0:v.commandMetadata,_.Dl)&&(_.C(v.commandMetadata,_.Dl).ignoreNavigation=!0);return E}}});
_.k([_.H({reflectToAttribute:!0,selector:function(v,E){return E in v.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.W("design:type",Boolean)],sF.prototype,"checked",void 0);_.k([_.H(),_.W("design:type",Object)],sF.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],sF.prototype,"video",null);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],sF.prototype,"ytdReduxBehavior",void 0);sF=_.k([_.N({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],sF);
_.u(sF,"ytd-selectable-video-renderer",function(){if(ZiC!==void 0)return ZiC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZiC=v},{mode:1});var rS=function(){var v=_.g.apply(this,arguments)||this;v.monitorScroll=!0;return v};
_.S(rS,_.g);rS.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rS.prototype,"data",void 0);rS=_.k([_.N({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],rS);
_.u(rS,"ytd-selectable-video-list-renderer",function(){if(a8p!==void 0)return a8p;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return a8p=v},{mode:1});var Cd6;_.ew("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Pr=function(){return _.g.apply(this,arguments)||this};
_.S(Pr,_.g);Pr.prototype.onChange=function(v){if(v=_.Sk(v).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Z("kevlar_command_handler_migration_killswitch"))_.LG(this.hostElement,v,this.hostElement);else{v=_.p(v);for(var E=v.next();!E.done;E=v.next())this.ytComponentBehavior.resolveCommand(E.value)}};
Pr.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Pr.prototype.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Pr.prototype,"data",void 0);_.k([_.H({computed:"isEnabled(data)"}),_.W("design:type",Boolean)],Pr.prototype,"enabled",void 0);Pr=_.k([_.N({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Pr);
_.u(Pr,"ytd-toggle-item-renderer",function(){if(Cd6!==void 0)return Cd6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Cd6=v},{mode:1});var ML3;var S$d;var Uvp;var an=function(){var v=_.g.apply(this,arguments)||this;v.setVisible=!1;v.boundOnSubmitButtonClick=function(){v.onSubmitButtonClick()};
v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.S(an,_.g);an.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}}}}}};
an.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
an.prototype.onSubmitButtonClick=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&!_.Z("enable_ytc_refunds_submit_form_signal_action")&&_.$Z(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
an.prototype.handleSignalActionSubmitForm=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&_.$Z(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.hK.Object.defineProperties(an.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hiddenByDefault)&&!this.setVisible}}});
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],an.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],an.prototype,"setVisible",void 0);_.k([_.H(),_.W("design:type",Object)],an.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],an.prototype,"surveyFeedbackData",void 0);_.k([_.H(),_.W("design:type",Object)],an.prototype,"boundOnSubmitButtonClick",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data","setVisible"),_.W("design:type",Object),_.W("design:paramtypes",[])],an.prototype,"visibilityHidden",null);an=_.k([_.p5({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],an);
_.u(an,"yt-flow-footer-renderer",function(){if(Uvp===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;S$d===void 0&&(S$d=document.createElement("template"));var f=S$d;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Uvp=v}v=Uvp;return v},{mode:2});var Z3=function(){return _.g.apply(this,arguments)||this};
_.S(Z3,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Z3.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Z3.prototype,"data",void 0);_.k([_.H({selector:function(v){return v.ypc.surveyFeedbackData}}),
_.W("design:type",Object)],Z3.prototype,"surveyFeedbackData",void 0);Z3=_.k([_.N({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Z3);
_.u(Z3,"ytd-flow-footer-renderer",function(){if(ML3!==void 0)return ML3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ML3=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var q$p;var JLx;var CO=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return v};
_.S(CO,_.g);_.c=CO.prototype;_.c.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Fm("multiPageMenuSectionItems")}}};
_.c.handleHideEnclosingAction_=function(v){if(this.data&&this.data.items)for(var E=0;E<this.data.items.length;E++){var n=this.data.items[E].notificationRenderer;if(n&&n.notificationId==v.hideEnclosingAction.notificationId){this.splice("data.items",E,1);_.OL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.c.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.D_(this.hostElement,"hidden",!0)};
_.c.updateMenu_=function(v){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&v&&!v.doNotRefreshInbox){v=this.data.continuations;for(var E=0;E<v.length;E++)if(v[E].invalidationContinuationData){var n=void 0;var f=(n=v[E].invalidationContinuationData)==null?void 0:n.continuation;break}v=_.sh.clone(this.data.continuationUpdateEndpoint||null);v.continuation=f;v.click_tracking_params=this.data.trackingParams;_.$Z(this.hostElement,[v])}};
_.c.onServiceRequestCompleted_=function(v,E){if(this.data&&(v=E.actions)){E=0;for(var n=v.length;E<n;E++){var f=_.C(v[E],_.Wez);if(!f)break;if((f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||f.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&f.continuationItems&&this.data.items){var x=this.data.items.length-1;this.data.items[x].continuationItemRenderer&&this.splice.apply(this,["data.items",x,1].concat(f.continuationItems))}}}};
CO.prototype.onServiceRequestCompleted_=CO.prototype.onServiceRequestCompleted_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],CO.prototype,"data",void 0);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],CO.prototype,"onServiceRequestCompleted_",null);CO=_.k([_.p5({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],CO);
_.Dj()(CO,"yt-multi-page-menu-section-renderer",function(){if(JLx===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;q$p===void 0&&(q$p=document.createElement("template"));var f=q$p;n.call(E,f.content.cloneNode(!0),v.content.firstChild);JLx=v}v=JLx;return v},{allowedProps:["data"],
mode:2});var K0_;var dvP;var Mk=function(){return _.g.apply(this,arguments)||this};
_.S(Mk,_.g);Mk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.hK.Object.defineProperties(Mk.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)==null?0:this.data.progress*100}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Mk.prototype,"data",void 0);_.k([_.A("data.progress"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Mk.prototype,"showProgressBar",null);
_.k([_.A("data.progress"),_.W("design:type",Number),_.W("design:paramtypes",[])],Mk.prototype,"progress",null);Mk=_.k([_.p5({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Mk);
_.u(Mk,"yt-flow-header-renderer",function(){if(dvP===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;K0_===void 0&&(K0_=document.createElement("template"));var f=K0_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);dvP=v}v=dvP;return v},{mode:2});var I86;var Y$O;var Sd=function(){return _.g.apply(this,arguments)||this};
_.S(Sd,_.g);Sd.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Sd.prototype,"data",void 0);Sd=_.k([_.p5({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Sd);
_.u(Sd,"yt-post-confirmation-flow-step-renderer",function(){if(Y$O===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;I86===void 0&&(I86=document.createElement("template"));var f=I86;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Y$O=v}v=Y$O;return v},{mode:2});var heO;var ALO;var UF=function(){return _.g.apply(this,arguments)||this};
_.S(UF,_.g);
UF.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UF.prototype,"data",void 0);UF=_.k([_.p5({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],UF);
_.u(UF,"yt-refund-confirmation-flow-step-renderer",function(){if(ALO===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;heO===void 0&&(heO=document.createElement("template"));var f=heO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ALO=v}v=ALO;return v},{mode:2});_.Nw(sb_);_.Nw(rCU);var PxU=_.p7({avatarViewModel:_.s_});_.Nw(aG1);var ZCx=_.p7({commentInteractionViewModel:rCU,sharedSubscriptionViewModel:aG1,buttonViewModel:_.C7});_.Nw(CxK);_.Nw(MNP);_.Nw(Sb1);_.Nw(UDp);_.Nw(qbO);var JCd=_.p7({profileIdentityInfoViewModel:_.OsR,profileInfoViewModel:qbO});_.Nw(KWM);_.uj(KWM,"yt-profile-card-view-model",{propNames:["data"]});var qk=function(){var v=_.g.apply(this,arguments)||this;v.enableFocusFix=_.Z("music_web_enable_focus_on_setting_menu_fix")&&_.Sp("IS_MOBILE_WEB",!1);v.covered=!1;v.hideMenu=!1;v.isCommentNotificationOnProfileCard=!1;v.scrolledByTouch=!1;v.disableBackdropFilter=_.Z("web_disable_backdrop_filter");v.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return v};
_.S(qk,_.g);_.c=qk.prototype;
_.c.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"}}}};
_.c.ready=function(){var v=this;this.JSC$17839_containerElement.addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.c.attributeChanged=function(v,E){v==="menu-style"&&_.OL(this.hostElement,"yt-multi-page-menu-closed-action",[E])};
_.c.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.uo(this,this.focusOnStampFinished))};
_.c.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.uo(this,this.focusOnStampFinished))};
_.c.reset=function(){this.closeJobId&&(_.wh.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.c.focusOnStampFinished=function(v){v.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.uo(this,this.focusOnStampFinished)),this.doFocus())};
_.c.doFocus=function(){var v=_.nC1(this.sectionsElement);v.length&&v[0].focus()};
_.c.computeMenuStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c.computeIsCommentNotificationOnProfileCard=function(v){return _.Z("enable_profile_cards_on_comments")&&v.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.c.computeHideMenu=function(v,E){return v||!(!E||!E.showLoadingSpinner)};
_.c.onPopupClosed=function(){this.isPopUpOpen=!1;_.OL(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.c.onPopupOpened=function(v,E){this.isPopUpOpen=!0;E.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.jK(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.un({type:"CHANNEL_REPORT_RESET"})))};
_.c.onYtNavigate=function(v,E){this.shouldCloseOnNavigateEvent(E.endpoint)&&_.OL(this.hostElement,"yt-close-all-popups-action")};
_.c.handleEndpoint=function(v){v=_.C(v,_.Cg);!this.isCommentNotificationOnProfileCard&&v&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17839_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.c.handleActions=function(v){for(var E=0,n=v.length;E<n;E++){var f=_.C(v[E],ktM);f&&this.handleGetMultiPageMenuAction(f);(f=_.C(v[E],_.Wez))&&this.handleAppendContinuationItemsAction(f)}};
_.c.onServiceRequestSentOrCompleted=function(v,E){v.detail&&v.detail.endpoint&&this.handleEndpoint(v.detail.endpoint);E.actions&&this.handleActions(E.actions)};
_.c.handleGetMultiPageMenuAction=function(v){var E=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.K(this.submenuElement).appendChild(E);(v=v.menu.multiPageMenuRenderer)&&this.logSubmenu(v);E.data=v;E.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.c.handleAppendContinuationItemsAction=function(v){if(this.data&&v.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&v.continuationItems&&this.data.sections){var E=this.data.sections.length-1;this.data.sections[E].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),E--);if(this.data.sections[E].multiPageMenuNotificationSectionRenderer&&v.continuationItems){v=_.p(v==null?void 0:v.continuationItems);for(var n=v.next();!n.done;n=v.next())if(n=n.value,_.C(n,bgP)){var f=
void 0,x=void 0,y=void 0,Q=void 0,e=void 0;((f=this)==null?0:(x=f.data)==null?0:(y=x.sections)==null?0:(Q=y[E])==null?0:(e=Q.multiPageMenuNotificationSectionRenderer)==null?0:e.items)&&this.push("data.sections."+E+".multiPageMenuNotificationSectionRenderer.items",n)}else if(_.C(n,_.d9l)||_.C(n,_.ty))this.push("data.sections",n),E++}}};
_.c.logSubmenu=function(v){if(!_.Z("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var E=this.ytRendererBehavior.getScreenLayer(),n=_.lc(E),f=_.bc(E);if((v=v.trackingParams)&&n&&f){var x=_.tx(v);_.Z("combine_ve_grafts")?_.Tl().graftServerVe(v,f,E):_.aQ(n,f,x)}}};
_.c.emptySubmenuContainer=function(){for(var v=_.K(this.submenuElement);v.firstChild;)v.removeChild(v.firstChild)};
_.c.onMenuBackTap=function(v){_.jK(this.hostElement,"yt-submenu-closed");v.stopPropagation()};
_.c.onSubmenuClosed=function(v){_.Sk(v)!==this.hostElement&&(this.covered=!1,_.jK(this.hostElement,"yt-refit"),v.stopPropagation())};
_.c.onRetrieveLocation=function(v,E){E.hasComments&&(E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),v.stopPropagation())};
_.c.shouldCloseOnNavigateEvent=function(v){if(!v)return!0;if(_.C(v,_.qGo)||_.C(v,_.JTX)||_.C(v,_.U7g)||_.C(v,_.Us))return!1;var E;return((E=_.C(v==null?void 0:v.commandMetadata,_.Dl))==null?0:E.ignoreNavigation)?!1:!0};
_.c.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.c.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.c.refitAfterRender=function(){var v=this;_.IS(this,function(){_.jK(v.hostElement,"yt-refit")})};
qk.prototype.refitAfterRender=qk.prototype.refitAfterRender;qk.prototype.onRetrieveLocation=qk.prototype.onRetrieveLocation;qk.prototype.onSubmenuClosed=qk.prototype.onSubmenuClosed;qk.prototype.onMenuBackTap=qk.prototype.onMenuBackTap;qk.prototype.onServiceRequestSentOrCompleted=qk.prototype.onServiceRequestSentOrCompleted;qk.prototype.onYtNavigate=qk.prototype.onYtNavigate;qk.prototype.onPopupOpened=qk.prototype.onPopupOpened;qk.prototype.onPopupClosed=qk.prototype.onPopupClosed;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],qk.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],qk.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qk.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],qk.prototype,"enableFocusFix",void 0);_.k([_.H(),_.W("design:type",Object)],qk.prototype,"covered",void 0);_.k([_.H({computed:"computeHideMenu(covered, data)"}),_.W("design:type",Object)],qk.prototype,"hideMenu",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.W("design:type",String)],qk.prototype,"menuStyle",void 0);
_.k([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.W("design:type",Object)],qk.prototype,"isCommentNotificationOnProfileCard",void 0);_.k([_.H(),_.W("design:type",Boolean)],qk.prototype,"isPopUpOpen",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qk.prototype,"scrolledByTouch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qk.prototype,"disableBackdropFilter",void 0);
_.k([_.Wp("#sections"),_.W("design:type",HTMLElement)],qk.prototype,"sectionsElement",void 0);_.k([_.Wp("#spinner"),_.W("design:type",HTMLElement)],qk.prototype,"spinnerElement",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],qk.prototype,"headerElement",void 0);_.k([_.Wp("#container"),_.W("design:type",HTMLElement)],qk.prototype,"JSC$17839_containerElement",void 0);_.k([_.Wp("#submenu"),_.W("design:type",HTMLElement)],qk.prototype,"submenuElement",void 0);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qk.prototype,"onPopupClosed",null);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],qk.prototype,"onPopupOpened",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],qk.prototype,"onYtNavigate",null);
_.k([_.jk("yt-service-request-completed"),_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],qk.prototype,"onServiceRequestSentOrCompleted",null);_.k([_.jk("yt-menu-back-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qk.prototype,"onMenuBackTap",null);
_.k([_.jk("yt-submenu-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qk.prototype,"onSubmenuClosed",null);_.k([_.jk("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],qk.prototype,"onRetrieveLocation",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qk.prototype,"refitAfterRender",null);
qk=_.k([_.N({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],qk);
_.u(qk,"ytd-multi-page-menu-renderer",function(){if(F0K!==void 0)return F0K;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return F0K=v},{mode:1});var VLK;var JE=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return v};
_.S(JE,_.g);_.c=JE.prototype;_.c.created=function(){this.showTooltips=!0};
_.c.computeAccessibility_=function(v){return this.get("accessibility.accessibilityData",v)||null};
_.c.onTap=function(){var v=_.kZ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(v&&v.length===1&&v[0])_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var E;if((E=this.data)==null?0:E.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var n;((n=this.data)==null?0:n.menuRequest)&&_.$Z(this.hostElement,[this.data.menuRequest])}}};
_.c.handleTopbarMenuClosedAction=function(v){var E,n;(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(v)===((E=this.data)==null?void 0:(n=E.icon)==null?void 0:n.iconType)&&this.toggleIconState(!1)};
_.c.toggleIconState=function(v){_.Z("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=v)};
_.c.handleUpdateTopbarAvatarAction=function(v){var E;v=(E=_.C(v,DhC))==null?void 0:E.avatarUrl;var n,f;E=(n=this.data)==null?void 0:(f=n.avatar)==null?void 0:f.thumbnails;v&&E&&(n={thumbnails:[Object.assign({},E[0],{url:v})]},this.set("data.avatar",n))};
_.hK.Object.defineProperties(JE.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#button")}}});
JE.prototype.onTap=JE.prototype.onTap;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],JE.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],JE.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.hTg.YtButtonBehavior),_.W("design:type",Object)],JE.prototype,"ytButtonBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],JE.prototype,"data",void 0);
_.k([_.Wp("yt-icon-button#button"),_.W("design:type",Object)],JE.prototype,"iconButton",void 0);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JE.prototype,"onTap",null);JE=_.k([_.N({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],JE);
_.u(JE,"ytd-topbar-menu-button-renderer",function(){if(VLK!==void 0)return VLK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return VLK=v},{mode:1});var DvR;var KO=function(){return _.g.apply(this,arguments)||this};
_.S(KO,_.g);KO.prototype.getSelected=function(){return this.reasons.selected};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],KO.prototype,"data",void 0);_.k([_.Wp("#reasons"),_.W("design:type",Object)],KO.prototype,"reasons",void 0);KO=_.k([_.N({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],KO);
_.u(KO,"ytd-ad-feedback-content",function(){if(DvR!==void 0)return DvR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DvR=v},{mode:1});var Hix;var dS=function(){return _.g.apply(this,arguments)||this};
_.S(dS,_.g);_.c=dS.prototype;_.c.onPopupOpened=function(){_.OL(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.c.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
_.c.computeCancelButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.cancelLabel}};
_.c.onConfirmTap=function(){var v=this.content.getSelected();v!==void 0&&(v=this.data.reasons[v].endpoint)&&(_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}}),_.OL(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.c.sendFeedbackSubmitToastAction=function(){var v;(v=this.data)!=null&&v.completionMessage&&_.OL(this.hostElement,"yt-open-popup-action",[_.hC(this.data.completionMessage),this])};
_.c.onCancelTap=function(){_.OL(this.hostElement,"yt-close-popup-action")};
dS.prototype.onPopupOpened=dS.prototype.onPopupOpened;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dS.prototype,"data",void 0);_.k([_.Wp("#content"),_.W("design:type",Object)],dS.prototype,"content",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dS.prototype,"onPopupOpened",null);
dS=_.k([_.N({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],dS);
_.u(dS,"ytd-ad-feedback-renderer",function(){if(Hix!==void 0)return Hix;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Hix=v},{mode:1});var gU_;var In=function(){return _.g.apply(this,arguments)||this};
_.S(In,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],In.prototype,"data",void 0);In=_.k([_.N({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],In);
_.u(In,"ytd-ad-info-dialog-content",function(){if(gU_!==void 0)return gU_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gU_=v},{mode:1});var Nz_;var hE=function(){return _.g.apply(this,arguments)||this};
_.S(hE,_.g);hE.prototype.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
hE.prototype.onConfirmTap=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
hE.prototype.computeShouldShowTitle=function(){var v;return!((v=this.data)==null||!v.title)};
hE.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
hE.prototype.onPopupClosed=hE.prototype.onPopupClosed;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hE.prototype,"data",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hE.prototype,"onPopupClosed",null);hE=_.k([_.N({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],hE);
_.u(hE,"ytd-ad-info-dialog-renderer",function(){if(Nz_!==void 0)return Nz_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Nz_=v},{mode:1});var uQd;var AE=function(){var v=_.g.apply(this,arguments)||this;v.actionButtonClass="action-button";v.dismissButtonId="dismiss-button";v.dialogDismiss=!0;return v};
_.S(AE,_.g);_.c=AE.prototype;_.c.computeInPlayer=function(v){return(v==null?void 0:v.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.c.computedLogo=function(){var v,E;return this.isDarkTheme()?(v=this.data)==null?void 0:v.logoDark:(E=this.data)==null?void 0:E.logo};
_.c.computedHeaderImage=function(){var v,E;return this.isDarkTheme()?(v=this.data)==null?void 0:v.headerImageDark:(E=this.data)==null?void 0:E.headerImage};
_.c.computeLogoIconId=function(){var v,E,n,f=(v=this.computedLogo())==null?void 0:(E=v.sources)==null?void 0:(n=E[0])==null?void 0:n.height;return f&&f%31===0?"logo-icon-with-padding":"logo-icon"};
_.c.computeLogoIconHeight=function(){var v,E,n,f=(v=this.computedLogo())==null?void 0:(E=v.sources)==null?void 0:(n=E[0])==null?void 0:n.height;return f&&f%31===0?"31":"24"};
_.c.onPopupClosed=function(){_.P().resolve(_.Wd).dispose()};
_.c.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.c.onShow=function(){this.inPlayer&&_.Te(6)};
_.c.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++){var E=_.C(this.data.impressionEndpoints[v],_.eg);E&&this.ytComponentBehavior.resolveCommand(E)}};
_.c.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.OL(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.hK.Object.defineProperties(AE.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var v,E;return!((v=this.data)==null||!v.headerImageDark)&&!((E=this.data)==null||!E.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.secondaryButton)}}});
AE.prototype.onPopupClosed=AE.prototype.onPopupClosed;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],AE.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.M2.YtVisibilityBehavior),_.W("design:type",Object)],AE.prototype,"ytVisibilityBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],AE.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],AE.prototype,"actionButtonClass",void 0);_.k([_.H(),_.W("design:type",Object)],AE.prototype,"dismissButtonId",void 0);_.k([_.H(),_.W("design:type",Object)],AE.prototype,"dialogDismiss",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],AE.prototype,"hasHeaderImage",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],AE.prototype,"hasPremiumButton",null);
_.k([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.W("design:type",Boolean)],AE.prototype,"inPlayer",void 0);_.k([_.Wp("#dismiss-button"),_.W("design:type",HTMLElement)],AE.prototype,"dismissButton",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AE.prototype,"onPopupClosed",null);AE=_.k([_.N({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],AE);
_.u(AE,"ytd-enforcement-message-view-model",function(){if(uQd!==void 0)return uQd;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return uQd=v},{mode:1});var ja1;var OiC;var V5=function(){var v=_.g.apply(this,arguments)||this;v.TEST_ONLY={immediateValidation:function(){v.immediateValidation()},
onValidationResponse:function(E){v.onValidationResponse(E)},
onGenerateHandleFromNameResponse:function(E){v.onGenerateHandleFromNameResponse(E)}};
return v};
_.S(V5,_.g);_.c=V5.prototype;_.c.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.c.validate=function(){this.immediateValidation()};
_.c.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.c.setHandleInputValue=function(v){this.handleDir=this.getHandleDir(v);this.handleInput.value=v;this.validationState={status:"PENDING"};this.immediateValidation()};
_.c.getHandleDir=function(v){var E=v===""&&!1;return(E=_.iZX.test.call(_.iZX,v))?"rtl":"ltr"};
_.c.onDataChanged=function(){var v,E;this.handleDir=this.getHandleDir((E=(v=this.data)==null?void 0:v.handle)!=null?E:"");var n;this.validationState=((n=this.data)==null?0:n.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var f;((f=this.data)==null?0:f.validateOnInit)&&this.immediateValidation()};
_.c.stopPropagation=function(v){v.stopPropagation()};
_.c.onInput=function(){var v;this.handleDir=this.getHandleDir((v=this.handleInput.value)!=null?v:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.c.onFocusout=function(v){this.handleInput.contains(v.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.c.delayedValidation=function(){var v,E;this.debouncedValidation((E=(v=this.data)==null?void 0:v.validationDelayMs)!=null?E:1E3)};
_.c.immediateValidation=function(){this.debouncedValidation(0)};
_.c.debouncedValidation=function(v){var E=this;_.lz(this,"debouncedValidation",function(){var n,f=E.staticValidation((n=E.handleInput.value)!=null?n:"");if(f!==void 0)E.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:f};else{var x;if((x=E.data)!=null&&x.validateChannelHandleCommand){E.validationState={status:"LOADING"};var y;E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{handle:(y=E.handleInput.value)!=null?y:""},commandController:{onSuccess:function(Q,
e){E.onValidationResponse(e)},
onServerError:function(Q,e){E.onValidationServerError(e)}}})}else E.handleUnexpectedValidationError(new _.yc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",E.data))}},v)};
_.c.staticValidation=function(v){var E;if(((E=this.data)==null?void 0:E.channelHandleStaticValidationParams)!==void 0){E=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(v)&&E.validValueRegexpErrorMessage!==void 0)return E.validValueRegexpErrorMessage;if(E.minLength!==void 0&&v.length<E.minLength&&E.minLengthErrorMessage!==void 0)return E.minLengthErrorMessage;if(E.maxLength!==void 0&&v.length>E.maxLength&&E.maxLengthErrorMessage!==void 0)return E.maxLengthErrorMessage}};
_.c.onValidationResponse=function(v){var E=_.C(v.result,HM0);E===void 0?this.handleUnexpectedValidationError(new _.yc("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",v)):this.handleValidationResultRenderer(E)};
_.c.onValidationServerError=function(v){this.handleUnexpectedValidationError(new _.yc("ValidateChannelHandle request failed.",v))};
_.c.handleValidationResultRenderer=function(v){if(v.handle===void 0)this.handleUnexpectedValidationError(new _.yc("ChannelHandleValidationResultRenderer does not contain handle.",v));else if(v.handle===this.handleInput.value)switch(v.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:v.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:v.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.yc("Unrecognized ChannelHandleValidationResult",v));break;default:_.p0(v.result)}};
_.c.handleUnexpectedValidationError=function(v){var E;this.validationState={status:"UNKNOWN",handle:(E=this.handleInput.value)!=null?E:""};_.li(v)};
_.c.stopEventPropagation=function(v){v.stopPropagation()};
_.c.updateHandleOnChannelNameInputChange=function(v){if(!this.wasEdited){var E,n;this.debouncedGenerateHandleFromName(v,(n=(E=this.data)==null?void 0:E.validationDelayMs)!=null?n:1E3)}};
_.c.debouncedGenerateHandleFromName=function(v,E){var n=this;_.lz(this,"debouncedGenerateHandleFromName",function(){var f;(f=n.data)!=null&&f.validateChannelHandleCommand?n.ytComponentBehavior.resolveCommand(n.data.validateChannelHandleCommand,{form:{name:v},commandController:{onSuccess:function(x,y){n.onGenerateHandleFromNameResponse(y)},
onServerError:function(x,y){_.li(new _.yc("Error calling GenerateHandleFromName",y))}}}):_.li(new _.yc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",n.data))},E)};
_.c.onGenerateHandleFromNameResponse=function(v){this.wasEdited||((v=_.C(v.result,gOO))?this.setHandleInputValue(v.handle):_.li(new _.yc("Invalid results when generate handle from name")))};
_.hK.Object.defineProperties(V5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var v;if(v=this.validationState)v=this.validationState,v=v.status==="OK"||v.status==="UNKNOWN";if(v)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.validationState)==null?void 0:v.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 v,E=(v=this.channelHandleEntity)==null?void 0:v.handleEdit;this.handleDir=this.getHandleDir(E!=null?E:"");return E}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var v,E;if(((v=this.data)==null?void 0:(E=v.channelHandleStaticValidationParams)==null?void 0:E.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
V5.prototype.stopEventPropagation=V5.prototype.stopEventPropagation;V5.prototype.onDataChanged=V5.prototype.onDataChanged;V5.prototype.applyHandleEdit=V5.prototype.applyHandleEdit;V5.prototype.onValueChanged=V5.prototype.onValueChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],V5.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],V5.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],V5.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Boolean)],V5.prototype,"wasEdited",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],V5.prototype,"handleDir",void 0);_.k([_.Wp("#handle-input"),_.W("design:type",Object)],V5.prototype,"handleInput",void 0);_.k([_.H(),_.A("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],V5.prototype,"value",null);
_.k([_.On("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V5.prototype,"onValueChanged",null);_.k([_.A("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],V5.prototype,"errorIndicator",null);_.k([_.H({reflectToAttribute:!0}),_.A("errorIndicator"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V5.prototype,"borderErrorIndicator",null);
_.k([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(v,E){return _.LH(v.entities,"channelHandle",E)}}),
_.W("design:type",Object)],V5.prototype,"channelHandleEntity",void 0);_.k([_.A("channelHandleEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],V5.prototype,"handleEdit",null);_.k([_.On("handleEdit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V5.prototype,"applyHandleEdit",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V5.prototype,"onDataChanged",null);
_.k([_.A("data.channelHandleStaticValidationParams.validValueRegexp"),_.W("design:type",Object),_.W("design:paramtypes",[])],V5.prototype,"validValueRegexp",null);_.k([_.jk("yt-service-request-sent"),_.jk("yt-service-request-completed"),_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V5.prototype,"stopEventPropagation",null);V5=_.k([_.N({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],V5);
_.u(V5,"ytd-channel-handle-input-renderer",function(){if(OiC!==void 0)return OiC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return OiC=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var D3=function(){var v=_.g.apply(this,arguments)||this;v.data=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!1;v.enableNewChannelCreationOnIdForAll=_.Z("enable_new_channel_creation_for_id4all");v.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"};v.testOnly={setErrorMessage:function(E){v.resetErrorState();
v.setErrorState(E)}};
return v};
_.S(D3,_.g);_.c=D3.prototype;_.c.created=function(){this.logScreenVe()};
_.c.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")};
_.c.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var v;((v=this.zeroStepErrorMessageEntity)==null?0:v.value)&&this.set("errorMessage",_.qD(this.zeroStepErrorMessageEntity.value))};
_.c.onCreateTap=function(){var v=this;if(this.data&&this.data.channelCreationEndpoint){var E,n;if(!((E=this.data.createChannelButton)==null?0:(n=E.buttonRenderer)==null?0:n.isDisabled)){var f;if((f=this.nameInput)!=null&&f.value){this.setLoadingState();var x,y;E=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(x=this.handleInput)==null?void 0:x.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((y=this.handleInput)==null?void 0:y.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:E,commandController:{onSuccess:function(Q,e){v.onChannelCreationEndpointSuccess(e);v.obakeImageSource&&_.eQ("channelCreatedWithObakeImage",{imageSourceType:v.obakeImageSource})},
onServerError:function(){v.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.c.endpointRequiresServiceRequestAction=function(v){return!!_.C(v,_.Uy)||!!_.C(v,DhC)};
_.c.isNavigateAction=function(v){var E;return!!_.C(v,_.KJ)||!!_.C((E=_.C(v,j1R))==null?void 0:E.command,_.KJ)};
_.c.isPlaylistAction=function(v){return!!_.C(v,_.Mb)||!!_.C(v,_.Kg)};
_.c.onChannelCreationEndpointSuccess=function(v){if(v.createChannelError){var E;this.setErrorState((E=v.createChannelError)==null?void 0:E.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.Z("enable_secondary_channel_creation_form")&&v.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(v.navigationEndpoint);if(v.actions){E=_.p(v.actions);for(var n=E.next();!n.done;n=E.next())if(n=n.value,this.endpointRequiresServiceRequestAction(n)&&this.ytComponentBehavior.resolveCommand(n),
this.isNavigateAction(n)){var f=void 0;n=_.C((f=_.C(n,j1R))==null?void 0:f.command,_.KJ);f=void 0;this.isPlaylistAction((f=n)==null?void 0:f.endpoint)&&(_.OL(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),f=void 0,this.ytComponentBehavior.resolveCommand((f=n)==null?void 0:f.endpoint))}}v.actions&&v.actions.some(function(x){var y;return _.C(x,_.KJ)||_.C((y=_.C(x,j1R))==null?void 0:y.command,_.KJ)})||_.OL(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.c.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.c.onCancelTap=function(){var v,E,n;if(!((v=this.data)==null?0:(E=v.cancelButton)==null?0:(n=E.buttonRenderer)==null?0:n.isDisabled)){var f,x,y;v=(f=this.data)==null?void 0:(x=f.cancelButton)==null?void 0:(y=x.buttonRenderer)==null?void 0:y.command;if(!v||!_.C(v,_.khX)){var Q;this.nameInput&&((Q=this.data)==null?0:Q.name)&&(this.nameInput.value=this.data.name);var e;this.handleInput&&((e=this.data)==null?0:e.channelHandleInput)&&(this.handleInput.data=_.C(this.data.channelHandleInput,N7U));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.c.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.c.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.c.onClearProfilePhotoTap=function(){var v,E,n;((v=this.data)==null?0:(E=v.clearProfilePhotoButton)==null?0:(n=E.buttonRenderer)==null?0:n.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.c.onEditAvatarTap=function(){var v,E,n;((v=this.data)==null?0:(E=v.editAvatarButton)==null?0:(n=E.buttonRenderer)==null?0:n.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.c.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)};
_.c.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var v;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((v=this.data)==null?0:v.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.c.setErrorState=function(v){this.resetErrorState();if(v)this.set("errorMessage",v);else{var E;if((E=this.zeroStepErrorMessageEntity)==null?0:E.value)this.set("errorMessage",_.qD(this.zeroStepErrorMessageEntity.value));else{var n;((n=this.data)==null?0:n.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.c.fetchImageBlobWithAlr=function(v,E){E=E===void 0?5:E;var n=this,f,x,y,Q,e;return _.X(function(F){switch(F.nextAddress){case 1:return _.m(F,fetch(v,{method:"GET",mode:"cors"}),2);case 2:f=F.yieldResult;if(f.ok){F.jumpTo(3);break}if(E===0)throw Error();x=n.addJitter(Math.pow(2,5-E));return _.m(F,new Promise(function(b){setTimeout(b,x*1E3)}),4);
case 4:return F.return(n.fetchImageBlobWithAlr(v,E-1));case 3:if(!f.headers.get("content-type").split(";").some(function(b){return b.trim()==="text/plain"})){F.jumpTo(5);
break}y=n;Q=y.fetchImageBlobWithAlr;return _.m(F,f.text(),6);case 6:return F.return(Q.call(y,F.yieldResult,E-1));case 5:return _.m(F,f.blob(),7);case 7:return e=F.yieldResult,F.return(e)}})};
_.c.addJitter=function(v){var E=v*.3*Math.random();Math.random()>.5&&(E*=-1);return v+E};
_.c.openProfilePicturePicker=function(){var v=this,E,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){E=v.data.scottyUploadUrl;if(!E)return Q.return();n=document.documentElement.hasAttribute("dark");f=document.body.style.colorScheme;n&&(document.body.style.colorScheme="dark");x=kjK(Wk0(O96(VfR(n?"dark":"light")),function(e){var F,b,l,r,a;return _.X(function(M){if(M.nextAddress==1)return F=_.VS(cP3(new bs(e.photoUrl,!1)).build(),"alr","yes"),v.obakeImageSource=v.pictureChangeSourceToObakeImageSourceType(e.photoSource),
_.vW(M,2),v.setLoadingState(),_.m(M,v.fetchImageBlobWithAlr(F),4);if(M.nextAddress!=2)return b=M.yieldResult,l=new FileReader,l.addEventListener("load",function(){var U,d,Y,V,O,T;return _.X(function(L){if(L.nextAddress==1){if(b.size>15728640)return v.setErrorState((U=v.data)==null?void 0:U.imageSizeErrorMessage),_.li(Error("hl")),L.return();if(!l.result)return v.setErrorState((d=v.data)==null?void 0:d.genericImageLoadErrorMessage),_.li(Error("il")),L.return();Y=l.result;_.vW(L,2);return _.m(L,dD3(b,
E),4)}if(L.nextAddress!=2)return V=L.yieldResult,v.handleImageUpdatedAction(Y,V),v.resetErrorState(),_.qp(L,0);O=_.cW(L);v.setErrorState((T=v.data)==null?void 0:T.uploadErrorMessage);if(O instanceof Error)_.mb(O);else{var xX=new _.yc(JSON.stringify(O));_.mb(xX)}_.yQ(L)})}),l.readAsDataURL(b),_.qp(M,0);
r=_.cW(M);v.setErrorState((a=v.data)==null?void 0:a.genericImageLoadErrorMessage);r instanceof Error?_.mb(r):_.bi(new _.yc(JSON.stringify(r)));_.yQ(M)})}),function(){v.hideContainer=!1;
document.body.style.colorScheme=f});
_.vW(Q,2);return _.m(Q,x.openPicker(),4)}if(Q.nextAddress!=2)return _.qp(Q,0);_.cW(Q);v.setErrorState((y=v.data)==null?void 0:y.selectImageErrorMessage);_.yQ(Q)})};
_.c.pictureChangeSourceToObakeImageSourceType=function(v){switch(v){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.c.logScreenVe=function(){_.Rs(_.Tl(),124448)};
_.c.graftServerVe=function(){var v=_.bc(),E,n,f=(E=this.data)==null?void 0:(n=E.loggingDirectives)==null?void 0:n.trackingParams;f&&v&&(this.channelCreationFormVe=_.Tl().graftServerVe(f,v),v={visualElement:this.channelCreationFormVe},_.L5().reportShown(v))};
_.c.isNameChanged=function(v){var E;return((E=this.data)==null?void 0:E.name)!==v};
_.c.isHandleChanged=function(v){var E,n=_.C((E=this.data)==null?void 0:E.channelHandleInput,N7U);return n&&v?n.handle!==v:!1};
_.c.handleImageUpdatedAction=function(v,E){this.hideContainer=!1;this.previewDataUrl=v;this.encryptedBlobId=E};
_.c.handleImageSelectionErrorAction=function(v){this.hideContainer=!1;this.setErrorState(v)};
_.c.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.c.showContainer=function(){this.hideContainer=!1};
_.c.maybeWipeZeroStepErrorMessage=function(){var v,E=(v=this.data)==null?void 0:v.zeroStepErrorMessageEntityKey,n;E&&((n=this.zeroStepErrorMessageEntity)==null?0:n.value)&&this.ytdReduxBehavior.dispatch(_.n7("stringEntity",E,{key:E,value:""}))};
_.hK.Object.defineProperties(D3.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 v;return((v=this.photoThumbnail)==null?0:v.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 v;return!((v=this.data)==null||!v.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.descriptionInfo}}});
D3.prototype.dataChanged=D3.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],D3.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],D3.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],D3.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],D3.prototype,"errorMessage",void 0);
_.k([_.H(),_.W("design:type",Object)],D3.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",String)],D3.prototype,"previewDataUrl",void 0);_.k([_.H(),_.W("design:type",Number)],D3.prototype,"obakeImageSource",void 0);_.k([_.H(),_.W("design:type",Object)],D3.prototype,"hideContainer",void 0);_.k([_.Wp("#title-input"),_.W("design:type",Object)],D3.prototype,"nameInput",void 0);_.k([_.Wp("#handle-input"),_.W("design:type",Object)],D3.prototype,"handleInput",void 0);
_.k([_.H(),_.W("design:type",Boolean)],D3.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.k([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.qgQ}),_.W("design:type",Object)],D3.prototype,"zeroStepErrorMessageEntity",void 0);_.k([_.A("data","data.isDefaultProfilePhoto","previewDataUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],D3.prototype,"photoThumbnail",null);
_.k([_.A("data","data.isDefaultProfilePhoto","photoThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],D3.prototype,"userSetPhotoThumbnailUrl",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D3.prototype,"hideProfilePhotoButtonLayer",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D3.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.k([_.Tw("data","zeroStepErrorMessageEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D3.prototype,"dataChanged",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.descriptionInfo","zeroStepErrorMessageEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],D3.prototype,"description",null);D3=_.k([_.N({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],D3);
_.u(D3,"ytd-channel-creation-dialog-renderer",function(){if(ja1!==void 0)return ja1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ja1=v},{mode:1});var kRU;var Hr=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;v.isDisabled=!1;return v};
_.S(Hr,_.g);Hr.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Hr.prototype.updateDisabled=function(){var v;this.isDisabled=this.isLoading||((v=this.handleInput)==null?void 0:v.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Hr.prototype.onSaveClick=function(){var v=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var E;((E=this.data)==null?void 0:E.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 n;if((n=v.data)==null?0:n.nextEndpoint){var f;v.ytComponentBehavior.resolveCommand((f=v.data)==null?void 0:f.nextEndpoint)}else v.isLoading=
!1,v.closeDialog()},
onServerError:function(){v.isLoading=!1;v.handleInput.validate();var n;v.errorMessage=(n=v.data)==null?void 0:n.errorMessage}}}))}};
Hr.prototype.closeDialog=function(){_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
Hr.prototype.updateDisabled=Hr.prototype.updateDisabled;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Hr.prototype,"data",void 0);_.k([_.Wp("#handle-input"),_.W("design:type",Object)],Hr.prototype,"handleInput",void 0);_.k([_.On("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hr.prototype,"updateDisabled",null);
Hr=_.k([_.N({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Hr);
_.u(Hr,"ytd-channel-handle-edit-dialog-renderer",function(){if(kRU!==void 0)return kRU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return kRU=v},{mode:1});var W01;var gS=function(){return _.g.apply(this,arguments)||this};
_.S(gS,_.g);gS.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gS.prototype,"data",void 0);gS=_.k([_.N({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],gS);
_.u(gS,"ytd-channel-switcher-footer-renderer",function(){if(W01!==void 0)return W01;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return W01=v},{mode:1});var $v1;var L0R;var Nk=function(){return _.g.apply(this,arguments)||this};
_.S(Nk,_.g);Nk.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Nk.prototype.onIronChange=Nk.prototype.onIronChange;_.k([_.H(),_.W("design:type",Object)],Nk.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Function)],Nk.prototype,"onDontAskAgainChanged",void 0);_.k([_.Wp("#checkbox"),_.W("design:type",Object)],Nk.prototype,"checkbox",void 0);_.k([_.jk("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nk.prototype,"onIronChange",null);
Nk=_.k([_.N({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Nk);
_.u(Nk,"ytd-identity-prompt-footer-renderer",function(){if(L0R!==void 0)return L0R;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return L0R=v},{mode:1});var up=function(){var v=_.g.apply(this,arguments)||this;v.dontAskAgain=!1;v.showPopup=!1;v.boundDontAskAgainChanged=function(E){v.dontAskAgainChanged(E)};
v.boundOnAccountItemTap=function(E){v.onAccountItemTap(E)};
return v};
_.S(up,_.g);_.c=up.prototype;
_.c.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]]"}}}}}};
_.c.ready=function(){var v=this;_.K(this.hostElement).querySelector("#container").addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.c.dontAskAgainChanged=function(v){this.dontAskAgain=v};
_.c.onAccountItemTap=function(v){if(v){var E={};this.dontAskAgain&&(E={dont_ask_again:this.dontAskAgain});_.mo(v,E)}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.c.redirectOnlyAccount=function(v){v.sections&&v.sections.length>0&&(v=_.C(v.sections[0],_.jGU),(v==null?0:v.contents)&&(v==null?void 0:v.contents.length)<=1?(v=_.hM(window.location.href),(v==null?0:v.next)&&_.hf$(v.next)?_.mo(v.next):_.mo("/")):this.showPopup=!0)};
up.prototype.dataChanged=up.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],up.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Object)],up.prototype,"dontAskAgain",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],up.prototype,"showPopup",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Object)],up.prototype,"boundDontAskAgainChanged",void 0);_.k([_.H({reflectToAttribute:!1}),_.W("design:type",Object)],up.prototype,"boundOnAccountItemTap",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],up.prototype,"dataChanged",null);
up=_.k([_.N({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],up);
_.u(up,"ytd-channel-switcher-renderer",function(){if($v1!==void 0)return $v1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return $v1=v},{mode:1});var GRO;var jd=function(){return _.g.apply(this,arguments)||this};
_.S(jd,_.g);_.hK.Object.defineProperties(jd.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.k([_.H(),_.W("design:type",Object)],jd.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],jd.prototype,"steps",null);jd=_.k([_.N({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],jd);
_.u(jd,"ytd-channel-transfer-stepper-renderer",function(){if(GRO!==void 0)return GRO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return GRO=v},{mode:1});var Tz_;var OF=function(){var v=_.g.apply(this,arguments)||this;v.data=null;v.isError=!1;v.isLoading=!1;return v};
_.S(OF,_.g);_.c=OF.prototype;_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.c.computeProfileName=function(v){return v?v.givenNameValue+" "+v.familyNameValue:""};
_.c.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)};
_.c.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)};
OF.prototype.onYtServiceRequestError=OF.prototype.onYtServiceRequestError;OF.prototype.onYtServiceRequestSent=OF.prototype.onYtServiceRequestSent;OF.prototype.dataChanged=OF.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],OF.prototype,"data",void 0);
_.k([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.W("design:type",String)],OF.prototype,"profileName",void 0);_.k([_.H(),_.W("design:type",Object)],OF.prototype,"isError",void 0);_.k([_.H(),_.W("design:type",Object)],OF.prototype,"isLoading",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OF.prototype,"dataChanged",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],OF.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],OF.prototype,"onYtServiceRequestError",null);OF=_.k([_.N({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],OF);
_.u(OF,"ytd-channel-warm-welcome-cont-renderer",function(){if(Tz_!==void 0)return Tz_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Tz_=v},{mode:1});var iiC;var kT=function(){var v=_.g.apply(this,arguments)||this;v.data=null;return v};
_.S(kT,_.g);kT.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],kT.prototype,"data",void 0);kT=_.k([_.N({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],kT);
_.u(kT,"ytd-channel-warm-welcome-renderer",function(){if(iiC!==void 0)return iiC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return iiC=v},{mode:1});var zeC;var Wr=function(){return _.g.apply(this,arguments)||this};
_.S(Wr,_.g);_.hK.Object.defineProperties(Wr.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.authorThumbnail)||{}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Wr.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Wr.prototype,"thumbnailDetails",null);Wr=_.k([_.N({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Wr);
_.u(Wr,"ytd-comment-preview-renderer",function(){if(zeC!==void 0)return zeC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return zeC=v},{mode:1});var Red;var $T=function(){return _.g.apply(this,arguments)||this};
_.S($T,_.g);$T.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hK.Object.defineProperties($T.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.submitButton}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$T.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$T.prototype,"submitButton",null);$T=_.k([_.N({is:"ytd-notice-renderer",disableElementRegistration:!0})],$T);
_.u($T,"ytd-notice-renderer",function(){if(Red!==void 0)return Red;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Red=v},{mode:1});var tLC;var LO=function(){return _.g.apply(this,arguments)||this};
_.S(LO,_.g);LO.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LO.prototype,"data",void 0);LO=_.k([_.N({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],LO);
_.u(LO,"ytd-preview-comment-dialog-content",function(){if(tLC!==void 0)return tLC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return tLC=v},{mode:1});var BzR;var Gb=function(){return _.g.apply(this,arguments)||this};
_.S(Gb,_.g);Gb.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Gb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Gb.prototype,"data",void 0);Gb=_.k([_.N({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Gb);
_.u(Gb,"ytd-preview-comment-dialog-renderer",function(){if(BzR!==void 0)return BzR;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return BzR=v},{mode:1});var vxC;var ExR=_.Z("web_button_rework")&&_.Sp("BUTTON_REWORK")||_.Z("web_button_rework_with_live"),Tb=function(){var v=_.g.apply(this,arguments)||this;v.selectedAmountIndex=1;v.privacyCheckboxValue=!1;v.useAmsterdamStyle=ExR;v.amountPlaceholderIndex=-1;return v};
_.S(Tb,_.g);_.c=Tb.prototype;_.c.onAmountClick=function(v){this.selectedAmountIndex=_.K(this.hostElement).querySelector("#amounts").indexForElement(v.currentTarget)};
_.c.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.OL(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.c.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.OL(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.OL(this.hostElement,"yt-close-popup-action",[this.is]);var v;(v=_.Aq())==null||v.getPlayerPromise().then(function(E){E.pauseVideo()})}};
_.c.donationCallback=function(v){v.success?(this.hostElement.hasAttribute("live-chat")&&v.response&&v.response.data&&v.response.data.actions&&_.OL(this.hostElement,"yt-live-chat-open-popup",[v.response.data.actions[0]]),_.OL(this.hostElement,"yt-close-popup-action",[this.is]),_.OL(this.hostElement,"yt-live-chat-close-buy-flow")):v.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(v.errorMessageRenderer)};
_.c.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.K(this.hostElement).querySelector("#custom-amount-input").focus()};
_.c.updateConfirmationDialogTextWithAmount=function(v){var E=this.getConfirmDialogRuns();E&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(E),"text"],this.getFormattedAmount(v))};
_.c.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.c.getAmountPlaceholderIndex=function(v){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=v.findIndex(function(E){return E.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.c.getFormattedAmount=function(v){var E;return(new _.ab(4,((E=this.data)==null?void 0:E.currencyCode)||"")).format(v)};
_.c.isAmountValid=function(v){if(v==="")return!1;v=Number(v)*1E6;var E=this.get("minAmountMicros",this.data),n=this.get("maxAmountMicros",this.data);return E&&v<E||n&&v>n?!1:!0};
_.c.setInputError=function(){this.shouldShowValidationError?_.K(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.K(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.c.setInitialCheckboxValue=function(){var v;this.privacyCheckboxValue=!((v=this.data)==null||!v.privacyCheckboxInitialState)};
_.c.updateCustomAmountInputFromBinding=function(v){this.customAmountInput=v.detail.value};
_.c.updatePrivacyCheckboxValueFromBinding=function(v){this.privacyCheckboxValue=v.detail.value};
_.hK.Object.defineProperties(Tb.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var v=this,E,n;return((E=this.data)==null?void 0:(n=E.suggestedAmounts)==null?void 0:n.map(function(f,x){return{buttonRenderer:{style:v.selectedAmountIndex===x?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:f.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 v;return!((v=this.data)==null||!v.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 v=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(v&&this.amountMicros!==null)return Object.assign({},v,{ypcGetCartEndpoint:Object.assign({},v.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 v=this.get("confirmLargeAmount",this.data);if(v&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),v}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.get("donateButton.buttonRenderer",this.data);if(v)return Object.assign({},v,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Tb.prototype.setInitialCheckboxValue=Tb.prototype.setInitialCheckboxValue;Tb.prototype.setInputError=Tb.prototype.setInputError;Tb.prototype.setFocusOnCustomAmountInput=Tb.prototype.setFocusOnCustomAmountInput;_.k([_.h(pmd),_.W("design:type",Object)],Tb.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Tb.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Tb.prototype,"selectedAmountIndex",void 0);_.k([_.H(),_.W("design:type",String)],Tb.prototype,"customAmountInput",void 0);_.k([_.H(),_.W("design:type",Object)],Tb.prototype,"privacyCheckboxValue",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Tb.prototype,"useAmsterdamStyle",void 0);_.k([_.On("customAmount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Tb.prototype,"setFocusOnCustomAmountInput",null);_.k([_.A("data","selectedAmountIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],Tb.prototype,"suggestedAmountButtons",null);
_.k([_.A("data","selectedAmountIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Tb.prototype,"isCustomAmountSelected",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Tb.prototype,"showPrivacyCheckbox",null);_.k([_.A("data","selectedAmountIndex","customAmount"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"amountMicros",null);
_.k([_.A("isCustomAmountSelected","customAmountInput"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"customAmount",null);_.k([_.A("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Tb.prototype,"shouldShowValidationError",null);_.k([_.A("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Tb.prototype,"isDonateButtonEnabled",null);
_.k([_.A("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"donateCommand",null);_.k([_.A("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"donateCommandWithConfirmation",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"largeDonationThreshold",null);
_.k([_.A("customAmount","donateCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"confirmLargeAmountCommand",null);_.k([_.A("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.W("design:type",Object),_.W("design:paramtypes",[])],Tb.prototype,"donateButtonRenderer",null);_.k([_.On("shouldShowValidationError"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Tb.prototype,"setInputError",null);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Tb.prototype,"setInitialCheckboxValue",null);Tb=_.k([_.N({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Tb);
_.u(Tb,"ytd-donation-amount-picker-renderer",function(){if(vxC!==void 0)return vxC;var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return vxC=v},{mode:1});var nxP;var ip=function(){return _.g.apply(this,arguments)||this};
_.S(ip,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ip.prototype,"ytComponentBehavior",void 0);_.k([_.H({}),_.W("design:type",Object)],ip.prototype,"data",void 0);ip=_.k([_.N({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],ip);
_.u(ip,"ytd-donation-post-transaction-content",function(){if(nxP!==void 0)return nxP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return nxP=v},{mode:1});var oxd;var zb=function(){return _.g.apply(this,arguments)||this};
_.S(zb,_.g);zb.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.k([_.H({}),_.W("design:type",Object)],zb.prototype,"data",void 0);zb=_.k([_.N({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],zb);
_.u(zb,"ytd-donation-post-transaction-renderer",function(){if(oxd!==void 0)return oxd;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return oxd=v},{mode:1});var fKP;var x86;var Rn=function(){return _.g.apply(this,arguments)||this};
_.S(Rn,_.g);Rn.prototype.computeIsStreamingProvider=function(v){return!!v.isStreamingShelf};
Rn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Rn.prototype,"data",void 0);_.k([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Rn.prototype,"isStreamingProvider",void 0);
Rn=_.k([_.N({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Rn);
_.u(Rn,"ytd-media-provider-renderer",function(){if(x86!==void 0)return x86;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return x86=v},{mode:1});var cwb;var tE=function(){return _.g.apply(this,arguments)||this};
_.S(tE,_.g);tE.prototype.observeLightsourcePalette=function(){var v,E=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;E&&_.Q3(this.hostElement,E)};
tE.prototype.observeLightsourcePalette=tE.prototype.observeLightsourcePalette;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],tE.prototype,"data",void 0);
_.k([_.On("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tE.prototype,"observeLightsourcePalette",null);tE=_.k([_.N({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],tE);
_.u(tE,"ytd-streaming-pop-up-dialog",function(){if(cwb!==void 0)return cwb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return cwb=v},{mode:1});var Br=function(){return _.g.apply(this,arguments)||this};
_.S(Br,_.g);Br.prototype.onPopupOpened_=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.P().resolve(_.OO).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Br.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Br.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"}}}}};
Br.prototype.onPopupOpened_=Br.prototype.onPopupOpened_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.MU),_.W("design:type",Object)],Br.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Br.prototype,"data",void 0);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Br.prototype,"onPopupOpened_",null);Br=_.k([_.N({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Br);
_.u(Br,"ytd-brandconnect-popup-renderer",function(){if(fKP!==void 0)return fKP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return fKP=v},{mode:1});var ywU;var vJ=function(){return _.g.apply(this,arguments)||this};
_.S(vJ,_.g);_.c=vJ.prototype;_.c.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(){for(var v=0;v<this.getOptionRenderers().length;v++)this.notifyPath("data.options."+v+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+v+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.c.updateSubmitButton=function(v){this.set("data.submitButton.buttonRenderer.isDisabled",!v)};
_.c.computeAlt=function(v){return _.JC(v)};
_.c.onDismissTap=function(){_.OL(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.c.getOptionRenderers=function(v){return(v=v||this.data)&&v.options?v.options.reduce(function(E,n){n.checkboxSurveyOptionRenderer&&E.push(n.checkboxSurveyOptionRenderer);return E},[]):[]};
_.c.onOptionChange=function(v){var E=this,n=!1;if(v.detail.checked)for(var f=this.getOptionRenderers().find(function(e){return e.value===v.detail.value}),x=this.getOptionRenderers(),y=0;y<x.length;y++){var Q=x[y];
this.notifyPath("data.options."+y+".checkboxSurveyOptionRenderer.checked");Q.checked&&((f==null?0:f.isExclusiveOption)?!Q.isExclusiveOption:Q.isExclusiveOption)?this.set("data.options."+y+".checkboxSurveyOptionRenderer.checked",!1):Q.checked&&(n=!0)}else n=this.getOptionRenderers().some(function(e,F){E.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked");return e.checked});
this.updateSubmitButton(n)};
_.c.onSubmitTap=function(){var v=this.getOptionRenderers().filter(function(y){return y.checked});
if(v.length!==0){var E=v.map(function(y){return y.responseEndpoint});
v=[];for(var n=1;n<E.length;n++){var f=void 0,x=(f=_.C(E[n],_.qI))==null?void 0:f.feedbackToken;x&&v.push(x)}E=[E[0]];v.length&&E.push({extra_feedback_tokens:v});_.$Z(this.hostElement,E);_.OL(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);v=this.data&&this.data.submitActions||[];if(_.Z("kevlar_command_handler_migration_killswitch"))_.LG(this.hostElement,v,this.hostElement);else for(v=_.p(v),E=v.next();!E.done;E=v.next())this.ytComponentBehavior.resolveCommand(E.value)}};
vJ.prototype.onOptionChange=vJ.prototype.onOptionChange;vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],vJ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.k([_.h(Jd3),_.W("design:type",Object)],vJ.prototype,"ytdHatsSurveyBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vJ.prototype,"data",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vJ.prototype,"dataChanged",null);
_.k([_.jk("ytd-checkbox-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vJ.prototype,"onOptionChange",null);vJ=_.k([_.N({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],vJ);
_.u(vJ,"ytd-checkbox-survey-renderer",function(){if(ywU!==void 0)return ywU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ywU=v},{mode:1});var pBC;var Qhx;var Ev=function(){return _.g.apply(this,arguments)||this};
_.S(Ev,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.k([_.h(qpO),_.W("design:type",Object)],Ev.prototype,"ytdDismissalReasonBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ev.prototype,"data",void 0);Ev=_.k([_.N({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ev);
_.u(Ev,"ytd-dismissal-reason-text-renderer",function(){if(Qhx!==void 0)return Qhx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Qhx=v},{mode:1});var XBx;var nN=function(){return _.g.apply(this,arguments)||this};
_.S(nN,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.k([_.h(qpO),_.W("design:type",Object)],nN.prototype,"ytdDismissalReasonBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nN.prototype,"data",void 0);nN=_.k([_.N({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],nN);
_.u(nN,"ytd-dismissal-reason-video-renderer",function(){if(XBx!==void 0)return XBx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return XBx=v},{mode:1});var oM=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(oM,_.g);_.c=oM.prototype;_.c.created=function(){this.selectedFeedbackTokens=new D0};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.c.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.c.onDismissalReasonSelected=function(v,E){_.jK(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(E);this.hasReasonsSelected=!0};
_.c.onDismissalReasonDeselected=function(v,E){_.jK(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(E);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.c.onCancelTap=function(){_.OL(this.hostElement,"yt-close-popup-action")};
_.c.onSubmitTap=function(){var v=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(v={feedback_tokens:v},_.P().resolve(_.OO).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}));_.OL(this.hostElement,"yt-close-popup-action")};
oM.prototype.onDismissalReasonDeselected=oM.prototype.onDismissalReasonDeselected;oM.prototype.onDismissalReasonSelected=oM.prototype.onDismissalReasonSelected;oM.prototype.dataChanged=oM.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oM.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Boolean)],oM.prototype,"hasReasonsSelected",void 0);_.k([_.H(),_.W("design:type",D0)],oM.prototype,"selectedFeedbackTokens",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],oM.prototype,"darkerDarkTheme",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"dataChanged",null);
_.k([_.jk("yt-dismissal-reason-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],oM.prototype,"onDismissalReasonSelected",null);_.k([_.jk("yt-dismissal-reason-deselected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],oM.prototype,"onDismissalReasonDeselected",null);oM=_.k([_.N({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],oM);
_.u(oM,"ytd-dismissal-follow-up-renderer",function(){if(pBC!==void 0)return pBC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return pBC=v},{mode:1});var eO_;var fN=function(){return _.g.apply(this,arguments)||this};
_.S(fN,_.g);_.c=fN.prototype;_.c.onCheckedChange=function(){this.multiselect||_.jK(this.hostElement,"yt-feedback-single-select-changed");_.K(this.hostElement).querySelector("#freeform").focus();_.jK(this.hostElement,"yt-refit")};
_.c.showTextBox=function(v,E){return v&&E};
_.c.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))};
_.c.updateDataCheckedFromBinding=function(v){this.set("data.checked",v.detail.value)};
_.c.updateDataResultTextFromBinding=function(v){this.set("data.resultText",v.detail.value)};
fN.prototype.dataChanged=fN.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fN.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],fN.prototype,"multiselect",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fN.prototype,"dataChanged",null);
fN=_.k([_.N({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],fN);
_.u(fN,"ytd-feedback-option-renderer",function(){if(eO_!==void 0)return eO_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return eO_=v},{mode:1});var FhP;var xu=function(){return _.g.apply(this,arguments)||this};
_.S(xu,_.g);xu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
xu.prototype.onSingleSelectCheckedChanged=function(v){v=_.Sk(v);for(var E=0;E<this.data.options.length;E++)if(v.data!==_.C(this.data.options[E],Sk0)){var n="data.options."+E+".feedbackOptionRenderer.checked";this.notifyPath(n);this.set(n,!1)}};
xu.prototype.onSingleSelectCheckedChanged=xu.prototype.onSingleSelectCheckedChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],xu.prototype,"data",void 0);
_.k([_.jk("yt-feedback-single-select-changed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],xu.prototype,"onSingleSelectCheckedChanged",null);xu=_.k([_.N({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],xu);
_.u(xu,"ytd-feedback-question-renderer",function(){if(FhP!==void 0)return FhP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FhP=v},{mode:1});var m80;var cJ=function(){return _.g.apply(this,arguments)||this};
_.S(cJ,_.g);cJ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
cJ.prototype.getSelectedFeedbackResults=function(){for(var v={},E=0;E<this.data.questions.length;E++)for(var n=_.C(this.data.questions[E],MOP),f=0;f<n.options.length;f++){var x=_.C(n.options[f],Sk0);x&&x.checked&&(v[x.optionKey]=x.resultText)}return v};
cJ.prototype.onKeyUp=function(){var v=this;_.H8(_.wh,function(){_.jK(v.hostElement,"yt-refit")});
_.wh.start()};
cJ.prototype.submitSurvey=function(){var v=this.getSelectedFeedbackResults();Object.keys(v).length>0&&this.data.submitFeedbackEndpoint&&(v={survey_results:v,is_feedback_token_unencrypted:!0},_.P().resolve(_.OO).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],cJ.prototype,"data",void 0);cJ=_.k([_.N({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],cJ);
_.u(cJ,"ytd-feedback-survey-renderer",function(){if(m80!==void 0)return m80;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return m80=v},{mode:1});var wBC;var bwO;var yY=function(){return _.g.apply(this,arguments)||this};
_.S(yY,_.g);yY.prototype.computeAlt=function(v){return _.JC(v)};
yY.prototype.submitResponse=function(){var v,E;(v=this.data)!=null&&v.feedbackToken&&((E=this.data)==null?void 0:E.nextStageIndex)!==void 0&&(_.kZ(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.kZ(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
yY.prototype.onClick=function(){this.submitResponse()};
yY.prototype.onClick=yY.prototype.onClick;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],yY.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],yY.prototype,"vertical",void 0);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yY.prototype,"onClick",null);
yY=_.k([_.N({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yY);
_.u(yY,"ytd-single-select-answer-option-renderer",function(){if(bwO!==void 0)return bwO;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bwO=v},{mode:1});var lK_;var pN=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return v};
_.S(pN,_.g);pN.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
pN.prototype.dataChanged=function(){var v,E;this.vertical=((E=(v=this.data)==null?void 0:v.answerOrientation)!=null?E:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
pN.prototype.submitFeedback=function(v){var E;((E=this.data)==null?0:E.responseEndpoint)&&v&&_.$Z(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[v]}])};
pN.prototype.dataChanged=pN.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],pN.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],pN.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],pN.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],pN.prototype,"vertical",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],pN.prototype,"darkerDarkTheme",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pN.prototype,"dataChanged",null);pN=_.k([_.N({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],pN);
_.u(pN,"ytd-single-select-question-renderer",function(){if(lK_!==void 0)return lK_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return lK_=v},{mode:1});var QY=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return v};
_.S(QY,_.g);_.c=QY.prototype;_.c.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"}}}};
_.c.dataChanged=function(){this.jumpToStage(0)};
_.c.jumpToStage=function(v){var E,n;if((E=this.data)==null?0:(n=E.stages)==null?0:n[v])this.currentStage=this.data.stages[v],this.refitAfterRender()};
_.c.computeAlt=function(v){return _.JC(v)};
_.c.computeSimpleMessage=function(v){var E;return(E=_.C(v,J$M))==null?void 0:E.messageText};
_.c.computeHideDismiss=function(v){var E;return(E=_.C(v,vVp))==null?void 0:E.hideParentDismissButton};
_.c.onDismissTap=function(){_.OL(this.hostElement,"yt-close-popup-action");_.C(this.currentStage,J$M)||this.data.dismissalEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.c.refitAfterRender=function(){var v=this;_.IS(this,function(){_.jK(v.hostElement,"yt-refit")})};
QY.prototype.dataChanged=QY.prototype.dataChanged;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],QY.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],QY.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.h(Jd3),_.W("design:type",Object)],QY.prototype,"ytdHatsSurveyBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],QY.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],QY.prototype,"currentStage",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QY.prototype,"dataChanged",null);QY=_.k([_.N({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],QY);
_.u(QY,"ytd-multi-stage-survey-renderer",function(){if(wBC!==void 0)return wBC;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return wBC=v},{mode:1});var shb;var Xr=function(){return _.g.apply(this,arguments)||this};
_.S(Xr,_.g);Xr.prototype.computeAlt=function(v){return _.JC(v)};
Xr.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.P().resolve(_.OO).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.OL(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.qhU(!1)))};
Xr.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Xr.prototype.onTap=Xr.prototype.onTap;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Xr.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Xr.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Xr.prototype,"vertical",void 0);
_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Xr.prototype,"onTap",null);Xr=_.k([_.N({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Xr);
_.u(Xr,"ytd-single-option-survey-option-renderer",function(){if(shb!==void 0)return shb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return shb=v},{mode:1});var rwO;var eX=function(){return _.g.apply(this,arguments)||this};
_.S(eX,_.g);_.c=eX.prototype;_.c.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(){var v,E;this.vertical=(((v=this.data)==null?void 0:(E=v.surveyOrientation)==null?void 0:E.type)||"HORIZONTAL")==="VERTICAL"};
_.c.computeAlt=function(v){return _.JC(v)};
_.c.onDismissTap=function(){_.OL(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.P().resolve(_.OO).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.qhU(!1))};
eX.prototype.dataChanged=eX.prototype.dataChanged;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],eX.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(Jd3),_.W("design:type",Object)],eX.prototype,"ytdHatsSurveyBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],eX.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eX.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],eX.prototype,"vertical",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eX.prototype,"dataChanged",null);eX=_.k([_.N({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],eX);
_.u(eX,"ytd-single-option-survey-renderer",function(){if(rwO!==void 0)return rwO;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rwO=v},{mode:1});var PvK;var Fr=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(Fr,_.g);Fr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fr.prototype.onDismissTap=function(){_.OL(this.hostElement,"yt-close-popup-action")};
Fr.prototype.onNavigate=function(){_.OL(this.hostElement,"yt-close-popup-action")};
Fr.prototype.onNavigate=Fr.prototype.onNavigate;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],Fr.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fr.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Fr.prototype,"darkerDarkTheme",void 0);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fr.prototype,"onNavigate",null);Fr=_.k([_.N({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Fr);
_.u(Fr,"ytd-survey-follow-up-renderer",function(){if(PvK!==void 0)return PvK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return PvK=v},{mode:1});var aKM;var Zw3;var CvC;var mT=function(){var v=_.g.apply(this,arguments)||this;v.polymer2="Element"in Polymer;return v};
_.S(mT,_.g);_.c=mT.prototype;_.c.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.c.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.c.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.c.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("minutes-changed",this.minutes))};
_.c.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("seconds-changed",this.seconds))};
_.c.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.c.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
mT.prototype.secondsChangedForBinding=mT.prototype.secondsChangedForBinding;mT.prototype.minutesChangedForBinding=mT.prototype.minutesChangedForBinding;mT.prototype.secondsChanged=mT.prototype.secondsChanged;_.k([_.H(),_.W("design:type",String)],mT.prototype,"minutes",void 0);_.k([_.H(),_.W("design:type",String)],mT.prototype,"seconds",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],mT.prototype,"polymer2",void 0);
_.k([_.Wp("#seconds"),_.W("design:type",Object)],mT.prototype,"secondsEl",void 0);_.k([_.On("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mT.prototype,"secondsChanged",null);_.k([_.On("minutes"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mT.prototype,"minutesChangedForBinding",null);
_.k([_.On("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mT.prototype,"secondsChangedForBinding",null);mT=_.k([_.p5({is:"yt-timestamp-input",disableElementRegistration:!0})],mT);
_.u(mT,"yt-timestamp-input",function(){if(CvC===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Zw3===void 0&&(Zw3=document.createElement("template"));var f=Zw3;n.call(E,f.content.cloneNode(!0),v.content.firstChild);CvC=v}v=CvC;return v},{mode:2});var wZ=function(){return _.g.apply(this,arguments)||this};
_.S(wZ,_.g);_.c=wZ.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18011_scroller.dialogElement=this.hostElement.parentNode};
_.c.dataChanged=function(){var v=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.V3().getPlayerPromise().then(function(E){E=E.getCurrentTime();v.minutes=Math.floor(E/60).toString();v.seconds=(Math.floor(E)%60).toString()})};
_.c.onTapSubmit=function(v){v.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(v={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(v.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(v.minutes=this.minutes,v.seconds=this.seconds),_.P().resolve(_.OO).resolveCommand(this.serviceEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.c.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.c.onYtServiceRequestCompleted=function(v,E){E=E.actions;if(Array.isArray(E))for(var n=0,f=E.length;n<f;n++)_.C(E[n],_.rR)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(E[n]))};
_.c.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.c.toggleSubmitButton=function(v){this.set("submitButton.isDisabled",!v)};
_.c.handleInput=function(){var v=this.issueType,E=this.affiliation,n=this.minutes,f=this.seconds;n=!this.showTimestamp||!!n&&!!f;this.toggleSubmitButton(!!this.descriptionText&&!!v&&!!E&&n)};
_.c.computeServiceEndpoint=function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)};
_.c.computeSubmitButton=function(v){(v=this.get("submitButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.c.computeShowTimestamp=function(v){return!!v};
_.c.onValueChangedForIssueType=function(v){this.issueType=v.detail.value};
_.c.onValueChangedForAffiliation=function(v){this.affiliation=v.detail.value};
_.c.updateDescriptionTextFromBinding=function(v){this.descriptionText=v.detail.value};
_.c.updateFullNameTextFromBinding=function(v){this.fullNameText=v.detail.value};
_.c.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.c.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
wZ.prototype.handleInput=wZ.prototype.handleInput;wZ.prototype.onYtServiceRequestError=wZ.prototype.onYtServiceRequestError;wZ.prototype.onYtServiceRequestCompleted=wZ.prototype.onYtServiceRequestCompleted;wZ.prototype.onYtServiceRequestSent=wZ.prototype.onYtServiceRequestSent;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],wZ.prototype,"ytOpenPopupBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.k([_.Wp("#scroller"),_.W("design:type",Object)],wZ.prototype,"JSC$18011_scroller",void 0);_.k([_.Wp("#description"),_.W("design:type",HTMLInputElement)],wZ.prototype,"description",void 0);_.k([_.Wp("#full-name"),_.W("design:type",Object)],wZ.prototype,"fullName",void 0);_.k([_.H(),_.W("design:type",Object)],wZ.prototype,"data",void 0);
_.k([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.W("design:type",Boolean)],wZ.prototype,"showTimestamp",void 0);_.k([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.W("design:type",Object)],wZ.prototype,"serviceEndpoint",void 0);_.k([_.H({computed:"computeSubmitButton(data)"}),_.W("design:type",Object)],wZ.prototype,"submitButton",void 0);_.k([_.H(),_.W("design:type",String)],wZ.prototype,"descriptionText",void 0);
_.k([_.H(),_.W("design:type",Number)],wZ.prototype,"issueType",void 0);_.k([_.H(),_.W("design:type",Number)],wZ.prototype,"affiliation",void 0);_.k([_.H(),_.W("design:type",String)],wZ.prototype,"fullNameText",void 0);_.k([_.H(),_.W("design:type",String)],wZ.prototype,"minutes",void 0);_.k([_.H(),_.W("design:type",String)],wZ.prototype,"seconds",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wZ.prototype,"dataChanged",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],wZ.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],wZ.prototype,"onYtServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wZ.prototype,"onYtServiceRequestError",null);_.k([_.On("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wZ.prototype,"handleInput",null);wZ=_.k([_.N({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],wZ);
_.u(wZ,"ytd-legal-report-details-form-renderer",function(){if(aKM!==void 0)return aKM;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return aKM=v},{mode:1});var MzR;var bu=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return v};
_.S(bu,_.g);bu.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
bu.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var v=this.formRenderer.getForm();v&&this.data.submitEndpoint&&(_.P().resolve(_.OO).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},v,{element:this.hostElement})}),_.OL(this.hostElement,"yt-close-popup-action"))}};
bu.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.OL(this.hostElement,"yt-close-popup-action"))};
bu.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
bu.prototype.onPopupClosed=bu.prototype.onPopupClosed;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],bu.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],bu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);
_.k([_.Wp("yt-form-renderer"),_.W("design:type",Object)],bu.prototype,"formRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],bu.prototype,"data",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bu.prototype,"onPopupClosed",null);bu=_.k([_.N({is:"ytd-form-popup-content",disableElementRegistration:!0})],bu);
_.u(bu,"ytd-form-popup-content",function(){if(MzR!==void 0)return MzR;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return MzR=v},{mode:1});var S5p;var lu=function(){return _.g.apply(this,arguments)||this};
_.S(lu,_.g);lu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lu.prototype.onPopupOpened=function(){_.jK(this.hostElement,"yt-invalidate-popup-tabbables")};
lu.prototype.onYtServiceRequestCompleted=function(v,E){E.data&&E.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.jK(this.hostElement,"yt-invalidate-popup-tabbables"))};
lu.prototype.onYtServiceRequestCompleted=lu.prototype.onYtServiceRequestCompleted;lu.prototype.onPopupOpened=lu.prototype.onPopupOpened;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],lu.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],lu.prototype,"data",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lu.prototype,"onPopupOpened",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],lu.prototype,"onYtServiceRequestCompleted",null);lu=_.k([_.N({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],lu);
_.u(lu,"ytd-form-popup-renderer",function(){if(S5p!==void 0)return S5p;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return S5p=v},{mode:1});var U8b;var sv=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;return v};
_.S(sv,_.g);_.c=sv.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");OZ6(this.hostElement)};
_.c.onYtServiceRequestSent=function(){this.isLoading=!0};
_.c.onYtServiceRequestCompleted=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.c.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.LG(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.c.closePopupHandler=function(){this.fireOnCloseActions()};
_.c.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var v=this.get("data.headerImage.thumbnails");v&&(v=_.hZ(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")")}};
_.c.onYtNavigate=function(v){(v=_.Sk(v))&&v.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
sv.prototype.onYtNavigate=sv.prototype.onYtNavigate;sv.prototype.onHeaderImageChanged=sv.prototype.onHeaderImageChanged;sv.prototype.closePopupHandler=sv.prototype.closePopupHandler;sv.prototype.onYtServiceRequestCompleted=sv.prototype.onYtServiceRequestCompleted;sv.prototype.onYtServiceRequestSent=sv.prototype.onYtServiceRequestSent;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],sv.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],sv.prototype,"isLoading",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLDivElement)],sv.prototype,"header",void 0);_.k([_.Wp("#confirm-button"),_.W("design:type",_.Bs)],sv.prototype,"confirmButton",void 0);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],sv.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],sv.prototype,"onYtServiceRequestCompleted",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],sv.prototype,"closePopupHandler",null);_.k([_.On("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sv.prototype,"onHeaderImageChanged",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],sv.prototype,"onYtNavigate",null);
sv=_.k([_.N({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],sv);
_.u(sv,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(U8b!==void 0)return U8b;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return U8b=v},{mode:1});var q51;var rZ=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;return v};
_.S(rZ,_.g);_.c=rZ.prototype;_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);OZ6(this.hostElement)};
_.c.onYtServiceRequestCompleted=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.c.onYtServiceRequestError=function(v){_.aN(this.hostElement,v.detail.error.message)};
_.c.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.c.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.OL(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.c.onDataChanged=function(){this.isLoading=!1;var v=this.get("data.headerImage.thumbnails");v&&(v=_.hZ(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")");v=_.lc();var E=_.bc(),n=this.get("data.trackingParams");n&&E&&v&&_.aQ(v,E,_.tx(n))};
_.hK.Object.defineProperties(rZ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
rZ.prototype.onDataChanged=rZ.prototype.onDataChanged;rZ.prototype.onDomChange=rZ.prototype.onDomChange;rZ.prototype.onYtServiceRequestError=rZ.prototype.onYtServiceRequestError;rZ.prototype.onYtServiceRequestCompleted=rZ.prototype.onYtServiceRequestCompleted;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],rZ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rZ.prototype,"isLoading",void 0);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rZ.prototype,"hasDescription",null);_.k([_.Wp("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],rZ.prototype,"scrollable",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],rZ.prototype,"header",void 0);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rZ.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rZ.prototype,"onYtServiceRequestError",null);
_.k([_.jk("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rZ.prototype,"onDomChange",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rZ.prototype,"onDataChanged",null);rZ=_.k([_.N({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],rZ);
_.u(rZ,"ytd-gaming-account-link-setting-renderer",function(){if(q51!==void 0)return q51;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return q51=v},{mode:1});var JwP;var Khp;var PJ=function(){var v=_.g.apply(this,arguments)||this;v.isHeader=!1;v.getEndpointForm=DDb;return v};
_.S(PJ,_.g);_.c=PJ.prototype;_.c.triggerHintActions=function(){var v=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var E=_.kZ(v.hostElement,"yt-get-opened-popups-action");!(E&&E.length===1?E[0]:[]).some(function(n){n=n.openPopupAction.popupType;return n==="SURVEY"||n==="MEALBAR"||n==="HINT"})&&v.data.hintActions&&v.guideOpened&&(_.LG(v.hostElement,v.data.hintActions,v.hostElement),v.data.hintActions=void 0)})};
_.c.getBadgeIconType=function(v){return v&&v.liveBroadcasting?"live":null};
_.c.onDown=function(){this.interaction.triggerDown()};
_.c.onUp=function(){this.interaction.triggerUp()};
_.c.onTap=function(v){if(this.data.serviceEndpoint){var E;_.Z("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.C(this.data.serviceEndpoint,_.By))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):VNb(this.data.serviceEndpoint,this);v.preventDefault()}else this.data.navigationEndpoint&&!_.Kh(_.MQ(v),this.hostElement,["A".toString()])&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.c.computeActive=function(v,E){if(!v)return!1;var n=v.navigationEndpoint;v=v.serviceEndpoint;if(!n&&!v||!E)return!1;if(n){v=(v=Rw(E))&&["subscriptions","filteredsubscriptions"].includes(v);if(_.C(n,_.ix)&&_.C(E,_.ix)&&!v){var f=_.C(n,_.ix).browseId;E=_.C(E,_.ix).browseId;return f!==void 0&&E!==void 0&&(f===E||f==="VLWL"&&E==="FEwatch_later"||f==="FEwatch_later"&&E==="VLWL")}var x;n=(x=_.C(n.commandMetadata,_.Dl))==null?void 0:x.url;E=(f=_.C(E.commandMetadata,_.Dl))==null?void 0:f.url;return!(!n||
!E||n!==E&&n!==_.R5(E))}return this.isActiveShortsTab(v,E)};
_.c.isActiveShortsTab=function(v,E){E=!!_.C(E,_.By)||!!_.C(E,_.SO);return(!!_.C(v,_.By)||!!_.C(v,_.SO))&&E};
_.c.computeIsPrimary=function(v){return!!v};
_.hK.Object.defineProperties(PJ.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 v=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&v)return v}}});
PJ.prototype.onTap=PJ.prototype.onTap;PJ.prototype.onUp=PJ.prototype.onUp;PJ.prototype.onDown=PJ.prototype.onDown;PJ.prototype.triggerHintActions=PJ.prototype.triggerHintActions;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],PJ.prototype,"componentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PJ.prototype,"rendererBehavior",void 0);_.k([_.h(_.A1.YtTaskEmitterBehavior),_.W("design:type",Object)],PJ.prototype,"taskEmitterBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],PJ.prototype,"activeEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],PJ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],PJ.prototype,"guideOpened",void 0);_.k([_.H(),_.W("design:type",String)],PJ.prototype,"type",void 0);_.k([_.Wp("yt-interaction"),_.W("design:type",Object)],PJ.prototype,"interaction",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PJ.prototype,"isHeader",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data","activeEndpoint"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PJ.prototype,"active",null);_.k([_.H({reflectToAttribute:!0}),_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PJ.prototype,"isPrimary",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.count","data.presentationStyle","data.badges.*"),_.W("design:type",String),_.W("design:paramtypes",[])],PJ.prototype,"lineEndStyle",null);
_.k([_.A("lineEndStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],PJ.prototype,"ariaLabel",null);_.k([_.On("data.hintActions","guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PJ.prototype,"triggerHintActions",null);_.k([_.jk("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PJ.prototype,"onDown",null);
_.k([_.jk("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PJ.prototype,"onUp",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PJ.prototype,"onTap",null);PJ=_.k([_.N({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],PJ);
_.u(PJ,"ytd-guide-entry-renderer",function(){if(Khp!==void 0)return Khp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Khp=v},{mode:1});var aM=function(){var v=_.g.apply(this,arguments)||this;v.userToggled=!1;return v};
_.S(aM,_.g);_.c=aM.prototype;_.c.getItemsPath=function(){return"data.expandableItems"};
_.c.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.c.onExpanderItemTapped=function(v){var E=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Z("kevlar_guide_expandable_items_killswitch")&&_.IS(this,function(){_.IY(E.expandableItems)});
v.preventDefault()};
_.c.onCollapserItemTapped=function(v){var E=this;this._setExpanded(!1);this.userToggled=!0;v.preventDefault();this.expandableItems&&!_.Z("kevlar_guide_collapsible_items_killswitch")&&_.IS(this,function(){_.dh(E.hostElement)})};
_.c.observeActiveEndpoint=function(){for(var v=this.activeEndpoint,E=this.data,n=this.expandableItems.children,f=0,x=n.length;f<x;f++)n[f].activeEndpoint=v;E&&E.autoExpandCommand&&v&&!this.userToggled&&(n=this.data.autoExpandCommand,E=!(!_.C(n,_.ix)||!_.C(v,_.ix)||_.C(n,_.ix).browseId!==_.C(v,_.ix).browseId),v=this.get("commandMetadata.webCommandMetadata.url",v),n=this.get("commandMetadata.webCommandMetadata.url",n),E=E||!!(v&&n&&v.includes(n)),this._setExpanded(E),E&&this.ytLazyListBehavior.fillRemainingListItems())};
aM.prototype.observeActiveEndpoint=aM.prototype.observeActiveEndpoint;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],aM.prototype,"ytLazyListBehavior",void 0);_.k([_.Wp("#expandable-items"),_.W("design:type",HTMLElement)],aM.prototype,"expandableItems",void 0);
_.k([_.H(),_.W("design:type",Object)],aM.prototype,"data",void 0);_.k([_.H({readOnly:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],aM.prototype,"expanded",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],aM.prototype,"initialCount",void 0);_.k([_.H(),_.W("design:type",Object)],aM.prototype,"activeEndpoint",void 0);_.k([_.On("data","activeEndpoint","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aM.prototype,"observeActiveEndpoint",null);
aM=_.k([_.N({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],aM);
_.u(aM,"ytd-guide-collapsible-entry-renderer",function(){if(JwP!==void 0)return JwP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return JwP=v},{mode:_.HE("kevlar_poly_si_batch_j079")?1:2});var d8R;var IKp;var Zy=function(){var v=_.g.apply(this,arguments)||this;v.allVideosCount=0;v.renderGuideEntry=!1;return v};
_.S(Zy,_.g);Zy.prototype.observeRenderEntry=function(){var v;this.renderGuideEntry=!((v=this.data)==null||!v.alwaysShow)||!!this.allVideosCount};
Zy.prototype.observeRenderEntry=Zy.prototype.observeRenderEntry;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],Zy.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Zy.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Zy.prototype,"activeEndpoint",void 0);_.k([_.H({selector:_.jsI}),_.W("design:type",Object)],Zy.prototype,"allVideosCount",void 0);
_.k([_.H(),_.W("design:type",Object)],Zy.prototype,"renderGuideEntry",void 0);_.k([_.Tw("allVideosCount","data.alwaysShow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zy.prototype,"observeRenderEntry",null);Zy=_.k([_.N({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Zy);
_.u(Zy,"ytd-guide-downloads-entry-renderer",function(){if(IKp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);IKp=v}v=IKp;return v},{mode:1});var CN=function(){var v=_.g.apply(this,arguments)||this;v.youtab=_.Z("web_enable_youtab");v.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return v};
_.S(CN,_.g);_.c=CN.prototype;_.c.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]]"}}}}}};
_.c.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var v=this.sectionItems.children,E=0,n=v.length;E<n;E++)v[E].activeEndpoint=this.activeEndpoint}};
_.c.handleAddToGuideSectionAction=function(v){var E=_.C(v,Ww1);if(E&&this.data&&(v=E.items,E=E.handlerData,v&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1)){E=0;for(var n=v.length;E<n;E++)v[E].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,v[E])}};
_.c.handleRemoveFromGuideSectionAction=function(v){var E=_.C(v,$hd);E&&this.data&&(v=E.guideEntryId,E=E.handlerData,v&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(v,this.data.sectionItems),this.removeFromCollapsedSection(v,this.data.sectionItems)))};
_.c.removeFromExpandedSection=function(v,E){v=this.getEntryIndexMatchingId(v,E);v!==-1&&this.splice("data.sectionItems",v,1)};
_.c.removeFromCollapsedSection=function(v,E){var n=E.findIndex(function(f){return!!_.C(f,y$6)});
n&&n!==-1&&E[n]&&_.C(E[n],y$6)&&(E=_.C(E[n],y$6).expandableItems)&&(v=this.getEntryIndexMatchingId(v,E),v!==-1&&this.splice("data.sectionItems."+n+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.c.getEntryIndexMatchingId=function(v,E){var n=this;return E.findIndex(function(f){return n.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===v})};
CN.prototype.activeEndpointChanged=CN.prototype.activeEndpointChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],CN.prototype,"actionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#section-items"),_.W("design:type",HTMLDivElement)],CN.prototype,"sectionItems",void 0);
_.k([_.Wp("#header-entry"),_.W("design:type",Object)],CN.prototype,"headerEntry",void 0);_.k([_.H(),_.W("design:type",Object)],CN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],CN.prototype,"activeEndpoint",void 0);_.k([_.H(),_.W("design:type",Object)],CN.prototype,"youtab",void 0);_.k([_.On("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CN.prototype,"activeEndpointChanged",null);
CN=_.k([_.N({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],CN);
_.u(CN,"ytd-guide-collapsible-section-entry-renderer",function(){if(d8R===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);d8R=v}v=d8R;return v},{mode:1});var Y5b;var hO0;var Mc=function(){var v=_.g.apply(this,arguments)||this;v.modernTypography=_.Z("web_modern_typography");v.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 v};
_.S(Mc,_.g);_.c=Mc.prototype;
_.c.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}}}}};
_.c.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var v=_.kZ(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);v&&v.length===1&&v[0]&&_.kZ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.c.handleResetChannelUnreadCountCommand=function(v){var E;(v=(E=_.C(v,GtP))==null?void 0:E.channelId)&&this.data&&this.data.items&&(E=this.getPathToEntryMatchingId(v))&&(this.set(E+".guideEntryRenderer.count",0),this.set(E+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.c.handleResetSubscriptionsUnreadDotCommand=function(v){var E,n=(E=_.C(v,T73))==null?void 0:E.targetId,f;n&&(f=this.data)!=null&&f.items&&(v=this.data.items.findIndex(function(x){var y;return((y=x.guideEntryRenderer)==null?void 0:y.targetId)===n}),v<0||this.set("data.items."+v+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.c.getPathToEntryMatchingId=function(v){if(this.data&&this.data.items){var E=this.getEntryIndexMatchingId(v,this.data.items);if(E>-1)return"data.items."+E;for(var n=0;n<this.data.items.length;n++)if(E=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[n]))if(E=this.getEntryIndexMatchingId(v,E),E>-1)return"data.items."+n+".guideCollapsibleEntryRenderer.expandableItems."+E}};
_.c.handleAddToGuideSectionAction=function(v){var E=this;if(_.C(v,Ww1)){var n=_.C(v,Ww1).items;v=_.C(v,Ww1).handlerData;var f,x;n&&v&&((f=this.data)==null?void 0:(x=f.handlerDatas)==null?void 0:x.indexOf(v))>-1&&(n=n.filter(function(y){return(y=E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y))&&!E.isGuideItemPresent(y)}),this.unshift.apply(this,["data.items"].concat(_.s8(n))))}};
_.c.isGuideItemPresent=function(v){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(v,this.data.items)!==-1)return!0;var E=this.data.items.find(function(n){return!!n.guideCollapsibleEntryRenderer});
if((E==null?0:E.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(v,E.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.c.getEntryIndexMatchingId=function(v,E){var n=this;return E.findIndex(function(f){return n.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===v})};
_.c.handleRemoveFromGuideSectionAction=function(v){if(_.C(v,$hd)){var E=_.C(v,$hd).guideEntryId;v=_.C(v,$hd).handlerData;var n,f;E&&v&&((n=this.data)==null?void 0:(f=n.handlerDatas)==null?void 0:f.indexOf(v))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(E,this.data.items),this.removeFromCollapsedSection(E,this.data.items))}};
_.c.removeFromExpandedSection=function(v,E){v=this.getEntryIndexMatchingId(v,E);v!==-1&&this.splice("data.items",v,1)};
_.c.removeFromCollapsedSection=function(v,E){var n=E.findIndex(function(f){return!!f.guideCollapsibleEntryRenderer});
n!==-1&&(E=E[n].guideCollapsibleEntryRenderer.expandableItems)&&(v=this.getEntryIndexMatchingId(v,E),v!==-1&&this.splice("data.items."+n+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.c.activeEndpointChanged=function(){for(var v=_.K(this.hostElement).querySelector("#items").children,E=0,n=v.length;E<n;E++)v[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.c.guideOpenedChanged=function(){for(var v=_.K(this.hostElement).querySelector("#items").children,E=0,n=v.length;E<n;E++)v[E].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Mc.prototype.guideOpenedChanged=Mc.prototype.guideOpenedChanged;Mc.prototype.activeEndpointChanged=Mc.prototype.activeEndpointChanged;Mc.prototype.persistentGuideChanged=Mc.prototype.persistentGuideChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Mc.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Mc.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Mc.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Mc.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Mc.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Mc.prototype,"modernTypography",void 0);_.k([_.H(),_.W("design:type",String)],Mc.prototype,"type",void 0);_.k([_.H({value:20}),_.W("design:type",Number)],Mc.prototype,"initialCount",void 0);_.k([_.H({value:10}),_.W("design:type",Number)],Mc.prototype,"targetFramerate",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Mc.prototype,"autoFill",void 0);_.k([_.H({value:50}),_.W("design:type",Number)],Mc.prototype,"renderDelay",void 0);
_.k([_.On("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Mc.prototype,"persistentGuideChanged",null);_.k([_.Tw("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Mc.prototype,"activeEndpointChanged",null);_.k([_.Tw("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Mc.prototype,"guideOpenedChanged",null);
Mc=_.k([_.N({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Mc);
_.u(Mc,"ytd-guide-section-renderer",function(){if(hO0!==void 0)return hO0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return hO0=v},{mode:_.HE("kevlar_poly_si_batch_j073")?1:2});var AwM;var SX=function(){return _.g.apply(this,arguments)||this};
_.S(SX,_.g);_.hK.Object.defineProperties(SX.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],SX.prototype,"rendererBehaviors",void 0);_.k([_.H(),_.W("design:type",Object)],SX.prototype,"data",void 0);_.k([_.H(),_.A("data.signInButton.buttonRenderer.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],SX.prototype,"alignByText",null);SX=_.k([_.N({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],SX);
_.u(SX,"ytd-guide-signin-promo-renderer",function(){if(AwM===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);AwM=v}v=AwM;return v},{mode:1});var Uv=function(){var v=_.g.apply(this,arguments)||this;v.showFooter=!1;return v};
_.S(Uv,_.g);Uv.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}}}}};
Uv.prototype.attached=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1){E=_.P().resolve(_.jp(_.SR));if(!E)return n.jumpTo(0);E.setGuideData(v.hostElement);return _.m(n,0,3)}v.ytLazyListBehavior.initialCount=2;return n.return()})};
Uv.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Uv.prototype.dataChanged=Uv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Uv.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.jR.YtLazyListBehavior),_.W("design:type",Object)],Uv.prototype,"ytLazyListBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],Uv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Uv.prototype,"showFooter",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],Uv.prototype,"autoFill",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uv.prototype,"dataChanged",null);Uv=_.k([_.N({is:"ytd-guide-renderer",disableElementRegistration:!0})],Uv);
_.u(Uv,"ytd-guide-renderer",function(){if(Y5b!==void 0)return Y5b;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Y5b=v},{mode:_.HE("kevlar_poly_si_batch_j073")?1:2});var VzU;var qc=function(){var v=_.g.apply(this,arguments)||this;v.systemIcons=_.Z("kevlar_system_icons");v.frostedGlass=_.Z("web_frosted_glass");v.getEndpointForm=DDb;return v};
_.S(qc,_.g);_.c=qc.prototype;_.c.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.c.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.JC(this.data.formattedTitle))};
_.c.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.c.onDown=function(){this.interaction.triggerDown()};
_.c.onUp=function(){this.interaction.triggerUp()};
_.c.onTap=function(v){if(this.data.serviceEndpoint){var E;_.Z("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.C(this.data.serviceEndpoint,_.By))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):VNb(this.data.serviceEndpoint,this);v.preventDefault()}else{var n;((n=this.data)==null?0:n.navigationEndpoint)&&!_.Kh(_.MQ(v),this.hostElement,["A".toString()])&&_.jK(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.c.computeActive=function(v,E){if(!v)return!1;var n=v.navigationEndpoint;v=v.serviceEndpoint;if(!n&&!v||!E)return!1;if(n){v=_.C(n,_.ix);var f=_.C(E,_.ix);if(v&&f)return v.browseId===f.browseId&&v.params===f.params;var x;n=(x=_.C(n.commandMetadata,_.Dl))==null?void 0:x.url;var y;E=(y=_.C(E.commandMetadata,_.Dl))==null?void 0:y.url;return!(!n||!E||n!==E&&n!==_.R5(E))}return this.isActiveShortsTab(v,E)};
_.c.isActiveShortsTab=function(v,E){E=!!_.C(E,_.By)||!!_.C(E,_.SO);return(!!_.C(v,_.By)||!!_.C(v,_.SO))&&E};
_.c.computeTitle=function(v,E){return E?"":_.JC(v)};
_.hK.Object.defineProperties(qc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
qc.prototype.onTap=qc.prototype.onTap;qc.prototype.onUp=qc.prototype.onUp;qc.prototype.onDown=qc.prototype.onDown;qc.prototype.onActiveStateChange=qc.prototype.onActiveStateChange;qc.prototype.dataChanged=qc.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],qc.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.Mh),_.W("design:type",Object)],qc.prototype,"ironButtonState",void 0);_.k([_.H(),_.W("design:type",Object)],qc.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],qc.prototype,"activeEndpoint",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],qc.prototype,"noLabels",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.W("design:type",Boolean)],qc.prototype,"isActive",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qc.prototype,"systemIcons",void 0);_.k([_.Wp("yt-interaction"),_.W("design:type",Object)],qc.prototype,"interaction",void 0);_.k([_.A("isActive"),_.W("design:type",Object),_.W("design:paramtypes",[])],qc.prototype,"ariaSelected",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qc.prototype,"frostedGlass",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qc.prototype,"dataChanged",null);_.k([_.On("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qc.prototype,"onActiveStateChange",null);_.k([_.jk("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qc.prototype,"onDown",null);
_.k([_.jk("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qc.prototype,"onUp",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qc.prototype,"onTap",null);qc=_.k([_.N({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],qc);
_.u(qc,"ytd-mini-guide-entry-renderer",function(){if(VzU!==void 0)return VzU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return VzU=v},{mode:_.HE("kevlar_poly_si_batch_j063")?1:2});var D8p;var JN=function(){var v=_.g.apply(this,arguments)||this;v.allVideosCount=0;v.noLabels=_.Z("kevlar_mini_guide_no_labels");v.frostedGlass=_.Z("web_frosted_glass");return v};
_.S(JN,_.g);_.c=JN.prototype;_.c.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.c.visibleChanged=function(){if(this.visible&&!this.data){var v=_.P().resolve(_.jp(_.SR));v&&v.setGuideData(this.hostElement)}};
_.c.dataChanged=function(){var v=[],E;if((E=this.data)!=null&&E.items){E=_.p(this.data.items);for(var n=E.next();!n.done;n=E.next()){n=n.value;var f=void 0;if((f=n.guideSectionRenderer)==null?0:f.items)for(f=void 0,n=_.p((f=n.guideSectionRenderer)==null?void 0:f.items),f=n.next();!f.done;f=n.next())if(f=f.value,f.guideEntryRenderer)f=f.guideEntryRenderer,f.isPrimary&&v.push({guideEntryRenderer:f});else if(f.guideCollapsibleSectionEntryRenderer){var x=void 0;((x=_.C(f.guideCollapsibleSectionEntryRenderer.headerEntry,
g0))==null?0:x.isPrimary)&&v.push({guideEntryRenderer:_.C(f.guideCollapsibleSectionEntryRenderer.headerEntry,g0)});if(f=f.guideCollapsibleSectionEntryRenderer.sectionItems)for(f=_.p(f),x=f.next();!x.done;x=f.next()){var y=x.value;x=_.C(y,pD6);var Q=void 0;((Q=_.C(y,g0))==null?0:Q.isPrimary)?v.push({guideEntryRenderer:_.C(y,g0)}):x&&(y=void 0,_.C((y=x)==null?void 0:y.entryRenderer,g0)&&(x.alwaysShow||this.allVideosCount)&&v.push({guideEntryRenderer:_.C(x.entryRenderer,g0)}))}}}}this.miniGuideItems=
v};
_.c.activeEndpointChanged=function(){for(var v=this.items.children,E=0;E<v.length;E++)v[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
JN.prototype.activeEndpointChanged=JN.prototype.activeEndpointChanged;JN.prototype.dataChanged=JN.prototype.dataChanged;JN.prototype.visibleChanged=JN.prototype.visibleChanged;_.k([_.h(_.PL),_.W("design:type",Object)],JN.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],JN.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],JN.prototype,"ytComponentBehavior",void 0);_.k([_.Wp("#items"),_.W("design:type",Object)],JN.prototype,"items",void 0);_.k([_.H(),_.W("design:type",Object)],JN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],JN.prototype,"visible",void 0);
_.k([_.H(),_.W("design:type",Object)],JN.prototype,"miniGuideItems",void 0);_.k([_.H({selector:_.jsI}),_.W("design:type",Object)],JN.prototype,"allVideosCount",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],JN.prototype,"noLabels",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],JN.prototype,"frostedGlass",void 0);_.k([_.Tw("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JN.prototype,"visibleChanged",null);
_.k([_.Tw("data","allVideosCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JN.prototype,"dataChanged",null);_.k([_.Tw("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JN.prototype,"activeEndpointChanged",null);JN=_.k([_.N({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],JN);
_.u(JN,"ytd-mini-guide-renderer",function(){if(D8p===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);D8p=v}v=D8p;return v},{mode:1});var Hw3;var gx0=/^[\x00-\x7F]+$/,KN=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(KN,_.g);_.hK.Object.defineProperties(KN.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var v,E=_.JC((v=this.data)==null?void 0:v.handle);if(E)return _.qD("@"+E)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.JC(this.displayHandle),E,n=_.JC((E=this.data)==null?void 0:E.handleUrl);if(v&&n)return _.qD(n+v)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var v=_.JC(this.displayHandle);if(v&&!gx0.test(v)){var E;return(E=this.data)==null?void 0:E.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.JC(this.displayHandleUrl),E,n=_.JC((E=this.data)==null?void 0:E.urlInfoText);if(v&&n)return _.qD(n+" "+v)}}});
_.k([_.H(),_.W("design:type",Object)],KN.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KN.prototype,"displayHandle",null);_.k([_.A("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],KN.prototype,"displayHandleUrl",null);_.k([_.A("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],KN.prototype,"warningText",null);
_.k([_.A("displayHandleUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],KN.prototype,"urlInfoTextWithUrl",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],KN.prototype,"darkerDarkTheme",void 0);KN=_.k([_.N({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],KN);
_.u(KN,"ytd-handles-claiming-confirm-dialog-content",function(){if(Hw3!==void 0)return Hw3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Hw3=v},{mode:1});var NiU;var dZ=function(){var v=_.g.apply(this,arguments)||this;v.okButtonOverride={style:"mono",type:"outline",size:"M"};return v};
_.S(dZ,_.g);dZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dZ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dZ.prototype,"okButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],dZ.prototype,"data",void 0);dZ=_.k([_.N({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],dZ);
_.u(dZ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(NiU!==void 0)return NiU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return NiU=v},{mode:1});var uKR;var jhK=/^[\x00-\x7F]+$/,IM=function(){var v=_.g.apply(this,arguments)||this;v.isLoading=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(IM,_.g);IM.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var v;this.selectedHandle=(v=this.handleInput)==null?void 0:v.value;this.onSelectedHandleChanged(this.selectedHandle);_.kZ(this.hostElement,"yt-refit-popups-action")}};
_.hK.Object.defineProperties(IM.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.qD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.qD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jhK.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IM.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],IM.prototype,"selectedHandle",void 0);_.k([_.H(),_.W("design:type",Object)],IM.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Function)],IM.prototype,"onSelectedHandleChanged",void 0);_.k([_.Wp("#channel-handle-input"),_.W("design:type",Object)],IM.prototype,"handleInput",void 0);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"handleUrlPrefix",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"displayHandle",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"displayHandleUrl",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"warningText",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],IM.prototype,"darkerDarkTheme",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);IM=_.k([_.N({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],IM);
_.u(IM,"ytd-handles-claiming-edit-dialog-content",function(){if(uKR!==void 0)return uKR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return uKR=v},{mode:1});var Ow_;var Yu=function(){var v=_.g.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.selectButtonDisabled=!1;v.isLoading=!1;v.hasSelectedHandleEventListener=!1;v.selectedHandleChanged=function(E){v.selectedHandle=E};
return v};
_.S(Yu,_.g);_.c=Yu.prototype;_.c.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.c.onDataChanged=function(){var v,E;this.selectedHandle=(E=_.C((v=this.data)==null?void 0:v.inputField,N7U))==null?void 0:E.handle};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.onCancel=function(){this.selectedHandle="";_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
_.c.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(n,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.aN(v.hostElement,_.JC(f.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var x;if((x=v.data)==null?0:x.onChannelUpdateSuccess){n=v.data.onChannelUpdateSuccess;var y,Q;if(f=(y=_.C(n,_.rR))==null?void 0:(Q=y.popup)==null?void 0:Q.handlesClaimingConfirmDialogRenderer)f.handle=_.qD(v.selectedHandle);v.ytComponentBehavior.resolveCommand(n);_.OL(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){var n;v.content&&((n=v.content)==null?0:n.handleInput)&&v.content.handleInput.validate();v.isLoading=!1;_.aN(v.hostElement,_.tQ("TRY_AGAIN_LATER"))}}}))}};
_.c.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Yu.prototype.onDataChanged=Yu.prototype.onDataChanged;Yu.prototype.onSelectedHandleChanged=Yu.prototype.onSelectedHandleChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Yu.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"actionButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"cancelButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",String)],Yu.prototype,"selectedHandle",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"selectButtonDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"hasSelectedHandleEventListener",void 0);_.k([_.H(),_.W("design:type",Object)],Yu.prototype,"handleInput",void 0);
_.k([_.On("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yu.prototype,"onSelectedHandleChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yu.prototype,"onDataChanged",null);_.k([_.Wp("ytd-handles-claiming-edit-dialog-content"),_.W("design:type",Object)],Yu.prototype,"content",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);Yu=_.k([_.N({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Yu);
_.u(Yu,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Ow_!==void 0)return Ow_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Ow_=v},{mode:1});var kP_;var hN=function(){return _.g.apply(this,arguments)||this};
_.S(hN,_.g);_.hK.Object.defineProperties(hN.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.handle){var E;return _.qD("@"+_.JC((E=this.data)==null?void 0:E.handle))}}}});
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hN.prototype,"formattedHandle",null);_.k([_.H(),_.W("design:type",Object)],hN.prototype,"data",void 0);hN=_.k([_.N({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],hN);
_.u(hN,"ytd-handles-claiming-radio-option-renderer",function(){if(kP_!==void 0)return kP_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return kP_=v},{mode:1});var Whb;var $8C=/^[\x00-\x7F]+$/,AN=function(){var v=_.g.apply(this,arguments)||this;v.initialRadioIndex="-1";v.isLoading=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.maybeSubmitFeedback=function(){v.feedbackSurveyRenderer.submitSurvey()};
return v};
_.S(AN,_.g);AN.prototype.updateSelectedHandleIndexFromBinding=function(v){this.selectedRadioIndex=+v.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(v)};
AN.prototype.selectedHandleChanged=function(v){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var E;this.selectedHandle=(E=this.handleInput)==null?void 0:E.value;this.onSelectedHandleChanged(v)}};
_.hK.Object.defineProperties(AN.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return this.ytRendererBehavior.getSimpleString((v=this.data)==null?void 0:v.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.qD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.qD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$8C.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.k([_.H(),_.W("design:type",Object)],AN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],AN.prototype,"initialRadioIndex",void 0);_.k([_.H(),_.W("design:type",Number)],AN.prototype,"selectedRadioIndex",void 0);_.k([_.H(),_.W("design:type",String)],AN.prototype,"selectedHandle",void 0);_.k([_.H(),_.W("design:type",Object)],AN.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Function)],AN.prototype,"onSelectedHandleChanged",void 0);
_.k([_.H(),_.W("design:type",Function)],AN.prototype,"onSelectedRadioIndexChanged",void 0);_.k([_.Wp("#channel-handle-input"),_.W("design:type",Object)],AN.prototype,"handleInput",void 0);_.k([_.Wp("ytd-feedback-survey-renderer"),_.W("design:type",Object)],AN.prototype,"feedbackSurveyRenderer",void 0);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],AN.prototype,"radioButtonLength",null);
_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],AN.prototype,"handleUrlPrefix",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],AN.prototype,"displayHandle",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],AN.prototype,"displayHandleUrl",null);_.k([_.A("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],AN.prototype,"warningText",null);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],AN.prototype,"darkerDarkTheme",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);AN=_.k([_.N({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],AN);
_.u(AN,"ytd-handles-claiming-select-dialog-content",function(){if(Whb!==void 0)return Whb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Whb=v},{mode:1});var Lh0;var VY=function(){var v=_.g.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.initialRadioIndex="-1";v.selectButtonDisabled=!1;v.isLoading=!1;v.selectedRadioIndexChanged=function(E){v.selectedRadioIndex=Number(E.detail.value)};
v.selectedHandleChanged=function(E){v.selectedHandle=E.detail.value};
v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(VY,_.g);_.c=VY.prototype;_.c.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.c.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.c.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.kZ(this.hostElement,"yt-refit-popups-action")};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
_.c.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(n,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.aN(v.hostElement,_.JC(f.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var x;if((x=v.data)==null?0:x.onChannelUpdateSuccess){n=v.data.onChannelUpdateSuccess;f=_.C(n,_.rR);var y;if(f==null?0:(y=f.popup)==null?0:y.handlesClaimingConfirmDialogRenderer)f.popup.handlesClaimingConfirmDialogRenderer.handle=_.qD(v.selectedHandle);v.ytComponentBehavior.resolveCommand(n);_.OL(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){if(v.selectedRadioIndex===v.radioButtonLength){var n;v.content&&((n=v.content)==null?0:n.handleInput)&&v.content.handleInput.validate()}v.isLoading=!1;_.aN(v.hostElement,_.tQ("TRY_AGAIN_LATER"))}}}))}};
_.c.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var v,E;this.selectedHandle=(v=this.content)==null?void 0:(E=v.handleInput)==null?void 0:E.value}else this.selectedRadioIndex>=0&&((v=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(v==null?void 0:v.handle):this.selectedHandle=void 0)};
_.c.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.c.getRadioItem=function(v){if(this.radioButtonLength>v&&v>=0)return _.C(this.data.radioButton[v],EV3)};
_.hK.Object.defineProperties(VY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}}});
VY.prototype.onSelectedHandleChanged=VY.prototype.onSelectedHandleChanged;VY.prototype.onSelectedHandleIndexChanged=VY.prototype.onSelectedHandleIndexChanged;VY.prototype.onDataChanged=VY.prototype.onDataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],VY.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],VY.prototype,"actionButtonOverride",void 0);_.k([_.H(),_.W("design:type",Object)],VY.prototype,"cancelButtonOverride",void 0);
_.k([_.H(),_.W("design:type",Object)],VY.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],VY.prototype,"initialRadioIndex",void 0);_.k([_.H(),_.W("design:type",Number)],VY.prototype,"selectedRadioIndex",void 0);_.k([_.H(),_.W("design:type",String)],VY.prototype,"selectedHandle",void 0);_.k([_.H(),_.W("design:type",Object)],VY.prototype,"selectButtonDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],VY.prototype,"isLoading",void 0);
_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],VY.prototype,"radioButtonLength",null);_.k([_.Wp("ytd-handles-claiming-select-dialog-content"),_.W("design:type",Object)],VY.prototype,"content",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VY.prototype,"onDataChanged",null);
_.k([_.On("selectedRadioIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VY.prototype,"onSelectedHandleIndexChanged",null);_.k([_.On("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VY.prototype,"onSelectedHandleChanged",null);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],VY.prototype,"darkerDarkTheme",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);VY=_.k([_.N({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],VY);
_.u(VY,"ytd-handles-claiming-select-dialog-renderer",function(){if(Lh0!==void 0)return Lh0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return Lh0=v},{mode:1});var GPK;var Tip;var Dy=function(){return _.g.apply(this,arguments)||this};
_.S(Dy,_.g);Dy.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dy.prototype,"data",void 0);Dy=_.k([_.N({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Dy);
_.u(Dy,"ytd-hotkey-dialog-section-option-renderer",function(){if(Tip!==void 0)return Tip;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Tip=v},{mode:1});var iwU;var HJ=function(){return _.g.apply(this,arguments)||this};
_.S(HJ,_.g);HJ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],HJ.prototype,"data",void 0);HJ=_.k([_.N({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],HJ);
_.u(HJ,"ytd-hotkey-dialog-section-renderer",function(){if(iwU!==void 0)return iwU;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return iwU=v},{mode:1});var gZ=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(gZ,_.g);gZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],gZ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],gZ.prototype,"darkerDarkTheme",void 0);gZ=_.k([_.N({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],gZ);
_.u(gZ,"ytd-hotkey-dialog-content",function(){if(GPK!==void 0)return GPK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return GPK=v},{mode:1});var zOx;var Nc=function(){return _.g.apply(this,arguments)||this};
_.S(Nc,_.g);Nc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v=document.querySelector("ytd-hotkey-dialog-content #scrollable");v&&(v.dialogElement=this.hostElement.parentElement)};
Nc.prototype.onCloseTap=function(){_.OL(this.hostElement,"yt-close-popup-action")};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.k([_.N({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Nc);
_.u(Nc,"ytd-hotkey-dialog-renderer",function(){if(zOx!==void 0)return zOx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return zOx=v},{mode:1});var RO1;var uu=function(){return _.g.apply(this,arguments)||this};
_.S(uu,_.g);uu.prototype.onYtServiceRequestError=function(){if(this.blocked){var v;var E=(v=this.data)==null?void 0:v.defaultServiceEndpoint}else{var n;E=(n=this.data)==null?void 0:n.toggledServiceEndpoint}var f;(E=(f=_.C(E,_.V0o))==null?void 0:f.onFailureAction)&&this.ytComponentBehavior.resolveCommand(E);this.updateBlockState(!this.blocked)};
uu.prototype.onYtToggleButton=function(v){this.updateBlockState(v.detail.toggled)};
uu.prototype.updateBlockState=function(v){if(v!==this.blocked){var E=this.blockedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.n7("blockStateEntity",E,{key:E,blocked:v}));this.set("data.isToggled",v)}};
_.hK.Object.defineProperties(uu.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)}}});
uu.prototype.onYtToggleButton=uu.prototype.onYtToggleButton;uu.prototype.onYtServiceRequestError=uu.prototype.onYtServiceRequestError;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],uu.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],uu.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],uu.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],uu.prototype,"blockedEntityKey",void 0);
_.k([_.H({selectorArgs:["blockedEntityKey"],selector:function(v,E){return _.LH(v.entities,"blockStateEntity",E)}}),
_.W("design:type",Object)],uu.prototype,"blockStateEntity",void 0);_.k([_.A("data","blockStateEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],uu.prototype,"blocked",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uu.prototype,"onYtServiceRequestError",null);
_.k([_.jk("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uu.prototype,"onYtToggleButton",null);uu=_.k([_.N({is:"ytd-block-button",disableElementRegistration:!0})],uu);
_.u(uu,"ytd-block-button",function(){if(RO1!==void 0)return RO1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return RO1=v},
{mode:1});var tz0;var Bi_;var jX=function(){return _.g.apply(this,arguments)||this};
_.S(jX,_.g);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jX.prototype,"data",void 0);jX=_.k([_.N({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],jX);
_.u(jX,"ytd-kids-blocklist-picker-item-renderer",function(){if(Bi_!==void 0)return Bi_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Bi_=v},{mode:1});var Ov=function(){return _.g.apply(this,arguments)||this};
_.S(Ov,_.g);Ov.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ov.prototype,"data",void 0);Ov=_.k([_.N({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Ov);
_.u(Ov,"ytd-kids-blocklist-picker-content",function(){if(tz0!==void 0)return tz0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return tz0=
v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var vFK;var ku=function(){var v=_.g.apply(this,arguments)||this;v.hasAnyRequestSucceeded=!1;v.hasAnyRequestFailed=!1;v.numPendingRequests=0;return v};
_.S(ku,_.g);_.c=ku.prototype;_.c.attached=function(){this.hostElement.setAttribute("dialog","")};
_.c.onDoneButtonTap=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.c.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.c.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.c.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.c.onPopupClosed=function(v){var E,n;if(((E=v.detail)==null?void 0:(n=E.popup)==null?void 0:n.is)==="tp-yt-paper-dialog"){var f;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((f=this.data)==null?0:f.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.hC(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
ku.prototype.onPopupClosed=ku.prototype.onPopupClosed;ku.prototype.onYtServiceRequestError=ku.prototype.onYtServiceRequestError;ku.prototype.onYtServiceRequestCompleted=ku.prototype.onYtServiceRequestCompleted;ku.prototype.onYtServiceRequestSent=ku.prototype.onYtServiceRequestSent;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],ku.prototype,"data",void 0);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ku.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ku.prototype,"onYtServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ku.prototype,"onYtServiceRequestError",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ku.prototype,"onPopupClosed",null);ku=_.k([_.N({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],ku);
_.u(ku,"ytd-kids-blocklist-picker-renderer",function(){if(vFK!==void 0)return vFK;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return vFK=v},{mode:1});var EF3;var nFU;var WJ=function(){return _.g.apply(this,arguments)||this};
_.S(WJ,_.g);WJ.prototype.setTip=function(v){var E=this;this.data&&(this.tip=WL_(OtP.getInstance(),v,this.data),_.IS(this,function(){_.jK(E.hostElement,"yt-refit")}))};
WJ.prototype.clearTip=function(){this.tip=void 0};
WJ.prototype.computeHidden=function(v){return!v};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],WJ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.W("design:type",Boolean)],WJ.prototype,"hidden",void 0);_.k([_.H(),_.W("design:type",Object)],WJ.prototype,"tip",void 0);WJ=_.k([_.N({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],WJ);
_.u(WJ,"ytd-menu-popup-tip-renderer",function(){if(nFU!==void 0)return nFU;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);
return nFU=v},{mode:1});var oFb;var $u=function(){var v=_.g.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.Z("kevlar_system_icons");v.useListItemStyles=_.Z("web_list_item_style_for_menu_items");return v};
_.S($u,_.g);_.c=$u.prototype;_.c.onFocus=function(){var v;(v=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.c.onTap=function(){var v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(v&&_.C(v,_.Tn))this.componentBehavior.resolveCommand(v),this.updateToggledStateInEntity();else if(v){this.componentBehavior.resolveCommand(v)||_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}});var E;((E=_.C(v,_.zn))==null?void 0:E.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.c.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.c.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.c.updateToggledStateInEntity=function(){var v=this.data.toggleMenuServiceItemEntityKey,E=!this.data.isToggled;v&&this.ytdReduxBehavior.dispatch(_.n7("toggleMenuServiceItemEntity",v,{key:v,isToggled:E}))};
_.c.computeIcon=function(v,E,n){return(v=v?n:E)&&v.iconType?_.jI(v.iconType):""};
_.c.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.c.isIconActive=function(v){return!_.Z("toggle_menu_active_icon_killswitch")&&v};
_.hK.Object.defineProperties($u.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?0:v.isToggled)?(E=this.data)==null?void 0:E.toggledText:(n=this.data)==null?void 0:n.defaultText}}});
$u.prototype.toggledStateEntityChanged=$u.prototype.toggledStateEntityChanged;$u.prototype.onYtServiceRequestCompleted=$u.prototype.onYtServiceRequestCompleted;$u.prototype.onTap=$u.prototype.onTap;$u.prototype.onFocus=$u.prototype.onFocus;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],$u.prototype,"componentBehavior",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],$u.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],$u.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$u.prototype,"useIcons",void 0);_.k([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],$u.prototype,"icon",void 0);
_.k([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(v,E){return _.LH(v.entities,"toggleMenuServiceItemEntity",E)}}),
_.W("design:type",Object)],$u.prototype,"toggleMenuServiceItemEntity",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$u.prototype,"systemIcons",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],$u.prototype,"useListItemStyles",void 0);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$u.prototype,"onFocus",null);
_.k([_.A("data.isToggled"),_.W("design:type",Object),_.W("design:paramtypes",[])],$u.prototype,"toggleButtonText",null);_.k([_.jk("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$u.prototype,"onTap",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$u.prototype,"onYtServiceRequestCompleted",null);
_.k([_.On("toggleMenuServiceItemEntity.isToggled","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$u.prototype,"toggledStateEntityChanged",null);$u=_.k([_.N({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],$u);
_.u($u,"ytd-toggle-menu-service-item-renderer",function(){if(oFb!==void 0)return oFb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return oFb=v},{mode:1});var ftb;var LN=function(){return _.g.apply(this,arguments)||this};
_.S(LN,_.g);LN.prototype.onFocus=function(){var v;(v=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.hK.Object.defineProperties(LN.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.bW(this.data.iconUrl)}}});
LN.prototype.onFocus=LN.prototype.onFocus;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],LN.prototype,"rendererBehavior",void 0);_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],LN.prototype,"ytEndpointBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],LN.prototype,"data",void 0);_.k([_.jk("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LN.prototype,"onFocus",null);
_.k([_.A("data.iconUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],LN.prototype,"imageSource",null);LN=_.k([_.N({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],LN);
_.u(LN,"ytd-menu-custom-icon-item-renderer",function(){if(ftb!==void 0)return ftb;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ftb=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});_.Yz(_.FZ,"yt-list-item-view-model",{props:{data:_.Kt,isMenuItem:_.Kt,isCompact:_.Kt,onTap:_.Ij,trailingAccessory:_.Ij,hideSelectionTextChevron:_.Kt,disabled:_.Kt,inPopup:_.Kt,disableHorizontalPadding:_.Kt,isOverlay:_.Kt}});var GF=function(){var v=_.g.apply(this,arguments)||this;v.disableBackdropFilter=_.Z("web_disable_backdrop_filter");return v};
_.S(GF,_.g);_.c=GF.prototype;
_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.c.computeAriaLabel=function(v){return v};
_.c.onPopupOpened=function(){this.items.selected=0;for(var v=_.p(_.K(this.items).children),E=v.next();!E.done;E=v.next())E.value.popupPositionTarget=this.positionTarget;if(v=this.popupTip||void 0)v.setTip(this.source||""),this.source=void 0;this.veData&&(v=_.lc())&&_.CH(v,[this.veData])};
_.c.onPopupClosed=function(){var v=this.popupTip||void 0;v&&v.clearTip()};
_.c.onIronActivate=function(v){this.shouldPersist(v)||_.OL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(v=_.lc())&&_.qx(v,this.veData)};
_.c.shouldPersist=function(v){var E,n;if(((E=v.detail)==null?void 0:E.selected)===void 0||(n=this.data)==null||!n.items)return!1;var f,x;return!((x=(f=this.data.items[v.detail.selected])==null?void 0:f.toggleMenuServiceItemRenderer)==null||!x.persistentOnMenuPopup)};
_.c.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(v){return v.menuNavigationItemRenderer?!!v.menuNavigationItemRenderer.icon:v.menuServiceItemRenderer?!!v.menuServiceItemRenderer.icon:v.menuConditionalServiceItemRenderer?!!v.menuConditionalServiceItemRenderer.icon:v.menuConditionalNavigationItemRenderer?!!v.menuConditionalNavigationItemRenderer.icon:v.toggleMenuServiceItemRenderer?!!v.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
GF.prototype.onPopupClosed=GF.prototype.onPopupClosed;GF.prototype.onPopupOpened=GF.prototype.onPopupOpened;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],GF.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],GF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],GF.prototype,"veData",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.W("design:type",String)],GF.prototype,"ariaLabel",void 0);_.k([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GF.prototype,"useIcons",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],GF.prototype,"disableBackdropFilter",void 0);_.k([_.Wp("#items"),_.W("design:type",Object)],GF.prototype,"items",void 0);_.k([_.Wp("ytd-menu-popup-tip-renderer"),_.W("design:type",Object)],GF.prototype,"popupTip",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GF.prototype,"onPopupOpened",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GF.prototype,"onPopupClosed",null);GF=_.k([_.N({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],GF);
_.u(GF,"ytd-menu-popup-renderer",function(){if(EF3!==void 0)return EF3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return EF3=v},{mode:1});var xU6;var ck6=_.qu(function(v){v=_.Ue(v,{icon:void 0});var E=v.data;v=v.icon;var n=function(){return E().iconBadgeText},f={},x=_.W8("yt-spec-icon-badge-shape",function(){a:switch(E().iconBadgeType){case "notification":var y="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":y="yt-spec-icon-badge-shape--type-cart";break a;default:y=""}return y},function(){a:switch(E().iconBadgeStyle){case "overlay":var y="yt-spec-icon-badge-shape--style-overlay";
break a;default:y=""}return y},(f["yt-spec-icon-badge-shape--text-size-small"]=function(){var y=n();
return!!((y==null?0:y.length)&&y.length>2)},f));
return _.w("yt-icon-badge-shape",null,_.w(_.x6,{cond:v,then:function(y){return _.w("div",{class:x},_.w("div",{class:"yt-spec-icon-badge-shape__icon"},_.w(_.B8,{icon:y})),_.w(_.x6,{cond:n,then:function(Q){return _.w("div",{class:"yt-spec-icon-badge-shape__badge"},Q)}}))}}))},"cg");
ck6.idomCompat=!0;_.Yz(ck6,"yt-icon-badge-shape",{props:{data:_.Kt,icon:_.Kt}});var TF=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};v.unseenCount=0;v.isOverlay=!1;return v};
_.S(TF,_.g);_.c=TF.prototype;_.c.attached=function(){var v=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(E){v.onServiceWorkerMessage(E)})};
_.c.onDataChanged=function(){this.isAttached&&!this.JSC$18142_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18142_lastData=this.data};
_.c.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.c.computeIcon=function(){var v,E;return(v=this.data)==null?void 0:(E=v.icon)==null?void 0:E.iconType};
_.c.onServiceWorkerMessage=function(v){v.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.c.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.C(this.data.updateUnseenCountEndpoint,_.zn)&&_.C(this.data.updateUnseenCountEndpoint,_.zn).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.c.handleUpdateNotificationsUnseenCountAction=function(v){var E=this;v=_.C(v,Lwb);v!=null&&v.unseenCount&&v.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(v.unseenCount),_.wh.addLowPriorityJob(function(){E.data.updateUnseenCountEndpoint&&E.ytComponentBehavior.resolveCommand(E.data.updateUnseenCountEndpoint)},v.timeoutMs))};
_.c.onClick=function(){_.jK(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var v=_.kZ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),E=this.data.menuRequest;v&&v.length===1&&v[0]?_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):E&&this.ytComponentBehavior.resolveCommand(E)};
_.c.handleTopbarMenuClosedAction=function(v){v==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.c.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
_.c.sendUnseenCountRequest=function(v){var E=this;_.cP(_.wh,function(){E.ytComponentBehavior.resolveCommand(v)})};
_.c.updateCountUI=function(v){this.set("unseenCount",v<9?v:"9+")};
_.hK.Object.defineProperties(TF.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
TF.prototype.handleUpdateNotificationsUnseenCountAction=TF.prototype.handleUpdateNotificationsUnseenCountAction;TF.prototype.onDataChanged=TF.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],TF.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.YM),_.W("design:type",Object)],TF.prototype,"ytdOpenPopupBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],TF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],TF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],TF.prototype,"unseenCount",void 0);_.k([_.H(),_.W("design:type",Object)],TF.prototype,"isOverlay",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],TF.prototype,"showTooltips",void 0);_.k([_.Wp("yt-icon-button"),_.W("design:type",Object)],TF.prototype,"iconButton",void 0);
_.k([_.A("unseenCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],TF.prototype,"showNotificationCount",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TF.prototype,"onDataChanged",null);_.k([_.jk("yt-update-notifications-unseen-count-action"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],TF.prototype,"handleUpdateNotificationsUnseenCountAction",null);
TF=_.k([_.N({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],TF);
_.u(TF,"ytd-notification-topbar-button-renderer",function(){if(xU6!==void 0)return xU6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return xU6=v},{mode:_.HE("kevlar_poly_si_batch_j025")?1:2});var yk_;var iu=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return v};
_.S(iu,_.g);iu.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}}}}}};
iu.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
iu.prototype.onDarkModeToggled=function(v){this.dark=v};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],iu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],iu.prototype,"data",void 0);_.k([_.H({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],iu.prototype,"dark",void 0);
iu=_.k([_.N({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],iu);
_.u(iu,"yt-pdg-buy-flow-header-renderer",function(){if(yk_!==void 0)return yk_;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return yk_=v},{mode:1});var p$M;var QB_;var zF=function(){var v=_.g.apply(this,arguments)||this;v.immediateValue=0;v.isDarkTheme=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(zF,_.g);_.c=zF.prototype;_.c.created=function(){_.YO.requestAvailability()};
_.c.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.c.dataChanged=function(){var v=_.K(this.hostElement).querySelector("#color-slider");v.immediateValue&&this.updateSliderKnobAndGradientStyles(v.immediateValue);this.data.notches[0].knobColorArgb&&_.NQ(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Qt(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.MX("HTML_DIR")==="rtl"&&_.K(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.c.onSliderImmediateChange=function(){var v=_.K(this.hostElement).querySelector("#color-slider");v.dragging&&(v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue)),this.updateSliderAria())};
_.c.onSliderChange=function(){var v=_.K(this.hostElement).querySelector("#color-slider");v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue));this.updateSliderAria()};
_.c.updateSliderAria=function(){var v=_.K(this.hostElement).querySelector("#color-slider"),E=_.K(this.hostElement).querySelector("#color-slider");E=_.JC(this.data.notches[E.immediateValue].tierValue);_.YX()&&_.jK(this.hostElement,"iron-announce",{text:E});v.setAttribute("aria-valuetext",E)};
_.c.updateSuperThanksSelectedTierEntity=function(v){if(v!==this.immediateValue){var E,n,f=this==null?void 0:(E=this.data)==null?void 0:(n=E.superThanksSelectedTierEntity)==null?void 0:n.key;f&&f.length>0&&this.ytdReduxBehavior.dispatch(_.n7("superThanksSelectedTierEntity",f,{key:f,index:v}))}};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.updateSliderKnobAndGradientStyles=function(v){this.immediateValue=v;v=this.data.notches[v];if(v==null?0:v.knobColorArgb)var E={"--ytd-pdg-color-slider-knob-color":_.Qt(v.knobColorArgb)};(v==null?0:v.linearGradientCssStyle)&&E!==null&&(E=Object.assign({},E,{"--ytd-pdg-color-slider-active-color":v==null?void 0:v.linearGradientCssStyle}));E!==null&&_.NQ(this.hostElement,E)};
zF.prototype.onSliderChange=zF.prototype.onSliderChange;zF.prototype.onSliderImmediateChange=zF.prototype.onSliderImmediateChange;zF.prototype.dataChanged=zF.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],zF.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],zF.prototype,"immediateValue",void 0);_.k([_.H(),_.W("design:type",Number)],zF.prototype,"maxMarkers",void 0);
_.k([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z0P}),_.W("design:type",Object)],zF.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],zF.prototype,"isDarkTheme",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],zF.prototype,"ytdReduxBehavior",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zF.prototype,"dataChanged",null);
_.k([_.jk("immediate-value-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zF.prototype,"onSliderImmediateChange",null);_.k([_.jk("change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zF.prototype,"onSliderChange",null);zF=_.k([_.N({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],zF);
_.u(zF,"ytd-pdg-color-slider-renderer",function(){if(QB_!==void 0)return QB_;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return QB_=v},{mode:1});var X$p;var eaM;var RM=null;
_.Ee({is:"ytd-comment-input",_template:function(){if(eaM!==void 0)return eaM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return eaM=v},
behaviors:[_.U8I.YtHostElementBehavior,_.Ff,_.aD.YtComponentBehavior,_.gm.YtRendererstamperBehavior,_.p1i.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 _.af}},
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",_.uo(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;_.o4();this.focus()},
detached:function(){document.removeEventListener("tap",_.uo(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,v);this.maybeUpdateTextDirection_();_.jK(this.hostElement,"input")},
getInputRange_:function(){var v=_.Qe();if(v){v=v.getBrowserRangeObject();for(var E=v.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return v;E=E.parentNode}}v=this.getEditableTextArea_();v=_.q7(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,E,n){(E=this.emojiManager.createDocumentFragment(E,!0,!1,n===void 0?!0:n))&&E.childNodes.length!==0&&(v.collapsed||v.deleteContents(),n=E.lastChild,v.insertNode(E),_.f_X(n).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var v=_.Qe();if(v){var E=v.JSC$9144_getStartNode(),n=v.JSC$9144_getEndNode();if(HCp(E)&&HCp(n)){var f=v.JSC$9144_getStartOffset(),x;if(_.c2&&E.nodeType===Node.ELEMENT_NODE&&(x=_.a1o(E)))_.q7(x,0).select();else{x=OX(E)?E:_.Ss(E,OX);var y=OX(n)?n:_.Ss(n,OX);if(x||y)if(v.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){v=!0;f===E.length&&(v=!1);if(RM==="end"||RM==="right")v=!1;E=E.parentNode;v=[].concat(_.s8(E.parentNode.childNodes)).indexOf(E)+(v?0:1);_.q7(E.parentNode,v).select()}}else x?
x.previousSibling&&x.previousSibling.length>0?_.JT(n,v.JSC$9144_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),x.parentNode.insertBefore(E,x),_.JT(n,v.JSC$9144_getEndOffset(),E,0).select()):y&&(y.nextSibling&&y.nextSibling.length>0?_.JT(E,v.JSC$9144_getStartOffset(),y.nextSibling,1).select():(n=document.createTextNode("\u200b"),y.parentNode.insertBefore(n,y.nextSibling),_.JT(E,v.JSC$9144_getStartOffset(),n,n.length).select()));RM=null}}else RM=
null}else RM=null},
leftKeyPressed_:function(){RM="left"},
rightKeyPressed_:function(){RM="right"},
endKeyPressed_:function(){RM="end"},
maybeDeleteChip_:function(){var v=keC(!0);if(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();_.Ze(n,E,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=keC(!1);if(v){var E=_.Qe(),n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();_.Ze(n,E,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var E=_.Qe();if(E.isCollapsed()){var n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();var f=WW_(n,E,!0);f&&(_.Ze(n,E,f,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var E=_.Qe();if(E.isCollapsed()){var n=E.JSC$9144_getStartNode();E=E.JSC$9144_getStartOffset();var f=WW_(n,E,!1);f&&(_.Ze(n,E,f,f.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onContentClick:function(v){v.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(v){v.defaultPrevented||v.currentTarget.tagName==="YTD-COMMENT-INPUT"&&OX(v.target)&&v.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(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(v,E){v=NGx(v,this.emojiManager,E).cloneNode(!0);for(E=v.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var n=_.ay();_.KUF(n,E);E=n.nextSibling;break;case "DIV":(n=E.lastChild)&&E.nextSibling&&_.Sr(_.ay(),n);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.Mm(_.ay(),E);n&&n.nodeName==="BR"&&_.fT(n);n=E;E.hasChildNodes()?(E=E.firstChild,
_.dPX(n)):(E=E.nextSibling,_.fT(n));break;default:E=E.nextSibling}return $D1(v)},
setTextAreaValue:function(v){v||(v="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});E.text=v},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();RM=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.q7(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.MX("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",E)}},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(v=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(v,!0);this.updateCharCount_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
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(v){this.isEmojiButtonDisplayed&&(v.preventDefault(),v.stopImmediatePropagation(),v=v.clipboardData.getData("text/plain"),this.insertText_(v,!1,!1),_.jK(this.hostElement,"input"))},
insertText_:function(v,E,n){E=E===void 0?!1:E;n=n===void 0?!0:n;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(E&&this.emojiInput.offsetStartOfRangeBy(f,v.length),this.insertTextWithEmojis_(f,v,n),gt6(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,v),this.updateSuggestionOffset_(f)))}},
getSimpleString:_.JC,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computePlaceholderText_:function(v){return this.getSimpleString(v)},
computeEditableText_:function(v){return this.getSimpleString(v)},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(v,E){v?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var E=this.getEditableTextArea_();[].concat(_.s8(v.dataTransfer.items)).forEach(function(n){n.kind==="string"&&n.type.match("^text/plain")&&n.getAsString(function(f){E.appendChild(document.createTextNode(f))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,n=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-n)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-E;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.P7("yt-post"));return this.localStorage}});var tN=function(){var v=_.g.apply(this,arguments)||this;v.currentCommentOptionIndex=0;v.isEmojiPickerDisplayed=!1;v.emojiManager=_.af;v.isUgcEmpty=!1;v.userGeneratedCommentChangedHandler=function(){_.jK(v.hostElement,"ytd-pdg-user-generated-comment-changed");v.isEmojiYtdCommentInputEnabled&&(v.isUgcEmpty=!v.ytdCommentInputEl.getTextAreaValue())};
v.pasteHandler=function(E){E.preventDefault();E.stopImmediatePropagation();var n;if(E=(n=E.clipboardData)==null?void 0:n.getData("text/plain"))n=document.getSelection().getRangeAt(0),n.collapsed||n.deleteContents(),E=document.createTextNode(E),n.insertNode(E),n.selectNodeContents(E),n.collapse(!1),E=window.getSelection(),E.removeAllRanges(),E.addRange(n)};
v.onDocumentClick=function(E){if(v.isEmojiPickerDisplayed){var n,f,x;!(E.target instanceof Node)||(n=E.composedPath())!=null&&n.includes(v.editableTextEl)||(f=E.composedPath())!=null&&f.includes(v.emojiButtonEl)||(x=E.composedPath())!=null&&x.includes(v.emojiPickerEl)||(v.isEmojiPickerDisplayed=!1)}};
return v};
_.S(tN,_.g);_.c=tN.prototype;_.c.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.c.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.c.detached=function(){var v;(v=this.contentEl)==null||v.removeEventListener("input",this.userGeneratedCommentChangedHandler);var E;(E=this.contentEl)==null||E.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.c.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.c.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var v;this.contentEl.textContent=this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.c.reloadEmojis=function(){this.emojiPickerEl&&_.C(this.emojiPicker,_.L24)&&this.emojiPickerEl.updateEmojiCategories()};
_.c.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.NQ(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.c.handleBackgroundColorStyling=function(){var v;if((v=this.currentCommentOption)==null?0:v.commentBackgroundColorArgb){var E;_.NQ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Qt((E=this.currentCommentOption)==null?void 0:E.commentBackgroundColorArgb)})}else _.NQ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.c.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var v;(v=this.contentEl)==null||v.focus()}};
_.c.onEditButtonClick=function(v){var E=document.getSelection();E&&this.contentEl&&(v.stopPropagation(),v.preventDefault(),E.selectAllChildren(this.contentEl),E.collapseToEnd())};
_.c.onContentDrop=function(v){var E=this;if(v.dataTransfer){v=_.p(v.dataTransfer.items);for(var n=v.next();!n.done;n=v.next())n=n.value,n.kind==="string"&&n.type.match("^text/plain")&&n.getAsString(function(f){var x;(x=E.contentEl)==null||x.appendChild(document.createTextNode(f))})}};
_.c.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.c.getUserGeneratedCommentText=function(){var v,E=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(v=this.contentEl)==null?void 0:v.textContent;return E?E.trim():""};
_.c.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.c.onEmojiSelect=function(v){this.ytdCommentInputEl.onEmojiSelect(v)};
_.hK.Object.defineProperties(tN.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.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 v;return!((v=this.currentCommentOption)==null||!v.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(_.C((v=this.currentCommentOption)==null?void 0:v.chipRenderer,_.nO4)){var E;return _.C((E=this.currentCommentOption)==null?void 0:E.chipRenderer,_.nO4)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var v,E;return((v=this.data)==null?0:v.commentOptionRenderers)?_.C((E=this.data)==null?void 0:E.commentOptionRenderers[this.superThanksSelectedTierEntity.index],r$C):void 0}var n,f;return((n=this.data)==null?0:n.commentOptionRenderers)?_.C((f=this.data)==null?void 0:f.commentOptionRenderers[this.currentCommentOptionIndex],r$C):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.commentDialog,_.gDX))==null?void 0:E.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.commentDialog,_.gDX))==null?void 0:E.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=_.C((v=this.data)==null?void 0:v.commentDialog,_.gDX))==null?void 0:E.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(E=_.C((v=this.data)==null?void 0:v.commentDialog,_.gDX))==null?void 0:E.emojiPicker;if(!_.C(n,_.L24)||!_.C(n,_.L24).categories)return!1;v=function(y){return y.emojiPickerCategoryRenderer?y.emojiPickerCategoryRenderer.emojiIds&&y.emojiPickerCategoryRenderer.emojiIds.length>0:y.emojiPickerUpsellCategoryRenderer?y.emojiPickerUpsellCategoryRenderer.emojis&&y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var f,x;return((f=_.C(n,_.L24))==null?0:(x=f.categories)==null?0:x.find(v))?!0:!1}}});
tN.prototype.onEmojiSelect=tN.prototype.onEmojiSelect;tN.prototype.dataChanged=tN.prototype.dataChanged;tN.prototype.currentCommentOptionChanged=tN.prototype.currentCommentOptionChanged;_.k([_.h(_.PL),_.W("design:type",Object)],tN.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],tN.prototype,"rendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.Wp("#content-dom-if"),_.W("design:type",_.xi)],tN.prototype,"contentDomIfEl",void 0);_.k([_.Wp("#content-no-emojis"),_.W("design:type",HTMLElement)],tN.prototype,"contentEl",void 0);_.k([_.Wp("#container"),_.W("design:type",HTMLElement)],tN.prototype,"containerEl",void 0);_.k([_.Wp("#comment-chip-container"),_.W("design:type",HTMLElement)],tN.prototype,"paidCommentChipContainerEl",void 0);_.k([_.Wp("#text-input"),_.W("design:type",HTMLElement)],tN.prototype,"editableTextEl",void 0);
_.k([_.Wp("#emoji-button"),_.W("design:type",HTMLElement)],tN.prototype,"emojiButtonEl",void 0);_.k([_.Wp("#emoji-picker > yt-emoji-picker-renderer"),_.W("design:type",Object)],tN.prototype,"emojiPickerEl",void 0);_.k([_.Wp("#text-input > ytd-comment-input"),_.W("design:type",Object)],tN.prototype,"ytdCommentInputEl",void 0);_.k([_.H(),_.W("design:type",Object)],tN.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],tN.prototype,"currentCommentOptionIndex",void 0);
_.k([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z0P}),_.W("design:type",Object)],tN.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.H(),_.W("design:type",Object)],tN.prototype,"isEmojiPickerDisplayed",void 0);_.k([_.H(),_.W("design:type",Object)],tN.prototype,"emojiManager",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],tN.prototype,"isUgcEmpty",void 0);
_.k([_.On("currentCommentOption"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tN.prototype,"currentCommentOptionChanged",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tN.prototype,"dataChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tN.prototype,"isEmojiYtdCommentInputEnabled",null);
_.k([_.A("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"title",null);_.k([_.A("data.authorText"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"channelName",null);_.k([_.A("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tN.prototype,"shouldShowPaidCommentChipRenderer",null);
_.k([_.A("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"paidCommentChipRenderer",null);_.k([_.A("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"currentCommentOption",null);
_.k([_.A("data.defaultCommentText","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"commentText",null);_.k([_.A("data.placeholderText"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"placeholderText",null);_.k([_.A("data.commentDialog.commentDialogRenderer.editableText"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"editableText",null);
_.k([_.A("data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"emojiButton",null);_.k([_.A("data.commentDialog.commentDialogRenderer.emojiPicker"),_.W("design:type",Object),_.W("design:paramtypes",[])],tN.prototype,"emojiPicker",null);
_.k([_.A("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tN.prototype,"isEmojiButtonDisplayed",null);_.k([_.jk("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],tN.prototype,"onEmojiSelect",null);tN=_.k([_.N({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],tN);
_.u(tN,"ytd-pdg-comment-preview-renderer",function(){if(X$p!==void 0)return X$p;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return X$p=v},{mode:2});var FCP;var BJ=function(){var v=_.g.apply(this,arguments)||this;v.selected=!1;return v};
_.S(BJ,_.g);_.c=BJ.prototype;_.c.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.c.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.c.dataChanged=function(){this.data&&(_.AV(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.NQ(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Qt(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Qt(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.c.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.c.onClick=function(){this.logClick()};
_.c.onKeyboardSelect=function(){_.jK(this.hostElement,"tap");this.onClick()};
_.c.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
BJ.prototype.onClick=BJ.prototype.onClick;BJ.prototype.selectedChanged=BJ.prototype.selectedChanged;BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],BJ.prototype,"componentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Ff),_.W("design:type",Object)],BJ.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.h(_.rq),_.W("design:type",Object)],BJ.prototype,"ironSelectableBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],BJ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],BJ.prototype,"shownThumbnail",void 0);_.k([_.H(),_.W("design:type",Object)],BJ.prototype,"basePriceText",void 0);_.k([_.H(),_.W("design:type",Object)],BJ.prototype,"purchaseCommand",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],BJ.prototype,"selected",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BJ.prototype,"dataChanged",null);_.k([_.On("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BJ.prototype,"selectedChanged",null);_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BJ.prototype,"onClick",null);
BJ=_.k([_.N({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],BJ);
_.u(BJ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(FCP!==void 0)return FCP;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return FCP=v},{mode:1});var vO=function(){var v=_.g.apply(this,arguments)||this;v.selectedItemIndex=0;v.buyButtonDisabled=!1;return v};
_.S(vO,_.g);_.c=vO.prototype;
_.c.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]]"}}}}}};
_.c.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var v;var E=(v=_.C(this.data.colorSlider,ssO))==null?void 0:v.notches[this.selectedItemIndex].purchaseCommand}else{var n;E=(n=_.C(this.data.selectableItemButtons[this.selectedItemIndex],aO1))==null?void 0:n.purchaseCommand}if(E){v=_.C(E,_.U2i);v.productData||(v.productData={});var f;v.productData={pdgData:{commentMessageText:(f=this.commentPreviewRenderer)==null?void 0:f.getUserGeneratedCommentText()}};
_.jK(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(E)}}};
_.c.dataChanged=function(){if(this.data){_.af.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Onl(_.af,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.af.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var v;this.buyButtonDisabled=!((v=_.C(this.data.commentPreview,PM6))==null||!v.placeholderText);this.updatePriceSelectorStatus();var E;if((E=this.data)==null?0:E.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;v=[];this.data.preloadImages&&(v=this.data.preloadImages);
v=v.map(function(n){return _.hZ(n.thumbnails,1920)});
v=_.p(v);for(E=v.next();!E.done;E=v.next())(E=E.value)&&_.v9X(E).thenCatch(function(){_.li(Error("jl"))})}};
_.c.superThanksSelectedTierEntityChanged=function(){var v;(this==null?void 0:(v=this.superThanksSelectedTierEntity)==null?void 0:v.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.c.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.c.updatePriceSelectorStatus=function(){this.isColorSlider?(_.K(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.K(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.K(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.K(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.c.closeBuyFlow=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.c.onUserGeneratedContentChanged=function(){var v;this.buyButtonDisabled=!((v=this.commentPreviewRenderer)==null?0:v.getUserGeneratedCommentText())};
_.c.updateSelectedItemIndexFromBinding=function(v){this.selectedItemIndex=v.detail.value};
_.hK.Object.defineProperties(vO.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disclaimerText)}}});
vO.prototype.onUserGeneratedContentChanged=vO.prototype.onUserGeneratedContentChanged;vO.prototype.closeBuyFlow=vO.prototype.closeBuyFlow;vO.prototype.selectedItemIndexChanged=vO.prototype.selectedItemIndexChanged;vO.prototype.superThanksSelectedTierEntityChanged=vO.prototype.superThanksSelectedTierEntityChanged;vO.prototype.dataChanged=vO.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],vO.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],vO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],vO.prototype,"selectedItemIndex",void 0);_.k([_.H(),_.W("design:type",Boolean)],vO.prototype,"isColorSlider",void 0);
_.k([_.H(),_.W("design:type",Object)],vO.prototype,"buyButtonDisabled",void 0);_.k([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z0P}),_.W("design:type",Object)],vO.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.Wp("ytd-pdg-comment-preview-renderer"),_.W("design:type",Object)],vO.prototype,"commentPreviewRenderer",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],vO.prototype,"ytdReduxBehavior",void 0);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"dataChanged",null);_.k([_.On("superThanksSelectedTierEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"superThanksSelectedTierEntityChanged",null);_.k([_.On("selectedItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"selectedItemIndexChanged",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"closeBuyFlow",null);_.k([_.jk("ytd-pdg-user-generated-comment-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"onUserGeneratedContentChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vO.prototype,"isDisclaimerTextShown",null);
vO=_.k([_.N({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],vO);
_.u(vO,"yt-super-vod-buy-flow-content-renderer",function(){if(p$M!==void 0)return p$M;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return p$M=v},{mode:1});var mUx;var EW=function(){var v=_.g.apply(this,arguments)||this;v.lottieAnimationRef={};return v};
_.S(EW,_.g);_.c=EW.prototype;_.c.created=function(){_.YO.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.uo(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.c.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.jK(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.c.detached=function(){this.autoCloseJobId&&_.wh.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.uo(this,this.onPopupIronOverlayOpened))};
_.c.dataChanged=function(){var v=this;this.data&&this.data.autoCloseDelay&&(_.OL(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.H8(_.wh,function(){v.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.NQ(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.c.onDOMLoadedLottie=function(){var v=this,E,n,f=Number((E=this.data)==null?void 0:(n=E.autoCloseDelay)==null?void 0:n.seconds)||0;this.fadeOutJobId=_.H8(_.wh,function(){v.lottiePlayerEl.classList.add("fadeout")},(f-.25)*1E3);
this.autoCloseJobId=_.H8(_.wh,function(){v.closePopup()},f*1E3)};
_.c.openPopup=function(){this.ironOverlayBehavior.open()};
_.c.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.OL(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.LG(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.P().resolve(_.OO).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.wh.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.wh.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.c.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var v,E;(v=this.lottieAnimationRef)==null||(E=v.lottieEl)==null||E.destroy();v=this.data.lottie;var n,f;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:v.url+"_"+Math.random(),path:v.url,autoplay:!0,loop:(f=(n=v.settings)==null?void 0:n.loop)!=null?f:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.hK.Object.defineProperties(EW.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var v,E;return!!((v=this.data)==null?0:(E=v.lottie)==null?0:E.url)}}});
EW.prototype.maybeInitializeLottie=EW.prototype.maybeInitializeLottie;EW.prototype.dataChanged=EW.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],EW.prototype,"rendererBehavior",void 0);_.k([_.h(_.Hk),_.W("design:type",Object)],EW.prototype,"ironOverlayBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],EW.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],EW.prototype,"lottiePlayerProps",void 0);
_.k([_.H(),_.W("design:type",Object)],EW.prototype,"lottieAnimationRef",void 0);_.k([_.Wp("ytd-lottie-player"),_.W("design:type",HTMLElement)],EW.prototype,"lottiePlayerEl",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EW.prototype,"dataChanged",null);_.k([_.A("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EW.prototype,"hasLottieAnimation",null);
_.k([_.On("data.lottie.url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EW.prototype,"maybeInitializeLottie",null);EW=_.k([_.N({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],EW);
_.u(EW,"ytd-desktop-image-overlay-renderer",function(){if(mUx!==void 0)return mUx;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return mUx=v},{mode:1});var w$3;var nv=function(){return _.g.apply(this,arguments)||this};
_.S(nv,_.g);_.c=nv.prototype;_.c.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"}}}}};
_.c.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",_.uo(this,this.closePopup))};
_.c.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.uo(this,this.closePopup))};
_.c.dataChanged=function(){_.kZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.C(this.data.header,lOK)&&(this.hasBackgroundBanner=!!_.C(this.data.header,lOK).backgroundBanner)};
_.c.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.uo(this,this.closePopup))};
_.c.closePopup=function(){this.data&&this.data.onCloseCommand&&_.$Z(this.hostElement,[this.data.onCloseCommand])};
nv.prototype.handleBuyflowSelectionSubmitted=nv.prototype.handleBuyflowSelectionSubmitted;nv.prototype.dataChanged=nv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],nv.prototype,"data",void 0);
_.k([_.H({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],nv.prototype,"hasBackgroundBanner",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nv.prototype,"dataChanged",null);_.k([_.jk("yt-pdg-buy-flow-selection-submitted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nv.prototype,"handleBuyflowSelectionSubmitted",null);
nv=_.k([_.N({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],nv);
_.u(nv,"ytd-pdg-buy-flow-renderer",function(){if(w$3!==void 0)return w$3;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return w$3=v},{mode:1});var bX0;var oE=function(){var v=_.g.apply(this,arguments)||this;v.isOpen=!1;v.isPlaylistCreated=!1;return v};
_.S(oE,_.g);_.c=oE.prototype;_.c.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.c.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.jK(this.hostElement,"yt-refit")};
_.c.onCreateTap=function(){var v=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.$Z(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(E,n){if(!_.Z("killswitch_ep_in_create_playlist_response")&&(n==null?0:n.actions))for(E=_.p(n.actions),n=E.next();!n.done;n=E.next())n=n.value,_.C(n,_.Uy)&&v.ytComponentBehavior.resolveCommand(n)}}]),this.isPlaylistCreated=!0)};
_.c.onKeydown=function(v){if(v.keyCode===13)this.onCreateTap()};
_.c.onServiceRequestCompleted=function(v){v.stopPropagation();_.OL(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.c.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
oE.prototype.onServiceRequestCompleted=oE.prototype.onServiceRequestCompleted;oE.prototype.onKeydown=oE.prototype.onKeydown;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],oE.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],oE.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],oE.prototype,"isOpen",void 0);
_.k([_.H(),_.W("design:type",Object)],oE.prototype,"isPlaylistCreated",void 0);_.k([_.H({value:{REQUIRED_LABEL:_.tQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.tQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],oE.prototype,"addToStrings",void 0);_.k([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.W("design:type",Array)],oE.prototype,"privacyBadge",void 0);
_.k([_.Wp("#privacy-input"),_.W("design:type",Object)],oE.prototype,"privacyInput",void 0);_.k([_.Wp("#name-input"),_.W("design:type",Object)],oE.prototype,"nameInput",void 0);_.k([_.jk("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],oE.prototype,"onKeydown",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oE.prototype,"onServiceRequestCompleted",null);
oE=_.k([_.N({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],oE);
_.u(oE,"ytd-add-to-playlist-create-renderer",function(){if(bX0!==void 0)return bX0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bX0=v},{mode:1});var lt3;var sBC;var fv=function(){var v=_.g.apply(this,arguments)||this;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.S(fv,_.g);fv.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
fv.prototype.onCheckboxChange=function(v){var E=this;this.data&&_.lz(this,"yt-playlist-checkbox-changed",function(){var n=_.Sk(v).checked?E.data.addToPlaylistServiceEndpoint:E.data.removeFromPlaylistServiceEndpoint;n&&_.P().resolve(_.OO).resolveCommand(n,{form:{element:E.hostElement}});_.Z("dl_playlist_killswitch")||E.transferState!=="TRANSFER_STATE_UNKNOWN"&&E.transferState!=="TRANSFER_STATE_FAILED"&&E.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:E.data.playlistId,action:"ACTION_SYNC"}})},
100)};
fv.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
fv.prototype.dataChanged=fv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],fv.prototype,"data",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],fv.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.k([_.Wp("#checkbox"),_.W("design:type",HTMLInputElement)],fv.prototype,"checkbox",void 0);
_.k([_.H({selector:_.lx,selectorArgs:["data.playlistId"]}),_.W("design:type",String)],fv.prototype,"transferState",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fv.prototype,"dataChanged",null);fv=_.k([_.N({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],fv);
_.u(fv,"ytd-playlist-add-to-option-renderer",function(){if(sBC!==void 0)return sBC;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return sBC=v},{mode:1});_.Nw(LWp);_.uj(LWp,"ytd-menu-title-renderer",{propNames:["data"]});var xB=function(){var v=_.g.apply(this,arguments)||this;v.addToStrings={ADD_TO_DROPDOWN_LABEL:_.tQ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};v.closeButtonAriaLabel=_.tQ("SBOX_INAPPROPRIATE_CANCEL");v.dialog=_.Z("desktop_add_to_playlist_renderer_dialog_popup");return v};
_.S(xB,_.g);_.c=xB.prototype;_.c.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"}}}};
_.c.onPopupOpened=function(){_.Vt(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.c.onPopupClosed=function(){_.Vt(this.playlists,"scrollable",!1)};
_.c.computeAriaLabel=function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.p(this.data.actions);for(var E=v.next();!E.done;E=v.next())if(E=E.value,E.menuTitleRenderer)return _.JC(E.menuTitleRenderer.title)}};
_.c.onTapClose=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.hK.Object.defineProperties(xB.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.p(this.data.actions);for(var E=v.next();!E.done;E=v.next())if(E=E.value,E.menuTitleRenderer)return E.menuTitleRenderer}return!1}}});
xB.prototype.onPopupClosed=xB.prototype.onPopupClosed;xB.prototype.onPopupOpened=xB.prototype.onPopupOpened;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],xB.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],xB.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],xB.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],xB.prototype,"addToStrings",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],xB.prototype,"ariaLabel",void 0);_.k([_.H(),_.W("design:type",String)],xB.prototype,"closeButtonAriaLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],xB.prototype,"dialog",void 0);
_.k([_.Wp("#playlists"),_.W("design:type",HTMLElement)],xB.prototype,"playlists",void 0);_.k([_.Wp("ytd-add-to-playlist-create-renderer"),_.W("design:type",Object)],xB.prototype,"createRenderer",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xB.prototype,"menuTitleRenderer",null);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xB.prototype,"onPopupOpened",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xB.prototype,"onPopupClosed",null);xB=_.k([_.N({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],xB);
_.u(xB,"ytd-add-to-playlist-renderer",function(){if(lt3!==void 0)return lt3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lt3=v},{mode:1});var rk6;var cO=function(){var v=_.g.apply(this,arguments)||this;v.isPlaylistEditComplete=!1;v.isCollabEngagementDisabled=!1;v.closeButtonAriaLabel=_.tQ("SBOX_INAPPROPRIATE_CANCEL");v.saveButton={title:_.tQ("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"};v.onValueChanged=function(){v.updateSaveButtonState();v.computeCollabEngagementDisabled()};
return v};
_.S(cO,_.g);_.c=cO.prototype;_.c.attached=function(){this.JSC$18198_scroller&&(this.JSC$18198_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18198_scroller.attached&&typeof this.JSC$18198_scroller.attached==="function"&&this.JSC$18198_scroller.attached())};
_.c.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.c.onPopupClosed=function(){this.reset()};
_.c.close=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.c.onClickSave=function(){var v=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var E=[];this.nameInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var n=Number(this.privacyInput.value);isNaN(n)||E.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:n})}this.votingInput.value!==null&&(n=this.votingInput.value)&&E.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:n});if(E.length>0){var f;_.C((f=this.data)==null?void 0:f.updateSettingsEndpoint,_.Mb).actions=E;var x;if((x=this.data)==null?0:x.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){v.close()}}}),this.isPlaylistEditComplete=!0}}};
_.c.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
_.c.computeEditorData=function(v){var E,n;return v==null?void 0:(E=v.sections)==null?void 0:(n=E[0])==null?void 0:n.playlistSettingsEditorCasualSectionRenderer};
_.c.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.c.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}}}}}};
_.c.computeAriaLabel=function(){var v,E,n,f=(v=this.data)==null?void 0:(E=v.sections)==null?void 0:(n=E[0])==null?void 0:n.playlistSettingsEditorCasualSectionRenderer;return _.JC(f==null?void 0:f.title)};
_.c.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"}))};
_.c.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.c.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.c.isNameChanged=function(){var v,E,n;return(((v=this.editorData)==null?void 0:(E=v.name)==null?void 0:(n=E.textInputFormFieldRenderer)==null?void 0:n.value)||"")!==(this.nameInput.value||"")};
_.c.isDescriptionChanged=function(){var v,E,n;return(((v=this.editorData)==null?void 0:(E=v.description)==null?void 0:(n=E.textInputFormFieldRenderer)==null?void 0:n.value)||"")!==(this.descriptionInput.value||"")};
_.c.isPrivacyChanged=function(){var v,E,n,f,x,y,Q,e;return((Q=(v=this.editorData)==null?void 0:(E=v.privacy)==null?void 0:(n=E.dropdownFormFieldRenderer)==null?void 0:(f=n.dropdown)==null?void 0:(x=f.dropdownRenderer)==null?void 0:(y=x.entries)==null?void 0:y.find(function(F){var b;return F==null?void 0:(b=F.privacyDropdownItemRenderer)==null?void 0:b.isSelected}))==null?void 0:(e=Q.privacyDropdownItemRenderer)==null?void 0:e.int32Value)!==this.privacyInput.value};
_.c.isVotingChanged=function(){var v,E,n,f,x,y,Q,e;return((Q=(v=this.editorData)==null?void 0:(E=v.voting)==null?void 0:(n=E.dropdownFormFieldRenderer)==null?void 0:(f=n.dropdown)==null?void 0:(x=f.dropdownRenderer)==null?void 0:(y=x.entries)==null?void 0:y.find(function(F){var b;return F==null?void 0:(b=F.privacyDropdownItemRenderer)==null?void 0:b.isSelected}))==null?void 0:(e=Q.privacyDropdownItemRenderer)==null?void 0:e.int32Value)!==this.votingInput.value};
cO.prototype.onPopupClosed=cO.prototype.onPopupClosed;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],cO.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],cO.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],cO.prototype,"data",void 0);_.k([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.W("design:type",Array)],cO.prototype,"privacyBadge",void 0);_.k([_.H({computed:"computeEditorData(data)"}),_.W("design:type",Object)],cO.prototype,"editorData",void 0);_.k([_.H(),_.W("design:type",Object)],cO.prototype,"isPlaylistEditComplete",void 0);_.k([_.H(),_.W("design:type",Object)],cO.prototype,"isCollabEngagementDisabled",void 0);
_.k([_.H({value:{REQUIRED_LABEL:_.tQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.tQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],cO.prototype,"addToStrings",void 0);_.k([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],cO.prototype,"ariaLabel",void 0);_.k([_.H(),_.W("design:type",String)],cO.prototype,"closeButtonAriaLabel",void 0);
_.k([_.H(),_.W("design:type",Object)],cO.prototype,"saveButton",void 0);_.k([_.Wp("#name-input"),_.W("design:type",Object)],cO.prototype,"nameInput",void 0);_.k([_.Wp("#description-input"),_.W("design:type",Object)],cO.prototype,"descriptionInput",void 0);_.k([_.Wp("#privacy-input"),_.W("design:type",Object)],cO.prototype,"privacyInput",void 0);_.k([_.Wp("#voting-input"),_.W("design:type",Object)],cO.prototype,"votingInput",void 0);
_.k([_.Wp("#scroller"),_.W("design:type",Object)],cO.prototype,"JSC$18198_scroller",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cO.prototype,"onPopupClosed",null);_.k([_.H(),_.W("design:type",Object)],cO.prototype,"onValueChanged",void 0);cO=_.k([_.N({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],cO);
_.u(cO,"ytd-playlist-settings-editor-renderer",function(){if(rk6===void 0){var v=document.createElement("template");_.q(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);rk6=v}v=rk6;return v},{mode:1});var PO0;_.ew("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var yp=function(){return _.g.apply(this,arguments)||this};
_.S(yp,_.g);_.c=yp.prototype;_.c.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}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.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 v=this.get("data.nextButton.buttonRenderer.navigationEndpoint");v&&(this.nextNavigationEndpoint=v,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.c.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 v={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",v)}}};
_.c.onPopupOpened=function(v){v.detail!==this&&v.detail!==this.hostElement||!_.Z("enable_premium_voluntary_pause")||_.OL(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.c.onNextButtonTap=function(){var v=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);v&&this.ytdOpenPopupBehavior.openPopup(v)};
_.c.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
yp.prototype.onPopupOpened=yp.prototype.onPopupOpened;yp.prototype.onSelectedResponseIndexChange=yp.prototype.onSelectedResponseIndexChange;yp.prototype.dataChanged=yp.prototype.dataChanged;_.k([_.h(_.YM),_.W("design:type",Object)],yp.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],yp.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],yp.prototype,"selectedResponseIndex",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yp.prototype,"dataChanged",null);_.k([_.On("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yp.prototype,"onSelectedResponseIndexChange",null);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],yp.prototype,"onPopupOpened",null);yp=_.k([_.N({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],yp);
_.u(yp,"ytd-red-cancel-survey-renderer",function(){if(PO0!==void 0)return PO0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return PO0=v},{mode:1});var at0;var pv=function(){var v=_.g.apply(this,arguments)||this;v.closeButtonAriaLabel=_.tQ("SBOX_INAPPROPRIATE_CANCEL");return v};
_.S(pv,_.g);pv.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
pv.prototype.onClickClose=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],pv.prototype,"rendererStamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],pv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],pv.prototype,"closeButtonAriaLabel",void 0);pv=_.k([_.N({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],pv);
_.u(pv,"ytd-search-filter-options-dialog-renderer",function(){if(at0!==void 0)return at0;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return at0=v},{mode:1});var ZXd;var iC_=function(){return function(v){v=v.availabilityType;return v===void 0||v==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||v==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Qp=function(){var v=_.g.apply(this,arguments)||this;v.qualityOptions=[];v.upsellOptions=[];v.showUpsellSection=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.rememberSettingsChecked=!1;return v};
_.S(Qp,_.g);_.c=Qp.prototype;_.c.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}}}}};
_.c.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.c.updateQualityOptions=function(){if(this.formats===void 0)_.OL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var v=[],E=[];this.showUpsellSection=!1;for(var n=_.p(this.formats),f=n.next();!f.done;f=n.next())(f=f.value)&&(f.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?E.push(f):v.push(f));v.length&&(this.qualityOptions=TGd(v));E.length&&(this.showUpsellSection=!0,this.upsellOptions=TGd(E))}};
_.c.updateRememberString=function(){if(this.downloadQualityPickerEntity)var v=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var E;v=(E=this.data)==null?void 0:E.premiumRememberSettingString}else{var n;v=(n=this.data)==null?void 0:n.rememberSettingString}v=v===void 0?_.tQ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):v;this.rememberSettingsCheckboxRenderer={title:_.HR(v),disabled:!1}};
_.c.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.hK.Object.defineProperties(Qp.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
Qp.prototype.updateRememberString=Qp.prototype.updateRememberString;Qp.prototype.updateQualityOptions=Qp.prototype.updateQualityOptions;Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Qp.prototype,"data",void 0);
_.k([_.h(_.PL),_.W("design:type",Object)],Qp.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Boolean)],Qp.prototype,"selectedUpsellQuality",void 0);_.k([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.W("design:type",String)],Qp.prototype,"premiumIcon",void 0);_.k([_.H({selector:LiM,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],Qp.prototype,"downloadQualityPickerEntity",void 0);
_.k([_.H(),_.W("design:type",Array)],Qp.prototype,"qualityOptions",void 0);_.k([_.H(),_.W("design:type",Array)],Qp.prototype,"upsellOptions",void 0);_.k([_.H(),_.W("design:type",Object)],Qp.prototype,"showUpsellSection",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Qp.prototype,"darkerDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],Qp.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.k([_.Wp("#remember-settings"),_.W("design:type",HTMLInputElement)],Qp.prototype,"rememberSettingsCheckbox",void 0);_.k([_.H(),_.W("design:type",Object)],Qp.prototype,"rememberSettingsChecked",void 0);_.k([_.H(),_.W("design:type",Function)],Qp.prototype,"onRememberSettingsCheckedChanged",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qp.prototype,"dataChanged",null);
_.k([_.On("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qp.prototype,"updateQualityOptions",null);_.k([_.On("selectedUpsellQuality"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qp.prototype,"updateRememberString",null);Qp=_.k([_.N({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Qp);
_.u(Qp,"ytd-download-quality-selector-content",function(){if(ZXd!==void 0)return ZXd;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ZXd=v},{mode:1});var CO6;var XM=function(){var v=_.g.apply(this,arguments)||this;v.selectedUpsellQuality=!1;v.qualityOptions=[];v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.useUpsellDismissAlternate=_.Z("use_not_now_dl_upsell_dismiss_cta");v.shouldShowAlternateUpsellDimiss=!1;v.rememberSettings=!1;v.rememberSettingsChecked=!1;v.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};v.rememberSettingsCheckedChanged=function(E){v.rememberSettingsChecked=E};
return v};
_.S(XM,_.g);_.c=XM.prototype;
_.c.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.HR(_.tQ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.c.updateQualityOptions=function(){this.formats===void 0?_.OL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=TGd(this.formats)};
_.c.onQualityOptionsSelect=function(v){if(this.qualityOptions&&v){v!==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 E=_.p(this.qualityOptions.entries()),n=E.next();!n.done;n=
E.next()){n=_.p(n.value);var f=n.next().value;n=n.next().value;var x=void 0,y=void 0;if(((x=n)==null?void 0:(y=x.settingsRadioOptionRenderer)==null?void 0:y.id)===v){this.selectedQualityIndex=f;v=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((v=this.formats[f])==null?void 0:v.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.c.onClickSubmit=function(){var v;if((v=this.downloadButtonRenderer)==null||!v.isDisabled){var E,n;v=(n=(E=this.data)==null?void 0:E.onSubmitEndpoint)!=null?n:{};var f,x;if(this.formats&&(((f=_.C(v,_.zy))==null?0:f.videoId)||((x=_.C(v,_.RX))==null?0:x.playlistId))){var y,Q,e,F,b,l;E={formatType:(F=(y=this.formats)==null?void 0:(Q=y[(e=this.selectedQualityIndex)!=null?e:0])==null?void 0:Q.format)!=null?F:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(b=this.getOfflineEndpoint(v))==null?void 0:(l=b.actionParams)==null?void 0:l.settingsAction)};this.getOfflineEndpoint(v).actionParams=E;this.ytComponentBehavior.resolveCommand(v)}_.OL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.c.onClickUpsell=function(){var v;if((v=this.upsellButtonRenderer)==null||!v.isDisabled){var E,n;v=(n=(E=this.data)==null?void 0:E.upsellEndpoint)!=null?n:{};this.ytComponentBehavior.resolveCommand(v);_.OL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);E="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var f,x,y,Q;E=(Q=(f=this.formats)==null?void 0:(x=f[(y=this.selectedQualityIndex)!=null?y:0])==null?void 0:x.format)!=null?Q:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:E}})}};
_.c.onClickClose=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.c.getOfflineSettingsAction=function(v,E){return v?E===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":E:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.c.getOfflineEndpoint=function(v){return _.C(v,_.zy)?_.C(v,_.zy):_.C(v,_.RX)};
_.hK.Object.defineProperties(XM.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.HR(_.tQ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
XM.prototype.updateQualityOptions=XM.prototype.updateQualityOptions;XM.prototype.dataChanged=XM.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Number)],XM.prototype,"selectedQualityIndex",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"selectedUpsellQuality",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],XM.prototype,"ytdReduxBehavior",void 0);
_.k([_.H({selector:LiM,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],XM.prototype,"downloadQualityPickerEntity",void 0);_.k([_.H(),_.W("design:type",Array)],XM.prototype,"qualityOptions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],XM.prototype,"darkerDarkTheme",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],XM.prototype,"useUpsellDismissAlternate",void 0);
_.k([_.H(),_.W("design:type",Object)],XM.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"downloadButtonRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"upsellButtonRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"cancelButtonRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"upsellCancelButtonRenderer",void 0);_.k([_.H(),_.W("design:type",Object)],XM.prototype,"rememberSettings",void 0);
_.k([_.H(),_.W("design:type",Object)],XM.prototype,"rememberSettingsChecked",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XM.prototype,"dataChanged",null);_.k([_.On("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XM.prototype,"updateQualityOptions",null);XM=_.k([_.N({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],XM);
_.u(XM,"ytd-download-quality-selector-renderer",function(){if(CO6!==void 0)return CO6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return CO6=v},{mode:1});var M6M;var eZ=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(eZ,_.g);eZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eZ.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],eZ.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],eZ.prototype,"darkerDarkTheme",void 0);_.k([_.H({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],eZ.prototype,"infoIcon",void 0);
_.k([_.H({computed:"computeIcon_(data.warningIcon)"}),_.W("design:type",Object)],eZ.prototype,"warningIcon",void 0);eZ=_.k([_.N({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],eZ);
_.u(eZ,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(M6M!==void 0)return M6M;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return M6M=v},{mode:1});var SA1;var FM=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(FM,_.g);FM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FM.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"}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],FM.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"darkerDarkTheme",void 0);FM=_.k([_.N({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],FM);
_.u(FM,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(SA1!==void 0)return SA1;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return SA1=v},{mode:1});var UU3;var md=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(md,_.g);md.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
md.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"}}}}};
md.prototype.onServiceRequestSentOrCompleted=function(v,E){E&&E.actions&&E.actions.length>0&&_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
md.prototype.onServiceRequestSentOrCompleted=md.prototype.onServiceRequestSentOrCompleted;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],md.prototype,"darkerDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],md.prototype,"data",void 0);
_.k([_.jk("yt-service-request-completed"),_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],md.prototype,"onServiceRequestSentOrCompleted",null);md=_.k([_.N({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],md);
_.u(md,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(UU3!==void 0)return UU3;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return UU3=v},{mode:1});var qA0;var wP=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.submitButtonDisabled=!0;return v};
_.S(wP,_.g);_.c=wP.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.c.onDataChanged=function(){var v,E,n;if(((v=this.data)==null?void 0:(E=v.confirmButton)==null?void 0:(n=E.buttonRenderer)==null?void 0:n.isDisabled)!==void 0){var f,x,y;this.submitButtonDisabled=(f=this.data)==null?void 0:(x=f.confirmButton)==null?void 0:(y=x.buttonRenderer)==null?void 0:y.isDisabled}};
_.c.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.c.updateSubmitButtonDisabledFromBinding=function(v){this.submitButtonDisabled=v.detail.value};
_.c.updateSubmitButtonDisabledFromConfirmCheckbox=function(v){this.submitButtonDisabled=!v.detail.value};
wP.prototype.onDataChanged=wP.prototype.onDataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],wP.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"darkerDarkTheme",void 0);
_.k([_.H(),_.W("design:type",Object)],wP.prototype,"submitButtonDisabled",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wP.prototype,"onDataChanged",null);wP=_.k([_.N({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],wP);
_.u(wP,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(qA0!==void 0)return qA0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return qA0=v},{mode:1});var JkO;var bm=function(){return _.g.apply(this,arguments)||this};
_.S(bm,_.g);_.hK.Object.defineProperties(bm.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v,E,n;return((v=this.data)==null?void 0:v.title)+" "+((E=this.data)==null?void 0:E.metadataPrimary)+" "+((n=this.data)==null?void 0:n.metadataSecondary)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],bm.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bm.prototype,"data",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bm.prototype,"ariaLabel",null);bm=_.k([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],bm);
_.u(bm,"ytd-compact-product-list-item-renderer",function(){if(JkO!==void 0)return JkO;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return JkO=v},{mode:1});var KC1;var lm=function(){return _.g.apply(this,arguments)||this};
_.S(lm,_.g);lm.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]]"}}}}}};
_.hK.Object.defineProperties(lm.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],lm.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lm.prototype,"data",void 0);lm=_.k([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],lm);
_.u(lm,"ytd-compact-product-list-renderer",function(){if(KC1!==void 0)return KC1;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return KC1=v},{mode:1});var dU_;var sW=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(sW,_.g);_.c=sW.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c.getBackgroundUrl=function(){var v=this.get("data.headerImage.thumbnails");return v?"url("+_.hZ(v,this.hostElement.clientWidth)+")":""};
_.c.onDataChanged=function(){var v=this.getBackgroundUrl();v&&(this.header.style.backgroundImage=v);v=_.lc();var E=_.bc(),n=this.get("data.trackingParams");n&&E&&v&&_.aQ(v,E,_.tx(n));v=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(E=v.next();!E.done;E=v.next())E.value.onShow()};
_.c.onPopupClosed=function(v){_.Sk(v).localName==="ytd-membership-post-cancel-renderer"&&_.OL(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
sW.prototype.onPopupClosed=sW.prototype.onPopupClosed;sW.prototype.onDataChanged=sW.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sW.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],sW.prototype,"darkerDarkTheme",void 0);
_.k([_.Wp("#header"),_.W("design:type",HTMLDivElement)],sW.prototype,"header",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sW.prototype,"onDataChanged",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],sW.prototype,"onPopupClosed",null);sW=_.k([_.N({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],sW);
_.u(sW,"ytd-membership-post-cancel-renderer",function(){if(dU_!==void 0)return dU_;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return dU_=v},{mode:1});var ItP;var rP=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(rP,_.g);rP.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rP.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],rP.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"darkerDarkTheme",void 0);_.k([_.Wp("ytd-feedback-survey-renderer"),_.W("design:type",Object)],rP.prototype,"feedbackSurveyRenderer",void 0);rP=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rP);
_.u(rP,"ytd-sponsorship-confirm-cancel-content",function(){if(ItP!==void 0)return ItP;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return ItP=v},{mode:1});var YA1;var PO=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.maybeSubmitFeedback=function(){v.content&&v.content.maybeSubmitFeedback()};
return v};
_.S(PO,_.g);_.c=PO.prototype;_.c.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.c.onYtPopupOpened=function(v,E){E===this&&this.data&&this.data.onOpenCommands&&_.LG(this.hostElement,this.data.onOpenCommands,this.hostElement);_.OL(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.c.onYtPopupClosed=function(v,E){(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.LG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.c.onYtServiceRequestCompleted=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.c.onYtServiceRequestError=function(v){_.aN(this.hostElement,v.detail.error.message)};
_.c.onDataChanged=function(){if(this.isAttached){var v=this.backgroundUrl;v&&(_.K(this.hostElement).querySelector("#header").style.backgroundImage=v)}};
_.hK.Object.defineProperties(PO.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return v?"url("+_.hZ(v,this.hostElement.clientWidth)+")":""}}});
PO.prototype.onDataChanged=PO.prototype.onDataChanged;PO.prototype.onYtServiceRequestError=PO.prototype.onYtServiceRequestError;PO.prototype.onYtServiceRequestCompleted=PO.prototype.onYtServiceRequestCompleted;PO.prototype.onYtPopupClosed=PO.prototype.onYtPopupClosed;PO.prototype.onYtPopupOpened=PO.prototype.onYtPopupOpened;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],PO.prototype,"data",void 0);_.k([_.H({value:function(){return _.tQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],PO.prototype,"closeButtonAriaLabel",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],PO.prototype,"darkerDarkTheme",void 0);_.k([_.Wp("#scrollable"),_.W("design:type",Object)],PO.prototype,"scrollable",void 0);_.k([_.Wp("ytd-sponsorship-confirm-cancel-content"),_.W("design:type",Object)],PO.prototype,"content",void 0);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],PO.prototype,"onYtPopupOpened",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],PO.prototype,"onYtPopupClosed",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PO.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PO.prototype,"onYtServiceRequestError",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PO.prototype,"onDataChanged",null);
PO=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],PO);
_.u(PO,"ytd-sponsorship-confirm-cancel-renderer",function(){if(YA1!==void 0)return YA1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return YA1=v},{mode:_.HE("kevlar_poly_si_batch_j081")?1:2});var hax;var aE=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(aE,_.g);aE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],aE.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],aE.prototype,"darkerDarkTheme",void 0);aE=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],aE);
_.u(aE,"ytd-sponsorships-celebration-content",function(){if(hax!==void 0)return hax;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return hax=
v},{mode:1});var AkK;var V6_=_.jU(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Zc=function(){var v=_.g.apply(this,arguments)||this;v.scriptsAppended=!1;v.buttonOverrides={type:"tonal",style:"overlay-dark"};return v};
_.S(Zc,_.g);_.c=Zc.prototype;
_.c.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:_.Z("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}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.onDataChanged=function(){var v;(v=this.header)==null||v.style.setProperty("background-color",this.backgroundColor);if(v=this.headerImageUrl){var E;(E=this.header)==null||E.style.setProperty("background-image",v)}E=_.lc(4);v=_.bc(4);var n=this.get("data.trackingParams");if(n&&v&&E){var f=_.tx(n);_.aQ(E,v,f);_.Z("combine_ve_grafts")?_.Tl().graftServerVe(n,v,4):_.aQ(E,v,f)}E=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(v=E.next();!v.done;v=E.next())v.value.onShow();if(E=this.get("data.gtmId"))_.cs(E,
_.MX("GL","")),this.setupConversionTracking()};
_.c.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("script");var E=_.YR(V6_.join(""));_.AA(v,E);document.head.appendChild(v);v=document.createElement("noscript");v.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(v);this.scriptsAppended=!0}};
_.c.onPopupClosed=function(v){if(_.Sk(v).localName==="ytd-sponsorships-celebration-renderer"){_.OL(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var E;this.data&&((E=this.data)==null?0:E.dismissCommand)&&_.ki.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.hK.Object.defineProperties(Zc.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Qt(v)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return v?"url("+_.hZ(v,this.hostElement.getBoundingClientRect().width)+")":""}}});
Zc.prototype.onPopupClosed=Zc.prototype.onPopupClosed;Zc.prototype.onDataChanged=Zc.prototype.onDataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Zc.prototype,"data",void 0);_.k([_.Wp("#header"),_.W("design:type",HTMLElement)],Zc.prototype,"header",void 0);
_.k([_.H(),_.W("design:type",Object)],Zc.prototype,"scriptsAppended",void 0);_.k([_.H(),_.W("design:type",Object)],Zc.prototype,"buttonOverrides",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zc.prototype,"onDataChanged",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Zc.prototype,"onPopupClosed",null);
Zc=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Zc);
_.u(Zc,"ytd-sponsorships-celebration-renderer",function(){if(AkK!==void 0)return AkK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return AkK=v},{mode:1});var DUR;var Cv=function(){var v=_.g.apply(this,arguments)||this;v.isToggleChecked=!1;return v};
_.S(Cv,_.g);Cv.prototype.onDataChanged=function(){var v;this.isToggleChecked=((v=this.data)==null?void 0:v.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Cv.prototype.close=function(){var v;((v=this.data)==null?0:v.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Cv.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var v,E=_.C((v=this.data)==null?void 0:v.switchButton,ZgK);E&&(this.isToggleChecked&&E.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOnInnertubeCommand),!this.isToggleChecked&&E.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOffInnertubeCommand))};
Cv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cv.prototype.onDataChanged=Cv.prototype.onDataChanged;_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Cv.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Cv.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Cv.prototype,"isToggleChecked",void 0);_.k([_.H({value:_.tQ("CLOSE")}),_.W("design:type",String)],Cv.prototype,"closeButtonAriaLabel",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cv.prototype,"onDataChanged",null);Cv=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Cv);
_.u(Cv,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(DUR!==void 0)return DUR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return DUR=v},{mode:1});var HXp;var My=function(){return _.g.apply(this,arguments)||this};
_.S(My,_.g);_.c=My.prototype;_.c.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"}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.detached=function(){this.playerElement.stop()};
_.c.onYtServiceRequestCompleted=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.c.onYtServiceRequestError=function(v){_.aN(this.hostElement,v.detail.error.message)};
_.c.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.c.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.c.getTier=function(v,E){return!v||!v.tiers||E<0?null:_.C(v.tiers[E],UbU)};
_.c.moreThanOne=function(v){return!!(v&&v.length>1)};
_.c.tierOverviewTap=function(v){var E=this;this.selectedTier=v.model.index;_.IS(this,function(){_.jK(E.hostElement,"yt-refit")})};
_.c.computeSelectedClass=function(v,E){return this.isSelected(v,E)?"selected":""};
_.c.computeButtonAriaPressed=function(v,E){return this.isSelected(v,E)?"true":"false"};
_.c.isSelected=function(v,E){return v===E};
_.c.onDataChanged=function(){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="";_.K(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 v=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),
E=v.next();!E.done;E=v.next())E.value.onShow();var n;this.set("selectedTier",(n=this.get("data.targetTierIndex"))!=null?n:0);var f;(v=(f=this.data)==null?void 0:f.onVisible)&&this.ytComponentBehavior.resolveCommand(v)};
_.c.initializeVe=function(v){var E=_.lc(),n=_.bc(),f=this.get("data.trackingParams");n&&E&&(this.screenLayer=4,E=_.qX(_.IXA)(void 0,69877,{clientScreenNonce:E,visualElement:n},void 0,void 0,void 0),_.uXs(E,69877,4),n=_.bc(4),f&&n&&(f=_.tx(f),_.aQ(E,n,f),v&&(this.offerVideoVe=_.ci(74659),_.aQ(E,f,this.offerVideoVe))))};
_.c.setHeaderBackground=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Qt(v);if(v=this.getHeaderImage())v=_.hZ(v,screen.width),_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+v+")"};
_.c.getHeaderImage=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&v?v:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.c.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c.setupVideoPlayer=function(v){var E=this,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1)return n=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),f=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Z("kevlar_player_update_killswitch")?E.playerElement.update({args:{autoplay:n,video_id:v,player_params:f}}):E.playerElement.loadVideoWithPlayerVars({autoplay:n,video_id:v,player_params:f}),
_.m(Q,E.playerElement.getPlayerPromise(),2);x=Q.yieldResult;x.addEventListener("onStateChange",function(e){E.onPlayerStateChange(e)});
x.setScreenLayer(E.screenLayer);(y=_.lc(4))&&E.offerVideoVe&&_.ZI(y,E.offerVideoVe);n&&(E.pauseOtherPlayers(),E.playerElement.focusOnPlayer(),E.playerElement.getPlayer().hideControls(),_.cP(_.wh,function(){E.fadeOutHeaderOverlay()},4E3));
_.yQ(Q)})};
_.c.onPlayerStateChange=function(v){v===1?this.backgroundPlayerElement&&(v=this.backgroundPlayerElement.player_.getPlayerState(),v!==1&&v!==3||this.backgroundPlayerElement.pause()):v===0&&(_.K(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.K(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.c.fadeOutHeaderOverlay=function(){_.K(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.c.onHeaderTap=function(){if(this.offerVideo){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var v;((v=this.playerElement.player_)==null?void 0:v.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(v=_.lc(4))&&this.offerVideoVe&&_.qx(v,this.offerVideoVe)}};
_.c.getBackgroundImageLayerClass=function(v){return v?"background-image-layer-with-video":""};
_.c.getHeaderClass=function(v){return v?"header-with-video":""};
_.c.getHeaderOverlayClass=function(v){return v?"header-overlay-with-video":""};
_.c.getTitleContainerClass=function(v,E){return v?"title-container-with-video":E?"title-container-without-video-flexible":"title-container-without-video"};
_.c.tierTitleDisplayStatus=function(v){return this.moreThanOne(v)?"hide":"show"};
_.c.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.P().resolve(_.hf).getPlayerElement():this.backgroundPlayerElement=_.Aq();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var v=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=v===1||v===3;this.backgroundPlayerElement.pause()}};
_.c.isMiniplayerActive=function(){return _.P().resolve(_.hf).isMiniplayerActive()};
_.c.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("selected-tier-changed",this.selectedTier))};
My.prototype.selectedTierChangedForBinding=My.prototype.selectedTierChangedForBinding;My.prototype.onDataChanged=My.prototype.onDataChanged;My.prototype.onYtPopupClosed=My.prototype.onYtPopupClosed;My.prototype.onYtPopupOpened=My.prototype.onYtPopupOpened;My.prototype.onYtServiceRequestError=My.prototype.onYtServiceRequestError;My.prototype.onYtServiceRequestCompleted=My.prototype.onYtServiceRequestCompleted;
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],My.prototype,"data",void 0);_.k([_.H({value:0}),_.W("design:type",Number)],My.prototype,"selectedTier",void 0);
_.k([_.H({value:""}),_.W("design:type",String)],My.prototype,"offerVideo",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],My.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.k([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.xw(this)}}),
_.W("design:type",String)],My.prototype,"playerId",void 0);_.k([_.Wp("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],My.prototype,"scrollable",void 0);_.k([_.Wp("ytd-sponsorships-tier-renderer"),_.W("design:type",Object)],My.prototype,"tierRenderer",void 0);_.k([_.Wp("#player"),_.W("design:type",Object)],My.prototype,"playerElement",void 0);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],My.prototype,"onYtServiceRequestCompleted",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],My.prototype,"onYtServiceRequestError",null);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],My.prototype,"onYtPopupOpened",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],My.prototype,"onYtPopupClosed",null);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],My.prototype,"onDataChanged",null);
_.k([_.On("selectedTier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],My.prototype,"selectedTierChangedForBinding",null);My=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],My);
_.u(My,"ytd-sponsorships-offer-renderer",function(){if(HXp!==void 0)return HXp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return HXp=v},{mode:_.HE("kevlar_poly_si_batch_j077")?1:2});var gF1;var SZ=function(){var v=_.g.apply(this,arguments)||this;v.buttonOverrides={type:"filled",style:"mono"};return v};
_.S(SZ,_.g);SZ.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}}}}}};
SZ.prototype.backgroundColorChanged=function(){var v,E,n,f=(E=_.C((v=this.data)==null?void 0:v.content,qk_))==null?void 0:(n=E.backgroundColor)==null?void 0:n.backgroundColor;f&&(v=_.p2(f),_.K(this.hostElement).querySelector("#banner").style.backgroundColor=v,_.K(this.hostElement).querySelector("#abstract-art").style.backgroundColor=v)};
SZ.prototype.attached=function(){this.JSC$18284_scroller&&(this.JSC$18284_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18284_scroller.attached&&typeof this.JSC$18284_scroller.attached==="function"&&this.JSC$18284_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SZ.prototype.backgroundColorChanged=SZ.prototype.backgroundColorChanged;_.k([_.H(),_.W("design:type",Object)],SZ.prototype,"data",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#scroller"),_.W("design:type",Object)],SZ.prototype,"JSC$18284_scroller",void 0);_.k([_.H(),_.W("design:type",Object)],SZ.prototype,"buttonOverrides",void 0);
_.k([_.On("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SZ.prototype,"backgroundColorChanged",null);SZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],SZ);
_.u(SZ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(gF1!==void 0)return gF1;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return gF1=v},{mode:_.HE("kevlar_poly_si_batch_j077")?1:2});var NI6;var u43;var UW=function(){return _.g.apply(this,arguments)||this};
_.S(UW,_.g);UW.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
UW.prototype.computeIsInitiallyChecked=function(v){return v===1};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],UW.prototype,"data",void 0);_.k([_.Wp("#checkbox"),_.W("design:type",Object)],UW.prototype,"checkbox",void 0);UW=_.k([_.N({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],UW);
_.u(UW,"ytd-subscription-toggle-option-renderer",function(){if(u43!==void 0)return u43;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return u43=v},{mode:1});var qy=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return v};
_.S(qy,_.g);qy.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"}}}};
qy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qy.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var v=_.K(this.hostElement).querySelector("#options").selected;v=this.data.options[v].subscriptionRadioOptionRenderer.serviceEndpoint;var E=_.K(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");E&&v&&v.modifyChannelNotificationPreferenceEndpoint&&(E=E.getValue())&&(v.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[E]);_.P().resolve(_.OO).resolveCommand(v,{form:{element:this.hostElement}});
_.OL(this.hostElement,"yt-close-popup-action")};
_.hK.Object.defineProperties(qy.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var v=this.data.options,E=0;E<v.length;E++){var n=v[E].subscriptionRadioOptionRenderer;if(n&&n.selected)return E}return null}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],qy.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],qy.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],qy.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qy.prototype,"darkerDarkTheme",void 0);_.k([_.A("data.options"),_.W("design:type",Object),_.W("design:paramtypes",[])],qy.prototype,"initialIndex",null);qy=_.k([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],qy);
_.u(qy,"ytd-subscription-notification-options-renderer",function(){if(NI6!==void 0)return NI6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return NI6=v},{mode:1});var jBR;var J5=function(){return _.g.apply(this,arguments)||this};
_.S(J5,_.g);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],J5.prototype,"data",void 0);J5=_.k([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],J5);
_.u(J5,"ytd-tvfilm-offer-groups-renderer",function(){if(jBR!==void 0)return jBR;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return jBR=v},{mode:1});var OXp;var Kv=function(){var v=_.g.apply(this,arguments)||this;v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(Kv,_.g);_.c=Kv.prototype;_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.c.computeThumbnailClass=function(v){return v.thumbnailOverlays?v.isShow?"thumbnail-show":"thumbnail-movie":v.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.c.computeCommerceSectionClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.c.computeTitleClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.c.onDataChanged=function(){[].concat(_.s8(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(v){v.onShow()})};
Kv.prototype.onDataChanged=Kv.prototype.onDataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Kv.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Kv.prototype,"darkerDarkTheme",void 0);
_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kv.prototype,"onDataChanged",null);Kv=_.k([_.N({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Kv);
_.u(Kv,"ytd-ypc-offers-overlay-renderer",function(){if(OXp!==void 0)return OXp;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return OXp=v},{mode:_.HE("kevlar_poly_si_batch_j028")?1:2});var km6;var WC1=function(){this.usedMethods=new Set};
WC1.prototype.add=function(v){this.usedMethods.add(v)};
WC1.prototype.reset=function(){this.usedMethods.clear()};var Gm6=function(v,E){this.query=v;this.previousSearchQuery=E;this.id=$UK++;if(!LCx){E=_.MX("SBOX_SETTINGS");v="https://"+((E==null?void 0:E.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var n=E==null?void 0:E.REQUEST_LANGUAGE;n&&(v+="&hl="+n);(n=E==null?void 0:E.REQUEST_DOMAIN)&&(v+="&gl="+n);v+="&client=youtube&gs_ri=youtube";(n=E==null?void 0:E.SUGG_EXP_ID)&&(v+="&sugexp="+encodeURIComponent(n));(n=E==null?void 0:E.PSUGGEST_TOKEN)&&(v+="&tok="+n);(E=
E==null?void 0:E.SESSION_INDEX)&&(v+="&authuser="+E);_.Z("desktop_enable_visual_suggest")&&(v+="&h=180&w=320&ytvs=1");LCx=v}},TId=function(v){var E="q="+encodeURIComponent(v.query);
v.previousSearchQuery&&(E+="&pq="+encodeURIComponent(v.previousSearchQuery));return E},iXU=function(){var v=_.MX("SBOX_SETTINGS"),E={};
if(v==null?0:v.SEND_VISITOR_DATA)E["X-Goog-Visitor-Id"]=v==null?void 0:v.VISITOR_DATA;return E},zaR=function(v){var E=LCx;
E+="&gs_id="+v.id.toString(36);E+="&q="+encodeURIComponent(v.query);E+="&cp="+v.query.length;v.previousSearchQuery&&(E+="&pq="+encodeURIComponent(v.previousSearchQuery));(v=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(E+="&video_id="+v);return E},$UK=0,LCx="";var RaU=_.Ap.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,t6O=_.Ap.SEARCH_ENTITY_SUGGESTION_MOVIE,BI6=_.Ap.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,vgx=_.Ap.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Eg3=function(v,E){this.text=v;this.bold=E},ngd=function(v,E,n){this.input=E;
this.index=n;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=v[0];this.type=v[1];this.subtypes=v[2];var f;this.displayText=We((f=v[3])==null?void 0:f.b);var x;this.ignoredPrefix=We((x=v[3])==null?void 0:x.a);var y,Q;this.hasNewVideo=((y=v[3])==null?void 0:(Q=y.zam)==null?void 0:Q.toString())==="true"?!0:!1;var e;this.visualSuggestUrl=(e=v[3])==null?void 0:e.zai;var F;this.entityType=We((F=v[3])==null?void 0:F.zap);var b;this.entityName=We((b=v[3])==null?void 0:b.zao);var l;E=We((l=
v[3])==null?void 0:l.zaf);l=RoU(this.subtypes);if(E&&l){if(E){n="";switch(l){case "YOUTUBE_ENTITY_TYPE_SONG":n=BI6;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":n=RaU;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":n=vgx;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":n=t6O}l=l==="YOUTUBE_ENTITY_TYPE_SONG"||l==="YOUTUBE_ENTITY_TYPE_ALBUM"?n+" \u2022  \u2022 "+E:E}else l="";this.entitySubtitle=l}var r;this.entityMid=(r=v[3])==null?void 0:r.zae;var a;this.externalChannelId=(a=v[3])==null?void 0:a.zav},ogp=function(v){var E=
[],n,f=(n=v.displayText)!=null?n:v.text;
if(v.type===33)return E.push(new Eg3(f,!1)),E;if(f.length>=v.input.length&&f.substring(0,v.input.length)===v.input)E.push(new Eg3(v.input,!1)),E.push(new Eg3(f.substring(v.input.length),!0));else{var x=new Set(v.input.split(/\s/)),y=f.split(/\s/);E=y.map(function(Q,e){return new Eg3(Q.trim()+(e===y.length-1?"":" "),!x.has(Q))})}return E},fM1=function(v){return!!RoU(v.subtypes)};var xMM=function(v){this.rawResponse=["",[],{}];this.suggestions=[];try{var E=JSON.parse(tN6(v));if(typeof E==="object"&&E!==null)this.rawResponse=E;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(f){console.log("Suggest: Failed to parse SuggestResponse!");return}var n=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(f,x){return new ngd(f,n,x)})};var cW6=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new WC1;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18320_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},yWK,pK_=function(){yWK||(yWK=new cW6);
return yWK};
cW6.prototype.updateSuggestions=function(v){var E=this;this.availableSuggestions.forEach(function(n){E.previousSuggestions[n]=!0});
this.availableSuggestions=v.map(function(n){var f=n.type.toString();n.subtypes.length>0&&(f+="i"+n.subtypes.join("i"),f+="k"+n.suggestionSources.COMPLETE_SERVER.toString());return f})};
var QHd=function(v,E){var n=Date.now();v.firstEditTime<0&&(v.firstEditTime=n);E&&(v.lastQueryBuildTime=n);v.lastEditTime=n};
cW6.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18320_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var XKp=function(v){var E="";v.availableSuggestions.forEach(function(x){delete v.previousSuggestions[x]});
for(var n=_.p(Object.keys(v.previousSuggestions)),f=n.next();!f.done;f=n.next())f=f.value,v.previousSuggestions[f]&&(E+=(E?"j":"")+f);return E},ePP=function(v,E){var n=[];
E&&(n[1]=E.toString());n[0]="youtube";n[7]=Date.now()-v.startTime;n[6]=v.sessionNumber;v.zeroPrefixSuggestionCount>=0&&(n[33]=v.zeroPrefixSuggestionCount);n[13]=v.outOfSyncResponseCount;if(v.availableSuggestions.length>0){for(var f=E="",x=0,y=_.p(v.availableSuggestions),Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q!==f&&(x>1&&(E+="l"+x),E+=(f?"j":"")+Q,x=0,f=Q),x+=1;x>1&&(E+="l"+x);n[3]=E}n[35]=XKp(v);v.selectedSuggestionIndex>=0&&(n[2]=v.selectedSuggestionIndex);var e;if(E=(e=_.MX("SBOX_SETTINGS"))==
null?void 0:e.SUGG_EXP_ID)n[19]=v.normalize(E),e=0,v.experimentTriggeredBeforeFinal&&(e|=1),v.experimentTriggeredFinal&&(e|=2),n[20]=e;n[26]=Array.from(v.inputMethodsTracker.usedMethods).join("j");if(v.JSC$18320_totalRoundTripTime>0){n[15]=v.JSC$18320_totalRoundTripTime;n[14]=v.maxRoundTripTime;e=[];for(x=E=0;x<10;x++)f=v.roundTripTimeHistogram[x],f===0?E++:(E>1?e.push(x+"-"+f):E===1?e.push("0j"+f):e.push(f.toString()),E=0);e=e.join("j");n[16]=e}v.zeroPrefixRoundTripTime>0&&(n[36]=v.zeroPrefixRoundTripTime);
v.lastQueryBuildTime>0&&(n[18]=v.lastQueryBuildTime-v.startTime);v.firstEditTime>0&&(n[4]=v.firstEditTime-v.startTime);v.lastEditTime>0&&(n[5]=v.lastEditTime-v.startTime);return n.join(".")};
cW6.prototype.normalize=function(v){return v.replaceAll(".","-")};
var FrK=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var dP=function(){var v=_.g.apply(this,arguments)||this;v.microphoneSpinnerActive=!1;v.noAnimations=!1;v.boundExitClick=function(){v.onExitButtonClick()};
v.speechOverlayClassName="";v.isLevelAnimating=!1;v.playCloseDialogAudioFeedback=!0;v.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return v};
_.S(dP,_.g);_.c=dP.prototype;_.c.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.c.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Rzx()};
_.c.dataChanged=function(){this.logDialog()};
_.c.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var v;(v=this.manager.audioPlayer)!=null&&(v.JSC$17610_audioEnabled=!1)}this.manager.stop();(v=this.manager.audioPlayer)!=null&&(v.JSC$17610_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.c.handleSpeechQueryCompleteAction=function(v){var E=v.navigationAction;E&&(v.trackingParams&&_.Tl().graftServerVe(v.trackingParams,this.dialogVe,5),_.jK(this.hostElement,"yt-navigate",{endpoint:E,tempData:this.getNavigationParams(E),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.c.onExitButtonClick=function(){this.closeDialog()};
_.c.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var v;if((v=this.manager)!=null){var E;(E=v.audioPlayer)==null||dU(E,"failure");v.setState("microphone-off");v.stop()}}else(v=this.manager)==null||v.start()};
_.c.transcriptionChanged=function(){var v,E;(((v=this.transcription)==null?0:v.low)||((E=this.transcription)==null?0:E.high))&&this.setState("transcribing",this.transcription)};
_.c.stateChanged=function(){this.setState(this.state,this.transcription)};
_.c.logDialog=function(){var v;(v=this.data)!=null&&v.trackingParams&&(v=_.Tl(),_.Rs(v,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=v.graftServerVe(this.data.trackingParams,void 0,5))};
_.c.getNavigationParams=function(v){var E={};if(_.Z("web_yt_searchbox")){var n=pK_();n.inputMethodsTracker.add(6);n=ePP(n,15);E.gs_l=n;var f;E.oq=((f=_.C(v,_.ze))==null?void 0:f.query)||""}else if(v=window.ytvoicesearchloggingparams){if(v=v())E.oq=v.oq,E.gs_l=v.gs_l}else _.Kk(Error("kl"));return E};
_.c.closeDialog=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.c.setState=function(v,E){if(this.data){var n=this.data,f={};switch(v){case "listening":f={headerText:n.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:n.microphoneButtonAriaLabel};break;case "timeout":f={headerText:n.promptHeader,microphoneState:"try-again",microphoneLabel:n.promptMicrophoneLabel,microphoneAriaLabel:n.promptMicrophoneLabel};break;case "microphone-off":f={headerText:n.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:n.promptMicrophoneLabel,
microphoneAriaLabel:n.promptMicrophoneLabel};break;case "transcribing":(E==null?0:E.low)||(E==null?0:E.high)?f={transcriptionLow:E==null?void 0:E.low,transcriptionHigh:E==null?void 0:E.high,microphoneState:"speaking",microphoneAriaLabel:n.microphoneButtonAriaLabel}:f={headerText:n.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:n.microphoneButtonAriaLabel};break;case "processing":f={headerText:n.loadingHeader,microphoneState:"processing",microphoneAriaLabel:n.microphoneButtonAriaLabel};
break;case "offline":f={headerText:n.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:n.connectionErrorMicrophoneLabel,microphoneAriaLabel:n.connectionErrorMicrophoneLabel};break;case "permission":f={headerText:n.permissionsHeader,bodyLine1:n.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:n.permissionsSubtext};break;case "permission-denied":f={headerText:n.disabledHeader,bodyLine1:n.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:n.disabledSubtext}}f.className=
v;this.speechOverlayState=f;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.c.setMicrophoneState=function(v){var E=this.isLevelAnimating;this.isLevelAnimating=v==="speaking";!E&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=v==="processing"&&!this.noAnimations};
_.c.setClass=function(v){this.speechOverlayClassName&&_.Vt(this.hostElement,this.speechOverlayClassName,!1);v&&(this.speechOverlayClassName=v,_.Vt(this.hostElement,v,!0))};
_.c.runLevelAnimation=function(){var v=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var E=1+Math.random()*.75,n=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+n/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+E+")");_.wh.addJob(function(){v.runLevelAnimation()},3,n)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
dP.prototype.stateChanged=dP.prototype.stateChanged;dP.prototype.transcriptionChanged=dP.prototype.transcriptionChanged;dP.prototype.onPopupClosed=dP.prototype.onPopupClosed;dP.prototype.dataChanged=dP.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],dP.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],dP.prototype,"rendererStamperBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],dP.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],dP.prototype,"eventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],dP.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],dP.prototype,"speechOverlayState",void 0);
_.k([_.H(),_.W("design:type",Object)],dP.prototype,"microphoneSpinnerActive",void 0);_.k([_.H({type:_.Z("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.W("design:type",Object)],dP.prototype,"noAnimations",void 0);_.k([_.H({selector:function(v){var E;return(E=v.voiceSearch)==null?void 0:E.transcription}}),
_.W("design:type",Object)],dP.prototype,"transcription",void 0);_.k([_.H({selector:function(v){var E;return(E=v.voiceSearch)==null?void 0:E.overlay}}),
_.W("design:type",String)],dP.prototype,"state",void 0);_.k([_.H(),_.W("design:type",Object)],dP.prototype,"boundExitClick",void 0);_.k([_.Wp("#microphone-levels"),_.W("design:type",HTMLElement)],dP.prototype,"level",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dP.prototype,"dataChanged",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dP.prototype,"onPopupClosed",null);
_.k([_.Tw("transcription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dP.prototype,"transcriptionChanged",null);_.k([_.Tw("state"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dP.prototype,"stateChanged",null);dP=_.k([_.N({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],dP);
_.u(dP,"ytd-voice-search-dialog-renderer",function(){if(km6!==void 0)return km6;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return km6=v},{mode:1});var mMR;var IE=function(){var v=_.g.apply(this,arguments)||this;v.isOverlay=!1;v.hidden=!1;return v};
_.S(IE,_.g);_.c=IE.prototype;_.c.onPopupClosed=function(){this.toggleIconState(!1)};
_.c.computeIcon=function(){var v,E,n;return(E=_.C((v=this.data)==null?void 0:v.icon,YkU))==null?void 0:(n=E.icon)==null?void 0:n.iconType};
_.c.computeIconBadgeShape=function(){var v;return{iconBadgeType:"cart",iconBadgeText:(v=this.iconBadgeEntity)==null?void 0:v.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.c.onClick=function(){var v;(v=this.data)!=null&&v.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.c.computeHidden=function(v){return!v};
_.c.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
IE.prototype.onPopupClosed=IE.prototype.onPopupClosed;_.k([_.h(_.PL),_.W("design:type",Object)],IE.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],IE.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],IE.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],IE.prototype,"isOverlay",void 0);
_.k([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.W("design:type",Object)],IE.prototype,"hidden",void 0);_.k([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(v,E){return _.LH(v.entities,"iconBadgeEntity",E)}}),
_.W("design:type",Object)],IE.prototype,"iconBadgeEntity",void 0);_.k([_.Wp("yt-icon-button"),_.W("design:type",HTMLButtonElement)],IE.prototype,"iconButton",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IE.prototype,"onPopupClosed",null);IE=_.k([_.N({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],IE);
_.u(IE,"ytd-icon-badge-topbar-button-renderer",function(){if(mMR!==void 0)return mMR;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return mMR=v},{mode:1});var wK6;var YB=function(){var v=_.g.apply(this,arguments)||this;v.premiumOptions=[];v.darkerDarkTheme=_.Z("web_darker_dark_theme");return v};
_.S(YB,_.g);YB.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.hK.Object.defineProperties(YB.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],YB.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Array)],YB.prototype,"premiumOptions",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],YB.prototype,"darkerDarkTheme",void 0);_.k([_.A("premiumOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],YB.prototype,"hasPremiumOptions",null);
YB=_.k([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],YB);
_.u(YB,"ytd-offline-promo-content",function(){if(wK6!==void 0)return wK6;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return wK6=v},{mode:1});var bqM;var h5=function(){var v=_.g.apply(this,arguments)||this;v.premiumOptions=[];return v};
_.S(h5,_.g);h5.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v;this.premiumOptions=zoM((v=this.data)==null?void 0:v.formats)};
h5.prototype.onClickSubmit=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var v;(v=_.Aq())==null||v.pause()};
h5.prototype.attached=function(){this.JSC$18340_scroller&&(this.JSC$18340_scroller.dialogElement=this.hostElement.parentNode)};
_.hK.Object.defineProperties(h5.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
h5.prototype.dataChanged=h5.prototype.dataChanged;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],h5.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],h5.prototype,"data",void 0);
_.k([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.W("design:type",String)],h5.prototype,"headersIcon",void 0);_.k([_.H(),_.W("design:type",Array)],h5.prototype,"premiumOptions",void 0);_.k([_.Wp("#scroller"),_.W("design:type",Object)],h5.prototype,"JSC$18340_scroller",void 0);_.k([_.A("headersIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],h5.prototype,"showIcon",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h5.prototype,"dataChanged",null);h5=_.k([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],h5);
_.u(h5,"ytd-offline-promo-renderer",function(){if(bqM!==void 0)return bqM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return bqM=v},{mode:1});var lMM;var A5=function(){var v=_.g.apply(this,arguments)||this;v.playbackPauseInterval=NaN;v.isLoading=!1;v.hasError=!1;v.dialogClass="";v.youtubeLabel=_.tQ("LOGO_ALT_LABEL",{},"YouTube Home");v.logoName="yt-logos-ext:yt-logo-updated";v.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return v};
_.S(A5,_.g);_.c=A5.prototype;_.c.onDataChange=function(){var v;if(this.showEOMV1Text=!((v=this.data)==null||!v.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.c.attached=function(){this.pausePlayer()};
_.c.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.c.handleLangSelect=function(v){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[v.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.c.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.c.handleSaveConsent=function(v){var E=this;this.showLoadingSpinner();this.showLoadingSpinner();VDK(_.C(v,hAP)).catch(function(n){_.li(new _.yc("Something went wrong when save consent "+(n.message?n.message:n)+"."));E.hideLoadingSpinner();E.showErrorMessage()})};
_.c.handleDisablePersonalization=function(v){var E=this;this.showLoadingSpinner();D10(_.C(v,YS3)).then(function(){E.dialog.close();E.resumePlayer()}).catch(function(n){_.li(new _.yc("Something went wrong when disable personalization "+(n.message?n.message:n)+"."));
E.hideLoadingSpinner();E.showErrorMessage()})};
_.c.showLoadingSpinner=function(){var v=this;this.showSpinnerJobId=_.wh.addLowPriorityJob(function(){v.isLoading=!0},500)};
_.c.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.wh.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.c.showErrorMessage=function(){var v=this;this.hasError=!0;_.wh.addLowPriorityJob(function(){v.hasError=!1},2E3)};
_.c.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.i5(function(){try{var v=_.Aq();v&&v.pause()}catch(E){}},100))};
_.c.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var v=_.Aq();v&&v.play()}catch(E){}};
_.hK.Object.defineProperties(A5.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var E=["SHIELD","WARNING","BAR_CHART"],n=this.data.eomV1Text.essentialCookieMsg.items,f=0;f<E.length&&f<n.length;f++)v.push({icon:E[f],text:n[f]});return v}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var E=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],n=this.data.eomV1Text.nonEssentialCookieMsg.items,f=0;f<E.length&&f<n.length;f++)v.push({icon:E[f],text:n[f]});return v}}});
A5.prototype.onDataChange=A5.prototype.onDataChange;_.k([_.H(),_.W("design:type",Object)],A5.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],A5.prototype,"showEOMV1Text",void 0);_.k([_.H(),_.W("design:type",Object)],A5.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Object)],A5.prototype,"hasError",void 0);_.k([_.H(),_.W("design:type",Number)],A5.prototype,"showSpinnerJobId",void 0);_.k([_.H(),_.W("design:type",Object)],A5.prototype,"dialogClass",void 0);
_.k([_.Wp("#dialog"),_.W("design:type",Object)],A5.prototype,"dialog",void 0);_.k([_.Wp("#cb-header"),_.W("design:type",HTMLElement)],A5.prototype,"header",void 0);_.k([_.Wp("#lang-select"),_.W("design:type",HTMLElement)],A5.prototype,"langSelect",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],A5.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);
_.k([_.H(),_.W("design:type",String)],A5.prototype,"youtubeLabel",void 0);_.k([_.H(),_.W("design:type",Object)],A5.prototype,"logoName",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A5.prototype,"onDataChange",null);_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],A5.prototype,"eomEssentialCookieMsgItems",null);
_.k([_.A("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],A5.prototype,"eomNonEssentialCookieMsgItems",null);A5=_.k([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],A5);
_.u(A5,"ytd-consent-bump-v2-lightbox",function(){if(lMM!==void 0)return lMM;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return lMM=v},{mode:1});var sHd;var Vp=function(){return _.g.apply(this,arguments)||this};
_.S(Vp,_.g);Vp.prototype.ready=function(){if(!_.fE()||Lc0)var v=!0;else Lc0=!0,v=!1;v||(v=document.querySelector("ytd-app"),v||(v=document.body),this.internalLightBox=_.K(v).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.k([_.H(),_.W("design:type",Object)],Vp.prototype,"data",void 0);_.k([_.Wp("#lightbox"),_.W("design:type",Object)],Vp.prototype,"lightBox",void 0);Vp=_.k([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Vp);
_.u(Vp,"ytd-consent-bump-v2-renderer",function(){if(sHd!==void 0)return sHd;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return sHd=v},{mode:1});var rWU;var PVx;var aMM;var Dc=function(){var v=_.g.apply(this,arguments)||this;v.ephemeralActionsEnabled=_.Z("web_ephemeral_actions");return v};
_.S(Dc,_.g);_.c=Dc.prototype;_.c.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&QXU(this.toastManager,this.toastType)};
_.c.open=function(v){this.toast&&(this.ephemeralAction&&_.P().resolve(_.Bw).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=v!=null?v:0,this.toastManager.enqueue(this.toast,v)):this.toast.open())};
_.c.close=function(v){var E;(E=this.toast)==null||E.close();this.toastManager&&v===1&&QXU(this.toastManager,v)};
_.c.refit=function(){var v;(v=this.toast)==null||v.refit()};
_.c.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var v;(v=this.toast)==null||v.close()}};
_.c.setVerticalOffset=function(v){this.toast&&(this.toast.verticalOffset=v,this.toast.fit())};
_.c.computeButtonClass_=function(v){return v?"toast-button":""};
_.c.computeText_=function(v){return _.JC(v)};
_.c.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SG("toast-opened-changed",this.toastOpened))};
_.c.updateToastOpenedFromBinding=function(v){this.toastOpened=v.detail.value};
_.hK.Object.defineProperties(Dc.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var v,E,n=(v=this.data)==null?void 0:(E=v.actionButton)==null?void 0:E.buttonRenderer;return(n==null?void 0:n.command)||(n==null?void 0:n.serviceEndpoint)||(n==null?void 0:n.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 v=[],E;((E=this.data)==null?0:E.responseText)&&v.push(_.JC(this.data.responseText));var n;((n=this.data)==null?0:n.subText)&&v.push(_.JC(this.data.subText));var f,x;if((f=this.data)==null?0:(x=f.actionButton)==null?0:x.buttonRenderer){var y,Q;v.push(((y=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Q=y.accessibilityData)==null?void 0:Q.label)||_.JC(this.data.actionButton.buttonRenderer.text))}return v.filter(function(e){return e}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var v,E;return(E=(v=this.toast)==null?void 0:v.opened)!=null?E:!1}}});
Dc.prototype.toastOpenedChangedForBinding=Dc.prototype.toastOpenedChangedForBinding;Dc.prototype.toastOpenedChanged=Dc.prototype.toastOpenedChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],Dc.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Dc.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Dc.prototype,"duration",void 0);
_.k([_.H(),_.W("design:type",Number)],Dc.prototype,"toastType",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Dc.prototype,"useCloseButton",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],Dc.prototype,"closeToastOnActionButtonClick",void 0);_.k([_.H({value:function(){return _.tQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],Dc.prototype,"closeButtonAriaLabel",void 0);_.k([_.H(),_.W("design:type",Boolean)],Dc.prototype,"toastOpened",void 0);_.k([_.H(),_.W("design:type",Boolean)],Dc.prototype,"hasOpened",void 0);_.k([_.H(),_.W("design:type",Object)],Dc.prototype,"ephemeralActionsEnabled",void 0);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Dc.prototype,"command",null);
_.k([_.A("ephemeralActionsEnabled","labelText","command","duration"),_.W("design:type",Object),_.W("design:paramtypes",[])],Dc.prototype,"ephemeralAction",null);_.k([_.A("ephemeralAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Dc.prototype,"hasEphemeralAction",null);_.k([_.Wp("#toast"),_.W("design:type",Object)],Dc.prototype,"toast",void 0);_.k([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.W("design:type",Object)],Dc.prototype,"buttonOverrides",void 0);_.k([_.H({value:{style:"mono-inverse"}}),_.W("design:type",Object)],Dc.prototype,"closeButtonOverrides",void 0);_.k([_.H({value:function(){return _.P().resolve(_.jp(_.S1K))}}),
_.W("design:type",Object)],Dc.prototype,"toastManager",void 0);_.k([_.A("data.responseText","data.subText","data.actionButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],Dc.prototype,"labelText",null);_.k([_.On("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Dc.prototype,"toastOpenedChanged",null);
_.k([_.On("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Dc.prototype,"toastOpenedChangedForBinding",null);Dc=_.k([_.p5({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Dc);
_.u(Dc,"yt-notification-action-renderer",function(){if(aMM===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;PVx===void 0&&(PVx=document.createElement("template"));var f=PVx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);aMM=v}v=aMM;return v},{mode:2});var HO=function(){var v=_.g.apply(this,arguments)||this;v.duration=4E3;v.downloadingCount=0;v.downloadedCount=0;v.downloadingOnlySmartDownloads=!1;v.sessionTotalDownloads=0;v.sessionDownloaded=0;v.previousSessionsDownloaded=0;v.totalDownloadPercentage=0;v.currentDownloadProgress=0;v.currentDownloadPercentage=0;v.isLeaderTab=!0;v.isFullScreen=!1;v.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};v.boundBeforeUnload=function(E){v.isLeaderTab&&v.downloadingCount>0&&(E.preventDefault(),
E.returnValue=!0)};
return v};
_.S(HO,_.g);_.c=HO.prototype;
_.c.open=function(){this.updateDownloadState();if(this.data){var v=this.sessionDownloaded+1,E=this.sessionTotalDownloads>1?_.tQ("VIDEOS_DOWNLOADING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+v+"/"+this.sessionTotalDownloads):_.tQ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(E=this.sessionTotalDownloads>1?_.tQ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
v+"/"+this.sessionTotalDownloads):_.tQ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));v=this.isLeaderTab?_.tQ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.JC(this.data.responseText)!==E||_.JC(this.data.subText)!==v)this.set("data.responseText",_.qD(E)),this.set("data.subText",_.qD(v)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.c.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.c.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.c.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.c.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var v=this.downloadedCount-this.previousSessionsDownloaded;v<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-v);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.c.handleFullscreenChange=function(v){(this.isFullScreen=v)||this.updatePopup()};
HO.prototype.updateCurrentDownloadProgress=HO.prototype.updateCurrentDownloadProgress;HO.prototype.updatePopup=HO.prototype.updatePopup;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],HO.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],HO.prototype,"ytEventForwardingBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],HO.prototype,"actionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"duration",void 0);_.k([_.H({selector:function(v){return _.Xks(v.entities).length}}),
_.W("design:type",Object)],HO.prototype,"downloadingCount",void 0);_.k([_.H({selector:$1O}),_.W("design:type",Object)],HO.prototype,"downloadedCount",void 0);_.k([_.H({selector:function(v){var E=_.Xks(v.entities);return Wib(v.entities,E)}}),
_.W("design:type",Object)],HO.prototype,"downloadingOnlySmartDownloads",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"sessionTotalDownloads",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"sessionDownloaded",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"previousSessionsDownloaded",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"totalDownloadPercentage",void 0);
_.k([_.H({selector:function(v){var E;v=(E=_.Xks(v.entities))!=null?E:[];return v.length>0?_.BgL(v.slice(-1)):0}}),
_.W("design:type",Object)],HO.prototype,"currentDownloadProgress",void 0);_.k([_.H(),_.W("design:type",Object)],HO.prototype,"currentDownloadPercentage",void 0);_.k([_.H({selector:_.$bI}),_.W("design:type",Object)],HO.prototype,"isLeaderTab",void 0);_.k([_.Wp("yt-notification-action-renderer"),_.W("design:type",Object)],HO.prototype,"notificationActionRenderer",void 0);
_.k([_.Tw("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HO.prototype,"updatePopup",null);_.k([_.Tw("currentDownloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HO.prototype,"updateCurrentDownloadProgress",null);HO=_.k([_.N({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],HO);
_.u(HO,"ytd-video-download-toast-renderer",function(){if(rWU!==void 0)return rWU;var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return rWU=v},{mode:1});var ZqU;var CVb;var gP=function(){return _.g.apply(this,arguments)||this};
_.S(gP,_.g);gP.prototype.computeIsRedLogo=function(v,E){!v&&E&&(v=E);return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
gP.prototype.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],gP.prototype,"componentBehavior",void 0);_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.W("design:type",Boolean)],gP.prototype,"isRedLogo",void 0);_.k([_.H({computed:"computeLogoName(data)"}),_.W("design:type",String)],gP.prototype,"logoName",void 0);_.k([_.H({value:{}}),_.W("design:type",Object)],gP.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],gP.prototype,"logoType",void 0);gP=_.k([_.N({disableElementRegistration:!0,is:"ytd-logo"})],gP);
_.u(gP,"ytd-logo",function(){if(CVb!==void 0)return CVb;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return CVb=v},{mode:_.HE("kevlar_poly_si_batch_j074")?1:2});var Ny=function(){var v=_.g.apply(this,arguments)||this;v.animationRef={};return v};
_.S(Ny,_.g);_.c=Ny.prototype;_.c.attached=function(){document.addEventListener("yt-navigate-finish",_.uo(this,this.logYoodle))};
_.c.detached=function(){document.removeEventListener("yt-navigate-finish",_.uo(this,this.logYoodle))};
_.c.logYoodle=function(){var v,E;if((v=this.data)==null?0:(E=v.loggingDirectives)==null?0:E.trackingParams)this.ytRendererBehavior.markDirty(),_.Tl().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.c.computeHideImg=function(v,E){return!!v||!!E};
_.c.computeHideYtdLogo=function(v,E){return!v||!!E};
_.c.computeHideLottie=function(v){return!v};
_.c.computeIsRedLogo=function(v){return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
_.c.renderLogoEntity=function(){var v=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),n=this.getLogoTitleText(this.data),f=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==v&&(this.url=v);this.animatedUrl!==E&&(this.animatedUrl=E);this.logoTitleText!==n&&(this.logoTitleText=n);this.lottieUrl!==f&&(this.lottieUrl=f,this.lottiePlayerProps=this.computeLottiePlayerProps(f))};
_.c.getSanitizedThumbnail=function(v){return v&&v.thumbnails?_.ao9(v.thumbnails,122)||"":""};
_.c.getThumbnailUrl=function(v,E){if(!E)return"";var n,f;v=v?(n=E.darkThemeLogo)==null?void 0:n.thumbnail:(f=E.lightThemeLogo)==null?void 0:f.thumbnail;return this.getSanitizedThumbnail(v)};
_.c.getAnimatedThumbnailUrl=function(v,E){return E?this.getSanitizedThumbnail(v?E.darkThemeAnimatedLogo:E.lightThemeAnimatedLogo):""};
_.c.getLogoTitleText=function(v){if(v)return _.JC(v.tooltipText)};
_.c.computeLogoIcon=function(v,E){if(E){var n,f;return v?(n=E.darkThemeLogo)==null?void 0:n.icon:(f=E.lightThemeLogo)==null?void 0:f.icon}};
_.c.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.c.getLottieUrl=function(v,E){var n,f,x,y;return v?E==null?void 0:(n=E.darkThemeLogo)==null?void 0:(f=n.lottieAnimation)==null?void 0:f.url:E==null?void 0:(x=E.lightThemeLogo)==null?void 0:(y=x.lottieAnimation)==null?void 0:y.url};
_.c.computeLottiePlayerProps=function(v){if(v){var E;if((E=this.animationRef)==null?0:E.lottieEl){var n;(n=this.animationRef)==null||n.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:v,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.c.onLottieError=function(){this.data&&this.lottieUrl&&_.jK(this.hostElement,"yoodle-error")};
_.c.onImgError=function(){this.data&&!this.lottieUrl&&_.jK(this.hostElement,"yoodle-error")};
Ny.prototype.playAnimation=Ny.prototype.playAnimation;Ny.prototype.renderLogoEntity=Ny.prototype.renderLogoEntity;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Ny.prototype,"data",void 0);_.k([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],Ny.prototype,"hideImg",void 0);
_.k([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],Ny.prototype,"hideYtdLogo",void 0);_.k([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.W("design:type",Boolean)],Ny.prototype,"hideLottie",void 0);_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.W("design:type",Boolean)],Ny.prototype,"isRedLogo",void 0);
_.k([_.H(),_.W("design:type",Boolean)],Ny.prototype,"useDarkThemeYoodle",void 0);_.k([_.H(),_.W("design:type",String)],Ny.prototype,"url",void 0);_.k([_.H(),_.W("design:type",String)],Ny.prototype,"animatedUrl",void 0);_.k([_.H(),_.W("design:type",String)],Ny.prototype,"logoTitleText",void 0);_.k([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.W("design:type",Object)],Ny.prototype,"logoIcon",void 0);_.k([_.H(),_.W("design:type",Object)],Ny.prototype,"logoType",void 0);
_.k([_.H(),_.W("design:type",String)],Ny.prototype,"lottieUrl",void 0);_.k([_.H(),_.W("design:type",Object)],Ny.prototype,"lottiePlayerProps",void 0);_.k([_.H(),_.W("design:type",Object)],Ny.prototype,"animationRef",void 0);_.k([_.On("data"),_.On("useDarkThemeYoodle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ny.prototype,"renderLogoEntity",null);
_.k([_.jk("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ny.prototype,"playAnimation",null);Ny=_.k([_.N({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Ny);
_.u(Ny,"ytd-yoodle-renderer",function(){if(ZqU!==void 0)return ZqU;var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return ZqU=v},{mode:_.HE("kevlar_poly_si_batch_j074")?1:2});var MAK;var SEx;var um=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return v};
_.S(um,_.g);_.c=um.prototype;_.c.onYoodleError=function(){_.Z("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.c.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.c.computeTitle=function(v,E,n){return n&&(E==null?0:E.tooltipText)?_.JC(E.tooltipText):_.JC(v)};
_.c.computeAriaLabel=function(v,E,n){return n&&(E==null?0:E.tooltipText)?_.JC(v):""};
_.c.computeShowYoodle=function(v,E,n){return!v||!E&&!!n&&!_.sh.isEmpty(n)};
_.c.onNavigateHomeAction=function(){if(_.Z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v;(v=_.K(this.hostElement).querySelector(".yt-simple-endpoint"))==null||v.click()}};
_.c.computeLogoHref=function(v,E,n){var f;(n==null?0:n.onTapCommand)?f=this.componentBehavior.computeHref_(n.onTapCommand):v&&(f=this.componentBehavior.computeHref_(v));return f?f:E};
_.c.computeCommand=function(v,E){return(E==null?void 0:E.onTapCommand)||v};
_.c.getEndpointForm=function(){if(_.Z("kevlar_topbar_disable_cache_only_home")){var v=_.P().resolve(_.lQ),E=R0P(v.getState())||"";v=_.NKE(v.getState())||"";return{disableCache:E==="ytd-browse"&&v==="home"}}return{disableCache:!0}};
um.prototype.onYoodleError=um.prototype.onYoodleError;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],um.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],um.prototype,"componentBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],um.prototype,"ytdReduxBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],um.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],um.prototype,"countryCode",void 0);_.k([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(v,E){return _.LH(v.entities,"logoEntity",E)}}),
_.W("design:type",Object)],um.prototype,"logoEntity",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.W("design:type",Boolean)],um.prototype,"showYoodle",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],um.prototype,"yoodleError",void 0);_.k([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],um.prototype,"titleText",void 0);
_.k([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],um.prototype,"ariaLabelText",void 0);_.k([_.H({value:"/"}),_.W("design:type",String)],um.prototype,"defaultEndpointUrl",void 0);_.k([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.W("design:type",String)],um.prototype,"endpointUrl",void 0);
_.k([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.W("design:type",String)],um.prototype,"command",void 0);_.k([_.H(),_.W("design:type",Object)],um.prototype,"logoType",void 0);_.k([_.H({}),_.W("design:type",Boolean)],um.prototype,"useDarkThemeYoodle",void 0);_.k([_.jk("yoodle-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],um.prototype,"onYoodleError",null);um=_.k([_.N({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],um);
_.u(um,"ytd-topbar-logo-renderer",function(){if(SEx!==void 0)return SEx;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return SEx=v},{mode:_.HE("kevlar_poly_si_batch_j027")?1:2});var UMx=0;var qEC=_.Ap.SEARCH_APPEND_LABEL,JWP=_.Ap.SUGGESTION_NEW_VIDEOS_TEXT,Kr3=_.Ap.SUGGESTION_THUMBNAIL_LABEL,dM0=_.qu(function(v){function E(eo){var kX,lX;return _.X(function(cb){if(cb.nextAddress==1)return kX=new Request(eo),_.vW(cb,2),_.m(cb,fetch(kX,{credentials:"include"}),4);if(cb.nextAddress!=2)return IF(!0),_.qp(cb,0);lX=_.cW(cb);_.li(lX);_.yQ(cb)})}
var n=v.isHighlighted;var f=v.suggestion;var x=v.onClickCallback;var y=v.onHoverUpdateCallback;var Q=v.labels;var e=v.queryBuilderFunction;var F=v.onRemoveCallback;var b=v.suggestionIndex;var l=v.generateUniqueId;var r=v.highlightedId;var a=v.useScrollMargin;var M=v.isKeyboardMode;var U=null,d=null,Y=_.Ig(),V=_.Ig(),O=_.Y$(function(eo){eo&&_.Ke(237477,eo,d,function(kX){d=kX})}),T=_.Y$(function(eo){eo&&_.Ke(237477,eo,d,function(kX){d=kX})}),L=_.ij(function(eo){if((eo==null?void 0:eo.button)===2)return eo.preventDefault(),
!1;
var kX=_.lc();kX&&U&&_.Jc(kX,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var lX;x(eo,f().text,f().index,f().entityMid,eo==null?void 0:(lX=eo.detail)==null?void 0:lX.wasSelectedByKeyboard);return!1}),xX=function(){return f().type===35},t=function(){return _.Z("desktop_enable_single_suggestion_highlight")},QE=function(){return _.Z("desktop_enable_entity_suggest")},MF=function(){return _.WG("desktop_suggestions_panel_row_height")||0},K1=function(){var eo;
return _.Z("desktop_enable_new_video_metadata")&&((eo=f())==null?void 0:eo.hasNewVideo)===!0},JG=function(){return _.Z("desktop_enable_visual_suggest")},$X=function(){return f().entitySubtitle},HI=function(){return t()?(n==null?void 0:n())||aK()&&!(M==null?0:M()):(n==null?void 0:n())||aK()},uE=function(){var eo=_.MX("SBOX_SETTINGS");
return xX()&&!(eo==null?0:eo.HIDE_REMOVE_LINK)},WI=function(){return ogp(f())},bX,n0=!((bX=_.P().resolve(_.jp(_.aj)))==null||!bX()),qi=function(){return xX()?"ARROW_TIME":"SEARCH"},fl=function(){return Q==null?void 0:Q().SUGGESTION_DISMISS_LABEL},yP=function(){return Q==null?void 0:Q().SUGGESTION_DISMISSED_LABEL};
bX=_.p(_.t7(!1,void 0,"kHLOZe"));v=bX.next().value;var IF=bX.next().value;bX=_.p(_.t7(!1,void 0,"SGF2sd"));var QP=bX.next().value,T3=bX.next().value,aK=QP,yE=_.ij(function(){e(V.value.innerText);return!1}),Cl=_.ij(function(eo){eo.preventDefault();
return!1}),VP=_.ij(function(eo){var kX=f().text,lX=_.MX("SBOX_SETTINGS"),cb="https://"+(lX.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
cb+="&delq="+encodeURIComponent(kX);(kX=lX==null?void 0:lX.PSUGGEST_TOKEN)&&(cb+="&tok="+kX);(lX=lX==null?void 0:lX.SESSION_INDEX)&&(cb+="&authuser="+lX);E(cb);eo.preventDefault();(eo=_.lc())&&d&&_.Jc(eo,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");F(b==null?void 0:b());return!1}),JR=_.ij(function(){if(t()&&(M==null?0:M()))return!1;
T3(!0);y(!0);return!1}),d1=_.ij(function(){T3(!1);
y(!1);return!1});
bX=_.p(_.t7("",void 0,"yaN19c"));var $w=bX.next().value,y6=bX.next().value;_.mM(function(){uE()&&y6(l==null?void 0:l(b==null?void 0:b()));Y.value&&_.Ke(12453,Y.value,U,function(eo){U=eo})});
return _.w(_.x6,{cond:v,then:function(){var eo={};return _.w("div",{class:_.W8("ytSuggestionComponentRemovedText",(eo.ytSuggestionComponentLargerRemovedText=function(){return JG()},eo)),
style:function(){return MF()>0?"height: "+MF()+"px;":""},
role:"button"},yP)},
else:function(){var eo={},kX={};return _.w("div",{class:_.W8("ytSuggestionComponentSuggestion",(eo.ytSuggestionComponentSuggestionHover=function(){return!t()},eo.ytSuggestionComponentHighlighted=HI,eo.ytSuggestionComponentPersonalizedSuggestion=xX,eo.ytSuggestionComponentMweb=!1,eo.ytSuggestionComponentLargerSuggestion=function(){return K1()||JG()},eo.ytSuggestionComponentThumbnailSuggestion=function(){return JG()},eo.ytSuggestionComponentRoundedSuggestion=function(){return _.Z("desktop_enable_scrollable_suggestions_panel")&&
_.Z("desktop_enable_suggestions_panel_padding")},eo)),
style:function(){return MF()>0?"height: "+MF()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":JR,"on:mouseout":d1,el:Y},_.w("div",{class:_.W8("ytSuggestionComponentText",(kX.ytSuggestionComponentScrollMargin=a,kX)),"aria-label":function(){return K1()?f().text+" "+JWP:f().text},
id:function(){return l==null?void 0:l(b==null?void 0:b())},
"on:mousedown":L,role:"option"},_.w(_.x6,{cond:function(){return f().type!==33},
then:function(){return _.w(_.B8,{icon:qi,className:"ytSuggestionComponentIcon"})}}),_.w("div",{class:"ytSuggestionComponentLeftContainer"},_.w("span",{el:V,
role:"button",tabindex:0},_.w(_.cG,{each:WI},function(lX){return lX.bold?_.w("span",{class:"ytSuggestionComponentBold"},lX.text):_.w("span",null,lX.text)})),_.w(_.x6,{cond:function(){return QE()&&fM1(f())&&!!f().entitySubtitle},
then:function(){return _.w("div",{class:"ytSuggestionComponentEntitySubtitle"},$X)}}),_.w(_.x6,{cond:function(){return K1()},
then:function(){return _.w("div",{class:"ytSuggestionComponentNewVideoContainer"},_.w("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.w("div",{class:"ytSuggestionComponentNewVideoText"},JWP))}}))),_.w("div",{class:"ytSuggestionComponentRightContainer"},_.w(_.x6,{cond:function(){return JG()&&f().visualSuggestUrl!==void 0},
then:function(){var lX={};return _.w("div",{class:"ytSuggestionComponentThumbnailContainer"},_.w("img",{"aria-label":Kr3,class:_.W8("ytSuggestionComponentVisualSuggestThumbnail",(lX.ytSuggestionComponentCircularFrame=function(){return QE()&&fM1(f())&&f().subtypes.includes(790)},lX.ytSuggestionComponentEntitySuggestThumbnail=function(){return QE()&&fM1(f())},lX)),
src:function(){return f().visualSuggestUrl}}))}}),_.w(_.Q1,null,_.w(_.y1,{when:function(){return JG()&&uE()}},function(){var lX={};
return _.w("button",{class:_.W8("ytSuggestionComponentRemoveLinkClearButton",(lX.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return $w()&&$w()===(r==null?void 0:r())},lX.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!HI()},lX)),
el:T,"on:mousedown":VP,"aria-label":fl,id:function(){return $w()}},_.w(_.B8,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.w(_.y1,{when:function(){return!(JG()&&f().visualSuggestUrl!==void 0)&&uE()}},function(){var lX={};
return _.w("a",{class:_.W8("ytSuggestionComponentRemoveLink",(lX.ytSuggestionComponentRemoveLinkDark=n0,lX.ytSuggestionComponentRemoveLinkSelected=function(){return $w()&&$w()===(r==null?void 0:r())},lX)),
el:O,"on:mousedown":VP,"aria-label":fl,tabindex:0,role:"button",id:function(){return $w()}},fl)}),_.w(_.y1,{when:function(){return!1}},function(){return _.w("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":yE,"on:mousedown":Cl,role:"button","aria-label":qEC},_.w(_.B8,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"dg");var IMp=_.qu(function(){var v=_.ij(function(){pK_().inputMethodsTracker.add(3);var E,n=(E=_.MX("SBOX_SETTINGS"))==null?void 0:E.REQUEST_LANGUAGE;if(n)return _.CG("//www.google.com/textinputassistant/14/"+n+"_tia.js"),!1});
return _.w("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.w("button",{class:"ytdTextInputAssistantButton","on:click":v},_.w("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"eg");var YE6=function(){this.cache=new Map},hP6=function(v){for(var E=_.p(v.cache.entries()),n=E.next();!n.done;n=E.next()){var f=_.p(n.value);
n=f.next().value;f=f.next().value;f.suggestions.some(function(x){return x.type===35})&&v.cache.delete(n)}};var AWd=_.Ap.SEARCH,VAU=_.Ap.SEARCH_CLEAR_LABEL,DM_=new _.$Y("FAKE_SUGGEST_RESPONSE");_.Yz(_.qu(function(v){function E(){eo||(eo=setTimeout(function(){lX()},1E3))}
function n(aF,r1,mU){if(aF.trim()){y6=aF;_.Ck("REFINEMENTS_TUPLE",void 0);d1=!0;var Mn;r1=ePP(aK,r1);var cU=(Mn=v.searchEndpoint)==null?void 0:Mn.call(v);Mn=yP.value.value;cU||(cU=cZU);var sw;(sw=_.C(cU.commandMetadata,_.Dl))!=null&&sw.url||(sw=Error("ll`"+JSON.stringify(cU)),_.mb(sw),cU=cZU);sw=_.sh.unsafeClone(cU);cU=_.PP(_.C(sw.commandMetadata,_.Dl).url,"search_query",aF);_.SC(location.href,"sv")==="1"&&(_.C(sw,_.ze).params="EgOAAgE%3D",cU=_.PP(cU,"sv","1"));_.C(sw,_.ze)&&(_.C(sw,_.ze).query=aF);
cU=cU.replace(/%20/g,"+");_.C(sw.commandMetadata,_.Dl).url=cU;mU=_.Z("desktop_enable_entity_suggest")?{entityMid:mU}:{};_.P().resolve(_.OO).resolveCommand(sw,{form:{tempData:Object.assign({},{gs_l:r1,oq:Mn!=null?Mn:aF},mU)}});lX();yP.value.value=aF;yP.value.blur();aK.reset()}}
function f(aF){return _.X(function(r1){return r1.return(new Promise(function(mU){var Mn=new XMLHttpRequest;Mn.open("GET",zaR(aF),!0);Mn.withCredentials=!0;var cU=_.MX("SBOX_SETTINGS");(cU==null?0:cU.SEND_VISITOR_DATA)&&Mn.setRequestHeader("X-Goog-Visitor-Id",cU==null?void 0:cU.VISITOR_DATA);Mn.onload=function(){mU(Mn.responseText)};
Mn.onerror=function(){_.li(Error("ml"));mU(null)};
setTimeout(function(){Mn.abort()},1E4);
Mn.send(null)}))})}
function x(aF){var r1,mU,Mn,cU;return _.X(function(sw){switch(sw.nextAddress){case 1:return r1={credentials:"include",headers:iXU()},window.AbortController&&(mU=new AbortController,setTimeout(function(){mU.abort("ytsbox-suggest-timeout")},1E4),r1.signal=mU.signal),_.vW(sw,2),_.m(sw,fetch(zaR(aF),r1),4);
case 4:Mn=sw.yieldResult.text();_.qp(sw,3);break;case 2:return cU=_.cW(sw),cU!=="ytsbox-abort-last"&&cU!=="ytsbox-suggest-timeout"&&_.li(cU),sw.return(null);case 3:return sw.return(Mn)}})}
function y(aF){var r1,mU,Mn;return _.X(function(cU){switch(cU.nextAddress){case 1:if(r1=_.P().resolve(_.jp(DM_)))return cU.return(r1);mU=Date.now();E();return _.Z("yt_searchbox_xhr")?_.m(cU,f(aF),5):_.m(cU,x(aF),4);case 4:Mn=cU.yieldResult;cU.jumpTo(3);break;case 5:Mn=cU.yieldResult;case 3:if(Mn){eo&&(clearTimeout(eo),eo=null);var sw=aK,ua=mU,hj=aF.query.length===0;ua=Date.now()-ua;hj?sw.zeroPrefixRoundTripTime=ua:(sw.JSC$18320_totalRoundTripTime+=ua,sw.maxRoundTripTime=Math.max(sw.maxRoundTripTime,
ua),hj=Math.floor(ua/100),hj>=FrK.length?++sw.roundTripTimeHistogram[9]:++sw.roundTripTimeHistogram[FrK[hj]])}return cU.return(Mn)}})}
function Q(aF){var r1,mU,Mn;return _.X(function(cU){if(cU.nextAddress==1)return(r1=T3.cache.get(TId(aF)))?cU.return(r1):_.m(cU,y(aF),2);mU=cU.yieldResult;if(mU===null)return cU.return(null);Mn=new xMM(mU);aF.query.length===0&&Mn.suggestions.length===0||T3.cache.set(TId(aF),Mn);return cU.return(Mn)})}
function e(aF){var r1,mU;return _.X(function(Mn){if(Mn.nextAddress==1){$w=!1;var cU=y6;cU=_.SJI()==="search"?(_.SC(location.href,"search_query")||_.SC(location.href,"q"))===cU:!1;r1=new Gm6(aF,cU?y6:null);return _.m(Mn,Q(r1),2)}mU=Mn.yieldResult;if(mU===null)return Mn.return();r1.query.length===0&&(aK.zeroPrefixSuggestionCount=mU.suggestions.length);if(r1.id<=kX)return aK.outOfSyncResponseCount++,Mn.return();if(document.activeElement!==yP.value)return Mn.return();kX=r1.id;var sw=aK,ua=mU.rawResponse[2]||
{};sw.experimentTriggeredBeforeFinal||(sw.experimentTriggeredBeforeFinal=sw.experimentTriggeredFinal);sw.experimentTriggeredFinal=!!ua.e;aK.updateSuggestions(mU.suggestions);Y(-1);bX([]);mU.suggestions!==M()&&Wv(mU.suggestions.length);U(mU.suggestions);MF(mU.suggestions.length>0&&mU.suggestions[0].type===33);QP&&(QP.hidden=mU.suggestions.length===0,QE()?(QP.style.minWidth="",sw=QP.style,ua=(cU=M()[0])==null?void 0:cU.ignoredPrefix,sw.marginLeft=(ua?Math.min(ua.length*6,IF.value.offsetWidth):0).toString()+
"px"):(QP.style.minWidth=IF.value.offsetWidth+"px",QP.style.marginLeft="0"),e8());_.yQ(Mn)})}
function F(){if(!d1)return!1;var aF=_.MX("REFINEMENTS_TUPLE");return aF?(aF=aF[1].map(function(r1,mU){return new ngd([r1,0,[71]],yP.value.value,mU)}),M()!==aF&&Wv(aF.length),bX([]),U(aF),aK.updateSuggestions(aF),d1=!1,QP.hidden=aF.length===0,$w=aF.length>0,!0):!1}
function b(){var aF=yP.value.value;(typeof aF==="string"||aF instanceof String)&&aF!==""?L(!0):L(!1)}
function l(){if(_.SJI()==="search"){var aF=window.location.href;try{var r1=_.SC(aF,"search_query")||_.SC(aF,"q")||""}catch(mU){r1=""}r1&&(yP.value.value=r1,L(!0))}}
var r=_.p(_.t7([],void 0,"kGFAjf")),a=r.next().value;r=r.next().value;var M=a,U=r;a=_.p(_.t7(-1,void 0,"mLGL9e"));var d=a.next().value,Y=a.next().value;a=_.p(_.t7(-1,void 0,"u2rYdc"));var V=a.next().value,O=a.next().value;a=_.p(_.t7(!1,void 0,"W9DFC"));var T=a.next().value,L=a.next().value;a=_.p(_.t7(!1,void 0,"Ip4dNc"));var xX=a.next().value,t=a.next().value;r=_.p(_.t7(!1,void 0,"ZNKSQb"));a=r.next().value;r=r.next().value;var QE=a,MF=r;r=_.p(_.t7(!1,void 0,"JBrGLd"));a=r.next().value;var K1=r.next().value;
r=_.p(_.t7(!1,void 0,"P2pD6e"));var JG=r.next().value,$X=r.next().value;r=_.p(_.t7(1,void 0,"SjP20c"));var HI=r.next().value,uE=r.next().value;r=_.p(_.t7([],void 0,"h4dRaf"));var WI=r.next().value,bX=r.next().value;r=_.p(_.t7(!1,void 0,"TUTzaf"));var n0=r.next().value,qi=r.next().value;r=_.Z("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var fl=_.Ig(),yP=_.Ig(),IF=_.Ig(),QP,T3=new YE6,aK=pK_(),yE=_.P().resolve(_.jp(_.aj)),
Cl=function(){var aF;return((aF=v.forceDarkMode)==null?void 0:aF.call(v))||!(yE==null||!yE())},VP=function(){return _.Z("desktop_enable_scrollable_suggestions_panel")},JR="i"+UMx++,d1=!1,$w=!1,y6="",eo=null,kX=-1,lX=function(){bX([]);
U([]);MF(!1);QP&&(QP.hidden=!0);eo&&(clearTimeout(eo),eo=null);Y(-1)},cb=function(aF,r1){aF.preventDefault();
qi(!0);QP&&(QP.hidden=!1);var mU=d();aF=M();var Mn=WI();r1=BGK(r1);mU+=r1;for(mU>=aF.length?mU=-1:mU<-1&&(mU=aF.length-1);mU!==-1&&(Mn.includes(mU)||mU>=aF.length||mU<0);)mU+=r1,mU>=aF.length&&(mU=-1);Y(mU);d()>=0&&(yP.value.value=M()[d()].text,O(0),b(),aF=d(),Mn=V(),(Mn=document.getElementById(Cs[aF][Mn]))&&VP()&&(aF===M().length-1?QP.scrollTop=QP.scrollHeight:Mn.scrollIntoView({block:"nearest",inline:"start"})))},Zz=_.ij(function(aF){if(!(aF.relatedTarget instanceof Element&&aF.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){t(!0);
var r1;(r1=v.focusCallback)==null||r1.call(v,!0);F()||($w?QP.hidden=!1:(_.jK(fl.value,"yt-autonav-pause-focus",{}),e(aF.target.value)))}}),C0=_.ij(function(aF){if(!(aF.relatedTarget instanceof Element&&aF.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){t(!1);
var r1;(r1=v.focusCallback)==null||r1.call(v,!1);QP.scrollTop=0;QP.hidden=!0;_.jK(fl.value,"yt-autonav-pause-blur",{})}}),ZL=function(aF){aF=BGK(aF);
var r1;((r1=Cs[d()])==null?0:r1[V()+aF])&&O(V()+aF)},fG=_.ij(function(aF){var r1=aF.target;
switch(aF.keyCode){case 13:aF.preventDefault();var mU;if((mU=Cs[d()])==null?0:mU[V()]){var Mn;(Mn=document.getElementById(Cs[d()][V()]))==null||Mn.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}aF=aF.shiftKey?4:3;mU=aK;Mn=d();mU.selectedSuggestionIndex=Mn;n(r1.value,aF);break;case 27:QP&&(QP.hidden=!0);break;case 40:cb(aF,40);break;case 38:cb(aF,38);break;case 39:ZL(39);break;case 37:ZL(37);break;case 229:aK.inputMethodsTracker.add(4);break;default:aK.inputMethodsTracker.add(1),
QHd(aK)}return!1}),lr=_.ij(function(aF){e(aF.target.value);
b();VP()&&QP&&(QP.scrollTop=0);return!1}),Ng=_.ij(function(){aK.inputMethodsTracker.add(2);
QHd(aK);return!1});
_.mM(function(){if(QP){aK.reset();if(window.ResizeObserver){var aF=new ResizeObserver(function(){QE()||(QP.style.minWidth=IF.value.offsetWidth+"px")});
aF.observe(IF.value);(new ResizeObserver(function(){e8()})).observe(QP);
_.Fp(function(){aF.disconnect()})}l();
window.addEventListener("yt-navigate-finish",l);window.addEventListener("yt-focus-searchbox",function(){yP.value.focus()});
var r1;K1((r1=_.MX("SBOX_SETTINGS"))==null?void 0:r1.HAS_ON_SCREEN_KEYBOARD)}else _.mb(new _.yc("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var xZ=_.ij(function(aF){aF.preventDefault();n(yP.value.value,12);return!1}),he=_.ij(function(aF){aF.preventDefault();
var r1,mU;(r1=yP)==null||(mU=r1.value)==null||mU.focus();var Mn,cU;((Mn=yP)==null?void 0:(cU=Mn.value)==null?void 0:cU.value)!==""&&(yP.value.value="",yP.value.dispatchEvent(new Event("input")));return!1}),mA=_.ij(function(){var aF=tQR(yP.value.value,M().filter(function(r1){return r1.type!==35}).map(function(r1){return{label:r1.text}}));
_.OL(fl.value,"yt-open-popup-action",[{openPopupAction:aF},document.body]);return!1}),ep=_.ij(function(){yP.value.focus();
return!1}),fc=function(aF,r1,mU,Mn,cU){aK.selectedSuggestionIndex=mU;
n(r1,cU?3:1,Mn)},wt=function(aF){yP.value.value=aF;
yP.value.dispatchEvent(new Event("input"));aK.inputMethodsTracker.add(5);QHd(aK,!0)},Cs=[[]],Hp=function(aF){var r1="searchbox-suggestion"+_.ZE(_.CU);
Cs[aF].push(r1);return r1},Wv=function(aF){if(M()){Cs=[[]];
for(var r1=0;r1<aF;r1++)Cs.push([])}},e8=function(){if(VP()){var aF=QP,r1=aF.scrollTop;
aF=aF.scrollHeight-aF.clientHeight;$X(r1>=aF);r1=Math.abs(aF-r1);r1<=40?uE(1-(40-r1)/40):uE(1)}},Xc=function(){return"opacity: "+HI()*100+"%"},a$=_.ij(function(){e8();
return!1}),AG=_.ij(function(){qi(!1);
return!1}),j9,s1={},oO={},Jj={},Fd={};
return _.w("yt-searchbox",{class:_.W8("ytSearchboxComponentHost",(s1.ytSearchboxComponentMweb=!1,s1.ytSearchboxComponentDesktop=!0,s1["yt-searchbox-filled-query"]=function(){return T()},s1["ytd-masthead"]=function(){return!xX()},s1.ytSearchboxComponentHostDark=Cl,s1)),
role:"search",el:fl,"client-ve-type":10349},_.w("div",{el:IF,"on:click":ep,class:_.W8("ytSearchboxComponentInputBox",(oO.ytSearchboxComponentInputBoxDark=Cl,oO.ytSearchboxComponentInputBoxHasFocus=xX,oO))},_.w("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":xZ},_.w(_.x6,{cond:xX,then:function(){return _.w("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.w(_.B8,{icon:"SEARCH"}))}}),_.w("input",{el:yP,
class:_.W8("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":JR,"aria-expanded":!((j9=QP)==null?0:j9.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":C0,"on:focus":Zz,"on:input":lr,"on:keydown":fG,"on:paste":Ng,placeholder:v.placeholderText,"aria-activedescendant":function(){var aF;return(aF=Cs[d()])==null?void 0:aF[V()]},
"aria-autocomplete":"list",role:"combobox"})),_.w(_.x6,{cond:a,then:function(){return _.w("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.w(IMp,null))}}),_.w(_.x6,{cond:T,
then:function(){return _.w("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.w("button",{class:"ytSearchboxComponentClearButton","on:click":he,"aria-label":v.clearButtonAriaLabel||VAU},_.w(_.B8,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.w(_.oX,{model:{}})))}})),_.w("button",{class:_.W8("ytSearchboxComponentSearchButton",(Jj.ytSearchboxComponentSearchButtonDark=Cl,Jj)),
"on:click":xZ,"aria-label":AWd,title:v.placeholderText},_.w(_.B8,{icon:"SEARCH"})),_.w(_.x6,{cond:function(){if(XyM()&&_.Z("mweb_voice_search")&&v.voiceSearchButton)return v.voiceSearchButton()},
then:function(aF){var r1={};return _.w("div",{class:_.W8("ytSearchboxComponentVoiceSearchWrapper",(r1.ytSearchboxComponentHideVoiceSearchButton=function(){return T()},r1))},_.w(_.mI,{data:aF},{buttonRenderer:function(mU){return _.w(_.q8,{data:mU.data,
onButtonClickCallback:function(){}})}}))}}),_.w("div",{el:_.JZ(function(aF){return void(QP=aF)}),
id:JR,class:_.W8("ytSearchboxComponentSuggestionsContainer",(Fd.ytSearchboxComponentSuggestionsContainerDark=Cl,Fd["yt-searchbox-suggestions-container"]=!1,Fd.ytSearchboxComponentSuggestionsContainerScrollable=VP(),Fd.ytSearchboxComponentSuggestionsContainerAnimated=r,Fd)),"on:scroll":a$,"on:mousemove":AG,role:"listbox",hidden:!0},_.w(_.cG,{each:M},function(aF,r1){return _.w(dM0,{suggestion:aF,isHighlighted:function(){return r1()===d()},
onClickCallback:fc,onHoverUpdateCallback:function(mU){if(_.Z("desktop_enable_single_suggestion_highlight")){var Mn=r1();mU&&(O(0),Y(Mn))}},
onRemoveCallback:function(mU){hP6(T3);mU===void 0||mU<0||WI().includes(mU)||bX([].concat(_.s8(WI()),[mU]))},
labels:v.labels,queryBuilderFunction:wt,suggestionIndex:r1,generateUniqueId:Hp,highlightedId:function(){var mU;return(mU=Cs[d()])==null?void 0:mU[V()]},
useScrollMargin:VP(),isKeyboardMode:n0})}),_.w(_.x6,{cond:function(){return!QE()&&M().find(function(aF){return aF.type!==35})&&_.Z("searchbox_reporting")},
then:function(){return _.w("button",{class:"ytSearchboxComponentReportButton","on:mousedown":mA},_.tQ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.w(_.x6,{cond:function(){return!JG()&&VP()},
then:function(){return _.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Xc}))}})))},"fg"),"yt-searchbox",{props:{searchEndpoint:_.Kt,
placeholderText:_.Kt,labels:_.Kt,voiceSearchButton:_.Kt,focusCallback:_.Ij,clearButtonAriaLabel:_.Kt,forceDarkMode:_.Kt}});var jZ=function(){var v=_.g.apply(this,arguments)||this;v.menuButtonTargetId="topbar-guide-menu";v.narrow=!1;v.menuStrings={BACK_ALT_LABEL:_.tQ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.tQ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.tQ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.tQ("SBOX_PLACEHOLDER",void 0,"Search")};v.pageDarkTheme=document.documentElement.hasAttribute("dark");v.watchPageScrollTop=0;v.theater=!1;v.fullscreen=!1;v.desktopUnifiedSearchPanelMode=_.Z("desktop_enable_unified_search_panel");
v.cinematicTheaterMode=_.Z("web_cinematic_theater_mode");v.ytSearchboxFocused=!1;v.searchboxLabels=_.MX("SBOX_LABELS");v.topbarIsAboveChipbar=!1;v.isDarkThemeForced=!1;v.areGhostCardsHidden=!1;v.guideKeyboardToggle=!1;v.voiceSearchManager=Rzx();v.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};v.setYtSearchboxFocused=function(E){v.ytSearchboxFocused=E};
return v};
_.S(jZ,_.g);_.c=jZ.prototype;_.c.computeSimpleText=function(v){return _.JC(v)};
_.c.onDarkChanged=function(){for(var v=_.p(this.buttons||[]),E=v.next();!E.done;E=v.next())E.value.isOverlay=!!this.dark;v=_.p(this.buttonRenderers||[]);for(E=v.next();!E.done;E=v.next())E.value.overrides=this.computeButtonOverride()};
_.c.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.c.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"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var v=_.Jh(_.qs(),"aa");_.Vt(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||v||(this.isDarkThemeForced=this.dark=!0);this.logoType?(v=this.hostElement.querySelector("#masthead-logo"))&&(_.Z("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.fT(v)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.uo(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.uo(this,this.onSetTheaterModeEnabled))};
_.c.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.uo(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.uo(this,this.onSetTheaterModeEnabled))};
_.c.dataChanged=function(){var v=this.data;v&&(this.voiceEnabled=v.voiceSearchButton?Rzx().isSupported():!1,_.iXg(_.R6(),this.menuButtonTargetId,this.guideButton),v.onReceivedActions&&v.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.LG(this.hostElement,v.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&v&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Vt(this.hostElement,"dark",!1),_.Vt(this.hostElement,"theater",!1),
(v=this.hostElement.querySelector("#masthead-logo"))&&(_.Z("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.fT(v))))};
_.c.computeCenterHidden=function(){var v;return this.data&&!((v=this.data.searchbox)==null?0:v.fusionSearchboxRenderer)};
_.c.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Vt(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.c.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.c.onWatchScroll=function(v){this.watchPageScrollTop=v.detail||0;this.updateMastheadBackgroundOpacity()};
_.c.onFullscreenChangeAction=function(v){v||(this.watchPageScrollTop=0);this.fullscreen=v;this.updateMastheadBackgroundOpacity()};
_.c.onSetTheaterModeEnabled=function(v){this.theater=v.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.c.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.c.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.c.setBackgroundOpacity=function(v){v=this.calculateBackgroundOpacity(v);this.background.style.opacity=""+v};
_.c.calculateBackgroundOpacity=function(v){var E=this.theater&&this.cinematicTheaterMode?.6:0,n=this.hostElement.clientHeight/2;return Math.min(Math.max(v,0),n)/n*(1-E)+E};
_.c.shouldShowCinematicMastHead=function(){var v=_.Z("kevlar_watch_grid")&&!_.Z("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(v||this.pageDarkTheme)};
_.c.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.c.focusGuide=function(){this.guideButton.focus()};
_.c.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.jK(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.c.onGuideToggleTap=function(){_.jK(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.c.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.c.onGuideToggleHover=function(){_.jK(this.hostElement,"yt-guide-hover")};
_.c.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.c.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.c.closeOnOutsideClickCondition=function(v){for(v=_.MQ(v);v[0];){var E=v.shift();if(E instanceof Element&&E.id==="kbd")return!1}return!0};
_.c.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.c.pausePlayer=function(){var v;(v=_.Aq())==null||v.pause();this.pauseMiniplayer()};
_.c.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var v;(v=_.P().resolve(_.hf).getPlayerElement())==null||v.pause()}};
_.c.isMiniplayerActive=function(){return _.P().resolve(_.hf).isMiniplayerActive()};
_.c.updateNarrowFromBinding=function(v){this.narrow=v.detail.value};
_.c.onYtSendFeedbackAction=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.hK.Object.defineProperties(jZ.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var v;return(v=this.data)==null?void 0:v.voiceSearchButton}}}});
jZ.prototype.narrowChanged=jZ.prototype.narrowChanged;jZ.prototype.onIronResize=jZ.prototype.onIronResize;jZ.prototype.onWatchPageChange=jZ.prototype.onWatchPageChange;jZ.prototype.onRendererStamperFinished=jZ.prototype.onRendererStamperFinished;jZ.prototype.dataChanged=jZ.prototype.dataChanged;jZ.prototype.onDarkChanged=jZ.prototype.onDarkChanged;_.k([_.h(_.ZT),_.W("design:type",Object)],jZ.prototype,"ironResizableBehavior",void 0);
_.k([_.h(_.FlC),_.W("design:type",Object)],jZ.prototype,"ytdExpandableInputBehavior",void 0);_.k([_.h(_.Uq.YtdGuideStateAwareBehavior),_.W("design:type",Object)],jZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.PL),_.W("design:type",Object)],jZ.prototype,"ytdReduxBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"narrow",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"logoType",void 0);
_.k([_.H(),_.W("design:type",Boolean)],jZ.prototype,"voiceEnabled",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"menuStrings",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],jZ.prototype,"dark",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jZ.prototype,"pageDarkTheme",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"watchPageScrollTop",void 0);
_.k([_.H({reflectToAttribute:!0,selector:_.wG}),_.W("design:type",Boolean)],jZ.prototype,"isWatchPage",void 0);_.k([_.H({reflectToAttribute:!0,selector:_.hrX}),_.W("design:type",Boolean)],jZ.prototype,"isShortsPage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jZ.prototype,"theater",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],jZ.prototype,"fullscreen",void 0);
_.k([_.H({reflectToAttribute:!0,selector:_.gVN}),_.W("design:type",String)],jZ.prototype,"frostedGlassMode",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"ytSearchboxFocused",void 0);_.k([_.$y("#buttons > *"),_.W("design:type",Array)],jZ.prototype,"buttons",void 0);_.k([_.$y("ytd-button-renderer"),_.W("design:type",Array)],jZ.prototype,"buttonRenderers",void 0);_.k([_.Wp("#background"),_.W("design:type",HTMLDivElement)],jZ.prototype,"background",void 0);
_.k([_.Wp("#guide-button"),_.W("design:type",Object)],jZ.prototype,"guideButton",void 0);_.k([_.Wp("#logo"),_.W("design:type",Object)],jZ.prototype,"logo",void 0);_.k([_.H({computed:"computeButtonOverride(dark)"}),_.W("design:type",Object)],jZ.prototype,"buttonOverrides",void 0);_.k([_.Tw("dark"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"onDarkChanged",null);_.k([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.W("design:type",Function)],jZ.prototype,"boundOnTapVoiceButton",void 0);_.k([_.H(),_.W("design:type",Object)],jZ.prototype,"topbarIsAboveChipbar",void 0);_.k([_.A("voiceEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jZ.prototype,"shouldShowVoiceSearchButton",null);_.k([_.A("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],jZ.prototype,"voiceSearchButton",null);
_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"dataChanged",null);_.k([_.jk("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"onRendererStamperFinished",null);_.k([_.Tw("isWatchPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"onWatchPageChange",null);
_.k([_.jk("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"onIronResize",null);_.k([_.Tw("narrow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jZ.prototype,"narrowChanged",null);jZ=_.k([_.N({disableElementRegistration:!0,is:"ytd-masthead"})],jZ);
_.u(jZ,"ytd-masthead",function(){if(MAK!==void 0)return MAK;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return MAK=v},{mode:_.HE("kevlar_poly_si_batch_j036")?1:2});var Hqd;var gg1={},Nv1={},u2b={},jHR={},OqC=(jHR.OFFLINE=(gg1["publicytnetworkstatus-online"]="BACK_ONLINE",gg1),jHR.ONLINE=(Nv1["publicytnetworkstatus-offline"]="OFFLINE",Nv1),jHR.BACK_ONLINE=(u2b["publicytnetworkstatus-offline"]="OFFLINE",u2b.TIMER_TRIGGER="ONLINE",u2b),jHR),OW=function(){var v=_.g.apply(this,arguments)||this;v.currentState="ONLINE";v.scheduledJobId=0;v.bannerString="";v.bannerVe=null;v.networkStatusManagerInstance=new _.q1;return v};
_.S(OW,_.g);_.c=OW.prototype;_.c.attached=function(){var v=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.c.detached=function(){var v=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.c.enterState=function(v){var E=this;this.scheduledJobId&&_.wh.cancelJob(this.scheduledJobId);v==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):v==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.tQ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):v==="BACK_ONLINE"&&(this.bannerString=_.tQ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.cP(_.wh,function(){E.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=v};
_.c.stateChangeHandler=function(v){(v=OqC[this.currentState][v])&&this.enterState(v)};
_.c.logVisibility=function(v){var E=_.lc();this.createBannerVe(v);E&&this.bannerVe&&(v?_.CH(E,[this.bannerVe]):_.Mx(E,[this.bannerVe]))};
_.c.createBannerVe=function(v){!this.bannerVe&&v&&(this.bannerVe=_.ci(37929),_.BD(_.Tl(),this.bannerVe))};
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",String)],OW.prototype,"currentState",void 0);_.k([_.H(),_.W("design:type",Object)],OW.prototype,"scheduledJobId",void 0);_.k([_.H(),_.W("design:type",Object)],OW.prototype,"bannerString",void 0);OW=_.k([_.N({disableElementRegistration:!0,is:"ytd-network-status-banner"})],OW);
_.u(OW,"ytd-network-status-banner",function(){if(Hqd!==void 0)return Hqd;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Hqd=
v},{mode:1});var kI0;var kB=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};v.hidden=!0;v.frostedGlass=_.Z("web_frosted_glass");return v};
_.S(kB,_.g);kB.prototype.computeHidden=function(v){return v&&v.status?!1:!0};
kB.prototype.handleUpdatePermissionRoleCommand=function(v){if(v=_.C(v,_.fTl))if(v=_.C(v.renderer,_.oOX))this.data=v};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],kB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],kB.prototype,"componentBehavior",void 0);_.k([_.H({value:!0,computed:"computeHidden(data)"}),_.W("design:type",Object)],kB.prototype,"hidden",void 0);_.k([_.H(),_.W("design:type",Object)],kB.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],kB.prototype,"frostedGlass",void 0);
kB=_.k([_.N({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],kB);
_.u(kB,"ytd-permission-role-bottom-bar-renderer",function(){if(kI0!==void 0)return kI0;var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);return kI0=v},{mode:1});var Wrd;var $M3;var vyK={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var WO=function(){return _.g.apply(this,arguments)||this};
_.S(WO,_.g);_.c=WO.prototype;_.c.attached=function(){this.JSC$18422_scroller&&(this.JSC$18422_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18422_scroller.attached&&typeof this.JSC$18422_scroller.attached==="function"&&this.JSC$18422_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(n){n.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var v=_.K(this.hostElement);v.querySelector("tp-yt-paper-radio-group").selected="";var E=v.querySelector("#reason-text");E&&(E.value="");v.querySelector("#description-text").value=""}};
_.c.canSubmit=function(v,E){_.jK(this.hostElement,"yt-invalidate-popup-tabbables");return!(v&&E)};
_.c.onCancel=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.c.onSubmit=function(){var v=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(y){return y.active}).map(function(y){return y.innerText.trim()}),E=this.hostElement.querySelector("tp-yt-paper-radio-group"),n=E.selectedItem,f=n.name;
n=n.innerText.trim();var x=E.querySelector("#reason-text");E=void 0;x&&(E=x.value);(x=this.descriptionText.value)&&(x=x.trim());Eyp(this.data.searchQuery,v,f,n,x,E);_.OL(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.c.sendFormSubmitToast=function(){var v=_.AC(_.tQ("SBOX_INAPPROPRIATE_TOAST"));_.OL(this.hostElement,"yt-open-popup-action",[v,this])};
_.c.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(v){return v.active})};
_.c.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
WO.prototype.onIronSelect=WO.prototype.onIronSelect;WO.prototype.onIronChange=WO.prototype.onIronChange;WO.prototype.dataChanged=WO.prototype.dataChanged;_.k([_.H(),_.W("design:type",Object)],WO.prototype,"data",void 0);_.k([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.W("design:type",Boolean)],WO.prototype,"submitDisabled",void 0);_.k([_.H(),_.W("design:type",Boolean)],WO.prototype,"suggestionSelected",void 0);
_.k([_.H(),_.W("design:type",Boolean)],WO.prototype,"catagorySelected",void 0);_.k([_.Wp("#scroller"),_.W("design:type",Object)],WO.prototype,"JSC$18422_scroller",void 0);_.k([_.Wp("#description-text"),_.W("design:type",Object)],WO.prototype,"descriptionText",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WO.prototype,"dataChanged",null);
_.k([_.jk("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WO.prototype,"onIronChange",null);_.k([_.jk("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WO.prototype,"onIronSelect",null);WO=_.k([_.N({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],WO);
_.u(WO,"ytd-search-suggestion-report-dialog",function(){if($M3!==void 0)return $M3;var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return $M3=v},{mode:1});var $B=function(v){var E=v.openPopupAction;var n=v.target;var f=v.container;var x=v.popupContainerConfig;var y=v.getElement;v=v.removeWhenClosed===void 0?!1:v.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=E;this.target=n;this.container=f;this.popupContainerConfig=x;this.getElement=y;this.JSC$18428_popupConfig=this.popupContainerConfig.JSC$17545_popupConfig[this.openPopupAction.popupType];this.rendererName=(E=this.getName())?_.GGE(E,KN0(this.popupContainerConfig,
E)):"";_.Z("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=v);this.createPopup()};
$B.prototype.updatePopup=function(v){this.openPopupAction=v;this.JSC$18428_popupConfig=this.popupContainerConfig.JSC$17545_popupConfig[this.openPopupAction.popupType];Lr1(this);_.Z("reorder_popup_updates_killswitch")&&GIO(this);_.Z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var zPM=function(v,E,n){v.target=n;var f;n=((f=v.target.polymerController)!=null?f:v.target).popupPositionTarget||v.target;v.JSC$18428_popupConfig.targetContainer&&(n=v.container);v.popup.positionTarget=n;v.popupContent.positionTarget=n;_.Z("reorder_popup_updates_killswitch")||GIO(v);v.JSC$18428_popupConfig.forceFocus&&(v.popupContent.style.outline="none");v.popupContent.tabIndex=-1;v.JSC$18428_popupConfig.narrowProperties&&(v.popup.style.position="static");v.JSC$18428_popupConfig.preventAutonav&&
v.popup.setAttribute("prevent-autonav",!0);v.JSC$18428_popupConfig.forceCloseOnOutsideClick&&v.popup.setAttribute("force-close-on-outside-click",!0);TvC(v,E);iq0(v,v.JSC$18428_popupConfig.styles);v.isRtl()&&iq0(v,v.JSC$18428_popupConfig.rtlStyles);if(!v.openPopupAction.shouldStopParentSignal){var x;E=(x=v.target.polymerController)!=null?x:v.target;(v.popupContent.startForwardingEvents||v.popupContainerConfig.forwardingEnabledPopups.has(v.rendererName))&&E.parentComponent!==v.popupContent&&v.popupContent!==
v.target&&v.target!==document.body&&(v.popupContent.startForwardingEvents?v.popupContent.startForwardingEvents(v.popupContainerConfig.forwardedEvents,v.target):(v.JSC$18428_eventForwarder||(v.JSC$18428_eventForwarder=new _.yw(v.popupContent)),v.JSC$18428_eventForwarder.start(v.popupContainerConfig.forwardedEvents,v.target)))}};
$B.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var TvC=function(v,E){RPR(v,E&&v.JSC$18428_popupConfig.narrowProperties?v.JSC$18428_popupConfig.narrowProperties:v.JSC$18428_popupConfig.properties);v.isRtl()&&RPR(v,v.JSC$18428_popupConfig.rtlProperties);GIO(v)};
$B.prototype.createPopup=function(){var v=this.JSC$18428_popupConfig.component;if(this.popupContent=tAO(this,this.rendererName)){if(v){this.popup=tAO(this,v);var E=this.popupContent;_.Z("web_enable_wrapper_for_cow_component_in_popup")&&(E=document.createElement("div"),E.appendChild(this.popupContent));_.Z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18428_popupConfig.slotName&&E.setAttribute("slot",this.JSC$18428_popupConfig.slotName);v=this.popup;var n=this.container.tagName.toLowerCase(),
f=_.Un(E);_.CdE(_.JV(v),_.Ik(E,n,f));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Z("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.K(this.container).appendChild(this.popup)}};
var Lr1=function(v){var E,n,f=(E=v.openPopupAction.accessibilityData)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label;f&&(v.popup.ariaLabel=f);var x;((x=v.popupContent.polymerController)!=null?x:v.popupContent).data=(0,_.sh.unsafeClone)(v.openPopupAction.popup[v.getName()]);v.popupContent.duration=Bv0(v);v.popupContent.positionType=v.openPopupAction.position;var y=v.openPopupAction.properties;y&&Object.keys(y).forEach(function(Q){v.popupContent[Q]=y[Q]})},RPR=function(v,E){if(E)for(var n=
_.p(Object.keys(E)),f=n.next();!f.done;f=n.next())f=f.value,v.popup[f]=E[f]},GIO=function(v){if(v.openPopupAction.position){var E=v.JSC$18428_popupConfig.positionalProperties&&v.JSC$18428_popupConfig.positionalProperties[v.openPopupAction.position],n=v.JSC$18428_popupConfig.rtlPositionalProperties&&v.JSC$18428_popupConfig.rtlPositionalProperties[v.openPopupAction.position];
E=v.isRtl()&&n?n:E;E.shiftedHorizontalOffset&&(n=v.popup.style.display,v.popup.style.display="block",v.popupContent&&v.popup.positionTarget&&v.popupContent.clientWidth>v.popup.positionTarget.clientWidth&&(E.horizontalOffset=v.popup.positionTarget.clientWidth/2-E.shiftedHorizontalOffset),v.popup.style.display=n);RPR(v,E)}},iq0=function(v,E){if(E)for(var n=_.p(Object.keys(E)),f=n.next();!f.done;f=n.next())f=f.value,v.popup.style[f]=E[f]};
$B.prototype.getName=function(){return _.a5(this.openPopupAction.popup,"renderer")||_.a5(this.openPopupAction.popup,"dialog")||_.a5(this.openPopupAction.popup,"model")||void 0};
var Bv0=function(v){v=v.openPopupAction.durationHintMs;return v===0?v:Math.max(4E3,v||4E3)};
$B.prototype.isRtl=function(){return _.MX("HTML_DIR")==="rtl"};
var tAO=function(v,E){v=v.getElement(E,v.target);v==null&&_.li(new _.yc("popup getElement returned null",E));return v};var v5P={};
v5P.YtPopupContainerBehavior=[_.aD.YtComponentBehavior,_.N2.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_);_.NA(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.uc(this.hostElement)},
closePopup:function(v){var E=this.createCacheKey(void 0,v);this.popups_[E]&&this.handleClosePopupAction_(void 0,v)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.wh.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.wh.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(v){v.opened&&v.keepBelowPlayer&&this.ensurePopupBelowPlayer(v)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var v in this.popups_){var E=this.popups_[v];if(E.popup.scrollAction==="refit"){var n=E.popup.positionTarget.getBoundingClientRect(),f=E.popup;n=n.top;var x=E;if(!x.naturalHeight){x.popup.hidden=!1;x.popup.style.position="fixed";x.popup.style.top="0px";x.popup.style.left="0px";var y=x.popup.getBoundingClientRect();x.naturalHeight=y.bottom-y.top;x.popup.refit()}f.hidden=!(n>=x.naturalHeight+60);E.popupContent.clientHeight===0&&E.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(v){this.popupContainerConfig=v},
handleOpenPopupAction:function(v,E){var n=v.openPopupAction,f=_.P().resolve(_.jp(_.S1K))&&n.popupType==="TOAST";f&&!n.uniqueId&&(n.uniqueId=_.lP());if(!_.Z("popup_container_parent_target_killswitch")){var x;E=(x=this.getParentTarget(E))!=null?x:E}var y=this.ensurePopup_(n,E);return new _.z2(function(Q){y.then(function(e){if(!e)return Q();this.maybeCreateNarrowMediaQuery_();var F=this.createCacheKey(e.rendererName,e.openPopupAction.uniqueId);if(n.showOncePerUniqueId){if(this.shownPopupKeys_.has(F))return Q();
this.shownPopupKeys_.add(F)}F=this.popups_[F];var b=!(!F||!F.openPopupAction.beReused);b=!!n.reusePopup||b;if(e.popup.opened&&!b){f&&!e.openPopupAction.replacePopup||this.handleClosePopupAction_(e.rendererName,e.openPopupAction.uniqueId);b=n.popupType==="DIALOG"&&!_.Z("popup_container_dialog_reopen_killswitch");if(!f&&!b&&F&&F.target==E&&!e.openPopupAction.replacePopup)return Q();_.IS(e.popup,function(){this.completeOpenPopupAction_(n,E,e);Q()}.bind(this))}else e.popup.opened?e.updatePopup(n):this.completeOpenPopupAction_(n,
E,e),Q()}.bind(this))}.bind(this))},
getParentTarget:function(v){if(v&&v instanceof HTMLElement)for(var E=_.p(Object.entries(this.popups_)),n=E.next();!n.done;n=E.next())if(n=_.p(n.value),n.next(),n=n.next().value,n.popup.tagName==="TP-YT-IRON-DROPDOWN"&&n.popup.opened&&v.closest(n.rendererName))return n.target},
completeOpenPopupAction_:function(v,E,n){_.Z("reorder_popup_updates_killswitch")?(zPM(n,this.narrowMediaQuery_.queryMatches,E),n.updatePopup(v)):(n.updatePopup(v),zPM(n,this.narrowMediaQuery_.queryMatches,E));v=n.popup;v.addEventListener("iron-overlay-opened",_.uo(this,this.onPopupIronOverlayOpened_));v.addEventListener("iron-overlay-closed",_.uo(this,this.onPopupIronOverlayClosed_));v.addEventListener("iron-overlay-canceled",_.uo(this,this.onPopupIronOverlayCanceled_));v.addEventListener("yt-refit",
_.uo(this,this.refitPopup_));v.addEventListener("yt-invalidate-popup-tabbables",_.uo(this,this.handleInvalidatePopupTabbables_));v.open()},
getPopupDurationMs_:function(v){return v.durationHintMs===0?v.durationHintMs:Math.max(4E3,v.durationHintMs||4E3)},
handleClosePopupAction_:function(v,E){var n=_.Z("web_popup_cache_key_killswitch")||!!E;if(v||n){var f=this.createCacheKey(v,E);v=(v=this.popups_[f])&&v.popup}else v=_.xog(_.V$);if(v&&v.close){if(E=_.P().resolve(_.jp(_.cT)))v.restoreFocusOnClose=E.isKeyBoardInUse();v.close();this.removePopup_(v,f)}},
handleClosePopupCommand_:function(v){v.closePopupCommand&&v.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,v.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(v){var E={},n;for(n in this.popups_)if(E={key$jscomp$1162:E.key$jscomp$1162},E.key$jscomp$1162=n,!v||!v.some(function(y){return function(Q){return Q==y.key$jscomp$1162}}(E))){var f=this.popups_[E.key$jscomp$1162],x=f.popup;
_.P().resolve(_.jp(_.S1K))&&f.openPopupAction.popupType==="TOAST"||(x&&x.close&&x.close(),this.removePopup_(x,E.key$jscomp$1162))}},
handleClosePopupsAction_:function(v){v.forEach(function(E){var n=this.popups_[E];n&&((n=n.popup)&&n.close&&n.close(),this.removePopup_(n,E))}.bind(this))},
handleGetPopupOpenedAction_:function(v,E){return(E=this.createCacheKey(v,E))&&this.popups_[E]?this.popups_[v].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var v=[],E;for(E in this.popups_){var n=this.popups_[E];n.popup.opened&&v.push(n)}return v},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(v,E){_.Z("ytpopup_disable_default_html_caching")&&v&&v.removeWhenClosed&&(_.K(this.hostElement).removeChild(v),E&&this.popups_[E]&&delete this.popups_[E])},
shouldReusePopup_:function(v){return!(!v||!v.reusePopup)||!(!v||!v.beReused)},
ensurePopup_:function(v,E){this.maybeCreateNarrowMediaQuery_();var n=_.a5(v.popup,"renderer")||_.a5(v.popup,"dialog")||_.a5(v.popup,"model");if(!n)return _.Gn();n=_.GGE(n,KN0(this.popupContainerConfig,n));return _.Gn(this.getAndMaybeCreatePopup_(v,n,E))},
getAndMaybeCreatePopup_:function(v,E,n){var f=this.createCacheKey(E,v.uniqueId);if(this.popups_[f])return this.popups_[f];v=new $B({openPopupAction:v,target:n,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(E)});return this.popups_[f]=v},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(v){return _.Z("ytpopup_disable_default_html_caching")?v&&v.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",_.uo(this,this.openPopupQueryMatchesChanged_)),_.K(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(v){v=v.detail.value;for(var E in this.popups_)TvC(this.popups_[E],v)},
onPopupIronOverlayClosed_:function(v){var E=v.currentTarget,n=_.kRX(E);n=n.length>0?n[0]:E;if(n.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){v.detail.popup=E;v.detail.popupRenderer=n;var f,x={context:{openingElement:((f=this.popups_[(n==null?void 0:n.is)||""])==null?void 0:f.target)||void 0}};Object.assign(x,v.detail);var y;_.jK((y=n.hostElement)!=null?y:n,"yt-popup-closed",x);E.removeEventListener("yt-refit",_.uo(this,this.refitPopup_));E.removeEventListener("yt-invalidate-popup-tabbables",
_.uo(this,this.handleInvalidatePopupTabbables_));E.removeEventListener("iron-overlay-canceled",_.uo(this,this.onPopupIronOverlayCanceled_));E.removeEventListener("iron-overlay-closed",_.uo(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(E)}},
onPopupIronOverlayCanceled_:function(v,E){var n=v.currentTarget,f=_.kRX(n);f=f.length>0?f[0]:n;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){var x;_.jK((x=f.hostElement)!=null?x:f,"yt-popup-canceled",v.detail);x=E?_.MQ(E):null;(!E||["click","tap"].includes(E.type))&&!n.hasAttribute("force-close-on-outside-click")&&n.positionTarget&&x&&x.includes(n.positionTarget)&&v.preventDefault();n.restoreFocusOnClose=_.Ff.keyboardEventMatchesKeys(E,"esc")}},
onPopupIronOverlayOpened_:function(v){v=v.currentTarget;var E=_.kRX(v);E=E.length>0?E[0]:v;var n,f;_.jK((n=E.hostElement)!=null?n:E,"yt-popup-opened",(f=E.hostElement)!=null?f:E);v.keepBelowPlayer&&(this.ensurePopupBelowPlayer(v,!0),this.dynamicallyPositionedElements_.add(v));n=_.P().resolve(_.jp(_.cT));f=!!E.querySelector("#toast");n&&n.isKeyBoardInUse()&&!f&&(typeof E.focusFirstItem==="function"?E.focusFirstItem():(E=_.nC1(v),E.length&&E[0].focus()));v.removeEventListener("iron-overlay-opened",
_.uo(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(v){v=v.currentTarget;v.refit&&v.refit()},
refitPopups_:function(){for(var v in this.popups_)this.popups_[v].refit()},
handleInvalidatePopupTabbables_:function(v){v=v.currentTarget;v.invalidateTabbables&&v.invalidateTabbables()},
createCacheKey:function(v,E){return _.Z("web_popup_cache_key_killswitch")?E?v+"#"+E:v:E?"#"+E:v},
openSheet:function(v,E){var n=v==null?void 0:v.openPopupActionCommand;!n&&(v==null?0:v.viewModel)&&(n={openPopupAction:{popup:{sheetViewModel:v.viewModel},popupType:"CONTEXTUAL_SHEET"}});n&&this.handleOpenPopupAction(n,E)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var v=this;return _.X(function(E){return E.return(v.handleGetOpenedPopupsAction_().filter(function(n){var f;return((f=n.openPopupAction)==null?void 0:f.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(v,E,n){if(_.Z("web_dialog_utils_killswitch")){var f=v==null?void 0:v.openPopupActionCommand,x=(n==null?0:n.ariaLabel)?{accessibilityData:{accessibilityData:{label:n.ariaLabel}}}:void 0;!f&&(v==null?0:v.viewModel)&&(f={openPopupAction:Object.assign({},{popup:{dialogViewModel:v.viewModel},popupType:(n==null?0:n.isModal)?"MODAL":"DIALOG"},x&&x)});f&&this.handleOpenPopupAction(f,E)}else{if(x=v==null?void 0:v.viewModel){var y=n=n===void 0?{}:n;n=y.ariaLabel;x={popup:{dialogViewModel:x},
popupType:y.isModal?"MODAL":"DIALOG"};y={accessibilityData:{label:n}};n&&(x.accessibilityData=y);x={openPopupAction:x}}else x=void 0;(x=(f=x)!=null?f:v==null?void 0:v.openPopupActionCommand)&&this.handleOpenPopupAction(x,E)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var v=this;return _.X(function(E){return E.return(v.handleGetOpenedPopupsAction_().filter(function(n){var f;return((f=n.openPopupAction)==null?void 0:f.popupType)==="DIALOG"}).length>0)})}}];var E5M;var n56;var o5x=_.jU(["about:blank"]),Lv=function(){var v=_.g.apply(this,arguments)||this;v.isMuted=!1;v.pageLoadTimeoutId=void 0;return v};
_.S(Lv,_.g);_.c=Lv.prototype;_.c.dataChanged=function(){var v=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var E=this.data.url,n=_.b6(E);_.Z("enable_yt_ata_iframe_authuser")?(n=_.b6(E),_.qa(this.iframe,nyx(n))):_.qa(this.iframe,n);this.pageLoadTimeoutId=_.cP(_.Ce(),function(){return void v.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Gj({destination:window,iframe:this.iframe,origin:_.wz1(n.toString()),channelName:"ataiframe",onMessage:_.UF1(A8M,function(f){VHC(f.data)?(f=_.m9(f.data,1,_.aO,_.WV()),f.length!==1?_.li(Error("nl")):(f=f[0],f===3?(v.isMuted=!0,v.logStateChanged({adMuteRequested:!0})):f===1&&v.close())):_.li(Error("ol"))}),
onEstablished:function(){v.cancelPageLoadTimeout();v.logStateChanged({pageLoadSucceeded:!0})}})}};
_.c.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Ce().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.c.logStateChanged=function(v){var E;if((E=this.data)==null?0:E.trackingParams)v={adsClientData:{aboutThisAdData:v}},_.Tl().stateChanged(this.data.trackingParams,v)};
_.c.close=function(){_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
_.c.handlesPopupClosed=function(v,E){var n=this,f,x;return _.X(function(y){if(y.nextAddress==1)return _.MX("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.OL(n.hostElement,"on-about-this-ad-popup-closed",[n.isMuted,E]),y.jumpTo(0)):v&&oyd(v)?_.m(y,f_C(v),4):(n.isMuted&&_.OL(n.hostElement,"yt-mute-ad-action",[n.is,n]),y.jumpTo(0));if(f=y.yieldResult){var Q=x=new _.xF(f),e=n.isMuted;Q.getOptions().includes("onAboutThisAdPopupClosed")?_.Hbg(Q,"onAboutThisAdPopupClosed",{isMuted:e,layoutId:E}):_.$a("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.yQ(y)})};
_.c.onPopupClosed=function(v){var E=this,n,f;return _.X(function(x){n=_.i_(o5x);_.qa(E.iframe,n);E.cancelPageLoadTimeout();if(!E.data)return x.jumpTo(0);E.ytRendererBehavior.markDirty();f=v.detail.context.openingElement;return _.m(x,E.handlesPopupClosed(f,E.data.layoutId),0)})};
_.c.detached=function(){this.cancelPageLoadTimeout()};
_.c.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Lv.prototype.onPopupClosed=Lv.prototype.onPopupClosed;Lv.prototype.dataChanged=Lv.prototype.dataChanged;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.k([_.Wp("#iframe"),_.W("design:type",HTMLIFrameElement)],Lv.prototype,"iframe",void 0);_.k([_.H(),_.W("design:type",Object)],Lv.prototype,"data",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Lv.prototype,"dataChanged",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],Lv.prototype,"onPopupClosed",null);Lv=_.k([_.p5({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Lv);
_.u(Lv,"yt-about-this-ad-renderer",function(){if(n56===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;E5M===void 0&&(E5M=document.createElement("template"));var f=E5M;n.call(E,f.content.cloneNode(!0),v.content.firstChild);n56=v}v=n56;return v},{mode:2});var f5C;var xG6;var GW=function(v){var E=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.maxFileSizeMB=v;Object.setPrototypeOf(this,GW.prototype)};
_.S(GW,Error);var cXO=function(v,E){var n=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=n.message;"stack"in n&&(this.stack=n.stack);this.minWidth=v;this.minHeight=E;Object.setPrototypeOf(this,cXO.prototype)};
_.S(cXO,Error);var yXK=function(v){this.requirements=v;this.JSC$18456_maxFileSize=v.maxFileSizeMB*1024*1024},p03=function(v,E){if(E.size>v.JSC$18456_maxFileSize)throw new GW(v.requirements.maxFileSizeMB);
};var QRK=function(v,E){this.canvas=v;this.imageEditorBuilder=E};
QRK.prototype.addEventListeners=function(v){var E=function(x){X00(v,x)};
this.JSC$18462_mouseDownEvent=E;var n=function(x){e1O(v,x)};
this.JSC$18462_mouseMoveEvent=n;var f=function(){FqK(v)};
this.JSC$18462_mouseUpEvent=f;this.canvas.addEventListener("mousedown",E);this.canvas.addEventListener("mousemove",n);document.addEventListener("mouseup",f)};
QRK.prototype.removeEventListeners=function(){this.JSC$18462_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18462_mouseDownEvent);this.JSC$18462_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18462_mouseMoveEvent);this.JSC$18462_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18462_mouseUpEvent)};
var mGb=function(v,E){v.removeEventListeners();return new Promise(function(n){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var x=v.imageEditorBuilder(v.canvas,f);v.addEventListeners(x);n(x)};
f.src=E})},TW=function(v,E,n,f,x,y,Q,e){this.canvas=v;
this.image=E;this.requiredRatio=n;this.minImageCropDimension=f;this.minOutputImageResolution=x;this.component=y;this.styleFocusedCorner=e===void 0?!0:e;this.action=2;this.focusedCorner=this.resizeCorner=0;v=this.canvas.getContext("2d");if(!v)throw Error("pl");this.ctx=v;this.canvasMargin=Q!=null?Q:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Q=this.image;v=this.canvasInnerWidth/Q.width;Q.height*v>912&&(v=Q.width/Q.height*912/Q.width);Q=v;this.scaledImageWidth=this.canvas.width%2?
cV_(this.image.width*Q):xQx(this.image.width*Q);this.scaledImageHeight=Math.round(this.image.height*Q);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18465_overlayMarginBottom=this.JSC$18465_overlayMarginTop=this.canvasMargin;this.JSC$18465_overlayMarginRight=this.JSC$18465_overlayMarginLeft=this.horizontalMargin;this.JSC$18465_overlayWidth=this.scaledImageWidth;this.JSC$18465_overlayHeight=this.scaledImageHeight;
v=this.image.width/this.image.height;v>this.requiredRatio?(this.JSC$18465_overlayWidth=this.canvas.width%2?cV_(this.scaledImageHeight*this.requiredRatio):xQx(this.scaledImageHeight*this.requiredRatio),this.JSC$18465_overlayMarginRight=this.JSC$18465_overlayMarginLeft=(this.canvas.width-this.JSC$18465_overlayWidth)/2):v<this.requiredRatio&&(this.JSC$18465_overlayHeight=this.canvas.height%2?cV_(this.scaledImageWidth/this.requiredRatio):xQx(this.scaledImageWidth/this.requiredRatio),this.JSC$18465_overlayMarginBottom=
this.JSC$18465_overlayMarginTop=(this.canvas.height-this.JSC$18465_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Q,this.scaledImageWidth);w03(this)};
TW.prototype.getContext=function(){return this.ctx};
var X00=function(v,E){E={x:Math.round(E.pageX-v.canvas.getBoundingClientRect().left),y:Math.round(E.pageY-v.canvas.getBoundingClientRect().top)};v.dragStart=E;baU(v,E)!==0?(v.action=1,l5M(v,E),v.resizeCorner=baU(v,E)):E.x>v.JSC$18465_overlayMarginLeft&&E.x<v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth&&E.y>v.JSC$18465_overlayMarginTop&&E.y<v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight&&(v.action=0)},sRM=function(v,E){switch(E){case 1:return{x:v.JSC$18465_overlayMarginLeft,
y:v.JSC$18465_overlayMarginTop};case 2:return{x:v.JSC$18465_overlayMarginLeft,y:v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight};case 3:return{x:v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth,y:v.JSC$18465_overlayMarginTop};case 4:return{x:v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth,y:v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight};default:throw Error("ql");}},P1C=function(v,E){if(v.focusedCorner!==0){v.dragStart=sRM(v,v.focusedCorner);
v.action=1;v.resizeCorner=v.focusedCorner;var n=v.dragStart.x,f=v.dragStart.y;switch(E){case 0:v.focusedCorner===1||v.focusedCorner===4?(n-=10,f-=10):(n-=10,f+=10);break;case 1:v.focusedCorner===1||v.focusedCorner===4?(n+=10,f+=10):(n+=10,f-=10);break;case 2:n=v.focusedCorner===1||v.focusedCorner===4?n-10:n+10;f-=10;break;case 3:n=v.focusedCorner===1||v.focusedCorner===4?n+10:n-10;f+=10;break;default:throw Error("rl");}rXO(v,{x:n,y:f});w03(v);v.action=2;v.dragStart=void 0}},e1O=function(v,E){E={x:Math.round(E.pageX-
v.canvas.getBoundingClientRect().left),
y:Math.round(E.pageY-v.canvas.getBoundingClientRect().top)};l5M(v,E);switch(v.action){case 1:rXO(v,E);break;case 0:v.dragStart&&(v.JSC$18465_overlayMarginLeft=Math.max(v.horizontalMargin,Math.min(v.JSC$18465_overlayMarginLeft-(v.dragStart.x-E.x),v.horizontalMargin+v.scaledImageWidth-v.JSC$18465_overlayWidth)),v.JSC$18465_overlayMarginRight=v.canvas.width-v.JSC$18465_overlayMarginLeft-v.JSC$18465_overlayWidth,v.JSC$18465_overlayMarginTop=Math.max(v.canvasMargin,Math.min(v.JSC$18465_overlayMarginTop-
(v.dragStart.y-E.y),v.scaledImageHeight-v.JSC$18465_overlayHeight+v.canvasMargin)),v.JSC$18465_overlayMarginBottom=v.canvas.height-(v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight));break;default:return}w03(v);v.dragStart=E},FqK=function(v){v.action=2;
v.dragStart=void 0;document.body.style.cursor="auto"},l5M=function(v,E){switch(baU(v,E)){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:v.action!==1&&(document.body.style.cursor="auto")}},baU=function(v,E){var n=v.JSC$18465_overlayMarginLeft-5,f=v.JSC$18465_overlayMarginTop-5,x=v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth-5;
v=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-5;return a5_(E,{x:n,y:f})?1:a5_(E,{x:x,y:f})?3:a5_(E,{x:n,y:v})?2:a5_(E,{x:x,y:v})?4:0},a5_=function(v,E){return v.x>=E.x&&v.x<=E.x+10&&v.y>=E.y&&v.y<=E.y+10},rXO=function(v,E){if(v.dragStart)switch(v.resizeCorner){case 2:Math.abs((v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth-E.x)/(E.y-v.JSC$18465_overlayMarginTop))>=v.requiredRatio?Za_(v,E.x):C1b(v,E.y);
break;case 1:Math.abs((v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth-E.x)/(v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-E.y))>=v.requiredRatio?MWx(v,E.x):C1b(v,E.y);break;case 4:Math.abs((E.x-v.JSC$18465_overlayMarginLeft)/(E.y-v.JSC$18465_overlayMarginTop))>=v.requiredRatio?Za_(v,E.x):S4O(v,E.y);break;case 3:Math.abs((E.x-v.JSC$18465_overlayMarginLeft)/(v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-E.y))>=v.requiredRatio?MWx(v,E.x):S4O(v,E.y);break;default:throw Error("sl");
}},Za_=function(v,E){var n=v.JSC$18465_overlayMarginTop;
v.JSC$18465_overlayMarginBottom=UGO(v,E);v.JSC$18465_overlayHeight=v.canvas.height-v.JSC$18465_overlayMarginBottom-n;v.JSC$18465_overlayWidth=Math.round(v.JSC$18465_overlayHeight*v.requiredRatio);q4_(v)},MWx=function(v,E){var n=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight;
v.JSC$18465_overlayMarginTop=UGO(v,E);v.JSC$18465_overlayHeight=n-v.JSC$18465_overlayMarginTop;v.JSC$18465_overlayWidth=Math.round(v.JSC$18465_overlayHeight*v.requiredRatio);q4_(v)},q4_=function(v){switch(v.resizeCorner){case 2:case 1:v.JSC$18465_overlayMarginLeft=v.canvas.width-v.JSC$18465_overlayMarginRight-v.JSC$18465_overlayWidth;
break;case 4:case 3:v.JSC$18465_overlayMarginRight=v.canvas.width-v.JSC$18465_overlayMarginLeft-v.JSC$18465_overlayWidth;break;default:throw Error("sl");}},C1b=function(v,E){var n=v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth;
v.JSC$18465_overlayMarginLeft=JXU(v,E);v.JSC$18465_overlayWidth=n-v.JSC$18465_overlayMarginLeft;v.JSC$18465_overlayHeight=Math.round(v.JSC$18465_overlayWidth/v.requiredRatio);Kq_(v)},S4O=function(v,E){var n=v.JSC$18465_overlayMarginLeft;
v.JSC$18465_overlayMarginRight=JXU(v,E);v.JSC$18465_overlayWidth=v.canvas.width-v.JSC$18465_overlayMarginRight-n;v.JSC$18465_overlayHeight=Math.round(v.JSC$18465_overlayWidth/v.requiredRatio);Kq_(v)},Kq_=function(v){switch(v.resizeCorner){case 2:case 4:v.JSC$18465_overlayMarginBottom=v.canvas.height-v.JSC$18465_overlayMarginTop-v.JSC$18465_overlayHeight;
break;case 1:case 3:v.JSC$18465_overlayMarginTop=v.canvas.height-v.JSC$18465_overlayMarginBottom-v.JSC$18465_overlayHeight;break;default:throw Error("sl");}},UGO=function(v,E){switch(v.resizeCorner){case 2:E=v.canvas.height-(v.JSC$18465_overlayMarginTop+dG0(v,E));
break;case 4:E=v.canvas.height-(v.JSC$18465_overlayMarginTop+I5p(v,E));break;case 1:E=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-dG0(v,E);break;case 3:E=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-I5p(v,E);break;default:throw Error("sl");}return Math.max(E,v.canvasMargin)},dG0=function(v,E){E=v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth-Math.max(E,v.horizontalMargin);
E=E<0?v.JSC$18465_overlayWidth:Math.max(E,v.minOverlayWidth);return Math.round(E/v.requiredRatio)},I5p=function(v,E){E=v.canvas.width-Math.max(v.canvas.width-E,v.horizontalMargin)-v.JSC$18465_overlayMarginLeft;
E=E<0?v.JSC$18465_overlayWidth:Math.max(E,v.minOverlayWidth);return Math.round(E/v.requiredRatio)},JXU=function(v,E){switch(v.resizeCorner){case 2:E=v.canvas.width-v.JSC$18465_overlayMarginRight-Y4O(v,E);
break;case 4:E=v.canvas.width-v.JSC$18465_overlayMarginLeft-Y4O(v,E);break;case 1:E=v.canvas.width-v.JSC$18465_overlayMarginRight-h1C(v,E);break;case 3:E=v.canvas.width-v.JSC$18465_overlayMarginLeft-h1C(v,E);break;default:throw Error("sl");}return Math.max(E,v.horizontalMargin)},Y4O=function(v,E){E=v.canvas.height-Math.max(v.canvas.height-E,v.canvasMargin)-v.JSC$18465_overlayMarginTop;
return E<0?v.JSC$18465_overlayWidth:Math.max(Math.round(E*v.requiredRatio),v.minOverlayWidth)},h1C=function(v,E){E=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-Math.max(E,v.canvasMargin);
return E<0?v.JSC$18465_overlayWidth:Math.max(Math.round(E*v.requiredRatio),v.minOverlayWidth)},w03=function(v){v.ctx.clearRect(0,0,v.canvas.width,v.canvas.height);
v.ctx.drawImage(v.image,0,0,v.image.width,v.image.height,v.horizontalMargin,v.canvasMargin,v.canvas.width-2*v.horizontalMargin,v.scaledImageHeight);v.ctx.fillStyle="rgba(0, 0, 0, 0.7)";v.ctx.fillRect(v.horizontalMargin,v.JSC$18465_overlayMarginTop,v.JSC$18465_overlayMarginLeft-v.horizontalMargin,v.JSC$18465_overlayHeight);v.ctx.fillRect(v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth,v.JSC$18465_overlayMarginTop,v.JSC$18465_overlayMarginRight-v.horizontalMargin,v.JSC$18465_overlayHeight);v.ctx.fillRect(v.horizontalMargin,
v.canvasMargin,v.scaledImageWidth,v.JSC$18465_overlayMarginTop-v.canvasMargin);v.ctx.fillRect(v.horizontalMargin,v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight,v.scaledImageWidth,v.JSC$18465_overlayMarginBottom-v.canvasMargin);v.drawOverlay();v.component&&_.jK(v.component,"image-updated")};
TW.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18465_overlayMarginLeft,this.JSC$18465_overlayMarginTop,this.JSC$18465_overlayWidth,this.JSC$18465_overlayHeight);AXC(this)};
var AXC=function(v){var E=v.JSC$18465_overlayMarginLeft-5,n=v.JSC$18465_overlayMarginTop-5,f=v.JSC$18465_overlayMarginLeft+v.JSC$18465_overlayWidth-5,x=v.JSC$18465_overlayMarginTop+v.JSC$18465_overlayHeight-5;v.ctx.fillStyle="#FFF";v.ctx.fillRect(E,n,10,10);v.ctx.strokeRect(E,n,10,10);v.ctx.fillRect(f,n,10,10);v.ctx.strokeRect(f,n,10,10);v.ctx.fillRect(E,x,10,10);v.ctx.strokeRect(E,x,10,10);v.ctx.fillRect(f,x,10,10);v.ctx.strokeRect(f,x,10,10);if(v.focusedCorner!==0&&v.styleFocusedCorner){v.ctx.lineWidth=
4;v.ctx.strokeStyle="#3EA6FF";switch(v.focusedCorner){case 1:--E;--n;break;case 2:--E;n=x-1;break;case 3:E=f-1;--n;break;case 4:E=f-1;n=x-1;break;default:return}v.ctx.strokeRect(E,n,12,12)}};
TW.prototype.crop=function(v,E){E=E===void 0?!0:E;var n=this.image.width/this.scaledImageWidth,f=document.createElement("canvas"),x=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],y=this.JSC$18465_overlayWidth*n,Q=this.JSC$18465_overlayHeight*n;f.width=Math.max(y,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);f.height=Math.max(Q,x);v&&(f.width=Math.min(f.width,f.height),f.height=Math.min(f.width,f.height));
v=f.getContext("2d");if(!v)throw Error("gl");x=(this.JSC$18465_overlayMarginLeft-this.horizontalMargin)*n;n*=this.JSC$18465_overlayMarginTop-this.canvasMargin;E||(v.fillStyle="white",v.fillRect(0,0,f.width,f.height));v.drawImage(this.image,x,n,y,Q,0,0,f.width,f.height);return f};var VWC=function(v,E,n,f,x){TW.call(this,v,E,n,f,void 0,x,8,!1)};
_.S(VWC,TW);VWC.prototype.drawOverlay=function(){var v=this.getContext(),E=this.JSC$18465_overlayWidth,n=this.JSC$18465_overlayHeight,f=this.JSC$18465_overlayMarginTop,x=this.JSC$18465_overlayMarginLeft;v.lineWidth=2;v.strokeStyle="#3EA6FF";v.beginPath();v.arc(x+E/2,f+n/2,E/2,0,2*Math.PI);v.stroke();v.strokeRect(x,f,E,n);AXC(this)};
var DGU={maxFileSizeMB:15,minWidth:98,minHeight:98},HaC=["image/png","image/jpeg","image/gif"],im=function(){var v=_.g.apply(this,arguments)||this;v.fileSelectorFocusListener=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!0;v.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return v};
_.S(im,_.g);_.c=im.prototype;_.c.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.c.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.c.computePlaylistThumbnail=function(v){return v==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.c.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.OL(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.c.setErrorState=function(v){this.resetErrorState();v&&(this.errorMessage=v)};
_.c.showPopup=function(){var v=this;this.hideContainer=!1;_.cP(_.wh,function(){_.jK(v.hostElement,"yt-refit")});
this.isLoading=!1};
_.c.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.c.closePopup=function(){this.resetFileSelector();_.OL(this.hostElement,"yt-close-popup-action",[this.is])};
_.c.onCancelTap=function(){this.isPlaylistThumbnail||_.OL(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.c.openFileSelector=function(){var v=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.cP(_.wh,function(){setTimeout(function(){if(!v.fileSelector.files||v.fileSelector.files.length===0)v.onCancelTap();v.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(E){E instanceof Error?_.mb(E):_.bi(new _.yc(JSON.stringify(E)))}};
_.c.handleFileSelection=function(){var v=this,E,n,f,x,y,Q;return _.X(function(e){switch(e.nextAddress){case 1:_.vW(e,2);if(!v.fileSelector.files||!v.imageEditorCanvas)return v.onCancelTap(),e.return();E=v.fileSelector.files[0];p03(v.imageChecker,E);_.vW(e,4);return _.m(e,Ybp(E),6);case 6:v.mimeType=e.yieldResult;_.qp(e,5,2);break;case 4:_.cW(e,2),_.OL(v.hostElement,"yt-image-selection-error-action",[(n=v.data)==null?void 0:n.genericImageLoadErrorMessage]),v.onCancelTap();case 5:f=new FileReader;f.addEventListener("load",
function(){var F,b;return _.X(function(l){if(l.nextAddress==1){if(!f.result)return _.li(Error("il")),l.return();F=f.result;b=new Image;b.src=F;b.onload=function(){try{var r=v.imageChecker;if(b.width<r.requirements.minWidth||b.height<r.requirements.minHeight)throw new cXO(r.requirements.minWidth,r.requirements.minHeight);}catch(M){if(M instanceof cXO){var a;_.OL(v.hostElement,"yt-image-selection-error-action",[(a=v.data)==null?void 0:a.imageDimensionErrorMessage]);v.logImageDimensionErrorVe()}else M instanceof
Error?_.mb(M):(r=new _.yc(JSON.stringify(M)),_.mb(r));v.onCancelTap()}v.showPopup()};
b.onerror=function(){var r;_.OL(v.hostElement,"yt-image-selection-error-action",[(r=v.data)==null?void 0:r.genericImageLoadErrorMessage]);v.onCancelTap()};
return _.m(l,mGb(v.imageEditorCanvas,F),2)}v.imageEditor=l.yieldResult;v.updatePositionOfAllCorners();v.addEventListeners(v.imageEditor);_.yQ(l)})},!1);
f.readAsDataURL(E);_.qp(e,0);break;case 2:x=_.cW(e),x instanceof GW?_.OL(v.hostElement,"yt-image-selection-error-action",[(y=v.data)==null?void 0:y.imageSizeErrorMessage]):(x instanceof Error?_.mb(x):_.bi(new _.yc(JSON.stringify(x))),_.OL(v.hostElement,"yt-image-selection-error-action",[(Q=v.data)==null?void 0:Q.genericImageLoadErrorMessage])),v.onCancelTap(),_.yQ(e)}})};
_.c.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var v=_.Gl(_.Tl(),{veType:232707,visualElement:_.ci(232707)});v&&(v={visualElement:v},_.L5().reportShown(v))}};
_.c.handleImageSelectionErrorAction=function(v){this.isPlaylistThumbnail&&_.szX(this.hostElement,v)};
_.c.convertToImageFormatBundle=function(v){var E=this,n,f,x;return _.X(function(y){switch(y.nextAddress){case 1:return n=v.toDataURL(E.outputMimeType,1),_.m(y,ho3(n),2);case 2:f=y.yieldResult;_.vW(y,3);p03(E.imageChecker,f);_.qp(y,4);break;case 3:x=_.cW(y);if(!(x instanceof GW))throw x;_.li(new _.yc("Output size is bigger than input size for image",E.mimeType,E.outputMimeType,f.size));n=v.toDataURL("image/jpeg",.95);return _.m(y,ho3(n),6);case 6:f=y.yieldResult;case 4:return y.return({dataUrl:n,imageFile:f})}})};
_.c.handleUploadImageToScottyCommand=function(v){var E=this,n,f,x,y,Q,e,F,b,l,r;return _.X(function(a){switch(a.nextAddress){case 1:if(!E.imageEditor||!_.C(v,zAp))return a.return();n=_.C(v,zAp).scottyUploadUrl;if(!n){var M=new _.yc("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.mb(M);return a.return()}_.vW(a,2);E.setLoadingState();f=E.imageEditor.crop(!1,!1);return _.m(a,E.convertToImageFormatBundle(f),4);case 4:return x=a.yieldResult,_.m(a,dD3(x.imageFile,n),5);case 5:y=
a.yieldResult;((Q=E.data)==null?0:Q.onUploadEndpoint)?(e=E.buildUploadServiceEndpoint(y),E.ytComponentBehavior.resolveCommand(e),F=_.C(e,_.Mb),((b=F)==null?0:b.params)?E.closePopup():E.resetFileSelector()):(_.OL(E.hostElement,"yt-image-updated-action",[x.dataUrl,y]),E.closePopup());_.qp(a,0);break;case 2:l=_.cW(a),E.setErrorState((r=E.data)==null?void 0:r.uploadErrorMessage),l instanceof Error?_.mb(l):(M=new _.yc(JSON.stringify(l)),_.mb(M)),_.yQ(a)}})};
_.c.buildUploadServiceEndpoint=function(v){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",v),this.data.onUploadEndpoint):null};
_.c.dataChanged=function(){var v=this,E;return _.X(function(n){if(n.nextAddress==1){if(!v.data||!v.canvasElement)return n.return();v.data.imageRatio&&v.data.minImageCropWidth||_.bi(new _.yc("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));E=function(f,x){return v.data.imageType==="IMAGE_TYPE_AVATAR"?new VWC(f,x,v.data.imageRatio,[v.data.minImageCropWidth,v.data.minImageCropWidth/v.data.imageRatio],v.hostElement):new TW(f,x,v.data.imageRatio,[v.data.minImageCropWidth,
v.data.minImageCropWidth/v.data.imageRatio],void 0,v.hostElement,8,!1)};
v.imageEditorCanvas=new QRK(v.canvasElement,E);return v.data.url?_.m(n,mGb(v.imageEditorCanvas,v.data.url),3):(v.hideContainer=!0,v.openFileSelector(),n.jumpTo(0))}v.imageEditor=n.yieldResult;v.showPopup();v.addEventListeners(v.imageEditor);_.yQ(n)})};
_.c.addEventListeners=function(v){this.removeEventListeners();var E=function(x){X00(v,x)};
this.JSC$18473_mouseDownEvent=E;var n=function(x){e1O(v,x)};
this.JSC$18473_mouseMoveEvent=n;var f=function(){FqK(v)};
this.JSC$18473_mouseUpEvent=f;this.topLeftCorner.addEventListener("mousedown",E);this.topLeftCorner.addEventListener("mousemove",n);this.topLeftCorner.addEventListener("mouseup",f);this.topRightCorner.addEventListener("mousedown",E);this.topRightCorner.addEventListener("mousemove",n);this.topRightCorner.addEventListener("mouseup",f);this.bottomLeftCorner.addEventListener("mousedown",E);this.bottomLeftCorner.addEventListener("mousemove",n);this.bottomLeftCorner.addEventListener("mouseup",f);this.bottomRightCorner.addEventListener("mousedown",
E);this.bottomRightCorner.addEventListener("mousemove",n);this.bottomRightCorner.addEventListener("mouseup",f)};
_.c.removeEventListeners=function(){this.JSC$18473_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18473_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18473_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18473_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18473_mouseDownEvent));this.JSC$18473_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18473_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18473_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18473_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18473_mouseMoveEvent));this.JSC$18473_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18473_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18473_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18473_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18473_mouseUpEvent))};
_.c.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var v=document.activeElement;v&&v.shadowRoot&&v.shadowRoot.activeElement;)v=v.shadowRoot.activeElement;switch(v){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};
_.c.updatePositionOfCorner=function(v,E){var n=v.y-E.offsetHeight/2+4;E.style.left=v.x-E.offsetWidth/2+16+"px";E.style.top=n+"px"};
_.c.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var v=_.p([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),E=v.next();!E.done;E=v.next()){E=E.value;var n=sRM(this.imageEditor,E.corner);this.updatePositionOfCorner(n,E.div)}};
_.c.onLeft=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(P1C(this.imageEditor,0),this.updatePositionOfAllCorners(),v.preventDefault())};
_.c.onRight=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(P1C(this.imageEditor,1),this.updatePositionOfAllCorners(),v.preventDefault())};
_.c.onUp=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(P1C(this.imageEditor,2),this.updatePositionOfAllCorners(),v.preventDefault())};
_.c.onDown=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(P1C(this.imageEditor,3),this.updatePositionOfAllCorners(),v.preventDefault())};
_.c.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.hK.Object.defineProperties(im.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&HaC.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var v,E,n;((E=this.data)==null?0:E.imageRatio)&&((n=this.data)==null?0:n.minImageCropWidth)?v={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:v=DGU;return new yXK(v)}}});
im.prototype.updatePositionOfAllCorners=im.prototype.updatePositionOfAllCorners;im.prototype.dataChanged=im.prototype.dataChanged;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],im.prototype,"ytComponentBehavior",void 0);_.k([_.h(_.Ff),_.W("design:type",Object)],im.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.Wp("#canvas"),_.W("design:type",HTMLCanvasElement)],im.prototype,"canvasElement",void 0);_.k([_.Wp("#file-selector"),_.W("design:type",HTMLInputElement)],im.prototype,"fileSelector",void 0);_.k([_.Wp("#top-left-corner"),_.W("design:type",HTMLDivElement)],im.prototype,"topLeftCorner",void 0);_.k([_.Wp("#top-right-corner"),_.W("design:type",HTMLDivElement)],im.prototype,"topRightCorner",void 0);
_.k([_.Wp("#bottom-left-corner"),_.W("design:type",HTMLDivElement)],im.prototype,"bottomLeftCorner",void 0);_.k([_.Wp("#bottom-right-corner"),_.W("design:type",HTMLDivElement)],im.prototype,"bottomRightCorner",void 0);_.k([_.H(),_.W("design:type",Object)],im.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],im.prototype,"errorMessage",void 0);_.k([_.H(),_.W("design:type",Object)],im.prototype,"isLoading",void 0);_.k([_.H(),_.W("design:type",Object)],im.prototype,"hideContainer",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.W("design:type",Boolean)],im.prototype,"isPlaylistThumbnail",void 0);_.k([_.Tw("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],im.prototype,"dataChanged",null);_.k([_.jk("image-updated"),_.jk("yt-refit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],im.prototype,"updatePositionOfAllCorners",null);
im=_.k([_.p5({is:"yt-image-editor-renderer",disableElementRegistration:!0})],im);
_.u(im,"yt-image-editor-renderer",function(){if(xG6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;f5C===void 0&&(f5C=document.createElement("template"));var f=f5C;n.call(E,f.content.cloneNode(!0),v.content.firstChild);xG6=v}v=xG6;return v},{mode:2});var g5d;var NuO;var zW=function(){return _.g.apply(this,arguments)||this};
_.S(zW,_.g);zW.prototype.updateMinutesFromBinding=function(v){this.handleMinutesChanged&&this.handleMinutesChanged(v)};
zW.prototype.updateSecondsFromBinding=function(v){this.handleSecondsChanged&&this.handleSecondsChanged(v)};
zW.prototype.updateDescriptionFromBinding=function(v){this.handleDescriptionChanged&&this.handleDescriptionChanged(v)};
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],zW.prototype,"data",void 0);_.k([_.H(),_.W("design:type",String)],zW.prototype,"minutes",void 0);_.k([_.H(),_.W("design:type",String)],zW.prototype,"seconds",void 0);_.k([_.H(),_.W("design:type",String)],zW.prototype,"description",void 0);_.k([_.H(),_.W("design:type",Function)],zW.prototype,"handleMinutesChanged",void 0);
_.k([_.H(),_.W("design:type",Function)],zW.prototype,"handleSecondsChanged",void 0);_.k([_.H(),_.W("design:type",Function)],zW.prototype,"handleDescriptionChanged",void 0);_.k([_.H(),_.W("design:type",Number)],zW.prototype,"characterLimit",void 0);_.k([_.H(),_.W("design:type",Number)],zW.prototype,"textNumRows",void 0);zW=_.k([_.p5({is:"yt-report-details-form-content",disableElementRegistration:!0})],zW);
_.u(zW,"yt-report-details-form-content",function(){if(NuO===void 0){var v=document.createElement("template");_.q(v,'\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>');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;g5d===void 0&&(g5d=document.createElement("template"));var f=g5d;n.call(E,f.content.cloneNode(!0),v.content.firstChild);NuO=v}v=NuO;return v},{mode:2});var uaM;var jRb;var Xe=function(){var v=_.g.apply(this,arguments)||this;v.updateMinutesFromBinding=function(E){v.minutes=E.detail.value};
v.updateSecondsFromBinding=function(E){v.seconds=E.detail.value};
v.updateDescriptionFromBinding=function(E){v.description=E.detail.value};
return v};
_.S(Xe,_.g);_.c=Xe.prototype;_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.c.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"}}}};
_.c.ready=function(){_.K(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.c.onSubmitYtAction=function(v){var E=v.detail;E.actionName==="yt-service-request"&&(E=E.args[1],E.flagEndpoint&&(v.stopPropagation(),this.refireAction(E)))};
_.c.refireAction=function(v){var E={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(E.vss_id=this.vssId);_.$Z(this.hostElement,[v,E]);this.submitDisabled=!0};
_.c.dataChanged=function(){var v=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var E=_.Aq();E&&E.getPlayerPromise().then(function(n){var f=n.getOption("cc","track")||n.getOption("captions","track");f&&(v.vssId=f.vss_id);n=n.getCurrentTime();v.minutes=Math.floor(n/60).toString();v.seconds=(Math.floor(n)%60).toString()})};
_.c.updateSubmitButtonState=function(){var v;((v=this.data)==null?0:v.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==="")};
_.c.onYtServiceRequestCompleted=function(){_.OL(this.hostElement,"yt-close-popup-action")};
_.c.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.hK.Object.defineProperties(Xe.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.textNumRows)||4}}});
Xe.prototype.onYtServiceRequestError=Xe.prototype.onYtServiceRequestError;Xe.prototype.onYtServiceRequestCompleted=Xe.prototype.onYtServiceRequestCompleted;Xe.prototype.updateSubmitButtonState=Xe.prototype.updateSubmitButtonState;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);
_.k([_.H({observer:"dataChanged"}),_.W("design:type",Object)],Xe.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Boolean)],Xe.prototype,"submitDisabled",void 0);_.k([_.H(),_.W("design:type",String)],Xe.prototype,"minutes",void 0);_.k([_.H(),_.W("design:type",String)],Xe.prototype,"seconds",void 0);_.k([_.H(),_.W("design:type",String)],Xe.prototype,"description",void 0);_.k([_.H(),_.W("design:type",String)],Xe.prototype,"vssId",void 0);
_.k([_.H({value:_.MX("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],Xe.prototype,"isMusic",void 0);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Xe.prototype,"characterLimit",null);_.k([_.A("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Xe.prototype,"textNumRows",null);
_.k([_.Tw("minutes","seconds","description","submitDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Xe.prototype,"updateSubmitButtonState",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Xe.prototype,"onYtServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Xe.prototype,"onYtServiceRequestError",null);Xe=_.k([_.p5({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Xe);
_.u(Xe,"yt-report-details-form-renderer",function(){if(jRb===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;uaM===void 0&&(uaM=document.createElement("template"));var f=uaM;n.call(E,f.content.cloneNode(!0),v.content.firstChild);jRb=v}v=jRb;return v});var Oa0;var kix;var WqC;var $G1;var e_=function(){return _.g.apply(this,arguments)||this};
_.S(e_,_.g);
e_.prototype.onCheckedChanged_=function(){if(this.data){var v=_.K(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.OL(this.hostElement,"yt-additional-detail-checkbox-update",[v]):this.data.identifier==="yt-hide-user-checkbox"?_.OL(this.hostElement,"yt-hide-user-checkbox-update",[v]):v&&this.data.enableCommand?_.OL(this.hostElement,"yt-modify-report-form-command",[_.C(this.data.enableCommand,oVp)]):!v&&this.data.disableCommand&&_.OL(this.hostElement,
"yt-modify-report-form-command",[_.C(this.data.enableCommand,oVp)])}};
e_.prototype.onLabelTap_=function(v){v.target.tagName!="A"&&(_.K(this.hostElement).querySelector("#checkbox").checked=!_.K(this.hostElement).querySelector("#checkbox").checked)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],e_.prototype,"data",void 0);e_=_.k([_.p5({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],e_);
_.u(e_,"yt-boolean-form-field-v2-renderer",function(){if($G1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;WqC===void 0&&(WqC=document.createElement("template"));var f=WqC;n.call(E,f.content.cloneNode(!0),v.content.firstChild);$G1=v}v=$G1;return v});var Fe=function(){var v=_.g.apply(this,arguments)||this;v.canShowAdditionalDetailCheckbox=!1;v.canShowCheckbox=!1;v.keepDropdownFocusedAfterSelection=!0;return v};
_.S(Fe,_.g);Fe.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}}}}};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Fe.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],Fe.prototype,"canShowAdditionalDetailCheckbox",void 0);_.k([_.H(),_.W("design:type",Object)],Fe.prototype,"canShowCheckbox",void 0);_.k([_.H(),_.W("design:type",Object)],Fe.prototype,"keepDropdownFocusedAfterSelection",void 0);
Fe=_.k([_.p5({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Fe);
_.u(Fe,"yt-report-form-modal-content",function(){if(kix===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Oa0===void 0&&(Oa0=document.createElement("template"));var f=Oa0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);kix=v}v=kix;return v},{mode:2});var LqO;var GiK;var mQ=function(){var v=_.g.apply(this,arguments)||this;v.submitting=!1;v.submitButtonDisabled=!0;v.command=null;v.canShowCheckbox=!1;v.canShowAdditionalDetailCheckbox=!1;v.canShowNextButton=!1;v.additionalDetailCheckboxChecked=!1;v.refitJob=0;v.keepDropdownFocusedAfterSelection=!0;v.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 v};
_.S(mQ,_.g);_.c=mQ.prototype;_.c.created=function(){this.refitJob=0};
_.c.attached=function(){this.JSC$18496_scroller&&(this.JSC$18496_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18496_scroller.attached&&typeof this.JSC$18496_scroller.attached==="function"&&this.JSC$18496_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.dataChanged=function(v){v&&(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,v.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),v.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.c.onYtPopupOpened=function(){var v=_.Aq();v&&v.getPlayerPromise().then(function(E){E.pauseVideo()})};
_.c.onYtNavigate=function(v){_.C(v.detail.endpoint,_.PyF)&&(v.stopPropagation(),this.hideReportForm=!0)};
_.c.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.c.onYtServiceRequestCompleted=function(v,E){var n=E.actions;if(n){if(n.length===1&&_.C(n[0],_.Tn)){var f;n=((f=_.C(n[0],_.Tn))==null?void 0:f.commands)||[]}f=0;for(var x=n.length;f<x;f++)_.C(n[f],_.rR)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(n[f]))}if(E.data&&(v=this.get("feedbackResponses",E.data)))for(E=0;E<v.length;E++)if(v[E].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.c.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.c._onDescendantIronResize=function(v){v.stopPropagation();return!1};
_.c.handleReportFormEndpointUpdateAction=function(v){if(v.submitEndpoint){var E=this.command=v.submitEndpoint;E=_.C(E,_.xT1);if(E==null?0:E.additionalDetailCheckboxChecked)E.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else v.submitNavigationEndpoint?(this.command=v.submitNavigationEndpoint,this.toggleSubmitButton(!1)):v.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:v.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;v.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",v));this.refit()};
_.c.handleConfirmDialogCloseAction=function(v){v.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.c.submitButtonDisabledChanged=function(){var v=this.hostElement.parentElement;v&&v.invalidateTabbables&&v.invalidateTabbables()};
_.c.handleModifyReportFormCommand=function(v){v=this.get("action",v);v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:v==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:v==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.c.updateDialogStyling=function(){var v,E,n,f,x,y=((x=(v=this.data)==null?void 0:(E=v.optionsSupportedRenderers)==null?void 0:(n=E.optionsRenderer)==null?void 0:(f=n.items)==null?void 0:f.length)!=null?x:0)<=2?0:240;_.NQ(this.hostElement,{"--yt-report-form-modal-renderer-min-width":y+"px"})};
_.c.toggleSubmitButton=function(v){this.submitButtonDisabled=!v;this.submitButtonDisabled=v};
_.c.computeSubmitButtonData=function(v,E){var n={};_.C(E,_.PyF)?n.navigationEndpoint=E:n.command=E||void 0;v&&v.buttonRenderer&&_.sh.extend(n,v.buttonRenderer);return n};
_.c.computeNextButtonData=function(v,E){var n={};if(!v||!v.buttonRenderer)return n;_.sh.extend(n,v.buttonRenderer);if(!E)return n;if(_.C(E,_.PyF))n.navigationEndpoint=rqb(E);else if(n.command=rqb(E),v=_.C(n.command,_.xT1))v.legalCheckboxChecked=!0;return n};
_.c.computeShowNextButton=function(v,E,n){return!!v&&E&&n};
_.c.refit=function(){var v=this;this.refitJob||(this.refitJob=_.wh.addLowPriorityJob(function(){_.jK(v.hostElement,"yt-refit");v.refitJob=0}))};
_.c.handleAdditionalDetailCheckboxUpdateAction=function(v){this.additionalDetailCheckboxChecked=v;_.C(this.command,_.xT1).additionalDetailCheckboxChecked=v};
_.hK.Object.defineProperties(mQ,{template:{configurable:!0,enumerable:!0,get:function(){if(GiK===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;LqO===void 0&&(LqO=document.createElement("template"));var f=LqO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);GiK=v}v=GiK;return v}}});
mQ.prototype.onYtServiceRequestError=mQ.prototype.onYtServiceRequestError;mQ.prototype.onYtServiceRequestCompleted=mQ.prototype.onYtServiceRequestCompleted;mQ.prototype.onYtServiceRequestSent=mQ.prototype.onYtServiceRequestSent;mQ.prototype.onYtNavigate=mQ.prototype.onYtNavigate;mQ.prototype.onYtPopupOpened=mQ.prototype.onYtPopupOpened;_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],mQ.prototype,"openPopupBehavior",void 0);
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],mQ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],mQ.prototype,"eventForwardingBehavior",void 0);_.k([_.h(_.ZT),_.W("design:type",Object)],mQ.prototype,"ironResizableBehavior",void 0);_.k([_.H({observer:"dataChanged"}),_.W("design:type",Object)],mQ.prototype,"data",void 0);
_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"submitting",void 0);_.k([_.H({observer:"submitButtonDisabledChanged"}),_.W("design:type",Object)],mQ.prototype,"submitButtonDisabled",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"command",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],mQ.prototype,"hideReportForm",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"canShowCheckbox",void 0);
_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"canShowNextButton",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"additionalDetailCheckboxChecked",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"refitJob",void 0);_.k([_.H(),_.W("design:type",Object)],mQ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.k([_.Wp("#scroller"),_.W("design:type",Object)],mQ.prototype,"JSC$18496_scroller",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mQ.prototype,"onYtPopupOpened",null);_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mQ.prototype,"onYtNavigate",null);
_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],mQ.prototype,"onYtServiceRequestSent",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],mQ.prototype,"onYtServiceRequestCompleted",null);
_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mQ.prototype,"onYtServiceRequestError",null);mQ=_.k([_.p5({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],mQ);var Tu1;var ia_;var wa=function(){return _.g.apply(this,arguments)||this};
_.S(wa,_.g);_.c=wa.prototype;_.c.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.c.onVisible=function(){if(_.Z("web_ephemeral_actions_focus")){var v,E;(E=_.P().resolve(_.jp(_.Bw)))==null||E.enqueue({label:_.JC((v=this.data)==null?void 0:v.messageTitle),elementToFocus:this.hostElement})}};
_.c.onThumbnailLoaded=function(){_.jK(this.hostElement,"yt-refit")};
_.c.onDismissTap=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.c.computeAlternateIcon=function(v){return v?v==="BACKSTAGE_ARTWORK"?"backstage:artwork":v:null};
_.c.computeFontFamily=function(v){return v==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.c.computeBackgroundStyle=function(v,E){if(v=this.computeBackgroundImage(v,E))if(v=_.AZ(v.thumbnails))return'background-image: url("'+v+'");'};
_.c.computeHasFullHeightImage=function(v){return!(!(v&&v.thumbnails&&v.thumbnails.length>0)||this.modern)};
_.c.isModernStyle=function(v){return v.style==="STYLE_MODERN"};
_.c.computeIcon=function(v,E){if(v&&v.icon)return E?v.iconDark:v.icon};
_.c.computeBackgroundImage=function(v,E){if(v&&v.backgroundImage)return E?v.backgroundImageDark:v.backgroundImage};
_.c.computeLogo=function(v,E){if(v&&v.logo)return E?v.logoDark:v.logo};
_.c.computeShouldShowModernIcon=function(v,E){return v&&!!E};
_.c.getLogoContainerClassName=function(v){return this.logoWithPadding(v)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.c.getLogoImageId=function(v){return this.logoWithPadding(v)?"mealbar-logo-with-padding":"mealbar-logo"};
_.c.logoWithPadding=function(v){var E,n,f;return(v=(E=this.computeLogo(v,this.isDarkTheme))==null?void 0:(n=E.thumbnails)==null?void 0:(f=n[0])==null?void 0:f.height)&&v%31===0?!0:!1};
wa.prototype.onThumbnailLoaded=wa.prototype.onThumbnailLoaded;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.k([_.H({}),_.W("design:type",Object)],wa.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.W("design:type",Boolean)],wa.prototype,"modern",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],wa.prototype,"isDarkTheme",void 0);
_.k([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.W("design:type",Object)],wa.prototype,"icon",void 0);_.k([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.W("design:type",Object)],wa.prototype,"logo",void 0);_.k([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.W("design:type",Object)],wa.prototype,"backgroundStyle",void 0);_.k([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.W("design:type",Object)],wa.prototype,"alternateIcon",void 0);
_.k([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.W("design:type",Boolean)],wa.prototype,"hasFullHeightImage",void 0);_.k([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.W("design:type",Boolean)],wa.prototype,"useYoutubeSans",void 0);_.k([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.W("design:type",Boolean)],wa.prototype,"shouldShowModernIcon",void 0);
_.k([_.jk("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wa.prototype,"onThumbnailLoaded",null);wa=_.k([_.p5({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],wa);
_.u(wa,"yt-mealbar-promo-renderer",function(){if(ia_===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Tu1===void 0&&(Tu1=document.createElement("template"));var f=Tu1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ia_=v}v=ia_;return v},{mode:2});var z10;var R1b;var bZ=function(){return _.g.apply(this,arguments)||this};
_.S(bZ,_.g);_.c=bZ.prototype;_.c.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]]"}}}}}};
_.c.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.acceptButton)};
_.c.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.c.observeImpressionEndpoints_=function(){var v=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;_.$Z(v.hostElement,[E])})};
_.c.onTap_=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
bZ.prototype.observeImpressionEndpoints_=bZ.prototype.observeImpressionEndpoints_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],bZ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],bZ.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],bZ.prototype,"positionType",void 0);_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],bZ.prototype,"hasButtons_",void 0);_.k([_.H({value:function(){return this.onTap_.bind(this)}}),
_.W("design:type",Function)],bZ.prototype,"boundOnTap_",void 0);_.k([_.H({value:{style:"mono-inverse"}}),_.W("design:type",Object)],bZ.prototype,"buttonOverride",void 0);_.k([_.On("data.promoConfig.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bZ.prototype,"observeImpressionEndpoints_",null);bZ=_.k([_.p5({is:"yt-tooltip-renderer",disableElementRegistration:!0})],bZ);
_.u(bZ,"yt-tooltip-renderer",function(){if(R1b===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;z10===void 0&&(z10=document.createElement("template"));var f=z10;n.call(E,f.content.cloneNode(!0),v.content.firstChild);R1b=v}v=R1b;return v},{mode:2});var tWx;var Bu6;var vf0={},Efx=(vf0.WEB_REMIX="music.youtube.com",vf0),lZ=function(){var v=_.g.apply(this,arguments)||this;v.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return v};
_.S(lZ,_.g);_.c=lZ.prototype;_.c.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.created=function(){this.embedHost_=Efx[_.MX("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.c.ready=function(){_.K(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.c.computeEmbedCode_=function(v,E,n,f,x){if(!v)return"";var y=v.videoId,Q=v.fullListId,e=[];v.attributionId&&e.push("si="+v.attributionId);f||e.push("controls=0");n&&Number(E)>0&&e.push("start="+E);Q&&(y="videoseries",e.push("list="+Q));n="https://"+(x?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+y;v.clipId&&(e.push("clip="+v.clipId),e.push("clipt="+v.clipTiming));E=e.length>0?n+"?"+e.join("&amp;"):n;v.encryptedEmbedConfig&&e.push("embed_config="+JSON.stringify({enc:v.encryptedEmbedConfig}));
e=e.length>0?n+"?"+e.join("&amp;"):n;_.Z("web_sharing_embed_preview_killswitch")?_.K(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(e,v.previewWidth||854,v.previewHeight||480):(_.Co(this.videoPreviewContainer),_.K(this.videoPreviewContainer).appendChild(this.buildIframeElement(e)));return this.getEmbedCode_(E,v.width||560,v.height||315)};
_.c.buildIframeElement=function(v){var E=document.createElement("iframe"),n,f;E.width=""+((f=(n=this.data)==null?void 0:n.previewWidth)!=null?f:854);var x,y;E.height=""+((y=(x=this.data)==null?void 0:x.previewHeight)!=null?y:480);_.PrG(E,2,v);E.title="YouTube video player";E.frameBorder="0";E.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";E.referrerPolicy="strict-origin-when-cross-origin";E.allowFullscreen=!0;return E};
_.c.computeIsSquareAspectRatio_=function(v){return v.previewHeight&&v.previewWidth?v.previewHeight==v.previewWidth:!1};
_.c.computeShowEmbedOptions_=function(v){return!!v.enablePrivacyModeOptionLabel||!!v.showPlayerControlsOptionLabel};
_.c.getEmbedCode_=function(v,E,n){return'<iframe width="'+E+'" height="'+n+'" src="'+v+'" 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>'};
_.c.handleSignalActionCopyShareEmbedUrl_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.c.handleSetTimestamp_=function(v){this.startAtTimeStamp_=(this.startAtChecked_=v.isSet)?v.timestamp:0};
_.c.closePanel_=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.c.onEmbedCode_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.c.onYtPopupClosed_=function(){_.Co(_.K(this.hostElement).querySelector("#video-preview"))};
_.c.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.C(this.data.actionButtons[0],_.qb)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.actionButtons[0],_.qb))};
lZ.prototype.onYtPopupClosed_=lZ.prototype.onYtPopupClosed_;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],lZ.prototype,"data",void 0);
_.k([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.W("design:type",String)],lZ.prototype,"embedCode_",void 0);_.k([_.H({value:!0}),_.W("design:type",Boolean)],lZ.prototype,"isPlayerControlsOptionChecked_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],lZ.prototype,"isPrivacyModeOptionChecked_",void 0);_.k([_.H({value:!1,notify:!0}),_.W("design:type",Boolean)],lZ.prototype,"startAtChecked_",void 0);
_.k([_.H({value:0}),_.W("design:type",Number)],lZ.prototype,"startAtTimeStamp_",void 0);_.k([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],lZ.prototype,"isSquareAspectRatio_",void 0);_.k([_.Wp("#video-preview"),_.W("design:type",HTMLElement)],lZ.prototype,"videoPreviewContainer",void 0);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lZ.prototype,"onYtPopupClosed_",null);
lZ=_.k([_.p5({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],lZ);
_.u(lZ,"yt-sharing-embed-renderer",function(){if(Bu6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;tWx===void 0&&(tWx=document.createElement("template"));var f=tWx;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Bu6=v}v=Bu6;return v},{mode:2});var nfC={};
nfC.YtUnlimitedFamilyInterstitialBehavior=[_.GU.YtOpenPopupBehavior,_.N2.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(v){v=_.WUU(_.Sk(v),"yt-button-renderer");return v?v.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(v){this.dialogHistory_.push(v)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var v=this.popFromHistory();if(v){var E={openPopupAction:{popupType:"DIALOG",popup:{}}};E.openPopupAction.popup[v.renderer]=v.data;this.showingPreviousDialog_=!0;this.openPopup(E)}},
handleOpenPopupAction_:function(v){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var E=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(f){return!!v.openPopupAction.popup[f]}),n=this.getElementName_();
E&&this.data&&(this.pushToHistory({renderer:n,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(v){if(v=_.C(v,IOx))this.loading=!0,_.OL(this.hostElement,"yt-open-create-family-dialog",[v,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var v=this.hostElement.nodeName.split("-").slice(1).map(function(E){return""+E[0].toUpperCase()+E.slice(1).toLowerCase()}).join("");
return v[0].toLowerCase()+v.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var ofU;var fw6;var sT=function(){return _.g.apply(this,arguments)||this};
_.S(sT,_.g);_.c=sT.prototype;_.c.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}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.OL(this.hostElement,"yt-register-create-family-dialog");_.K(this.hostElement).querySelector("#thumbnail").onShow()};
_.c.fireOnCloseCommand_=function(){var v;((v=this.data)==null?0:v.onCloseCommand)&&_.LG(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.c.onYtServiceRequestSent_=function(v,E){E&&E.endpoint&&_.C(E.endpoint,_.zn)||(this.loading=!0)};
_.c.onYtServiceRequestCompleted_=function(){var v=this.hostElement.parentElement;v.close&&v.close();this.loading=!1};
_.c.openPopupHandler_=function(v){if(v.detail==this){var E;((E=this.data)==null?0:E.onOpenCommands)&&_.LG(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.c.closePopupHandler_=function(v,E){this.fireOnCloseCommand_();if(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1){var n;((n=this.data)==null?0:n.onDismissCommands)&&_.LG(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.c.dataChanged_=function(){this.loading=!1};
sT.prototype.dataChanged_=sT.prototype.dataChanged_;sT.prototype.closePopupHandler_=sT.prototype.closePopupHandler_;sT.prototype.openPopupHandler_=sT.prototype.openPopupHandler_;sT.prototype.onYtServiceRequestCompleted_=sT.prototype.onYtServiceRequestCompleted_;sT.prototype.onYtServiceRequestSent_=sT.prototype.onYtServiceRequestSent_;_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],sT.prototype,"ytEventForwardingBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(nfC.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],sT.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],sT.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],sT.prototype,"loading",void 0);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],sT.prototype,"onYtServiceRequestSent_",null);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],sT.prototype,"onYtServiceRequestCompleted_",null);
_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],sT.prototype,"openPopupHandler_",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],sT.prototype,"closePopupHandler_",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sT.prototype,"dataChanged_",null);
sT=_.k([_.p5({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],sT);
_.u(sT,"yt-unlimited-family-message-interstitial-renderer",function(){if(fw6===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ofU===void 0&&(ofU=document.createElement("template"));var f=ofU;n.call(E,f.content.cloneNode(!0),v.content.firstChild);fw6=v}v=fw6;return v},{mode:2});var xSM;var cl6;var ra=function(){return _.g.apply(this,arguments)||this};
_.S(ra,_.g);ra.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"}}}};
ra.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(v){v.onShow()});
_.K(this.hostElement).querySelector("#main-thumbnail").onShow()};
ra.prototype.onButtonTap_=function(v){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(v)};
ra.prototype.computeMainThumbnailWidth_=function(v){return v&&v.length!==0?72:96};
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.k([_.h(nfC.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],ra.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],ra.prototype,"data",void 0);
_.k([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.W("design:type",Number)],ra.prototype,"mainThumbnailWidth_",void 0);_.k([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.W("design:type",Function)],ra.prototype,"boundButtonTap_",void 0);ra=_.k([_.p5({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],ra);
_.u(ra,"yt-unlimited-family-profile-interstitial-renderer",function(){if(cl6===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;xSM===void 0&&(xSM=document.createElement("template"));var f=xSM;n.call(E,f.content.cloneNode(!0),v.content.firstChild);cl6=v}v=cl6;return v},{mode:2});var ylR;var pnC;var P9=function(){var v=_.g.apply(this,arguments)||this;v.sliderAriaValueText_=null;v.selectedIndex_=0;v.messages={PAUSE_SLIDER:_.tQ("PAUSE_SLIDER",void 0,"Pause Duration")};return v};
_.S(P9,_.g);_.c=P9.prototype;_.c.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_]]"}}}}}};
_.c.onPopupOpened_=function(v){v.detail==this&&_.Z("enable_premium_voluntary_pause")&&(_.OL(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c.setDialogData=function(v){this.data=v;this.resetSlider_()};
_.c.dataChanged_=function(){this.data&&this.resetSlider_()};
_.c.onSubmitTap_=function(){if(this.data.confirmCommand){var v=this.data.confirmCommand;_.C(v,_.Xsi)&&_.$Z(this.hostElement,[v,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.c.onExitButtonTap_=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.c.closePopupHandler_=function(v,E){(E&&E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.handleOnDismissCommands_()};
_.c.onSliderChange_=function(){this.selectedIndex_=_.K(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.c.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.c.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.c.resetSlider_=function(){if(this.data){var v=this.data.defaultEndOptionIndex||0,E=_.K(this.hostElement).querySelector("#id-pause-slider");if(E.immediateValue<v)for(;E.immediateValue!=v;)E.increment();else if(v<E.immediateValue)for(;E.immediateValue!=v;)E.decrement();this.selectedIndex_=v;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.c.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.LG(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.c.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.LG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.c.onYtServiceRequestSent=function(){this.loading=!0};
_.c.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
P9.prototype.onYtServiceRequestCompleted=P9.prototype.onYtServiceRequestCompleted;P9.prototype.onYtServiceRequestSent=P9.prototype.onYtServiceRequestSent;P9.prototype.closePopupHandler_=P9.prototype.closePopupHandler_;P9.prototype.dataChanged_=P9.prototype.dataChanged_;P9.prototype.onPopupOpened_=P9.prototype.onPopupOpened_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],P9.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],P9.prototype,"loading",void 0);_.k([_.H(),_.W("design:type",Number)],P9.prototype,"selectIndexMax_",void 0);_.k([_.H(),_.W("design:type",Object)],P9.prototype,"selectedData_",void 0);
_.k([_.H(),_.W("design:type",Object)],P9.prototype,"sliderAriaValueText_",void 0);_.k([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.W("design:type",Function)],P9.prototype,"onButtonTap_",void 0);_.k([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.W("design:type",Function)],P9.prototype,"onSecondaryTap_",void 0);_.k([_.H(),_.W("design:type",Object)],P9.prototype,"messages",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P9.prototype,"onPopupOpened_",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"dataChanged_",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P9.prototype,"closePopupHandler_",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],P9.prototype,"onYtServiceRequestSent",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],P9.prototype,"onYtServiceRequestCompleted",null);P9=_.k([_.p5({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],P9);
_.u(P9,"yt-unplugged-pause-membership-dialog-renderer",function(){if(pnC===void 0){var v=document.createElement("template");_.q(v,'\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>');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ylR===void 0&&(ylR=document.createElement("template"));var f=ylR;n.call(E,f.content.cloneNode(!0),v.content.firstChild);pnC=v}v=pnC;return v},{mode:2});var QeP;var XnO;var av=function(){return _.g.apply(this,arguments)||this};
_.S(av,_.g);av.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Fm("vcBalanceRenderer")}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],av.prototype,"data",void 0);av=_.k([_.p5({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],av);
_.u(av,"yt-vc-offer-layout-header-renderer",function(){if(XnO===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;QeP===void 0&&(QeP=document.createElement("template"));var f=QeP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);XnO=v}v=XnO;return v},{mode:2});var ew0;var FSp;var mSP;var wnp;var Zf=function(){return _.g.apply(this,arguments)||this};
_.S(Zf,_.g);Zf.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hK.Object.defineProperties(Zf.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)}}});
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.FJ1.YtTappableItemBehavior),_.W("design:type",Object)],Zf.prototype,"ytTappableItemBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Zf.prototype,"data",void 0);
_.k([_.H({reflectToAttribute:!0}),_.A("data.accessibilityText"),_.W("design:type",String),_.W("design:paramtypes",[])],Zf.prototype,"ariaLabel",null);_.k([_.H({reflectToAttribute:!0}),_.A("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],Zf.prototype,"vcOfferStyle",null);_.k([_.A("data.style","data.titleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Zf.prototype,"showTitleText",null);Zf=_.k([_.p5({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Zf);
_.u(Zf,"yt-vc-offer-renderer",function(){if(wnp===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;mSP===void 0&&(mSP=document.createElement("template"));var f=mSP;n.call(E,f.content.cloneNode(!0),v.content.firstChild);wnp=v}v=wnp;return v},{mode:2});var Cm=function(){return _.g.apply(this,arguments)||this};
_.S(Cm,_.g);Cm.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Cm.prototype,"data",void 0);Cm=_.k([_.p5({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Cm);
_.u(Cm,"yt-vc-offer-layout-renderer",function(){if(FSp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;ew0===void 0&&(ew0=document.createElement("template"));var f=ew0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);FSp=v}v=FSp;return v},{mode:2});var bj_;var lwb;var se1;var rlp;var MN=function(){return _.g.apply(this,arguments)||this};
_.S(MN,_.g);MN.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}}}}}};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],MN.prototype,"data",void 0);MN=_.k([_.p5({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],MN);
_.u(MN,"yt-ypc-offers-modal-top-bar-renderer",function(){if(rlp===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;se1===void 0&&(se1=document.createElement("template"));var f=se1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);rlp=v}v=rlp;return v},{mode:2});var S_=function(){return _.g.apply(this,arguments)||this};
_.S(S_,_.g);S_.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"}}}}};
S_.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
S_.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var v=this.scrollable;v.attached&&typeof v.attached==="function"&&v.attached()};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.Wp("#scrollable"),_.W("design:type",Object)],S_.prototype,"scrollable",void 0);_.k([_.H(),_.W("design:type",Object)],S_.prototype,"data",void 0);S_=_.k([_.p5({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],S_);
_.u(S_,"yt-ypc-offers-modal-renderer",function(){if(lwb===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;bj_===void 0&&(bj_=document.createElement("template"));var f=bj_;n.call(E,f.content.cloneNode(!0),v.content.firstChild);lwb=v}v=lwb;return v},{mode:2});var PbM;var awU;var UT=function(){return _.g.apply(this,arguments)||this};
_.S(UT,_.g);_.c=UT.prototype;_.c.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}}}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.c.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.OL(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.c.onYtPopupOpened_=function(v,E){(E==null?void 0:E.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.LG(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.c.onYtPopupClosed_=function(v,E){this.continueButtonTapped||E&&(E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.data.onDismissCommands&&_.LG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.c.onYtServiceRequestError_=function(v){this.set("showSpinner",!1);_.aN(this.hostElement,v.detail.error.message)};
_.c.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Z("enable_ypc_spinners")?_.OL(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
UT.prototype.onYtServiceRequestError_=UT.prototype.onYtServiceRequestError_;UT.prototype.onYtPopupClosed_=UT.prototype.onYtPopupClosed_;UT.prototype.onYtPopupOpened_=UT.prototype.onYtPopupOpened_;UT.prototype.onYtServiceRequestCompleted_=UT.prototype.onYtServiceRequestCompleted_;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.H(),_.W("design:type",Object)],UT.prototype,"data",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],UT.prototype,"showSpinner",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],UT.prototype,"continueButtonTapped",void 0);_.k([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.W("design:type",Function)],UT.prototype,"bindOnContinueTapped_",void 0);_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UT.prototype,"onYtServiceRequestCompleted_",null);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],UT.prototype,"onYtPopupOpened_",null);
_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],UT.prototype,"onYtPopupClosed_",null);_.k([_.jk("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UT.prototype,"onYtServiceRequestError_",null);UT=_.k([_.p5({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],UT);
_.u(UT,"yt-ypc-upgrade-dialog-renderer",function(){if(awU===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;PbM===void 0&&(PbM=document.createElement("template"));var f=PbM;n.call(E,f.content.cloneNode(!0),v.content.firstChild);awU=v}v=awU;return v},{mode:2});var Zjd;var Cb0;var qN=function(){return _.g.apply(this,arguments)||this};
_.S(qN,_.g);qN.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qN.prototype.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.confirmButton)};
qN.prototype.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],qN.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],qN.prototype,"data",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],qN.prototype,"positionType",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],qN.prototype,"hasButtons_",void 0);_.k([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],qN.prototype,"style_",void 0);qN=_.k([_.p5({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],qN);
_.u(qN,"yt-bubble-hint-renderer",function(){if(Cb0===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;Zjd===void 0&&(Zjd=document.createElement("template"));var f=Zjd;n.call(E,f.content.cloneNode(!0),v.content.firstChild);Cb0=v}v=Cb0;return v},{mode:2});var MqK;var SKO;var JU=function(){var v=_.AK.apply(this,arguments)||this;v.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return v};
_.S(JU,_.AK);_.c=JU.prototype;_.c.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.c.attached=function(){var v=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){v.$.thumbnail.onShow();v.$["header-image"].onShow()})};
_.c.handleCheckBoxUpdateAction_=function(v){this.canShowCheckboxEnabledConfirmButton=v};
_.c.computeUseOverlayForSpinner_=function(v,E){return!!v&&E};
_.c.computeShowSpinner_=function(v,E){return v||!!E};
_.c.fireOnCloseActions_=function(){var v,E=_.p(((v=this.data)==null?void 0:v.onClosedActions)||[]);for(v=E.next();!v.done;v=E.next())this.ytRendererBehavior.resolveCommand(v.value)};
_.c.fireOnOpenCommands_=function(v){var E,n=(E=this.data)==null?void 0:E.onOpenCommands;if(n)for(v.stopImmediatePropagation(),v=_.p(n),E=v.next();!E.done;E=v.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.c.fireOnDismissCommands_=function(v){var E,n=(E=this.data)==null?void 0:E.onDismissCommands;if(n)for(v.stopImmediatePropagation(),v=_.p(n),E=v.next();!E.done;E=v.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.c.openPopupHandler_=function(v){v.detail==this&&this.fireOnOpenCommands_(v)};
_.c.closePopupHandler_=function(v,E){_.kZ(this,"yt-confirm-dialog-close-action",[E]);this.fireOnCloseActions_();(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.fireOnDismissCommands_(v)};
_.c.onHeaderImageChanged_=function(){var v;((v=this.data)==null?0:v.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.c.computeHasHeaderImageWidth_=function(v){return v!=void 0};
_.c.computeHasLoadingMessage=function(v){return!!v};
_.c.onHeaderImageWidthChanged_=function(){var v,E=(v=this.data)==null?void 0:v.headerImageWidth;if(E){if(v=1.25*E*2+E,this.$.main.style.width=v+"px",E=this.$.scroller.firstElementChild)E.style.minWidth=v+"px"}else this.$.main.style.width="100%"};
_.c.onThumbnailChanged_=function(){var v;((v=this.data)==null?0:v.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")};
_.c.onYtNavigate_=function(v){v=_.Sk(v);v instanceof Node&&_.AV(this.$["confirm-button"]).contains(v)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.c.computePrimaryIsCancel_=function(v){return v};
_.c.computeIsCancelButtonHidden_=function(v){return v.skipCancelButton||!v.cancelButton};
_.c.computeIsCheckboxHidden_=function(v){return!v.checkbox};
_.c.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.c.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.c.onYtServiceRequestCompleted_=function(){var v;((v=this.data)==null?0:v.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.hK.Object.defineProperties(JU,{template:{configurable:!0,enumerable:!0,get:function(){if(SKO===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;MqK===void 0&&(MqK=document.createElement("template"));var f=MqK;n.call(E,f.content.cloneNode(!0),v.content.firstChild);SKO=v}v=SKO;return v}}});
JU.prototype.onYtServiceRequestCompleted_=JU.prototype.onYtServiceRequestCompleted_;JU.prototype.onYtServiceRequestSent_=JU.prototype.onYtServiceRequestSent_;JU.prototype.onThumbnailLoaded_=JU.prototype.onThumbnailLoaded_;JU.prototype.onYtNavigate_=JU.prototype.onYtNavigate_;JU.prototype.onThumbnailChanged_=JU.prototype.onThumbnailChanged_;JU.prototype.onHeaderImageWidthChanged_=JU.prototype.onHeaderImageWidthChanged_;JU.prototype.onHeaderImageChanged_=JU.prototype.onHeaderImageChanged_;
JU.prototype.closePopupHandler_=JU.prototype.closePopupHandler_;JU.prototype.openPopupHandler_=JU.prototype.openPopupHandler_;_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],JU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);
_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],JU.prototype,"ytEventForwardingBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],JU.prototype,"data",void 0);_.k([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],JU.prototype,"primaryIsCancel",void 0);_.k([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],JU.prototype,"isCancelButtonHidden",void 0);
_.k([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],JU.prototype,"isCheckboxHidden",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],JU.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.k([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.W("design:type",Boolean)],JU.prototype,"useOverlayForSpinner_",void 0);
_.k([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.W("design:type",Boolean)],JU.prototype,"showSpinner_",void 0);_.k([_.H({value:!1}),_.W("design:type",Boolean)],JU.prototype,"isActionInProgress_",void 0);_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.W("design:type",Boolean)],JU.prototype,"hasHeaderImageWidth_",void 0);
_.k([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.W("design:type",Boolean)],JU.prototype,"hasLoadingMessage",void 0);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],JU.prototype,"openPopupHandler_",null);_.k([_.jk("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],JU.prototype,"closePopupHandler_",null);
_.k([_.On("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JU.prototype,"onHeaderImageChanged_",null);_.k([_.On("data.headerImageWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JU.prototype,"onHeaderImageWidthChanged_",null);_.k([_.On("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JU.prototype,"onThumbnailChanged_",null);
_.k([_.jk("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],JU.prototype,"onYtNavigate_",null);_.k([_.jk("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JU.prototype,"onThumbnailLoaded_",null);_.k([_.jk("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Pi]),_.W("design:returntype")],JU.prototype,"onYtServiceRequestSent_",null);
_.k([_.jk("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Jq]),_.W("design:returntype")],JU.prototype,"onYtServiceRequestCompleted_",null);JU=_.k([_.p5({is:"yt-confirm-dialog-renderer",noInjection:!0})],JU);var USd;var qKx;var Km=function(){return _.g.apply(this,arguments)||this};
_.S(Km,_.g);Km.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Km.prototype.computeConfirmButton_=function(v){var E={text:v.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};v.confirmNavigationEndpoint?E.navigationEndpoint=v.confirmNavigationEndpoint:v.confirmServiceEndpoint&&(E.serviceEndpoint=v.confirmServiceEndpoint);return E};
Km.prototype.computeShowTitle_=function(v){return!(v==null||!v.title)};
_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],Km.prototype,"data",void 0);_.k([_.H({computed:"computeShowTitle_(data)"}),_.W("design:type",Boolean)],Km.prototype,"showTitle",void 0);Km=_.k([_.p5({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Km);
_.u(Km,"yt-fancy-dismissible-dialog-renderer",function(){if(qKx===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;USd===void 0&&(USd=document.createElement("template"));var f=USd;n.call(E,f.content.cloneNode(!0),v.content.firstChild);qKx=v}v=qKx;return v});var JlO;var KS1;var da=function(){var v=_.g.apply(this,arguments)||this;v.spinnerActive=!1;return v};
_.S(da,_.g);da.prototype.created=function(){RL0(2201)};
da.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
da.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
da.prototype.onIronOverlayClosed=da.prototype.onIronOverlayClosed;da.prototype.onIronOverlayOpened=da.prototype.onIronOverlayOpened;_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.Hk),_.W("design:type",Object)],da.prototype,"tpYtIronOverlayBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],da.prototype,"data",void 0);_.k([_.H(),_.W("design:type",Object)],da.prototype,"spinnerActive",void 0);
_.k([_.jk("iron-overlay-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],da.prototype,"onIronOverlayOpened",null);_.k([_.jk("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],da.prototype,"onIronOverlayClosed",null);da=_.k([_.p5({is:"yt-loading-renderer",disableElementRegistration:!0})],da);
_.u(da,"yt-loading-renderer",function(){if(KS1===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;JlO===void 0&&(JlO=document.createElement("template"));var f=JlO;n.call(E,f.content.cloneNode(!0),v.content.firstChild);KS1=v}v=KS1;return v},{mode:2});var dS0;var IwC;var Iv=function(){var v=_.g.apply(this,arguments)||this;v.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);v.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);v.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.S(Iv,_.g);_.c=Iv.prototype;_.c.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.c.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.c.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.c.openPopupHandler_=function(v){v.detail===this.hostElement&&this.hostElement.hidden&&_.OL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.c.onDismissButtonTap_=function(){var v;this.closeOnDismissButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.c.onAcceptButtonTap_=function(){var v;this.closeOnAcceptButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.c.computeHasHeader_=function(v){return!!v.headerBackgroundImage};
_.c.computeLayoutStyle_=function(v){return v};
_.c.computePopupSize_=function(v){return v};
_.c.computeIconType_=function(v){return v.dialogIcon&&v.dialogIcon.iconType?v.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":v.dialogIcon.iconType:""};
_.c.computeIsLogo_=function(v){return!!v.dialogIcon&&!!v.dialogIcon.iconType&&(v.dialogIcon.iconType==="YOUTUBE_LOGO"||v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||v.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.c.computeHasCustomLogo=function(v){return!(v==null||!v.headerForegroundImage)};
_.c.computeCustomLogo=function(v,E){if(v!=null&&v.headerForegroundImage)return v.headerForegroundImageDark?E?v.headerForegroundImageDark:v.headerForegroundImage:v.headerForegroundImage};
_.c.computeHeaderBackgroundImage=function(v,E){if(v!=null&&v.headerBackgroundImage)return E&&(v==null?0:v.headerBackgroundImageDark)?v.headerBackgroundImageDark:v.headerBackgroundImage};
_.c.shouldShowIconContainer=function(v,E){return v&&!E};
_.c.shouldShowNonYouTubeIcon=function(v,E){return!v&&!E};
_.c.getLogoImageId=function(v){var E,n,f;return(v=(E=this.computeCustomLogo(v,this.isDarkTheme))==null?void 0:(n=E.thumbnails)==null?void 0:(f=n[0])==null?void 0:f.height)&&v%31===0?"custom-logo-with-padding":"custom-logo"};
Iv.prototype.openPopupHandler_=Iv.prototype.openPopupHandler_;Iv.prototype.dataChanged_=Iv.prototype.dataChanged_;_.k([_.h(_.gm.YtRendererstamperBehavior),_.W("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.k([_.H(),_.W("design:type",Boolean)],Iv.prototype,"isDarkTheme",void 0);
_.k([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.W("design:type",Object)],Iv.prototype,"customLogo",void 0);_.k([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.W("design:type",Object)],Iv.prototype,"headerBackgroundImage",void 0);_.k([_.H(),_.W("design:type",Object)],Iv.prototype,"data",void 0);_.k([_.H({computed:"computeHasHeader_(data)"}),_.W("design:type",Boolean)],Iv.prototype,"hasHeader",void 0);
_.k([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.W("design:type",Object)],Iv.prototype,"layoutStyle",void 0);_.k([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.W("design:type",Object)],Iv.prototype,"popupSize",void 0);_.k([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Iv.prototype,"hasLogo",void 0);
_.k([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Iv.prototype,"hasCustomLogo",void 0);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Iv.prototype,"dataChanged_",null);_.k([_.jk("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Iv.prototype,"openPopupHandler_",null);
Iv=_.k([_.p5({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Iv);
_.u(Iv,"yt-upsell-dialog-renderer",function(){if(IwC===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;dS0===void 0&&(dS0=document.createElement("template"));var f=dS0;n.call(E,f.content.cloneNode(!0),v.content.firstChild);IwC=v}v=IwC;return v},{mode:2});var YK6=_.qu(function(v){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.w(_.x6,{cond:v.title,then:function(E){return _.w("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},E)}}))},"gg"),hwx=_.qu(function(v){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.w(_.mI,{data:v.closeButton},{buttonViewModel:function(E){return _.w("div",null,_.w(_.C7,{data:E.data}))}}))},"hg"),Alb=_.qu(function(v){var E=
v.data;
return _.w(_.gF,null,_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.w(_.x6,{cond:function(){return!!E().image&&!!E().title},
then:function(){return _.w(_.UZ,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.w(_.x6,{cond:function(){return E().title},
then:function(n){return _.w("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},n)}}),_.w(_.x6,{cond:function(){return E().primaryGenre},
then:function(n){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},n)}}))),_.w(_.x6,{cond:function(){var n=E().description;
return n&&n.length<=150},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return E().description}))}}))},"ig"),VqK=_.qu(function(v){v=v.infoRows;
var E=_.P().resolve(_.aq),n=_.Z("enable_displaying_ppn");return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.w(_.cG,{each:v},function(f){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w(_.x6,{cond:function(){return f.label},
then:function(x){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},x)}}),_.w(_.x6,{cond:function(){return f.attributedLabel},
then:function(x){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.w(_.nh,{text:x,noPreWrap:!0}))}}),_.w(_.x6,{cond:function(){return f.value},
then:function(x){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},x)}}),_.w(_.x6,{cond:function(){return f.attributedValue},
then:function(x){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.w(_.nh,{text:x,noPreWrap:!0}))}}))}),_.w(_.x6,{cond:function(){return n&&E.clientData.has("post_play_nonce")},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},E.getData("post_play_nonce")))}}))},"jg"),DSP=_.qu(function(v){var E=v.data;
return _.w("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.w(YK6,{title:function(){return E().dialogTitle}}),_.w(Alb,{data:E}),_.w(_.x6,{cond:function(){return E().infoRow},
then:function(n){return _.w(VqK,{infoRows:n})}}),_.w(hwx,{closeButton:function(){return E().closeButton}}))},"kg");
DSP.idomCompat=!0;_.Yz(DSP,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;return _.w("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.w(_.UZ,{data:function(){return E().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.w("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.w(_.x6,{cond:function(){var n=E().ytLogo;return n?n.iconType:null},
then:function(n){return _.w(_.B8,{icon:n,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.w("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.w(_.nh,{text:function(){return E().body}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.w(_.nh,{text:function(){return E().verifyStateText}}))),
_.w("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.w("div",null,_.w(_.mI,{data:function(){return E().dismissButton}},{buttonViewModel:_.C7})),_.w("div",null,_.w(_.mI,{data:function(){return E().linkParentButton}},{buttonViewModel:_.C7})))))},"lg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Kt}});var HjR=_.qu(function(v){var E=v.data;return _.w("installment-agreements-view-model",{class:_.W8("ytInstallmentAgreementsViewModelHost")},_.w(_.cG,{each:_.SI(function(){return E().agreements},[])},function(n){return _.w("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.w(_.nh,{text:n.label})),_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.w(_.mI,{data:function(){return n.openButton}},{buttonViewModel:_.C7})))}))},
"mg");
HjR.idomCompat=!0;var gfb=_.qu(function(v){return _.w("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.w(_.nh,{text:function(){return v.data().inviteMessage}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.w(_.nh,{text:function(){return v.data().attributedAccountSectionHeaderText}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.w(_.mI,{data:function(){return v.data().accountAvatar}},{avatarViewModel:_.XK}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.w(_.nh,{text:function(){return v.data().accountName}}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.w(_.nh,{text:function(){return v.data().handle}}))),_.w(_.mI,{data:function(){return v.data().trailingButton}},{buttonViewModel:_.C7})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.w(_.nh,{text:function(){return v.data().termsOfService}})))},"ng");var Ny1=_.qu(function(v){var E=_.p(_.Rj(function(){var t,QE;return((t=v.data().createPlaylistDialogFormSchema)==null?0:(QE=t.initialValues)==null?0:QE.title)?v.data().createPlaylistDialogFormSchema.initialValues.title:""})),n=E.next().value,f=E.next().value;
E=_.p(_.Rj(function(){v.data();return!1}));
var x=E.next().value,y=E.next().value;E=_.p(_.Rj(function(){v.data();return!1}));
var Q=E.next().value,e=E.next().value;E=_.p(_.Rj(function(){var t,QE;return(t=v.data().createPlaylistDialogFormSchema)==null?void 0:(QE=t.initialValues)==null?void 0:QE.visibility}));
var F=E.next().value,b=E.next().value;E=_.p(_.Rj(function(){v.data();return!1}));
var l=E.next().value,r=E.next().value;E=_.p(_.Rj(function(){var t,QE;return(t=v.data().createPlaylistDialogFormSchema)==null?void 0:(QE=t.initialValues)==null?void 0:QE.isCollaborative}));
var a=E.next().value,M=E.next().value,U=_.Ig();_.Xp(function(){var t=U.value.querySelector("textarea");t&&(t.value=n())});
_.l5(function(){var t;_.sc6((t=v.data().createPlaylistDialogFormSchema)==null?void 0:t.id,{onSubmit:function(){var QE=n();var MF=F(),K1=a(),JG=v.data();QE={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:QE,privacyStatus:MF,videoIds:JG.videoIds,sourcePlaylistId:JG.sourcePlaylistId,params:K1?JG.createPlaylistParamsCollaborationEnabled:JG.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.P().resolve(_.OO).resolveCommand(QE)},
isValid:function(){return x()&&!Q()&&!l()}})});
var d=function(t){if(t!==void 0&&(f(t),!x()&&t.length>0&&y(!0),x())){var QE=yV0(v.data());if(QE){var MF=QE.minLength;QE=QE.maxLength;MF&&t.length<MF?e(!0):QE&&t.length>QE?e(!0):e(!1)}}},Y=function(){var t=!(!a()||F()!=="PRIVATE");
r(t)},V=function(t){t!==void 0&&(b(t),Y())},O=function(){if(l())return Qk3(v.data())},T=function(){M(!a());
Y()},L=function(){return{validate:function(t){if(x()){var QE=yV0(v.data());
if(QE){var MF=QE.minLength;QE=QE.translations;if(MF&&t.length<MF)return QE==null?void 0:QE.minLengthErrorMessage}}}}},xX=function(){var t=yV0(v.data()),QE=t==null?void 0:t.maxLength,MF;
t=t==null?void 0:(MF=t.translations)==null?void 0:MF.maxLengthErrorMessage;if(QE&&t)return{maxChars:QE,errorMessage:t}};
return _.w("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.w("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:U},_.w(_.mI,{data:function(){return v.data().playlistTitle}},{textFormFieldViewModel:function(t){return _.w(_.Rx6,{data:t.data,
text:n,onInput:d,validation:L,characterLimit:xX})},
textFieldViewModel:function(t){return _.w(_.zxU,{data:t.data,text:n,onInput:d,validation:L,characterLimit:xX})}})),_.w("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.w(_.mI,{data:function(){return v.data().playlistVisibility}},{dropdownViewModel:function(t){return _.w(_.QPU,{data:t.data,
onSelected:V,error:O})}})),_.w(_.x6,{cond:function(){return!!v.data().playlistCollaborate},
then:function(){return _.w("div",null,_.w(_.mI,{data:function(){return v.data().playlistCollaborate}},{switchListItemViewModel:function(t){return _.w(_.ma,{data:t.data,
onTap:T})}}))}}))},"og");var uzC=_.qu(function(v){var E=_.SI(v.noPadding,!1),n=function(){var x,y;return(y=(x=v.data().logo.accessibilityData)==null?void 0:x.label)!=null?y:""},f={};
return _.w("upsell-view-model",{class:_.W8("ytUpsellViewModelHost",(f.ytUpsellViewModelHostNoPadding=function(){return E()},f))},_.w("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.w(_.x6,{cond:function(){return _.OI(v.data().logo)},
then:function(x){return _.w(_.UZ,{data:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:n})}})),_.w("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.w(_.nh,{text:function(){return v.data().title}})),_.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.w(_.cG,{each:function(){var x;
return(x=v.data().subtitles)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.w(_.nh,{text:x}))})),_.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.w(_.cG,{each:function(){var x;
return(x=v.data().benefitInfos)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.w(_.x6,{cond:function(){return x().info},
then:function(y){return _.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.w(_.B8,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.w(_.nh,{text:y}))}})})),_.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.w(_.cG,{each:function(){var x;
return(x=v.data().legalInfos)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.w(_.nh,{text:x}))})))},"pg");var jeC=_.qu(function(v){var E=v.data;v={};v=(v.ytMiniAppScoreChallengeViewModelScoreRadial=!0,v.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Xpd(),v);return _.w("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.w("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return E().title}),_.w("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return E().subtitle}),_.w("div",{class:_.LR(v)},_.w("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return E().score})),_.w("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return E().prompt}))},"qg");var OjR=function(){this.store=_.Zj();this.formId=""};var kXb=_.qu(function(v){function E(e){if(e&&(e=_.C(e,_.f7)))return Object.assign({},e,{isSelected:y()})}
var n=_.p(_.Rj(function(){var e,F;return(F=(e=_.C(v.data().option,_.f7))==null?void 0:e.isSelected)!=null?F:!1})),f=n.next().value,x=n.next().value,y=f;
_.l5(function(){var e;_.sc6((e=v.data().formSchema)==null?void 0:e.id,{onSubmit:function(){var F=_.P().resolve(_.OO),b=!!v.data().selectedCommand,l=!!v.data().unselectedCommand;if(y()){if(b)var r=v.data().selectedCommand}else l&&(r=v.data().unselectedCommand);r=_.F$(r);E(v.data().option)&&!r?(F="",!b&&l?F="selected ":b&&!l&&(F="unselected "),b=new _.yc("No "+F+"command found for SelectionListItemFormViewModel"),_.mb(b)):r&&F.resolveCommand(r)},
isValid:function(){return!0}})});
var Q=function(){x(!y())};
_.Fp(function(){var e,F,b=(e=v.data())==null?void 0:(F=e.formSchema)==null?void 0:F.id;b&&_.bTx()().delete(b)});
return _.w("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.w("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.w(_.nh,{text:function(){return v.data().paragraph}})),_.w(_.x6,{cond:function(){return E(v.data().option)},
then:function(e){return _.w(_.FZ,{data:e,isCompact:!0,hideSelectionTextChevron:!0,onTap:Q,disableHorizontalPadding:!0})}}))},"rg");var WSO=_.qu(function(v){var E=v.data;var n=v.disablePadding;var f=v.className;var x=_.Ig(),y=function(){return eVM(E().banner,E().assetContainerPaddingStyle)},Q=function(){return eVM(E().imageBanner,E().assetContainerPaddingStyle)},e=function(){return E().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.l5(function(){var F=function(){_.OL(x.value,"yt-refit-popups-action")},b;
(b=x.value)==null||b.addEventListener("image-loaded",F);_.Fp(function(){var l;(l=x.value)==null||l.removeEventListener("image-loaded",F)})});
v={};return _.w("yt-dialog-header-view-model",{el:x,class:_.W8(f,(v.ytDialogHeaderViewModelHost=!0,v.ytDialogHeaderViewModelHostDisablePadding=n,v))},_.w(_.x6,{cond:function(){return E().banner},
then:function(){var F={};return _.w("div",{class:_.W8(f,(F.ytDialogHeaderViewModelBanner=!0,F.ytDialogHeaderViewModelBannerFullBleed=e,F)),style:_.tZ({"max-height":function(){return E().assetContainerMaxHeight?E().assetContainerMaxHeight+"px":""}})},_.w(_.N8,{data:y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.x6,{cond:function(){return E().imageBanner},
then:function(){var F={};return _.w("div",{class:_.W8(f,(F.ytDialogHeaderViewModelBanner=!0,F.ytDialogHeaderViewModelBannerFullBleed=e,F)),style:_.tZ({"max-height":function(){return E().assetContainerMaxHeight!==void 0?E().assetContainerMaxHeight+"px":void 0}})},_.w(_.N8,{data:Q,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.x6,{cond:function(){return E().customAssetContainer},
then:function(F){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.mI,{data:F},{avatarStackViewModel:_.FK}))}}),_.w(_.x6,{cond:function(){return E().customBanner},
then:function(F){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.mI,{data:F},{avatarStackViewModel:_.FK}))}}),_.w(_.x6,{cond:function(){return E().headline},
then:function(F){return _.w("h2",null,_.w(_.nh,{text:F,className:"ytDialogHeaderViewModelText"}))}}))},"sg");
WSO.idomCompat=!0;var $SO=_.qu(function(v){var E=_.r7d(function(){return v.data().formId}),n=E.onSubmit,f=E.isValid;
return _.w("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.w(_.mI,{data:function(){return v.data().panelFooter}},{panelFooterViewModel:function(x){return _.w(_.df,{data:x.data,
disablePadding:!0,disablePrimaryButton:function(){return!f()},
onClickPrimaryButton:function(){n()}})}}))},"tg");var Tyx=_.qu(function(v){var E=_.Ue(v,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),n=E.elRefCallback;v=E.iconWiz;var f=E.assetWiz,x=E.assetType,y=E.titleWiz,Q=E.leadingActionHeaderWiz,e=E.trailingActionHeaderWiz,F=E.headerPosition,b=E.contentWiz,l=E.buttonLayout,r=E.buttonStyle,a=E.primaryButtonWiz,M=E.secondaryButtonWiz,U=E.contentAlignment,d=E.isFullscreen,Y=E.width,V=E.maxHeight,O=E.isHeaderWizDefined,
T=E.headerWiz,L=E.isFooterWizDefined,xX=E.footerWiz;E=_.Ig(function(WI){n==null||n(WI)});
var t=f?function(){return f({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,QE=a?function(){var WI={};
return a({buttonOverrides:function(){return{style:(r==null?void 0:r())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.W8((WI["yt-spec-dialog-layout__dialog-layout-button"]=!0,WI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(l==null?void 0:l())===0||(l==null?void 0:l())===2},WI))})}:void 0,MF=M?function(){var WI={};
return M({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.W8((WI["yt-spec-dialog-layout__dialog-layout-button"]=!0,WI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(l==null?void 0:l())===0||(l==null?void 0:l())===2},WI))})}:void 0,K1=function(){return(!!y||!!Q||!!e)&&F()===0},JG={},$X={},HI={},uE={};
return _.w("dialog-layout",{el:E,class:_.W8((JG["yt-spec-dialog-layout"]=!0,JG["yt-spec-dialog-layout--dialog-layout-fullscreen"]=d,JG["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!d()},JG["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return V()===1},JG["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(x==null?void 0:x())===1},JG)),
style:function(){return(Y==null?void 0:Y())!==void 0?"width: "+Y+"px;":""}},v?_.w("div",{class:_.W8(($X["yt-spec-dialog-layout__dialog-layout-icon"]=!0,$X["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!f&&F()===1},$X["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return U()===1},$X))},_.w(v,null)):null,_.w(_.x6,{cond:O,
then:function(){return T?_.w("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.w(T,null)):null},
else:function(){return _.w(_.gF,null,_.w(_.x6,{cond:K1,then:function(){return _.w(LS1,{contentAlignment:U,LeadingActionHeader:Q,TrailingActionHeader:e,Title:y,isAboveAsset:!!t})}}),t?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.w(t,null)):null)}}),_.w("div",{class:_.W8((HI["yt-spec-dialog-layout__dialog-layout-container"]=!0,HI["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(U==null?void 0:U())===1},HI["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!y&&!T||!!t&&(F==null?void 0:F())===0},HI))},_.w(_.x6,{cond:function(){return y&&!T&&(F==null?void 0:F())===1},
then:function(){return _.w(LS1,{contentAlignment:U,LeadingActionHeader:Q,TrailingActionHeader:e,Title:y,isAboveAsset:!1})}}),b?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.w(b,null))):null,_.w(_.x6,{cond:L,
then:function(){return xX?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.w(xX,null)):null}}),QE||MF?_.w(GXM,{footerClasses:_.W8((uE["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,uE["yt-spec-dialog-layout__dialog-layout-footer"]=!0,uE["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(l==null?void 0:l())===2},uE["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(l==null?void 0:l())===1},uE)),
PrimaryButton:QE,SecondaryButton:MF}):null))},"ug"),LS1=_.qu(function(v){var E=_.Ue(v,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),n=E.contentAlignment,f=E.LeadingActionHeader;v=E.Title;var x=E.TrailingActionHeader,y=E.isAboveAsset,Q=E.enableLeadingActionHeader;E={};return _.w("div",{class:_.W8((E["yt-spec-dialog-layout__dialog-header-container"]=!0,E["yt-spec-dialog-layout__dialog-header"]=!0,E["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=y,E["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(n==null?void 0:n())===1&&Q()},E))},_.w(_.x6,{cond:function(){return Q()},
then:function(){return f?_.w("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.w(f,null)):null}}),v?_.w("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.w(v,null)):null,x?_.w("div",null,_.w(x,null)):null)},"vg"),GXM=_.qu(function(v){var E=v.footerClasses;
var n=v.PrimaryButton;v=v.SecondaryButton;return _.w("div",{class:E},v?_.w(v,null):null,n?_.w(n,null):null)},"wg");var ijO=_.qu(function(v){var E=v.data;return _.w("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.w("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.w(_.mI,{data:function(){return E().avatar}},{avatarViewModel:_.XK})),_.w("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w(_.nh,{text:function(){return E().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"xg");var zwK=_.qu(function(v){var E=v.data;return _.w("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.w("div",{class:"ytAccessConfirmationViewModelContent"},_.w(_.mI,{data:function(){return E().dualAvatar}},{dualAvatarViewModel:function(n){return _.w("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.w(_.RI4,{data:n.data}))}}),_.w("h2",{class:"ytAccessConfirmationViewModelTitle"},_.w(_.nh,{text:function(){return E().title}})),_.w(_.nh,{text:function(){return E().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"yg");var RwP=_.qu(function(v){var E=v.data;var n=void 0;v=_.p(_.t7("",void 0,"O14qgc"));var f=v.next().value,x=v.next().value,y,Q=function(){x("");var b;(b=n)!=null&&b.store.dispatch(_.un({type:"RESET_COMMAND_MAP"}))};
_.l5(function(){n=new OjR;window.addEventListener("yt-popup-closed",Q)});
_.Xp(function(){if(n&&y!==E().formId){var b=n,l=E();l.formId&&(b.formId=l.formId,b.store.dispatch(_.un({type:"SET_CURRENT_FORM_ID",payload:{formId:b.formId}})));y=E().formId}});
_.Fp(function(){window.removeEventListener("yt-popup-closed",Q)});
var e=function(b,l,r){l.key&&r&&l.key!==f()&&(x(l.key),n&&l.command&&n.store.dispatch(_.un({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:r,command:l.command}})))},F=function(){if(_.C(E().content,_.YBP))return!(f==null?0:f())};
return _.w("yt-dialog-view-model",{class:_.W8("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.w(Tyx,{headerWiz:function(){return _.w("span",{skip:!0},_.w(_.mI,{data:function(){return E().header}},{dialogHeaderViewModel:function(b){return _.w(WSO,{data:b.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!E().header},
contentWiz:function(){return _.w("span",{skip:!0},_.w(_.mI,{data:function(){return E().customContent?E().customContent:E().content}},{basicContentViewModel:_.q1M,
createPlaylistDialogFormViewModel:Ny1,collaborativePlaylistInviteMessageViewModel:gfb,miniAppScoreChallengeViewModel:jeC,radioButtonGroupViewModel:function(b){return _.w(_.cOx,{data:b.data,selectedKey:f,onSelected:e})},
selectionListItemFormViewModel:kXb,upsellViewModel:function(b){return _.w(uzC,{data:b.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:ijO,installmentAgreementsViewModel:HjR,accessConfirmationViewModel:zwK,listViewModel:_.U5U}))},
footerWiz:function(){return _.w("span",{skip:!0},_.w(_.mI,{data:function(){return E().footer}},{panelFooterViewModel:function(b){return _.w(_.df,{data:b.data,
disablePadding:!0,disablePrimaryButton:F})},
formPanelFooterViewModel:$SO,formFooterViewModel:function(b){return _.w(_.GaM,{data:b.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!E().footer}}))},"zg");
RwP.idomCompat=!0;_.Yz(RwP,"yt-dialog-view-model",{props:{data:_.Kt},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var tq0=_.qu(function(v){var E=v.data;v={};return _.w("yt-panel-header-view-model",{class:_.W8("yt-panel-header-view-model-wiz",(v["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!E().shouldHideDivider},v["yt-panel-header-view-model-wiz--compact"]=function(){return!!E().subtitle},v))},_.w("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.w(_.x6,{cond:function(){return E().title},
then:function(n){return _.w(_.nh,{text:n,className:"yt-panel-header-view-model-wiz__title"})}}),_.w(_.x6,{cond:function(){return E().subtitle},
then:function(n){return _.w(_.nh,{text:n,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.w("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.w(_.mI,{data:function(){return E().trailingButtons}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Ag");
tq0.idomCompat=!0;var ByR=_.qu(function(v){var E=_.ij(function(y){var Q;if((Q=v.skipContentClick)==null?0:Q.call(v))return!1;v.onContentWrapperClick(y);return!0}),n,f,x;
return _.w("div",{class:_.W8("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return v.isAnimating()?"transform: translateY("+v.currentY()+"px);transition: 0.2s":""}},(n=v.header)==null?void 0:n.call(v),_.w("div",{id:v.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.tZ({"max-height":(0,_.XZ)(v.maxHeightForContentWrapper)}),"on:scroll":b2R(v.onScroll),"on:touchmove":b2R(function(y){return void y.stopPropagation()})},_.w("div",{el:{onRender:v.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":E},(f=v.body)==null?void 0:f.call(v))),(x=v.footer)==null?void 0:x.call(v))},"Bg");
ByR.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var vl_=_.qu(function(v){var E=_.SI(v.leadingLabel),n=_.SI(v.trailingLabel),f=_.SI(v.footerButtonType),x=function(){return E()||n()||v.hasPrimaryButton()||v.hasSecondaryButton()},y={},Q=_.W8("yt-spec-bottom-sheet-layout__primary-button",(y["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return f()===0&&v.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return f()===1&&v.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return f()===2&&v.hasPrimaryButton()},y["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return f()===3&&v.hasPrimaryButton()},y));
y={};var e=_.W8("yt-spec-bottom-sheet-layout__secondary-button",(y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return f()===1&&v.hasSecondaryButton()},y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return f()===2&&v.hasSecondaryButton()},y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return f()===3&&v.hasPrimaryButton()},y));
return _.w(_.x6,{cond:v.hasFooterOverride,then:function(){var F;return _.w(_.gF,null,(F=v.footerOverride)==null?void 0:F.call(v))},
else:function(){return _.w(_.x6,{cond:x,then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.w(_.x6,{cond:function(){return E()||n()},
then:function(){var F={};return _.w("div",{class:_.W8("yt-spec-bottom-sheet-layout__footer-label-wrapper",(F["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!v.hasPrimaryButton()},F))},_.w(_.x6,{cond:E,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},E)}}),_.w(_.x6,{cond:n,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},n)}}))}}),_.w(_.x6,{cond:function(){return v.hasPrimaryButton()||v.hasSecondaryButton()},
then:function(){var F={};return _.w("div",{class:_.W8("yt-spec-bottom-sheet-layout__footer-button-wrapper",(F["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.SKF,F))},_.w(_.x6,{cond:function(){return v.hasSecondaryButton()&&f()!==0},
then:function(){var b;return _.w("div",{class:e},(b=v.secondaryButton)==null?void 0:b.call(v))}}),_.w(_.x6,{cond:v.hasPrimaryButton,
then:function(){var b;return _.w("div",{class:Q},(b=v.primaryButton)==null?void 0:b.call(v))}}))}}))}})}})},"Cg");
vl_.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ElR=_.qu(function(v){var E=_.SI(v.title),n=_.SI(v.subtitle),f=_.ij(function(Q){var e;(e=v.touchstart)==null||e.call(v,Q);return!1}),x=_.ij(function(Q){var e;
(e=v.touchmove)==null||e.call(v,Q);return!1}),y=_.ij(function(Q){var e;
(e=v.touchend)==null||e.call(v,Q);return!1});
return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:v.headerId,"on:touchstart":f,"on:touchmove":x,"on:touchend":y},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.w(_.x6,{cond:v.hasHeaderOverride,then:function(){var Q;return _.w(_.gF,null,(Q=v.headerOverride)==null?void 0:Q.call(v))},
else:function(){var Q={};return _.w("div",{class:_.W8((Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=E,Q))},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.w(_.x6,{cond:E,then:function(){return _.w(_.gF,null,_.w("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},E),_.w(_.x6,{cond:n,then:function(){return _.w("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
n)}}))}})),_.w(_.x6,{cond:function(){return E()&&v.hasActionHeader()},
then:function(){var e;return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(e=v.actionHeader)==null?void 0:e.call(v))}}))}}))},"Dg");
ElR.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.qu(function(v){function E(t){if(!V&&typeof MutationObserver!=="undefined"){var QE={childList:!0};"MutationObserver"in window&&(V=new MutationObserver(n.bind(void 0,t)),V.observe(t,QE))}}
function n(t){typeof V!=="undefined"&&(O["content-wrapper"]===void 0&&(O["content-wrapper"]=t.children[0].clientHeight),M(O["content-wrapper"]),a()>U()||d(a()))}
function f(){r(window.innerHeight);a()>U()||d(a());T.isFullScreen[0]()&&a()>U()?L().dispatch("Snap To Full Screen",{maxHeight:Y()}):L().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function x(t){document.body.style.overscrollBehavior="none";t.preventDefault();L().dispatch("Touch Start",{event:t})}
function y(t){t.preventDefault();L().dispatch("Touch Move",{event:t,contentScrollable:a()>U(),fullContentWrapperHeight:Y(),contentWrapperHeight:U(),contentHeightMap:O,contentWrapperId:"content-wrapper",header:skx(v),footer:skx(v)})}
function Q(){document.body.style.overscrollBehavior="";T.isFullScreen[0]()?T.currentY[0]()>=60?L().dispatch("Snap To Neutral Position",{maxHeight:U()}):L().dispatch("Snap To Full Screen",{maxHeight:Y()}):T.currentY[0]()>=60?e():T.currentY[0]()<=-60&&a()>U()?L().dispatch("Snap To Full Screen",{maxHeight:Y()}):L().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function e(){L().dispatch("Close Sheet",{clientHeight:l(),maxHeight:0});setTimeout(function(){l_b()},250)}
var F=_.p(_.t7(window.innerHeight,void 0,"NWeFS")),b=F.next().value;F=F.next().value;var l=b,r=F;F=_.p(_.t7(0,void 0,"oxfm4"));b=F.next().value;F=F.next().value;var a=b,M=F;F=_.p(_.Rj(function(){var t=skx(v);return.6*l()-FoC(t)-mQU(t)}));
b=F.next().value;F=F.next().value;var U=b,d=F,Y=function(){var t=skx(v);return l()-FoC(t)-mQU(t)-24-24},V=null,O={},T={initialY:_.t7(0,void 0,"cYBE5c"),
currentY:_.t7(0,void 0,"RndqHc"),isAnimating:_.t7(!1,void 0,"vO9DVd"),isFullScreen:_.t7(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Rj(U)},L=function(){var t=null;return function(){if(!t){var QE={initialY:T.initialY[0](),currentY:T.currentY[0](),isAnimating:T.isAnimating[0](),isFullScreen:T.isFullScreen[0](),maxHeightForContentWrapper:T.maxHeightForContentWrapper[0]()};t=wp1(QE)}return t}}();
_.l5(function(){window.addEventListener("resize",f);L().subscribe(function(t){T.initialY[1](t.initialY);T.currentY[1](t.currentY);T.isAnimating[1](t.isAnimating);T.isFullScreen[1](t.isFullScreen);T.maxHeightForContentWrapper[1](t.maxHeightForContentWrapper)})});
_.Fp(function(){window.removeEventListener("resize",f);V&&(V.disconnect(),V=null)});
var xX=_.W8({"bottom-sheet-content-without-icon":function(){var t;return!((t=v.shouldShowIcons)==null?0:t.call(v))}});
return _.w("bottom-sheet-layout",null,_.w(ByR,{contentWrapperId:"content-wrapper",isAnimating:function(){return T.isAnimating[0]()},
currentY:function(){return T.currentY[0]()},
maxHeightForContentWrapper:function(){return T.maxHeightForContentWrapper[0]()},
shouldShowIcons:v.shouldShowIcons,skipContentClick:v.skipContentClick,onScroll:function(){var t=document.getElementById("header-wrapper"),QE=document.getElementById("content-wrapper");if(t&&QE){var MF={};MF=(MF["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,MF["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,MF);t.className=QE.scrollTop>1?_.LR(MF):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:l_b,contentWrapperEl:function(t){E(t);requestAnimationFrame(function(){n(t)})},
header:function(){return _.w(ElR,{touchstart:x,touchmove:y,touchend:Q,title:v.headerTitle,subtitle:v.headerSubtitle,headerId:"header-wrapper",headerOverride:v.headerFn,hasHeaderOverride:v.hasHeaderFn,actionHeader:v.headerActionHeader,hasActionHeader:v.hasHeaderActionHeader})},
footer:function(){return _.w(vl_,{footerButtonType:v.footerButtonType,leadingLabel:v.footerLeadingLabel,trailingLabel:v.footerTrailingLabel,primaryButton:v.footerPrimaryButton,hasPrimaryButton:v.hasFooterPrimaryButton,secondaryButton:v.footerSecondaryButton,hasSecondaryButton:v.hasFooterSecondaryButton,footerOverride:v.footerFn,hasFooterOverride:v.hasFooterFn})},
body:function(){return _.w(_.x6,{cond:v.hasContentFn,then:function(){var t;return _.w("div",{class:xX},(t=v.contentFn)==null?void 0:t.call(v))}})}}))},"Eg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var nl1=_.qu(function(v){var E=_.P().resolve(_.eL),n=_.ij(function(){return void E.closeSheet()});
return _.w("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":n},_.w(_.x6,{cond:function(){return!!v.header},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},v.header())}}),_.w(_.x6,{cond:function(){return!!v.content},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},v.content())}}),_.w(_.x6,{cond:function(){return!!v.footer},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},v.footer())}}))},"Fg");
nl1.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var olx=_.qu(function(v){v=v.data;var E={};return _.w("yt-sheet-view-model",{class:_.W8("yt-sheet-view-model-wiz",(E["yt-sheet-view-model-wiz--contextual"]=!0,E["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.Z("web_disable_backdrop_filter"),E))},_.w(_.x6,{cond:v,then:function(n){return _.w(nl1,{header:function(){return _.w(_.mI,{data:function(){return n().header}},{panelHeaderViewModel:tq0})},
content:function(){return _.w(_.mI,{data:function(){return n().content}},{listViewModel:function(f){return _.w(_.U5U,{data:f.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:uzC,miniAppScoreChallengeViewModel:jeC})},
footer:function(){return _.w(_.mI,{data:function(){return n().footer}},{panelFooterViewModel:_.df})}})}}))},"Gg");
olx.idomCompat=!0;_.Yz(olx,"yt-sheet-view-model",{props:{data:_.Kt}});var xCC=_.qu(function(v){var E=function(){var n;return(n=v.data().enableDebuggingFeatures)!=null?n:!1};
return _.w("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.w(_.cG,{each:function(){var n;return(n=v.data().stickers)!=null?n:[]}},function(n){return _.w(fVK,{data:function(){return n},
debugMode:E})}))},"Hg"),fVK=_.qu(function(v){var E=_.Ue(v,{debugMode:!1}).debugMode,n=_.SI(function(){var F;
return(F=v.data().region)==null?void 0:F.w},0),f=_.SI(function(){var F;
return(F=v.data().region)==null?void 0:F.h},0),x=_.SI(function(){var F;
return(F=v.data().region)==null?void 0:F.x},0),y=_.SI(function(){var F;
return(F=v.data().region)==null?void 0:F.y},0),Q=_.ij(function(){var F=v.data().onTap;
F&&_.lj(F)}),e={};
return _.w("div",{class:_.W8("ytStoriesStickerLayerViewModelSticker",(e.ytStoriesStickerLayerViewModelDebugMode=E,e)),style:_.tZ({width:function(){return 100*n()+"%"},
height:function(){return 100*f()+"%"},
left:function(){return 100*x()+"%"},
top:function(){return 100*y()+"%"},
"flex-direction":function(){return rVx(v.data().flexDirection)},
"justify-content":function(){return Pod(v.data().justifyContent)},
"align-items":function(){return a_6(v.data().alignItems)}}),
"on:click":Q},_.w(_.mI,{data:function(){return v.data().button||v.data().toggleButton}},{buttonViewModel:function(F){return _.w(_.C7,{data:F.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(F){return _.w(_.lS,{data:F.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Ig");var yI_=_.qu(function(v){var E=function(){return v.data()},n=_.SI(function(){return E().backgroundColor},0),f=_.SI(function(){return E().actionButtons},[]),x=_.SI(function(){return E().stickerLayer},{}),y={},Q=function(){var F,b;
return{animationRef:y,animationConfig:{autoplay:!1,loop:!1,path:(b=(F=E().foregroundAnimation)==null?void 0:F.url)!=null?b:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){v.navigateToNextItemOnLottieComplete()}}}},e=function(){var F,b,l,r,a,M,U,d;
return{animationConfig:{autoplay:(M=(F=E().backgroundAnimation)==null?void 0:(b=F.settings)==null?void 0:b.autoplay)!=null?M:!1,loop:(U=(l=E().backgroundAnimation)==null?void 0:(r=l.settings)==null?void 0:r.loop)!=null?U:!1,path:(d=(a=E().backgroundAnimation)==null?void 0:a.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.Xp(function(){if(v.isVisible()){var F;(F=y.lottieEl)==null||F.play()}else{var b;(b=y.lottieEl)==null||b.stop()}});
return _.w("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.tZ({"background-color":function(){return _.Qt(n())+";"}})},_.w("div",{class:"ytStoriesItemViewModelAssetContent"},_.w(_.x6,{cond:function(){return!!E().backgroundAnimation},
then:function(){return _.w(_.$z,{data:e,animationName:function(){return e().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.x6,{cond:function(){return!!E().backgroundImage},
then:function(){return _.w(_.UZ,{data:function(){return E().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.w(_.x6,{cond:function(){return!!E().foregroundAnimation},
then:function(){return _.w(_.$z,{data:Q,animationName:function(){return Q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.x6,{cond:function(){return!!E().foregroundImage},
then:function(){return _.w(_.UZ,{data:function(){return E().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.w("div",{class:"ytStoriesItemViewModelTopShadow"}),_.w(_.mI,{data:function(){return x()}},{storiesStickerLayerViewModel:xCC})),_.w("div",{class:"ytStoriesItemViewModelBottomShadow"},_.w("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.ij(v.pauseAutoNavigation)},_.w(_.cG,{each:f},function(F){return _.w(cI6,{data:function(){return F}})}))))},"Jg"),cI6=_.qu(function(v){var E={};
return _.w("div",{class:_.W8("ytStoriesItemViewModelActionButton",(E.ytStoriesItemViewModelStretchedActionButton=function(){return v.data().size==="STORIES_BUTTON_SIZE_STRETCH"},E))},_.w(_.mI,{data:function(){return v.data().button}},{buttonViewModel:function(n){return _.w(_.C7,{data:n.data,
className:"ytStoriesItemViewModelButton"})}}))},"Kg");_.Yz(_.qu(function(v){var E=_.p(_.Rj(function(){var O;return(O=v.data().startIndex)!=null?O:0})),n=E.next().value,f=E.next().value;
E=_.p(_.t7(!1,void 0,"klmjc"));var x=E.next().value,y=E.next().value,Q=function(){var O;return(O=v.data().storyItems)!=null?O:[]},e=function(){return v.data().dismissButton},F=function(){var O;
return _.C((O=_.C(e(),_.wQ))==null?void 0:O.onTap,_.eg)},b=_.Ig(),l,r=function(){var O;
(O=l)==null||O.cancel();l=a(n()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});l.onfinish=function(){a(n()).style.width="100%";var T=_.C(Q()[n()],er1),L,xX;T!=null&&T.foregroundAnimation&&((T==null?0:(L=T.foregroundAnimation)==null?0:L.url)||(T==null?0:(xX=T.foregroundAnimation)==null?0:xX.payload))||(n()!==Q().length-1?(f(n()+1),r()):F()&&_.mG(F()))}},a=function(O){return b.value.children[O].children[0]},M=function(){for(var O=0;O<n();O++)a(O).style.width="100%"};
E=_.ij(function(){x()?y(!1):(n()===Q().length-1&&F()&&_.mG(F()),a(n()).style.width="100%",n()!==Q().length-1&&(f(n()+1),r()))});
var U=_.ij(function(){x()?y(!1):(a(n()).style.width="0%",n()!==0?f(n()-1):f(n()),r())}),d=function(){y(!0)},Y=function(){a(n()).style.width="100%";
n()!==Q().length-1?(f(n()+1),r()):F()&&_.mG(F())},V=_.ij(function(){var O;
(O=l)==null||O.pause()});
_.Xp(function(){if(x()){var O;(O=l)==null||O.pause()}else{var T;(T=l)==null||T.play()}});
_.Xp(function(){M();n()===v.data().startIndex&&r()});
_.l5(function(){M();r()});
return _.w("yt-stories-viewer-view-model",{class:_.W8("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.w("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.w("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":U,"on:mousedown":V}),_.w("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":E,"on:mousedown":V})),_.w(_.mI,{data:Q},{storiesItemViewModel:function(O,T){var L=O.data;return _.w(_.x6,{cond:function(){return Math.abs(T()-
n())<=1},
then:function(){var xX={};return _.w("div",{class:_.W8("ytStoriesViewerViewModelStoryItem",(xX.ytStoriesViewerViewModelHiddenStoryItem=function(){return T()!==n()},xX))},_.w(yI_,{data:L,
pauseAutoNavigation:d,navigateToNextItemOnLottieComplete:Y,isVisible:function(){return T()===n()}}))}})}}),_.w("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:b},_.w(_.cG,{each:Q},function(){return _.w("div",{class:"ytStoriesViewerViewModelProgressBar"},_.w("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.w("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.w(_.mI,{data:e},{buttonViewModel:_.C7})))},"Lg"),"yt-stories-viewer-view-model",{props:{data:_.Kt}});_.Yz(_.qu(function(v){var E=v.data;var n=_.Ig(),f=[];return _.w("yt-gen-ai-feedback-form-view-model",{el:n,class:"ytGenAiFeedbackFormViewModelHost"},_.w(_.nh,{text:function(){return E().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.w(_.mI,{data:function(){return E().feedbackChips}},{toggleButtonViewModel:function(x){var y=x.data;
return _.w(_.lS,{data:y,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Q){var e=y();e=_.C(e,_.bS);e=_.C(e==null?void 0:e.defaultButtonViewModel,_.wQ).trackingParams;Q?f.push(e):(Q=f.indexOf(e),Q>-1&&f.splice(Q,1))}})}})),_.w(_.nh,{text:function(){return E().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.w(_.mI,{data:function(){return E().submitButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Z2x(n.value,f,E().uniqueId)}})}}),_.w(_.mI,{data:function(){return E().moreFeedbackButton}},{buttonViewModel:function(x){return _.w(_.C7,{data:x.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Mg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Kt},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Yc=function(){return _.g.apply(this,arguments)||this};
_.S(Yc,_.g);Yc.prototype.created=function(){RL0(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Ivd);var v=_.P().resolve(_.y6b);v&&(v.container=this.ytPopupContainerBehavior);if(v=_.P().resolve(_.eL))v.container=this.ytPopupContainerBehavior;if(v=_.P().resolve(_.FQ)){var E=this.ytPopupContainerBehavior;v.containerWasInjected?_.li(Error("bj")):v.container=E}};
Yc.prototype.ensurePopupBelowPlayer=function(v,E){var n=_.P().resolve(_.jp(_.Y_));if(!n||!n.isOnWatch()||!_.Aq())return!1;n=n.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.tC().height>n+this.getPopupHeight(v,E)?(v.style.top="auto",v.style.bottom="0px"):(v.style.top=n+"px",v.style.bottom="auto");return!0};
Yc.prototype.getPopupHeight=function(v,E){E&&(v.cachedPopupHeight=0);if(!v.cachedPopupHeight){E=0;var n=v.clientHeight,f=window.getComputedStyle(v);E+=parseInt(f.marginTop,10);E+=parseInt(f.marginBottom,10);v.cachedPopupHeight=n+E}return v.cachedPopupHeight};
Yc.prototype.getElement=function(v){return document.createElement(v)};
_.k([_.h(v5P.YtPopupContainerBehavior),_.W("design:type",Object)],Yc.prototype,"ytPopupContainerBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Yc.prototype,"ytComponentBehavior",void 0);Yc=_.k([_.N({disableElementRegistration:!0,is:"ytd-popup-container"})],Yc);
_.u(Yc,"ytd-popup-container",function(){if(Wrd!==void 0)return Wrd;var v=document.createElement("template");_.q(v,"\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");v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);return Wrd=v},{mode:1});var poP;var QZd={};QZd.YtLogYpcFlowCommandsBehavior=[_.N2.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(v){_.C(v,dbU)&&(v=_.C(v,dbU))&&(v.serializedTransactionFlowLoggingParams?_.W8L(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.Pt("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.Pt("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=v.serializedYpcPauseFlowLoggingParams)&&
_.Pt("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams?(v=v.serializedYpcRefundFlowLoggingParams)&&O3K("YPC_EVENT_TYPE_START",v):v.serializedYpcDeactivateFlowLoggingParams?(v=v.serializedYpcDeactivateFlowLoggingParams)&&_.Pt("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",v):v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(v=v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Pt("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",v))},
handleLogYpcFlowDismiss_:function(v){_.C(v,KD1)&&(v=_.C(v,KD1),v.serializedTransactionFlowLoggingParams?_.$jI(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.Pt("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.Pt("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=
v.serializedYpcPauseFlowLoggingParams)&&_.Pt("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams&&(v=v.serializedYpcRefundFlowLoggingParams)&&O3K("YPC_EVENT_TYPE_CANCEL",v))}}];var Xo3={};Xo3.YtCancelRecurrenceBehavior=[_.aD.YtComponentBehavior,_.Qm4,{attached:function(){var v=this;VgP(this,function(E,n){return v.ypcCancelRecurrenceHandler(E,n)})},
ypcCancelRecurrenceHandler:function(v,E){var n=this;if(!E||!E.ypcCancelRecurrenceEndpoint)return!1;if(!E.ypcCancelRecurrenceEndpoint.params)return _.UO(Error("tl")),!0;_.gN(this.hostElement);var f=_.Zg.instance,x=_.P().resolve(_.jp(_.n2));f&&_.Ch(f,E)?_.Mq(f,E).then(function(y){n.ypcCancelRecurrenceSuccess_(v,E,{data:y})},function(y){n.ypcCancelRecurrenceFailure_(v,E,y)}).thenCatch(function(){_.UO(Error("ul"))}):x?x.requestDataForServiceEndpoint(E).then(function(y){n.ypcCancelRecurrenceSuccess_(v,
E,y)},function(y){n.ypcCancelRecurrenceFailure_(v,E,y)}).thenCatch(function(){_.UO(Error("ul"))}):_.UO(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(v,E,n){_.No(this.hostElement);n.data||(n={data:n});n.data&&n.data.actions&&_.LG(this.hostElement,n.data.actions,this.hostElement);n.data.messageRenderer?WbK(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(E=E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Pt("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",E);_.jK(v,"yt-service-request-completed",n)},
ypcCancelRecurrenceFailure_:function(v,E,n){_.No(this.hostElement);WbK(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.jK(v,"yt-service-request-error",{error:n,params:[v,E]})}}];var eTd=function(v,E){_.vI.call(this,E)};
_.S(eTd,xlK);var FaK={};FaK.YtCompleteTransactionBehavior=[_.aD.YtComponentBehavior,_.Qm4,{attached:function(){var v=this;VgP(this,function(E,n){return v.ypcCompleteTransactionHandler(E,n)})},
completeTransaction:function(v,E){var n=this;E={payments_payload:window.btoa(E.integratorData),buybucket_params:v.data.buybucketParams,offer_params:v.data.offerParams};var f=_.P().resolve(_.n2),x=v.data.completeTransactionEndpoint,y=this.get("ypcCompleteTransactionEndpoint.actions",x);y&&_.LG(this.hostElement,y,this.hostElement);return(y=_.Zg.instance)&&_.Ch(y,x)?_.Mq(y,x,E).then(function(Q){return!Q||(Q==null?0:Q.error)?(Q=n.get("data.serializedTransactionFlowLoggingParams",v),_.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Q))):{data:Q}}).then(function(Q){return n.handleCompleteTransactionSuccess_(Q,v)},function(){return n.handleCompleteTransactionFailure_(v)}):f.requestDataForServiceEndpoint(x,E).then(function(Q){return n.handleCompleteTransactionSuccess_(Q,v)},function(){return n.handleCompleteTransactionFailure_(v)})},
handleCompleteTransactionSuccess_:function(v,E){v.data||(v={data:v});if(v.data.messageRenderer)return _.nR(new eTd(v.data.messageRenderer));if(v.data.trackingParams){var n=_.lc(),f=_.bc();n&&f&&_.aQ(n,f,_.tx(v.data.trackingParams))}E=this.get("data.serializedTransactionFlowLoggingParams",E);k1R(E);return _.Gn(v)},
handleCompleteTransactionFailure_:function(v){v=this.get("data.serializedTransactionFlowLoggingParams",v);_.Z_("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v);return _.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v))},
ypcCompleteTransactionHandler:function(v,E){var n=this;if(!E.ypcCompleteTransactionEndpoint)return!1;if(!E.ypcCompleteTransactionEndpoint.transactionParams)return _.UO(Error("wl")),!0;E.ypcCompleteTransactionEndpoint&&E.ypcCompleteTransactionEndpoint.gtmData&&_.yB(E.ypcCompleteTransactionEndpoint.gtmData);var f=_.P().resolve(_.jp(_.n2));if(f){_.gN(this.hostElement);var x=_.Zg.instance;x&&_.Ch(x,E)?_.Mq(x,E).then(function(y){return!y||(y==null?0:y.error)?(y=n.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
E),_.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y))):{data:y}}).then(function(y){_.jK(v,"yt-service-request-completed");
n.ypcCompleteTransactionSuccess_(E,y)},function(){return n.ypcCompleteTransactionFailure_(E)}):f.requestDataForServiceEndpoint(E).then(function(y){_.jK(v,"yt-service-request-completed");
n.ypcCompleteTransactionSuccess_(E,y)},function(){return n.ypcCompleteTransactionFailure_(E)})}return!0},
ypcCompleteTransactionSuccess_:function(v,E){_.No(this.hostElement);E.data||(E={data:E});_.OL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);E.data.messageRenderer||E.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(v):(_.yB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",v));E.data.actions&&(v=zHR(E.data.actions),E=RHR(E.data.actions),v.length&&_.$Z(this.hostElement,
v),E.length&&_.LG(this.hostElement,E,this.hostElement))},
ypcCompleteTransactionFailure_:function(v){_.No(this.hostElement);_.OL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",v,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(v,E,n){if(E=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",E))E={serializedTransactionFlowLoggingParams:E},n&&(E.errorType=n),_.eQ(v,E),_.Fu()}}];var mCP={};mCP.YtEndpointHandlerWithYpcBehavior=[_.Qm4,_.N2.YtActionHandlerBehavior,[{openWalletDialog:function(v,E,n,f,x,y,Q){var e=this,F=_.Sw();E=E.replace(/-/g,"+").replace(/_/g,"/");var b=_.Ef().get("hl");_.BaF(_.v_(_.C2),E,F.resolve,x,function(l){y&&y();F.reject(l)},b,function(l){return e.onServerBackendAnalyticEvent_(v,n,l)},this.onDialogClose_.bind(this),f,Q);
return F.promise},
openFixFlowDialog:function(v,E,n,f){v=v.replace(/-/g,"+").replace(/_/g,"/");_.v_(_.C2).openFixFlowDialog(v,E,n,f)},
onDialogClose_:function(){_.OL(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(v,E,n){v.fire("yt-commerce-action-init-done");E&&_.$Z(this.hostElement,[E,{backend_analytics:n}])}}],
_.GU.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(v,E){v=this.get("data.nativeFlowEndpoint",E);E=this.get("data.fallbackEndpoint",E);v?_.$Z(this.hostElement,[v]):E&&_.jK(this.hostElement,"yt-navigate",{endpoint:E})}}],
Xo3.YtCancelRecurrenceBehavior,FaK.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 v=this;VgP(this,function(E,n,f){return v.handleYPCEndpoint(E,n,f)});
this.ypcRegisterActionMapJobId_=_.cP(_.wh,function(){v.registerActionMap(v.buyFlowActionMap_)})},
detached:function(){var v=this;_.wh.cancelJob(this.ypcRegisterActionMapJobId_);_.cP(_.wh,function(){v.unregisterActionMap(v.buyFlowActionMap_)})},
handleYPCEndpoint:function(v,E,n){var f=E.ypcGetCartEndpoint;if(f){_.e7("commerce_transaction");var x=f.gtmId;x&&_.cs(x);(f=f.gtmData)&&_.yB(f)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",E)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(v,E),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",E)!=null?(this.handleYPCFixInstrumentEndpoint_(v,E),!0):E.ypcPauseSubscriptionCommand?(I_x(this.hostElement,v,E,n),
!0):E.ypcResumeSubscriptionCommand?(AV3(this.hostElement,v,E),!0):E.getPaymentInstrumentsParamsCommand?(JVx(this.hostElement,v,E),!0):E.ypcHandleTransactionEndpoint?(UQP(this.hostElement,v,E,n),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(v,E){var n=this;_.FD("ttcr",void 0,"commerce_transaction");E=E.ypcGetCartEndpoint;var f=E.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,x=f.encryptedPurchaseParams,y=f.serializedTransactionFlowLoggingParams,Q=f.serializedPaymentsClientParams,e=this.createGetCartResponseFromParams_(f,E.offerParams,y);this.changeButtonState(v,!0);_.so(this.openWalletDialog(v,x,f.ypcLogWalletAnalyticDataEndpoint,y,function(){n.changeButtonState(v,!1)},function(){n.changeButtonState(v,
!1)},Q).then(function(F){return n.handleBuyFlowCompleteCallback_(v,e,F)},function(){return n.handleOnLoadError(e)}).then(function(F){return void n.handlePostPurchaseSuccess_(v,e,F)},function(F){return void n.handlePostPurchaseError_(F)}),function(){n.changeButtonState(v,!1);
v instanceof Element&&_.jK(v,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(v,E,n){var f=v.completeTransactionEndpoint,x=v.handleTransactionEndpoint;E={data:{offerParams:window.btoa(E),serializedTransactionFlowLoggingParams:n}};x?E.data.handleTransactionEndpoint=x:E.data.completeTransactionEndpoint=f;v.onCartDismissCommand&&(E.data.onCartDismissCommand=v.onCartDismissCommand);return E},
onGetCartServiceRequestCompleted_:function(v,E){var n=this,f=v.target;if(E&&E.data&&E.data.messageRenderer)_.No(this.hostElement),this.handleMessageRenderer_(E.data.messageRenderer),this.changeButtonState(f,!1);else{var x=this.get("data.encryptedPurchaseParams",E),y=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",E),Q=this.get("data.ypcLogWalletAnalyticDataEndpoint",E),e=this.get("data.serializedPaymentsClientParams",E),F=this.getLoggingParams_(E);if(F||x||y)v.stopPropagation(),_.FD("ttcr",
void 0,"commerce_transaction"),x||_.No(this.hostElement),this.changeButtonState(f,!1),y?_.OL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.MX("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:y}}},this]):x&&(this.changeButtonState(f,!0),v=null,v=this.openWalletDialog(f,x,Q,F,function(){_.No(n.hostElement);n.changeButtonState(f,!1)},function(){_.No(n.hostElement);
n.changeButtonState(f,!1)},e),_.so(v.then(function(b){return n.handleBuyFlowCompleteCallback_(f,E,b)},function(){return n.handleOnLoadError(E)}).then(function(b){return n.handlePostPurchaseSuccess_(f,E,b)},function(b){return n.handlePostPurchaseError_(b)}),function(){n.changeButtonState(f,!1);
_.jK(f,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(v,E){E&&E.endpoint&&E.endpoint.ypcGetCartEndpoint&&!E.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)&&_.LG(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)],v.target),_.gN(this.hostElement),this.changeButtonState(v.target,!0))},
onServiceRequestError_:function(v,E){if(E&&E.params&&E.params.length){E=_.p(E.params);for(var n=E.next();!n.done;n=E.next())if((n=n.value)&&n.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",n.ypcGetCartEndpoint)&&_.LG(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",n.ypcGetCartEndpoint)],v.target);_.No(this.hostElement);this.changeButtonState(v.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(v,E,n){var f=n.integratorData;return f==null||f===""||n.error!=null?(f=this.getLoggingParams_(E),String(n.error)==="-1"?(E.data.onCartDismissCommand&&_.LG(this.hostElement,[E.data.onCartDismissCommand],v),_.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f,!0))):_.nR(new L8("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f))):E.data.handleTransactionEndpoint?qnR(this.hostElement,E.data.handleTransactionEndpoint,{payments_payload:f,funds_guarantee_callback_client_data:n.integratorClientCallbackData}):
this.completeTransaction(E,n)},
handlePostPurchaseSuccess_:function(v,E,n){E=n.data;var f=!1,x,y;if(E&&((x=E.command)==null?0:(y=x.commandExecutorCommand)==null?0:y.commands)){var Q,e;x=(Q=E.command)==null?void 0:(e=Q.commandExecutorCommand)==null?void 0:e.commands;for(Q=0;Q<x.length;Q++)if(_.C(x[Q],_.ps1)){f=!0;break}}f||(E&&E.gtmDatas&&E.gtmDatas.length?_.yB(E.gtmDatas[0]):_.yB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));n.data&&n.data.actions&&(E=zHR(n.data.actions),n=RHR(n.data.actions),E.length&&
_.$Z(this.hostElement,E),n.length&&_.LG(this.hostElement,n,v))},
handlePostPurchaseError_:function(v){v&&v.payload&&v.payload.isUserDismiss||_.mb(Error("yl"))},
handleOnLoadError:function(v){v=this.getLoggingParams_(v);return _.nR(new L8("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",v))},
getLoggingParams_:function(v){return this.get("data.serializedTransactionFlowLoggingParams",v)},
handleMessageRenderer_:function(v){var E=_.a5(v,"renderer"),n=_.MX("openPopupConfig");E==="confirmDialogRenderer"&&n&&_.OL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:n.popupTypeMap[E],popup:v}},this])},
handleYPCFixInstrumentEndpoint_:function(v,E){var n=this,f=E.ypcFixInstrumentEndpoint;E=f.encryptedFixInstrumentParameters;this.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(v,!0);this.openFixFlowDialog(E,function(x,y){n.onFixFlowCompleteCallback_(f,x,y)},function(){return n.changeButtonState(v,!1)},function(){n.changeButtonState(v,!1);
n.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(v,E,n){var f=_.JM("payments.business.integration.scenario.FixInstrument");if(E==f.IntegratorCallbackType.ON_COMPLETE){E="FIX_FOP_EVENT_TYPE_CANCEL";var x=null;n.error!=null?n.error!=f.OnCompleteCallbackError.USER_CANCELLED&&(_.LG(this.hostElement,[v.errorAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_FAILURE",x="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.LG(this.hostElement,[v.successAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_SUCCESS");_.LG(this.hostElement,[v.onFinishAction],
this.hostElement);this.logFixFopEvent_(v,E,x)}},
logFixFopEvent_:function(v,E,n){(v=v.serializedFixFopLoggingParams)?(E={eventType:E,serializedFixFopLoggingParams:v},n!=null&&(E.errorType=n),_.eQ("fixFopFlow",E),_.Fu()):_.mb(Error("zl"))},
changeButtonState:function(v,E){_.Z("enable_ypc_spinners")&&v&&(v.is==="yt-button-renderer"||v.is==="ytd-button-renderer")&&(v.disabled=E)}}];var wo_=function(v){this.JSC$28582_clientRoot=v;this.feedbackCollectorActionMap={"yt-help-dialog-requested":DQK,"yt-feedback-dialog-requested":Vkx,"yt-signal-action-help":H2_,"yt-signal-action-send-feedback":gy1,"yt-send-feedback-action":uJ_,"yt-user-feedback-endpoint":jkd};_.Jo(_.qw.getInstance(),this.feedbackCollectorActionMap,this.JSC$28582_clientRoot)},bY_;var lVx=function(v){this.JSC$28587_clientRoot=v;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":O20.bind(null,this.JSC$28587_clientRoot),"yt-signal-action-delete-all-downloads":Wod,"yt-signal-action-delete-download":$QC,"yt-signal-action-delete-playlist-download":GwM,"yt-signal-action-install-pwa":Bnp,"yt-signal-action-refresh-downloads":RVU,"yt-offline-video-endpoint":Eib,"yt-offline-playlist-endpoint":oiC,"yt-update-local-app-setting-command":xuP,"yt-offline-orchestration-action-command":yxd,
"yt-signal-action-undo-delete-download":i2d,"yt-local-watch-history-command":XE3};_.Jo(_.qw.getInstance(),this.downloadManagerActionMap,this.JSC$28587_clientRoot);_.sn.instance=new _.sn},sZC;var hU=function(){var v=_.g.apply(this,arguments)||this;v.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_"};v.remoteApi_=null;return v};
_.S(hU,_.g);_.c=hU.prototype;
_.c.ready=function(){_.Z("polymer_enable_mdx")&&(IQ1({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Z("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Z("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Z("enable_cast_short_lived_lounge_token")}),_.W7("yt-remote-connection-change",this.handleConnectionChange_,this),_.W7("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=gIp())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.c.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.c.handleConnectionChange_=function(v){(this.mdxConnected=v)?(v=A11(),!v&&V7U()&&DxU()&&(v={key:"cast-selector-receiver",name:DxU()}),v=v.name):v=null;this.receiverName=v;_.uU(this.remoteApi_);(this.remoteApi_=gIp())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.c.handleReceiverAvailabilityChange_=function(){var v=hb6();V7U()&&_.vs("yt-remote-cast-available")&&v.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=v.length>0};
_.c.handleRemoteQueueChange_=function(){var v=this.currentVideoId_,E=this.currentListId_,n=Bu(this.remoteApi_);this.currentVideoId_=n.videoId;this.currentListId_=n.listId;this.currentVideoId_&&_.OL(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Z("polymer_enable_mdx_queue")?this.currentListId_:null,v,E])};
_.c.handleAddToQueueAction_=function(v){v=_.C(v,FD3);this.remoteApi_&&(v.videoId?this.remoteApi_.addVideo(v.videoId):v.playlistId&&this.remoteApi_.addPlaylist(v.playlistId))};
_.c.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.c.handleInsertInQueueAction_=function(v){v=_.C(v,mbK);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$17447_insertVideo(v.videoId)};
_.c.handleRemoveFromQueueAction_=function(v){v=_.C(v,wDP);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$17447_removeVideo(v.videoId)};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],hU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H(),_.W("design:type",Object)],hU.prototype,"appId",void 0);_.k([_.H(),_.W("design:type",Boolean)],hU.prototype,"mdxConnected",void 0);_.k([_.H(),_.W("design:type",Boolean)],hU.prototype,"receiverAvailable",void 0);_.k([_.H(),_.W("design:type",Object)],hU.prototype,"receiverName",void 0);_.k([_.H(),_.W("design:type",Object)],hU.prototype,"currentVideoId_",void 0);
_.k([_.H(),_.W("design:type",Object)],hU.prototype,"currentListId_",void 0);hU=_.k([_.p5({is:"yt-mdx-manager",disableElementRegistration:!0})],hU);_.u(hU,"yt-mdx-manager",void 0,{mode:2});var rI1;var PBU;var AU=function(){var v=_.g.apply(this,arguments)||this;v.APP_IDS={ytr:3,ytm:5};v.JSC$18684_timeoutId_=0;v.actionMap={"yt-open-create-family-dialog":"open"};return v};
_.S(AU,_.g);_.c=AU.prototype;_.c.created=function(){RL0(2200)};
_.c.detached=function(){this.observer_&&this.observer_.disconnect()};
_.c.open=function(v,E){var n=this,f=v.serializedYpcFamilyCreateLoggingParams;this.JSC$18684_timeoutId_=setTimeout(this.abort_.bind(this,v.postFlowErrorEndpoint,f),3E4);E&&(this.onReadyCallback_=E);var x=_.K(this.hostElement).querySelector("#unicorn-iframe");f&&f&&jgd("ypcFamilyCreateFlowStarted",f);_.dTE("family_creation",function(){var y=_.JM("gapi.family_creation.render");_.JM("gapi.config.update")("iframes/family_creation/url",n.getFamilyCreationUrlWithUnicornParams_());var Q=3;v.appId&&v.appId in
n.APP_IDS&&(Q=n.APP_IDS[v.appId]);Q={authUser:_.MX("SESSION_INDEX")||0,clientId:Q,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.MX("HL"),initialflow:[4,5,6,7],m:n.isMobile?1:0,onFlowComplete:n.onUnicornFlowComplete_.bind(n,v.postFlowSuccessEndpoint,f),onError:n.onUnicornFlowError_.bind(n,v.postFlowErrorEndpoint,f),onReady:n.onUnicornFlowReady_.bind(n,v.referencePcidParams)};y(x,Q)})};
_.c.close=function(){_.K(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.c.onUnicornFlowComplete_=function(v,E){this.close();E&&E&&jgd("ypcFamilyCreateFlowSucceeded",E);_.jK(this.hostElement,"yt-navigate",{endpoint:v})};
_.c.onUnicornFlowError_=function(v,E){this.close();E&&jgd("ypcFamilyCreateFlowCancelled",E);_.jK(this.hostElement,"yt-navigate",{endpoint:v})};
_.c.onUnicornFlowReady_=function(v){var E=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();v&&_.JM("gapi.family_creation.setConfig")(0,v);this.observer_=new MutationObserver(function(){_.K(E.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.K(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.K(this.hostElement).querySelector("#dialog").open()};
_.c.getFamilyCreationUrlWithUnicornParams_=function(){return _.MX("YTR_FAMILY_CREATION_URL")};
_.c.getCurrentUrl_=function(){return document.location.href};
_.c.abort_=function(v,E){this.clearTimeout_();this.onUnicornFlowError_(v,E)};
_.c.clearTimeout_=function(){clearTimeout(this.JSC$18684_timeoutId_)};
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],AU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],AU.prototype,"isMobile",void 0);_.k([_.H(),_.W("design:type",Object)],AU.prototype,"onReadyCallback_",void 0);_.k([_.H(),_.W("design:type",Object)],AU.prototype,"observer_",void 0);AU=_.k([_.p5({is:"yt-create-family-dialog",disableElementRegistration:!0})],AU);
_.u(AU,"yt-create-family-dialog",function(){if(PBU===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);var E=v.content,n=E.insertBefore;rI1===void 0&&(rI1=document.createElement("template"));var f=rI1;n.call(E,f.content.cloneNode(!0),v.content.firstChild);PBU=v}v=PBU;return v},{mode:2});var aVK;var ZYO;var V_=function(){var v=_.g.apply(this,arguments)||this;v.STEP=1;v.BLOCK_ON=80;v.MIN_PROGESS=0;v.MAX_PROGESS=100;return v};
_.S(V_,_.g);_.c=V_.prototype;_.c.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.c.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));_.P().addProvider({provide:m3x,useValue:this})};
_.c.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.c.finish=function(){var v=this;this.progress=this.MAX_PROGESS;eLd(function(){v.progress==v.MAX_PROGESS&&(v.hostElement.hidden=!0)})};
_.c.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.hK.Object.defineProperties(V_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(v){this.progress_=v;var E="scaleX("+v/this.MAX_PROGESS+")",n=_.K(this.hostElement).querySelector("#progress").style;n.transform=E;n.webkitTransform=E;this.hostElement.setAttribute("aria-valuenow",String(v))},
get:function(){return this.progress_}}});
_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);V_=_.k([_.p5({is:"yt-page-navigation-progress",disableElementRegistration:!0})],V_);
_.u(V_,"yt-page-navigation-progress",function(){if(ZYO===void 0){var v=document.createElement("template");_.q(v,'\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');v.content.insertBefore(_.R().content.cloneNode(!0),
v.content.firstChild);var E=v.content,n=E.insertBefore;aVK===void 0&&(aVK=document.createElement("template"));var f=aVK;n.call(E,f.content.cloneNode(!0),v.content.firstChild);ZYO=v}v=ZYO;return v},{mode:2});var CBU={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"},M3C={"font-size":"12px","font-style":"italic"},SDU={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.b50=function(){return _.X(function(v){_.yQ(v)})};_.Yz(_.qu(function(){var v=_.mc(_.CtE);return _.w("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var E;return(E=v())==null?void 0:E.announcement})},"Ng"),"yt-ephemeral-actions");var AxM=new Map;var a$P=function(v,E){var n=this;this.handleError=v;this.logEventInternal=E;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){n.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
a$P.prototype.logError=function(v){this.handleError(v)};
a$P.prototype.logEvent=function(v,E){switch(v){case "IDB_DATA_CORRUPTED":_.Z("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",E);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",E);break;case "IS_SUPPORTED_COMPLETED":_.Z("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",E);break;case "QUOTA_EXCEEDED":UC0(this,E);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",E);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":v=Object.assign({},E,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",v)}};
var UC0=function(v,E){_.E9.getInstance().estimate().then(function(n){n=Object.assign({},E,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Dud(n==null?void 0:n.usage),deviceStorageQuotaMbytes:Dud(n==null?void 0:n.quota)});v.logEventInternal("idbQuotaExceeded",n)})};var Df=function(){var v=_.g.apply(this,arguments)||this;v.tabGesturesIsActive=!1;v.deprecateFullerscreenUi=_.Z("web_watch_fullerscreen_deprecation_ui");v.hasDelegation=!1;v.darkerDarkTheme=_.Z("web_darker_dark_theme");v.isFrostedGlassInitialized=!1;v.frostedGlassExp=_.Z("web_frosted_glass");v.mastheadHiddenFocusWithinKillswitch=_.Z("web_masthead_hidden_focus_within_killswitch");v.ephemeralActionsEnabled=_.Z("web_ephemeral_actions");v.scrollAtTop=!0;v.guideScrollTop=0;v.isTheaterModeSession=_.Sp("START_IN_THEATER_MODE");
v.iMaxTheaterMode=_.Z("web_watch_imax_theater_mode");v.isFullWindowSession=_.Sp("START_IN_FULL_WINDOW_MODE");v.hasCreateFamilyDialog=!1;v.mastheadHeight=56;v.networkStatusManager=new _.q1;v.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"};v.dynamicActionMap={"yt-run-attestation-command":function(E){var n=_.WV1.instance,f=_.C(E,_.H9F);return f?_.Z("use_rta_manager_for_async")&&
x1M()?jjC(n,f,E.clickTrackingParams):u$_(n,f,E.clickTrackingParams):_.nR(Error("li"))}};
v.isFrostedGlassDisabled=!1;v.isChannelOrPlaylistPage=!1;return v};
_.S(Df,_.g);_.c=Df.prototype;_.c.created=function(){var v=_.P();_.Z("kevlar_clear_duplicate_pref_cookie")&&_.cP(_.wh,function(){var E=_.nE.get("PREF");E&&!/f\d=/.test(E)&&(E=_.$6("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=E?"PREF=null;domain="+E+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Z("gzip_gel_with_worker")&&_.uq1();_.Z("jspb_serialize_with_worker")&&I$x();_.Z("web_worker_availability_check")&&VI6();_.Z("nwl_init_killswitch")||Ki6().then(function(){_.wh.addLowPriorityJob(OHx)});
this.pageManagerAttachedPromise=_.Sw();this.ytdAppBehavior.loadDepsPromise=_.lg([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.ka(this.onThrottledScroll,200,this);_.Z("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);ZZ_();fkx=!!_.JM("ytappsettings.initialized");ox=_.JM("ytappsettings.previousValue");Z3R=_.JM("ytappsettings.previousSnapshotTime");fkx||(fkx=!0,Ci3());TjO();iHR();_.Ck("DEFERRED_DETACH",
_.Z("kevlar_tuner_should_defer_detach"));_.Ck("REUSE_COMPONENTS",!0);_.Ck("STAMPER_STABLE_LIST",!0);_.Ck("SCHEDULED_LAZY_LIST",!0);_.Ck("openPopupConfig",d36);_.Ck("useClickHandler",!0);_.Z("kevlar_shell_cleanup")&&_.wh.addLowPriorityJob(XPR.bind(this,_.n1.caches));_.Sp("IS_SHELL_LOAD")&&_.XD({shellStartupDurationMs:Math.round((0,_.gd)()-_.xs())});PzU(this.networkStatusManager);_.Z("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",F$C(CBU)),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!",
F$C(M3C)),console.log("%cVisit http://go/join-youtube-web to apply today.",F$C(SDU)));_.Zp0(v.resolve(_.Rt),1E3)};
_.c.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var v=jY1();v&&!_.Z("external_fullscreen_killswitch")&&document.addEventListener(v,this.setFullscreen.bind(this));(v=window.matchMedia("(prefers-color-scheme: dark)"))&&v.addEventListener&&v.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.c.attached=function(){var v=this;_.qs().processSignal("ci");_.Z("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.PEl?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Qw(_.zuE(),"SUCCESS");this.updateIconSet();_.NA(this.guideInnerContent,!1);_.R6().initVisibilityObserver();this.guideService.guideElement=this.guide;var E=document.createElement("ytd-miniplayer"),n=_.K(this.hostElement).querySelector("#content");
_.K(this.hostElement).insertBefore(E,n);_.qs().processSignal("ma");_.P().resolve(_.hf).init(E);_.Sp("IS_SHELL_LOAD")&&(n=document.createElement("ytd-network-status-banner"),_.K(this.hostElement).insertBefore(n,E));_.Z("kevlar_right_click_on_lockups")&&_.V$._onCaptureClick&&document.addEventListener("contextmenu",_.V$._onCaptureClick.bind(_.V$),!0);var f=function(){var x=_.VB("yt-page-navigation-progress");_.K(v.hostElement).appendChild(x)};
setTimeout(function(){_.qs().parkOrScheduleJob(f,0,"eocs",16)},0);
_.Z("service_worker_push_enabled")&&_.cP(_.wh,uu3);_.Jo(_.qw.getInstance(),this.dynamicActionMap,this.hostElement);_.jK(this.hostElement,"ytd-app-attached");_.qs().processSignal("aa");o$M(this.hostElement);_.Vc("gapi.load",_.dTE);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.cP(_.wh,
function(){var x=document.createElement("ytd-video-preview");_.K(_.K(v.hostElement).querySelector("#video-preview")).appendChild(x)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.cP(_.wh,function(){ljd();v.registerViewTransitionTasks()});
if(_.lo()&&this.isAppDarkTheme()!==_.wn())this.onDarkModeToggledAction();else E=_.bo()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==E&&(_.Z("enable_dark_theme_only_on_shorts")?_.mo(_.Z("enable_dark_theme_only_on_shorts_control")?window.location.href:_.AM(window.location.href,{theme:"dark"})):_.li(new _.yc("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(AdM=new hz6(this.hostElement)),sZC=new lVx(this.hostElement),bY_=new wo_(this.hostElement),Bo0=new tG0(this.hostElement)};
_.c.getThemeSettingsToLog=function(){var v=_.bo()==="USER_INTERFACE_THEME_DARK";v=_.lo()?_.wn()?"os-dark":"os-light":v?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:v,cookiesEnabled:_.fE()}};
_.c.detached=function(){_.uc(this.guideInnerContent);_.wh.cancelJob(tp);tp=0;_.wh.cancelJob(ve);ve=0;_.ni1(n$K);n$K.length=0;Bhd=_.SpE=null;_.R6().dispose();_.Z("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.K3(_.qw.getInstance(),AdM.playlistHandlerActionMap,AdM.JSC$28283_clientRoot);_.K3(_.qw.getInstance(),sZC.downloadManagerActionMap,sZC.JSC$28587_clientRoot);_.K3(_.qw.getInstance(),bY_.feedbackCollectorActionMap,bY_.JSC$28582_clientRoot);
for(var v=_.p(Bo0.eventListeners),E=v.next();!E.done;E=v.next()){var n=_.p(E.value);E=n.next().value;n=n.next().value;n=_.p(n);for(var f=n.next();!f.done;f=n.next()){var x=_.p(f.value);f=x.next().value;x=x.next().value;E.removeEventListener(f,x)}}_.K3(_.qw.getInstance(),Bo0.autonavPauseActionMap,Bo0.JSC$17632_clientRoot)};
_.c.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Ef().getFlag(186)};
_.c.computeIsInlinePreviewEnabled=function(v,E,n){return!n&&_.s0_({miniplayerIsActive:v,miniplayerPlaybackState:E})};
_.c.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.un({type:"SET_FROSTED_GLASS_MODE",payload:!_.Z("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"}))};
_.c.computeIsFrostedGlassDisabled=function(v,E,n,f){return v||E||n||f&&_.Z("web_frosted_glass_disable_watch")};
_.c.computeIsHomePage=function(v,E){if(!v||E==null||!E.endpoint)return!1;var n;return((n=_.C(E.endpoint,_.ix))==null?void 0:n.browseId)==="FEwhat_to_watch"};
_.c.updateIsChannelOrPlaylistPage=function(){if(_.Z("web_frosted_glass")){var v,E,n=(E=(v=_.P().resolve(_.jp(_.Y_)))==null?void 0:v.getCurrentPage())==null?void 0:E.pageSubtype;this.isChannelOrPlaylistPage=n?["channel","channels","playlist"].includes(n):!1}};
_.c.scheduleFrostedGlassInitialization=function(){var v=this;_.Z("web_frosted_glass")&&_.qs().parkOrScheduleJob(function(){v.isFrostedGlassInitialized=!0},0,_.Zh(["eocs",
"cr"]),300)};
_.c.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.fKi(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.un({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.un({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.c.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(TWp(!0))};
_.c.onYtSignalActionRequestPersistentStorage=function(){if(!_.Z("request_persistent_storage_killswitch")){var v=_.P().resolve(_.ZlR);v.cachedPersistStatePromise||(v.cachedPersistStatePromise=Fc3())}};
_.c.handleYtChannelCreationFormEndpoints=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.c.handleShowEngagementPanelEndpoint=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.c.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(TWp(!1))};
_.c.initIconDefs=function(v,E,n){var f=document.createElement("iron-iconset-svg");f.name=v;v=document.createElementNS("http://www.w3.org/2000/svg","svg");f.appendChild(v);v.appendChild(E);if(n)for(var x in n)f[x]=n[x];document.body.appendChild(f);return f};
_.c.onWindowResized=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var v=_.eao.getInstance();v.documentWidth_=document.body.clientWidth;mdx(v)};
_.c.onWindowScrolled=function(){var v=_.P().resolve(_.Y_).getCurrentPage();if(v!=null&&v.getScrollTop){var E=this.ytdReduxBehavior,n=E.dispatch;v=v.getScrollTop()<=0;n.call(E,_.un({type:"SET_SCROLL_AT_TOP",payload:v}))}};
_.c.guideIsVisibleButNotPersistentSelectorChanged=function(){var v=_.P().resolve(_.Y_).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=v.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"),
v.setScrollTop(this.guideScrollTop));_.kZ(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.c.getCurrentPageScrollableElementType=function(){var v=_.P().resolve(_.Y_).getCurrentPage();if(v&&v.getPageScrollingElement())return v.getPageScrollingElement().nodeName};
_.c.observeGuideVisibility=function(){var v=_.eao.getInstance(),E=this.miniGuideVisible;v.guidePersistentAndVisible_=this.guidePersistentAndVisible;v.miniGuideVisible_=E;mdx(v)};
_.c.handleEduDismissAction=function(v){v&&v.eduDismissAction&&(_.OL(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.ckP.getInstance(),_.uH.set(v.eduDismissAction.key+"-dismissed",!0))};
_.c.handleEduImpressionAction=function(v){if(v&&v.eduImpressionAction){var E=_.ckP.getInstance();v=v.eduImpressionAction.key;E.JSC$10790_eduDisplayedThisLoad_[_.xUP[v].setKey||v]=!0;_.uH.set(v+"-impression",parseInt(_.uH.get(v+"-impression")||0,10)+1)}};
_.c.onYtSignalActionConfirmMentionsEdu=function(){_.OL(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.ko.getInstance();_.Ol.set("edu-dismissed",!0)};
_.c.onYtSignalActionRecordMentionsEduImpression=function(){_.ko.getInstance();var v=_.Ol.set,E=parseInt(_.Ol.get("edu-impressions"),10);v.call(_.Ol,"edu-impressions",(isFinite(E)?E:0)+1)};
_.c.onYtPageManagerAttached=function(v){var E;((E=_.Sk(v))==null?void 0:E.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.c.onInvokeInstrumentManagerAction=function(v,E){uyP(E,v)};
_.c.updateIconSet=function(){var v=this.hostElement.querySelector("#masthead");if(v){var E=_.AV(v),n=E.querySelector("g#yt-logo-updated");n&&(v=document.createElementNS("http://www.w3.org/2000/svg","defs"),v.appendChild(n.cloneNode(!0)),(E=E.querySelector("g#yt-logo-red-updated"))&&v.appendChild(E.cloneNode(!0)),this.initIconDefs("yt-logos-ext",v))}};
_.c.updateMastheadData=function(){var v=this,E,n,f,x,y;return _.X(function(Q){if(Q.nextAddress==1){E=v.data;n=v.hostElement.querySelector("#masthead");if(!n)return Q.return();_.IS(v,function(){n.data=v.topbarData});
if(!v.get("response.topbar",E)||v.get("response.topbar.responseContext.maxAgeSeconds",E)===0)return Q.jumpTo(0);if(f=_.P().resolve(_.Yn))return _.m(Q,f(),6);x=_.P().resolve(_.G9);return _.m(Q,x.put("service:topbar:fallback",new _.T9({innertubeResponse:v.get("response.topbar",E)})),0)}return(y=Q.yieldResult)?_.m(Q,y.put("service:topbar:fallback",new _.T9({innertubeResponse:v.get("response.topbar",E)})),0):Q.jumpTo(0)})};
_.c.computeTopbarData=function(v){if(!v)return null;var E;return this.isShortsPage&&this.topbarData&&!_.C((E=v.response)==null?void 0:E.topbar,B73)?this.topbarData:v.response&&"topbar"in v.response?_.C(v.response.topbar,B73)||null:null};
_.c.onSetTheaterModeEnabled=function(v,E){this.isTheaterModeSession=E.enabled;this.setTheaterModeStyles(E.enabled)};
_.c.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.c.onDarkModeToggledAction=function(){var v=_.R5(window.location.href);if(!_.AzX(v)){(v=!!_.hM(window.location.href).themeRefresh)&&_.li(new _.yc("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!v){Ci3();v={themeRefresh:1};var E=_.P().resolve(_.Y_);if(E.isOnWatch()){var n,f;E=((n=E.getPlayerFromWatch())==null?void 0:(f=n.getPlayer())==null?void 0:f.getCurrentTime())||0;E>=1&&(v.time_continue=Math.floor(E))}_.fE()||_.bo()!=="USER_INTERFACE_THEME_DARK"||(v.theme="dark");_.mo(_.AM(window.location.href,
v))}_.Z("web_appshell_refresh_trigger")&&_.n1.caches&&this.refreshAppShellResponse();n=_.SK(window.location.href);_.R2(_.P().resolve(_.tz),_.VT(n,"theme"))}};
_.c.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.c.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.c.onPlayerFullscreen=function(v){_.Hq();this.playerFullscreen=v};
_.c.setRestrictedMode=function(v){var E=_.Ef();_.nH(0,58,v);E.save();_.P().resolve(_.zB).reload()};
_.c.onPageChanged=function(v){v.detail.newPageType==="ytd-watch-flexy"||v.detail.newPageType==="ytd-watch-fixie"||v.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.MI("WEB_PAGE_TYPE_WATCH")):v.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.MI("WEB_PAGE_TYPE_SHORTS")):v.detail.newPageType==="ytd-browse"&&v.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.MI("WEB_PAGE_TYPE_MINI_APP")):_.Z("web_frosted_glass")&&v.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.MI("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.MI("WEB_PAGE_TYPE_UNKNOWN"));v.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.c.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.c.onGuideToggleTap=function(){_.jK(this.hostElement,"yt-guide-toggle")};
_.c.onGuideToggleHover=function(){_.jK(this.hostElement,"yt-guide-hover")};
_.c.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.c.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c.setMastheadTheme=function(){var v=_.AV(this.hostElement).querySelector("#masthead");v&&(v.dark=v.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),v.isDarkThemeForced=!1)};
_.c.onRequestPanelModeChange=function(v,E){this.hideHeaderShadow=E.mode!=="seamed"};
_.c.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.c.onDrawerIronSelect=function(v){_.Sk(v).id==="guide"&&this.processDrawerIronSelect()};
_.c.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var v="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(v="opened"));_.jK(this.hostElement,"yt-autonav-pause-guide-"+v)};
_.c.onAddElementToApp=function(v){_.K(this.hostElement).appendChild(v.detail)};
_.c.onThrottledScroll=function(){var v=_.P().resolve(_.Y_).getCurrentPage();v&&(this.scrollAtTop=v.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.c.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.c.setFullscreen=function(){if(_.Z("external_fullscreen")||!this.isWatchPage){var v=_.Z("kevlar_fullerscreen_root_only_killswitch")?!!_.Hq():!!_.Hq()&&_.Hq()===document.documentElement;v=(this.isWatchPage||_.Z("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(v||this.isFullWindowSession);this.fullscreen!==v&&((this.fullscreen=v)&&_.kZ(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.dG().dispatch(_.EHd(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.OL(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.c.setFullscreenLoggingForShorts=function(v){var E,n,f;return _.X(function(x){if(x.nextAddress==1)return _.m(x,(E=_.Aq())==null?void 0:E.getPlayerPromise(),2);n=x.yieldResult;(f=n)==null||f.setAppFullscreen(v);_.yQ(x)})};
_.c.updateMastheadCssHeight=function(){var v=this.mastheadHeight;this.fullscreen&&(v=0);_.NQ(this.hostElement,{"--ytd-masthead-height":v+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.c.updateNetworkStatusBannerDisplayStatus=function(){var v="unset";this.fullscreen&&(v="none");_.NQ(this.hostElement,{"--ytd-network-status-banner-display":v})};
_.c.updateNetworkStatusBannerCssHeight=function(){var v="unset";this.fullscreen&&(v="0px");_.NQ(this.hostElement,{"--ytd-network-status-banner-max-height":v})};
_.c.updateScrollAndMasthead=function(v,E,n,f){this.iMaxTheaterMode||(f=!1);var x=_.P().resolve(_.Y_).getCurrentPage();v||E||f?(document.body.classList.add("no-scroll"),x.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.uo(this,this.onScroll)),x.setScrollTop(0),_.NQ(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.s9()+"px"})):n?_.jK(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.jK(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
x.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.uo(this,this.onScroll)));this.mastheadHidden=v||E||n;this.updateMastheadCssHeight();_.Z("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.c.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.c.onYtMastheadHeightChanged=function(v,E){this.mastheadHeight=E.height;this.updateMastheadCssHeight()};
_.c.onYtNavigateAction=function(v){v=this.get("navigateAction.endpoint",v);_.jK(this.hostElement,"yt-navigate",{endpoint:v})};
_.c.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var v=document.createElement("yt-create-family-dialog");_.K(this.hostElement).appendChild(v);this.hasCreateFamilyDialog=!0}};
_.c.onSetPushNotificationsEnabledCommand=function(v){var E=this,n=_.C(v,tHd);n&&typeof n.enabled==="boolean"&&(Notification.permission!=="granted"?VQb().then(function(){Notification.permission==="granted"?(sgx(!n.enabled).then(a46),n.successAction&&_.$Z(E.hostElement,[n.successAction])):n.failureAction&&_.$Z(E.hostElement,[n.failureAction])}):(sgx(!n.enabled).then(a46),n.successAction&&_.$Z(this.hostElement,[n.successAction])))};
_.c.onYtSignalActionEnableChromeNotifications=function(){DwM(!0)};
_.c.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.C(this.topbarData.hotkeyDialog,nV_)}}})};
_.c.onYtSignalActionShowKeyboardShortcutDialog=function(){_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.c.onYtEndpointChangeHandler=function(v,E){var n=_.v_(_.iH);n.pendingPrefetchJob_&&(E=!(!E||E.autonav!="1"),n.pendingPrefetchJob_.resolve(v&&_.U31(v)?_.qp$(v,E):""),n.pendingPrefetchJob_=null);_.OL(this.hostElement,"yt-pause-active-page-context");_.OL(this.hostElement,"ytd-log-youthere-nav");_.OL(this.hostElement,"yt-prepare-page-dispose")};
_.c.handleCommandWithCommandHandler=function(v,E){_.ki.instance.resolveCommand(v,{form:{element:E}})};
_.c.onYtTimedCommand=function(v){var E=this;v=_.C(v,j1R);var n=v.command;n&&_.Fw(_.wh,function(){var f=_.C(n,_.j16);f?(_.ki.instance.resolveCommand(n),E.maybeLogGetAnswerRequestTick(f)):_.LG(E.hostElement,[n],E.hostElement)},v.timeoutMs||0)};
_.c.maybeLogGetAnswerRequestTick=function(v){v&&v.isFirstRequest&&(_.e7("search_overview_answer"),_.FD("so_rq",void 0,"search_overview_answer"))};
_.c.onYtSignalActionSkipNavigation=function(){var v=_.P().resolve(_.Y_).getCurrentPage();_.IY(v)};
_.c.onYtSignalActionCopyDebugData=function(){i3b()};
_.c.handleEntityUpdateCommand=function(v){_.tc(_.C(v,_.$9P).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.c.logFlowLoggingEventCommand=function(v){if(v=_.C(v,_.seA))if(v.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var E=v.flowEventNamespace,n=v.flowEventType,f=v.flowType;f&&E&&n&&_.sfX(_.$t(E,n,v.flowEventMetadata),f)}else{E=_.Ge();n=v.flowEventNamespace;f=v.flowEventType;var x=v.flowType;x&&n&&f&&_.LC(E,_.$t(n,f,v.flowEventMetadata),x,v.flowNonce)}};
_.c.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.c.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.c.onTouchStart=function(){var v=_.th();_.lc()&&_.aX(v.JSC$10942_screenManager,{visualElement:v.ve})};
_.c.handleSelectLanguageCommand=function(v){if(v=_.C(v,iMC).hl){var E=_.Ef();E.set("hl",v);E.save();_.P().resolve(_.zB).reload()}};
_.c.handleConfirmDialogEndpoint=function(v){(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v)};
_.c.handleOpenPopupNavigationEndpoints=function(v,E){_.Z("web_button_rework")&&(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v,E)};
_.c.handleSaveCommandToSessionStorage=function(v){if(v=_.C(v,_.kj4)){var E=v.key;E&&v.command&&window.sessionStorage.setItem(E,JSON.stringify(v.command))}};
_.c.hardReloadWithShellPurge=function(v){v=v===void 0?{}:v;v=Object.assign({},v,{purge_shell:1});v=_.Mtz(v);_.mo(v)};
_.c.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(v){v&&v.active&&v.active.postMessage({type:"refresh_shell"})}).catch(function(v){v.name!=="SecurityError"&&_.mb(v)})};
_.c.onDeviceThemeChanged=function(){var v=_.wn();_.nH(_.Ef(),185,v);_.Ef().save()};
_.c.handleYtRegisterPromoCommand=function(v){if(_.C(v,RAU)){var E=_.P().resolve(_.Y_).getCurrentPage()||this.hostElement;yd3().registerPromoCommand(_.C(v,RAU),E)}};
_.c.onYtNavigateHomeAction=function(){if(!_.Z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v,E,n,f,x=(f=(v=this.topbarData)==null?void 0:(E=v.logo)==null?void 0:(n=E.topbarLogoRenderer)==null?void 0:n.endpoint)!=null?f:_.cg;this.ytComponentBehavior.resolveCommand(x)}};
_.c.onYtLocationCollectionCommand=function(v){wEK(_.C(v,XDP))};
_.c.onYtGetLocationCommand=function(v){Et6(_.C(v,QsU),this)};
_.c.updateRenderGuideFromBinding=function(v){this.renderGuide=v.detail.value};
_.c.updateGuidePersistentAndVisibleFromBinding=function(v){this.guidePersistentAndVisible=v.detail.value};
_.c.updateMiniGuideVisibleFromBinding=function(v){this.miniGuideVisible=v.detail.value};
_.c.onThemeSelected=function(v,E){var n=_.Ef(),f=v||E?v:_.wn(),x=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.AzX(_.R5(window.location.href));_.nH(0,165,v);_.nH(0,174,E);n.save();x&&_.OL(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.OL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.c.getCurrentTheme=function(){return _.lo()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bo()};
_.c.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.c.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.c.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.c.handleShowConsentPrimitive=function(v){var E=this,n,f;return _.X(function(x){if(x.nextAddress==1){try{n=(f=_.Aq())==null?void 0:f.getPlayerPromise()}catch(y){}return _.m(x,hLb(v,n),2)}_.OL(E.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.yQ(x)})};
_.c.handleSelectActiveIdentityEndpointInternal=function(v){_.ek();v=_.C(v,_.ch6);if(v!=null&&v.supportedTokens){v=_.p(v.supportedTokens);for(var E=v.next();!E.done;E=v.next())E=E.value,E.accountSigninToken&&_.mo(E.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.c.handleUpdatePermissionRoleCommand=function(v){if(v=_.C(v,_.fTl)){var E;this.hasDelegation=!((E=_.C(v.renderer,_.oOX))==null||!E.status)}};
_.c.registerViewTransitionTasks=function(){var v=this,E=_.P().resolve(_.jp(_.dnU));if(E){var n,f=(n=this.guide)==null?void 0:n.querySelector("#scrim"),x,y=(x=this.guide)==null?void 0:x.querySelector("#contentContainer");f&&y&&(n={beforeTransition:function(){var Q;(Q=v.guide)!=null&&Q.persistent||(f.style.viewTransitionName="app-drawer-scrim",y.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Q;(Q=v.guide)!=null&&Q.persistent||(f.style.viewTransitionName="",y.style.viewTransitionName="")}},fb(E,"slide",n),fb(E,"zoom",n))}};
_.hK.Object.defineProperties(Df.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Z("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.hK.Object.defineProperties(Df,{template:{configurable:!0,enumerable:!0,get:function(){if(poP===void 0){var v=document.createElement("template");_.q(v,'\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');
v.content.insertBefore(_.R().content.cloneNode(!0),v.content.firstChild);poP=v}v=poP;return v}}});
Df.prototype.onOpenHotkeyDialog=Df.prototype.onOpenHotkeyDialog;Df.prototype.onYtMastheadHeightChanged=Df.prototype.onYtMastheadHeightChanged;Df.prototype.setFullscreen=Df.prototype.setFullscreen;Df.prototype.onAddElementToApp=Df.prototype.onAddElementToApp;Df.prototype.onDrawerIronSelect=Df.prototype.onDrawerIronSelect;Df.prototype.onGuideOpenButtonHover=Df.prototype.onGuideOpenButtonHover;Df.prototype.onRequestPanelModeChange=Df.prototype.onRequestPanelModeChange;
Df.prototype.onPageDataUpdated=Df.prototype.onPageDataUpdated;Df.prototype.onPageChanged=Df.prototype.onPageChanged;Df.prototype.onSetTheaterModeEnabled=Df.prototype.onSetTheaterModeEnabled;Df.prototype.updateMastheadData=Df.prototype.updateMastheadData;Df.prototype.onYtPageManagerAttached=Df.prototype.onYtPageManagerAttached;Df.prototype.observeGuideVisibility=Df.prototype.observeGuideVisibility;Df.prototype.guideIsVisibleButNotPersistentSelectorChanged=Df.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Df.prototype.isInlinePreviewEnabledChanged=Df.prototype.isInlinePreviewEnabledChanged;Df.prototype.dispatchFrostedGlassMode=Df.prototype.dispatchFrostedGlassMode;_.k([_.h(_.PL),_.W("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.k([_.h(_.nw.YtEventForwardingBehavior),_.W("design:type",Object)],Df.prototype,"ytEventForwardingBehavior",void 0);_.k([_.h(_.GU.YtOpenPopupBehavior),_.W("design:type",Object)],Df.prototype,"ytOpenPopupBehavior",void 0);
_.k([_.h(_.N2.YtActionHandlerBehavior),_.W("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);_.k([_.h({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.qw.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Z("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(v){this.actionRouter_.handleAction(v.detail)}}),
_.W("design:type",Object)],Df.prototype,"ytActionRouterBehavior",void 0);_.k([_.h(bKb.YtdAppBehavior),_.W("design:type",Object)],Df.prototype,"ytdAppBehavior",void 0);_.k([_.h(_.TU.YtEndpointBehavior),_.W("design:type",Object)],Df.prototype,"ytEndpointBehavior",void 0);_.k([_.h(mCP.YtEndpointHandlerWithYpcBehavior),_.W("design:type",Object)],Df.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.k([_.h(QZd.YtLogYpcFlowCommandsBehavior),_.W("design:type",Object)],Df.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.k([_.h(_.B.YtRendererBehavior),_.W("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.k([_.h(_.aD.YtComponentBehavior),_.W("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.k([_.H({selector:_.BYP}),_.W("design:type",Object)],Df.prototype,"tabGesturesIsActive",void 0);_.k([_.H(),_.W("design:type",Boolean)],Df.prototype,"renderGuide",void 0);
_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"guidePersistentAndVisible",void 0);_.k([_.H({selector:_.t8d}),_.W("design:type",Boolean)],Df.prototype,"guideIsVisibleButNotPersistent",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"standalone",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"miniGuideVisible",void 0);
_.k([_.H({selector:_.DbE}),_.W("design:type",Number)],Df.prototype,"miniplayerPlaybackState",void 0);_.k([_.H({selector:_.mW,reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"miniplayerIsActive",void 0);_.k([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],Df.prototype,"isInlinePreviewEnabled",void 0);_.k([_.H(),_.W("design:type",Boolean)],Df.prototype,"isInlinePreviewDisabled",void 0);
_.k([_.H({reflectToAttribute:!0,value:function(){return _.Sp("START_IN_FULL_WINDOW_MODE")}}),
_.W("design:type",Boolean)],Df.prototype,"mastheadHidden",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"playerFullscreen",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Df.prototype,"deprecateFullerscreenUi",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"fullscreen",void 0);_.k([_.H({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"hideHeaderShadow",void 0);
_.k([_.H({value:{GUIDE_ALT_LABEL:_.tQ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.W("design:type",Object)],Df.prototype,"menuStrings",void 0);_.k([_.H({computed:"computeTopbarData(data)"}),_.W("design:type",Object)],Df.prototype,"topbarData",void 0);_.k([_.H({selector:_.wG}),_.W("design:type",Boolean)],Df.prototype,"isWatchPage",void 0);_.k([_.H({selector:_.hrX,reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"isShortsPage",void 0);
_.k([_.H({selector:function(v){return v.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.W("design:type",Boolean)],Df.prototype,"isMiniAppPage",void 0);_.k([_.H({selector:function(v){return v.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.W("design:type",Boolean)],Df.prototype,"isBrowsePage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Boolean)],Df.prototype,"scrolling",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Df.prototype,"hasDelegation",void 0);_.k([_.H({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Df.prototype,"guideScrolledByTouch",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Df.prototype,"darkerDarkTheme",void 0);
_.k([_.H(),_.W("design:type",Object)],Df.prototype,"isFrostedGlassInitialized",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Df.prototype,"frostedGlassExp",void 0);_.k([_.H({selector:function(v){return v.ui.chipBarIsSticky}}),
_.W("design:type",Boolean)],Df.prototype,"chipBarIsSticky",void 0);_.k([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.W("design:type",Boolean)],Df.prototype,"isHomePage",void 0);_.k([_.H({reflectToAttribute:!0}),_.W("design:type",Object)],Df.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.k([_.H(),_.W("design:type",Object)],Df.prototype,"ephemeralActionsEnabled",void 0);_.k([_.uk("guide"),_.W("design:type",Object)],Df.prototype,"guide",void 0);
_.k([_.uk("guide-service"),_.W("design:type",nQx)],Df.prototype,"guideService",void 0);_.k([_.uk("guide-inner-content"),_.W("design:type",HTMLDivElement)],Df.prototype,"guideInnerContent",void 0);_.k([_.H({selector:_.gVN}),_.W("design:type",String)],Df.prototype,"frostedGlassMode",void 0);
_.k([_.On("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"dispatchFrostedGlassMode",null);_.k([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.W("design:type",Object)],Df.prototype,"isFrostedGlassDisabled",void 0);
_.k([_.A("isHomePage","chipBarIsSticky"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Df.prototype,"applyFrostedGlassToChipBar",null);_.k([_.H(),_.W("design:type",Object)],Df.prototype,"isChannelOrPlaylistPage",void 0);_.k([_.Tw("isInlinePreviewEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"isInlinePreviewEnabledChanged",null);
_.k([_.On("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.k([_.On("guidePersistentAndVisible","miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"observeGuideVisibility",null);
_.k([_.jk("attached"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Df.prototype,"onYtPageManagerAttached",null);_.k([_.On("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],Df.prototype,"updateMastheadData",null);_.k([_.jk("yt-set-theater-mode-enabled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Df.prototype,"onSetTheaterModeEnabled",null);
_.k([_.jk("yt-page-type-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Df.prototype,"onPageChanged",null);_.k([_.jk("yt-page-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"onPageDataUpdated",null);_.k([_.jk("yt-request-panel-mode-change"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],Df.prototype,"onRequestPanelModeChange",null);
_.k([_.jk("yt-guide-hover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"onGuideOpenButtonHover",null);_.k([_.jk("app-drawer-transitioned"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Df.prototype,"onDrawerIronSelect",null);_.k([_.jk("yt-add-element-to-app"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Df.prototype,"onAddElementToApp",null);
_.k([_.jk("yt-set-fullerscreen-styles"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"setFullscreen",null);_.k([_.jk("yt-masthead-height-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Df.prototype,"onYtMastheadHeightChanged",null);_.k([_.jk("yt-open-hotkey-dialog"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Df.prototype,"onOpenHotkeyDialog",null);
Df=_.k([_.N({is:"ytd-app"})],Df);_.qs().processSignal("eor");
_.sV();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
